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
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7905683", "0.7805918", "0.7766949", "0.77280927", "0.76328415", "0.76229936", "0.7585238", "0.75312966", "0.7488599", "0.7458191", "0.7458191", "0.74387765", "0.74228644", "0.7403772", "0.7392029", "0.7387223", "0.73796284", "0.73707056", "0.7362735", "0.7356231", "0.73459...
0.0
-1
Run the RedirectView() constructor test.
@Test public void testRedirectView_1() throws Exception { RedirectView result = new RedirectView(); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void tes...
[ "0.71745706", "0.68332887", "0.6705264", "0.6652894", "0.65683025", "0.6431621", "0.62982273", "0.61912227", "0.6157762", "0.6034286", "0.6014072", "0.5985071", "0.59366626", "0.57805717", "0.57772046", "0.57597667", "0.57131374", "0.5685432", "0.5680777", "0.56579417", "0.56...
0.6469788
5
Run the RedirectView(String) constructor test.
@Test public void testRedirectView_2() throws Exception { String url = ""; RedirectView result = new RedirectView(url); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void tes...
[ "0.7306326", "0.70179176", "0.6653829", "0.6483789", "0.64056504", "0.63931566", "0.6370886", "0.60463357", "0.5949584", "0.59362817", "0.58445853", "0.57304806", "0.5689163", "0.5687661", "0.56828094", "0.55912983", "0.5559235", "0.55546004", "0.55491024", "0.5543177", "0.55...
0.6604412
3
Run the RedirectView(String,boolean) constructor test.
@Test public void testRedirectView_3() throws Exception { String url = ""; boolean contextRelative = true; RedirectView result = new RedirectView(url, contextRelative); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void tes...
[ "0.7105154", "0.6686538", "0.6393688", "0.63294333", "0.62357795", "0.61779886", "0.60702443", "0.6048039", "0.58769023", "0.5874664", "0.5733394", "0.56836104", "0.56011325", "0.55538166", "0.55105764", "0.550406", "0.5430273", "0.5423676", "0.5410321", "0.5407441", "0.53997...
0.6464339
2
Run the RedirectView(String,boolean,boolean) constructor test.
@Test public void testRedirectView_4() throws Exception { String url = ""; boolean contextRelative = true; boolean http10Compatible = true; RedirectView result = new RedirectView(url, contextRelative, http10Compatible); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void tes...
[ "0.69994164", "0.6496636", "0.6320607", "0.6198617", "0.61923623", "0.6032744", "0.59104997", "0.5903775", "0.5849726", "0.5726245", "0.5719497", "0.55517936", "0.5466835", "0.53857327", "0.5373737", "0.53731006", "0.5328108", "0.53199244", "0.5311352", "0.5299468", "0.528638...
0.608761
5
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.66768336
0
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_2() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6527045
1
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6311016
9
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_4() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.63191026
8
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_5() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.62704843
13
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_6() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6425549
5
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_7() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6296027
11
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_8() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.62803507
12
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_9() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6242982
15
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_10() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6477629
3
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_11() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.65076095
2
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_12() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6441435
4
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_13() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637"...
0.63009
10
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_14() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6390138
6
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_15() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.62624943
14
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_16() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingSch...
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", ...
0.6385464
7
Run the String getUrl() method test.
@Test public void testGetUrl_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String result = fixture.getUrl(); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void urlTest() {\n // TODO: test url\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "String getUrl();", "String getUrl();", "Strin...
[ "0.74356323", "0.72628707", "0.72628707", "0.72628707", "0.72628707", "0.72628707", "0.72628707", "0.72325075", "0.72325075", "0.72325075", "0.72325075", "0.72325075", "0.71148086", "0.7091638", "0.7081645", "0.69394195", "0.6918583", "0.67745763", "0.6699361", "0.66852564", ...
0.67385435
18
Run the Map queryProperties(Map) method test.
@Test public void testQueryProperties_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); Map result = fixture.queryProperties(model); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(Has...
[ "0.626767", "0.6153419", "0.61332333", "0.6096786", "0.60345006", "0.60272884", "0.60177565", "0.5973716", "0.5949373", "0.593513", "0.5901058", "0.58959496", "0.58489966", "0.5846632", "0.58423996", "0.5823071", "0.5806129", "0.5802283", "0.578282", "0.5752876", "0.5720367",...
0.6702465
0
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test public void testRenderMergedOutputModel_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl("/"); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new ...
[ "0.7702195", "0.7521891", "0.7475822", "0.7375437", "0.731926", "0.6990545", "0.68959254", "0.6616226", "0.64029306", "0.63493186", "0.6286869", "0.58493286", "0.566603", "0.56314", "0.54934675", "0.5431791", "0.5419895", "0.5373597", "0.52171135", "0.51532316", "0.51454186",...
0.78017676
0
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test public void testRenderMergedOutputModel_2() throws Exception { RedirectView fixture = new RedirectView("", false, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new ...
[ "0.7802177", "0.7522616", "0.7476647", "0.7376135", "0.7318861", "0.6990785", "0.6896594", "0.66167796", "0.6402479", "0.63494164", "0.6287087", "0.5850929", "0.5666228", "0.56320125", "0.5493746", "0.54322827", "0.5419891", "0.5373089", "0.52173954", "0.5155077", "0.51448715...
0.77025086
1
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test public void testRenderMergedOutputModel_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new ...
[ "0.7802177", "0.77025086", "0.7476647", "0.7376135", "0.7318861", "0.6990785", "0.6896594", "0.66167796", "0.6402479", "0.63494164", "0.6287087", "0.5850929", "0.5666228", "0.56320125", "0.5493746", "0.54322827", "0.5419891", "0.5373089", "0.52173954", "0.5155077", "0.5144871...
0.7522616
2
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test(expected = java.io.IOException.class) public void testRenderMergedOutputModel_4() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl("/"); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new ...
[ "0.7802177", "0.77025086", "0.7522616", "0.7476647", "0.7318861", "0.6990785", "0.6896594", "0.66167796", "0.6402479", "0.63494164", "0.6287087", "0.5850929", "0.5666228", "0.56320125", "0.5493746", "0.54322827", "0.5419891", "0.5373089", "0.52173954", "0.5155077", "0.5144871...
0.7376135
4
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test(expected = java.io.UnsupportedEncodingException.class) public void testRenderMergedOutputModel_5() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new ...
[ "0.78017676", "0.7702195", "0.7521891", "0.7475822", "0.7375437", "0.731926", "0.68959254", "0.6616226", "0.64029306", "0.63493186", "0.6286869", "0.58493286", "0.566603", "0.56314", "0.54934675", "0.5431791", "0.5419895", "0.5373597", "0.52171135", "0.51532316", "0.51454186"...
0.6990545
6
Run the void sendRedirect(HttpServletRequest,HttpServletResponse,String,boolean) method test.
@Test public void testSendRedirect_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); String targetUrl = ""; boolean http10Compatible = false; fixture.sendRedirect(request, response, targetUrl, http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendRedirect(HttpServletResponse response, String location) throws AccessControlException, IOException;", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tH...
[ "0.7773639", "0.7703208", "0.74622273", "0.74093586", "0.70776093", "0.69448906", "0.6912605", "0.67786944", "0.6712559", "0.65247333", "0.64986914", "0.649461", "0.64298385", "0.6405079", "0.6258103", "0.6093216", "0.6081748", "0.60734254", "0.6044758", "0.60135996", "0.5992...
0.7849233
0
Run the void sendRedirect(HttpServletRequest,HttpServletResponse,String,boolean) method test.
@Test public void testSendRedirect_2() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); String targetUrl = ""; boolean http10Compatible = true; fixture.sendRedirect(request, response, targetUrl, http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) nul...
[ "0.7849233", "0.7773639", "0.74622273", "0.74093586", "0.70776093", "0.69448906", "0.6912605", "0.67786944", "0.6712559", "0.65247333", "0.64986914", "0.649461", "0.64298385", "0.6405079", "0.6258103", "0.6093216", "0.6081748", "0.60734254", "0.6044758", "0.60135996", "0.5992...
0.7703208
2
Run the void sendRedirect(HttpServletRequest,HttpServletResponse,String,boolean) method test.
@Test(expected = java.io.IOException.class) public void testSendRedirect_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); String targetUrl = ""; boolean http10Compatible = true; fixture.sendRedirect(request, response, targetUrl, http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) nul...
[ "0.7849233", "0.7773639", "0.7703208", "0.74622273", "0.70776093", "0.69448906", "0.6912605", "0.67786944", "0.6712559", "0.65247333", "0.64986914", "0.649461", "0.64298385", "0.6405079", "0.6258103", "0.6093216", "0.6081748", "0.60734254", "0.6044758", "0.60135996", "0.59924...
0.74093586
4
Run the void setContextRelative(boolean) method test.
@Test public void testSetContextRelative_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); boolean contextRelative = true; fixture.setContextRelative(contextRelative); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRelative(boolean r) {\n isRel = r;\n }", "public void setRelativeflag(String value) {\n setAttributeInternal(RELATIVEFLAG, value);\n }", "@Test\r\n\tpublic void testRelativeDir() {\r\n\t\t// Expected return from Cd\r\n\t\texpectedCd = null;\r\n\t\t// Expected current working ...
[ "0.62506485", "0.5843897", "0.5500617", "0.52479047", "0.52451956", "0.5198655", "0.51804125", "0.5141747", "0.5106224", "0.5104754", "0.50375724", "0.502137", "0.5012883", "0.49681672", "0.4961046", "0.4960488", "0.49516603", "0.4936784", "0.49336216", "0.49292076", "0.49292...
0.80260557
0
Run the void setEncodingScheme(String) method test.
@Test public void testSetEncodingScheme_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String encodingScheme = ""; fixture.setEncodingScheme(encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testEncodingAndType() throws Exception {\n \t// check default\n \tSampleResult res = new SampleResult();\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassert...
[ "0.6349227", "0.6313915", "0.5925933", "0.59252286", "0.5889134", "0.58859223", "0.585522", "0.5824764", "0.58080244", "0.579919", "0.5706033", "0.5685353", "0.5619258", "0.55947536", "0.5587029", "0.5552267", "0.5552202", "0.5542677", "0.55352575", "0.5482363", "0.54635537",...
0.71850216
0
Run the void setHttp10Compatible(boolean) method test.
@Test public void testSetHttp10Compatible_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); boolean http10Compatible = true; fixture.setHttp10Compatible(http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void testCompatibility() {\n\t\tSystem.out.println(\"compatibility test success\");\n\t}", "public static boolean has10() {\n return getVersion() >= Build.VERSION_CODES.GINGERBREAD_MR1;\n }", "public void setHttp11(boolean http11) {\n this.http11 = http11;\n }", "publi...
[ "0.5607573", "0.5562619", "0.5388968", "0.5385258", "0.5253403", "0.51386666", "0.5029555", "0.50179845", "0.49225935", "0.49023053", "0.4837738", "0.48300177", "0.47977015", "0.47968403", "0.47968403", "0.47968403", "0.47968403", "0.47565842", "0.47557595", "0.47275993", "0....
0.7615131
0
Run the void setUrl(String) method test.
@Test public void testSetUrl_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String url = ""; fixture.setUrl(url); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "public void setUrl(String url);", "public void setUrl(String url);", "public void setURL(String url);", "public void setUrl(URL url)\n {\n this.url = url;\n }", "public native final void setUrl...
[ "0.8404801", "0.79343724", "0.79343724", "0.7838917", "0.7703506", "0.7542278", "0.752034", "0.73490334", "0.73466516", "0.7324141", "0.73072886", "0.7303716", "0.7299219", "0.7299219", "0.7252338", "0.7233456", "0.72304946", "0.719876", "0.7167014", "0.7167014", "0.7167014",...
0.7600061
5
Run the String urlEncode(String,String) method test.
@Test public void testUrlEncode_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme...
[ "0.7535612", "0.7346214", "0.72940725", "0.70829976", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.612...
0.7483509
1
Run the String urlEncode(String,String) method test.
@Test public void testUrlEncode_2() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme...
[ "0.7483509", "0.7346214", "0.72940725", "0.70829976", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.612...
0.7535612
0
Run the String urlEncode(String,String) method test.
@Test public void testUrlEncode_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme...
[ "0.7535612", "0.7483509", "0.7346214", "0.70829976", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.6120...
0.72940725
3
Run the String urlEncode(String,String) method test.
@Test(expected = java.io.UnsupportedEncodingException.class) public void testUrlEncode_4() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme...
[ "0.7535612", "0.7483509", "0.7346214", "0.72940725", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.6120...
0.70829976
4
Sorts array of elements using Heap Sort algorithm.
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public void sort() { // create maxHeap Heap<E> maxHeap = new MaxHeap<E>(arr); elapsedTime = System.nanoTime(); // get time of start for (int i = length - 1; i > 0; i--) { maxHeap.swap(arr, 0, i); maxHeap.heapSize--; ((MaxHeap) maxHeap).maxHeapify(arr, 0); } elapsedTime = System.nanoTime() - elapsedTime; // get elapsed time print(); // print sorted array printElapsedTime(); // print elapsed time }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void heapSort() {\n MyHeap heap = new MyHeap();\n heap.makeHeap((Comparable) array[0]);\n for (int i = 1; i < array.length; i++) {\n heap.insert((Comparable) array[i]);\n }\n int i = 0;\n while (!heap.isEmpty()) {\n array[i] = (T) heap.findMin();\n heap.deleteMin();\n i...
[ "0.82177913", "0.81875193", "0.81468827", "0.79743505", "0.7844899", "0.7836217", "0.779797", "0.779779", "0.7753065", "0.77425677", "0.7634548", "0.76225007", "0.760583", "0.75109905", "0.7497917", "0.746092", "0.7385009", "0.7311606", "0.7275579", "0.72400445", "0.7115245",...
0.7857499
4
Atomos Content provides information about content discovered by the Atomos runtime which can be installed as a connected bundle into an OSGi Framework.
@ProviderType public interface AtomosContent extends Comparable<AtomosContent> { /** * The location of the Atomos content. The location * always includes the Atomos bundle's layer {@link AtomosLayer#getName() name}. * This location plus the {@link #install(String) prefix} can be used * as the install location of a connected bundle. * * @return the location of the Atomos content. * @see AtomosContent#install(String) */ String getAtomosLocation(); /** * The symbolic name of the Atomos content. * @return the symbolic name. */ String getSymbolicName(); /** * The version of the Atomos content. * @return the version */ Version getVersion(); /** * Adapt this Atomos content to the specified type. For example, * if running in a module layer then the module of the Atomos * content is returned in the optional value. * @param <T> The type to which this Atomos content is to be adapted. * @param type Class object for the type to which this Atomos content is to be * adapted. * @return The object, of the specified type, to which this Atomos content has been * adapted or {@code empty} if this content cannot be adapted to the * specified type. */ <T> Optional<T> adapt(Class<T> type); /** * The Atomos layer this Atomos content is in. * @return the Atomos layer */ AtomosLayer getAtomosLayer(); /** * Installs this Atomos content as a connected bundle using the specified location prefix. * If the Atomos content is already installed then the existing bundle is returned if * the existing bundle location is equal to the location this method calculates to * install the bundle; otherwise a {@code BundleException} is thrown. * This is a convenience method that is equivalent to the following: * <pre> * AtomosContent atomosContent = getAtomosContent(); * BundleContext bc = getBundleContext(); * * String osgiLocation = prefix + ":" + atomosContent.getAtomosLocation(); * Bundle b = bc.getBundle(osgiLocation); * if (b != null) * { * if (!b.getLocation().equals(osgiLocation)) * { * throw new BundleException(); * } * } * atomosContent.disconnect(); * atomosContent.connect(osgiLocation); * b = bc.installBundle(osgiLocation); * </pre> * @param prefix the prefix to use, if {@code null} then the prefix "atomos" will be used * @return the installed connected bundle. * @throws BundleException if an error occurs installing the Atomos content */ Bundle install(String prefix) throws BundleException; /** * Same as {@link #install(String)} using a null prefix. * @return the installed connected bundle * @throws BundleException if an error occurs installing the Atomos content */ default Bundle install() throws BundleException { return install(null); } /** * Returns the connect content for this Atomos content. The returned {@link ConnectContent} can * be used to lookup entries from the content directly. If possible, it is preferred to used the bundle * returned by {@link #getBundle() getBundle()} instead to access entries from the content. Using the * bundle avoids issues with accessing the content * at the same time the OSGi Framework is managing the associated content. * <p> * If the ConnectContent is not managed by * a framework, {@link #getBundle() getBundle()} will return {@code null} and this method can be called as a way to access * the associated content. The caller is responsible for opening and closing the ConnectContent as appropriate. * * @return ConnectContent associated with this Atomos content. */ ConnectContent getConnectContent(); /** * Returns the connected bundle location for this Atomos content or {@code null} if * no bundle location is connected for this content. A {@code non-null} value is * only an indication that this content {@code #connect(String)} has been called * to set the connect bundle location. A connected bundle may still need to be installed * into the framework using this bundle location. * @return the bundle location or {@code null} */ String getConnectLocation(); /** * Connects the specified bundle location to this Atomos content. Unlike * the {@link #install(String)} method, this method does not install this * content as a connected {@link Bundle}. If the specified location * is used with the {@link BundleContext#installBundle(String)} method then the * installed {@link Bundle} will be connected to this content. This method does * nothing if this content is already using the specified location as its * connect location. * @param bundleLocation the bundle location * @throws IllegalStateException if the connect location is already being used as a connect location * or if this content already has a different connect location set */ void connect(String bundleLocation); /** * Disconnects this Atomos content from the bundle location, if the bundle location * is set. This method does nothing if this content is not connected. */ void disconnect(); /** * Returns the OSGi bundle installed which is connected with this Atomos content. * * @return the OSGi bundle or {@code null} if there is no bundle connected * with this content or if there is no OSGi Framework initialized * with the Atomos Runtime. */ Bundle getBundle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<String, Object> contentDescription(URI uri, InputStream inputStream, Map<?, ?> options, Map<Object, Object> context) throws IOException\n {\n Map<String, Object> result = super.contentDescription(uri, inputStream, options, context);\n \n XMLResource xmlResource = load(uri, inputS...
[ "0.6334801", "0.59363866", "0.5858752", "0.5789237", "0.5779264", "0.5765589", "0.57401276", "0.5720971", "0.56844", "0.5624543", "0.56126916", "0.560157", "0.5571077", "0.5507568", "0.5468502", "0.5462742", "0.54300946", "0.5429503", "0.5412906", "0.5412906", "0.5412906", ...
0.6696592
0
The symbolic name of the Atomos content.
String getSymbolicName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transient\n\tpublic String getContentName()\t{\n\t\treturn getContentDescription();\n\t}", "public String symbolic() {\n return parent + \"/\" + symbolic;\n }", "public String name() {\n return this.nam;\n }", "protected String getMetadataName() {\r\n\t\treturn METADATA_NAME;\r\n...
[ "0.6497903", "0.6274809", "0.61455095", "0.6113727", "0.60936147", "0.6080861", "0.60466605", "0.6040851", "0.60247964", "0.6008589", "0.59894025", "0.5977244", "0.59525615", "0.5949362", "0.59413034", "0.59369844", "0.593591", "0.5926377", "0.58927095", "0.589075", "0.588851...
0.66811323
0
The version of the Atomos content.
Version getVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVersion () {\r\n return version;\r\n }", "public String getVersion()\n {\n return ver;\n }", "public String getVersion(){\r\n return version;\r\n }", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public Stri...
[ "0.730466", "0.7273078", "0.72613657", "0.72530776", "0.72530776", "0.72530776", "0.72530776", "0.72489274", "0.72489274", "0.7244212", "0.7244212", "0.7244212", "0.7244212", "0.72316104", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.722212...
0.0
-1
The Atomos layer this Atomos content is in.
AtomosLayer getAtomosLayer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLayer() {\r\n\t\treturn layer;\r\n\t}", "public int getLayer()\n\t{\n\t\treturn layer;\n\t}", "public Layer getLayer() {\n return layer;\n }", "public Layer getLayer() {\n\t\treturn layer;\n\t}", "public Layer getLayer() {\n return _layer;\n }", "int getLayer();", "public Layer.La...
[ "0.7215872", "0.7173563", "0.71144044", "0.70896804", "0.69716966", "0.6879764", "0.6820794", "0.6632068", "0.6545711", "0.65080315", "0.6482851", "0.6300518", "0.6258392", "0.61694545", "0.6157755", "0.61245966", "0.6099135", "0.6081174", "0.6080678", "0.6070736", "0.6061659...
0.75774217
0
Disconnects this Atomos content from the bundle location, if the bundle location is set. This method does nothing if this content is not connected.
void disconnect();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);...
[ "0.5747655", "0.5720477", "0.5677066", "0.5537148", "0.55091166", "0.54621416", "0.54356235", "0.5433318", "0.54277307", "0.54186946", "0.5410594", "0.5404657", "0.5393821", "0.5381666", "0.53731394", "0.5313801", "0.5310137", "0.5303972", "0.5302376", "0.5293633", "0.5286827...
0.0
-1
write your code in Java SE 8
static public int solution(int[] A) { HashSet <Integer> newDistList = new HashSet<Integer>(); for (int s = 0; s<A.length; s++){ newDistList.add(A[s]); } return newDistList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\...
[ "0.5890391", "0.58054996", "0.57008785", "0.56167847", "0.54946315", "0.54761344", "0.524263", "0.52340496", "0.5233149", "0.52029705", "0.5160466", "0.51574665", "0.5143396", "0.5094738", "0.5084682", "0.5069909", "0.50661004", "0.50645214", "0.5064437", "0.50475377", "0.504...
0.0
-1
Processes requests for both HTTP GET and POST methods.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //get the request from the flickrSearch.html // String key = request.getParameter("keywords"); // String keywords = URLEncoder.encode(key,"utf-8"); String keywords = request.getParameter("flickrKeywords"); System.out.println("SearchToFlickrServlet do post keyword++++++++++++++++++++++++++++>>" + keywords); try { List<FlickrItem> result = Flickr.getInstance().search(keywords, "1"); // System.out.print(result); JSONArray array = JSONArray.fromObject(result); if (array != null && array.size() > 0) { List<FlickrItem> selectFlickr = new ArrayList<FlickrItem>(); for (int i = 0; i < array.size(); i++) { JSONObject json = array.getJSONObject(i); FlickrItem ipg = new FlickrItem(json.getString("URL"),json.getString("thumb"),json.getString("title")); // FlickrItem m = new FlickrItem(json.getString("URL")); System.out.print(json.getString("URL")); selectFlickr.add(ipg); } request.setAttribute("selectFlickr", selectFlickr); request.getRequestDispatcher("flickrList.jsp").forward(request, response); } } catch (Exception e) { e.printStackTrace(); } finally { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
given: the last tracking put the project above the threshold
@Test public void isWarning_warns_when_90_percent_was_just_reached() { when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(89)); when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(90)); // when boolean completionWarning = expirationThresholdViolationIndicator.isWarning("some-uuid"); // then assertTrue(completionWarning); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "private void logHitResult() {\n if (hitResult){\n targets--;\n if (targets == 0){\n taskComplete = true;\n }\n\n hitList[hitCount] = ...
[ "0.5387721", "0.5359562", "0.5333467", "0.5308999", "0.526666", "0.52435", "0.51503986", "0.5116138", "0.5077327", "0.5076779", "0.50717807", "0.5052419", "0.5008714", "0.50026506", "0.4992294", "0.49693656", "0.49688953", "0.49679607", "0.49617237", "0.49593684", "0.49489915...
0.0
-1
given: was and still is below threshold
@Test public void isWarning_does_not_warn_below_90_percent() { when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(88)); when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(89)); // when boolean completionWarning = expirationThresholdViolationIndicator.isWarning("some-uuid"); // then assertFalse(completionWarning); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOverThreshold(){return isOverThreshold;}", "double getUpperThreshold();", "float getThreshold();", "double getLowerThreshold();", "@Test\n public void testThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAnd...
[ "0.6950653", "0.67517775", "0.6740633", "0.668889", "0.6669245", "0.6646927", "0.6641393", "0.6531242", "0.6485266", "0.6449287", "0.6436594", "0.6382293", "0.63602126", "0.6241251", "0.6235526", "0.62155914", "0.6128174", "0.6124808", "0.61111313", "0.6107572", "0.60559624",...
0.5436748
85
given: the last tracking put the project above the threshold
@Test public void isWarning_does_not_warn_if_project_is_closed() { when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(89)); when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(96)); when(project.isClosed()).thenReturn(true); // when boolean completionWarning = expirationThresholdViolationIndicator.isWarning("some-uuid"); // then assertFalse(completionWarning); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "private void logHitResult() {\n if (hitResult){\n targets--;\n if (targets == 0){\n taskComplete = true;\n }\n\n hitList[hitCount] = ...
[ "0.5387721", "0.5359562", "0.5333467", "0.5308999", "0.526666", "0.52435", "0.51503986", "0.5116138", "0.5077327", "0.5076779", "0.50717807", "0.5052419", "0.5008714", "0.50026506", "0.4992294", "0.49693656", "0.49688953", "0.49679607", "0.49617237", "0.49593684", "0.49489915...
0.0
-1
The ID of the webhook that was used to send out this callback
@ApiModelProperty(example = "b2f574ff-7efe-4579-9f16-fcb9097e5ab6", required = true, value = "The ID of the webhook that was used to send out this callback") public UUID getWebhook() { return webhook; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getReceiverid();", "Object getMessageId();", "public String getCallId();", "long getMessageId();", "long getMessageId();", "int getMessageId();", "java.lang.String getRequestID();", "public Integer getHandlerId(){\n return SocketUtilities.byteArrayToInt(handlerId);\n }", "String getNo...
[ "0.63530827", "0.6265589", "0.6192923", "0.6163725", "0.6163725", "0.613895", "0.6095971", "0.60430336", "0.6029616", "0.5988508", "0.5988508", "0.59600914", "0.59502405", "0.59208596", "0.5906806", "0.58923876", "0.5888423", "0.58828217", "0.5848158", "0.58318603", "0.580642...
0.7196986
0
The event that triggered this webhook
@ApiModelProperty(example = "transaction.paid", required = true, value = "The event that triggered this webhook") public String getEvent() { return event; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEvent() {\n return this.event;\n }", "public Object getEvent() {\r\n return event;\r\n }", "EventType getEvent();", "public String getEventMessage() {\n return eventMessage;\n }", "java.lang.String getEventType();", "public String getPushEvent();", "public...
[ "0.6833718", "0.68174493", "0.6763698", "0.66796345", "0.66687244", "0.66395956", "0.6636396", "0.65173244", "0.6515056", "0.6484487", "0.6465175", "0.6432092", "0.64052856", "0.6397422", "0.6395049", "0.63783", "0.63739467", "0.63502944", "0.6335923", "0.6306087", "0.6270993...
0.7013365
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
We have to call the classes of List and List_Items In order to operate with all the information
@FXML public void New_List(ActionEvent actionEvent) { //Here we are going to open a window to create a list. //Working!! try { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NewTodolist.fxml")); Parent root1 = (Parent) fxmlLoader.load(); Stage stage = new Stage(); stage.initModality(Modality.APPLICATION_MODAL); stage.initStyle(StageStyle.UNDECORATED); stage.setTitle("New List"); stage.setScene(new Scene(root1)); stage.show(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListItems() {\n itemList = new ArrayList();\n }", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "public List<Item> getItemList();", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundExcep...
[ "0.6742514", "0.6525955", "0.6471842", "0.6467685", "0.640348", "0.6366688", "0.63028365", "0.6294909", "0.6289523", "0.6257292", "0.6193452", "0.61743057", "0.61505187", "0.6114848", "0.60993135", "0.6098665", "0.60894185", "0.6041285", "0.6034012", "0.6027945", "0.6025674",...
0.0
-1
Here we are going to load a list to program. //We have to call the list class
@FXML public void Load_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadList(String name){\n }", "private void initList() {\n\n }", "public void loadAllLists(){\n }", "public List<String> load();", "void doList()\n\t{\n /* currentXXX may NOT be invalid! */\n\n\t\tint currentModule = propertyGet(LIST_MODULE)...
[ "0.80028164", "0.72257686", "0.69284856", "0.6814337", "0.6764239", "0.6609043", "0.6569459", "0.65537775", "0.65217614", "0.6517266", "0.6472328", "0.64500517", "0.64457583", "0.6390467", "0.63770187", "0.6360044", "0.63143235", "0.628208", "0.62635493", "0.6250235", "0.6236...
0.0
-1
/ Here we are going to save all the lists, if we make changes to all of them. We have to call the list class
@FXML public void Save_All_Lists(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveList() throws Exception {\n JournalEntries.saveList(JournalList,ReconcileCur.ReconcileNum);\n }", "public void saveAll(List list);", "public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOut...
[ "0.7295708", "0.71639675", "0.6782474", "0.67464", "0.67024076", "0.6554359", "0.6540199", "0.6522308", "0.6471947", "0.6436883", "0.64263606", "0.635334", "0.63498664", "0.63463724", "0.6316559", "0.6315619", "0.63057214", "0.6305493", "0.629382", "0.62901753", "0.6276917", ...
0.0
-1
/ Here we are going to click a Todo list of the list and we are going to display all the elements of this list on the list next to this one. We have to check if the Show_completed_Items or Show_Incompleted_Items is marked; in order to filter the items of that list.
@FXML public void Show_List(MouseEvent mouseEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n void showCompletedTasksClicked(ActionEvent event)\n {\n ObservableList<Item> completedTasks = FXCollections.observableArrayList();\n\n if(showCompletedTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listVie...
[ "0.7003566", "0.68688405", "0.67832905", "0.660376", "0.65739137", "0.6502332", "0.6500389", "0.6331896", "0.6326708", "0.62756115", "0.61506325", "0.60715914", "0.60136086", "0.60021555", "0.5937449", "0.5924085", "0.5923423", "0.5880505", "0.5879162", "0.5861957", "0.585494...
0.0
-1
We have to call the Item class We are going to clear this variable
@FXML public void Delete_Item(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear(){\n this.items.clear();\n }", "public void clearItems(){\n items.clear();\n }", "public void clear() {\r\n\t\titems.clear();\r\n\t}", "void clear()\n\t{\n\t\tgetItems().clear();\n\t}", "public void clearItems() {\n grabbedItems.clear();\n }", "publ...
[ "0.8133293", "0.7872399", "0.78146356", "0.7719372", "0.7618403", "0.7617641", "0.7584467", "0.7562232", "0.7413475", "0.71762586", "0.71762586", "0.71537817", "0.7088861", "0.7027513", "0.7013709", "0.70094585", "0.69577795", "0.69182944", "0.6918165", "0.6910161", "0.690629...
0.0
-1
//We have to call the list class We are going to use the method declared on this list class to save the list
@FXML public void Save_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveList() throws Exception {\n JournalEntries.saveList(JournalList,ReconcileCur.ReconcileNum);\n }", "public void saveAll(List list);", "public void saveList(List<T> ListObject) throws DaoException;", "public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;...
[ "0.71454495", "0.7096142", "0.68804485", "0.67962503", "0.66471696", "0.664538", "0.6611159", "0.65850484", "0.650511", "0.64684206", "0.6462277", "0.64486784", "0.6442597", "0.63704413", "0.6369173", "0.6341958", "0.6339627", "0.6327689", "0.6237658", "0.620951", "0.6208358"...
0.0
-1
Here we are going to check the status of the item; if is incomplete and we pressed the button; then we are going to change back the status of the item. Otherwise, if is complete and we pressed again the button completed; we are going to set back to incomplete the status of the item. We have to use the ListItems class to show the information of the item.
@FXML public void Item_Is_Completed(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }", "private void completeListener() {\n buttonPanel.getCompleteTask().addActionListener(new ActionListener() {\n public void actionPerforme...
[ "0.6499929", "0.61665344", "0.61504716", "0.6120052", "0.60636574", "0.6044803", "0.600995", "0.5995826", "0.5974954", "0.59745145", "0.5973556", "0.59696627", "0.5951985", "0.594856", "0.59118783", "0.5891657", "0.58869123", "0.58653307", "0.5850096", "0.58472013", "0.583511...
0.0
-1
Here we are going to filter and just show the items that are completed in the list. Also, we are going to check if the Show_Incompleted_Items is marked, in order to disable that option and enable this new option of filtering Show_Completed_Items. We have to use the List and ListItems class to show all the information about these ones
@FXML public void Show_Completed_Items(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n ...
[ "0.7748033", "0.7386651", "0.6752783", "0.61554736", "0.6115014", "0.6115014", "0.6108627", "0.6066538", "0.6035199", "0.5973296", "0.58721966", "0.5828944", "0.57874113", "0.56932294", "0.56816465", "0.5676307", "0.5663203", "0.5655005", "0.56510717", "0.5625896", "0.5621955...
0.0
-1
Here we are going to filter and just show the items that are incompleted in the list. Also, we are going to check if the Show_completed_Items is marked, in order to disable that option and enable this new option of filtering Show_Completed_Items. We have to use the List and ListItems classes to show all the information about these ones.
@FXML public void Show_Incomplete_Items(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n ...
[ "0.78877777", "0.7486506", "0.6562674", "0.60855645", "0.6045815", "0.5944023", "0.5944023", "0.59406537", "0.59373975", "0.5917731", "0.59062934", "0.5883217", "0.5875178", "0.565532", "0.5654515", "0.56338465", "0.5596457", "0.5529711", "0.5528712", "0.55030483", "0.5493035...
0.0
-1
/ Here we are going to load multiple lists into the list view which is the Lists. We are going to add them and load them with the List class
@FXML public void Load_Multiple_Lists(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadAllLists(){\n }", "public void loadLists() {\n Cursor cListas = getAllLists(); // Cursor en tabla listas\n Cursor cMovieList; // Cursor en tabla lista-pelicula\n Cursor cPeli; // Cursor en tabla peliculas a una película\n while...
[ "0.7997858", "0.73666316", "0.7255199", "0.7125679", "0.707941", "0.6913916", "0.68154305", "0.67772526", "0.67722124", "0.67345035", "0.66934407", "0.66892064", "0.6687648", "0.66600853", "0.6597836", "0.65881836", "0.65635467", "0.6563247", "0.65509367", "0.65480596", "0.65...
0.0
-1
Here we are going to check in the show_list what was the list that was selected. Then if this list is selected, and we press this button, we are going to delete all this list. We are going to use the List class, and delete all the attributes that belong to the list
@FXML public void Delete_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteList(){\n new Thread(() -> agenda.getConnector().deleteItem(currentList)).start();\n numberOfLists--;\n for(Component c:window.getComponents()){\n if (c.getName().equals(comboBox.getSelectedItem().toString())){\n window.remove(c);\n }\n ...
[ "0.7030985", "0.69854444", "0.6962105", "0.69430923", "0.6801749", "0.6705966", "0.66100156", "0.65264684", "0.6524881", "0.6491596", "0.6407102", "0.63989", "0.637045", "0.6368784", "0.63447976", "0.63166755", "0.6315153", "0.62809724", "0.62215894", "0.6193114", "0.61894524...
0.5874902
46
Here we are going to check in the show_list what was the list that was selected. Then if this list is selected, and we press this button, we are going to edi the name of this list. Here we are going to use the List class.
@FXML public void Edit_Name_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n ...
[ "0.7237417", "0.6661629", "0.6627893", "0.6538771", "0.6447592", "0.6368683", "0.6364417", "0.63498116", "0.634613", "0.6325677", "0.6295471", "0.6285184", "0.6285184", "0.6285184", "0.6285184", "0.62079436", "0.6198001", "0.61827284", "0.61574936", "0.61571634", "0.61554897"...
0.0
-1
Here we are opening a new window that will be used to modify the description or the due date of this item. For this new window and class, we have to pass as parameter the List, and Item_List, which we have to specify the item of this item_list. We have to check which item on the List_Items was selected, and click the button.
@FXML public void Modify_Item(ActionEvent actionEvent) { try { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ModifyItemlist.fxml")); Parent root1 = (Parent) fxmlLoader.load(); Stage stage = new Stage(); stage.initModality(Modality.APPLICATION_MODAL); stage.initStyle(StageStyle.UNDECORATED); stage.setTitle("New Item"); stage.setScene(new Scene(root1)); stage.show(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOpenEditDialog(Item item){\n /** Store as public reference */\n this.item = item;\n dialogNewItem.show();\n }", "public void showListChooserDialog(final OnListItemChoosen itemListener, String title, final String ... items) {\n final AWTFrame popup = new AWTFrame();...
[ "0.66331077", "0.64456856", "0.6196585", "0.6111105", "0.60586536", "0.6053763", "0.6043113", "0.5891073", "0.5848375", "0.5838567", "0.5823062", "0.5803559", "0.5783993", "0.57532215", "0.57265085", "0.5666887", "0.5665539", "0.56469184", "0.56468546", "0.564008", "0.5634227...
0.5438809
47
Here when we select the corresponding Item, we are going to show the information of this item Such as status, Name, Due date, and description. Here we are going to use the ListItem class to show all this information
public void Show_Item_Information(MouseEvent mouseEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tItemDetails itemDetails = (ItemDetails) list.getAdapter()\n\t\t\t\t\t\t.getItem(arg2);\n\n\t\t\t\tnew AlertDialog.Builder(FindAProductActivity.this)\n\t\t\t\t\t\t.setTitle(\"Information:\")\n\t\t\t\t...
[ "0.66408247", "0.65520567", "0.6211376", "0.6209997", "0.61590296", "0.6113294", "0.6101228", "0.6081464", "0.60573226", "0.60568184", "0.6048962", "0.60411996", "0.5995978", "0.59942967", "0.5989785", "0.5947522", "0.59408337", "0.5932048", "0.5921784", "0.59155154", "0.5898...
0.0
-1
TODO Autogenerated method stub
@Override protected Volga clone() throws CloneNotSupportedException { Volga v = (Volga) super.clone(); v.modelname = v.modelname + "-clone"; return v; }
{ "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
AgileSet Constructor with zero initial current size. Creates an empty AgileSet with a current size of zero.
public AgileSet() { currentSize = 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AgileSet(double initialCurrentSize) {\n currentSize = initialCurrentSize;\n }", "private EmptySet() {}", "public ArraySet() {\n\t\tthis(DEFAULT_CAPACITY);\n\t}", "public static FeatureSet empty() {\n return new FeatureSet(ImmutableSet.of(), ImmutableSet.of());\n }", "static Set c...
[ "0.7069702", "0.66527116", "0.66525304", "0.6511162", "0.6504192", "0.63294816", "0.6268445", "0.6158955", "0.6154344", "0.61232436", "0.60811764", "0.5964392", "0.5913819", "0.5864459", "0.5833958", "0.58223987", "0.5819767", "0.57628363", "0.57560086", "0.573225", "0.568079...
0.82458574
0
AgileSet Constructor with a specified initial current size. Creates an empty AgileSet with the specified current size value.
public AgileSet(double initialCurrentSize) { currentSize = initialCurrentSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AgileSet() {\n currentSize = 0.0;\n }", "public HeapSet (int initialCapacity) {\r\n\t\tsuper (initialCapacity);\r\n\t}", "public ArraySet() {\n\t\tthis(DEFAULT_CAPACITY);\n\t}", "public IntHashSet(int initialCapacity) {\n this(initialCapacity, 0.75f);\n }", "public Identification...
[ "0.80895615", "0.6677992", "0.6457227", "0.6419472", "0.62766874", "0.618224", "0.61338437", "0.61065006", "0.60773194", "0.60211086", "0.6013675", "0.6005501", "0.5728773", "0.57243", "0.5720536", "0.5709787", "0.57027626", "0.567382", "0.55639094", "0.5546745", "0.5528826",...
0.8072951
1
Adds the specified AgileObject to this set if it is not already present. If the set already contains the object, the call leaves the set unchanged and returns false. Implementation Note A successful add operation results in this AgileSet's internal current size and incapacity size fields being set to a negative number. This is done in order to flag the agile size retrieval methods to recalculate the values on the next call.
public boolean add(T item) { boolean addSuccessful = items.add(item); if (addSuccessful) { currentSize = -1.0; inCapacitySize = -1.0; } return addSuccessful; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean add(Building object) {\n\t\tif (contains(object)) {\n\t\t\tsuper.remove(object);\n\t\t}\n\t\tsuper.add(object);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean add(Object obj) {\n\t\treturn util.add(obj);\n\t}", "public boolean add(E obj)\r\n {\r\n int originalSize =...
[ "0.70718616", "0.6644802", "0.6530608", "0.65062034", "0.6472549", "0.63617676", "0.62886643", "0.62541354", "0.6140409", "0.61308956", "0.6123466", "0.60847294", "0.6062297", "0.59924346", "0.5990322", "0.59861106", "0.5981235", "0.59631807", "0.593232", "0.5931239", "0.5924...
0.5882652
22
Performs the given action for each element of this AgileSet until all elements have been processed or the action throws an exception.
@Override public void forEach(Consumer<? super T> action) { items.forEach(action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void triggerNextIteration() throws IllegalActionException {\n }", "@Override\n protected void triggerFirstIteration() throws IllegalActionException {\n }", "public abstract void completeIteration();", "public synchronized void processAll()\r\n {\r\n if (!myItems.isEmpty())...
[ "0.6561827", "0.63294667", "0.5898589", "0.5672385", "0.5579417", "0.5576088", "0.5564752", "0.5550924", "0.5547918", "0.5539172", "0.5452261", "0.5430939", "0.5364697", "0.53382593", "0.5244929", "0.5218566", "0.52028817", "0.5201563", "0.51976395", "0.5099869", "0.5085521",...
0.5787643
3
Returns true if this set contains no objects.
public boolean isEmpty() { return items.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\r\n\t\treturn objectCollection.isEmpty();\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "public boolean empty() {\n return objects.isEmpty();\n }", "public boolean isEmpty() {\n return pointsSet.isEmpty();\n }", ...
[ "0.8306453", "0.8298845", "0.81964856", "0.8124312", "0.79998183", "0.79119575", "0.78974664", "0.7887872", "0.78644156", "0.7853018", "0.7809818", "0.7769753", "0.7752326", "0.7746518", "0.7746518", "0.7742115", "0.7741452", "0.7741452", "0.7741452", "0.7737687", "0.77239263...
0.7499356
93
Returns an iterator over elements of type T.
@Override public Iterator<T> iterator() { return items.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Iterator<T> iterator();", "public T iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<Type> iterator();", "public Iterator<T> getIterator();", "Iterator<E> iterator();", "Iterator<...
[ "0.78096616", "0.7759676", "0.76986015", "0.76986015", "0.76986015", "0.76986015", "0.7555112", "0.7529757", "0.7313036", "0.7313036", "0.7112896", "0.7112896", "0.7112896", "0.71035343", "0.68920755", "0.67159927", "0.6695328", "0.66818637", "0.65989053", "0.65293336", "0.64...
0.62045985
35
Returns the total number of AgileObjects in this AgileSet.
public int size() { return items.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public in...
[ "0.68752104", "0.67718804", "0.6763946", "0.67530644", "0.6631598", "0.6628223", "0.6542411", "0.65374374", "0.65109116", "0.6504406", "0.6502899", "0.6499879", "0.6492113", "0.64828074", "0.64816535", "0.6478251", "0.6454932", "0.6429705", "0.64259607", "0.642295", "0.641039...
0.0
-1
Creates a Spliterator over the elements described by this Iterable.
@Override public Spliterator<T> spliterator() { return items.spliterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "@Override\n public Spliterator<ContentHandle> spliterator() {\n throw new UnsupportedOperationException();\n }", "public Iterator<Item> iterator() {\n Item[] temp = (Item[]) new Ob...
[ "0.6732433", "0.6677925", "0.6657529", "0.6643921", "0.6642368", "0.6638184", "0.6626016", "0.65930367", "0.6512493", "0.649521", "0.64808136", "0.6477008", "0.64766043", "0.6476369", "0.64745486", "0.6462547", "0.645736", "0.6416063", "0.6415139", "0.6406529", "0.63993675", ...
0.7658176
0
Returns a sequential Stream with this AgileSet's collection of AgileObjects as its source.
public Stream<T> stream() { return items.stream(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default Stream<E> stream() {\n return StreamSupport.stream(this.spliterator(), false);\n }", "default Stream<E> parallelStream() {\n return StreamSupport.stream(spliterator(), true);\n }", "public static <E> Stream<E> from(final Iterable<E> sequence) {\n if ( sequence == null ) retur...
[ "0.674089", "0.6395686", "0.5877286", "0.5813176", "0.5746278", "0.5735021", "0.57285994", "0.5641268", "0.55689675", "0.5484296", "0.54829955", "0.5478146", "0.5457069", "0.54222345", "0.5376588", "0.52631813", "0.52435046", "0.52402985", "0.52227753", "0.52225816", "0.51942...
0.63275975
2
Register a user to an activity. Updates the balance for the users. The activity and the user must exist, and the user and the creator for the activity must be friends. Also the user must not have been registered to this activity before.
public boolean registerToActivity(int id, String username) throws InvalidParameterException, DatabaseUnkownFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean addUserActivityToDB(UserActivity userActivity);", "boolean updateUserActivityInDB(UserActivity userActivity);", "public void register(User user) {\n\t\tboolean exists = false ;\n\t\tfor ( User currentUser : users )\n\t\t\tif ( currentUser.getId().equals(user.getId()) )\n\t\t\t\texists = true ;\n\t\tif ...
[ "0.6025413", "0.55972546", "0.54544723", "0.5418572", "0.5373043", "0.5331056", "0.53070295", "0.52736574", "0.5263821", "0.52064323", "0.51604664", "0.5153715", "0.515269", "0.51236606", "0.5119404", "0.50915784", "0.508539", "0.508145", "0.5076114", "0.50665474", "0.5065956...
0.5294215
7
Unregister from activity. Updates the balance for the users. The user must have been registered to this activity.
public boolean unregisterFromActivity(int id, String username) throws InvalidParameterException, DatabaseUnkownFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void deactivateAccount() {\n\t\tthis.setIsAccountLocked(true);\n\t}", "private void unregisterForBatteryStatus()\n\t{\n\t\tif(isReceiverRegistered && statusResult == null && batteryView != null && !batteryView.isShown())\n\t\t{\n\t\t\tActivity activity = RhodesActivity.safeGetInstance();\n\t\t\tif(a...
[ "0.6105527", "0.5683679", "0.5602292", "0.5428051", "0.54199976", "0.5404445", "0.53947866", "0.52907157", "0.5289852", "0.5282006", "0.52685714", "0.52322614", "0.5188423", "0.5175467", "0.51692736", "0.51426965", "0.51346284", "0.5132121", "0.51278114", "0.51106274", "0.510...
0.5450835
3
Adds the paid service to the database.
public int addPaidService(final DBPaidService service) throws InvalidParameterException, DatabaseUnkownFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getRefe...
[ "0.6721739", "0.63880396", "0.62573403", "0.62207", "0.6117831", "0.60894877", "0.5976751", "0.59523153", "0.59245765", "0.59229136", "0.5913342", "0.5862602", "0.5829127", "0.58007365", "0.5790729", "0.5756459", "0.5724179", "0.56936646", "0.5657362", "0.56531787", "0.565036...
0.76817554
0
Adds the paid task to the database.
public int addPaidTask(final DBPaidTask task) throws DatabaseUnkownFailureException, InvalidParameterException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmont...
[ "0.6312348", "0.6197643", "0.6157913", "0.6157653", "0.6078256", "0.6063576", "0.6062329", "0.60571665", "0.6043338", "0.6037238", "0.60363376", "0.5937847", "0.5908826", "0.5881553", "0.5869177", "0.5855471", "0.58143276", "0.5785525", "0.57838225", "0.5780717", "0.57599884"...
0.7815032
0
Adds a friendship relationship to the database. users must differ by their username. Does not validate users exist.
public void addFriendship(String username1, String username2) throws ElementAlreadyExistsException, DatabaseUnkownFailureException, InvalidParameterException, ReflexiveFriendshipException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}", "public void addFriendship(int u1, int u2) {\n\t\tUser usr=users.get(u1);\n\t\tUser friend=users.get(u2);\n\t\tif(usr!=null &&friend!=null) {\n\t\t\tusr.addFriend(friend);\n\t\t}else {\n\t\t\tSystem.err.printf(\"user(%d) or ...
[ "0.6867665", "0.67230356", "0.62930447", "0.625908", "0.6170145", "0.6079614", "0.59452087", "0.5942957", "0.5933975", "0.5896617", "0.5837859", "0.5824018", "0.58237386", "0.5822814", "0.5754344", "0.5743731", "0.56991845", "0.5679407", "0.56631184", "0.5659188", "0.5608308"...
0.7239255
0
Complete the compareTriplets function below.
static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) { List<Integer> result = new ArrayList<Integer>(); HashMap<String, Integer> temp = new HashMap<String, Integer>(); temp.put("a", 0); temp.put("b", 0); for(int i = 0; i < a.size(); i++){ if(a.get(i) < b.get(i)){ temp.put("b", temp.get("b") + 1); }else if(a.get(i) == b.get(i)){ continue; }else temp.put("a", temp.get("a") + 1); } result.add(temp.get("a")); result.add(temp.get("b")); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) {\n\n List<Integer> result = new ArrayList<Integer>(2);\n result.add(0, 0);\n result.add(1, 0);\n for (int i = 0; i < a.size(); i++) {\n if (a.get(i) > b.get(i)) {\n result.set(0, result.get...
[ "0.64544916", "0.62737054", "0.62097096", "0.58872104", "0.5738841", "0.56924766", "0.55252856", "0.5500684", "0.54776365", "0.5445787", "0.53979045", "0.5388924", "0.53257054", "0.52997434", "0.5298352", "0.5290072", "0.52801085", "0.5263691", "0.5223199", "0.5171405", "0.51...
0.61607945
3
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
public static void main(String[] args) throws IOException { String[] aItems = {"17", "18", "30"}; List<Integer> a = new ArrayList<Integer>(); for (int i = 0; i < 3; i++) { int aItem = Integer.parseInt(aItems[i]); a.add(aItem); } String[] bItems = {"99", "16", "8"} ; List<Integer> b = new ArrayList<Integer>(); for (int i = 0; i < 3; i++) { int bItem = Integer.parseInt(bItems[i]); b.add(bItem); } List<Integer> result = compareTriplets(a, b); for (int i : result) { System.out.print(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}", "public static void main(String[] arg) {\n\t\tBufferedReader br = new BufferedReader(\r\n\t\t ...
[ "0.68190515", "0.63314074", "0.616582", "0.6111132", "0.59032893", "0.56944215", "0.5686211", "0.5667942", "0.56595296", "0.5526065", "0.55126864", "0.5458744", "0.53445005", "0.53308034", "0.53260404", "0.5272132", "0.52668387", "0.5244044", "0.52213997", "0.5217596", "0.521...
0.0
-1
Partially updates a racePlanForm.
Optional<RacePlanForm> partialUpdate(RacePlanForm racePlanForm);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateLicensePlate(LicensePlateForm form) {\n\t}", "@Override\n\tpublic Planification updatePlan(Planification planification) {\n\t\treturn dao.updatePlan(planification);\n\t}", "Update withLabPlanId(String labPlanId);", "private void butEditFeeSched_Click(Object sender, System.EventArgs e) throw...
[ "0.5747732", "0.5650178", "0.55195826", "0.54138124", "0.536568", "0.5261693", "0.5209245", "0.51003927", "0.508788", "0.5067068", "0.5023786", "0.50133365", "0.49705577", "0.49574208", "0.49455282", "0.49446455", "0.4944148", "0.4921089", "0.49013323", "0.48744223", "0.48500...
0.75450647
0
Get all the racePlanForms.
List<RacePlanForm> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<ERForm> getAllForms() {\nString sql = \"select * from project1.reimbursementInfo;\";\n\t\t\n\t\tPreparedStatement stmt;\n\t\t\n\t\tList<ERForm> allForms = new ArrayList<ERForm>();\n\t\t\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tw...
[ "0.6554985", "0.6099244", "0.5840297", "0.5595518", "0.54975265", "0.5277368", "0.5225241", "0.5168832", "0.5119444", "0.50592625", "0.50468475", "0.50012827", "0.49917126", "0.4982714", "0.4973772", "0.493927", "0.4928138", "0.49235907", "0.49126452", "0.49059808", "0.489340...
0.77518624
0
Get the "id" racePlanForm.
Optional<RacePlanForm> findOne(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFormId();", "public Integer getFormId() {\n return formId;\n }", "public int getFormId()\r\n \t{\r\n \t\treturn Constants.TISSUE_SPECIMEN_REVIEW_EVENT_PARAMETERS_FORM_ID;\r\n \t}", "public Integer getFormResourceId() {\n\t\treturn formResourceId;\n\t}", "protected String getFo...
[ "0.7432626", "0.63797945", "0.63544184", "0.6257198", "0.623674", "0.62209624", "0.6183685", "0.6138414", "0.6097458", "0.5992711", "0.59846354", "0.59786046", "0.5967296", "0.5838659", "0.5797489", "0.56305856", "0.561025", "0.5541324", "0.55021805", "0.5368495", "0.53538257...
0.67823935
1
Delete the "id" racePlanForm.
void delete(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void delete(Long id) {\n planRepository.deleteById(id);\n\n }", "Form removeElement(String id);", "@PostMapping(\"/delete\")\r\n public String deleteForm(Model model,@RequestParam int traineeId) {\r\n try {\r\n Trainee trainee = service.findById(traineeId);\...
[ "0.64651847", "0.63984334", "0.6268746", "0.6213887", "0.6206475", "0.61517143", "0.6086303", "0.60839146", "0.60747355", "0.60391927", "0.6018906", "0.5958088", "0.5904494", "0.58458674", "0.5833199", "0.5817765", "0.58144295", "0.5727316", "0.56979525", "0.56742245", "0.567...
0.0
-1
NOTE: this test is identical to DemoTest.getBroswerVersionTest
@Test public void getBroswerVersionTest() { // Arrange // Act try { CDPClient.setDebug(true); CDPClient.sendMessage(MessageBuilder.buildBrowserVersionMessage(id)); responseMessage = CDPClient.getResponseMessage(id, null); // Assert result = new JSONObject(responseMessage); for (String field : Arrays.asList(new String[] { "protocolVersion", "product", "revision", "userAgent", "jsVersion" })) { assertThat(result.has(field), is(true)); } // ServiceWorker serviceWorker = CDPClient.getServiceWorker(URL, 10, // "activated"); // System.out.println(serviceWorker.toString()); // Assert.assertEquals(serviceWorker.getStatus(), "activated"); } catch (Exception e) { System.err.println("Exception (ignored): " + e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String offerVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", ...
[ "0.68780047", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.67743295", "0.67743295", "0.67743295", "0.67743295", "0.67637515", "0.6759349", "0.67253155", "0.6716039", "0.6716039", "0.6716039", "0.66885436", "0.66885...
0.82838875
0
box box1 = new box(); box box2 = new box(); box1.height=1; box2.width=2; box2=box1; double STATIC =2.5; System.out.println(STATIC); System.out.println(box2.height); int[] a = new int[4]; a[1]=1; System.out.println("The size of a is before:"+a.length); System.out.println("a [1] is before:"+a[1]); a = new int[2]; System.out.println("The size of a is:"+a.length); System.out.println("a[1] is :"+a[1]);
public static void main(String args[]) { int ans= Box_sum.m(3); System.out.println("The answer is:"+ans); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){ Rectangle box1 = new Rectangle(5,4);\n// System.out.println(box1.getArea());\n// System.out.println(box1.getPerimeter());\n//// Rectangle box2 = new Square(5);\n// System.out.println(box2.getArea());\n// System.out.println(box2.getPe...
[ "0.66978586", "0.65387636", "0.62143683", "0.617072", "0.6153943", "0.6062785", "0.60178524", "0.59776896", "0.5897277", "0.58122236", "0.57643265", "0.57061565", "0.5666228", "0.5645065", "0.55959857", "0.554457", "0.5496646", "0.5441777", "0.53566104", "0.5347603", "0.53207...
0.0
-1
the collection of ride lines Constructor for objects of class MyWorld.
public MyWorld() { // Create a new world with 800x600 cells with a cell size of 1x1 pixels. super(800, 600, 1); //could have as many RideLines as capasity dictates rides = new RideLines[MAX_RIDES]; currentRide=0; //initially, we have 0 prisoners //Create a Load button at the top of the screen load = new LoadButton(); addObject(load, 250, 20); //Create a Merge button at the top of the screen MergeButton merge = new MergeButton(); addObject(merge, 350, 20); //Create a Sort By Name button at the top of the screen SortByName sortName = new SortByName(); addObject(sortName, 450, 20); //Create a Sort by queue length at the top of the screen SortByLength sortLength = new SortByLength(); addObject(sortLength, 600, 20); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}", "public LinesDimension1() {\n \n }", "public Board(String lineMap) {\n objectsOnTheBoard = new LinkedList<GameObject>();\n }", "public CrnLineContainer() {\n }", "public Line(){\n\t\t\n\t}", "public CartLines() {...
[ "0.64358926", "0.6123241", "0.606657", "0.60559255", "0.59732413", "0.58685434", "0.5791193", "0.5728722", "0.5727836", "0.5707611", "0.5692985", "0.56530076", "0.5643142", "0.5601292", "0.55773044", "0.5563981", "0.5540492", "0.5539448", "0.5513117", "0.55066514", "0.5488698...
0.6859345
0
read from file reader and create sequence of ride lines
public void loadFile() { FileDialog fd = null; //no value fd = new FileDialog(fd , "Pick up a bubble file: " , FileDialog.LOAD); //create popup menu fd.setVisible(true); // make visible manu String directory = fd.getDirectory(); // give the location of file String name = fd.getFile(); // give us what file is it String fullName = directory + name; //put together in one sting File rideNameFile = new File(fullName); //open new file with above directory and name Scanner nameReader = null; //when I try to pick up it read as scanner what I choose try { nameReader = new Scanner(rideNameFile); } catch (FileNotFoundException fnfe)//if dont find return this message below { return; // immedaitely exit from here } //if load button pressed, it remove all ride lines in the world if(load.getFound()){ removeAllLines(); } //read until is no more stings inside of file and until fullfill max rides while(nameReader.hasNextLine()&&currentRide<MAX_RIDES) { String rd= nameReader.nextLine();//hold and read string with name of ride RideLines nova =new RideLines(rd); rides[currentRide]=nova; //Create a RideLine with string given from file addObject(rides[currentRide++], 650, 20 + 40*currentRide); } //when is no more strings inside it close reader nameReader.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void incrementLinesRead();", "public String readLines() {\n\n String fileAsString;\n fileAsString = read();\n StringBuilder newString = new StringBuilder();\n if (fileAsString != null) {\n if (fromLine == toLine) {\n\n newString = new StringBuilder(fileAsStri...
[ "0.63011897", "0.5800982", "0.57746", "0.57532865", "0.5716723", "0.56879115", "0.5626438", "0.56259817", "0.55296457", "0.5522316", "0.54974", "0.5482878", "0.54821575", "0.5465248", "0.5464461", "0.5438793", "0.54241335", "0.54086757", "0.5394392", "0.53854334", "0.53808385...
0.53980255
18
removes all RideLines objects from the world.
public void removeAllLines() { // get list of all ride lines and remove each removeObjects(getObjects(RideLines.class)); //remove RideLines removeObjects(getObjects(AddButton.class));//remove AddButton removeObjects(getObjects(ReleaseButton.class));//remove ReleaseButton removeObjects(getObjects(Person.class));//remove Person currentRide=0; // reset actual rides at zero }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void erasePolylines() {\n for (Polyline line : polylines) {\n line.remove(); ////removing each lines\n\n }\n polylines.clear(); ////clearing the polylines array\n }", "@Override\n public void removePathLines() {\n for (Polyline line : mPathLines) {\n ...
[ "0.6719602", "0.6300896", "0.62731016", "0.62537926", "0.61801046", "0.60323095", "0.60217625", "0.599743", "0.5937798", "0.5866679", "0.58558536", "0.5838494", "0.5808781", "0.5804967", "0.5801013", "0.5800415", "0.5797814", "0.5781498", "0.57800794", "0.5763387", "0.5744560...
0.7822958
0
rearranges the RideLines by name.
public void sortByName() { boolean swapMade;//has a swap been made in the most recent pass? //repeat looking for swaps do { swapMade=false;//just starting this pass, so no swap yet //for each RideLines's index for(int i = 0; i<currentRide; i++) { //assume thet the smallest name is the one we start with int minIndex= i; //finding the index of the(alphabetically) lowest RideLines name, //k: the index to start searching for the lowest name for(int k= minIndex+1; k<currentRide; k++) { //if the other RideLines has a lower name, they are the low name if(rides[k].getName().compareTo(rides[minIndex].getName())<0) { // standard swap, using a temporary. swap the smallest name RideLines temp = rides[k]; rides[k]=rides[i]; rides[i]=temp; swapMade=true; //remember this pass made at least one swap } } } }while(swapMade);//until no swaps were found in the most recent past redrawLines();//redraw the image }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "public void sortByLength()\n {\n boolean swapMade;//has a swap been made in the most recent pass...
[ "0.53819203", "0.5150323", "0.51295984", "0.5068203", "0.49550438", "0.49202698", "0.48621112", "0.48510617", "0.48296052", "0.48124602", "0.47641382", "0.47238016", "0.47213194", "0.46908394", "0.46783093", "0.46586525", "0.46538714", "0.4651857", "0.4611866", "0.45915288", ...
0.70679003
0
rearranges the RideLines by queue length.
public void sortByLength() { boolean swapMade;//has a swap been made in the most recent pass? //repeat looking for swaps do { swapMade=false;//just starting this pass, so no swap yet //go through entire array. looking for swaps that need to be done for(int i = 0; i<currentRide-1; i++) { //if the other RideLines has less people if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople()) { // standard swap, using a temporary. swap with less people RideLines temp = rides[i]; rides[i]=rides[i+1]; rides[i+1]=temp; swapMade=true;//remember this pass made at least one swap } } }while(swapMade);//until no swaps were found in the most recent past redrawLines();//redraw the image }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resize() {\n Comparable[] temp = new Comparable[size * 2];\n for (int i = 0; i < pq.length; i++) {\n temp[i] = pq[i];\n }\n pq = temp;\n }", "private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queu...
[ "0.57610536", "0.5759538", "0.5746322", "0.54976904", "0.5367094", "0.53371257", "0.53264135", "0.52731174", "0.5218503", "0.5207763", "0.5197574", "0.5184854", "0.5141084", "0.51005805", "0.5096368", "0.5082583", "0.50695467", "0.50083303", "0.50006974", "0.49953675", "0.499...
0.6238987
0
redraw is a private method that will rebuild the image for a RideLines
private void redrawLines() { for(int i =0; i<currentRide;i++) { rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void redraw()\r\n\t{\r\n\t\tif (needsCompleteRedraw)\r\n\t\t{\r\n\t\t\tcompleteRedraw();\r\n\t\t\tneedsCompleteRedraw = false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpartialRedraw();\r\n\t\t}\r\n\t}", "void reDraw();", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "public void redraw() {\n\t\tif(t...
[ "0.6811857", "0.66638786", "0.66450566", "0.65285677", "0.6456263", "0.6430889", "0.6407006", "0.63789874", "0.63679385", "0.6239528", "0.6230894", "0.620499", "0.6160402", "0.61206156", "0.6072615", "0.60725933", "0.60660577", "0.5977964", "0.5925051", "0.59172827", "0.58884...
0.82212573
0
Creates Elasticsearch configuration, shared by regular Elasticsearch and Amazon Elasticsearch, from Amazon Elasticsearch configuration.
public static ElasticsearchConf createElasticsearchConf(AmazonElasticStoragePluginConfig amazonElasticStoragePluginConfig) { List<Host> hostList = new ArrayList<>(); hostList.add(new Host(amazonElasticStoragePluginConfig.hostname, amazonElasticStoragePluginConfig.port)); ElasticsearchConf.AuthenticationType authenticationType; switch (amazonElasticStoragePluginConfig.authenticationType) { case NONE: authenticationType = ElasticsearchConf.AuthenticationType.NONE; break; case ACCESS_KEY: authenticationType = ElasticsearchConf.AuthenticationType.ACCESS_KEY; break; case EC2_METADATA: authenticationType = ElasticsearchConf.AuthenticationType.EC2_METADATA; break; default: authenticationType = ElasticsearchConf.AuthenticationType.NONE; break; } ElasticsearchConf elasticsearchConf = new ElasticsearchConf(hostList, "", "", amazonElasticStoragePluginConfig.accessKey, amazonElasticStoragePluginConfig.accessSecret, amazonElasticStoragePluginConfig.overwriteRegion ? amazonElasticStoragePluginConfig.regionName : "", authenticationType, amazonElasticStoragePluginConfig.scriptsEnabled, amazonElasticStoragePluginConfig.showHiddenIndices, true, amazonElasticStoragePluginConfig.showIdColumn, amazonElasticStoragePluginConfig.readTimeoutMillis, amazonElasticStoragePluginConfig.scrollTimeoutMillis, amazonElasticStoragePluginConfig.usePainless, true, amazonElasticStoragePluginConfig.scrollSize, amazonElasticStoragePluginConfig.allowPushdownOnNormalizedOrAnalyzedFields, amazonElasticStoragePluginConfig.warnOnRowCountMismatch, amazonElasticStoragePluginConfig.encryptionValidationMode); return elasticsearchConf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ElasticsearchClient getRESTClient() {\n\t\tif (restClient != null) {\n\t\t\treturn restClient;\n\t\t}\n\t\tString esScheme = Para.getConfig().elasticsearchRestClientScheme();\n\t\tString esHost = Para.getConfig().elasticsearchRestClientHost();\n\t\tint esPort = Para.getConfig().elasticsearchRestClien...
[ "0.55828226", "0.53812546", "0.5071528", "0.50225604", "0.48807243", "0.47656223", "0.4755082", "0.47385797", "0.47248125", "0.47189406", "0.47006327", "0.4591068", "0.45890692", "0.45557916", "0.45545575", "0.45449993", "0.45344967", "0.4509611", "0.45094797", "0.44963753", ...
0.73811454
0
/ Phone key pads) The international standard letter/number mapping found on the telephone is shown below: Write a program that prompts the user to enter a letter and displays its corresponding number.
public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter a letter: "); String s = input.nextLine(); char ch = s.charAt(0); ch = Character.toUpperCase(ch); if (s.length() != 1) { System.out.println("Invalid input"); System.exit(1); } int number = 0; if (Character.isLetter(ch)) { if ('W' <= ch) number = 9; else if ('T' <= ch) number = 8; else if ('P' <= ch) number = 7; else if ('M' <= ch) number = 6; else if ('J' <= ch) number = 5; else if ('G' <= ch) number = 4; else if ('D' <= ch) number = 3; else if ('A' <= ch) number = 2; System.out.println("The corresponding number is " + number); } else { System.out.println(ch + " invalid input!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int lookup(char letter) {\n\t\tswitch (letter) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'R':\n\t\t\treturn 1;\n\t\tcase 'N':\n\t\t\treturn 2;\n\t\tcase 'D':\n\t\t\treturn 3;\n\t\tcase 'C':\n\t\t\treturn 4;\n\t\tcase 'Q':\n\t\t\treturn 5;\n\t\tcase 'E':\n\t\t\treturn 6;\n\t\tcase 'G':\n\t\t\treturn...
[ "0.6468761", "0.64616084", "0.6263585", "0.61378706", "0.6135607", "0.60418177", "0.60354984", "0.60315526", "0.6020417", "0.59348285", "0.58908033", "0.58891904", "0.5831698", "0.5773722", "0.5750211", "0.5744108", "0.5726075", "0.5710063", "0.56892955", "0.5660109", "0.5659...
0.6546277
0
Created by SBKim on 20160706.
public interface FingerprintCallback { void onAuthenticated(); void onError(int msgId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.6017019", "0.5929283", "0.5892113", "0.58514255", "0.58410156", "0.5796551", "0.5796551", "0.5777307", "0.57361746", "0.57295847", "0.5685545", "0.5685518", "0.5685518", "0.5685518", "0.5685518", "0.5685518", "0.5675675", "0.567262", "0.5653455", "0.56468123", "0.5619649",...
0.0
-1