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
TODO Autogenerated method stub
@Override public void onShowPress(MotionEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2, float arg3) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onLongPress(MotionEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onFling(MotionEvent arg0, MotionEvent arg1, float arg2, float arg3) { if(arg1.getX()-arg0.getX()<0) { //×óß…»¬„Ó System.out.println("LEFT ---------->"); x-=speed; if(x<=0) { x=0; } } else if(arg1.getX()-arg0.getX()>0) { //ÓÒß…»¬„Ó System.out.println("RIGHT <----------"); x+=speed; if(x+bmpplayer.getWidth()>=MySurfaceView.screenW) { x=MySurfaceView.screenW-bmpplayer.getWidth(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onDown(MotionEvent arg0) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
sends a message to the handled client
public void answer(Message response) throws IOException { out.writeObject(response); out.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "private void sendMessageToClient(String message) {\n try {\n outputStream...
[ "0.725459", "0.7212641", "0.7187593", "0.71749955", "0.71643734", "0.7067236", "0.7045906", "0.70216423", "0.69973284", "0.6992384", "0.6974133", "0.69625884", "0.69554234", "0.6905936", "0.68721604", "0.68668044", "0.6855302", "0.684421", "0.68217564", "0.6817078", "0.681646...
0.0
-1
handles a login request
public Message handleLogin(Message loginRequest){ String userNameRequested = loginRequest.getUserName(); String passWordRequested = loginRequest.getPassWord(); Message badResult = new Message(Message.LOGIN_ERROR); // case: non registered user if(!controlServer.containsUserKey(userNameRequested)){ return badResult; } // case: registered user UserData userData = controlServer.getUserData(userNameRequested); // compare userName & passWord with the ones in the user register if(userData.getPassWord().equals(passWordRequested)){ Message goodResult = new Message(Message.LOGIN_OK); goodResult.setUserData(userData); controlServer.showMessage("user '" + userData.getUserName() + "' just logged in \n"); return goodResult; } return badResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "RequestResult loginRequest() throws Exception;", "protected Response login() {\n return login(\"\");\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, re...
[ "0.7864219", "0.7802868", "0.7660259", "0.7533063", "0.74389565", "0.7375658", "0.73490226", "0.7343742", "0.73170114", "0.73107255", "0.7159561", "0.71237266", "0.7088998", "0.7006159", "0.6996403", "0.6983312", "0.69802606", "0.69775695", "0.69736224", "0.6967236", "0.69460...
0.75659496
3
handles a userData request
public Message handleGetUserData(Message getUserData){ // update userData on register UserData toMod = controlServer.getUserData(getUserData.getUserName()); // sends answer to client getUserData.setUserData(new UserData(toMod)); getUserData.setId(Message.UPDATE_UD); return getUserData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserData(Object userData) {\n this.userData = userData;\n }", "public Object getUserData() {\n return userData;\n }", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "abstract public Object getUserData();", "Object getUserData();", "publ...
[ "0.6943967", "0.6830913", "0.67816854", "0.6777588", "0.67070735", "0.6691469", "0.6678111", "0.66084296", "0.6600654", "0.6585331", "0.6565394", "0.65419877", "0.6534018", "0.64528376", "0.6418601", "0.64148813", "0.63856757", "0.63221455", "0.62599844", "0.6199036", "0.6183...
0.67189753
4
handles 'create new document' request
public Message handleCreate(Message createRequest) { Message response = new Message(Message.GENERIC_ERROR); int SectionNumbers = createRequest.getSectionNumbers(); String DocumentName = createRequest.getDocumentName(); String owner = createRequest.getUserName(); // case: clash in register if (controlServer.containsDocumentKey(DocumentName)) { response.setId(Message.INVALID_DOCNAME); } // case: no clash in register else{ DocumentData data = new DocumentData(DocumentName,owner,SectionNumbers); Document nuovoDocumento = new Document(data); // insert document into register controlServer.addDocument(DocumentName,nuovoDocumento); // update relative userData UserData toMod = controlServer.getUserData(owner); toMod.addDocument(DocumentName); controlServer.replaceUser(owner,toMod); // sends response to client response.setUserData(new UserData(toMod)); response.setDocumentName(DocumentName); response.setSectionNumbers(SectionNumbers); response.setId(Message.UPDATE_UD); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newDocument();", "Documento createDocumento();", "@PostMapping(\"/documents\")\r\n\tpublic ResponseEntity<String> create(String content) {\r\n\t\tString docId = this.documentHandler.createDocument(content);\r\n\t\tHttpHeaders headers = new HttpHeaders();\r\n\t\theaders.setContentType(MediaType.TEXT...
[ "0.6922545", "0.68492186", "0.68393785", "0.6625457", "0.6550857", "0.65126634", "0.65126634", "0.6492606", "0.646969", "0.6440657", "0.64280695", "0.6402942", "0.63966596", "0.63626367", "0.6334422", "0.63029295", "0.62937987", "0.6279411", "0.6273798", "0.6215138", "0.61888...
0.6428308
10
generic request handle method
public Message handleRequest(Message request){ Message error = new Message(Message.GENERIC_ERROR); switch (request.getId()){ case Message.LOGIN: return handleLogin(request); case Message.CREATE_DOCUMENT: return handleCreate(request); case Message.REMOVE_INVITE: controlServer.removeInvite(request.getUserName(),request.getDocumentName()); return request; case Message.PORTIONS: System.out.println("HANDLER pre-handle: " +request.getDocumentName()); request.setSectionNumbers(controlServer.getPortions(request.getDocumentName())); return request; case Message.ADMINS: Message response = new Message(Message.ADMINS); response.setStringVector(new Vector<>(controlServer.getAdmins(request.getDocumentName()))); return response; case Message.USERS: request.setStringVector(controlServer.getUserNames()); return request; case Message.INVITATION: controlServer.addAdmin(request.getDocumentName(),request.getReceiver()); controlServer.addInvite(request.getReceiver(),request.getDocumentName()); request.setId(Message.INVITE_SENT); return request; case Message.GET_INVITES: String owner = request.getUserName(); request.setStringVector(controlServer.getUserData(owner).getInvites()); return request; case Message.GET_USERDATA: return handleGetUserData(request); case Message.LOCK: if(!controlServer.lock(request.getDocumentName(),request.getSectionNumbers())) request.setId(Message.LOCK_NOK); else request.setId(Message.LOCK_OK); return request; case Message.UNLOCK: if(controlServer.unlock(request.getDocumentName(),request.getSectionNumbers())) request.setId(Message.UNLOCK_OK); return request; case Message.EDIT: String DocumentName = request.getDocumentName(); int SectionNumbers = request.getSectionNumbers(); request.setText(controlServer.getSection(DocumentName,SectionNumbers)); return request; case Message.END_EDIT: controlServer.editDoc(request.getDocumentName(),request.getSectionNumbers(),request.getText()); return request; case Message.PRINT: request.setText(controlServer.getDocumentString(request.getDocumentName())); return request; case Message.SHOW: String text = controlServer.getSection(request.getDocumentName(),request.getSectionNumbers()); request.setText(text); return request; default: controlServer.showMessage("unknown request"); break; }return error; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object handle(Object request);", "public abstract void handle(Request request, Response response) throws Exception;", "public void handleRequest(Request req) {\n\n }", "void handleRequest();", "public Object handleRequest(P request) throws Exception;", "public abstract void handle(HttpServletRequest r...
[ "0.82594067", "0.80292904", "0.77884597", "0.7734351", "0.7527741", "0.7182933", "0.7134927", "0.6962446", "0.6951441", "0.685188", "0.6766715", "0.6749284", "0.6719926", "0.6696455", "0.6639234", "0.65955037", "0.65375423", "0.65369284", "0.64291984", "0.64137506", "0.638158...
0.618953
42
Checks whether Chrome is the runtime host of the WebAPK asynchronously. Accesses the ApplicationStateListener needs to be called on UI thread.
public static void checkChromeBacksWebApkAsync(String webApkPackageName, WebApkIdentityServiceClient.CheckBrowserBacksWebApkCallback callback) { ThreadUtils.assertOnUiThread(); if (sListener == null) { // Registers an application listener to disconnect all connections to WebAPKs // when Chrome is stopped. sListener = new ApplicationStatus.ApplicationStateListener() { @Override public void onApplicationStateChange(int newState) { if (newState == ApplicationState.HAS_STOPPED_ACTIVITIES || newState == ApplicationState.HAS_DESTROYED_ACTIVITIES) { disconnectFromAllServices(false /* waitForPendingWork */); ApplicationStatus.unregisterApplicationStateListener(sListener); sListener = null; } } }; ApplicationStatus.registerApplicationStateListener(sListener); } WebApkIdentityServiceClient.getInstance(UiThreadTaskTraits.DEFAULT) .checkBrowserBacksWebApkAsync( ContextUtils.getApplicationContext(), webApkPackageName, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChromeVersion();", "public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }", "private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response...
[ "0.5796679", "0.544226", "0.5437004", "0.542458", "0.5411665", "0.53615063", "0.5265166", "0.52382475", "0.5171106", "0.5166184", "0.51399904", "0.5130263", "0.5116961", "0.50876653", "0.5081629", "0.5075526", "0.50224125", "0.50023365", "0.49979204", "0.49911347", "0.4987272...
0.6255384
0
Disconnect from all of the services of all WebAPKs.
public static void disconnectFromAllServices(boolean waitForPendingWork) { if (waitForPendingWork && WebApkServiceClient.hasPendingWork()) { PostTask.postDelayedTask(UiThreadTaskTraits.DEFAULT, ChromeWebApkHost::disconnectFromAllServicesImpl, WAIT_FOR_WORK_DISCONNECT_SERVICE_DELAY_MS); } else { disconnectFromAllServicesImpl(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }", "public synchronized void closeAllConnections() {\n\t\tstop()...
[ "0.65546656", "0.6202672", "0.6116445", "0.59393126", "0.5907068", "0.5898001", "0.5891677", "0.5878504", "0.5812192", "0.5704167", "0.5646052", "0.56249815", "0.56249815", "0.55883795", "0.55733705", "0.5566098", "0.555054", "0.5512069", "0.5489826", "0.54895717", "0.5460062...
0.6090414
3
Some variables might be needed
public UserInputField() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initVars() {}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void updateVars()\n {\n\n }", "Variables createVariables();", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tStr...
[ "0.6588147", "0.6553709", "0.6212208", "0.6027991", "0.5855355", "0.56251156", "0.5597757", "0.5586615", "0.5585361", "0.555742", "0.5538334", "0.5518751", "0.55086094", "0.54988676", "0.5495132", "0.5454466", "0.54290956", "0.5414361", "0.5397744", "0.53970635", "0.53939795"...
0.0
-1
public void login(UserDto userDto) throws FacadeException; public void logout(UserDto userDto) throws FacadeException;
public ResponseDto forgetPassword(UserDto userDto) throws FacadeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean userLogin(UserDTO user) throws UserException, Exception;", "boolean userLogout(UserDTO user) throws UserException, SQLException,ConnectException;", "boolean doLogin(UserDTO loginUser);", "@Service\npublic interface LoginService {\n\n void logout(HttpServletRequest request) throws LoginServiceExcep...
[ "0.7433842", "0.732045", "0.72874707", "0.7276711", "0.7149035", "0.71348375", "0.6868706", "0.68102247", "0.6795833", "0.6752332", "0.67357606", "0.6723965", "0.67129403", "0.6710913", "0.66348433", "0.66286546", "0.6603703", "0.6595938", "0.65958077", "0.6594884", "0.657628...
0.6508796
23
=========================================================== Constants =========================================================== =========================================================== Fields =========================================================== =========================================================== Constructors =========================================================== =========================================================== Getter & Setter =========================================================== =========================================================== Methods from SuperClass/Interfaces =========================================================== =========================================================== Methods =========================================================== &lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.1.0&quot; xmlns:wfs=&quot; xmlns:ogc=&quot; xmlns:gml=&quot; xmlns:xsi=&quot; xsi:schemaLocation=&quot; &lt;wfs:Query typeName=&quot;traffic:messages&quot;&gt; &lt;wfs:PropertyName&gt;traffic:description&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:severity&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:the_geom&lt;/wfs:PropertyName&gt; &lt;ogc:Filter&gt; &lt;ogc:BBOX&gt; &lt;ogc:PropertyName&gt;the_geom&lt;/ogc:PropertyName&gt; &lt;gml:Envelope srsName=&quot; &lt;gml:lowerCorner&gt;10.44161 58.82350&lt;/gml:lowerCorner&gt; &lt;gml:upperCorner&gt;2.26089 41.512517&lt;/gml:upperCorner&gt; &lt;/gml:Envelope&gt; &lt;/ogc:BBOX&gt; &lt;/ogc:Filter&gt; &lt;/wfs:Query&gt; &lt;/wfs:GetFeature&gt;
public static String createGML1(final BoundingBoxE6 pBoundingBoxE6){ Assert.assertNotNull(pBoundingBoxE6); final StringBuilder sb = new StringBuilder(); final Formatter f = new Formatter(sb, Locale.ENGLISH); sb.append(WFS_GETFEATURE_TAG_OPEN); f.format(WFS_QUERY_TAG_OPEN, "traffic:t_traffic_view"); // @HOME SERVER traffic:messages | @UNI traffic:t_traffic_view f.format(WFS_PROPERTY_TAG, "traffic:severity"); f.format(WFS_PROPERTY_TAG, "traffic:description"); f.format(WFS_PROPERTY_TAG, "traffic:the_geom"); sb.append(OGC_FILTER_TAG_OPEN) .append(OGC_BBOX_TAG_OPEN); f.format(OGC_PROPERTY_TAG, "the_geom"); /* The BoundingBox... */ sb.append(GML_ENVELOPE_TAG_OPEN); f.format(GML_LOWERCORNER_TAG, pBoundingBoxE6.getLonWest(), pBoundingBoxE6.getLatSouth()); f.format(GML_UPPERCORNER_TAG, pBoundingBoxE6.getLonEast(), pBoundingBoxE6.getLatNorth()); sb.append(GML_ENVELOPE_TAG_CLOSE) .append(OGC_BBOX_TAG_CLOSE) .append(OGC_FILTER_TAG_CLOSE) .append(WFS_QUERY_TAG_CLOSE) .append(WFS_GETFEATURE_TAG_CLOSE); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GetFeatureRequest extends Request{\n\n /**\n * @return QName : requested type name, can be null\n * if not yet configured.\n */\n QName getTypeName();\n\n /**\n * @param type : requested type name, must not be null\n */\n void setTypeName(QName type);\n\n /**\n ...
[ "0.667659", "0.62489855", "0.62489855", "0.599318", "0.599318", "0.5965465", "0.59203273", "0.5901488", "0.58508784", "0.5835227", "0.57998186", "0.579332", "0.5791677", "0.5791677", "0.57746375", "0.5768353", "0.57668847", "0.5729685", "0.5696767", "0.56633717", "0.560395", ...
0.5134167
72
&lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.0.0&quot; outputFormat=&quot;GML2&quot; xmlns:topp=&quot; xmlns:wfs=&quot; xmlns:ogc=&quot; xmlns:gml=&quot; xmlns:xsi=&quot; xsi:schemaLocation=&quot; &lt;wfs:Query typeName=&quot;traffic:messages&quot;&gt; &lt;wfs:PropertyName&gt;traffic:id&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:description&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:severity&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:the_geom&lt;/wfs:PropertyName&gt; &lt;ogc:Filter&gt; &lt;ogc:BBOX&gt; &lt;ogc:PropertyName&gt;the_geom&lt;/ogc:PropertyName&gt; &lt;gml:Box srsName=&quot; &lt;gml:coordinates&gt;0.0,51.0 1.0,52.0&lt;/gml:coordinates&gt; &lt;/gml:Box&gt; &lt;/ogc:BBOX&gt; &lt;/ogc:Filter&gt; &lt;/wfs:Query&gt; &lt;/wfs:GetFeature&gt;
public static String createGML2(final BoundingBoxE6 pBoundingBoxE6){ Assert.assertNotNull(pBoundingBoxE6); final StringBuilder sb = new StringBuilder(); final Formatter f = new Formatter(sb, Locale.ENGLISH); sb.append(WFS_GETFEATURE_TAG_GML2_OPEN); f.format(WFS_QUERY_TAG_OPEN, "traffic:t_traffic_view"); // @HOME SERVER traffic:messages | @UNI traffic:t_traffic_view f.format(WFS_PROPERTY_TAG, "traffic:severity"); f.format(WFS_PROPERTY_TAG, "traffic:description"); f.format(WFS_PROPERTY_TAG, "traffic:the_geom"); sb.append(OGC_FILTER_TAG_OPEN) .append(OGC_BBOX_TAG_OPEN); f.format(OGC_PROPERTY_TAG, "the_geom"); /* The BoundingBox... */ sb.append(GML_BOX_TAG_OPEN); f.format(GML_COORDINATES_TAG, pBoundingBoxE6.getLonEast(), pBoundingBoxE6.getLatSouth(), pBoundingBoxE6.getLonWest(), pBoundingBoxE6.getLatNorth()); sb.append(GML_BOX_TAG_CLOSE) .append(OGC_BBOX_TAG_CLOSE) .append(OGC_FILTER_TAG_CLOSE) .append(WFS_QUERY_TAG_CLOSE) .append(WFS_GETFEATURE_TAG_CLOSE); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArbeitsbereichXmlTagFromWfs(String url){\r\n\t\tString arbeitsbereichXmlTag = \"\"; //z.B. focus\r\n\t\tString url2Wfs =url.toLowerCase();\r\n\t\ttry{\t\t\t\r\n\t\t\tString separator = \"typename\";\r\n\t\t\t//e.g. http://ispacevm22.researchstudio.at/geoserver/geofence_sbg/wfs?service=WFS&version=...
[ "0.63054353", "0.6187461", "0.6063455", "0.6008659", "0.55393803", "0.5475835", "0.5286537", "0.5286537", "0.5168449", "0.50762403", "0.5053544", "0.5053076", "0.5053076", "0.5048454", "0.504247", "0.4974154", "0.49485737", "0.49479192", "0.49431884", "0.49207193", "0.4920719...
0.55130315
5
for two int inputs, we will only have 2 cases that cause overflow 1) divisor = 0 2)dividend is int_min, but divisor = 1
public int divide(int dividend, int divisor) { if(divisor == 0 || (dividend == Integer.MIN_VALUE && divisor == -1)) return Integer.MAX_VALUE; //use XOR to get sign value. If both neg or pos, neg will be false, otherwise it will be true boolean neg = (dividend < 0) ^ (divisor <0); //to be clear with calculation, we will convert inputs to pos, but the built-in abs() will output the //same data type as the input, so, to avoid overflow, we will case input to long long abs_dividend = Math.abs( (long) dividend); long abs_divisor = Math.abs( (long) divisor); int result = 0; //Differed from general division, here each time we will try to increase the divisor by 2 times //where in general division, we can increase the divisor by 1 - 9 times. Then we will decrease //the dividend, and redo the operations while(abs_dividend >= abs_divisor){ //temp is the temp result from increase the divisor by 2 times long temp = abs_divisor, multiply = 1; //we will try to get the max value smaller than abs_dividend by increasing temp 2 times each time while(abs_dividend >= (temp <<1)){ temp <<= 1; multiply <<= 1; } abs_dividend -= temp; result += multiply; } return neg? -result : result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int divide_naive(int dividend, int divisor) {\n \tboolean flag = ((new Long(dividend)>0) && (new Long(divisor)>0)) || ((new Long(dividend)<0) && (new Long(divisor)<0)) ? true : false;\n// \tSystem.out.println(\"flag=\"+flag);\n \tlong r = 0;\n \tlong dividend_abs = Math.abs(new Long(divid...
[ "0.676372", "0.67384076", "0.66657513", "0.65878135", "0.651105", "0.62523687", "0.622525", "0.6159211", "0.6139232", "0.61365676", "0.59988093", "0.5964619", "0.5934702", "0.58814937", "0.5832136", "0.58227444", "0.5771264", "0.57417095", "0.57185054", "0.571816", "0.5709973...
0.6786031
0
We do a containsKey here so that we can negativecache nulls.
@Override @Nullable public Column findColumn(String name) { if (columnCache.containsKey(name)) { return columnCache.get(name); } else { final Column column = rac.findColumn(name); if (column == null) { columnCache.put(name, null); return null; } final ColumnAccessor accessor = column.toAccessor(); return new ColumnAccessorBasedColumn( new ColumnAccessor() { @Override public ColumnType getType() { return accessor.getType(); } @Override public int numRows() { return end - start; } @Override public boolean isNull(int rowNum) { return accessor.isNull(pointers[start + rowNum]); } @Nullable @Override public Object getObject(int rowNum) { return accessor.getObject(pointers[start + rowNum]); } @Override public double getDouble(int rowNum) { return accessor.getDouble(pointers[start + rowNum]); } @Override public float getFloat(int rowNum) { return accessor.getFloat(pointers[start + rowNum]); } @Override public long getLong(int rowNum) { return accessor.getLong(pointers[start + rowNum]); } @Override public int getInt(int rowNum) { return accessor.getInt(pointers[start + rowNum]); } @Override public int compareRows(int lhsRowNum, int rhsRowNum) { return accessor.compareRows(pointers[lhsRowNum], pointers[start + rhsRowNum]); } } ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}", "boolean containsKey(Object key) throws NullPointerException;"...
[ "0.7227085", "0.7151079", "0.71463877", "0.71117616", "0.71094686", "0.7020194", "0.69895416", "0.68890566", "0.68469304", "0.67217314", "0.6655512", "0.66554236", "0.6627477", "0.6558815", "0.65300524", "0.6526208", "0.65186113", "0.651477", "0.65095735", "0.6491576", "0.647...
0.0
-1
index of last string in array
public ArrayStringLog(String name, int maxSize) // Precondition: maxSize > 0 // // Instantiates and returns a reference to an empty ArrayStringLog // object with name "name" and room for maxSize strings. { log = new String[maxSize]; this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lastIndexOf(Object elem, int index);", "public abstract int lastIndexOf(E e);", "public int lastIndexOf(Object elem);", "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public int lastIndexOf(String str)\n\t{\n\t\tint indexOf = recursiveL...
[ "0.7387207", "0.73470914", "0.73181427", "0.72802997", "0.71410686", "0.69450593", "0.6824282", "0.67982984", "0.6756305", "0.66926175", "0.66799456", "0.6672855", "0.6648176", "0.6626823", "0.6609953", "0.6557276", "0.653205", "0.6494376", "0.64546096", "0.6454441", "0.64408...
0.0
-1
mAdapter.getData().set(mEditIndex, playList); mAdapter.notifyItemChanged(mEditIndex); mAdapter.updateFooterView(); TODO: 2017/11/8
@Override public void onPlayListEdited(PlayList playList) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = ...
[ "0.6836816", "0.68129915", "0.67781585", "0.6734127", "0.6725654", "0.6673148", "0.6672339", "0.6650364", "0.65460616", "0.6514446", "0.6466129", "0.6436837", "0.6418116", "0.64079946", "0.6404983", "0.6399486", "0.6378021", "0.6371973", "0.6340514", "0.6327395", "0.6323349",...
0.0
-1
private final String _pathForFiles = "." + File.separator + "dataTest" + File.separator;
public static Test suite() { // the type safe way is in SimpleTest // the dynamic way : return new TestSuite(DSetOfActivitiesInSitesTest.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Path getDataDirectory();", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "abstract public String getDataResourcesDir();", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getP...
[ "0.70876014", "0.67001516", "0.66229177", "0.6578294", "0.6521176", "0.64803386", "0.6422781", "0.6417994", "0.64033455", "0.6388984", "0.63858956", "0.63568604", "0.630115", "0.6298282", "0.6286802", "0.62677455", "0.62595314", "0.624872", "0.6239925", "0.6226089", "0.615329...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView = inflater.inflate(R.layout.fragment_read, container, false); setRetainInstance(true); booksRef = FirebaseDatabase.getInstance().getReference().child("Book Requests"); gridLayoutManager = new GridLayoutManager(getActivity(), 2, LinearLayoutManager.VERTICAL, false); booksContainer = mView.findViewById(R.id.read_booksContainer); booksContainer.setHasFixedSize(true); booksContainer.setLayoutManager(gridLayoutManager); swipeRefreshLayout = mView.findViewById(R.id.mostPopularContainer); loadBooks(); swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { loadBooks(); swipeRefreshLayout.setRefreshing(false); } }); return mView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO Autogenerated method stub
@Override public void onProgressChanged(SeekBar skb, int prog, boolean fromUser) { MySurfaceView.redVal = prog; }
{ "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
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate...
[ "0.7341755", "0.724073", "0.70493925", "0.70195323", "0.6991212", "0.698237", "0.6939527", "0.6939455", "0.6888742", "0.68491554", "0.68265516", "0.6801462", "0.6801462", "0.6789776", "0.67858356", "0.67699206", "0.6765015", "0.6763387", "0.6763387", "0.6751195", "0.6747221",...
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate...
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.674834...
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate...
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.674834...
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate...
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.674834...
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate...
[ "0.7341755", "0.724073", "0.70493925", "0.70195323", "0.6991212", "0.698237", "0.6939527", "0.6939455", "0.6888742", "0.68491554", "0.68265516", "0.6801462", "0.6801462", "0.6789776", "0.67858356", "0.67699206", "0.6765015", "0.6763387", "0.6763387", "0.6751195", "0.6747221",...
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate...
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.674834...
0.0
-1
when the sound completes, release it so the next one can play (I think)
@Override public void onCompletion(MediaPlayer mp) { player.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void continueSound() {\n\t\tclip.start();\n\t}", "public void pauseSound() {\n\t\tclip.stop();\n\t}", "public void endSound()\n {\n if(!mute)\n {\n try {\n if(lastpowerUp.equals(\"RAINBOW\"))\n {\n sclip.stop();\n bclip.start();\n bc...
[ "0.75749385", "0.70855844", "0.69617593", "0.69205165", "0.6894858", "0.6874667", "0.68520856", "0.6798089", "0.67697287", "0.6753529", "0.6750298", "0.6727189", "0.6719438", "0.66541", "0.6654087", "0.66453993", "0.6641423", "0.6625122", "0.66061664", "0.66041917", "0.660323...
0.67352873
11
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
stops the current music
@Override protected void onSaveInstanceState(Bundle outState) { switch(MySurfaceView.vicCount) { case 0: mBackgroundSound.foo(); break; case 1: mBackgroundSound2.foo(); break; case 2: mBackgroundSound3.foo(); break; case 3: mBackgroundSound4.foo(); break; } //store the array that was used to determine which squares are on or off //so that the layout doesn't re-randomize on orientation change outState.putBooleanArray("name", MySurfaceView.initDisplay); super.onSaveInstanceState(outState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tmusic.stop();\n\t}", "public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}", "void stopMusic();", "public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.sto...
[ "0.89888436", "0.89242595", "0.8607088", "0.84918123", "0.84672606", "0.8264807", "0.8132159", "0.8131543", "0.8118073", "0.8108604", "0.80751127", "0.8068871", "0.8068249", "0.80142194", "0.80037993", "0.7980032", "0.7910469", "0.78600436", "0.7858758", "0.7835912", "0.78221...
0.0
-1
restarts the music, depending on where the user is in the game
@Override protected void onRestoreInstanceState(Bundle savedInstanceState) { switch(MySurfaceView.vicCount) { case 0: mBackgroundSound.playS(); break; case 1: mBackgroundSound2.playS(); break; case 2: mBackgroundSound3.playS(); break; case 3: mBackgroundSound4.playS(); break; } MySurfaceView.initDisplay = savedInstanceState.getBooleanArray("name"); super.onRestoreInstanceState(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void restartIngamemusic() {\n\t\tingamemusicPlayer.seek(Duration.ZERO);\n\t\tingamemusicPlayer.play();\n\t\tlogger.info(\"restart ingame\");\n\t}", "private void restart()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n mPlayer.start();\n }", "sy...
[ "0.8348618", "0.74386764", "0.73342437", "0.7276193", "0.7177171", "0.7139708", "0.7099681", "0.6979862", "0.6954821", "0.6908612", "0.6898744", "0.68523407", "0.6807263", "0.6799657", "0.6791126", "0.67825764", "0.6753523", "0.6751896", "0.6722857", "0.668813", "0.66823435",...
0.0
-1
/ the method that plays the sounds. a different song is played depending on how far you are in the game. generally each level gets louder and more active.
protected void playSounds() { int x; try { switch(MySurfaceView.vicCount) { case 0: mBackgroundSound.execute(); mBackgroundSound5.foo(); break; case 1: if(mega==false) { mega=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levemega); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound.getTime(); mBackgroundSound.foo(); mBackgroundSound2.execute(); mBackgroundSound2.fastF(x); break; case 2: if(superr==false) { superr=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelsuper); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound2.getTime(); mBackgroundSound2.foo(); mBackgroundSound3.execute(); mBackgroundSound3.fastF(x); break; case 3: if(ultra==false) { ultra=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelultra); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound3.getTime(); mBackgroundSound3.foo(); mBackgroundSound4.execute(); mBackgroundSound4.fastF(x); break; case 4: if(extra==false) { extra=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelextra); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound4.getTime(); mBackgroundSound4.foo(); mBackgroundSound5.execute(); mBackgroundSound5.fastF(x); break; } } catch (IllegalStateException ise) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void playSounds(BlockPos pos) {\n float aggroPercent = getAggroProgress();\n if (soundTime <= 0) {\n playSound(ModSounds.MONK, 1F, 1F);\n soundTime = 100;\n }\n if (aggroPercent > 0.70 && soundTime < 100) {\n world.playSound(null, pos, ModSounds....
[ "0.76461077", "0.74030095", "0.7336732", "0.7196298", "0.71617895", "0.71157265", "0.7098184", "0.7081055", "0.7005835", "0.70013654", "0.70005244", "0.6986783", "0.6981459", "0.69559735", "0.69552314", "0.6938535", "0.69155824", "0.6892261", "0.68784773", "0.68490463", "0.68...
0.7742906
0
/ checks where the press was.
protected int checkWhere(float x, float y) { //check if it's in the first column if((x>0)&&(x<180)) { //if it's in the first column, check which row it's in if(y<180) { return 0; } if(y<360) { return 1; } if(y<540) { return 2; } } //check if it's in the second column if((x>180)&&(x<360)) { //if it is, check which row it's in if(y<180) { return 3; } if(y<360) { return 4; } if(y<540) { return 5; } } //if it's not in the first or second column, it's in the third column if(x>360) { //check which row it's in if(y<180) { return 6; } if(y<360) { return 7; } if(y<540) { return 8; } } //just in case it's not in anything, then return 9. //this will cause the thingy to not change return 9; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkMouseClick()\n {\n MouseInfo userClick = Greenfoot.getMouseInfo();\n \n int columnNum;\n int rowNum;\n \n if( Greenfoot.mouseClicked(this) )\n {\n columnNum = userClick.getX() / ( getWidth() / 3 );\n rowNum = userClick.getY...
[ "0.68068814", "0.65612245", "0.64373994", "0.6366435", "0.6304481", "0.6282867", "0.6207637", "0.6206778", "0.6150213", "0.6142328", "0.6109704", "0.6108914", "0.6103317", "0.6046711", "0.6027397", "0.60201675", "0.600712", "0.60035366", "0.59986037", "0.5997072", "0.5994121"...
0.0
-1
stops the player so that it can be restarted later
protected void foo() { player.stop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stop()\r\n {\r\n player.stop();\r\n }", "private void stop(){ player.stop();}", "public static void playerStop() {\n\t\tif(playing){\n\t\t\tPlayer.stop();\n\t\t\tmicroseconds = 0;\n\t\t\tplaying = false;\n\t\t\tif (sim!=null) sim.stop();\n\t\t}\n\t}", "public void stop()\n\t{\n\t\tt...
[ "0.90067613", "0.8744028", "0.8368926", "0.8287433", "0.8286991", "0.82501614", "0.8068956", "0.7868586", "0.7847799", "0.78432214", "0.76754254", "0.7649291", "0.7633198", "0.7633103", "0.7632364", "0.76179343", "0.76065594", "0.759019", "0.75192505", "0.7515371", "0.7489324...
0.72534776
72
/ restarts the music
protected void playS() { player.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void restartIngamemusic() {\n\t\tingamemusicPlayer.seek(Duration.ZERO);\n\t\tingamemusicPlayer.play();\n\t\tlogger.info(\"restart ingame\");\n\t}", "private void restart()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n mPlayer.start();\n }", "vo...
[ "0.854037", "0.8358996", "0.73301333", "0.72573584", "0.720572", "0.7187897", "0.71855676", "0.71613103", "0.7134449", "0.7075094", "0.70411325", "0.7027485", "0.7019139", "0.7004188", "0.6954694", "0.69407433", "0.69343245", "0.69216305", "0.69099146", "0.69035697", "0.68999...
0.0
-1
interface represents manager for handling recipes in database
public interface RecipeManager { /** * creates a recipe in DB * @param recipe recipe to be created */ void createRecipe(Recipe recipe) throws ServiceFailureException; /** * deletes a recipe from DB * @param recipe recipe to be deleted */ void deleteRecipe(Recipe recipe) throws ServiceFailureException; /** * edit a recipe in DB * @param recipe recipe to be edited */ void updateRecipe(Recipe recipe) throws ServiceFailureException; /** * find recipe by ID * @param id id of the searched recipe * @return recipe with entered ID */ Recipe findRecipeById(Long id) throws ServiceFailureException; /** * find recipes, that have this substring in their names * @param name name of the searched recipes * @return set of recipes with entered substring */ SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException; /** * find recipes by it's type * @param type type of the searched recipes * @return set of recipes with entered type */ SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException; /** * find recipes by it's category * @param category category of the searched recipes * @return set of recipes with entered category */ SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException; /** * find recipes by it's cooking time * @param fromTime lower border of the searched cooking time * @param toTime upper border of the searched cooking time * @return set of recipes with cooking time between lower and upper borders */ SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException; SortedSet<Recipe> findRecipesUptoCookingTime(int toTime) throws ServiceFailureException; SortedSet<Recipe> findRecipesFromCookingTime(int fromTime) throws ServiceFailureException; /** * find all recipes in the recipe book * @return all recipes in the system */ SortedSet<Recipe> findAllRecipes() throws ServiceFailureException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RecipeStore {\n //Returns a recipe list of all recipes\n List<Recipe> getAllRecipes();\n //Returns a string list of recipe titles found from ingredients query\n List<String> getRecipeByIngredients(CharSequence query);\n //Returns a single recipe found from query\n Recipe getRecip...
[ "0.74440974", "0.7121265", "0.6482664", "0.626101", "0.6087059", "0.60679877", "0.6022531", "0.601023", "0.58926314", "0.5867275", "0.5746113", "0.573583", "0.5726893", "0.5710004", "0.5696014", "0.5691852", "0.5681866", "0.5675599", "0.5672858", "0.5670749", "0.56651056", ...
0.7922865
0
creates a recipe in DB
void createRecipe(Recipe recipe) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "public void insert(Recipe recipe ) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.save(recipe);\n\t\ttx.commit();\n\t\tsessi...
[ "0.7540805", "0.681008", "0.6617018", "0.6612065", "0.6525889", "0.646477", "0.63269484", "0.6315098", "0.6211512", "0.6191954", "0.6182038", "0.6158904", "0.6144092", "0.6000659", "0.59998965", "0.5965449", "0.5927482", "0.59218293", "0.58855057", "0.5827905", "0.57994395", ...
0.7140714
1
deletes a recipe from DB
void deleteRecipe(Recipe recipe) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteRecipe(RecipeObject recipe);", "private final void deleteRecipe() {\n \tnew DeleteRecipeTask().execute();\n }", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public void deleteRecipe(int recipeId) {\n try {\n \t/*\n \t * recipeid\n \t * zamiast\n...
[ "0.7631664", "0.7340721", "0.7277232", "0.71459794", "0.7118762", "0.6874839", "0.67877775", "0.6764123", "0.67451334", "0.67415917", "0.6696412", "0.66903865", "0.66834974", "0.6663428", "0.6655505", "0.6551513", "0.6509547", "0.64895004", "0.6458502", "0.64295393", "0.64202...
0.7532781
1
edit a recipe in DB
void updateRecipe(Recipe recipe) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRecipe(Recipe recipe) {\n try {\n PreparedStatement preparedStatement = connection\n .prepareStatement(\"update recipe set recipename=?, dishtype=?, dishflavour=?, difficultylevel=?\" +\n \" where recipeid=?\");\n // Param...
[ "0.7165532", "0.6918695", "0.6872976", "0.6840426", "0.6817319", "0.6810172", "0.67497444", "0.6675033", "0.65013593", "0.6469471", "0.6467541", "0.6385741", "0.6349867", "0.631424", "0.62730753", "0.6268979", "0.6240629", "0.6227909", "0.6209641", "0.61745816", "0.6146623", ...
0.7073891
1
find recipe by ID
Recipe findRecipeById(Long id) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;...
[ "0.8064785", "0.8036581", "0.7897833", "0.76870394", "0.7619418", "0.74917454", "0.745044", "0.74390495", "0.74260926", "0.7204332", "0.69107544", "0.675514", "0.67291856", "0.6727249", "0.6662964", "0.6638952", "0.6592842", "0.65730727", "0.6476489", "0.6468823", "0.6435887"...
0.7976742
2
find recipes, that have this substring in their names
SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n ...
[ "0.6799739", "0.65548974", "0.6533036", "0.6502633", "0.61474395", "0.59735984", "0.5771243", "0.5762086", "0.5652045", "0.5512498", "0.5498629", "0.54712486", "0.5446229", "0.5418264", "0.54004115", "0.539963", "0.53919864", "0.5391196", "0.5390866", "0.53855574", "0.5385539...
0.5145561
42
find recipes by it's type
SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor loadRecipesByType(String typeR) {\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.TYPE + \"=\" + \"'\" + typeR + \"'\", null, null, null, null);\r\n ...
[ "0.68353176", "0.659895", "0.63401616", "0.63258725", "0.60763454", "0.5929948", "0.5871522", "0.58400583", "0.5790706", "0.5730553", "0.5695968", "0.5652898", "0.5649062", "0.56482726", "0.5644466", "0.56363565", "0.55956435", "0.5590476", "0.5570989", "0.5558956", "0.555865...
0.755353
0
find recipes by it's category
SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "@Test\n public void ShouldFindbyCategory() {\n Recipe curry = new Recipe();\n curry.setCategory(\"curry\");\n Recipe curryOne = new Recipe();\n curryOne.setCategory(\"curry\");\n ...
[ "0.7316842", "0.7041155", "0.6473819", "0.63311696", "0.6315807", "0.6077851", "0.60637033", "0.60044974", "0.5991225", "0.5976674", "0.5948526", "0.5941825", "0.59177387", "0.59173834", "0.58952355", "0.589177", "0.5869259", "0.5830765", "0.57924163", "0.57912993", "0.578867...
0.7588881
0
find recipes by it's cooking time
SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void findCookingTime(int maxCookTime, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getTime() <= maxCookTime) {\n System.out.println(recipe);\n }\n ...
[ "0.7051903", "0.5706064", "0.5665676", "0.553451", "0.54865634", "0.5464277", "0.53953874", "0.53887343", "0.53764707", "0.52624965", "0.52445024", "0.5230556", "0.5202047", "0.5201296", "0.5122936", "0.5102071", "0.5097186", "0.5006529", "0.49982202", "0.49794164", "0.495266...
0.68687326
1
find all recipes in the recipe book
SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Recipe> getAllRecipes();", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = ne...
[ "0.7231841", "0.697912", "0.67114645", "0.6669858", "0.6596396", "0.6521248", "0.6482644", "0.64347273", "0.621808", "0.6176863", "0.6125467", "0.6109769", "0.6081932", "0.6063135", "0.6017935", "0.5932287", "0.589722", "0.58833015", "0.5870138", "0.58576816", "0.5851068", ...
0.6395612
8
Se inicia la webcam
@Override public void run() { panel.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "public void startFrontCam() {\n }", "private native void iniciarCamara(int idCamera);"...
[ "0.6909669", "0.6811368", "0.6705972", "0.6643418", "0.66412437", "0.6525684", "0.651761", "0.6473264", "0.64199364", "0.641506", "0.6413498", "0.6409385", "0.6408968", "0.6391344", "0.63681245", "0.6341804", "0.63128674", "0.6220023", "0.62181455", "0.6203813", "0.6203572", ...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setIconImage(getIconImage()); setUndecorated(true); jPanel1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jPanel1MouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 395, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 302, Short.MAX_VALUE) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.694574...
0.0
-1
TODO Autogenerated method stub
@Override public void saveOrUpdateElementHistory(ElementHistory elementHistory) { elementHistoryRepository.save(elementHistory); }
{ "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 List<Long> getIdByMlFlowHistoryId(Long mlFlowHistoryId) { return elementHistoryRepository.getIdByMlFlowId(mlFlowHistoryId); }
{ "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 Long getElementTplIdById(Long id) { return elementHistoryRepository.getElementTplIdById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n 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 ElementHistory getById(Long id) { return elementHistoryRepository.findOne(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n 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 ElementHistory getByRuntimeId(String runtimeId) { return elementHistoryRepository.findByRuntimeId(runtimeId); }
{ "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 save(ElementHistory elementHistory) { elementHistoryRepository.save(elementHistory); }
{ "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
Retrieves the primary task provider for a given customer.
public TaskProvider getTaskProvider();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TaskProvider getTaskProvider(String storageAccountId)\n throws TaskException;", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public String getCustomer(String custId);", "Customer getCustomerById(i...
[ "0.60801405", "0.58089626", "0.5495044", "0.5495044", "0.5438822", "0.5305601", "0.52894056", "0.5230795", "0.5211832", "0.51652545", "0.5164927", "0.51437825", "0.51322705", "0.50677294", "0.5054218", "0.50369495", "0.501502", "0.5006555", "0.5002358", "0.50011104", "0.49983...
0.5874288
1
Retrieves a particular task provider based on the storage account ID.
public TaskProvider getTaskProvider(String storageAccountId) throws TaskException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TaskProvider getTaskProvider();", "StorageEntity getStorageById(Integer id);", "@Override\r\n\tpublic Provider findProvider(Long providerId) {\n\t\treturn providerRepository.findOne(providerId);\r\n\t}", "public static ITask findTaskById(final long taskId) {\r\n try {\r\n return SecurityManage...
[ "0.6139584", "0.58817375", "0.53974134", "0.52710193", "0.5213247", "0.52039456", "0.5168155", "0.51515007", "0.5128753", "0.50718683", "0.50514686", "0.5044852", "0.5009175", "0.50046253", "0.49950197", "0.49883252", "0.49529678", "0.4944824", "0.49297133", "0.48902178", "0....
0.796185
0
/ renamed from: a
public final int mo15605a(Bitmap bitmap) { if (bitmap == null) { C3900je.m17429b("Bitmap is null. Skipping putting into the Memory Map."); return -1; } int andIncrement = this.f13511b.getAndIncrement(); this.f13510a.put(Integer.valueOf(andIncrement), bitmap); return andIncrement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final Bitmap mo15606a(Integer num) { return (Bitmap) this.f13510a.get(num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public final void mo15607b(Integer num) { this.f13510a.remove(num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ 36: / 37:
protected RemoteInvocation readRemoteInvocation(HttpExchange exchange) /* 38: */ throws IOException, ClassNotFoundException /* 39: */ { /* 40: 91 */ return readRemoteInvocation(exchange, exchange.getRequestBody()); /* 41: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 2;\n }", "public int method_2436() {\r\n return 16;\r\n }", "void mo33731Pw();", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toS...
[ "0.65359914", "0.64565927", "0.62169176", "0.57769096", "0.56730235", "0.55864763", "0.5585528", "0.5524674", "0.5500363", "0.5496521", "0.5462278", "0.5460473", "0.5426655", "0.5426231", "0.54231566", "0.5414338", "0.5387402", "0.5383913", "0.53662795", "0.5365847", "0.53589...
0.0
-1
/ 42: / 43:
protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is) /* 44: */ throws IOException, ClassNotFoundException /* 45: */ { /* 46:110 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is)); /* 47:111 */ return doReadRemoteInvocation(ois); /* 48: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern ...
[ "0.5325339", "0.5310362", "0.5183086", "0.51077896", "0.5084251", "0.507947", "0.5060151", "0.50458235", "0.50335866", "0.50310236", "0.5003105", "0.500184", "0.4998642", "0.49835026", "0.4946689", "0.49243575", "0.49101445", "0.49017608", "0.48986745", "0.48807946", "0.48805...
0.0
-1
/ 49: / 50:
protected InputStream decorateInputStream(HttpExchange exchange, InputStream is) /* 51: */ throws IOException /* 52: */ { /* 53:125 */ return is; /* 54: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "@Override\n public double tuition(){\n return 2500;\n }", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 4...
[ "0.54969376", "0.5413934", "0.5317563", "0.52572405", "0.5210302", "0.5205403", "0.5195352", "0.5175231", "0.5129415", "0.51282424", "0.5117077", "0.5111618", "0.5110557", "0.5109198", "0.5108744", "0.50974005", "0.50916034", "0.506957", "0.5066224", "0.5064782", "0.50579226"...
0.0
-1
/ 55: / 56:
protected void writeRemoteInvocationResult(HttpExchange exchange, RemoteInvocationResult result) /* 57: */ throws IOException /* 58: */ { /* 59:137 */ exchange.getResponseHeaders().set("Content-Type", getContentType()); /* 60:138 */ exchange.sendResponseHeaders(200, 0L); /* 61:139 */ writeRemoteInvocationResult(exchange, result, exchange.getResponseBody()); /* 62: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 8;\n }", "@Test\n public void FiveAndSpareWithFinalFiveExpected_150(){\n String input = \"5/5/5/5/5/5/5/5/5/5/5\";\n assertEquals(game.scoreOfGame(input),150);\n }", "public int mo36g() {\n re...
[ "0.5854902", "0.58257186", "0.5622369", "0.56086475", "0.55814636", "0.55739284", "0.549142", "0.545428", "0.544874", "0.54197836", "0.5379329", "0.5355008", "0.5328852", "0.5327109", "0.53213686", "0.53080857", "0.5287323", "0.52857417", "0.5272054", "0.52713454", "0.5263688...
0.0
-1
/ 63: / 64:
protected void writeRemoteInvocationResult(HttpExchange exchange, RemoteInvocationResult result, OutputStream os) /* 65: */ throws IOException /* 66: */ { /* 67:159 */ ObjectOutputStream oos = createObjectOutputStream(decorateOutputStream(exchange, os)); /* 68:160 */ doWriteRemoteInvocationResult(result, oos); /* 69:161 */ oos.flush(); /* 70: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean multipleOf64(int num)\n {\n return (num & 0b111111) == 0;\n }", "private long m10267c(long j) {\r\n return (j << 1) ^ (j >> 63);\r\n }", "private long m682c(long j) {\n return (j >> 63) ^ (j << 1);\n }", "private int m10266c(int i) {\r\n return (i << 1) ^ (i >>...
[ "0.62848186", "0.62606674", "0.6138571", "0.61288476", "0.6106632", "0.6070605", "0.6054936", "0.6016896", "0.5948831", "0.5878737", "0.5876665", "0.58690417", "0.58669686", "0.5836528", "0.58223283", "0.58210135", "0.5793914", "0.57893205", "0.57599634", "0.57534266", "0.572...
0.0
-1
/ 71: / 72:
protected OutputStream decorateOutputStream(HttpExchange exchange, OutputStream os) /* 73: */ throws IOException /* 74: */ { /* 75:175 */ return os; /* 76: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo21783H() {\n }", "public int mo36g() {\n return 8;\n }", "long getUnknown72();", "private void m50366E() {\n }", "void mo33732Px();", "public void mo21782G() {\n }", "public void mo9233aH() {\n }", "public void mo21794S() {\n }", "private void m50367F() {\n ...
[ "0.6325523", "0.62474996", "0.62075526", "0.6164197", "0.61580247", "0.6153241", "0.6142222", "0.6068121", "0.60557204", "0.6053832", "0.60443103", "0.6044202", "0.6043805", "0.6028422", "0.60247445", "0.60163224", "0.6013893", "0.5994779", "0.5983329", "0.597178", "0.5964711...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_register, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Returns the value of the 'Feedback' reference. If the meaning of the 'Feedback' reference isn't clear, there really should be more of a description here...
Feedback getFeedback();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFeedback() {\n\t\treturn feedback;\n\t}", "public String getFeedback() {\n\t\treturn feedback;\n\t}", "int getFeedback();", "protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}", "lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKIN...
[ "0.8370088", "0.8370088", "0.7891121", "0.762098", "0.75026107", "0.74389786", "0.7380135", "0.7355387", "0.7171273", "0.711799", "0.70767605", "0.66012233", "0.6538231", "0.6506083", "0.62536836", "0.62411094", "0.61644214", "0.613834", "0.61368734", "0.60934055", "0.5994258...
0.8077732
2
Returns the value of the 'Immediate' attribute. If the meaning of the 'Immediate' attribute isn't clear, there really should be more of a description here...
boolean isImmediate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImmediate(ValueExpression immediate) {\n this.immediate = immediate;\n }", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "@Transient\t//TODO\n\tpublic boolean getExpressFlag()\t{\n\t\treturn mExpressflag;\n\t}", "public String ge...
[ "0.5867826", "0.57908916", "0.56370634", "0.56095654", "0.5561214", "0.5510192", "0.5425444", "0.5413983", "0.5376775", "0.5343185", "0.533295", "0.532948", "0.5322856", "0.5321776", "0.5289589", "0.52801144", "0.5260858", "0.5260858", "0.5254132", "0.5249888", "0.52424926", ...
0.60877675
0
Returns the value of the 'Delayed' attribute. If the meaning of the 'Delayed' attribute isn't clear, there really should be more of a description here...
boolean isDelayed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getDelay()\r\n {\r\n return this.delay;\r\n }", "public int getDelay() {\r\n\t\treturn delay;\r\n\t}", "public double getDelay();", "public float getDelay()\n\t{\n\t\treturn delay;\n\t}", "public BigDecimal getDelay() {\r\n return delay;\r\n }", "public int getDelay() {\...
[ "0.7495217", "0.7406266", "0.740137", "0.7388409", "0.73865706", "0.73845345", "0.7367154", "0.735126", "0.72999746", "0.7299088", "0.7286074", "0.7234628", "0.7206514", "0.71877813", "0.70228344", "0.6987674", "0.6931878", "0.69033754", "0.6892228", "0.6877742", "0.68559724"...
0.6364167
35
Creates picture of how to play button on start screen
public howToPlayButton() { GreenfootImage howToGuide = new GreenfootImage("how to play.png"); setImage(howToGuide); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void play(){\n\n\t\tnew X.PlayXicon().root.setOnClickListener(Play_TestsPresenter::cc);\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tSystem.out.println(\"mousePressed\");\n\t\tbtnNewButton.setIcon(new ImageIcon(\"./res/img/startlogo.png\"));\n\t\tjsr.startCaptureAudio(); // 오디오 캡쳐 시작\n\n\t}...
[ "0.67627525", "0.6736587", "0.67349094", "0.6619357", "0.6616123", "0.6603123", "0.6464851", "0.6437166", "0.63658834", "0.635867", "0.6338308", "0.6333304", "0.6330475", "0.6279097", "0.62747884", "0.62492216", "0.61910444", "0.6150132", "0.6149036", "0.6108189", "0.60897654...
0.81374645
0
if the button is clicked go to how to guide
public void act() { if (Greenfoot.mouseClicked(this)) { Greenfoot.setWorld(new howToPlayGuide()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new On...
[ "0.6883655", "0.68559986", "0.6753849", "0.6748029", "0.6597316", "0.6594977", "0.657015", "0.65656906", "0.6546804", "0.65444696", "0.654428", "0.65432614", "0.65290356", "0.6525551", "0.6522377", "0.65194535", "0.64753705", "0.6467296", "0.64654016", "0.6457139", "0.6450553...
0.0
-1
Returns the value of the 'Views' containment reference.
Views getViews();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> getViews() {\n return views;\n }", "@Override\n public java.util.List<MateriliazedView> getViewsList() {\n return views_;\n }", "public java.lang.String getViewsLabel() {\n return viewsLabel_;\n }", "public java.lang.String getViewsLabel() {\n retu...
[ "0.6420159", "0.62273675", "0.6094455", "0.60829043", "0.59104425", "0.5853657", "0.5852296", "0.58431464", "0.5835153", "0.5833", "0.57414395", "0.5730816", "0.5722318", "0.57190025", "0.57029986", "0.5679708", "0.567657", "0.5664504", "0.5627373", "0.5616111", "0.5596672", ...
0.6173014
2
Returns the value of the 'Super Type' reference.
Entity getSuperType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EPREFIX_TYPE getSuperType();", "public Type getSuper() {\n\t\treturn superClass;\n\t}", "public String getSuper()\n {\n ensureLoaded();\n return (m_clzSuper == null ? (String) null : m_clzSuper.getValue());\n }", "public String getSuperClass() {\n\t\treturn superField.getText();\n...
[ "0.7583951", "0.7395159", "0.72118175", "0.71605116", "0.66004235", "0.6519748", "0.6501928", "0.64933395", "0.6467364", "0.6366482", "0.63571924", "0.63566035", "0.63310444", "0.6308957", "0.63037", "0.63007843", "0.624845", "0.6207335", "0.6157113", "0.6152443", "0.6145007"...
0.6928788
4
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_crop, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
'/this is a switch case problem... consider first reject.. then sort '
interface ScannerAndSorter { // Read and scan another item; return false when there are no more // items. boolean nextItem(); // Percentage (0-100) of the current item that's red. double redPercentage(); // Percentage (0-100) of the current item that's green. double greenPercentage(); // Send the current item to the Red bin void sendToRed(); // Send the current item to the Green bin void sendToGreen(); // Send the current item to the Reject bin void reject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\n List<Integer> a = range(3, 19).mapToObj(Integer::valueOf).collect(toList());\n a.sort((x, y) -> (x - y));\n// System.out.println(a);\n\n List<List<String>> QUICK_THREE_OPTIONS = new ArrayList<>();\n //空 0\n QUICK_THREE_OPTIONS...
[ "0.581628", "0.5719461", "0.5517461", "0.5489182", "0.54787207", "0.5476065", "0.5468108", "0.5438687", "0.5321916", "0.531828", "0.5310563", "0.53090805", "0.52917534", "0.52747536", "0.527472", "0.5235888", "0.5219591", "0.5209474", "0.51970243", "0.5192651", "0.5183216", ...
0.0
-1
Read and scan another item; return false when there are no more items.
boolean nextItem();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean hasNext() {\n return (nextItem != null);\n }", "public boolean hasNext() throws IOException{\n\t\t\t//if has processed all bytes read\n\t\t\tif (pos >= count){\n\t\t\t\tcount = in.read(buff);\n\t\t\t\tif (count <= 0) return false;\n\t\t\t\tpos = 0;\n\t\t\t}\n\t...
[ "0.6570112", "0.617815", "0.6174295", "0.6126145", "0.6110257", "0.60404843", "0.60404843", "0.60268056", "0.59786975", "0.59730464", "0.59704167", "0.5902931", "0.5902931", "0.5902931", "0.5902931", "0.5902931", "0.5886374", "0.5881069", "0.5878892", "0.5878892", "0.5878892"...
0.7165482
0
Percentage (0100) of the current item that's red.
double redPercentage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPercentageColor() {\n return percentageColor;\n }", "int getRed(){\n return getPercentageValue(\"red\");\n }", "double greenPercentage();", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public int getRed() {\n\t\tretur...
[ "0.7686137", "0.73153555", "0.70594454", "0.70390034", "0.69998264", "0.69205076", "0.67957217", "0.658528", "0.64672506", "0.6399097", "0.63838", "0.6374828", "0.63481903", "0.6289588", "0.6272269", "0.6248033", "0.6178315", "0.6154769", "0.615366", "0.61532235", "0.615028",...
0.7361141
1
Percentage (0100) of the current item that's green.
double greenPercentage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPercentageColor() {\n return percentageColor;\n }", "int getGreen(){\n return getPercentageValue(\"green\");\n }", "double redPercentage();", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "int getRed(){\n return ...
[ "0.762251", "0.73834646", "0.7058157", "0.6990478", "0.6920717", "0.6828535", "0.6758313", "0.6715008", "0.65234023", "0.64678615", "0.6457937", "0.64573646", "0.64032537", "0.6398305", "0.63878906", "0.63718605", "0.632522", "0.6295778", "0.62823135", "0.6248896", "0.6229158...
0.76806337
0
Send the current item to the Red bin
void sendToRed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "void push(int item) {\r\n\t\tif (tos == 9)\r\n\t\t\tSystem.out.println(\"Stos jest pełny\");\r\n\t\telse\r\n\t\t\tstck[++tos] = item;\r\n\t}", ...
[ "0.6161333", "0.60320395", "0.5913483", "0.5762684", "0.5650933", "0.5611267", "0.5607754", "0.5586532", "0.55792105", "0.55741477", "0.556396", "0.54972905", "0.54807276", "0.5467972", "0.5460297", "0.5437284", "0.54280776", "0.5402355", "0.5402109", "0.5370555", "0.5356673"...
0.62319994
0
Send the current item to the Green bin
void sendToGreen();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "void push(int item) {\r\n\t\tif (tos == 9)\r\n\t\t\tSystem.out.println(\"Stos jest pełny\");\r\n\t\telse\r\n\t\t\tstck[++tos] = item;\r\n\t}", ...
[ "0.6230949", "0.60766745", "0.60085225", "0.58139575", "0.57281536", "0.57230896", "0.5720287", "0.5663376", "0.56512755", "0.55898416", "0.55506945", "0.55155724", "0.5511894", "0.5505762", "0.5491472", "0.5490006", "0.547423", "0.5471005", "0.54704183", "0.5463903", "0.5460...
0.65422994
0
Send the current item to the Reject bin
void reject();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "void notifyReject(final TradeInstruction instruction);", "public void itemOkay() \r\n\t{\n\t\t\r\n\t}", "public void rejectProduct() {\n self.increaseRejectCount();\n env.updateMachine(self);\n }", "private void itemR...
[ "0.67178977", "0.6538574", "0.61581445", "0.6137034", "0.6080224", "0.5808037", "0.55974954", "0.55960643", "0.55361176", "0.54724056", "0.5462206", "0.5422965", "0.53775793", "0.53747493", "0.53603256", "0.5344072", "0.53373057", "0.5321884", "0.5318674", "0.5304558", "0.528...
0.517266
36
Sort the decorations that 'sorter' reads.
void sort() { // ... fill this in ... //how do I get teh next item? where is the reader in the interface that returns the next item??? if (sorter==null || sorter.nextItem()==false) return ; while(sorter.nextItem()) { /*Red, if the decoration is more than 35% red Green, if the decoration is more than 30% green Reject, if the decoration is both more than 35% red and 30% green - these are just too "loud". */ //ScannerAndSorter item=sorter.read(); if (sorter.redPercentage()>35.00) if (sorter.greenPercentage()>30) sorter.reject(); else sorter.sendToRed(); else if (sorter.greenPercentage()>30) sorter.sendToGreen(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "public void sortCompetitors(){\n\t\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnl...
[ "0.6181947", "0.5994208", "0.5889331", "0.57061553", "0.56300986", "0.5593049", "0.5542623", "0.5464379", "0.54299563", "0.54239", "0.54220474", "0.54120404", "0.5388341", "0.5377356", "0.53549933", "0.5343284", "0.5341637", "0.5317202", "0.53087854", "0.5301058", "0.52773035...
0.61392564
1
this is a DFS problem i will use a stack to traverse.. at every point, I will make a new String buffer, and either when i get a wall or cheese, i will continue to visit all the "places" i will simply do DFS.. and mark the nod i visited as boolean> visited=t char to my strig
interface Place { // Return the adjacent Place in the given direction public Place goNorth(); public Place goSouth(); public Place goEast(); public Place goWest(); // Returns true only for the special "Wall" place public boolean isWall(); // Returns true only for the special "Cheese" place public boolean isCheese(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String findCheese(Place startingPoint) {\nif (startingPoint==null)\n\treturn null;\n\nvisited.add(startingPoint);\nStack<Place> vstdstack=new Stack<Place>();\nvstdstack.add(startingPoint);\n//Stack<c> pather=\"start->\";\nwhile(!vstdstack.isEmpty())\n{\n\tPlace curpos=getNextPlace(vstdstack.peek());\n if...
[ "0.70367473", "0.64422977", "0.64046854", "0.6263993", "0.6140651", "0.6082333", "0.6048554", "0.5998213", "0.59766626", "0.5962489", "0.5935781", "0.5929577", "0.59258455", "0.59146905", "0.58967686", "0.5893201", "0.5888642", "0.58642143", "0.58535165", "0.5830419", "0.5829...
0.0
-1
Return the adjacent Place in the given direction
public Place goNorth();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getAdjacentLocation(char direction)\n\t{\n\t\tswitch (direction) {\n\t\t\tcase 'l': // location to left of current\n\t\t\t\treturn new Location(x - 1, y, Block.EMPTY);\n\t\t\tcase 'r': // location to the right of current\n\t\t\t\treturn new Location(x + 1, y, Block.EMPTY);\n\t\t\tcase 'u': // locat...
[ "0.7409633", "0.7316833", "0.6999934", "0.66991216", "0.6462146", "0.6167674", "0.6163292", "0.60133946", "0.5964488", "0.5937064", "0.5918009", "0.5840568", "0.5833862", "0.5819807", "0.58157957", "0.5811974", "0.5804119", "0.578976", "0.5788456", "0.5757779", "0.57337993", ...
0.57960844
17
Returns true only for the special "Wall" place
public boolean isWall();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }", "private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}", "private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.get...
[ "0.8457795", "0.82924813", "0.8240569", "0.8196196", "0.8096751", "0.80736053", "0.8020202", "0.77667874", "0.7657403", "0.7646915", "0.7546653", "0.7533639", "0.74518514", "0.72686934", "0.7196276", "0.711015", "0.7108361", "0.6951069", "0.69353336", "0.69145525", "0.6905453...
0.8393721
1
Returns true only for the special "Cheese" place
public boolean isCheese();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasCheese() {\n return cheese;\n }", "private boolean hasEatenApple() {\r\n return snake.getHead().equals(apple);\r\n }", "public boolean searchEconomyClass()\n\t{\n\t\tfor(int i=0;i<4;i++)\n\t\t{\t\n\t\t\tif(seats[2][i] == false)\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\n\t\t\t}...
[ "0.70113665", "0.699225", "0.63800937", "0.6338426", "0.62488073", "0.62422293", "0.6229675", "0.6180543", "0.61301804", "0.610743", "0.6101381", "0.61010295", "0.60909176", "0.60754716", "0.6067239", "0.60482395", "0.6014804", "0.6002314", "0.59950423", "0.5980782", "0.59708...
0.7554872
0
private HashMap nearby=new HashMap();
public Mouse() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyHashMap() {\n map = new HashMap();\n }", "void setHashMap();", "Neighbors() {\n HashMap<Integer, Double> neighbors = new HashMap<>();\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public HashMa...
[ "0.6132113", "0.6108429", "0.6098094", "0.6064384", "0.6051464", "0.6046143", "0.60228425", "0.5956235", "0.59461576", "0.59432244", "0.5916599", "0.58672833", "0.5862", "0.5854893", "0.5831626", "0.57992446", "0.5797992", "0.5747331", "0.5744049", "0.57216316", "0.57138383",...
0.0
-1
Return a string of the letters NSEW which, if used to traverse the the maze from startingPoint, will reach a Place where isCheese() is true. Return null if you can't find such a path.
public String findCheese(Place startingPoint) { if (startingPoint==null) return null; visited.add(startingPoint); Stack<Place> vstdstack=new Stack<Place>(); vstdstack.add(startingPoint); //Stack<c> pather="start->"; while(!vstdstack.isEmpty()) { Place curpos=getNextPlace(vstdstack.peek()); if (curpos==null) { vstdstack.pop(); soln.deleteCharAt(soln.length()-1); continue; } if(curpos.isCheese()) return soln.toString(); else vstdstack.push(curpos); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String findPath(Maze maze) {\n \tint m = maze.getNumRows();\n \tint n = maze.getNumCols();\n\n \t//define a visited matrix\n \tboolean[][] visited = new boolean[m][n];\n \tsetvisited(false, visited);\n\n \t//define a direction matrix\n \tint[][] dir_mtr = new int[m][n];\n \tin...
[ "0.5752087", "0.55916876", "0.5414591", "0.538177", "0.53691995", "0.5342015", "0.5331154", "0.5284268", "0.52768105", "0.5253013", "0.52279747", "0.52034074", "0.5115846", "0.5075489", "0.50551623", "0.5038899", "0.50282556", "0.5028229", "0.49969798", "0.49953896", "0.49946...
0.7019583
0
for(Entry pl : nearby.entrySet())
Place getNextPlace(Place next) { if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){ soln.append("N"); visited.add(next.goNorth()); //nearby.clear(); return next.goNorth(); } else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){ soln.append("E"); visited.add(next.goEast()); //nearby.clear(); return next.goEast(); } else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){ soln.append("N"); visited.add(next.goNorth()); //nearby.clear(); return next.goNorth(); } else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){ soln.append("N"); visited.add(next.goNorth()); //nearby.clear(); return next.goNorth(); //nearby.clear(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n ...
[ "0.5994861", "0.58525455", "0.5847192", "0.5719184", "0.5667903", "0.56573343", "0.55882925", "0.55856705", "0.55525905", "0.555201", "0.5546689", "0.55276024", "0.55246043", "0.5498978", "0.54595107", "0.54427993", "0.54106456", "0.53779733", "0.53589", "0.5354589", "0.53416...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
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_refresh) { SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); int mosqueKey = preferences.getInt("mosque", 0); if(ConnectivityReceiver.isConnected()){ if (mosqueKey == 0) getWebsite0(); if (mosqueKey == 1) getWebsite1(); if (mosqueKey == 2) getWebsite2(); if (mosqueKey == 3) getWebsite3(); if (mosqueKey == 4) getWebsite4(); if (mosqueKey == 5) getWebsite5(); Toast.makeText(this, "Syncing online...", Toast.LENGTH_LONG).show(); }else{ Toast.makeText(this, "NO INTERNET", Toast.LENGTH_LONG).show(); } 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.79036397", "0.78051436", "0.77656627", "0.7726445", "0.7630767", "0.76211494", "0.75842685", "0.75296193", "0.74868536", "0.74574566", "0.74574566", "0.7437983", "0.7422003", "0.7402867", "0.7391276", "0.73864174", "0.7378494", "0.73696834", "0.736246", "0.7355139", "0.734...
0.0
-1
TODO Autogenerated method stub
public void onNothingSelected(AdapterView<?> arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
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.78840077", "0.75487214", "0.74962974", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246"...
0.0
-1
untuk menangkap response dari startActivityForResult
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1 && resultCode == RESULT_OK) { Cursor cursor = null; try { Uri uri = data.getData(); cursor = getContentResolver().query(uri, new String[]{ ContactsContract.CommonDataKinds.Phone.NUMBER}, null, null, null); if (cursor != null && cursor.moveToNext()) { String phone = cursor.getString(0); edtnohp.setText(phone); } } catch (Exception e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if(resultCode == ACTIVITY_FOR_RESULT_ID){\r\n setResult(ACTIVITY_FOR_RESULT_ID);\r\n finish();\r\n }\r\n }", "@Override\n public void handleResult(Intent data) {\n }",...
[ "0.737012", "0.718286", "0.71740764", "0.7143285", "0.7118548", "0.7087971", "0.700313", "0.69948584", "0.69663805", "0.6953053", "0.69526136", "0.69510007", "0.6945234", "0.69275254", "0.692377", "0.6908998", "0.6908998", "0.68996567", "0.6890292", "0.6876878", "0.6858142", ...
0.0
-1
Check that the index is within range.
public ShardLinkDetails getDetails(int index) { if (index > count) { throw new ArrayIndexOutOfBoundsException(index); } return detailsArray[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }", "public boolean rangeCheck(int index) {\n\t\tif (index >= 0 && index <= 7) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "pri...
[ "0.74812347", "0.73574555", "0.7315617", "0.696245", "0.6954741", "0.69151044", "0.68962705", "0.6849372", "0.6820916", "0.680079", "0.6789501", "0.6779302", "0.67538184", "0.67291033", "0.66507286", "0.6613575", "0.6545564", "0.65190053", "0.6492721", "0.6490783", "0.6473894...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); System.out.println("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 protected void onStart() { super.onStart(); System.out.println("onStart..."); }
{ "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 onStop() { super.onStop(); System.out.println("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