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
reads the text from the whole file
public static String readWholeFile(String filename) { try { Scanner scanner = new Scanner(new File(filename)); //scanner.useDelimiter("\\Z"); String returnString = ""; while (scanner.hasNextLine()) { returnString += scanner.nextLine(); returnString += System.lineSeparator(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readTextFile(String path) throws IOException {\n FileReader fileReader=new FileReader(path);\n BufferedReader bufferedReader=new BufferedReader(fileReader);\n String value=null;\n while((value=bufferedReader.readLine())!=null){\n System.out.println(value);\n ...
[ "0.74208033", "0.7352987", "0.724682", "0.72422606", "0.70876324", "0.7085796", "0.7055894", "0.6977508", "0.6914493", "0.68981254", "0.6886455", "0.6885357", "0.6876397", "0.68558764", "0.6833485", "0.6806809", "0.67896974", "0.67883915", "0.67685115", "0.6729399", "0.669390...
0.607982
100
save the context recievied via constructor in a local variable
public Functions(Context context){ this.context=context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Context context();", "Context context();", "Context createContext();", "Context createContext();", "Context getContext();", "public abstract void makeContext();", "public abstract Context context();", "public String getContext() { return context; }", "public Object getContextObject() {\n ret...
[ "0.74081933", "0.74081933", "0.7172364", "0.7172364", "0.71707976", "0.7076411", "0.7037989", "0.6996679", "0.69485986", "0.68524027", "0.68333185", "0.6828188", "0.6785349", "0.67712444", "0.67473954", "0.67473954", "0.6711818", "0.6698438", "0.66755295", "0.666617", "0.6654...
0.0
-1
called before request is started
@Override public void onStart() { System.out.println("Get Bill Details "); System.out.println("Get Bill Details URL "+jobDecrypt(context.getString(R.string.url_inquire))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "protected void onBeginRequest()\n\t{\n\t}", "@Override\n\tpublic void initRequest() {\n\n\t}", "@Override\n\tpublic void onRequestStart(String reqI...
[ "0.75935924", "0.7434612", "0.73579293", "0.7111827", "0.709784", "0.7078375", "0.6828659", "0.6786365", "0.6777992", "0.67673975", "0.66835743", "0.6548043", "0.64955246", "0.6423946", "0.642192", "0.6405631", "0.6396179", "0.6341774", "0.63408804", "0.6340001", "0.63343185"...
0.0
-1
called when response HTTP status is "4XX" (eg. 401, 403, 404)
@Override public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }", "protected abstract boolean ...
[ "0.6556771", "0.6077015", "0.6009509", "0.60011625", "0.58474255", "0.5837503", "0.5828418", "0.5827644", "0.5789087", "0.5762918", "0.57514864", "0.5749605", "0.5708024", "0.5708024", "0.56651163", "0.56601477", "0.56389934", "0.5637643", "0.5623692", "0.5621627", "0.5621548...
0.53255516
76
called when request is retried
@Override public void onRetry(int retryNo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int re...
[ "0.75707495", "0.71223557", "0.708606", "0.708606", "0.708606", "0.70619875", "0.70552206", "0.7043375", "0.70329213", "0.7000176", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.68454117", "0.67548937",...
0.7021514
11
called before request is started
@Override public void onStart() { progress.setMessage(context.getString(R.string.msg_connecting)); progress.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "protected void onBeginRequest()\n\t{\n\t}", "@Override\n\tpublic void initRequest() {\n\n\t}", "@Override\n\tpublic void onRequestStart(String reqI...
[ "0.75935924", "0.7434612", "0.73579293", "0.7111827", "0.709784", "0.7078375", "0.6828659", "0.6786365", "0.6777992", "0.67673975", "0.66835743", "0.6548043", "0.64955246", "0.6423946", "0.642192", "0.6405631", "0.6396179", "0.6341774", "0.63408804", "0.6340001", "0.63343185"...
0.0
-1
called when response HTTP status is "4XX" (eg. 401, 403, 404)
@Override public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) { progress.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }", "protected abstract boolean ...
[ "0.6556771", "0.6077015", "0.6009509", "0.60011625", "0.58474255", "0.5837503", "0.5828418", "0.5827644", "0.5789087", "0.5762918", "0.57514864", "0.5749605", "0.5708024", "0.5708024", "0.56651163", "0.56601477", "0.5637643", "0.5623692", "0.5621627", "0.5621548", "0.56179726...
0.56389934
16
called when request is retried
@Override public void onRetry(int retryNo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int re...
[ "0.75707495", "0.71223557", "0.708606", "0.708606", "0.708606", "0.70619875", "0.70552206", "0.7043375", "0.70329213", "0.7000176", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.68454117", "0.67548937",...
0.7021514
10
called before request is started
@Override public void onStart() { progress.setMessage(context.getString(R.string.msg_connecting)); progress.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "protected void onBeginRequest()\n\t{\n\t}", "@Override\n\tpublic void initRequest() {\n\n\t}", "@Override\n\tpublic void onRequestStart(String reqI...
[ "0.75935924", "0.7434612", "0.73579293", "0.7111827", "0.709784", "0.7078375", "0.6828659", "0.6786365", "0.6777992", "0.67673975", "0.66835743", "0.6548043", "0.64955246", "0.6423946", "0.642192", "0.6405631", "0.6396179", "0.6341774", "0.63408804", "0.6340001", "0.63343185"...
0.0
-1
called when response HTTP status is "4XX" (eg. 401, 403, 404)
@Override public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) { progress.dismiss(); e.printStackTrace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }", "protected abstract boolean ...
[ "0.6556771", "0.6077015", "0.6009509", "0.60011625", "0.58474255", "0.5837503", "0.5828418", "0.5827644", "0.5789087", "0.5762918", "0.57514864", "0.5749605", "0.5708024", "0.5708024", "0.56651163", "0.56601477", "0.56389934", "0.5637643", "0.5623692", "0.5621627", "0.5621548...
0.5561483
29
called when request is retried
@Override public void onRetry(int retryNo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int re...
[ "0.75707495", "0.71223557", "0.708606", "0.708606", "0.708606", "0.70552206", "0.7043375", "0.70329213", "0.7021514", "0.7021514", "0.7021514", "0.7000176", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", ...
0.70619875
5
called before request is started
@Override public void onStart() { progress.setMessage(context.getString(R.string.msg_connecting)); progress.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "protected void onBeginRequest()\n\t{\n\t}", "@Override\n\tpublic void initRequest() {\n\n\t}", "@Override\n\tpublic void onRequestStart(String reqI...
[ "0.75935924", "0.7434612", "0.73579293", "0.7111827", "0.709784", "0.7078375", "0.6828659", "0.6786365", "0.6777992", "0.67673975", "0.66835743", "0.6548043", "0.64955246", "0.6423946", "0.642192", "0.6405631", "0.6396179", "0.6341774", "0.63408804", "0.6340001", "0.63343185"...
0.0
-1
called when response HTTP status is "4XX" (eg. 401, 403, 404)
@Override public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) { progress.dismiss(); e.printStackTrace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }", "protected abstract boolean ...
[ "0.6556771", "0.6077015", "0.6009509", "0.60011625", "0.58474255", "0.5837503", "0.5828418", "0.5827644", "0.5789087", "0.5762918", "0.57514864", "0.5749605", "0.5708024", "0.5708024", "0.56651163", "0.56601477", "0.56389934", "0.5637643", "0.5623692", "0.5621627", "0.5621548...
0.55557436
30
called when request is retried
@Override public void onRetry(int retryNo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int re...
[ "0.75707495", "0.71223557", "0.708606", "0.708606", "0.708606", "0.70619875", "0.70552206", "0.70329213", "0.7021514", "0.7021514", "0.7021514", "0.7000176", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", "0.6979388", ...
0.7043375
7
Override to provide a specialized version of ClientFacade
protected ClientFacade createClientFacade(IFlushable flushable, IProtocolLogger logger) { return new ClientFacade(flushable, logger); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "public abstract Client getClient();", "protected Client getRealClient() {\n\t\treturn client;\n\t}", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\...
[ "0.71170264", "0.678831", "0.64196956", "0.6343478", "0.6121023", "0.6089879", "0.59696364", "0.59603894", "0.5945908", "0.5929407", "0.5919692", "0.59185034", "0.58813655", "0.5879173", "0.5876463", "0.58048934", "0.57640964", "0.5759474", "0.5728585", "0.57248706", "0.57095...
0.6820828
1
Override to provide a specialized version of ServerFacade
protected ServerFacade createServerFacade(IFlushable flushable, IProtocolLogger logger) { return new ServerFacade(flushable, logger); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ServerModelFacade getInstance() {\n if(m_theFacade == null)\n m_theFacade = new ServerModelFacade(new ServerProxy(new HttpCommunicator()));\n return m_theFacade;\n }", "private ServerModelFacade(IServerProxy theProxy) {\n setServerProxy(theProxy);\n }", "publ...
[ "0.6329637", "0.6169065", "0.61477524", "0.6144207", "0.6109628", "0.6097399", "0.5777637", "0.5732078", "0.5711644", "0.5698164", "0.561135", "0.5582962", "0.55454016", "0.5535009", "0.5509988", "0.5505631", "0.5505295", "0.55024064", "0.54832226", "0.54668295", "0.54606605"...
0.70046383
0
TODO Autogenerated method stub
@Override public void keyTyped(KeyEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void keyReleased(KeyEvent e) { }
{ "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
Testing whole process creation and modification.
@Test public void testRun1() { RingSum s = new RingSum(3); for( int i = 0; i < 120; ++i ) { s.push(0); s.push(1); s.push(0); assertTrue(s.get() == 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testProcessInstanceExec()\r\n\t{\r\n\t\tthis.processDefinition = this.jbpmService.parseXMLResource(PROCESS_FILE);\r\n\r\n\t\tthis.jbpmService.deployProcessDefinition(this.processDefinition);\r\n\r\n\t\t// Create the instance based on the latest definition\r\n\t\tProcessInstance processInstan...
[ "0.65745646", "0.64540803", "0.6396411", "0.6341715", "0.6332315", "0.6177422", "0.6105554", "0.61019504", "0.60780185", "0.60754704", "0.6054187", "0.59786844", "0.59776235", "0.59736204", "0.58951193", "0.588462", "0.58508736", "0.5842756", "0.58371085", "0.58295774", "0.58...
0.0
-1
TODO Autogenerated method stub
@Override public String parse(AssignmentInfo assignmentInfo) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String parse(ValidationInfo validationInfo) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created with IntelliJ IDEA. User: marc Date: 21/01/13 Time: 14:02 To change this template use File | Settings | File Templates.
public interface ConnexionBDDInterface { public String sendRequestFromNfcToBdd (String req) throws SQLException, ClassNotFoundException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public void mo38117a() {\n }", "public static void generateCode()\n {\n \n }", "public void mo21785J() {\n }", "public void mo21792Q() {\n }", "@SuppressWarnings(...
[ "0.61270547", "0.59473825", "0.5888909", "0.58581364", "0.58432025", "0.5793127", "0.57671475", "0.57567734", "0.57563674", "0.57406706", "0.572643", "0.57118845", "0.57006377", "0.56929165", "0.56819147", "0.56803125", "0.5661535", "0.5641486", "0.56409067", "0.56375414", "0...
0.0
-1
public static LinkedHashMap hashMap;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.full_image); dbHandler_card = new DBHandler_Card(this,null,null,1); // hashMap = new LinkedHashMap<>(); Intent i = getIntent(); position = i....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LinkedHashMap<String, SharedDataInfo> sharedData(){\n return new LinkedHashMap<String, SharedDataInfo>();\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "public MyHashMap() {\n map = new HashMap();\n }", "public Q706DesignHashMap() {\n keys = new ...
[ "0.69272906", "0.6812829", "0.662849", "0.6531422", "0.6491592", "0.6474113", "0.6434884", "0.64177316", "0.63937134", "0.63754046", "0.6335049", "0.6276292", "0.627207", "0.62376", "0.62362856", "0.623023", "0.6209403", "0.6205691", "0.618948", "0.61704516", "0.6166528", "...
0.0
-1
MyActivity myActivity = new MyActivity();
public void add(){ dbHandler_card.getcount(); Intent i = new Intent(this,MyActivity.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Activity() {\n }", "Activity activity();", "void startNewActivity(Intent intent);", "void onCreate(Intent intent);", "private void openActivity() {\n }", "public void create(MyActivity activity, Bundle bundle){\n super.create(activity, bundle);\n\n }", "void doActivity();", "pu...
[ "0.7188873", "0.7060302", "0.67438173", "0.6688835", "0.65414", "0.6518769", "0.6376309", "0.63584983", "0.6354307", "0.62808317", "0.62780595", "0.6254215", "0.6247645", "0.6195346", "0.61635983", "0.6128919", "0.6128919", "0.61134714", "0.6112032", "0.6105883", "0.6071263",...
0.0
-1
function to check whether a number is positive or not
public boolean isPositive(int number) { return number > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPositiveNumber(int number) {\n return number >= 0;\n }", "public boolean isPositive()\n {\n return Native.fpaIsNumeralPositive(getContext().nCtx(), getNativeObject());\n }", "public static boolean isNumberPositive(Object val) throws BaseException\n{\n\tif(val instanceof ...
[ "0.78638893", "0.72565013", "0.7237551", "0.71715266", "0.71646065", "0.70547396", "0.7054296", "0.6878761", "0.6786515", "0.6781244", "0.6754323", "0.67526805", "0.6750435", "0.6731752", "0.6691546", "0.6682759", "0.6624227", "0.660852", "0.6605621", "0.6589813", "0.6571118"...
0.78641766
0
Create a StringEscape instance that uses the default escape character '\'.
public StringEscape(final Map<Character, Character> mapping) { this(mapping, '\\'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String escape(CharSequence input) {\n return Strings.escape(input, this);\n }", "public interface Escaper {\n\n /**\n * Escape one character, returning an escaped version of it if one is\n * needed, and otherwise returning null.\n *\n * @param c A character\n * @return A ...
[ "0.67240864", "0.6712284", "0.65581965", "0.6554843", "0.6491983", "0.64278424", "0.6407616", "0.6395089", "0.6374999", "0.6359749", "0.6245641", "0.6245363", "0.6231798", "0.61681324", "0.6153607", "0.61365235", "0.61315715", "0.6112034", "0.610833", "0.6085438", "0.6069314"...
0.66406935
2
Create a StringEscape instance that uses the specified escape character.
public StringEscape(final Map<Character, Character> mapping, final char escape) { this.escape = escape; this.unescapeMap = MapTool.unmodifiableCopy(mapping); this.escapeMap = Collections.unmodifiableMap(MapTool.reverse(mapping)); controlCharacters = SetTool.unmodifiableCopy(mapping.keySet()); stringCharacters...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CharSequence escape(char c);", "public interface Escaper {\n\n /**\n * Escape one character, returning an escaped version of it if one is\n * needed, and otherwise returning null.\n *\n * @param c A character\n * @return A character sequence to replace the character with, or null if no\n ...
[ "0.6707864", "0.6175182", "0.61271816", "0.6088766", "0.59815973", "0.5943486", "0.58475435", "0.5840952", "0.58223677", "0.57923216", "0.56817526", "0.5658697", "0.5640833", "0.5624483", "0.5607078", "0.55906606", "0.5570711", "0.5526348", "0.5524416", "0.5517991", "0.550847...
0.60204476
4
Escapes all occurrences of string characters in a String.
public String escape(final String input) { StringBuilder builder = new StringBuilder(input); escape(builder); return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String encodeEscapes(@Nullable String inString)\n {\n if(inString == null)\n return \"\";\n\n // replace all special characters with some equivalent\n StringBuilder result = new StringBuilder();\n for(int i = 0; i < inString.length(); i++)\n {\n char c = inString.charAt(i)...
[ "0.7454076", "0.7132026", "0.70092624", "0.6886972", "0.6864738", "0.6709184", "0.66097146", "0.6589031", "0.6579539", "0.647239", "0.6465733", "0.64588875", "0.6433838", "0.64152837", "0.63849485", "0.63521045", "0.63366514", "0.63360983", "0.6330987", "0.629967", "0.6270184...
0.6095486
30
Replaces all escape sequences in a String with the string character. All escape sequences in the String are assumed to be valid. For invalid escape sequences the result is unspecified, an Exception might be thrown.
public String unescape(final String input) { CharIterator iter = new CharIterator(input); StringBuilder builder = new StringBuilder(); while (iter.hasNext()) { if (iter.next() != escape) { builder.append(iter.getLookbehind()); } else { Check.isTrue(iter.hasNext(), "Trailing escape character: %", in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String encodeEscapes(@Nullable String inString)\n {\n if(inString == null)\n return \"\";\n\n // replace all special characters with some equivalent\n StringBuilder result = new StringBuilder();\n for(int i = 0; i < inString.length(); i++)\n {\n char c = inString.charAt(i)...
[ "0.6829178", "0.6827824", "0.6427361", "0.6325252", "0.6263673", "0.6260961", "0.6256443", "0.62335074", "0.6225013", "0.61885124", "0.61789227", "0.6166455", "0.60198474", "0.5978289", "0.59204054", "0.5901861", "0.5892002", "0.58897394", "0.5879344", "0.5868268", "0.5860461...
0.0
-1
Created by Administrator on 2015/9/12 0012.
public interface Sorter { int[] sort(int[] sequence); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {...
[ "0.6051609", "0.59261566", "0.5892088", "0.58687013", "0.585219", "0.5844124", "0.5835625", "0.57923186", "0.5778863", "0.5766133", "0.5766133", "0.5766133", "0.5766133", "0.5766133", "0.5766133", "0.5766133", "0.5762591", "0.5756782", "0.57557726", "0.57533586", "0.5747343",...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ps); txtRadio = (TextView) findViewById(R.id.txtRadio); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
If all of the checkboxes were selected, return true
private boolean checkQuestion9() { chkBox1_Q9 = (CheckBox) findViewById(R.id.chkBox1_Q9); chkBox2_Q9 = (CheckBox) findViewById(R.id.chkBox2_Q9); chkBox3_Q9 = (CheckBox) findViewById(R.id.chkBox3_Q9); if (chkBox1_Q9.isChecked() && chkBox2_Q9.isChecked() && chkBox3_Q9.isChecked()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }", "public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }", "boolean isSetMultiple();", "boolean hasAll();", "boolean hasAll();", "public void selectAllCheckBox(){\r\n\t\tfor (WebElement cbox ...
[ "0.70957506", "0.70957506", "0.6803605", "0.6684049", "0.6684049", "0.6661318", "0.6611643", "0.6573504", "0.656047", "0.64073384", "0.6403918", "0.64005923", "0.6400166", "0.63773096", "0.6365222", "0.6365056", "0.6365056", "0.6349221", "0.63381946", "0.631139", "0.6285854",...
0.5784475
62
If the 1st & 2nd checkbox was selected, return true
private boolean checkQuestion5() { chkBox1_Q5 = (CheckBox) findViewById(R.id.chkBox1_Q5); chkBox2_Q5 = (CheckBox) findViewById(R.id.chkBox2_Q5); chkBox3_Q5 = (CheckBox) findViewById(R.id.chkBox3_Q5); if (chkBox1_Q5.isChecked() && chkBox2_Q5.isChecked() && !chkBox3_Q5.isChecked()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkTwoBox(View view) {\n CheckBox firstcheck = (CheckBox) findViewById(R.id.optionQ3_1);\n CheckBox secondcheck = (CheckBox) findViewById(R.id.optionQ3_2);\n CheckBox thirdcheck = (CheckBox) findViewById(R.id.optionQ3_3);\n\n if (firstcheck.isChecked() && secondcheck.isChe...
[ "0.6782862", "0.6742513", "0.6335071", "0.62928414", "0.6269195", "0.6262026", "0.6262026", "0.6262026", "0.62154156", "0.61821824", "0.6164101", "0.61300355", "0.6121239", "0.6092643", "0.6061126", "0.60117584", "0.6011064", "0.60057515", "0.5992124", "0.5936148", "0.5932354...
0.5594374
47
Checking the 6th question and returning true if checkbox 2 and 3 were selected
private boolean checkQuestion6() { chkBox3_Q6 = (CheckBox) findViewById(R.id.chkBox3_Q6); chkBox2_Q6 = (CheckBox) findViewById(R.id.chkBox2_Q6); chkBox1_Q6 = (CheckBox) findViewById(R.id.chkBox1_Q6); if (chkBox3_Q6.isChecked() && !chkBox1_Q6.isChecked() && chkBox2_Q6.isChecked()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateAnswer() {\n CheckBox checkbox1 = findViewById(R.id.checkbox_1);\n CheckBox checkbox2 = findViewById(R.id.checkbox_2);\n CheckBox checkbox3 = findViewById(R.id.checkbox_3);\n\n int checkboxSelected = 0;\n\n if (checkbox1.isChecked()) {\n checkbo...
[ "0.7745535", "0.7615688", "0.7369624", "0.723597", "0.7229003", "0.7156864", "0.7105936", "0.7087547", "0.70468444", "0.70299536", "0.7006322", "0.6981928", "0.68958414", "0.6752096", "0.6689938", "0.65819097", "0.65721107", "0.65717316", "0.65591943", "0.6467309", "0.6417194...
0.75681674
2
/ 1 / \ 2 2
public static void main(String[] args) { BinaryTree btree1 = new BinaryTree(1); btree1.left = new BinaryTree(2); btree1.right = new BinaryTree(2); System.out.println(isSymmetric(btree1)); /* * 1 / \ 2 2 \ 3 */ BinaryTree btree2 = new BinaryTree(1); btree2.left =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int rightChild(int i){return 2*i+2;}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int first_leaf() { return n/2; }", "LengthScalarDivide createLengthScalarDivide();", "public static BinaryExpressi...
[ "0.5802931", "0.57830036", "0.57177615", "0.5564141", "0.5354098", "0.5311531", "0.52758396", "0.5268713", "0.52555203", "0.5255421", "0.5237614", "0.51919836", "0.5186965", "0.5178512", "0.5141727", "0.51358914", "0.5135747", "0.5128278", "0.51273", "0.5095059", "0.50897986"...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (ParseException ex) { Logger.getLogger(Controlador.class.getName()).log(Level.SEVERE, n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (ParseException ex) { Logger.getLogger(Controlador.class.getName()).log(Level.SEVERE, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
Get the list of all users
public static List<User> getUsersList(){ WSResponse response = null; List<User> resultList = new ArrayList<User>(); try{ Promise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_USERS_URL) .setContentType(Urls.CONTENT_TYPE_JSON) .get(); response = result.get(10000); Gson gson = new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAllUsers();", "public List<User> getAllUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "List<User> getUsers();", "List...
[ "0.9007936", "0.87763155", "0.8589943", "0.8589943", "0.84754455", "0.84595", "0.84541154", "0.84541154", "0.8427308", "0.8414903", "0.8397057", "0.83358514", "0.83300424", "0.83283424", "0.8326811", "0.8305557", "0.8301624", "0.82903135", "0.8277038", "0.82739943", "0.827274...
0.0
-1
Delete the user with the given id
public static void deleteUser(String id){ WSResponse response = null; try{ Promise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.DELETE_USER_URL+id) .delete(); response = result.get(10000); if(response.getStatus() == StatusCodes.OK){ User user = new Gson().fromJson(response.getBody(), User.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteUserById(Long id);", "void deleteUserById(Integer id);", "public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }", "public void deleteUser(Integer id) throws BadRequestException;", "public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}", "public void de...
[ "0.90023315", "0.89317465", "0.8810221", "0.8767512", "0.87133664", "0.8678416", "0.86493033", "0.8639611", "0.86376804", "0.86307263", "0.8595817", "0.8564324", "0.8547114", "0.85276335", "0.8523065", "0.8475695", "0.8474869", "0.84574264", "0.84295076", "0.84169763", "0.840...
0.8287465
29
Get user by id
public static User getUser(String id){ WSResponse response = null; User user = null; try{ Promise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_ONE_USER+id) .setContentType(Urls.CONTENT_TYPE_JSON) .get(); response = result.get(10000); user = new Gson().fromJson(response.getBody(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getUserById(int id);", "User getUser(Long id);", "User getUserById(Long id);", "User getUserById(Long id);", "public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }", "@Override\r\n\tpublic User getUserById(int id) {\n\...
[ "0.8498947", "0.8476453", "0.83555573", "0.83555573", "0.8294966", "0.82713556", "0.8260994", "0.82565147", "0.82430416", "0.82427704", "0.822458", "0.81916654", "0.816067", "0.8137545", "0.8109001", "0.81073654", "0.8105982", "0.8090787", "0.8089314", "0.80797035", "0.807720...
0.7903562
44
Get course members list
public static List<User> getCourseMembers(Course course){ List<User> result = new ArrayList<User>(); List<User> usersList = getUsersList(); if((usersList != null) && (course != null) && (course.members_ids != null)){ for(User user : usersList){ if(course.members_ids.contains(user._id)){ result.add(use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "public ArrayList <Course> ge...
[ "0.71299267", "0.69144624", "0.684058", "0.67548156", "0.66682535", "0.6664069", "0.664105", "0.66198856", "0.6608433", "0.65325946", "0.65291363", "0.64848864", "0.6482083", "0.64787203", "0.64543825", "0.6448942", "0.64321893", "0.6428496", "0.64269465", "0.6424699", "0.639...
0.76833886
0
Once the sell by date has passed, Quality degrades twice as fast
@Test void sellingDatePast() { int originalQuality = 10; Item[] items = new Item[]{ new Item("single", 5, originalQuality), new Item("double", -1, originalQuality) }; GildedRose app = new GildedRose(items); app.updateQuality(); assertE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\...
[ "0.6423283", "0.6232564", "0.6188872", "0.60616904", "0.604637", "0.6025251", "0.6001688", "0.5938657", "0.59364825", "0.5879342", "0.58278006", "0.58149123", "0.5782934", "0.5760562", "0.57083285", "0.56530267", "0.5642759", "0.5608128", "0.5591703", "0.5544644", "0.54981995...
0.6887945
0
The Quality of an item is never negative
@Test void negativeQuality() { Item[] items = new Item[]{new Item("noValue", 2, 0)}; GildedRose app = new GildedRose(items); app.updateQuality(); assertEquals(0, app.items[0].quality, "Quality shouldn't drop below 0"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\...
[ "0.7997644", "0.79809004", "0.7914208", "0.779027", "0.7755873", "0.7731089", "0.7604769", "0.7485917", "0.7332978", "0.730709", "0.70091814", "0.69991976", "0.6948509", "0.6948509", "0.6947784", "0.6893179", "0.6840142", "0.6816142", "0.6816142", "0.6816142", "0.6744342", ...
0.79574454
2
"Aged Brie" actually increases in Quality the older it gets
@Test void agedBrie() { int originalSellIn = 10; int originalQuality = 10; Item[] items = new Item[]{new Item("Aged Brie", originalSellIn, originalQuality)}; GildedRose app = new GildedRose(items); app.updateQuality(); assertEquals("Aged Brie", app.items[0].name, "I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityWithSellInUnder0QualityUnder50Brie() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -1, 40));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.g...
[ "0.6600691", "0.60960513", "0.6092605", "0.6071412", "0.6054948", "0.59799004", "0.59529126", "0.59501886", "0.5942296", "0.59064716", "0.5905984", "0.590537", "0.5904674", "0.5825742", "0.5816607", "0.5812868", "0.58068866", "0.5789694", "0.57846695", "0.57599753", "0.575925...
0.65168166
1
The Quality of an item is never more than 50
@Test void maxQuality() { Item[] items = new Item[]{ new Item("Aged Brie", 10, 50), new Item("Backstage passes to a TAFKAL80ETC concert", 5, 49), new Item("Aged Brie", 10, 40) }; GildedRose app = new GildedRose(items); app.updateQuality...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityOf50() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", 1, 49));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items....
[ "0.79750043", "0.7729784", "0.7616531", "0.7590091", "0.74098563", "0.7337299", "0.72696245", "0.7190411", "0.7055357", "0.6953283", "0.6904379", "0.6808636", "0.6794648", "0.6794648", "0.6794648", "0.6783139", "0.67720884", "0.67245626", "0.6689496", "0.6660048", "0.6660048"...
0.7771985
1
"Sulfuras", being a legendary item, never has to be sold or decreases in Quality
@Test void legendaryItems() { int[] sellDates = new int[]{-5, 0, 5}; Item[] items = new Item[]{ new Item("Sulfuras, Hand of Ragnaros", sellDates[0], 80), new Item("Sulfuras, Hand of Ragnaros", sellDates[1], 80), new Item("Sulfuras, Hand of Ragnaros", s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityWithSellInUnder0QualityUnder50Brie() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -1, 40));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.g...
[ "0.67242604", "0.6696457", "0.6584824", "0.65422", "0.64932066", "0.64549875", "0.62431115", "0.6137103", "0.6102239", "0.6032415", "0.6022306", "0.59888405", "0.589188", "0.5887869", "0.5878295", "0.5877786", "0.5865997", "0.58502245", "0.5830597", "0.5830597", "0.5825932", ...
0.5606379
25
/ "Backstage passes", like aged brie, increases in Quality as its SellIn value approaches; Quality increases by 2 when there are 10 days or less and by 3 when there are 5 days or less but Quality drops to 0 after the concert
@Test void backstagePasses() { String name = "Backstage passes to a TAFKAL80ETC concert"; int originalQuality = 10; int[] sellDates = new int[]{-1, 10, 5}; int[] targetQuality = new int[]{0, originalQuality + 2, originalQuality + 3}; Item[] items = new Item[]{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\...
[ "0.67111564", "0.6660435", "0.6501414", "0.643525", "0.63356775", "0.6305869", "0.62253386", "0.61701375", "0.61661786", "0.6148272", "0.6100729", "0.60728407", "0.60495913", "0.6045948", "0.58739364", "0.5846969", "0.582609", "0.58203506", "0.58130455", "0.5787016", "0.57867...
0.67114824
0
"Conjured" items degrade in Quality twice as fast as normal items
@Test void conjuredItems() { int originalSellIn = 10; int originalQuality = 10; Item[] items = new Item[]{new Item("Conjured Mana Cake", originalSellIn, originalQuality)}; GildedRose app = new GildedRose(items); app.updateQuality(); assertEquals(originalQuality - 2,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\...
[ "0.6984504", "0.6842123", "0.6772207", "0.6758423", "0.66982466", "0.6695969", "0.66765785", "0.6647771", "0.6636598", "0.662561", "0.66109866", "0.6503866", "0.64698935", "0.63188666", "0.6290739", "0.6174906", "0.61522603", "0.6100912", "0.60815823", "0.60692036", "0.576704...
0.80919534
0
/ addLoanChkBox is called when the "Bill?" checkbox is ticked. If this transaction is a bill, the loan interface is shown, and otherwise it is removed.
private void addLoanChkBox(boolean isBill) { if (isBill) { // Here is where I assign the layout that loanLinParent actually points to. this.loanLinParent = (LinearLayout) findViewById(R.id.lin_loan_main); // https://www.bignerdranch.com/blog/understanding-androids-layoutinflater-infl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loanChkBoxTicked(boolean isLoan)\r\n {\r\n if (isLoan)\r\n {\r\n // https://www.bignerdranch.com/blog/understanding-androids-layoutinflater-inflate/\r\n LinearLayout loanItems;\r\n\r\n LayoutInflater layoutInflater = getLayoutInflater();\r\n\r\n loanItems = (LinearLayout) la...
[ "0.75622815", "0.59903693", "0.5597263", "0.5319996", "0.52390504", "0.506679", "0.50548387", "0.49998266", "0.49767065", "0.49658066", "0.49553743", "0.493862", "0.490977", "0.49034724", "0.48993555", "0.48548692", "0.48470077", "0.48294747", "0.48199427", "0.4791791", "0.47...
0.7754583
0
/ loanChkBoxTicked is called when loanChkBox is ticked. If the given input is true, it adds the additional input fields, pseudotable, and button for the loan tools. Otherwise it removes them
private void loanChkBoxTicked(boolean isLoan) { if (isLoan) { // https://www.bignerdranch.com/blog/understanding-androids-layoutinflater-inflate/ LinearLayout loanItems; LayoutInflater layoutInflater = getLayoutInflater(); loanItems = (LinearLayout) layoutInflater.inflate( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addLoanChkBox(boolean isBill)\r\n {\r\n if (isBill)\r\n {\r\n // Here is where I assign the layout that loanLinParent actually points to.\r\n this.loanLinParent = (LinearLayout) findViewById(R.id.lin_loan_main);\r\n\r\n // https://www.bignerdranch.com/blog/understanding-androids-...
[ "0.69017124", "0.5712063", "0.534321", "0.5234169", "0.52203333", "0.5189626", "0.51657325", "0.51636255", "0.510627", "0.5104965", "0.5087519", "0.5059027", "0.5015615", "0.5013338", "0.50106233", "0.50086224", "0.49932167", "0.49789876", "0.49410373", "0.49404678", "0.49396...
0.767928
0
/ setUpLoanBtn sets the onClickListener for the "Calculate loan" button, which calls onCalcLoanBtnClicked().
private void setUpLoanBtn() { if (findViewById(R.id.btn_calculate_loan) != null) { /* This is the "Calculate loan" button. Its functionality is to update the table values * below it. */ Button calcLoanBtn = (Button) findViewById(R.id.btn_calculate_loan); calcLoanBtn.setOnC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t/...
[ "0.69336605", "0.6910996", "0.67832613", "0.673625", "0.67262995", "0.64504224", "0.6289802", "0.6251937", "0.61118907", "0.6039767", "0.59565616", "0.58956516", "0.58443785", "0.583342", "0.57738096", "0.5750728", "0.5738355", "0.572314", "0.5652372", "0.5620058", "0.5619967...
0.8599008
0
/ onCalcLoanBtnClicked updates the bottom row's text values in lin_loan_table by using the calculateMonths and monthlyPaymentFinishInYear methods.
private void onCalcLoanBtnClicked() { /* Here I declare the values that are to be passed into the public calculation methods of this * class (calculateMonths, monthlyPaymentFinishInYear), and if they are not filled in (or are * null) they become zero. */ Log.d(TAG, "Calculate loan button ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\r\n\tprivate void btnCalcLoan(ActionEvent event) {\r\n\r\n\t\tSystem.out.println(\"Amount: \" + LoanAmount.getText());\r\n\t\tdouble dLoanAmount = Double.parseDouble(LoanAmount.getText());\r\n\t\tSystem.out.println(\"Amount: \" + dLoanAmount);\t\r\n\t\t\r\n\t\tlblTotalPayemnts.setText(\"123\");\r\n\t\t\r\n\t...
[ "0.72166806", "0.67421883", "0.6740895", "0.646996", "0.6407228", "0.6401442", "0.6250969", "0.6222448", "0.6220337", "0.58281136", "0.582769", "0.57547605", "0.57384294", "0.57137805", "0.5608184", "0.56065536", "0.5544839", "0.55224776", "0.54817533", "0.543811", "0.5426802...
0.6568516
3
/ The following two methods are for when the "Loan?" checkbox is ticked; they are called when the user presses the "Calculate loan" button. / calculateMonths calculates the amount of months it would take to completely pay off the loan with the given principal amount, APR interest rate, and monthly payment. Returns ">12...
public String calculateMonths(double princ, double interest, double payment) { interest /= 100.0; interest += 1.0; interest = Math.pow(interest, (1.0/12.0)); double months = 0.0; while (princ > 0.0) { princ *= interest; princ -= payment; months++; if (m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double calculateLoanPayment(double principalAmount, double annualPrimeIntRate, int monthsAmort);", "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(...
[ "0.753986", "0.7527013", "0.7296135", "0.7142621", "0.70169896", "0.6999454", "0.6792776", "0.6667228", "0.6624169", "0.6552582", "0.6483604", "0.64785814", "0.64575166", "0.64138985", "0.6362942", "0.6267533", "0.6223715", "0.62043464", "0.6180803", "0.6101607", "0.6075778",...
0.6437171
13
/ monthlyPaymentFinishInYear calculates the monthly payment that one would need to pay in order to finish off the loan within 12 months.
public String monthlyPaymentFinishInYear(double princ, double interest) { interest /= 100.0; interest += 1.0; double amount = princ; amount *= interest; amount /= 12.0; String amountAsString; amountAsString = String.format("%.2f", amount); return ("$" + amountAsString); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMonthlyPayment() {\n double monthlyInterestRate = annualInterestRate / 1200;\n double monthlyPayment = loanAmount * monthlyInterestRate / (1 - (1 / Math.pow(1 + monthlyInterestRate, numberOfYears * 12)));\n \n return monthlyPayment;\n }", "public static void monthl...
[ "0.7132654", "0.686721", "0.67300665", "0.67144877", "0.66306525", "0.6612695", "0.6529121", "0.65152234", "0.601041", "0.59446025", "0.59183323", "0.590477", "0.58787525", "0.58625597", "0.5853158", "0.57973665", "0.5789009", "0.57750344", "0.5740921", "0.57215333", "0.56973...
0.7507376
0
/ addTrans is called when the "Add transaction" button is clicked; it adds a new transaction, based on the fields in this form, to the current selected week (the week that was visible) before attempting to add a transaction).
public void addTrans(View v) { Log.d(TAG, "Add transaction button clicked!"); EditText editLabel = (EditText) findViewById(R.id.edit_label); String label = (editLabel == null)? "" : editLabel.getText().toString(); EditText editAmount = (EditText) findViewById(R.id.edit_amount); double am...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }", "public void addTransaction(Transaction trans)\n {\n SolrInputDocument solr_doc = new SolrInputDocument();\n solr_doc.setField(\"type\",\"Transaction\");\n solr_doc.setField(\"hashBlo...
[ "0.55309874", "0.55143386", "0.5464463", "0.5290246", "0.52563536", "0.5196423", "0.51583046", "0.5079448", "0.5073422", "0.5052731", "0.50307184", "0.5009341", "0.49707973", "0.4969069", "0.49645206", "0.4953964", "0.4945089", "0.4943274", "0.49396017", "0.4938806", "0.49375...
0.7431392
0
/ compiled from: Predicate
public interface j<T> { boolean apply(T t); boolean equals(Object obj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Predicate<I> extends Function<I,Boolean> {}", "public interface Predicate<E> {\n\t\n\t/** Checks if a binary predicate relation holds. */\n\tboolean evaluate(E input);\n\t\n}", "public interface ApplePredicate {\n boolean test (Apple apple);\n}", "Predicate<Method> getPredicate();", "BP...
[ "0.71592057", "0.69665027", "0.69389373", "0.6932171", "0.68726397", "0.6836381", "0.6729652", "0.66469437", "0.6630748", "0.66126585", "0.6528185", "0.64042276", "0.6392112", "0.63255143", "0.6319697", "0.62906516", "0.62895274", "0.62462735", "0.62362903", "0.62292314", "0....
0.0
-1
TODO Autogenerated method stub
@Override public void onMapViewCenterPointMoved(MapView arg0, MapPoint arg1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onMapViewDoubleTapped(MapView mapView, MapPoint MapPoint) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub Move and Zoom to
@Override public void onMapViewInitialized(MapView mapView) { settingZoomMarkMap(mapView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void int...
[ "0.63257724", "0.62833977", "0.61689025", "0.6144073", "0.6128256", "0.60591686", "0.6056812", "0.59923095", "0.59852034", "0.5984682", "0.59229934", "0.5913401", "0.5913401", "0.59096897", "0.58926773", "0.5865405", "0.58572596", "0.5839059", "0.5794802", "0.57863104", "0.57...
0.0
-1
TODO Autogenerated method stub
@Override public void onMapViewLongPressed(MapView mapView, MapPoint MapPoint) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onMapViewSingleTapped(MapView mapView, MapPoint MapPoint) { settingZoomMarkMap(mapView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onMapViewZoomLevelChanged(MapView arg0, int arg1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Displays a menu with a save and delete icon if this is an existing term and only a save button if it is a new term
@Override public boolean onCreateOptionsMenu(Menu menu){ getMenuInflater().inflate(R.menu.menu_save, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTerm(View v){\n termListView.setVisibility(View.GONE);\n addButton.setVisibility(View.GONE);\n termEntry.setVisibility(View.VISIBLE);\n\n if (db.isTermsEmpty()){\n termHeader.setText(\"Term 1\");\n } else {\n fillInTerm();\n }\n\n }"...
[ "0.63622344", "0.61303395", "0.5996484", "0.58980215", "0.58575344", "0.5855335", "0.5813599", "0.5789006", "0.5779953", "0.57732934", "0.5765899", "0.5750968", "0.57402426", "0.5727419", "0.5726656", "0.57244825", "0.57011545", "0.56967753", "0.5696666", "0.56907046", "0.564...
0.54476297
48
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gardenvideo); context = this; resources = this.getResources(); viewInit(); try { BBGJDB tdd = new BBGJDB(context); tdd.clearjournallistinfo(); tdd.close(); } catch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { SharedPreferences share = getSharedPreferences("BBGJ_UserInfo", Activity.MODE_WORLD_READABLE); int comId = share.getInt("comId", 0); BBGJDB tdd = new BBGJDB(context); String qurl = MessengerService.URL; String qmethodname = MessengerService.METHOD_GETVIDEOINFO; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
protected void onStop() { super.onStop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { switch (v.getId()) { case R.id.gardenvideo_back: this.finish(); break; default: break; } }
{ "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
Profile player = this.players.get(id);
public boolean end(Match match, Profile player) throws Exception{ System.out.println("S: " + player.getName() + " end game!"); synchronized(this){ player.setEnd(true); int end = 0; for(Profile i: this.players) if(i.finish()) end++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getPlayer() { return player;}", "public Player getPlayer(){\r\n return player;\r\n }", "Player getPlayer(int playerNumber){\n return players.get(playerNumber);\n }", "public Player getPlayer() { return player; }", "Player getPlayer(UUID playerId);", "public Player getPla...
[ "0.70483524", "0.70395964", "0.7020752", "0.6893235", "0.6858", "0.6802441", "0.67995375", "0.67995375", "0.676585", "0.6754612", "0.6715611", "0.66854703", "0.66834795", "0.668072", "0.6614256", "0.6605167", "0.6604338", "0.6604338", "0.6604338", "0.6604338", "0.6604338", ...
0.0
-1
anade las ordenes de los clientes
public void addOrder(Menu restaurantMenu, String newOrder){ int contAnadidos = 0; // newOrder en formato separado por coma String info = ""; ArrayList<String> orderList = new ArrayList<>(Arrays.asList(newOrder.split(","))); for (int i=0; i<orderList.size(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Usuario> obtenerTodosLosClientes() {\n return this.usuarioFacade.obtenerTodosLosClientes();\n }", "private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}", "public List<Cliente> mostrarClientes()\n\t{\n\t\tCliente p;\n\t\tif (! clientes.isEmpty())\n\t\t{\n\t\t\t\n...
[ "0.7234523", "0.72253585", "0.712727", "0.68859464", "0.6859142", "0.6845065", "0.684283", "0.6797309", "0.67851627", "0.67693126", "0.6768373", "0.67533106", "0.6721024", "0.671872", "0.6710516", "0.66892153", "0.6668658", "0.6635663", "0.6632685", "0.66048807", "0.65859675"...
0.0
-1
anade costo de plato ya producido a la factura
public void addToBill(int newBill){ Bill = Bill + newBill; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "double getCost();", "double getCost();", "@Override\n public double getCost() {\n\t return 13;\n }", "public void calcularCost() {\r\n ...
[ "0.76100093", "0.7190875", "0.6698123", "0.6698123", "0.6626459", "0.65602374", "0.65551364", "0.6542995", "0.65350664", "0.651182", "0.65102786", "0.65102786", "0.65102786", "0.6505751", "0.6502803", "0.6495642", "0.6478217", "0.646762", "0.64331347", "0.64316976", "0.642281...
0.0
-1
disminuye en 1 a paciencia del cliente
public void updatePatience(){ Patience = Patience - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Cliente buscarUnCliente(Integer idcliente) {\n\t\treturn clienteDao.buscarUnCliente(idcliente);\n\t}", "private void removeClient () {\n AutomatedClient c = clients.pollFirstEntry().getValue();\n Nnow--;\n\n c.signalToLeave();\n System.out.println(\"O cliente \" + ...
[ "0.6835864", "0.6788351", "0.6584136", "0.6554183", "0.6453891", "0.6377863", "0.6341335", "0.6316181", "0.63084924", "0.62572783", "0.6235043", "0.62186956", "0.6164436", "0.6156577", "0.6156423", "0.61415225", "0.61401576", "0.6137572", "0.61363596", "0.61167955", "0.611517...
0.0
-1
disminuye en 1 el tiempo de espera del cliente
public void updateWaitingTime(){ waitingTime = waitingTime - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startEliminateExpiredClient() {\n this.expiredExecutorService.scheduleAtFixedRate(() -> {\n long currentTime = System.currentTimeMillis();\n List<ClientInformation> clients = ClientManager.getAllClient();\n if (clients != null && clients.size() > 0) {\n ...
[ "0.63832307", "0.63127875", "0.62983334", "0.61128926", "0.60038525", "0.58018047", "0.5769803", "0.5703128", "0.5699626", "0.5646374", "0.56409895", "0.5578508", "0.55530596", "0.5545556", "0.5539091", "0.55332804", "0.55303955", "0.55261093", "0.55257964", "0.55206776", "0....
0.0
-1
elimina pedido de la orden
public void removeFromOrder(String dishToRemove){ Order.remove(dishToRemove); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void eliminarPedido(UUID idPedido);", "void eliminarPedidosUsuario(String idUsuario);", "public void eliminar(DetalleArmado detallearmado);", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "public void eliminarTripulante(Long id);", "public void deleteEquipoComunidad(Equipo...
[ "0.80670047", "0.76586443", "0.7456662", "0.7452721", "0.735803", "0.73292035", "0.73265916", "0.72512764", "0.724366", "0.7243134", "0.72107387", "0.71972495", "0.7119827", "0.7075104", "0.70672", "0.7063709", "0.70579493", "0.70560956", "0.70514154", "0.70514154", "0.704602...
0.0
-1
Spring Data repository for the ContentDoc entity.
@SuppressWarnings("unused") @Repository public interface ContentDocRepository extends JpaRepository<ContentDoc, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ContentRepository {\n\n List<Content> findContentList(int bbsId, int pageNum, int perPage, int searchMode, String searchContent);\n\n long findContentCount(int bbsId, int searchMode, String searchContent);\n\n void saveContent(Content content);\n\n Content findContentById(int contentId...
[ "0.68162155", "0.68016297", "0.65811175", "0.64078146", "0.6300092", "0.62124676", "0.61457574", "0.60417014", "0.5922109", "0.5921969", "0.5855446", "0.58352035", "0.58228815", "0.58164954", "0.58134574", "0.5808389", "0.5801127", "0.57918406", "0.57821983", "0.57272744", "0...
0.7292562
0
Answer an instance for the following arguments
public StackAndQueueChallengesTest() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Answer(){\r\n\t\t\r\n\t}", "Reproducible newInstance();", "Object instantiate(Map<String, Object> arguments);", "Instance createInstance();", "T newInstance(Object... args);", "public LyricAnswer() {\n }", "public Answer() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public sta...
[ "0.62442356", "0.62394834", "0.5983255", "0.5890238", "0.5852883", "0.5828843", "0.58042544", "0.57526535", "0.5578121", "0.5557207", "0.55522263", "0.5551611", "0.5537371", "0.55253434", "0.55241185", "0.55046815", "0.5444987", "0.54042", "0.5400482", "0.53902835", "0.538722...
0.0
-1
Answer an integer comparator
public Comparator<Integer> createIntegerComparator() { return (Integer i1, Integer i2) -> ( i1.intValue() - i2.intValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Comparator<Integer> getIntegerComparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer integer1, Integer integer2) {\n return integer1 - integer2;\n }\n };\n }", "int compareToInt(integers i);", "public...
[ "0.7390451", "0.711279", "0.6709215", "0.64979935", "0.642665", "0.6362322", "0.627309", "0.6186016", "0.6161944", "0.61581266", "0.6156866", "0.6151184", "0.6143184", "0.614032", "0.61350226", "0.61340374", "0.6114377", "0.6113438", "0.6107447", "0.60940003", "0.60897475", ...
0.7321866
1
Queue test. Note that this only currently works for queues that have unique values...If I have duplicate elements, this will blow up
@Test public void basicQueueOfStacksTest() { QueueOfStacks<String> tempQueue = new QueueOfStacks<String>(); String tempCurrentElement; assertTrue("Element not in queue", tempQueue.isEmpty()); tempQueue.add("a"); assertTrue("Element not in queu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void tester(APQueue<String> q) {\n q.push(\"c++\");\n q.push(\"python\");\n q.push(\"java\");\n System.out.println(\"Should be 3: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be c++: \" + q.peek());\n Syste...
[ "0.7379421", "0.73079604", "0.69958955", "0.6954026", "0.6874942", "0.6818388", "0.68063885", "0.679165", "0.6791395", "0.6767204", "0.67542356", "0.6744393", "0.66819984", "0.667971", "0.6659471", "0.6646451", "0.6644485", "0.6624723", "0.662447", "0.66216266", "0.6621514", ...
0.7161377
2
Create a list of dogs and cats
protected List<Animal> createCatsAndDogs() { List<Animal> tempAnimals = new ArrayList<Animal>(); Date tempNow = new Date(); tempAnimals.add(new Animal(AnimalType.DOG, new Date(tempNow.getTime() - 10*DAY_IN_MILLISECONDS))); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addDog() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tString numID = id.get(i);\n\t\t\tString name = names.get(i);\n\t\t\tString breed = breeds.get(i);\n\t\t\tString dateBirth = date.get(i+1);\n\t\t\tString img = dogImg.get(i);\n\t\t\t\t\t\t\n\t\t\t//Adding the dogs to the list\n\t\t\tlistOfDogs.add(ne...
[ "0.68228966", "0.6579438", "0.6284097", "0.619074", "0.6134438", "0.5884055", "0.58211184", "0.57114226", "0.5706547", "0.5604395", "0.5601677", "0.5587428", "0.5578302", "0.55570215", "0.55384976", "0.54994094", "0.5487159", "0.5482521", "0.54782254", "0.54727787", "0.544071...
0.78543305
0
Service provider framework sketch / Service interface
public interface Service { // Service-specific methods go here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Provider {\n Service newService();\n }", "public interface Provider{\n Service newService();\n}", "private static interface Service {}", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "public interf...
[ "0.78527856", "0.7670521", "0.765948", "0.7653952", "0.75823206", "0.75823206", "0.75753504", "0.7523657", "0.7477271", "0.7477271", "0.7446253", "0.72904825", "0.7281658", "0.72537994", "0.72422093", "0.7184709", "0.7184709", "0.7184709", "0.7179703", "0.7177975", "0.717201"...
0.77340025
1
/ Service provider interface
public interface Provider { Service newService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Provider{\n Service newService();\n}", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", ...
[ "0.7691906", "0.7670568", "0.76046085", "0.76046085", "0.7584388", "0.75819415", "0.7508866", "0.7460124", "0.73341495", "0.7291436", "0.7227657", "0.7227657", "0.70444256", "0.7043399", "0.70363986", "0.7035569", "0.69967484", "0.69203967", "0.6918586", "0.6918586", "0.69185...
0.79806745
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Customer)) { return false; } Customer other = (Customer) object; if ((this.cusId == null && other.cusId != null) || (this.cusId != null && !this.cusId.equals(other.cusId))) { return false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
OWLReasonerFactory reasonerFactory = new StructuralReasonerFactory(); // with the default reasoner OWLReasonerFactory reasonerFactory = new Reasoner.ReasonerFactory(); // with HermiT reasoner
public static void verify(OWLOntology ont) throws OWLOntologyCreationException{ OWLReasonerFactory reasonerFactory = new ElkReasonerFactory(); // with ELK reasoner LogManager.getLogger("org.semanticweb.elk").setLevel(Level.OFF); // Level.ERROR //LogManager.getLogger("org.semanticweb.elk.reasoner.indexing...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shouldUseReasoner() throws Exception {\n // Create our ontology manager in the usual way.\n OWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n OWLOntology ont = load(manager);\n\n //df = manager.getOWLDataFactory();\n // We need to create an instanc...
[ "0.75314814", "0.73870814", "0.713225", "0.66359055", "0.6607641", "0.653787", "0.64365494", "0.63768524", "0.6373277", "0.634866", "0.62560755", "0.6165882", "0.6165706", "0.6113526", "0.6082214", "0.60019207", "0.5988036", "0.5986791", "0.59742486", "0.57943714", "0.5782581...
0.5769989
21
15 ms +39.9 MB
public String minWindow2(String s, String t) { if (s == null || s.length() == 0 || t == null || t.length() == 0) { return ""; } Map<Character, Integer> map = new HashMap<>(); for (char c : t.toCharArray()) { map.put(c, map.getOrDefault(c, 0) + 1); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n ...
[ "0.63536817", "0.63156325", "0.6208219", "0.61508536", "0.6002675", "0.5844734", "0.58372843", "0.58213526", "0.57861227", "0.57600087", "0.5654178", "0.56168", "0.5608328", "0.5594298", "0.55890685", "0.55857736", "0.5572426", "0.55715245", "0.55440605", "0.55331904", "0.553...
0.0
-1
to stop the running process of file reading.
public void stopFile(){ try { running = false; resumeFile(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n isRunning = false;\n\n mReadLogsHandler = null;\n if (mReadLogThread != null) {\n final Thread inherited = mReadLogThread;\n mReadLogThread = null;\n inherited.interrupt();\n }\n\n IOUtilities.closeStream(reader);\n }", ...
[ "0.741246", "0.71531916", "0.70477587", "0.68790495", "0.68781614", "0.68293047", "0.6817838", "0.6790053", "0.6783971", "0.6769636", "0.6765034", "0.67568254", "0.67317027", "0.66642046", "0.6612632", "0.6585553", "0.65826863", "0.65683794", "0.65165514", "0.65148973", "0.65...
0.78341365
0
to pause the running process of file reading.
public void pauseFile() { // you may want to throw an IllegalStateException if !running paused = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resumeFile() {\n try {\n synchronized (pauseLock) {\n paused = false;\n pauseLock.notifyAll(); // Unblocks thread\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void stopFile(){\n ...
[ "0.7277556", "0.6685931", "0.6602964", "0.64386016", "0.6223684", "0.61768585", "0.616934", "0.60881406", "0.6060945", "0.6058151", "0.59793264", "0.59036046", "0.5892641", "0.5885721", "0.58748984", "0.5854251", "0.58132553", "0.5801511", "0.5792126", "0.5791755", "0.5789352...
0.77270967
0
to resume the paused file process.
public void resumeFile() { try { synchronized (pauseLock) { paused = false; pauseLock.notifyAll(); // Unblocks thread } } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resume()\n\t{\n\t\tisPaused = false;\n\t}", "public void resume() {\n paused = false;\n }", "public void resume() {}", "public synchronized void resume() {\r\n\r\n\t\tpaused = false;\r\n\t\tnotifyAll();\r\n\t}", "public void resume();", "public void resume() {\n }", "public voi...
[ "0.82560724", "0.8235633", "0.8223781", "0.81087416", "0.81009865", "0.8079745", "0.80613375", "0.8023396", "0.79551417", "0.79551417", "0.79551417", "0.7906254", "0.7832145", "0.7820089", "0.776333", "0.77385384", "0.7736309", "0.7736164", "0.77244973", "0.7709315", "0.77093...
0.90853864
0
Starts a given server
public void startServer() { server.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }", "void startServer(String name, Config.Serve...
[ "0.796015", "0.78485185", "0.7609814", "0.75080127", "0.7464886", "0.73687226", "0.7295995", "0.7191055", "0.71605", "0.71387225", "0.71254677", "0.70904404", "0.7020692", "0.70107645", "0.70039314", "0.6996053", "0.69921374", "0.6960187", "0.69578314", "0.6955397", "0.692964...
0.8089063
0
Gets the port of this server instance
public int getPort() { return this.port; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getServerPort(){\n return thisServer.getPort();\n }", "public int getPort() {\n return serverSocket.getLocalPort();\n }", "public int getServerPort() {\n return Integer.parseInt(this.serverProperties.getProperty(PORT));\n }", "default Object port() {\n ...
[ "0.8667316", "0.8590406", "0.85592145", "0.85109204", "0.84849256", "0.84843963", "0.84621197", "0.8459367", "0.8429814", "0.84251547", "0.8399838", "0.83423895", "0.8338022", "0.83339524", "0.8207941", "0.8207941", "0.8185698", "0.8166692", "0.81515074", "0.81515074", "0.815...
0.75916314
79
Returns a builder for this class
public static Builder newBuilder() { return new Builder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Bu...
[ "0.8432214", "0.8432214", "0.8432214", "0.8432214", "0.8375389", "0.8346206", "0.8346206", "0.8346206", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.83443654", "0.8317208", "0.83...
0.7747108
37
Sets up the endpoint that displays stats for the current run of the server enpoints
public void setupStatsEndpoint() { HttpHandler handler = (httpExchange) -> { this.increaseEndpointHitFrequency(this.getStatsApiEndpoint()); StringBuilder response = new StringBuilder(); Set<Map.Entry<String, Integer>> frequencySet = this.getEndpointFrequencyEntrySet(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponse...
[ "0.6042301", "0.57996017", "0.5741895", "0.564135", "0.5599702", "0.5587448", "0.5522214", "0.5517727", "0.55134404", "0.54471284", "0.5395681", "0.535385", "0.5331241", "0.5330857", "0.53162086", "0.5285752", "0.52338976", "0.52270496", "0.5209987", "0.5204196", "0.5189872",...
0.7679129
0
Sets up the endpoint that displays the logs
public void setupLoggingEndpoint() { HttpHandler handler = (httpExchange) -> { httpExchange.getResponseHeaders().add("Content-Type", "text/html; charset=UTF-8"); httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length()); OutputStream out = httpExchange.getResponseBody(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupStatsEndpoint() {\n HttpHandler handler =\n (httpExchange) -> {\n this.increaseEndpointHitFrequency(this.getStatsApiEndpoint());\n StringBuilder response = new StringBuilder();\n Set<Map.Entry<String, Integer>> frequencySet = this.getEndpointFrequencyEntrySet()...
[ "0.66121095", "0.63692003", "0.6003976", "0.5955815", "0.5880498", "0.5822728", "0.5769628", "0.57695013", "0.57405156", "0.56982833", "0.56522775", "0.5616512", "0.5588188", "0.5585834", "0.55637294", "0.55578464", "0.5553334", "0.554249", "0.55025136", "0.54939026", "0.5474...
0.7927983
0
Increase the frequency hit of the endpoint
public void increaseEndpointHitFrequency(String endpoint) { if (!endpointVisitFrequency.containsKey(endpoint)) { throw new IllegalArgumentException("Frequency increasing method: Endpoint does not exist"); } endpointVisitFrequency.put(endpoint, endpointVisitFrequency.get(endpoint) + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increseHitCount() {\n\r\n\t}", "@Override\n public final void onHit(final K key) {\n if (!freqHitMap.containsKey(key)) {\n freqHitMap.put(key, 1);\n return;\n }\n\n // Add 1 to times used in map\n freqHitMap.put(key, freqHitMap.get(key) + 1);\n ...
[ "0.62735945", "0.6191941", "0.6149731", "0.60988766", "0.60636705", "0.5969307", "0.58798593", "0.5856671", "0.5856671", "0.58495384", "0.58047754", "0.5767087", "0.5708661", "0.57008564", "0.56943536", "0.56775737", "0.5673653", "0.56459224", "0.5601383", "0.55309933", "0.55...
0.8135067
0
Increment and get the ID of the request
public long incrementAndGetID() { return ++id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static long newId() {\n return REQUEST_ID.getAndIncrement();\n }", "private static synchronized String getNextRequestId()\n {\n if (++nextRequestId < 0)\n {\n nextRequestId = 0;\n }\n String id = Integer.toString(nextRequestId);\n return id;\n ...
[ "0.82754123", "0.7352379", "0.72068036", "0.6757318", "0.6755943", "0.67489684", "0.6718386", "0.6705084", "0.6635394", "0.6593434", "0.65707076", "0.6552878", "0.6535048", "0.6531559", "0.64859194", "0.64740765", "0.6424301", "0.6420011", "0.6400804", "0.6395443", "0.638541"...
0.705392
3
Add request to server logs
public void addRequestToServerLogs(HttpExchange httpExchange, long id) { JSONObject object = new JSONObject(); object.put("path", httpExchange.getHttpContext().getPath()); object.put("client_ip", httpExchange.getRemoteAddress().getAddress().toString()); object.put("log_time", LocalDateTime.now().toStrin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void logHTTPRequest(HttpServletRequest request, Logger logger);", "public void log(HttpServletRequest request, HttpServletResponse response) {\n\t\tObjectNode ecs = getLoggableMessage(request, response);\n\t\tlog.info(new ObjectMessage(ecs));\n\t}", "@Override\n protected void append(LoggingEvent event) {\n ...
[ "0.72522783", "0.70939404", "0.70714426", "0.70050657", "0.6772897", "0.65563667", "0.6370783", "0.6136315", "0.60822386", "0.603967", "0.6038959", "0.603882", "0.60354817", "0.6017988", "0.6000883", "0.59956133", "0.5953692", "0.59304655", "0.5926742", "0.5909821", "0.587173...
0.6918539
4
Add response to server logs
public void addResponseToServerLogs(HttpExchange httpExchange, int statusCode, String responseMessage, String contentType, long id) { JSONObject object = new JSONObject(); object.put("path", httpExchange.getHttpContext().getPath()); object.put("client_ip", httpExchange.getRemoteAddress().getAddress().toStri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().string());\n\t\t\t}", "public void log(HttpServletRequest request, HttpServletResponse response) {\n\t\tObjectNode ecs = getLoggableMessage(request, response);\n\t\tlog.info(new ObjectM...
[ "0.6953734", "0.6776648", "0.67246974", "0.6463236", "0.64563996", "0.6435285", "0.6414216", "0.63686514", "0.63686514", "0.63619846", "0.63135195", "0.63070816", "0.6284547", "0.61960983", "0.61503327", "0.6114248", "0.6060803", "0.6045307", "0.5988588", "0.59878385", "0.598...
0.6708667
3
Returns endpoint entry set
private Set<Map.Entry<String, Integer>> getEndpointFrequencyEntrySet() { return endpointVisitFrequency.entrySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection getEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm...
[ "0.67622906", "0.67508274", "0.6571922", "0.6548072", "0.6544022", "0.6469792", "0.64612985", "0.6325752", "0.6268305", "0.62103623", "0.6131833", "0.60755855", "0.6060813", "0.6060807", "0.5966968", "0.5921207", "0.5913898", "0.58386284", "0.5821597", "0.58134884", "0.581089...
0.7070647
0
TODO Autogenerated method stub
@Override public List<Integer> queryAllGroupId(int groupId) { List<Integer> inList=new ArrayList<Integer>(); List<BmsGroupEntity> list=selectList("com.jiuyescm.bms.base.group.mapper.BmsGroupMapper.queryAllGroupId", groupId); for(BmsGroupEntity entity:list){ if(groupId!=entity.getId()){ inList.add(entity.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public BmsGroupEntity queryOne(Map<String, Object> condition) { return (BmsGroupEntity) selectOne("com.jiuyescm.bms.base.group.mapper.BmsGroupMapper.queryOne", condition); }
{ "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