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 |
|---|---|---|---|---|---|---|
Method used to print what is currently in the array. | static void print(int[] array)
{
for(int i = 0; i < array.length; i++)
{
System.out.println(array[i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}",
"public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t... | [
"0.81347185",
"0.8033839",
"0.7737338",
"0.7462088",
"0.74316144",
"0.737613",
"0.72864753",
"0.7185092",
"0.7180601",
"0.71623605",
"0.7135881",
"0.71295303",
"0.71219933",
"0.70838857",
"0.7073267",
"0.70588416",
"0.70411134",
"0.70242643",
"0.70215076",
"0.699221",
"0.6972... | 0.69138 | 26 |
Method used to print what is currently in the array. | static int[] Sort(int array[])
{
//Check to see if there is one or more numbers in the array.
if(array.length > 1)
//If there is more than one number, begin the process of splitting the array in half.
{
int sparray1 = array.length/2;
int sparray2 = sparray1;
if((array.length % 2) == 1)
sparray2 += 1;
//Initialize the new split sub-arrays and copy for sorting.
int split1[] = new int[sparray1];
int split2[] = new int[sparray2];
for(int i = 0; i < sparray1; i++)
split1[i] = array[i];
for(int i = sparray1; i < sparray1 + sparray2; i++)
split2[i - sparray1] = array[i];
//Send sub-arrays back through the methods to be sorted.
split1 = Sort(split1);
split2 = Sort(split2);
//Compare the numbers in the sub-arrays and sort them from small to large.
int i = 0, j = 0, k = 0;
while(split1.length != j && split2.length != k)
{
if(split1[j] < split2[k])
{
array[i] = split1[j];
i++;
j++;
}
else
{
array[i] = split2[k];
i++;
k++;
}
}
//Recombine the sorted sub-arrays and return the completed sorted array.
while(split1.length != j)
{
array[i] = split1[j];
i++;
j++;
}
while(split2.length != k)
{
array[i] = split2[k];
i++;
k++;
}
}
return array;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}",
"public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t... | [
"0.8132887",
"0.8033601",
"0.7736671",
"0.7462214",
"0.74307215",
"0.73747325",
"0.72863996",
"0.7185819",
"0.7180691",
"0.71619624",
"0.7134784",
"0.71287805",
"0.7121497",
"0.7083381",
"0.70722604",
"0.70578927",
"0.7040439",
"0.7023819",
"0.70210356",
"0.69905925",
"0.6972... | 0.0 | -1 |
A utility function to return precedence of a given operator Higher returned value means higher precedence. | static int Prec(char ch) {
switch (ch) {
case '+':
case '-':
return 1;
case '*':
case '/':
return 2;
case '^':
return 3;
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPrecedence(char operator) {\n switch (operator) {\n case '+':\n case '-':\n return 1;\n case '*':\n case '/':\n return 2;\n case '^':\n return 3;\n }\n\n return -1;\n }",
"@Ov... | [
"0.79288894",
"0.77839154",
"0.77798367",
"0.7724851",
"0.75635797",
"0.7426129",
"0.739127",
"0.7366278",
"0.7277058",
"0.72575164",
"0.72575164",
"0.7254485",
"0.7108836",
"0.70931566",
"0.7044931",
"0.7044931",
"0.6961111",
"0.69433707",
"0.6900949",
"0.6736545",
"0.664681... | 0.0 | -1 |
Implementations of this hook will be executed before Docker container has stopped. This hook is generally handy for custom actions to be performed just before container is stopped regardless of their service manager usage. | public interface BeforeStopHook<T extends ServiceManager> extends DockerLifecycleHook<T> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void onContainerStopped(ContainerId containerId);",
"void onContainerStopped(ContainerId containerId);",
"void onStopContainerError(ContainerId containerId, Throwable t);",
"public abstract void onStopContainerError(\n ContainerId containerId, Throwable t);",
"public void onContainer... | [
"0.72842604",
"0.717833",
"0.6903646",
"0.64592296",
"0.63549477",
"0.62133545",
"0.62054056",
"0.60586107",
"0.5980039",
"0.5903306",
"0.5895466",
"0.5888642",
"0.58866566",
"0.58531547",
"0.58264697",
"0.5795355",
"0.57899183",
"0.5779379",
"0.5773701",
"0.57563454",
"0.574... | 0.6317477 | 5 |
Testing the main function. However we can only test for so much | public void testMain()
{
InputStream instream = null;
OutputStream outstream = null;
try
{
File afile = new File("testfiles/testfile.txt");
File bfile = new File("testfiles/testfilecopy.txt");
instream = new FileInputStream(afile);
outstream = new FileOutputStream(bfile);
byte[] buffer = new byte[1024];
int length;
// copy the file content in bytes
while ((length = instream.read(buffer)) > 0)
{
outstream.write(buffer, 0, length);
}
instream.close();
outstream.close();
}
catch (IOException e)
{
e.printStackTrace();
}
String[] args = new String[3];
args[0] = "testfiles/testfilecopy.txt";
args[1] = "1";
args[2] = "testfiles/output.txt";
Quicksort.main(args);
assertTrue(systemOut().getHistory().contains("Time to run: "));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}",
"@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n GOL_Main.m... | [
"0.8026604",
"0.76782906",
"0.7595947",
"0.7593348",
"0.7485976",
"0.74784464",
"0.73724276",
"0.7362739",
"0.7278525",
"0.7278232",
"0.7253264",
"0.72143996",
"0.72004783",
"0.7194796",
"0.71924186",
"0.7189757",
"0.71869856",
"0.7182578",
"0.7143874",
"0.7138465",
"0.713078... | 0.6564609 | 77 |
String ser="AC6312AEE24B27E8D4E96B5F3CBB3E87"; String reg="BB520DE99A8C02504A09"; String ser="32034031036000534d444b32343530300"; String reg="2B820DA9CA4CE027B54B"; String ser="000306C3BFEBFBFF7FDAFBBF"; String reg="AB920D09AAFC437CC6DC"; String ser="AC6312AEE24B27E8D4E96B5F3CBB3E87"; String reg="FB020DE9AAFC04308510"; | public static void main(String[] args){
String ser="0061-0F01-178B-FBFF-3E98-320B";
String reg="8B920D89AAFCD9034648";
if(new CheckRegister().CheckRegistered(reg,ser)){
System.out.println("true");
}else {
System.out.println("false");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n... | [
"0.6071869",
"0.5853591",
"0.5729155",
"0.57268476",
"0.56831366",
"0.56607866",
"0.56405765",
"0.5617624",
"0.56030273",
"0.5583141",
"0.55438715",
"0.55354244",
"0.5460292",
"0.54588723",
"0.5455808",
"0.5448179",
"0.5432721",
"0.5418418",
"0.53931224",
"0.5376329",
"0.5376... | 0.51503146 | 46 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver",
"C:\\Users\\Dell User\\Desktop\\Udmey\\lib\\chromedriver\\chromedriver.exe");
// WebDriver driver= new FirefoxDriver();
WebDriver driver = new ChromeDriver();
// WebDriver driver= new InternetExplorerDriver();
driver.get("http://www.qaclickacademy.com/practice.php");
if( !driver.findElement(By.id("checkBoxOption2")).isSelected())
{
driver.findElement(By.id("checkBoxOption2")).click();
String Lable2=driver.findElement(By.id("checkBoxOption2")).getAttribute("value");
driver.findElement(By.xpath("//select[@id='dropdown-class-example']")).sendKeys(Lable2);
driver.findElement(By.cssSelector("input[name='enter-name']")).sendKeys(Lable2);
driver.findElement(By.id("alertbtn")).click();
Alert alt=driver.switchTo().alert();
String getText=alt.getText();
if(getText.contains(Lable2))
{
System.out.println(alt.getText());
alt.accept();
}
}
} | {
"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 |
Constructor for DAS2 from the information provided through the DAS2 JPanel. Designed to take the inserted scores and create both the associated percentiles and classifications. Then calls the document handler from gentest to add the DAS2 template to the current student document. | public Das2(int a, int b, int b1, int c, int d, int d1, int e, int f, int g, int h){
dasworddeftscore = a;
dasverbsimtscore = b;
dasverbalsscore = b1;
dasmattscore = c;
dassquentscore = d;
dasnonverbalsscore = d1;
dasrecdestscore = e;
daspatcontscore = f;
dasspatialsscore = g;
dasgcasscore = h;
//create percentiles
dasworddefpercentile = tscoretopercentile(dasworddeftscore);
dasverbsimpercentile = tscoretopercentile(dasverbsimtscore);
dasverbalpercentile = standardscorepercentile(dasverbalsscore);
dasmatpercentile = tscoretopercentile(dasmattscore);
dassquenpercentile = tscoretopercentile(dassquentscore);
dasnonverbalpercentile = standardscorepercentile(dasnonverbalsscore);
dasrecdespercentile = tscoretopercentile(dasrecdestscore);
daspatconpercentile = tscoretopercentile(daspatcontscore);
dasspatialpercentile = standardscorepercentile(dasspatialsscore);
dasgcapercentile = standardscorepercentile(dasgcasscore);
//get classifications
dasworddefclass = classification(dasworddefpercentile);
dasverbsimclass = classification(dasverbsimpercentile);
dasverbalclass = classification(dasverbalpercentile);
dasmatclass = classification(dasmatpercentile);
dassquenclass = classification(dassquenpercentile);
dasnonverbalclass = classification(dasnonverbalpercentile);
dasrecdesclass = classification(dasrecdespercentile);
daspatconclass = classification(daspatconpercentile);
dasspatialclass = classification(dasspatialpercentile);
dasgcaclass = classification(dasgcapercentile);
try {
DocHandler.modDoc(current, filename, das2template);
} catch (FileNotFoundException e1) {
System.out.println("File Not Found");
e1.printStackTrace();
} catch (Docx4JException e1) {
System.out.println("Docx4J problem");
e1.printStackTrace();
}
nexttest();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AddPage(SplashPage parent) {\n\n initComponents();\n this.parent = parent;\n\n File file = new File(\"marks.xml\");\n\n if (file.exists()) {\n Builder builder = new Builder();\n try {\n doc = builder.build(file);\n root = doc.ge... | [
"0.53271383",
"0.5320396",
"0.5202975",
"0.5154819",
"0.5081024",
"0.50778735",
"0.50759745",
"0.503001",
"0.5010075",
"0.49630615",
"0.49598894",
"0.4955839",
"0.4944086",
"0.49270523",
"0.4923259",
"0.48929018",
"0.48903075",
"0.4880099",
"0.4879858",
"0.4878273",
"0.487804... | 0.65043235 | 0 |
Moves from the DAS2 to the next selected test. | private void nexttest(){
if (TestListPanel.ktea2yn = true){
nextframe = new Ktea2frame();
Das2panel.das2fr.setVisible(false);
}
/*else if (wiscyn = true){
nextframe = new Wiscframe();
Das2panel.das2fr.setVisible(false);
}
else if (basc2yn = true){
nextframe = new Basc2frame();
Das2panel.das2fr.setVisible(false);
}
else {
}*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of t... | [
"0.6436398",
"0.6304073",
"0.60163784",
"0.6015443",
"0.582872",
"0.5824199",
"0.5822693",
"0.57757276",
"0.57681173",
"0.57097656",
"0.5639024",
"0.5598742",
"0.55743724",
"0.55451715",
"0.55426294",
"0.5528445",
"0.5508718",
"0.5491339",
"0.54538864",
"0.5453241",
"0.545061... | 0.0 | -1 |
TODO Autogenerated method stub | public boolean solucionar() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public Vector<Integer> getGiven() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public int[][] getMatriuSolucio() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This is constructor of this class. It's setting to count the sum BigDecimal. | public TestSumBigDecimal(int count) {
this.count = count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Balance() {\r\n value = BigDecimal.ZERO;\r\n }",
"public void setSumCnt(BigDecimal sumCnt) {\r\n this.sumCnt = sumCnt;\r\n }",
"public BigDecimal getSumCnt() {\r\n return sumCnt;\r\n }",
"public AccumulatorNumber ()\n\t{ total = 0.0; }",
"@Override\n\tpublic String toSt... | [
"0.6695685",
"0.66794246",
"0.6427493",
"0.62631845",
"0.61555934",
"0.6153001",
"0.6153001",
"0.6024422",
"0.59824073",
"0.58671093",
"0.5864627",
"0.5821124",
"0.57286924",
"0.57099664",
"0.5705037",
"0.56936705",
"0.56262857",
"0.5597826",
"0.5577015",
"0.55451214",
"0.553... | 0.75027335 | 0 |
Running of the sum BigDecimal task method. It's count the time that adding BigDecimal objects into array. | @Override
public void run() {
// create array of values to add, before we start the timer
BigDecimal[] values = new BigDecimal[ARRAY_SIZE];
for(int i=0; i<ARRAY_SIZE; i++) values[i] = new BigDecimal(i+1);
sum = new BigDecimal(0.0);
for(int count=0, i=0; count<this.count; count++, i++) {
if (i >= values.length) i = 0;
sum = sum.add( values[i] );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Sum array of BigDecimal with count=%,d\\n\",count) + \"sum = \" + sum;\n\t\t\n\t}",
"public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (inde... | [
"0.6114759",
"0.6066823",
"0.6057032",
"0.6057032",
"0.6023272",
"0.59597534",
"0.5949653",
"0.5909656",
"0.5903473",
"0.57692385",
"0.5759947",
"0.5759947",
"0.57269824",
"0.5722421",
"0.56885487",
"0.56828606",
"0.564867",
"0.56463176",
"0.5643869",
"0.5633205",
"0.5618155"... | 0.7288039 | 0 |
It's show information about this task. It shown time and the sum of array. | @Override
public String toString() {
return String.format("Sum array of BigDecimal with count=%,d\n",count) + "sum = " + sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public static void printTasks(){\n int totalTime = 0;\n int totalWait = 0;\n for(Task t : taskList){\n\n if(t... | [
"0.6634938",
"0.6413087",
"0.63039726",
"0.63012725",
"0.62161356",
"0.60998684",
"0.6077454",
"0.6077454",
"0.5955812",
"0.595105",
"0.5941389",
"0.589483",
"0.5886089",
"0.5866684",
"0.585502",
"0.58456516",
"0.58362234",
"0.58266896",
"0.57962394",
"0.579104",
"0.5753192",... | 0.0 | -1 |
TODO add test methods here. | @Test
public void testComposite() {
Leaf pers1 = new Leaf("Tracy");
Leaf pers2 = new Leaf("JR");
Leaf pers3 = new Leaf("Simon");
Composite comp1 = new Composite();
comp1.add(pers1);
comp1.add(pers2);
comp1.add(pers3);
//Assert.assertEquals(pers1.sayHello(), "Tracy person says hello");
Assert.assertNotNull(comp1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void test() {\n\n\t}",
"@Override\n protected v... | [
"0.6027187",
"0.6015595",
"0.58184975",
"0.5790676",
"0.5673687",
"0.5658679",
"0.5657986",
"0.5657986",
"0.5657986",
"0.5657986",
"0.5657986",
"0.5657986",
"0.5652669",
"0.56347215",
"0.5613453",
"0.5604656",
"0.55772966",
"0.55162644",
"0.5501187",
"0.5496982",
"0.54841995"... | 0.0 | -1 |
BOSFOSf2 FileOutputStream out = new FileOutputStream("d:/abc/f2"); | public static void main(String[] args) throws Exception {
BufferedOutputStream bos = new BufferedOutputStream(
new FileOutputStream("d:/abc/f2"));
bos.write(97);
bos.write(98);
bos.write(99);
// bos.flush();
bos.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FileOutputStream FileOutputStream(String absolutePath) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOut... | [
"0.6601951",
"0.6128595",
"0.5959524",
"0.592999",
"0.580067",
"0.57932997",
"0.5772612",
"0.5743296",
"0.568566",
"0.5640463",
"0.5624855",
"0.5589964",
"0.55534774",
"0.5538089",
"0.5507812",
"0.54829454",
"0.5482726",
"0.5476404",
"0.54253656",
"0.54088205",
"0.54049546",
... | 0.59340155 | 3 |
Returns the percentage of histologically evident neoplastic cells present in the tissue specimen. | public double getNeoplasticCellularityPercentage()
{
return neoplasticCellularityPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getTotalCellularityPercentage()\r\n \t{\r\n \t\treturn totalCellularityPercentage;\r\n \t}",
"public Double getTotalAnomalyPercentage();",
"public void setNeoplasticCellularityPercentage(double neoplasticCellularityPercentage)\r\n \t{\r\n \t\tthis.neoplasticCellularityPercentage = neoplasticCellu... | [
"0.64075637",
"0.5832951",
"0.5795429",
"0.56758523",
"0.5638921",
"0.54660094",
"0.5414237",
"0.54083717",
"0.5357904",
"0.53296524",
"0.5302404",
"0.5253152",
"0.5237292",
"0.5169299",
"0.5153538",
"0.51436424",
"0.512656",
"0.51239544",
"0.51044446",
"0.5102003",
"0.508946... | 0.72179484 | 0 |
Sets the percentage of histologically evident neoplastic cells present in the specimen. | public void setNeoplasticCellularityPercentage(double neoplasticCellularityPercentage)
{
this.neoplasticCellularityPercentage = neoplasticCellularityPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getNeoplasticCellularityPercentage()\r\n \t{\r\n \t\treturn neoplasticCellularityPercentage;\r\n \t}",
"public void setTotalCellularityPercentage(double totalCellularityPercentage)\r\n \t{\r\n \t\tthis.totalCellularityPercentage = totalCellularityPercentage;\r\n \t}",
"@Override\r\n\tpublic void ... | [
"0.6234766",
"0.60157096",
"0.5999689",
"0.5972204",
"0.583543",
"0.5828764",
"0.5826434",
"0.5753024",
"0.57138515",
"0.5652233",
"0.56388974",
"0.5530214",
"0.549961",
"0.54815716",
"0.5465905",
"0.5394519",
"0.53906393",
"0.5368244",
"0.53543204",
"0.5333534",
"0.53334725"... | 0.6923414 | 0 |
Returns the percentage of specimen that is histologically necrotic. | public double getNecrosisPercentage()
{
return necrosisPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPercentageHeated();",
"java.lang.String getPercentage();",
"public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.ro... | [
"0.677338",
"0.64758766",
"0.64046705",
"0.6369462",
"0.6276829",
"0.6257536",
"0.619039",
"0.6164648",
"0.60948294",
"0.6077549",
"0.60566986",
"0.6014228",
"0.5996499",
"0.5982189",
"0.59544986",
"0.5933623",
"0.59202814",
"0.5913588",
"0.5902164",
"0.58792347",
"0.5869966"... | 0.62415534 | 6 |
Sets the percentage of specimen that is histologically necrotic. | public void setNecrosisPercentage(double necrosisPercentage)
{
this.necrosisPercentage = necrosisPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPercentage() {\n\t\tif (this.winnumber == 0) {\n\t\t\tthis.percentage = 0;\n\t\t} else {\n\t\t\tthis.percentage = (double) this.winnumber * 100 / (double) this.gamenumber;\n\t\t}\n\t}",
"public void setPercent(float value) {\n this.percent = value;\n }",
"public void setPercent(int per... | [
"0.68027174",
"0.6687748",
"0.6657939",
"0.6632357",
"0.65197873",
"0.64480096",
"0.64454806",
"0.6431377",
"0.6409661",
"0.6289879",
"0.62648904",
"0.61223185",
"0.61046976",
"0.6055078",
"0.5939306",
"0.5936896",
"0.59272754",
"0.589105",
"0.5875845",
"0.5866107",
"0.585283... | 0.5764878 | 28 |
Returns the percentage of histologically evident lymphocytes in the tissue specimen. | public double getLymphocyticPercentage()
{
return lymphocyticPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPercentageHeated();",
"java.lang.String getPercentage();",
"public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.ro... | [
"0.603675",
"0.59211344",
"0.5910809",
"0.562025",
"0.5619937",
"0.55425006",
"0.5513713",
"0.5450974",
"0.5446481",
"0.5412989",
"0.53889686",
"0.5385628",
"0.5383719",
"0.5371409",
"0.5368426",
"0.5304495",
"0.52478904",
"0.52438647",
"0.5213332",
"0.5211088",
"0.5209702",
... | 0.6118765 | 0 |
Sets the percentage of histologically evident lymphocytes in the tissue specimen. | public void setLymphocyticPercentage(double lymphocyticPercentage)
{
this.lymphocyticPercentage = lymphocyticPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPercent(int percent) {\n\t\tdouble multiplier = Math.pow((double) percent, CURVE)\n\t\t\t\t/ Math.pow(100.00d, CURVE);\n\t\tLog.v(TAG, \"setting percent to: \" + percent + \" via multiplier: \"\n\t\t\t\t+ multiplier);\n\t\tsetMeters(((MAX_METERS - MIN_METERS) * multiplier) + MIN_METERS);\n\t}",
"p... | [
"0.5969509",
"0.5946623",
"0.59188414",
"0.5852254",
"0.5815604",
"0.57723004",
"0.57719773",
"0.57545114",
"0.5752372",
"0.56960803",
"0.56927544",
"0.56586957",
"0.5658539",
"0.5658336",
"0.5645082",
"0.5618002",
"0.56161743",
"0.55993706",
"0.55691725",
"0.5551946",
"0.553... | 0.6278028 | 0 |
Returns the total cellularity percentage. | public double getTotalCellularityPercentage()
{
return totalCellularityPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getNeoplasticCellularityPercentage()\r\n \t{\r\n \t\treturn neoplasticCellularityPercentage;\r\n \t}",
"public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }",
"public double getOccupancyPercentage() throws SQLException {\n\t\tdouble result = (double) ge... | [
"0.7370171",
"0.7156582",
"0.7123638",
"0.70110387",
"0.695228",
"0.6927315",
"0.677926",
"0.66549",
"0.6616598",
"0.66001475",
"0.6543773",
"0.6530687",
"0.6502291",
"0.6368163",
"0.63637125",
"0.63597256",
"0.63067186",
"0.6285104",
"0.62833744",
"0.6280367",
"0.6246192",
... | 0.86931694 | 0 |
Sets the total cellularity percentage. | public void setTotalCellularityPercentage(double totalCellularityPercentage)
{
this.totalCellularityPercentage = totalCellularityPercentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getTotalCellularityPercentage()\r\n \t{\r\n \t\treturn totalCellularityPercentage;\r\n \t}",
"@Override\r\n\tpublic void setPercentage(BigDecimal percentage) {\r\n\t\tif(percentage==null) return;\r\n\t\tsuper.setCalculationPercent(new Percent(percentage));\r\n\t}",
"public void setOverallProgress... | [
"0.68925077",
"0.6351203",
"0.6340851",
"0.6318739",
"0.6307353",
"0.6280754",
"0.6197589",
"0.61372286",
"0.61041135",
"0.60657215",
"0.6014429",
"0.60065037",
"0.59990066",
"0.5944935",
"0.59406227",
"0.58902603",
"0.5879356",
"0.5870056",
"0.5854689",
"0.58310914",
"0.5828... | 0.79011637 | 0 |
Returns Histological Quality of the specimen. | public String getHistologicalQuality()
{
return histologicalQuality;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getQuality();",
"public double getQuality() {\n return quality;\n }",
"public String getQuality()\n\t{\n\t\treturn quality.getText();\n\t}",
"public float getQuality();",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return qua... | [
"0.7043967",
"0.6962642",
"0.6887842",
"0.68630195",
"0.6759927",
"0.6759927",
"0.6759927",
"0.6444302",
"0.64382744",
"0.64382744",
"0.6409024",
"0.6385806",
"0.6288716",
"0.62838155",
"0.62762135",
"0.62627923",
"0.6231812",
"0.6229007",
"0.622084",
"0.61183065",
"0.6082207... | 0.82325554 | 0 |
Sets Histological Quality of the specimen. | public void setHistologicalQuality(String histologicalQuality)
{
this.histologicalQuality = histologicalQuality;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setQuality(float quality);",
"public void setQuality(int quality) {\n this.quality = quality;\n }",
"public void setQuality(int quality) {\n this.quality = quality;\n }",
"public void setQuality(Integer quality) {\n this.quality = quality;\n }",
"public void setQua... | [
"0.69771695",
"0.6759861",
"0.6759861",
"0.6738541",
"0.67343646",
"0.6210795",
"0.62097555",
"0.5931641",
"0.588847",
"0.5829177",
"0.58133805",
"0.57999843",
"0.57553416",
"0.567917",
"0.56756693",
"0.5645397",
"0.562564",
"0.56190526",
"0.5602531",
"0.55819166",
"0.5557271... | 0.7807696 | 0 |
SUPERCLASS METHODS / (nonJavadoc) | public int getFormId()
{
return Constants.TISSUE_SPECIMEN_REVIEW_EVENT_PARAMETERS_FORM_ID;
} | {
"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 protected void prot() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\... | [
"0.72097605",
"0.7035863",
"0.6844203",
"0.68438154",
"0.68433785",
"0.6809523",
"0.66983473",
"0.6689233",
"0.66722196",
"0.6646582",
"0.6646582",
"0.66429454",
"0.6625669",
"0.6625669",
"0.6602703",
"0.6544018",
"0.6493904",
"0.6456972",
"0.6456605",
"0.64497066",
"0.644970... | 0.0 | -1 |
Overrides the validate method of ActionForm. | public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
ActionErrors errors = super.validate(mapping, request);
Validator validator = new Validator();
try
{
// // checks the neoplasticCellularityPercentage
if (neoplasticCellularityPercentage <= 0 || Double.isNaN(neoplasticCellularityPercentage) )
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.item.required",ApplicationProperties.getValue("tissuespecimenrevieweventparameters.neoplasticcellularitypercentage")));
}
// // checks the necrosisPercentage
if (necrosisPercentage <= 0 || Double.isNaN(necrosisPercentage) )
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.item.required",ApplicationProperties.getValue("tissuespecimenrevieweventparameters.necrosispercentage")));
}
// // checks the lymphocyticPercentage
if (lymphocyticPercentage <= 0 || Double.isNaN(lymphocyticPercentage) )
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.item.required",ApplicationProperties.getValue("tissuespecimenrevieweventparameters.lymphocyticpercentage")));
}
// // checks the totalCellularityPercentage
if (totalCellularityPercentage <= 0 || Double.isNaN(totalCellularityPercentage) )
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.item.required",ApplicationProperties.getValue("tissuespecimenrevieweventparameters.totalcellularitypercentage")));
}
// // checks the histologicalQuality
if (!validator.isValidOption(histologicalQuality) )
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.item.required",ApplicationProperties.getValue("tissuespecimenrevieweventparameters.histologicalquality")));
}
}
catch(Exception excp)
{
Logger.out.error(excp.getMessage());
}
return errors;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void validate() {\r\n }",
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"@Override\n\tprotected void validate(Controller c) {\n\n\t}",
"@Override\r\n\tpublic ActionErrors validate(ActionMapping mapping, HttpServletRequest request)\r\n\t{\n\t\treturn super.val... | [
"0.65440106",
"0.65400046",
"0.6535198",
"0.65179026",
"0.6510009",
"0.65070534",
"0.647296",
"0.6460709",
"0.6453041",
"0.6442449",
"0.6419701",
"0.6381101",
"0.6381101",
"0.63134533",
"0.6263814",
"0.6263814",
"0.6263814",
"0.62469715",
"0.6212103",
"0.6157189",
"0.612859",... | 0.5349395 | 84 |
Fetching data from server | @Override
public void run() {
load_remote_data();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void getDataFromServer();",
"protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"cat... | [
"0.7594814",
"0.7216227",
"0.71604574",
"0.70219445",
"0.6917009",
"0.6682017",
"0.6665734",
"0.6560504",
"0.65512246",
"0.65070814",
"0.6459355",
"0.6416419",
"0.6397365",
"0.63668895",
"0.6364156",
"0.63602525",
"0.632113",
"0.63144505",
"0.6274953",
"0.6269909",
"0.6265957... | 0.57853746 | 70 |
Fetching data from server | @Override
public void onRefresh() {
load_remote_data();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void getDataFromServer();",
"protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"cat... | [
"0.7594814",
"0.7216227",
"0.71604574",
"0.70219445",
"0.6917009",
"0.6682017",
"0.6665734",
"0.6560504",
"0.65512246",
"0.65070814",
"0.6459355",
"0.6416419",
"0.6397365",
"0.63668895",
"0.6364156",
"0.63602525",
"0.632113",
"0.63144505",
"0.6274953",
"0.6269909",
"0.6265957... | 0.0 | -1 |
Returns the name of this enum constant, converted to lowercase, with the first letter in uppercase. | @Override
public String toString() {
String prettyName = this.name();
prettyName = prettyName.toLowerCase();
prettyName = Utils.capitalizeFirstLetter(prettyName);
return prettyName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLowerCaseName() {\n\t\treturn getName().toLowerCase();\n\t}",
"public String asName() {\n return this.name().toLowerCase(Locale.getDefault());\n }",
"private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }",
"public String constant() {\n\t\tString tmp = method... | [
"0.6913987",
"0.6867441",
"0.6866031",
"0.6818485",
"0.6788569",
"0.67822504",
"0.66916",
"0.6647945",
"0.6524117",
"0.6499308",
"0.64500856",
"0.6342825",
"0.6333785",
"0.62283605",
"0.62157524",
"0.6146065",
"0.6078771",
"0.6020543",
"0.5981798",
"0.59785205",
"0.59341687",... | 0.6224765 | 14 |
0:0 1:0, 1 2:00, 01, 11, 10 3:000, 001, 011, 010, 110, 111, 101, 100 | public List<Integer> grayCode(int n) {
List<Integer> ret = new ArrayList<Integer>();
ret.add(0);
if (n==0){
return ret;
}
//couting loop
for (int i=0;i<n;i++){
int one = 1<<i;
//picking from the last element
for (int j=ret.size()-1;j>=0;j--){
ret.add(ret.get(j)^one);
}
}
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String format(String s){\n\t\tint len = s.length();\n\t\tfor (int i = 0; i < 6 - len; i++){\n\t\t\ts = \"0\" + s;\n\t\t}\n\t\t\n\t\treturn s;\n\t}",
"@Test\n public void calculationOnElevenDigitMsgIsCorrect() {\n final String msg = \"00110001110\";\n final int[] expectedMsg = {0,0,1,0, 1... | [
"0.55271274",
"0.5440205",
"0.5292832",
"0.52658594",
"0.5253864",
"0.5129914",
"0.51205564",
"0.509426",
"0.50914496",
"0.5066823",
"0.5055745",
"0.5050656",
"0.50499576",
"0.5038656",
"0.5021762",
"0.5013746",
"0.49929014",
"0.4987056",
"0.49859735",
"0.49850562",
"0.498115... | 0.0 | -1 |
Note: we avoid having a vararg method to avoid the array allocation that comes with it. | void checkType(int i, DataType.Name name) {
DataType defined = getType(i);
if (name != defined.getName())
throw new InvalidTypeException(String.format("Column %s is of type %s", getName(i), defined));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void arrayDemo() {\n\t}",
"public static <T> T[] f(T[] arg){\n return arg;\n }",
"Array createArray();",
"@Override\r\n\tpublic void visit(Array array) {\n\r\n\t}",
"void mo12207a(int[] iArr);",
"private ArrayOps() {\r\n }",
"public void b(Object... objArr) {\n }",
"@Ove... | [
"0.6465333",
"0.6390315",
"0.63457924",
"0.6243416",
"0.6233486",
"0.621348",
"0.6183389",
"0.6129436",
"0.61218137",
"0.61178064",
"0.6082186",
"0.6052959",
"0.6039027",
"0.6035948",
"0.6017638",
"0.59812593",
"0.59517956",
"0.5943635",
"0.59429526",
"0.5940399",
"0.59182376... | 0.0 | -1 |
The name of the keyspace this column is part of. | public String getKeyspace() {
return keyspace;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getCassandraName();",
"@Override\n public String getKeyspace() {\n Object ref = keyspace_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStri... | [
"0.74414605",
"0.71590346",
"0.71590346",
"0.71590346",
"0.71590346",
"0.71456313",
"0.71456313",
"0.71456313",
"0.71456313",
"0.6267423",
"0.6214873",
"0.6196658",
"0.6181346",
"0.617236",
"0.6156769",
"0.6156769",
"0.6156769",
"0.6156769",
"0.6134334",
"0.6120298",
"0.60345... | 0.7604451 | 0 |
The name of the table this column is part of. | public String getTable() {
return table;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(){\n\t\t\treturn tableName;\n\t\t}",
"public String getName() {\n return tableName;\n }",
"public String getDBTableName()\n\t{\n\t\treturn this.getClass().getSimpleName();\n\t}",
"public TableName name();",
"public String getTablename() {\n return tablename;\n }",
... | [
"0.82113117",
"0.8171298",
"0.79216385",
"0.7864569",
"0.7833518",
"0.7806101",
"0.7806101",
"0.7760133",
"0.7746819",
"0.77095723",
"0.76609576",
"0.76162875",
"0.7518383",
"0.7504219",
"0.7501066",
"0.7477263",
"0.74656564",
"0.74656564",
"0.74409854",
"0.74293226",
"0.7423... | 0.7196007 | 33 |
The name of the column. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(){\n\t\t\treturn columnName;\n\t\t}",
"public String getName() {\n return columnName;\n }",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }",
"public ja... | [
"0.87037474",
"0.8674439",
"0.8216888",
"0.8100499",
"0.7931803",
"0.7842206",
"0.78218657",
"0.77912265",
"0.7765129",
"0.7765129",
"0.77603364",
"0.7747395",
"0.7686213",
"0.7679939",
"0.7663385",
"0.7649435",
"0.7649435",
"0.7604878",
"0.7601145",
"0.75891435",
"0.7586783"... | 0.0 | -1 |
The type of the column. | public DataType getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Column.Type getType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrCol... | [
"0.8700308",
"0.82989126",
"0.8220824",
"0.8220824",
"0.8191908",
"0.80376947",
"0.77104545",
"0.7480525",
"0.73840654",
"0.73826015",
"0.7282693",
"0.72506815",
"0.72506815",
"0.72506815",
"0.72506815",
"0.7214939",
"0.7197881",
"0.71793914",
"0.7146973",
"0.7052915",
"0.701... | 0.6954672 | 22 |
If the Checkbox is checked ... | public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
// Set the appropriate text for the Checkbox
cb.setText("This checkbox is: checked");
// Log checked message
Log.i(TAG, "onCheckedChanged: This checkbox is: checked");
} else { // If the Checkbox isn't checked ...
// Set the appropriate text for the Checkbox
cb.setText("This checkbox is: unchecked");
// Log unchecked message
Log.i(TAG, "onCheckedChanged: This checkbox is: unchecked");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean CheckBox() {\n if (AseguradoCulpable.isSelected()) {\n return true;\n } else {\n return false;\n }\n }",
"boolean getIsChecked();",
"boolean isChecked();",
"boolean isChecked();",
"private boolean checkBox() {\n if(ToSCheckBox.isSelected()... | [
"0.7695676",
"0.7606689",
"0.75370985",
"0.75370985",
"0.7494805",
"0.73625034",
"0.73350346",
"0.72686243",
"0.71971536",
"0.7191208",
"0.7136806",
"0.7112426",
"0.7083001",
"0.7070633",
"0.7024563",
"0.7017863",
"0.7009667",
"0.69703543",
"0.69610095",
"0.6926982",
"0.69056... | 0.69397914 | 19 |
Snackbar.make( constraintLayout, msg ,Snackbar.LENGTH_SHORT).show(); | @Override
public void onClick(DialogInterface dialogInterface, int i) {
Log.d(TAG, "showMessageBox: " + msg);
// OrderMapActivity.super.onBackPressed();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void showErrorSnackbar();",
"private void showSnackbarMessage(String message){\n if(view != null){\n Snackbar.make(view, message, Snackbar.LENGTH_SHORT).show();\n }\n }",
"private void showSnackBar(String message) {\n if(getActivity()!=null) {\n Snackbar snackbar =... | [
"0.71302766",
"0.69407153",
"0.6873402",
"0.6857759",
"0.68322855",
"0.67586815",
"0.66679037",
"0.6657249",
"0.6610182",
"0.6494854",
"0.6483841",
"0.6454036",
"0.637755",
"0.63718915",
"0.636567",
"0.63138396",
"0.6306778",
"0.6281344",
"0.6275524",
"0.6274424",
"0.6242655"... | 0.0 | -1 |
method for show image from internal storage | private void loadImageFromStorage(String path) {
try {
File f = new File(path, "profile.jpg");
Bitmap b = BitmapFactory.decodeStream(new FileInputStream(f));
circleProfileDetailImage.setImageBitmap(b);
} catch (FileNotFoundException e) {
e.printStackTrace();
Log.d(TAG, "loadImageFromStorage: " + e.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showImageDetail() {\n }",
"private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName... | [
"0.75176924",
"0.7442684",
"0.72890127",
"0.7198475",
"0.6831532",
"0.6808114",
"0.6790233",
"0.6685998",
"0.6645939",
"0.66288435",
"0.654508",
"0.65420705",
"0.6522076",
"0.6518729",
"0.65032595",
"0.64700085",
"0.64640486",
"0.64480454",
"0.64254236",
"0.64221615",
"0.6401... | 0.0 | -1 |
Snackbar.make( constraintLayout, msg ,Snackbar.LENGTH_SHORT).show(); | @Override
public void onClick(DialogInterface dialogInterface, int i) {
Log.d(TAG, "showMessageBox: order field check " + msg);
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void showErrorSnackbar();",
"private void showSnackbarMessage(String message){\n if(view != null){\n Snackbar.make(view, message, Snackbar.LENGTH_SHORT).show();\n }\n }",
"private void showSnackBar(String message) {\n if(getActivity()!=null) {\n Snackbar snackbar =... | [
"0.71302766",
"0.69407153",
"0.6873402",
"0.6857759",
"0.68322855",
"0.67586815",
"0.66679037",
"0.6657249",
"0.6610182",
"0.6494854",
"0.6483841",
"0.6454036",
"0.637755",
"0.63718915",
"0.636567",
"0.63138396",
"0.6306778",
"0.6281344",
"0.6275524",
"0.6274424",
"0.6242655"... | 0.0 | -1 |
For each value swaps with next value until it gets in it's right position in array | @Override
protected void runAlgorithm() {
for (int i = 0; i < getArray().length; i++) {
for (int j = i + 1; j < getArray().length; j++) {
if (applySortingOperator(getValue(j), getValue(i))) {
swap(i, j);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void swapAdjacentElements(int[] values)\n {\n // your work here\n\n\n\n\n }",
"private static int[] ArraySwapper(int[] arr) {\n\t\tint size=Array.getLength(arr),temp;\n\t\tfor(int i=0;i<size/2;i++) {\n\t\t\ttemp =arr[i];\n\t\t\tarr[i]=arr[size-i-1];\n\t\t\tarr[size-i-1]=temp;\n\t\t}\n\t\treturn a... | [
"0.7276299",
"0.70822084",
"0.6536032",
"0.6443076",
"0.6432895",
"0.6427405",
"0.64075255",
"0.63915485",
"0.63698727",
"0.6368814",
"0.6339671",
"0.63325423",
"0.6305163",
"0.6279504",
"0.6275203",
"0.627153",
"0.6253449",
"0.62429625",
"0.6231827",
"0.6231028",
"0.617706",... | 0.63172776 | 12 |
Helper method for sending data to server | public void send(String msg){
try{
byte[] buf = msg.getBytes();
InetAddress address = InetAddress.getByName(server);
DatagramPacket packet = new DatagramPacket(buf, buf.length, address, PORT);
socket.send(packet);
}catch(Exception e){}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}",
"public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}",
"@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}",
"public void send(Object data) {\n... | [
"0.73565453",
"0.7339139",
"0.7226735",
"0.7167046",
"0.7149582",
"0.7112718",
"0.69979554",
"0.69962245",
"0.69752675",
"0.6968978",
"0.6968225",
"0.6953403",
"0.6944346",
"0.6942442",
"0.6930493",
"0.69178694",
"0.690763",
"0.6902587",
"0.6861651",
"0.68270314",
"0.68153304... | 0.0 | -1 |
TODO Autogenerated method stub | public boolean getHasGuessed() {
return this.hasGuessed;
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
Called just before this Command runs the first time | protected void initialize() {
System.out.println("initialize ReturnToStart");
Robot.claw.goRetract();
Robot.claw.goUp();
Robot.claw.goOpen();
Robot.claw.spinStop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void preRun() {\n super.preRun();\n }",
"protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}",
"@Override\n public void beforeFirstLogic() {\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"protected void onFirstUse() {}",
"@O... | [
"0.7113986",
"0.6542487",
"0.64347786",
"0.6433418",
"0.64082474",
"0.6353506",
"0.6309701",
"0.62537354",
"0.62473047",
"0.62407833",
"0.6167777",
"0.6163407",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.61080366",
"0.608483",
"0.608483",
"0.60805327"... | 0.0 | -1 |
Called repeatedly when this Command is scheduled to run | protected void execute() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n public void run() {\n schedule();\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"public void run() {\n\t\texecuteCommand( client, false );\n\t}",
"... | [
"0.6689458",
"0.6631115",
"0.6566414",
"0.65512514",
"0.6530515",
"0.6488629",
"0.64019585",
"0.6380878",
"0.637645",
"0.6363615",
"0.63557744",
"0.6330997",
"0.6295938",
"0.6275704",
"0.6268897",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.626567... | 0.0 | -1 |
Make this return true when this Command no longer needs to run execute() | protected boolean isFinished() {
return Robot.claw.isRetracted();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean execute() {\n return false;\n }",
"@Override\n public boolean execute() {\n return false;\n }",
"public boolean execute(){\n return false;\n }",
"@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}",
"p... | [
"0.77345294",
"0.77345294",
"0.7678753",
"0.76457655",
"0.75966",
"0.7554271",
"0.6877811",
"0.6748956",
"0.6728847",
"0.66855806",
"0.65891784",
"0.65624696",
"0.64980483",
"0.63857424",
"0.63736373",
"0.6356819",
"0.6356819",
"0.63498974",
"0.63401324",
"0.63290936",
"0.632... | 0.0 | -1 |
Called once after isFinished returns true | protected void end() {
System.out.println("end ReturnToStart");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\... | [
"0.85873747",
"0.8541597",
"0.8335923",
"0.8333603",
"0.8333603",
"0.830866",
"0.830667",
"0.8300791",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82794416",
"0.82... | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | protected void interrupted() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi... | [
"0.5763735",
"0.5597857",
"0.5525979",
"0.5434967",
"0.53826046",
"0.53644043",
"0.5349786",
"0.5344097",
"0.5329482",
"0.53283983",
"0.5299414",
"0.5261541",
"0.5256005",
"0.52316135",
"0.52242804",
"0.52031666",
"0.5192441",
"0.5177707",
"0.5162963",
"0.51539654",
"0.514155... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
try {
Class.forName("org.apache.hive.jdbc.HiveDriver");
Connection conn = DriverManager.getConnection("jdbc:hive2://localhost:10000/praticedb","root","root");
Statement st = conn.createStatement();
String sql = "desc employee";
ResultSet rs = st.executeQuery(sql);
while(rs.next())
{
System.out.println(rs.getString(1)+","+rs.getString(2));
}
}
catch (ClassNotFoundException e)
{
e.printStackTrace();
}
catch (SQLException e)
{
e.printStackTrace();
}
} | {
"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 |
construct the message to send | public void ping() {
Header.Builder hb = Header.newBuilder();
hb.setNodeId(999);
hb.setTime(System.currentTimeMillis());
hb.setDestination(-1);
CommandMessage.Builder rb = CommandMessage.newBuilder();
rb.setHeader(hb);
rb.setPing(true);
try {
// direct no queue
// CommConnection.getInstance().write(rb.build());
// using queue
CommConnection.getInstance().enqueue(rb.build());
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Message createMsg(long type,Object event){\r\n Message msg=new Message(0,type,0,\"\",new Object[]{event},\r\n System.currentTimeMillis(),0,0,null,0,0,0);\r\n return msg;\r\n }",
"protected ParseObject createMessage() {\n //format single variables appropr... | [
"0.67195654",
"0.670178",
"0.6629372",
"0.660413",
"0.65892804",
"0.65833956",
"0.6567479",
"0.65656394",
"0.6553334",
"0.65147656",
"0.6492187",
"0.6444442",
"0.64440364",
"0.64394814",
"0.64393705",
"0.64046407",
"0.6392068",
"0.63753426",
"0.6371684",
"0.634536",
"0.634322... | 0.0 | -1 |
Since the service/server is asychronous we need a unique ID to associate our requests with the server's reply | private synchronized long nextId() {
return ++curID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }",
"@Override\n public void onResponse(String response) {\n ... | [
"0.6730683",
"0.6397713",
"0.62592113",
"0.60223806",
"0.5955293",
"0.5955293",
"0.5941683",
"0.5932567",
"0.5917497",
"0.59074306",
"0.59005183",
"0.59005183",
"0.5896318",
"0.5888092",
"0.58852184",
"0.58651847",
"0.57197714",
"0.56705064",
"0.56552976",
"0.56492007",
"0.56... | 0.0 | -1 |
construct the message to send | public void sendFile(ByteString bs, String filename, int numOfChunks, int chunkId) {
Header.Builder hb = Header.newBuilder();
hb.setNodeId(999);
hb.setTime(System.currentTimeMillis());
hb.setDestination(-1);
Task.Builder tb = Task.newBuilder();
tb.setNoOfChunks(numOfChunks); //Num of chunks
tb.setChunkNo(chunkId); //chunk id
tb.setTaskType(Task.TaskType.WRITE);
try {
tb.setSender(InetAddress.getLocalHost().getHostAddress());
} catch (UnknownHostException e1) {
e1.printStackTrace();
}
tb.setFilename(filename);
tb.setChunk(bs);
CommandMessage.Builder rb = CommandMessage.newBuilder();
rb.setHeader(hb);
rb.setTask(tb);
rb.setMessage(filename);
try {
// direct no queue
// CommConnection.getInstance().write(rb.build());
// using queue
CommConnection.getInstance().enqueue(rb.build());
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Message createMsg(long type,Object event){\r\n Message msg=new Message(0,type,0,\"\",new Object[]{event},\r\n System.currentTimeMillis(),0,0,null,0,0,0);\r\n return msg;\r\n }",
"protected ParseObject createMessage() {\n //format single variables appropr... | [
"0.67195654",
"0.670178",
"0.6629372",
"0.660413",
"0.65892804",
"0.65833956",
"0.6567479",
"0.65656394",
"0.6553334",
"0.65147656",
"0.6492187",
"0.6444442",
"0.64440364",
"0.64394814",
"0.64393705",
"0.64046407",
"0.6392068",
"0.63753426",
"0.6371684",
"0.634536",
"0.634322... | 0.0 | -1 |
Obtiene el valor de la propiedad tipo. | public int getTipo() {
return tipo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTipo() {\r\n return tipo;\r\n }",
"public String getTipo() {\r\n return tipo;\r\n }",
"public String getTipo(){\r\n return tipo;\r\n }",
"public String getTipo(){\n return tipo;\n }",
"public String getTipo(){\n\t\treturn this.tipo;\n\t}",
"public ... | [
"0.7964814",
"0.7964814",
"0.790429",
"0.7829352",
"0.77609086",
"0.7699179",
"0.7699179",
"0.7699179",
"0.7699179",
"0.76655775",
"0.75957626",
"0.75957626",
"0.75948703",
"0.75608426",
"0.75382954",
"0.7536178",
"0.75097615",
"0.75097615",
"0.74725705",
"0.7432456",
"0.7228... | 0.7598397 | 10 |
Define el valor de la propiedad tipo. | public void setTipo(int value) {
this.tipo = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTipo(String tipo);",
"public void setTipo(String tipo) {\r\n this.tipo = tipo;\r\n }",
"public void setTipo(String x){\r\n tipo = x;\r\n }",
"private void setTipo(int tipo) {\r\n\t\tthis.tipo = tipo;\r\n\t}",
"public void setTipo(int tipo) {\r\n this.tipo = tipo;\r... | [
"0.7955963",
"0.7830411",
"0.78200376",
"0.77555865",
"0.77251744",
"0.75844395",
"0.75844395",
"0.751778",
"0.7471925",
"0.7471836",
"0.7471204",
"0.73796463",
"0.73654455",
"0.73654455",
"0.71356106",
"0.7111478",
"0.7097564",
"0.70463365",
"0.70383066",
"0.70383066",
"0.70... | 0.7479198 | 8 |
deal with the call c | public void handleCall(Call c) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void c0() {\n\t}",
"private void comerComestible(Celda c) {\n // TODO implement here\n }",
"static void perform_cnc(String passed){\n\t\tint type = type_of_cnc(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_no_carry(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\tpublic... | [
"0.6344594",
"0.62676555",
"0.61274827",
"0.6061193",
"0.60487646",
"0.6029388",
"0.59568703",
"0.5907565",
"0.58629745",
"0.5860663",
"0.5831424",
"0.5829063",
"0.5767637",
"0.57406974",
"0.5733037",
"0.5715924",
"0.5707827",
"0.5705246",
"0.5638385",
"0.5613414",
"0.5597576... | 0.70291835 | 0 |
Gets the operation class full path. | public String getOperationClassFullPath() {
return operationClassFullPath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOperationClassPath() {\n\t\treturn operationClassPath;\n\t}",
"public String getOperation () {\n return operation;\n }",
"public String getOperation () {\n return operation;\n }",
"public static String getFullMethodPath () \t{\n\t\t\n\t\treturn Thread.currentThread().getS... | [
"0.7410481",
"0.6402276",
"0.6402276",
"0.6388888",
"0.63790804",
"0.63790804",
"0.63709563",
"0.6340945",
"0.6340945",
"0.633614",
"0.63339883",
"0.62915045",
"0.6282907",
"0.6251333",
"0.6218218",
"0.6189192",
"0.6183176",
"0.61466056",
"0.61466056",
"0.61388683",
"0.613755... | 0.8368602 | 0 |
Sets the operation class full path. | public void setOperationClassFullPath(String operationClassFullPath) {
this.operationClassFullPath = operationClassFullPath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOperationClassFullPath() {\n\t\treturn operationClassFullPath;\n\t}",
"public void setOperationClassPath(String operationClassPath) {\n\t\tthis.operationClassPath = operationClassPath;\n\t}",
"public String getOperationClassPath() {\n\t\treturn operationClassPath;\n\t}",
"public void setOper... | [
"0.6995012",
"0.65420717",
"0.6096376",
"0.5469156",
"0.53175765",
"0.5300261",
"0.5268427",
"0.5268427",
"0.5261051",
"0.5204072",
"0.5184392",
"0.5173987",
"0.5173987",
"0.51710993",
"0.51633304",
"0.51633304",
"0.5147559",
"0.5147559",
"0.51072025",
"0.5105475",
"0.5105142... | 0.7367754 | 0 |
Instantiates a new mapping sheet row. | public MappingSheetRow(List<FilterProperties> input,
OperationClassProperty operationClass,
List<FilterProperties> outputList) {
this.inputFieldList = input;
this.externalExpresion=new ExternalWidgetData(false, null);
this.externalOperation=new ExternalWidgetData(false, null);
this.outputList = outputList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}",
"Row createRow();",
"public Row createRow(Sheet sheet, int r) {\n Row row = sheet.createRow(r);\n return row;\n }",
"private Row() {\n }",
"public RowMapperSheetExtractor(RowMapper<T> rowMapper) {\n\t... | [
"0.65937173",
"0.6589593",
"0.6300208",
"0.6010381",
"0.59667116",
"0.5802184",
"0.5702516",
"0.569837",
"0.5684921",
"0.55820125",
"0.5510518",
"0.54455227",
"0.543969",
"0.5398297",
"0.5361556",
"0.53594935",
"0.5316256",
"0.5308508",
"0.5300848",
"0.5300054",
"0.5297266",
... | 0.56533575 | 9 |
Instantiates a new mapping sheet row. | public MappingSheetRow(List<FilterProperties> input,
List<FilterProperties> outputList,
String operationId,
String comBoxValue,
String operationClassPath,
List<NameValueProperty> nameValueProperty,
boolean isClassParameter,
String wholeOperationParameterValue,
boolean isWholeOperationParameter,
String operationClassFullPath,
boolean isExpression,
ExpressionEditorData expressionEditorData,
ExpressionEditorData mergeExpressionEditorDataForGroupCombine, boolean isActive
) {
this.inputFieldList = input;
this.outputList = outputList;
this.comboBoxValue = comBoxValue;
this.operationClassPath = operationClassPath;
this.operationId=operationId;
this.setClassParameter(isClassParameter);
this.nameValuePropertyList=nameValueProperty;
this.wholeOperationParameterValue=wholeOperationParameterValue;
this.isWholeOperationParameter=isWholeOperationParameter;
this.operationClassFullPath=operationClassFullPath;
this.isExpression=isExpression;
this.expressionEditorData=expressionEditorData;
this.mergeExpressionDataForGroupCombine = mergeExpressionEditorDataForGroupCombine;
this.isActive=isActive;
this.externalExpresion=new ExternalWidgetData(false, null);
this.externalOperation=new ExternalWidgetData(false, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}",
"Row createRow();",
"public Row createRow(Sheet sheet, int r) {\n Row row = sheet.createRow(r);\n return row;\n }",
"private Row() {\n }",
"public RowMapperSheetExtractor(RowMapper<T> rowMapper) {\n\t... | [
"0.65937173",
"0.6589593",
"0.6300208",
"0.6010381",
"0.59667116",
"0.5802184",
"0.5702516",
"0.569837",
"0.5684921",
"0.56533575",
"0.55820125",
"0.5510518",
"0.54455227",
"0.543969",
"0.5398297",
"0.5361556",
"0.53594935",
"0.5316256",
"0.5308508",
"0.5300848",
"0.5300054",... | 0.5071215 | 49 |
Instantiates a new mapping sheet row. | public MappingSheetRow(List<FilterProperties> input, List<FilterProperties> outputList, String comBoxValue,String operationClassPath,boolean isClassParameter,String operationId,
List<NameValueProperty> nameValueProperty,boolean isExpression,ExpressionEditorData expressionEditorData,ExpressionEditorData mergeExpressionEditorDataForGroupCombine,boolean isActive)
{
this.inputFieldList = input;
this.outputList = outputList;
this.comboBoxValue = comBoxValue;
this.operationClassPath = operationClassPath;
this.operationId=operationId;
this.nameValuePropertyList=nameValueProperty;
this.setClassParameter(isClassParameter);
this.isExpression=isExpression;
this.expressionEditorData=expressionEditorData;
this.mergeExpressionDataForGroupCombine=mergeExpressionEditorDataForGroupCombine;
this.isActive=isActive;
this.externalExpresion=new ExternalWidgetData(false, null);
this.externalOperation=new ExternalWidgetData(false, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}",
"Row createRow();",
"public Row createRow(Sheet sheet, int r) {\n Row row = sheet.createRow(r);\n return row;\n }",
"private Row() {\n }",
"public RowMapperSheetExtractor(RowMapper<T> rowMapper) {\n\t... | [
"0.65937173",
"0.6589593",
"0.6300208",
"0.6010381",
"0.59667116",
"0.5802184",
"0.5702516",
"0.569837",
"0.5684921",
"0.56533575",
"0.55820125",
"0.5510518",
"0.54455227",
"0.543969",
"0.5398297",
"0.5361556",
"0.53594935",
"0.5316256",
"0.5308508",
"0.5300848",
"0.5300054",... | 0.50768656 | 48 |
Checks if is whole operation parameter. | public boolean isWholeOperationParameter() {
return isWholeOperationParameter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isParameter() {\n\t\treturn isWholeOperationParameter;\n\t}",
"public void setWholeOperationParameter(boolean isWholeOperationParameter) {\n\t\tthis.isWholeOperationParameter = isWholeOperationParameter;\n\t}",
"private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\... | [
"0.7921462",
"0.68996465",
"0.6796924",
"0.67640483",
"0.6734165",
"0.6714367",
"0.66211617",
"0.6607944",
"0.64789623",
"0.62762153",
"0.6233113",
"0.6206728",
"0.6144016",
"0.6116702",
"0.6090937",
"0.6058219",
"0.60192597",
"0.6018508",
"0.5982017",
"0.5974815",
"0.5960185... | 0.8321064 | 0 |
Sets the whole operation parameter. | public void setWholeOperationParameter(boolean isWholeOperationParameter) {
this.isWholeOperationParameter = isWholeOperationParameter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWholeOperationParameterValue(String wholeOperationParameterValue) {\n\t\tthis.wholeOperationParameterValue = wholeOperationParameterValue;\n\t}",
"public void setParameter(String parName, Object parVal) throws HibException ;",
"public void setAxisOperation(org.apache.axis2.description.xsd.AxisOp... | [
"0.68679434",
"0.6360151",
"0.6323881",
"0.6234686",
"0.61420745",
"0.6103357",
"0.60331607",
"0.6025437",
"0.59127504",
"0.5898067",
"0.5879088",
"0.5877836",
"0.5861325",
"0.58373964",
"0.58342487",
"0.58313346",
"0.58129185",
"0.57917184",
"0.57847923",
"0.57827324",
"0.57... | 0.6960318 | 0 |
Gets the whole operation parameter value. | public String getWholeOperationParameterValue() {
return wholeOperationParameterValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Value getValue()\r\n\t{\r\n\t\treturn paramValue;\r\n\t}",
"Parameter getParameter();",
"int getOperationValue();",
"private OperatorParameter getParameter(LauncherOperations oOperation) {\r\n\t\tUtils.debugLog(\"ProcessingResources.OperatorParameter( LauncherOperations )\");\r\n\t\tswitch (oOperatio... | [
"0.7019264",
"0.6896014",
"0.68863326",
"0.68333787",
"0.67940444",
"0.67876756",
"0.67673165",
"0.6684464",
"0.6641276",
"0.6615081",
"0.6597316",
"0.65848166",
"0.65683264",
"0.6518442",
"0.6493282",
"0.64762366",
"0.64012307",
"0.63779175",
"0.63779175",
"0.6375615",
"0.62... | 0.80767673 | 0 |
Sets the whole operation parameter value. | public void setWholeOperationParameterValue(String wholeOperationParameterValue) {
this.wholeOperationParameterValue = wholeOperationParameterValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setParamValue(String label, Object value);",
"public void setParamValue(String label, int value);",
"void setParameter(String name, Object value);",
"void setParameter(String name, String value);",
"public void set(){\n if (getRhs().isResolved() && getRhs().isSimpleValue()){\n ... | [
"0.6563167",
"0.6430341",
"0.64081144",
"0.63961303",
"0.6374817",
"0.63718337",
"0.6363433",
"0.63602024",
"0.63066524",
"0.62881154",
"0.62735623",
"0.6251138",
"0.624904",
"0.6231896",
"0.6223131",
"0.6219291",
"0.61955726",
"0.6190321",
"0.61516994",
"0.6134935",
"0.61200... | 0.6818472 | 0 |
Gets the name value property. | public List<NameValueProperty> getNameValueProperty() {
return nameValuePropertyList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}",
"public AXValue getName() {\n return name;\n }",
"public String get(final String name) {\r\n return (String) properties.get(name);\r\n }",
"String getValueName();",
"public String getProperty(String name) {\n ... | [
"0.795093",
"0.7530668",
"0.7412881",
"0.73241675",
"0.7301845",
"0.7290613",
"0.7286229",
"0.7286229",
"0.7223246",
"0.716087",
"0.7146717",
"0.71286356",
"0.71219206",
"0.70712924",
"0.70548606",
"0.7014848",
"0.7010675",
"0.6997731",
"0.6985796",
"0.69543236",
"0.6946039",... | 0.70524675 | 15 |
Sets the name value property. | public void setNameValueProperty(List<NameValueProperty> nameValueProperty) {
this.nameValuePropertyList = nameValueProperty;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(final String nameValue) {\n this.name = nameValue;\n }",
"public void setName(final String nameValue) {\n this.name = nameValue;\n }",
"public void setName(final String nameValue) {\n this.name = nameValue;\n }",
"public void setName(f... | [
"0.83594066",
"0.83594066",
"0.83594066",
"0.8305066",
"0.8305066",
"0.8305066",
"0.81339014",
"0.8109016",
"0.8033632",
"0.7912552",
"0.77843773",
"0.7727259",
"0.7727259",
"0.7692022",
"0.7680998",
"0.7663483",
"0.7649737",
"0.764369",
"0.7638668",
"0.7637967",
"0.76214474"... | 0.0 | -1 |
Gets the operation ID. | public String getOperationID() {
return operationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OperationIdT getOperationId();",
"java.lang.String getOperationId();",
"com.google.protobuf.ByteString getOperationIdBytes();",
"public Integer getOperationId() {\n return operationId;\n }",
"public String getOperationId() {\n return this.operationId;\n }",
"String getForOperationId()... | [
"0.8679201",
"0.8620999",
"0.82406884",
"0.8141752",
"0.8005612",
"0.772869",
"0.7550218",
"0.74790794",
"0.74790794",
"0.74790794",
"0.74790794",
"0.7209858",
"0.69177634",
"0.688972",
"0.6883307",
"0.67939574",
"0.6590425",
"0.6574381",
"0.6518789",
"0.6473215",
"0.64517474... | 0.8089065 | 4 |
Sets the operation ID. | public void setOperationID(String operaionId) {
this.operationId = operaionId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOperationId(Integer operationId) {\n this.operationId = operationId;\n }",
"public void setOperationId(String operationId) {\n this.operationId = operationId;\n }",
"public Builder setHjOpId(int value) {\n bitField0_ |= 0x00000040;\n hjOpId_ = value;\n onChange... | [
"0.68539214",
"0.6712783",
"0.6708485",
"0.64889455",
"0.6331119",
"0.62707984",
"0.6245245",
"0.6234366",
"0.6219773",
"0.6185572",
"0.61656785",
"0.61656785",
"0.61656785",
"0.61656785",
"0.614329",
"0.61381733",
"0.6127956",
"0.6127956",
"0.6127956",
"0.6127956",
"0.612795... | 0.66769034 | 3 |
Gets the combo box value. | public String getComboBoxValue() {
return comboBoxValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Room RoomComboBoxValue()\r\n\t{\r\n\t\tRoom r = (Room) roomComboBox.getSelectedItem();\r\n\t\treturn r;\r\n\t}",
"private JComboBox getValue() {\n\t\tif (value == null) {\n\t\t\tvalue = new JComboBox();\n\t\t\tvalue.setModel(new DefaultComboBoxModel(new String [] {\"0\", \"1\", \"2\", \"3\", \"4\", \"5\"... | [
"0.7853836",
"0.7684798",
"0.762069",
"0.7183468",
"0.7054016",
"0.7033021",
"0.70163316",
"0.69983286",
"0.69451064",
"0.68414783",
"0.68244267",
"0.6771928",
"0.6688988",
"0.6673388",
"0.65966517",
"0.654954",
"0.6549128",
"0.6485211",
"0.64832133",
"0.64682466",
"0.6465776... | 0.8241671 | 0 |
Sets the combo box value. | public void setComboBoxValue(String comboBoxValue) {
this.comboBoxValue = comboBoxValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setValue(Object value) {\n\t\tint id = ((VObject) value).getId();\n\t\tItemData item = initItemData(id);\n\t\t((Combobox) component).setText(item.getLabel());\n\t\tsuper.setValue(value);\n\t}",
"public void setCombo(Object newValue);",
"public void setComboboxValue(WebElement element, ... | [
"0.78115946",
"0.7100928",
"0.6891805",
"0.6816961",
"0.6584556",
"0.65328366",
"0.6392046",
"0.638392",
"0.63286483",
"0.62594134",
"0.62584156",
"0.61883074",
"0.61622965",
"0.61371166",
"0.6125114",
"0.61095923",
"0.6077927",
"0.59983265",
"0.59634125",
"0.59570694",
"0.59... | 0.6907998 | 2 |
Gets the operation class path. | public String getOperationClassPath() {
return operationClassPath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOperationClassFullPath() {\n\t\treturn operationClassFullPath;\n\t}",
"private Path getClasspath() {\n return getRef().classpath;\n }",
"public String getOperation () {\n return operation;\n }",
"public String getOperation () {\n return operation;\n }",
"Strin... | [
"0.80067813",
"0.64149964",
"0.61538416",
"0.61538416",
"0.61135626",
"0.61135626",
"0.6110105",
"0.6110105",
"0.6105324",
"0.60836345",
"0.60660607",
"0.6048165",
"0.60065305",
"0.59934044",
"0.59777814",
"0.59596413",
"0.5954042",
"0.5954042",
"0.5951925",
"0.5930973",
"0.5... | 0.78681964 | 1 |
Sets the operation class path. | public void setOperationClassPath(String operationClassPath) {
this.operationClassPath = operationClassPath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOperationClassFullPath(String operationClassFullPath) {\n\t\tthis.operationClassFullPath = operationClassFullPath;\n\t}",
"public String getOperationClassPath() {\n\t\treturn operationClassPath;\n\t}",
"public String getOperationClassFullPath() {\n\t\treturn operationClassFullPath;\n\t}",
"pub... | [
"0.65939534",
"0.647607",
"0.6271337",
"0.5702035",
"0.5534784",
"0.5491456",
"0.54696846",
"0.5460878",
"0.53856975",
"0.53440505",
"0.53035116",
"0.53030795",
"0.5265289",
"0.5260808",
"0.5260808",
"0.5216821",
"0.5211905",
"0.51947665",
"0.5179031",
"0.5149737",
"0.5125947... | 0.7176184 | 0 |
Checks if is parameter. | public boolean isParameter() {
return isWholeOperationParameter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameterDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isParameterMark())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public boolean hasParameter(){\n\t\tif (parame... | [
"0.8058497",
"0.8055323",
"0.78951365",
"0.78404754",
"0.7837826",
"0.75669324",
"0.7508853",
"0.7445839",
"0.7346936",
"0.72617525",
"0.721173",
"0.71643734",
"0.7155686",
"0.71066576",
"0.70246994",
"0.70242214",
"0.69360137",
"0.6915175",
"0.6913527",
"0.6826885",
"0.67922... | 0.7664694 | 5 |
add put tests with Accumulator | @Test public void putAcc() {
CSVLine c = new Sorterd();
final Last a = new Last("strike");
c = c.put(a);
azzert.that(c.keys().iterator().next() + "", is("strike"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void testPutReturnsRightValueAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n\n assertEquals(\"value5\", l.put(\"key5\", \"another value\"));\n }",
"@Test\n public void put() throws Exception {\... | [
"0.684626",
"0.65592265",
"0.64677703",
"0.6309724",
"0.62775964",
"0.62724626",
"0.62387526",
"0.6195154",
"0.6186767",
"0.618157",
"0.6095352",
"0.60269636",
"0.5968617",
"0.592376",
"0.58968836",
"0.5877374",
"0.5867573",
"0.5825144",
"0.5824473",
"0.5805137",
"0.57316196"... | 0.518288 | 72 |
add put tests with Accumulator | @Test public void putAcc1() {
CSVLine c = new Sorterd();
final Last a = new Last("strike");
a.add(5);
c = c.put(a);
azzert.that(c.values().iterator().next() + "", is("5"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void testPutReturnsRightValueAfterMultiplePuts() {\n MyList l = new MyList();\n for (int i = 0; i < 10; i++)\n l.put(\"key\" + i, \"value\" + i);\n\n assertEquals(\"value5\", l.put(\"key5\", \"another value\"));\n }",
"@Test\n public void put() throws Exception {\... | [
"0.6848965",
"0.65611506",
"0.6467994",
"0.63111126",
"0.62801856",
"0.62760144",
"0.62388575",
"0.6198571",
"0.6190037",
"0.6183526",
"0.6098145",
"0.60289454",
"0.5972627",
"0.59247303",
"0.59004533",
"0.5878005",
"0.5867479",
"0.5826209",
"0.58259207",
"0.5810476",
"0.5734... | 0.0 | -1 |
Obtains a user from DB by its username. | @Override
public UserDetails loadUserByUsername(String username) {
UserDetails userDetails = null;
if (!StringUtils.isEmpty(username)) {
User user = userRepository.findByUsername(username);
if (null != user) {
List<GrantedAuthority> authorities = Utils.getAuthorities(user.getRole());
userDetails = new org.springframework.security.core.userdetails.User(user.getUsername(), user.getPassword(), authorities);
} else {
String errorMsg = MessageFormat.format("Username {0} not found", username);
throw new UsernameNotFoundException(errorMsg);
}
}
return userDetails;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getSpecificUser(String username);",
"User get(String username) throws UserNotFoundException, SQLException;",
"@Override\n\tpublic User getByUserName(String username) {\n\t\tUser user = userDao.getByUserName(username);\n\t\treturn user;\n\t}",
"@Override\n\tpublic User getuser(String username) \n\... | [
"0.81270975",
"0.8110906",
"0.8062813",
"0.7976368",
"0.7963727",
"0.7918895",
"0.79044825",
"0.7899417",
"0.78889436",
"0.78889436",
"0.78889436",
"0.7885021",
"0.7879467",
"0.78684187",
"0.78590816",
"0.78589267",
"0.7855931",
"0.7841331",
"0.77751535",
"0.7772917",
"0.7772... | 0.0 | -1 |
run la methode utilise une boucle infinie pour faire redescendre l'oiseau | @Override
public void run() {
while (!player.gameEnd) {
if (fst) {
try {
Thread.sleep(2000);
fst = false ;
}catch (Exception e ) {
e.printStackTrace();
}
}
player.moveDownn();
try {
Thread.sleep(time_to_sleep);
} catch (Exception e) {
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void baocun() {\n\t\t\n\t}",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n public void... | [
"0.7289027",
"0.670795",
"0.6687202",
"0.66099966",
"0.6560918",
"0.6508639",
"0.63874507",
"0.6351612",
"0.63080263",
"0.62917507",
"0.62585306",
"0.623782",
"0.6216547",
"0.6216366",
"0.6216366",
"0.6206132",
"0.6161192",
"0.61503994",
"0.61488944",
"0.6144",
"0.6137201",
... | 0.0 | -1 |
Creates new form ClassesWindow | public ClassesWindow(String cName) {
initComponents();
method();
className.setText(cName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}",
"private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.... | [
"0.6898762",
"0.6700558",
"0.66882396",
"0.6668368",
"0.6652451",
"0.6634941",
"0.6634941",
"0.6634941",
"0.6634941",
"0.6634941",
"0.6634941",
"0.6634941",
"0.66039896",
"0.6603714",
"0.6596214",
"0.65294755",
"0.6496095",
"0.6483644",
"0.6475775",
"0.64520854",
"0.6442224",... | 0.7126566 | 0 |
This method is called from within the constructor to initialize the form. WAR NING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
classWindowPanel = new javax.swing.JPanel();
classWindowBar = new javax.swing.JPanel();
classTitle = new javax.swing.JLabel();
className = new javax.swing.JLabel();
classWindowArea = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
detailTable = new javax.swing.JTable();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
search = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jScrollPane2 = new javax.swing.JScrollPane();
searchTable = new javax.swing.JTable();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
classWindowPanel.setLayout(new javax.swing.BoxLayout(classWindowPanel, javax.swing.BoxLayout.Y_AXIS));
classWindowBar.setBackground(new java.awt.Color(51, 51, 51));
classWindowBar.setMaximumSize(new java.awt.Dimension(950, 45));
classWindowBar.setMinimumSize(new java.awt.Dimension(950, 45));
classWindowBar.setPreferredSize(new java.awt.Dimension(950, 45));
classWindowBar.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 10, 10));
classTitle.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
classTitle.setForeground(new java.awt.Color(255, 255, 255));
classTitle.setText("Class ");
classWindowBar.add(classTitle);
className.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
className.setForeground(new java.awt.Color(255, 255, 255));
classWindowBar.add(className);
classWindowPanel.add(classWindowBar);
classWindowArea.setBackground(new java.awt.Color(255, 255, 255));
detailTable.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
detailTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null}
},
new String [] {
"Roll No", "Name", "Father", "Fee"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
};
boolean[] canEdit = new boolean [] {
false, false, false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jScrollPane1.setViewportView(detailTable);
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel1.setText("Number of Students");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
search.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton1.setText("Search");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
searchTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null}
},
new String [] {
"Roll No", "Name", "Father", "Fee"
}
));
jScrollPane2.setViewportView(searchTable);
javax.swing.GroupLayout classWindowAreaLayout = new javax.swing.GroupLayout(classWindowArea);
classWindowArea.setLayout(classWindowAreaLayout);
classWindowAreaLayout.setHorizontalGroup(
classWindowAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(classWindowAreaLayout.createSequentialGroup()
.addGap(34, 34, 34)
.addGroup(classWindowAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 881, Short.MAX_VALUE)
.addGroup(classWindowAreaLayout.createSequentialGroup()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(classWindowAreaLayout.createSequentialGroup()
.addComponent(search, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jScrollPane2))
.addContainerGap(35, Short.MAX_VALUE))
);
classWindowAreaLayout.setVerticalGroup(
classWindowAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, classWindowAreaLayout.createSequentialGroup()
.addGap(32, 32, 32)
.addGroup(classWindowAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(classWindowAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(classWindowAreaLayout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(classWindowAreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(search, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(classWindowAreaLayout.createSequentialGroup()
.addGap(80, 80, 80)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(51, Short.MAX_VALUE))
);
classWindowPanel.add(classWindowArea);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(classWindowPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(classWindowPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public frmRectangulo() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public Form()... | [
"0.7381882",
"0.7377425",
"0.7371908",
"0.7371908",
"0.7371908",
"0.73706937",
"0.7322179",
"0.73106563",
"0.72993296",
"0.7270897",
"0.7259668",
"0.72546166",
"0.7199069",
"0.7184749",
"0.716575",
"0.71413887",
"0.71316373",
"0.7129732",
"0.7094089",
"0.70746595",
"0.7071602... | 0.0 | -1 |
metodo para inserir o nome na tabela conserto | public void inserir(Conserto conserto) throws SQLException{
conecta = FabricaConexao.conexaoBanco();
Date dataentradasql = new Date(conserto.getDataEntrada().getTime());
//Date datasaidasql = new Date(conserto.getDataSaida().getTime());
sql = "insert into conserto (concodigo, condataentrada, condatasaida, concarchassi, conoficodigo) values (?, ?, ?, ?, ?)";
pstm = conecta.prepareStatement(sql);
pstm.setInt(1, conserto.getCodigo());
pstm.setDate(2, (Date) dataentradasql);
pstm.setDate(3, null);
pstm.setString(4, conserto.getCarro().getChassi());
pstm.setInt(5, conserto.getOficina().getCodigo());
pstm.execute();
FabricaConexao.fecharConexao();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insertData(String tableName) {\n //SQL statement\n String query = \"insert into \" + tableName +\n \"(\" +\n \"myName, address) \" +\n \"values ('Michael', 'my adress'), \" +\n \"('Nanna', 'Her adress'), \" +\n \"(... | [
"0.6540841",
"0.6382868",
"0.6089943",
"0.6081766",
"0.60402447",
"0.6002589",
"0.5982603",
"0.59600085",
"0.59555125",
"0.59421253",
"0.5940053",
"0.5923567",
"0.5907756",
"0.59068775",
"0.5904097",
"0.58932847",
"0.5889343",
"0.5874107",
"0.5841009",
"0.5819431",
"0.5804460... | 0.0 | -1 |
fim do metodo metodo para inserir o nome na tabela conserto | public void alterar(Conserto conserto) throws SQLException{
conecta = FabricaConexao.conexaoBanco();
// CONSULTAR STATUS DO CARRO AQUI
sql = "update conserto set condataentrada=?, condatasaida=?, concarchassi=?, conoficodigo=? where concodigo=? ";
pstm = conecta.prepareStatement(sql);
pstm.setDate(1, (Date) conserto.getDataEntrada());
pstm.setDate(2, (Date) conserto.getDataSaida());
pstm.setString(3, conserto.getCarro().getChassi());
pstm.setInt(4, conserto.getOficina().getCodigo());
pstm.setInt(5, conserto.getCodigo());
pstm.execute();
// ATUALIZAR STATUS DO CARRO
System.out.println("Alterado");
FabricaConexao.fecharConexao();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insertData(String tableName) {\n //SQL statement\n String query = \"insert into \" + tableName +\n \"(\" +\n \"myName, address) \" +\n \"values ('Michael', 'my adress'), \" +\n \"('Nanna', 'Her adress'), \" +\n \"(... | [
"0.66343063",
"0.64936596",
"0.6134717",
"0.6058801",
"0.60462254",
"0.6036886",
"0.6035593",
"0.60331297",
"0.60080487",
"0.5995227",
"0.5992796",
"0.596179",
"0.5955669",
"0.5955054",
"0.5937102",
"0.5936917",
"0.592197",
"0.58975863",
"0.5891435",
"0.5876888",
"0.58175284"... | 0.0 | -1 |
fim do metodo metodo para buscar uma conserto no BD | public Conserto buscarCodigo(int codigo) throws SQLException{
Conserto conserto = null;
conecta = FabricaConexao.conexaoBanco();
sql = "select * from conserto join carro on carchassi = concarchassi join modelo on oficodigo = conoficodigo where concodigo = ? ";
pstm = conecta.prepareStatement(sql);
pstm.setInt(1, codigo);
rs = pstm.executeQuery();
if(rs.next()){
conserto = new Conserto();
conserto.setCodigo(rs.getInt("concodigo"));
conserto.setDataEntrada(rs.getDate("condataentrada"));
conserto.setDataSaida(rs.getDate("condatasaida"));
//instanciando o carro
Carro carro = new Carro();
carro.setChassi(rs.getString("carchassi"));
carro.setPlaca(rs.getString("carplaca"));
carro.setAno(rs.getInt("carano"));
carro.setCor(rs.getString("carcor"));
carro.setStatus(rs.getInt("carstatus"));
conserto.setCarro(carro);
//instanciando a oficina
Oficina oficina = new Oficina();
oficina.setCodigo(rs.getInt("oficodigo"));
oficina.setNome(rs.getString("ofinome"));
conserto.setOficina(oficina);
}
FabricaConexao.fecharConexao();
return conserto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog... | [
"0.6971709",
"0.6704511",
"0.6673813",
"0.6664418",
"0.66439044",
"0.6643781",
"0.6604803",
"0.65960824",
"0.6565489",
"0.650275",
"0.64980173",
"0.6475126",
"0.6473759",
"0.6460511",
"0.64401215",
"0.6415979",
"0.64144856",
"0.6397138",
"0.63852966",
"0.638427",
"0.63698965"... | 0.681306 | 1 |
metodo para excluir uma conserto | public void deletar(int codigo) throws SQLException{
conecta = FabricaConexao.conexaoBanco();
sql = "delete from conserto where concodigo =? ";
pstm = conecta.prepareStatement(sql);
pstm.setInt(1, codigo);
pstm.execute();
FabricaConexao.fecharConexao();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"@Override\n\tpublic void excluir(Cliente o) {\n\t\t\n\t}",
"@Override\r\n\tpublic void excluir(Telefone vo) throws Exception {\n\t\t\r\n\t}",
"private void doExcluir() {\n ClearMsgsEvent.fire(this);\n if (Window.confirm(\"Tem certeza que deseja excluir... | [
"0.67030793",
"0.65956974",
"0.62809455",
"0.62783843",
"0.6120093",
"0.60442275",
"0.5725242",
"0.5720145",
"0.57180023",
"0.5696172",
"0.5675399",
"0.55826974",
"0.550929",
"0.54932123",
"0.5470653",
"0.5466858",
"0.5434353",
"0.5408177",
"0.5405785",
"0.53898674",
"0.53788... | 0.49031025 | 73 |
TestDefaultClass test = new TestDefaultClass(); | public static void main(String[] args) {
IsRoseClass rose = new IsRoseClass();
new Thread(new PayThread("tom",rose)).start();
new Thread(new PayThread("Jim",rose)).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Test()\n {\n }",
"public Test() {\n }",
"public AllLaboTest() {\n }",
"public Tests(){\n \n }",
"public TestPrelab2()\n {\n }",
"public GUITest() {\n }",
"public GenericTest()\n {\n }",
"public tester() {\r\n }",
"public PerezosoTest()\n {\n }",
... | [
"0.74463725",
"0.7414185",
"0.6942568",
"0.68881696",
"0.6883319",
"0.6816475",
"0.6805939",
"0.6775709",
"0.6756149",
"0.6740805",
"0.67399955",
"0.67074096",
"0.66456187",
"0.66456187",
"0.6613278",
"0.6613278",
"0.6612755",
"0.66047853",
"0.660381",
"0.65763855",
"0.654783... | 0.0 | -1 |
view the maps activity | public void viewCar(View view) {
Intent intent = new Intent(ControlActivity.this, MapsActivity.class);
intent.putExtra(StaticConfig.STR_EXTRA_IP, ip);
intent.putExtra(StaticConfig.STR_EXTRA_PORT, port);
intent.putExtra(StaticConfig.STR_EXTRA_TIME, serverInterval);
intent.putExtra(StaticConfig.STR_EXTRA_STATIC, false);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationDat... | [
"0.8185663",
"0.8074469",
"0.7914149",
"0.7775116",
"0.7654913",
"0.7591739",
"0.757683",
"0.75764483",
"0.7553827",
"0.75464684",
"0.75210756",
"0.74655104",
"0.7406853",
"0.7302655",
"0.7240788",
"0.7237587",
"0.7193997",
"0.71911716",
"0.7166639",
"0.7142055",
"0.7138161",... | 0.643792 | 84 |
xor the two values | public void authenticate(View view) {
String value = makeXor(xorNum.getBytes(), key.getBytes());
if(socket.isConnected()){
try {
socket.getOutputStream().write(value.getBytes());
socket.getOutputStream().flush();
Toast.makeText(ControlActivity.this, "Message Sent", Toast.LENGTH_SHORT).show();
} catch (IOException e) {
e.printStackTrace();
Toast.makeText(ControlActivity.this, "Error in sending message", Toast.LENGTH_SHORT).show();
}
}else{
Toast.makeText(ControlActivity.this, "Bluetooth connection lost!", Toast.LENGTH_SHORT).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long xor(long a, long b) {\n\t\treturn a ^ b;\n\t}",
"public String xor(String a, String b){\n\t\tint a_int = Integer.parseInt(a,2);\n\t\tint b_int = Integer.parseInt(b,2);\n\t\tint resXor = (a_int^b_int);\n\t\treturn completeBytes(\"\"+Integer.toBinaryString(resXor), a.length());\n\t}",
"public ... | [
"0.73610663",
"0.7207067",
"0.7072838",
"0.7005491",
"0.6994487",
"0.6975014",
"0.69498473",
"0.6895392",
"0.6886811",
"0.6795494",
"0.6778547",
"0.6705176",
"0.6656948",
"0.66140074",
"0.6570963",
"0.64736617",
"0.6372244",
"0.63659483",
"0.6325416",
"0.6315253",
"0.6313693"... | 0.0 | -1 |
update the setting value of key and time; | public void setConfig(View view) {
startActivityForResult(new Intent(this, SettingsActivity.class), StaticConfig.REQUEST_CODE_SETTINGS);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void update(String time);",
"public void update (String key_val, String val)\n {\n }",
"String set(K key, V value, SetOption setOption, long expirationTime, TimeUnit timeUnit);",
"public void updateChangedTime(int hour, int minute);",
"void setTime(int index, Time value) throws SQLException;",
"pub... | [
"0.6615998",
"0.6470062",
"0.6439556",
"0.61919",
"0.6135884",
"0.6105306",
"0.6090661",
"0.60735273",
"0.6050058",
"0.60349435",
"0.6020046",
"0.60107225",
"0.6003244",
"0.59855676",
"0.5973734",
"0.5952593",
"0.5947094",
"0.59201974",
"0.59109074",
"0.58991694",
"0.589518",... | 0.0 | -1 |
darksky for website times | public ArrayList<String> WebElementArrayList(By locator) {
List<WebElement> elementList = getDriver().findElements(locator);
ArrayList<String> elementArrayList= new ArrayList<>();
String temp = null;
for (int i = 0; i < elementList.size()-1; i++) {
temp = elementList.get(i).getText();
elementArrayList.add(temp);
}
return elementArrayList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double sensingTime();",
"java.lang.String getServerTime();",
"double getClientTime();",
"private void mo71772t() {\n this.f74253i.mo60157b(R.id.ebb, new VideoPostTimeWidget());\n }",
"public abstract boolean useDaylightTime();",
"public abstract boolean useDaylightTime();",
"p... | [
"0.5894684",
"0.58318263",
"0.5796615",
"0.57783085",
"0.5544912",
"0.5544912",
"0.5533423",
"0.5532311",
"0.54415786",
"0.54251397",
"0.5424699",
"0.5378053",
"0.5376103",
"0.5375008",
"0.53309226",
"0.53291357",
"0.5323856",
"0.531594",
"0.53081566",
"0.52971786",
"0.528060... | 0.0 | -1 |
darksky for current times | public ArrayList<String> StringArrayListTimeCheck() {
String temp = null;
ArrayList<String> newStringList = new ArrayList();
Calendar cal = Calendar.getInstance();
for (int i = 0; i < 11; i++) {
cal.add(Calendar.HOUR, 2);
SimpleDateFormat sdf = new SimpleDateFormat("ha");
temp = sdf.format(cal.getTime()).toLowerCase();
newStringList.add(temp);
}
return newStringList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setTime() {\n\t\tCalendar now = Calendar.getInstance();\n\t\tangleHours = (270 + 30 * now.get(now.HOUR) + now.get(now.MINUTE) / 2 ) % 360;\n\t\tangleMinutes = (270 + 6 * now.get(now.MINUTE)) % 360;\n\t\tangleSeconds = (270 + 6 * now.get(now.SECOND)) % 360;\n\t}",
"public static void setTime(){\n\t\tCalendar... | [
"0.5983813",
"0.5938166",
"0.589228",
"0.58565706",
"0.58565706",
"0.58279186",
"0.57838345",
"0.5767554",
"0.5747346",
"0.57445204",
"0.5719774",
"0.5706293",
"0.5660614",
"0.56370616",
"0.56197345",
"0.5609531",
"0.5576031",
"0.5560657",
"0.55526257",
"0.55206627",
"0.55092... | 0.0 | -1 |
/ declares an int field named "intValue" on String fact types | @FieldDeclaration(name = "intValue")
public static int toNumber(String fact) {
return Integer.parseInt(fact);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int getInt(String string) {\n\t\treturn 0;\r\n\t}",
"String getInt_lit();",
"@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}",
"public int getIntegerTypeValueForInternalValue(String value, int def) {\n\t\tint r = def;\n\t\tObject o = getTypeValueForInternalValue... | [
"0.66849506",
"0.654582",
"0.63588613",
"0.6238489",
"0.6192406",
"0.6127334",
"0.6106643",
"0.60648125",
"0.605132",
"0.6044779",
"0.60088",
"0.5990903",
"0.5962691",
"0.5945156",
"0.5940908",
"0.59400386",
"0.5904306",
"0.5826743",
"0.581993",
"0.581993",
"0.58190197",
"0... | 0.70252544 | 0 |
TODO: make the JSON strings final?? public final String RESULTS = "results"; | public SearchService(String name) {
super("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setResultJson(java.lang.String value) {\n this.result_json = value;\n }",
"public void setResults(ArrayList results) {\n this.results = results;\n }",
"public void setResults(ArrayList<Integer> results){\n this.results = results;\n }",
"public void setResult(String result)... | [
"0.68711656",
"0.61579126",
"0.6150234",
"0.61422086",
"0.6140221",
"0.61357987",
"0.6106411",
"0.60932976",
"0.6080918",
"0.60807604",
"0.60431576",
"0.59799206",
"0.5967527",
"0.59345335",
"0.58975667",
"0.5886169",
"0.58699715",
"0.5859692",
"0.5802451",
"0.57999766",
"0.5... | 0.0 | -1 |
Server will receive datagram from Host and extract it | public void receiveAndEcho() {
//byte[] result = new byte[filenameByte.length + modeByte.length + 4];
byte data[] = new byte[100];
receivePacket = new DatagramPacket(data, data.length);
System.out.println("Server: Waiting for packet from Host.\n");
try {
receiveSocket.receive(receivePacket);
}
catch(IOException e) {
System.out.print("IO Exception: likely:");
System.out.println("Receive Socket Timed Out.\n" + e);
e.printStackTrace();
currentStatus = false;
receiveSocket.close();
sendSocket.close();
System.exit(1);
}
System.out.println("***Server: Packet received from Host***");
System.out.println("From host: " + receivePacket.getAddress());
System.out.println("Host port: " + receivePacket.getPort());
System.out.print("Containing: ");
// Form a String from the byte Array. Print String + byte
String received = new String(data, 0, receivePacket.getLength());
System.out.println(received);
System.out.println(receivePacket.getData() + "\n");
// Slow things down (wait 5 seconds)
try {
Thread.sleep(69);
}
catch (InterruptedException e ) {
e.printStackTrace();
currentStatus = false;
receiveSocket.close();
sendSocket.close();
System.exit(1);
}
// Sending Packet back to Host to Client
byte serverResponse[] = Parse(receivePacket.getData());
sendPacket = new DatagramPacket(serverResponse, serverResponse.length,
receivePacket.getAddress(), receivePacket.getPort());
System.out.println("***Server: Sending packet to Host***");
System.out.println("To host: " + sendPacket.getAddress());
System.out.println("Destination host port: " + sendPacket.getPort());;
System.out.print("Containing: ");
System.out.println(Arrays.toString(serverResponse));
//System.out.println(new String(sendPacket.getData(),0, sendPacket.getLength()));
System.out.println(sendPacket.getData() + "\n");
System.out.println("Server: Packet sent.");
// Send the datagram packet to the client via the send socket.
try {
sendSocket.send(sendPacket);
} catch (IOException e) {
e.printStackTrace();
currentStatus = false;
receiveSocket.close();
sendSocket.close();
System.exit(1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String recv() {\n\t\tDatagramPacket packet = new DatagramPacket(new byte[PACKET_SIZE], PACKET_SIZE);\n\n\t\ttry {\n\t\t\ts.receive(packet);\n\t\t} catch (IOException e) {\n\t\t}\n\n\t\tif(type==0) {\n\t\t\tthis.host = packet.getAddress();\n\t\t\tthis.port = packet.getPort();\n\t\t}\n\t\tString m = (new Stri... | [
"0.6729382",
"0.6480549",
"0.636962",
"0.6325664",
"0.627602",
"0.6123274",
"0.6069986",
"0.6058036",
"0.60447866",
"0.6016151",
"0.599643",
"0.59709346",
"0.5944384",
"0.5925704",
"0.5921132",
"0.5900961",
"0.5893854",
"0.5853263",
"0.5849186",
"0.58263916",
"0.5822868",
"... | 0.65359575 | 1 |
Method is for parsing purpose. Distinguish between read and write. | private byte[] Parse(byte[] arr)
{
byte[] invalid = {0};
if(arr[1] == 1) {
System.out.println("***Packet Parsing***");
System.out.println("'Packet is a Read Request' \n");
byte[] read = {0, 3, 0, 1};
return read;
}
else if(arr[1] == 2) {
System.out.println("***Packet Parsing***");
System.out.println("'Packet is a Write Request' \n");
byte[] write = {0, 4, 0, 0};
return write;
}
else {
System.out.println("***Packet Parsing***");
System.out.println("'Invalid Request'");
currentStatus = false;
return invalid;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void read();",
"abstract protected boolean read();",
"protected void writeRead ()\n {\n stream.println (\" public void _read (org.omg.CORBA.portable.InputStream i)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((V... | [
"0.703172",
"0.6839065",
"0.6802247",
"0.676857",
"0.6726495",
"0.6620564",
"0.6581062",
"0.6462769",
"0.6443118",
"0.6309988",
"0.6187968",
"0.615531",
"0.615531",
"0.6146612",
"0.6110284",
"0.6055412",
"0.60409456",
"0.6037939",
"0.6006769",
"0.6005915",
"0.59225386",
"0.... | 0.0 | -1 |
Loops forever till error | public void foreverSystem() {
currentStatus = true;
while(currentStatus) {
receiveAndEcho();
}
// Closing up sockets
sendSocket.close();
receiveSocket.close();
System.exit(1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean continuePastError() {\n return false;\n }",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"public void loop(){\n\t\t\n\t}",
"boolean checkError() {\n Iterator<Integer> seq = sequence.... | [
"0.63586646",
"0.6216862",
"0.5923669",
"0.58218235",
"0.5820235",
"0.58068115",
"0.5755345",
"0.5729245",
"0.57292074",
"0.57291675",
"0.5712734",
"0.57050097",
"0.5696743",
"0.56694794",
"0.5638973",
"0.55976164",
"0.5590577",
"0.55888534",
"0.557245",
"0.55716866",
"0.5570... | 0.51579505 | 84 |
Update global variables from agent values. | private void update()
{
for (Agent agent : agents)
{
int i = agent.getIndex();
p.setEntry(i, agent.getP());
q.setEntry(i, agent.getQ());
vabs.setEntry(i, agent.getVabs());
varg.setEntry(i, agent.getVarg());
lambdaP.setEntry(i, agent.getLambdaP());
lambdaQ.setEntry(i, agent.getLambdaQ());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateVars()\n {\n\n }",
"public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }",
"public void setGlobalVariab... | [
"0.74031585",
"0.6777073",
"0.6240986",
"0.5914176",
"0.5876021",
"0.57367194",
"0.56895936",
"0.5689",
"0.5673888",
"0.56558216",
"0.56459945",
"0.56426966",
"0.5609286",
"0.5587555",
"0.5584642",
"0.5515931",
"0.5493477",
"0.54579026",
"0.5440189",
"0.5348278",
"0.5345967",... | 0.637841 | 2 |
Only clamps absolute, not argument. | protected double[] clampV(double nextVabs, double nextVarg)
{
// if(nextVabs < v_min)
// nextVabs = v_min;
// else if(nextVabs > v_max)
// nextVabs = v_max;
return new double[]{nextVabs, nextVarg};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default void absolute()\n {\n getAxis().absolute();\n setAngle(Math.abs(getAngle()));\n }",
"public synchronized void setAbsoluteSetPoint(boolean absolute)\n {\n final String funcName = \"setAbsoluteSetPoint\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcN... | [
"0.62196624",
"0.572949",
"0.5690965",
"0.56096023",
"0.55909777",
"0.55901676",
"0.55749696",
"0.5541175",
"0.5526443",
"0.5475124",
"0.5448405",
"0.5438442",
"0.5378681",
"0.5377115",
"0.5373666",
"0.53475016",
"0.5279736",
"0.52760595",
"0.52700907",
"0.51974887",
"0.51852... | 0.48129308 | 45 |
// Agent Accessors //// | protected Complex selfAdmittance()
{
return neighbours.get(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Agent getAgent();",
"public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}",
"public Agent getAgent() {\n\t\treturn agent;\n\t}",
"org.beangle.security.session.protobuf.Model.Agent getAgent();",
"public void setAgent(String agent)\n {\n this.agent = agent;\n }",
"public String getAgent() {\n ... | [
"0.8082604",
"0.70952505",
"0.7078828",
"0.6949925",
"0.67532116",
"0.6720373",
"0.66530496",
"0.66450626",
"0.66238576",
"0.65692204",
"0.65692204",
"0.65412295",
"0.6520889",
"0.6490813",
"0.64838666",
"0.64814144",
"0.6460573",
"0.6439586",
"0.6384413",
"0.63768613",
"0.63... | 0.0 | -1 |
Push the string value that is being evaluated. | protected abstract void pushStringValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void push(String s){\n pilha.add(s);\n }",
"static void perform_push(String passed){\n\t\tint type = type_of_push(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpush_to_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Test\n public void testPush() {\n System.out.println(\"push\");\n ... | [
"0.6392272",
"0.6381922",
"0.6304104",
"0.5997244",
"0.59867084",
"0.5965618",
"0.5943795",
"0.5942874",
"0.5926041",
"0.58852446",
"0.58563954",
"0.5851833",
"0.5833395",
"0.583104",
"0.5803951",
"0.57892346",
"0.57842153",
"0.57605666",
"0.573258",
"0.57245666",
"0.5639905"... | 0.64182806 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.