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
! Sets the material index
public void setMaterialIndex(int index) { materialIndex = index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean setMaterial(int index) {\n if (isValidIndex(index, MATERIALS)) {\n material = index;\n return true;\n } else {\n return false;\n }\n }", "@NonNull\n public Builder material(@IntRange(from = 0) int index, @NonNull MaterialInstance mate...
[ "0.7538484", "0.7264042", "0.7051551", "0.6706068", "0.65734076", "0.6570236", "0.65582436", "0.64788663", "0.64451385", "0.6444715", "0.64213794", "0.641436", "0.63712263", "0.6346524", "0.6313112", "0.6296928", "0.6253161", "0.6243846", "0.6243424", "0.6241172", "0.6238678"...
0.90941375
0
////////////////////////////////////////////////////////////////////// Description: Destructor Use: public
public void close() // //////////////////////////////////////////////////////////////////////// { // Free up path path.unref(); // The SoDetailList destructor deletes all details in the list, so // we don't have to do it here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\t\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\n\tpublic void destroy() {\n...
[ "0.7443811", "0.7378807", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", "0.73001266", ...
0.0
-1
////////////////////////////////////////////////////////////////////// Description: Multiplies SbVec4f by matrix for transforming texture coords. Use: private, static
private static SbVec4f multVecMatrix4(final SbMatrix m, final SbVec4f v) // //////////////////////////////////////////////////////////////////////// { int i; final SbVec4f v2 = new SbVec4f(); for (i = 0; i < 4; i++) v2.getValueRead()[i] = (v.getValueRead()[0] * m.getValue()[0][i] + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Vector4fc mul(IMatrix4f mat);", "public abstract Vector4fc mulProject(IMatrix4f mat);", "public abstract Vector4fc mul(IMatrix4x3f mat);", "public abstract Vector4fc mul(float x, float y, float z, float w);", "public abstract Vector4fc mul(IVector4f v);", "public static native KVec4 mat4M...
[ "0.7357723", "0.7258983", "0.7222565", "0.7204228", "0.6790982", "0.670276", "0.6540531", "0.63139504", "0.6282811", "0.6262627", "0.6142622", "0.5935746", "0.593078", "0.5912447", "0.5890536", "0.58867127", "0.58859414", "0.5883982", "0.58700025", "0.5823511", "0.58050567", ...
0.7366479
0
////////////////////////////////////////////////////////////////////// Description: Sets the detail corresponding to the given node in the path. NULL may be passed to remove a detail. Use: extender
public void setDetail(SoDetail detail, SoNode node) // //////////////////////////////////////////////////////////////////////// { int i; // Find node in path i = getNodeIndex(node); //#ifdef DEBUG // if (i < 0) // SoDebugError::post("SoPickedPoint::setDetail", // "Node ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDetail(String detail) {\n this.detail = detail;\n }", "public void setDetail(String detail) {\r\n this.detail = detail;\r\n }", "public void setDetail(String detail) {\n this.detail = detail;\n }", "public void setDetail(String detail) {\n this.detail = detail;\n...
[ "0.6013584", "0.59403664", "0.5898811", "0.5898811", "0.5898811", "0.5807915", "0.5677419", "0.5671107", "0.5601579", "0.55065525", "0.53973466", "0.53883785", "0.5234664", "0.52329785", "0.5112742", "0.50974417", "0.50799036", "0.50532967", "0.50503546", "0.49339393", "0.491...
0.7536734
0
////////////////////////////////////////////////////////////////////// Description: Returns index in path of given node, or 1 if not found. Use: private
private int getNodeIndex(final SoNode node) // //////////////////////////////////////////////////////////////////////// { int i; // Search from bottom up for node in path, since details are // usually examined near the bottom for (i = ( SoFullPath.cast ( path)).getLength() - 1; i >= 0; i--) if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }", "private static short findIndexNode(String path, IndexNode inode)\n throws Exception {\n // start with the root file system, roo...
[ "0.74790734", "0.74689823", "0.693395", "0.68858737", "0.68407404", "0.66940767", "0.66117305", "0.65652275", "0.64562804", "0.64190555", "0.64173603", "0.6357875", "0.6329053", "0.63033485", "0.62919754", "0.62663424", "0.62089235", "0.620684", "0.6193478", "0.6193478", "0.6...
0.7457631
2
////////////////////////////////////////////////////////////////////// Description: Applies given instance of SoGetMatrixAction to path to node. Use: private
private void getMatrix( SoNode node) // //////////////////////////////////////////////////////////////////////// { SoPath xfPath; // ptr // Construct a path from the root down to this node. Use the given // path if it's the same if (node == null || node == SoFullPath.cast(path).getTail()) xfPat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SbMatrix\ngetObjectToWorld(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getMatrix();\n}", "public SbMatrix\ngetWorldToObject( SoNode node) \n//\n///////////////////////////////////////////////////////////...
[ "0.5861611", "0.5483821", "0.53357625", "0.5285453", "0.5283329", "0.5267297", "0.5177585", "0.5098001", "0.5062089", "0.5025405", "0.50042677", "0.49838945", "0.49048913", "0.48876712", "0.4870404", "0.48497364", "0.48213246", "0.48177296", "0.48074237", "0.47414765", "0.472...
0.7760295
0
////////////////////////////////////////////////////////////////////// Description: Returns the texture coordinates in object space that corresponds to the given node in the path. Use: public
public SbVec4f getObjectTextureCoords(final SoNode node) // //////////////////////////////////////////////////////////////////////// { return multVecMatrix4(getImageToObject(node), imageTexCoords); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E3DVector2F getTextureCoordC(){\r\n return vertices[2].getTextureCoord();\r\n }", "public float[] getTextureCoords() {\r\n\t\treturn textureCoords;\r\n\t}", "public E3DVector2F getTextureCoordB(){\r\n return vertices[1].getTextureCoord();\r\n }", "public E3DVector2F getTextureCoord...
[ "0.6479787", "0.628046", "0.6237698", "0.62151414", "0.592659", "0.58917636", "0.58863765", "0.57686454", "0.57119024", "0.5689015", "0.56778723", "0.56588215", "0.56566495", "0.5645931", "0.56430507", "0.5641594", "0.5617074", "0.55736434", "0.5571832", "0.55610716", "0.5556...
0.79105014
0
many clients: server tracks synched maprevision and mapid for all maps! status=ACCEPTED: no contention status=MERGED: events from different clients were reordered if clientmaprevision is already used! change maprevision for some clients! 1 thread per mapid for sending updates (TODO: new message on freeplaneevents "MapU...
@Override public void handleTextMessage(WebSocketSession session, TextMessage message) throws IOException { // logger.info("Server received text: {}", message.getPayload()); Message msg = messageEncoderDecoder.deserialize(message.getPayload(), Message.class); logger.info("Message received: {}", msg.getCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void entryUpdated(MapEvent mapEvent) {\n String domain = mapEvent.getKey().toString();\n for (Map.Entry<NodeID, Set<String>[]> entry : nodeSessions.entrySet()) {\n // Get components hosted in this node\n Set<String> nodeComponents = entry.getValue()[COMPON...
[ "0.58743495", "0.5838305", "0.581532", "0.5679405", "0.5609681", "0.5571983", "0.55487293", "0.55279034", "0.54877496", "0.54756343", "0.5449406", "0.5416874", "0.54051346", "0.53757936", "0.5354895", "0.53478956", "0.5309538", "0.5307376", "0.5297608", "0.5286118", "0.528571...
0.0
-1
time.setText("seconds remaining: " + millisUntilFinished / 1000);
public void onTick(long millisUntilFinished) { int sec = (int) (millisUntilFinished / 1000); int hour = sec / 3600; sec = sec % 3600; int min = sec / 60; sec = sec % 60; time.setText(hour + ":" + min + ":" + sec); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onTick(long millisUntilFinished) {\n\n timeleftTextview.setText(\"seconds remaining: \" + millisUntilFinished / 1000);\n }", "public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setT...
[ "0.81107897", "0.75382465", "0.75345135", "0.7530553", "0.7460955", "0.7449373", "0.74337965", "0.72492063", "0.71963924", "0.7154165", "0.7148625", "0.7093418", "0.7044095", "0.7013407", "0.70068324", "0.700164", "0.6967538", "0.6938776", "0.6872004", "0.686151", "0.68586886...
0.6908066
18
Failed to read value
@Override public void onCancelled(DatabaseError error) { Log.w("aaa", "Failed to read value.", error.toException()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldReadValue();", "Object readValue();", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignore...
[ "0.6520245", "0.644224", "0.62601036", "0.6077715", "0.6027265", "0.59389204", "0.5928014", "0.5897478", "0.5892562", "0.5891626", "0.5821752", "0.5813256", "0.5813256", "0.58093756", "0.58006567", "0.5798476", "0.5776234", "0.5774579", "0.57361126", "0.5728217", "0.57143444"...
0.0
-1
Failed to read value
@Override public void onCancelled(DatabaseError error) { Log.w("aaa", "Failed to read value.", error.toException()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldReadValue();", "Object readValue();", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignore...
[ "0.6520245", "0.644224", "0.62601036", "0.6077715", "0.6027265", "0.59389204", "0.5928014", "0.5897478", "0.5892562", "0.5891626", "0.5821752", "0.5813256", "0.5813256", "0.58093756", "0.58006567", "0.5798476", "0.5776234", "0.5774579", "0.57361126", "0.5728217", "0.57143444"...
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.exam_page_drower, 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(); //noinspection SimplifiableIfStatement if (id == R.id.finish) { resultActivity(); 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.7904035", "0.78057915", "0.77662706", "0.7727266", "0.76317817", "0.76219225", "0.7584542", "0.7530336", "0.7487623", "0.7457442", "0.7457442", "0.7438915", "0.7421425", "0.7403424", "0.73923", "0.7387485", "0.7379756", "0.7370862", "0.73622537", "0.73564696", "0.7345994",...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); drawer = findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
/ mAdapter = new FavorisEventAdapter(getContext(),mFlowerList); mRecyclerView.setAdapter(mAdapter);
@Override protected void onPostExecute(Void aVoid) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setRecyclerViewAdapter() {\n recyclerView.setAdapter(favouritePageRecyclerViewAdapter);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_fav...
[ "0.7388062", "0.7251462", "0.70288825", "0.69791603", "0.6956876", "0.6951916", "0.69388705", "0.68852", "0.6881253", "0.6880528", "0.68629646", "0.6838869", "0.68193537", "0.6811594", "0.67789173", "0.6772531", "0.67511725", "0.67238355", "0.67235494", "0.6719247", "0.671891...
0.0
-1
set Chrome as defualt
@Test public void handleMouseHover() { System.setProperty("webdriver.chrome.driver", "./Driver/chromedriver.exe"); // Open browser WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); // Go to https://www.dell.com/en-us?~ck=mn driver.get("https://www.dell....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ChromeOptions setChromeOptions() {\n\t\t\tChromeOptions cOptions = new ChromeOptions();\n\t\t\tcOptions.addArguments(\"disable-infobars\");\n\t\t\t//cOptions.addArguments(\"--headless\", \"window-size=1920,1080\");\n\t\t\tcOptions.addArguments(\"--disable-notifications\");\n\t\t\treturn cOptions;\n\t...
[ "0.70932883", "0.6968", "0.65217507", "0.63897175", "0.63251996", "0.6278405", "0.6255089", "0.61688733", "0.6133632", "0.6100878", "0.59832966", "0.5952738", "0.5858301", "0.58465016", "0.5802641", "0.58002883", "0.57554555", "0.57484704", "0.57440954", "0.57439524", "0.5732...
0.0
-1
Explicit wait encapsulated in a method
private void waitForElement(WebDriver driver, int timeToWaitInSeconds, By ElementLocater) { WebDriverWait wait = new WebDriverWait(driver, timeToWaitInSeconds); wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(ElementLocater)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void beforeWait();", "protected abstract void afterWait();", "public abstract void onWait();", "private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }", "public void doWait(){\n\t\tsy...
[ "0.7300922", "0.7232305", "0.72168773", "0.70242155", "0.701552", "0.6933906", "0.6870752", "0.6827173", "0.67749375", "0.6746962", "0.6736198", "0.6728785", "0.67257327", "0.6650963", "0.6577195", "0.6575304", "0.6502406", "0.6472323", "0.64708024", "0.64580244", "0.6439228"...
0.0
-1
super.onPostExecute(aVoid); Dismissing the progress dialog
protected void onPostExecute(Void aVoid) { progressDialog.dismiss(); //Showing a success message Toast.makeText(context, R.string.toast_complete, Toast.LENGTH_SHORT).show(); act.finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t protected void onPostExecute(Void result)\n\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif (progressDialog != null)\n\t\t\t\t\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t }", "@Override\n\t\t\t protected void onPostExecute(Voi...
[ "0.9013991", "0.8991949", "0.8888326", "0.8635657", "0.86225647", "0.8573389", "0.8296732", "0.82932067", "0.8252248", "0.8070662", "0.80704546", "0.8068305", "0.80625325", "0.80037504", "0.79426396", "0.7912894", "0.7856545", "0.78306586", "0.77396446", "0.7716978", "0.76987...
0.78265345
18
/ 20140623 bind image buttons
private void initWidgets() { spots = new ImageButton[MAX_SPOTS]; for(int i=0; i<MAX_SPOTS; i++) { final int temp = i; spots[i] = (ImageButton) findViewById(R.id.stamp01 + i); spots[i].setOnClickListener(new OnClickListener() { public void onClick(View v) { toSpotActivity(temp); } }); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}", "public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\...
[ "0.6630655", "0.65333414", "0.6459373", "0.63440806", "0.6328019", "0.63263077", "0.6321902", "0.6313193", "0.6307008", "0.62958795", "0.6261942", "0.62591535", "0.6237073", "0.62236255", "0.62091064", "0.6178164", "0.61600447", "0.6158618", "0.61487377", "0.61387825", "0.611...
0.0
-1
/ 20140623 bind image buttons
private void toSpotActivity(int spotId) { Intent mIntent = new Intent(getApplicationContext(), SpotActivity.class); mIntent.putExtra("spot_number", spotId+1); mIntent.putExtra("user_info", user); startActivity(mIntent); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}", "public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\...
[ "0.6629938", "0.65322", "0.646014", "0.63444006", "0.6328613", "0.63269275", "0.63223714", "0.63134974", "0.63069636", "0.629743", "0.6262487", "0.6258696", "0.62377924", "0.62235504", "0.62092847", "0.6178559", "0.6160174", "0.61593574", "0.61490506", "0.61385494", "0.611570...
0.0
-1
/ 20140608 set image on imagebuttons
private void setImage() { for(int i=0; i<user.getIsVisited().length; i++) { if(user.getIsVisited()[i]) spots[i].setBackgroundResource(R.drawable.num1_certified + i*2); else spots[i].setBackgroundResource(R.drawable.num1 + i*2); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImage(ButtonBase button, String fileName) {\n String imagePath = FILE_PROTOCOL + PATH_IMAGES + fileName;\n Image buttonImage = new Image(imagePath);\n\t\n\t// SET THE IMAGE IN THE BUTTON\n button.setGraphic(new ImageView(buttonImage));\t\n }", "private void initImage() {\n ...
[ "0.7424208", "0.7244411", "0.7069812", "0.701345", "0.70031583", "0.6948565", "0.6827668", "0.6805442", "0.67924327", "0.6760761", "0.6738526", "0.6737455", "0.6737038", "0.6727595", "0.6698689", "0.66431016", "0.66364473", "0.6620832", "0.66096723", "0.6586125", "0.65634", ...
0.6251547
64
TODO Autogenerated method stub
@Override public String toString() { return BLACKLIST_FILE_PATH+"|"+API_KEY+"|"+KEY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method recursively gathers all the leaf nodes and unlinks them from its parent .
private void addLeaves(TreeNode node, TreeNode parent, int direction, List<Integer> list) { if (node == null) { return; } if (node.left == null && node.right == null) { list.add(node.val); if (parent != null) { if (direction == 0) { parent.left = null; } else { parent.ri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n\t\t\tfor (AbstractTreeNode node : children) {\n\t\t\t\tnode.setParent(null);\n\t\t\t}\n\t\t\t\n\t\t\t// clear children\n\t\t\tchildren.clear();\n\t\t}", "public void resetParents() {\r\n }", "public void unmemoize() {\n\t\tif (children != null) {\t\n\t\t\tfor (Item i : children) {\n\...
[ "0.6406098", "0.63658494", "0.63554925", "0.63519967", "0.6236392", "0.618329", "0.6156053", "0.61504406", "0.614496", "0.6139068", "0.6134023", "0.6056808", "0.6053066", "0.60475963", "0.6042995", "0.6023681", "0.6018002", "0.6011581", "0.60096216", "0.6000952", "0.59830755"...
0.0
-1
Create a new instance.
public IngredientMapSingleClassified(IngredientComponent<T, M> component, Supplier<IIngredientMapMutable<T, M, V>> mapCreator, IngredientComponentCategoryType<T, M, C> categoryType) { super(component); this.classifiedMaps ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "public Instance() {\n }", "private Instantiation(){}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "void create(T instance) throws IOException;", "Reproduc...
[ "0.7856344", "0.7297506", "0.7190777", "0.7127816", "0.70360863", "0.69051784", "0.6813679", "0.67574406", "0.6720743", "0.67055887", "0.66634166", "0.66509396", "0.66509396", "0.66497475", "0.6614444", "0.656769", "0.6566887", "0.652523", "0.6489371", "0.64792", "0.6469803",...
0.0
-1
Called when the activity is first created.
public void handleMessage(Message msg) { if (msg.what < 0) { MyOrder.getFlaovorFromSetting(); } else { MyOrder.saveFlavorToSetting(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
Gets the clssCd value for this ForeignPatentDocumentsInfo.
public java.lang.String getClssCd() { return clssCd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCntryCd()\n\t{\n\t\treturn mCntryCd;\n\t}", "public java.lang.Integer getCDS() {\n return CDS;\n }", "public String getPstlCd()\n\t{\n\t\treturn mPstlCd;\n\t}", "public StrColumn getJournalIdCSD() {\n return delegate.getColumn(\"journal_id_CSD\", DelegatingStrColumn::new);\n...
[ "0.63424164", "0.62994426", "0.61095667", "0.61089015", "0.607274", "0.60280764", "0.6020666", "0.6014168", "0.5990674", "0.59886336", "0.58788747", "0.58672214", "0.5764658", "0.57530224", "0.5751409", "0.5737978", "0.5686347", "0.564166", "0.5641056", "0.56344", "0.560066",...
0.769247
0
Sets the clssCd value for this ForeignPatentDocumentsInfo.
public void setClssCd(java.lang.String clssCd) { this.clssCd = clssCd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCntryCd(String cntryCd) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_CNTRY_CD, \n\t\t\tcntryCd, MAX_PARM_LEN_CNTRY_CD, EXC_CD_CNTRY_CD);\n\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_CNTRY_CD, \n\t\t\tcntryCd, MIN_PARM_LEN_CNTRY_CD, EXC_CD_CNTRY_CD);\n\n\t\tmCn...
[ "0.63679624", "0.62019765", "0.6022242", "0.5983753", "0.5954528", "0.58961", "0.5763031", "0.56344575", "0.55612516", "0.5540029", "0.552706", "0.5518517", "0.54199415", "0.53938246", "0.5365367", "0.5266897", "0.5229215", "0.5185715", "0.51844007", "0.5178327", "0.5169069",...
0.73108137
0
Gets the corgPatno value for this ForeignPatentDocumentsInfo.
public java.lang.String getCorgPatno() { return corgPatno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }", "public int getPatron_num()\n\t{\n\t\treturn cust_num;\n\t}", "public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\...
[ "0.6715053", "0.60719806", "0.6061763", "0.58910686", "0.5776796", "0.5724395", "0.5715282", "0.5646207", "0.5565844", "0.55559033", "0.55446523", "0.5404154", "0.53748065", "0.53436977", "0.5333202", "0.53293943", "0.5268547", "0.52268624", "0.5218624", "0.51890606", "0.5183...
0.80171114
0
Sets the corgPatno value for this ForeignPatentDocumentsInfo.
public void setCorgPatno(java.lang.String corgPatno) { this.corgPatno = corgPatno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCorgPatno() {\n return corgPatno;\n }", "public void setPatN(double v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setDoubleValue(addr, ((Probl...
[ "0.62114114", "0.55518717", "0.55194944", "0.5382347", "0.5064555", "0.5064437", "0.5026656", "0.49704927", "0.49567905", "0.48730063", "0.48477772", "0.47687557", "0.47550777", "0.46991798", "0.46954367", "0.46881738", "0.4684734", "0.46475217", "0.46324578", "0.46150413", "...
0.7690866
0
Gets the countryCode value for this ForeignPatentDocumentsInfo.
public java.lang.String getCountryCode() { return countryCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String countryCode() {\n return countryCode;\n }", "public int getCountryCode() {\r\n\t\treturn countryCode;\r\n\t}", "@Nonnull public CountryCode getCountry() { return country; }", "public int getCountryCallingCode() {\n return countryCallingCode;\n }", "public String getCountry...
[ "0.6989021", "0.6942704", "0.69130826", "0.68158054", "0.68147904", "0.6756273", "0.67328465", "0.6732836", "0.6715479", "0.6712454", "0.6712454", "0.6641006", "0.66312146", "0.65908694", "0.6574836", "0.6564465", "0.6564465", "0.6564465", "0.65640455", "0.65268224", "0.65163...
0.67657197
5
Sets the countryCode value for this ForeignPatentDocumentsInfo.
public void setCountryCode(java.lang.String countryCode) { this.countryCode = countryCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setcountryCode(String countryCode) {\n this.countryCode = countryCode;\n }", "public void setCountryCode(String countryCode)\r\n\t{\r\n\t\tthis.countryCode = countryCode;\r\n\t}", "public void setCountryCode(String countryCode) {\r\n\t\t\tthis.countryCode = countryCode;\r\n\t\t}", "publ...
[ "0.70408005", "0.7032269", "0.70274603", "0.700668", "0.6923707", "0.68581975", "0.6626316", "0.632678", "0.6317132", "0.6317132", "0.6317132", "0.62617487", "0.62617487", "0.62612927", "0.62494254", "0.62494254", "0.6249011", "0.6249011", "0.6249011", "0.6249011", "0.6249011...
0.703653
1
Gets the exam value for this ForeignPatentDocumentsInfo.
public java.lang.String getExam() { return exam; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getExamId() {\r\n\t\treturn examId;\r\n\t}", "public double getFinalExam()\n\t{\n\t\treturn this.finalExam;\n\t}", "public double getMidtermExam()\n\t{\n\t\treturn this.midtermExam;\n\t}", "public ArrayList<QuestionInExam> getQuestionInExam() {\r\n\t\treturn questionInExam;\r\n\t}", "public i...
[ "0.64101636", "0.6202183", "0.6178206", "0.5921542", "0.56992745", "0.54520524", "0.54496723", "0.5424556", "0.53012085", "0.5266529", "0.52378976", "0.52312165", "0.5223136", "0.5210284", "0.51741505", "0.5156548", "0.51483655", "0.51209575", "0.5098683", "0.5077798", "0.507...
0.7014463
0
Sets the exam value for this ForeignPatentDocumentsInfo.
public void setExam(java.lang.String exam) { this.exam = exam; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getExamId() {\r\n\t\treturn examId;\r\n\t}", "@Override\n\tpublic void updateExam(ExamBean exam) {\n\t\t\n\t}", "public void setExamDate(String examDate) {\n this.examDate = examDate;\r\n }", "public void setExamDate(String examDate) {\n this.examDate = examDate;\r\n }", "publ...
[ "0.54904526", "0.5455845", "0.5436066", "0.5436066", "0.5415938", "0.52204466", "0.519841", "0.5043969", "0.49403206", "0.4861317", "0.48221475", "0.48046055", "0.48046055", "0.47674075", "0.47555378", "0.4717717", "0.46413496", "0.46380356", "0.46287313", "0.46017975", "0.45...
0.660563
0
Gets the patDt value for this ForeignPatentDocumentsInfo.
public java.lang.String getPatDt() { return patDt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPatDt(java.lang.String patDt) {\n this.patDt = patDt;\n }", "public java.lang.String getPatTpcd() {\n return patTpcd;\n }", "public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n ...
[ "0.6752409", "0.60726565", "0.58976144", "0.5721018", "0.55477107", "0.5498952", "0.5262204", "0.52287346", "0.5210878", "0.5159472", "0.51270664", "0.51270664", "0.499013", "0.49753326", "0.49716842", "0.4955453", "0.49519286", "0.49415904", "0.49375668", "0.49311137", "0.49...
0.7960571
0
Sets the patDt value for this ForeignPatentDocumentsInfo.
public void setPatDt(java.lang.String patDt) { this.patDt = patDt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getPatDt() {\n return patDt;\n }", "public void setPatTpcd(java.lang.String patTpcd) {\n this.patTpcd = patTpcd;\n }", "public void setPatent(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent patent)\r\n {\r\n synchronized (monitor())\r\n {...
[ "0.6400707", "0.57135826", "0.54643375", "0.50529623", "0.50361186", "0.4904412", "0.48808324", "0.48773435", "0.48709342", "0.48709342", "0.47961938", "0.47756672", "0.47657275", "0.4719163", "0.46705535", "0.46702012", "0.4648926", "0.46463415", "0.46360108", "0.460825", "0...
0.7788433
0
Gets the patTpcd value for this ForeignPatentDocumentsInfo.
public java.lang.String getPatTpcd() { return patTpcd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}", "public java.lang.String getPatDt() {...
[ "0.6323682", "0.6213506", "0.6202927", "0.6192151", "0.6164226", "0.5825717", "0.56282955", "0.5618403", "0.55099815", "0.53370863", "0.52565557", "0.5242558", "0.5242558", "0.5231468", "0.52197385", "0.51970214", "0.51499134", "0.51499134", "0.5141524", "0.5132747", "0.51165...
0.7632657
0
Sets the patTpcd value for this ForeignPatentDocumentsInfo.
public void setPatTpcd(java.lang.String patTpcd) { this.patTpcd = patTpcd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPatDt(java.lang.String patDt) {\n this.patDt = patDt;\n }", "public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }", "public void setPatN(double v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jc...
[ "0.58925337", "0.5635852", "0.56195974", "0.55032265", "0.5487723", "0.5246877", "0.51796657", "0.50330615", "0.49844104", "0.4977298", "0.49711743", "0.481466", "0.47825968", "0.4755378", "0.47219083", "0.4715421", "0.47006273", "0.4684803", "0.46695894", "0.46677276", "0.46...
0.73885834
0
Return type metadata object
public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MetadataType getType();", "public MetadataType getType() {\n return type;\n }", "public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }", "private Metadata getMetadata(RubyModule type)...
[ "0.7969707", "0.7373198", "0.7358018", "0.7090138", "0.67353225", "0.67259765", "0.66725683", "0.65644145", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223", "0.6543223",...
0.0
-1
Initialize the DeepWalk model with a given graph.
public void initialize(IGraph<V, E> graph) { int nVertices = graph.numVertices(); int[] degrees = new int[nVertices]; for (int i = 0; i < nVertices; i++) degrees[i] = graph.getVertexDegree(i); initialize(degrees); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeFromGraph(Graph<HyperNode, DefaultEdge> graph) {\n Map<HyperNode, Node> nodesMap = addNodes(graph);\n addEdges(graph, nodesMap);\n }", "public Graph() {\r\n\t\tinit();\r\n\t}", "public CycleDetector(Graph<V, E> graph)\n {\n this.graph = GraphTests.requireDirect...
[ "0.6611742", "0.62020046", "0.61904454", "0.59934175", "0.5931497", "0.5913265", "0.589355", "0.5713806", "0.56949234", "0.5626837", "0.56157047", "0.5594604", "0.55901295", "0.5573625", "0.556309", "0.5513538", "0.54978234", "0.5473571", "0.5459021", "0.5457998", "0.54430234...
0.58548033
7
Initialize the DeepWalk model with a list of vertex degrees for a graph. Specifically, graphVertexDegrees[i] represents the vertex degree of the ith vertex vertex degrees are used to construct a binary (Huffman) tree, which is in turn used in the hierarchical softmax implementation
public void initialize(int[] graphVertexDegrees) { log.info("Initializing: Creating Huffman tree and lookup table..."); GraphHuffman gh = new GraphHuffman(graphVertexDegrees.length); gh.buildTree(graphVertexDegrees); lookupTable = new InMemoryGraphLookupTable(graphVertexDegrees.length, v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialize(IGraph<V, E> graph) {\n int nVertices = graph.numVertices();\n int[] degrees = new int[nVertices];\n for (int i = 0; i < nVertices; i++)\n degrees[i] = graph.getVertexDegree(i);\n initialize(degrees);\n }", "Graph(int vertices) {\r\n thi...
[ "0.67277694", "0.66773593", "0.6284042", "0.6263226", "0.61863524", "0.61203676", "0.61108404", "0.6103681", "0.6059719", "0.603233", "0.5989259", "0.5831848", "0.5807011", "0.5806367", "0.57783616", "0.57676965", "0.5762898", "0.5727765", "0.5720529", "0.5695788", "0.5676316...
0.71511143
0
Fit the model, in parallel. This creates a set of GraphWalkIterators, which are then distributed one to each thread
public void fit(IGraph<V, E> graph, int walkLength) { if (!initCalled) initialize(graph); //First: create iterators, one for each thread GraphWalkIteratorProvider<V> iteratorProvider = new RandomWalkGraphIteratorProvider<>(graph, walkLength, seed, NoEdgeHandl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void train() {\n\n\t\tint D = Os.length;\n\t\tint T_n = 0;\n\t\tdouble log_likelihood = 0;\n\t\tdouble log_likelihood_new = 0;\n\t\tdouble epsilon = this.epsilon;\n\t\tint maxIter = this.maxIter;\n\n\t\t// Initialization\n\n\t\tclearVector(pi);\n\t\tclearMatrix(A);\n\t\tclearMatrix(B);\n\n\t\tdouble[] a = a...
[ "0.5641514", "0.5481175", "0.54663754", "0.5457849", "0.5411043", "0.5402574", "0.54012585", "0.536539", "0.5339618", "0.5182087", "0.5130238", "0.5109051", "0.5078253", "0.49839413", "0.49754038", "0.49553093", "0.49398223", "0.49069047", "0.48930633", "0.48920533", "0.48772...
0.6211679
0
Sets the size of the vectors to be learned for each vertex in the graph
public Builder<V, E> vectorSize(int vectorSize) { this.vectorSize = vectorSize; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setListOfEdges(int numberOfVertex) {\n this.edges = new LinkedList[numberOfVertex];\n }", "Graph(int size) {\n n = size;\n V = new Vertex[size + 1];\n // create an array of Vertex objects\n for (int i = 1; i <= size; i++)\n V[i] = ...
[ "0.6160974", "0.60962254", "0.6084682", "0.60269874", "0.602434", "0.6015667", "0.59932566", "0.5963881", "0.59520024", "0.57961863", "0.5763425", "0.5760983", "0.5738869", "0.5725096", "0.5716402", "0.5693714", "0.5626739", "0.56109023", "0.56061065", "0.5605443", "0.5590395...
0.0
-1
Set the learning rate
public Builder<V, E> learningRate(double learningRate) { this.learningRate = learningRate; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLearningRate(double rate);", "public void setLearningRate(double learningRate) {\r\n\t\tthis.learningRate = learningRate;\r\n\t}", "public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }", "public void setLearningRate(...
[ "0.92112005", "0.8306426", "0.8220671", "0.81789356", "0.7853932", "0.74685335", "0.7103334", "0.69186944", "0.68937176", "0.68867725", "0.67090815", "0.6524281", "0.65082157", "0.6460435", "0.64577776", "0.64562523", "0.635383", "0.6353279", "0.6186727", "0.6153394", "0.6136...
0.72072434
6
Sets the window size used in skipgram model
public Builder<V, E> windowSize(int windowSize) { this.windowSize = windowSize; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWindowSize(int window_size) {\n this.window_size = window_size;\n }", "public Builder setWindowSize(long value) {\n \n windowSize_ = value;\n onChanged();\n return this;\n }", "void setWindowSize(int s);", "@Override\n public Builder windowSize(int windowSize)...
[ "0.7275943", "0.71371067", "0.69560164", "0.6857788", "0.65814316", "0.60940146", "0.5924725", "0.5819913", "0.58067715", "0.5801937", "0.57902294", "0.5780921", "0.5746548", "0.57013667", "0.5688253", "0.56745183", "0.56443036", "0.5557457", "0.5549922", "0.5502741", "0.5493...
0.7058043
2
Seed for random number generation (used for repeatability). Note however that parallel/async gradient descent might result in behaviour that is not repeatable, in spite of setting seed
public Builder<V, E> seed(long seed) { this.seed = seed; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void seed(long seed) {\n }", "public void setRNG(long seed);", "void setSeed(long seed);", "void setSeed(final long seed);", "public WB_RandomPoint setSeed(final long seed);", "public GridSimRandom(long seed) {\n random_.setSeed(seed);\n }", "public long getSeed()\n {\n re...
[ "0.795328", "0.7844645", "0.779218", "0.77165896", "0.7483983", "0.7473918", "0.746586", "0.7427965", "0.7417246", "0.7365251", "0.7357678", "0.7321267", "0.7308918", "0.72441006", "0.7224451", "0.71964127", "0.71816796", "0.71702874", "0.71353734", "0.71350706", "0.7081524",...
0.66441655
38
The server service account name for secure name checking.
public AltsChannelBuilder withSecureNamingTarget(String targetName) { handshakerOptionsBuilder.setTargetName(targetName); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServername() {\r\n return servername;\r\n }", "java.lang.String getServiceAccount();", "public String getServiceAccountName() {\n return serviceAccountName;\n }", "public static server getNameServer(){\n return nameServer;\n }", "public String getName() {\n\t\t\n\t\...
[ "0.6786219", "0.67483515", "0.6715267", "0.64450234", "0.6337309", "0.627734", "0.61467624", "0.608645", "0.60459137", "0.60427344", "0.5979942", "0.59722185", "0.59411293", "0.5887421", "0.5887421", "0.58824164", "0.58822715", "0.58822715", "0.5876008", "0.5864725", "0.58634...
0.0
-1
Adds an expected target service accounts. One of the added service accounts should match peer service account in the handshaker result. Otherwise, the handshake fails.
public AltsChannelBuilder addTargetServiceAccount(String targetServiceAccount) { handshakerOptionsBuilder.addTargetServiceAccount(targetServiceAccount); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void disallowVendingServiceTicketsWhenServiceIsNotAllowedToProxy_CAS1019() throws TicketException {\n CentralAuthenticationServiceImpl cas = new CentralAuthenticationServiceImpl();\n\n //Mock ST\n ServiceTicket stMock = mock(ServiceTicket.class);\n when(stMock.getId())...
[ "0.5029415", "0.50146616", "0.48018807", "0.477863", "0.4678518", "0.46698028", "0.46679464", "0.46370038", "0.462919", "0.46190503", "0.45996964", "0.45833933", "0.4556603", "0.44531196", "0.44484836", "0.44297636", "0.4419287", "0.44028008", "0.44025272", "0.4400826", "0.43...
0.58673704
0
Enables untrusted ALTS for testing. If this function is called, we will not check whether ALTS is running on Google Cloud Platform.
public AltsChannelBuilder enableUntrustedAltsForTesting() { enableUntrustedAlts = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enableSecurity();", "@Test\n public void trackingEnabled_updateAppNotPrivileged() throws Exception {\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureUpdateAppPackageNotPrivileged(UPDATE_APP_PACKAGE_NAME);\n configureDataAppPackageOk(DATA_APP_...
[ "0.5931626", "0.5649105", "0.56117195", "0.5543965", "0.5535136", "0.5501917", "0.5482683", "0.54315764", "0.54095924", "0.53808683", "0.5333475", "0.5323681", "0.53093505", "0.5288567", "0.52526313", "0.52162796", "0.5208583", "0.5206204", "0.51936674", "0.5186574", "0.5166"...
0.72133255
0
Sets a new handshaker service address for testing.
public AltsChannelBuilder setHandshakerAddressForTesting(String handshakerAddress) { HandshakerServiceChannel.setHandshakerAddressForTesting(handshakerAddress); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddress(String address) {\n try {\n if (address == null ||\n address.equals(\"\") ||\n address.equals(\"localhost\")) {\n m_Address = InetAddress.getLocalHost().getHostName();\n }\n } catch (Exception ex) {\n log.error(\"setAddress()\",ex);\n }\n m_Add...
[ "0.61326176", "0.58593976", "0.5837173", "0.57967895", "0.57967895", "0.57967895", "0.57967895", "0.5760651", "0.5756953", "0.57039714", "0.5699651", "0.56793267", "0.56564665", "0.5651146", "0.56358856", "0.5593841", "0.5566378", "0.55657685", "0.55657595", "0.5551518", "0.5...
0.71588063
0
Used the shared grpc channel to connecting to the ALTS handshaker service.
@Override public TsiHandshaker newHandshaker() { ManagedChannel channel = HandshakerServiceChannel.get(); return AltsTsiHandshaker.newClient( HandshakerServiceGrpc.newStub(channel), handshakerOptions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to s...
[ "0.578669", "0.5729698", "0.5695198", "0.5691567", "0.5610262", "0.55960214", "0.5593804", "0.5546561", "0.551364", "0.5493506", "0.54663825", "0.54573154", "0.5451318", "0.54483575", "0.5446184", "0.5433207", "0.53862494", "0.5346873", "0.53305477", "0.52987903", "0.5293167"...
0.6439071
0
initialize the schedule according to user input.
public static Schedule initializeSchedule(String[] args) { if (args.length == 5) { // Level 3 RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), Double.parseDouble(args[3]), Double.parseDouble(args[4]), 0); return new Schedule(r, args[1], args[2], "1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Schedule() {\r\n }", "Schedule createSchedule();", "protected abstract void scheduler_init();", "public void generateSchedule(){\n\t\t\n\t}", "public Schedule() {\n this(DataManager.readAll());\n }", "MMSchedul...
[ "0.7308564", "0.70097196", "0.69869334", "0.69075716", "0.6902043", "0.68497956", "0.6759347", "0.6684134", "0.6649595", "0.6627103", "0.6582381", "0.6570549", "0.6483617", "0.6339641", "0.63240016", "0.62881756", "0.62826747", "0.62372017", "0.62370783", "0.6209927", "0.6208...
0.7408909
0
get the numbers of Servers.
public int getNumOfServers() { return numOfServers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer serverCount() {\n return this.serverCount;\n }", "List<Long> getServers();", "int getServerSocketCount();", "long getTotalServerSocketsCount();", "public int[] availableServers() throws RemoteException {\n\t\t\tint i = 0;\n\n\t\t\t// convert to primitives array\n\t\t\tint[] result ...
[ "0.722001", "0.70747745", "0.6945995", "0.69269425", "0.6890953", "0.68158567", "0.67553353", "0.65355724", "0.65355724", "0.653196", "0.6531319", "0.6531319", "0.64753675", "0.64095706", "0.63839316", "0.63608575", "0.6357092", "0.6328256", "0.6262943", "0.6213963", "0.62076...
0.7595607
0
get the list of arrivalTime of all Customers.
public List<Double> getArrivalTime() { return new ArrayList<Double>(arrivalTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"recipient1@example.com\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"recipient2@example.com\", \"Red\"));\n custo...
[ "0.60799134", "0.6074362", "0.6045777", "0.5996477", "0.59769833", "0.5948724", "0.5911953", "0.5886326", "0.5830812", "0.5777371", "0.57719344", "0.57402474", "0.5714481", "0.57068515", "0.569508", "0.5693303", "0.5691488", "0.56688803", "0.5653111", "0.5631199", "0.56200296...
0.6492644
0
get the numbers of Customers.
public int getNumOfCustomers() { return this.numOfCustomers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}", "public int getTotalCustomers()\n {\n return totalCustomers;\n }", "int getCustomersCount();", "private int getNumberOfCustomers(){\n FileServices fs = new FileServices();\n return fs.loadCustomers().size();\n ...
[ "0.79372156", "0.7554831", "0.74755937", "0.71072733", "0.7057155", "0.68688786", "0.6785469", "0.65848166", "0.65546465", "0.64361227", "0.63999707", "0.633985", "0.63340145", "0.626761", "0.62467486", "0.62455773", "0.62306315", "0.6195631", "0.6169654", "0.6167395", "0.614...
0.7779376
1
get the list of all Servers.
public List<Server> getServerList() { return new ArrayList<Server>(serversList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}", "List<Server> servers() {\n return servers;\n }", "public ArrayList<Server> getServers(){\n return this.serversList;\n }", "public static List<S...
[ "0.84058523", "0.7709752", "0.76229703", "0.7595031", "0.75143313", "0.7465655", "0.7408925", "0.7063343", "0.7027366", "0.6919082", "0.69047725", "0.68936396", "0.6884487", "0.6865052", "0.67006654", "0.6559255", "0.6422148", "0.64094436", "0.64088744", "0.6388468", "0.62909...
0.7792887
1
get the list of all Customers.
public List<Customer> getCustomerList() { return new ArrayList<Customer>(customersList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }", "@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}", "public List<Customer> getAllCustomers(...
[ "0.8282205", "0.82787013", "0.8222158", "0.82009494", "0.8150222", "0.8123829", "0.8109223", "0.8054548", "0.804313", "0.80082214", "0.80054015", "0.8001435", "0.79755896", "0.7925657", "0.787143", "0.7860948", "0.7842967", "0.78426546", "0.7839991", "0.7831882", "0.782855", ...
0.7781723
26
get all Event which store in PriorityQueue.
public PriorityQueue<Event> getEventList() { return new PriorityQueue<Event>(eventsList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FutureEventList() {\n q = new PriorityQueue<Event>(10, new EventComperator());\n }", "public List<PluginStatsEvent> getPastEvents() {\n\t\tsynchronized (queue) {\n\t\t\tPluginStatsEvent[] info = new PluginStatsEvent[queue.size()];\n\t\t\tList<PluginStatsEvent> returnList = new ArrayList<PluginS...
[ "0.72027916", "0.6858224", "0.6759652", "0.6708047", "0.66916996", "0.6513658", "0.6445789", "0.6308408", "0.62963855", "0.6194814", "0.6170998", "0.6109236", "0.6078633", "0.60493463", "0.6014169", "0.6002101", "0.59813356", "0.5965869", "0.59372133", "0.5903182", "0.5848293...
0.7484807
0
get the list of Statistics.
public List<Number> getStatistics() { return statistics; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "public List<StatsObject> getData() {\n\t\tList<StatsObject> stats = new ArrayList<StatsObject>(data.values());\n\t\treturn stats;\n\n\t}", "Map<String, Object> getStats();", "private NodeList getStats() {\n\t\treturn mDom.getEleme...
[ "0.7813603", "0.7424903", "0.7104123", "0.7063862", "0.6875005", "0.67972434", "0.6712487", "0.6701618", "0.6688368", "0.66820234", "0.6681047", "0.6677911", "0.6672333", "0.6658785", "0.6639718", "0.6612874", "0.65699404", "0.6564796", "0.65584636", "0.65333545", "0.6487874"...
0.8057388
0
calculate the Statistics base on all the events.
private List<Number> setStatistics() { // the total waiting time for customers who have been served double totalWatingTime = 0; // the average waiting time for customers who have been served double aveWaitingTime = 0; // the number of customers served int numOfCusServed =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void analyzeEventsQueriesAmounts() throws SQLException\r\n\t{\r\n\t\tStatement stat = conn.createStatement();\r\n \r\n ResultSet result = stat.executeQuery(\"SELECT * FROM fraud.afm_fraudeventrecord;\");\r\n \r\n while (result.next())\r\n {\r\n \tString event...
[ "0.65146035", "0.6471603", "0.6219734", "0.61700976", "0.6165612", "0.61262417", "0.58838785", "0.58816177", "0.5876166", "0.58584666", "0.58558965", "0.58398086", "0.5839254", "0.58170164", "0.5766224", "0.5709724", "0.56879294", "0.56600976", "0.56371814", "0.5633978", "0.5...
0.64242446
2
print the Event list.
public void printEeventList() { PriorityQueue<Event> events = this.getEventList(); while (!events.isEmpty()) { Event event = events.poll(); if (!(event instanceof ServerRestEvent || event instanceof ServerBackEvent)) { System.out.println(event); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listEvents() {\n System.out.println(\"\\nEvents:\");\n for (Event event: world.getEvents()) {\n String name = event.getName();\n String coords = \" with x = \" + event.getX() + \" light seconds and t = \" + event.getTime() + \" seconds \";\n String frame ...
[ "0.79438394", "0.75927395", "0.75567144", "0.74123394", "0.7407943", "0.7316897", "0.70215714", "0.6780932", "0.6627816", "0.65700454", "0.6542213", "0.65208375", "0.6518501", "0.64985967", "0.64534587", "0.6387776", "0.6332113", "0.6291715", "0.6281812", "0.6277143", "0.6220...
0.8278437
0
Setup test data in the database to a known state BEFORE Each test
@Before public void setUp() { EntityManager em = emf.createEntityManager(); try { em.getTransaction().begin(); //Delete all, since some future test cases might add/change data em.createQuery("delete from Customer").executeUpdate(); //Add our test data ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void prepare() {\n MetaStore metadb = prepareTestDB();\n testObj = new SdbSchemeRewriter(metadb.getAllDBs().get(0));\n }", "@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}", "public void setUp() {\n super.setUp();\n dbSessionClearCache();\n ...
[ "0.7517172", "0.73715466", "0.7370631", "0.7259718", "0.72262263", "0.71223885", "0.7121977", "0.7059249", "0.7049678", "0.7039898", "0.70343584", "0.69906384", "0.6979671", "0.69550985", "0.6933925", "0.6933925", "0.6932292", "0.6931297", "0.683753", "0.6814018", "0.6803767"...
0.6840741
18
Test the single method in the Facade
@Test public void testAddCustomer() { EntityManager em = emf.createEntityManager(); try { facade.addCustomer(new Customer("Helle", "Andersen")); long count = em.createQuery("select c from Customer c").getResultList().size(); Assert.assertEquals(4, count); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mock(){\n\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public TestModelFacade3(Method method) {\n super(method.toString());\n methodToTest = method;\n }", "@Override\n public void test() {\n \n }", "public void testMock(){\n\t}", "@Test\n ...
[ "0.6688192", "0.6406599", "0.63386667", "0.6277481", "0.6260267", "0.6225677", "0.613941", "0.6122496", "0.6110153", "0.61061656", "0.6091481", "0.6070066", "0.6065698", "0.60591716", "0.6045501", "0.60384256", "0.6032527", "0.60197294", "0.60165346", "0.6006904", "0.5999706"...
0.0
-1
public boolean sent = false;
public BinaryPulseNeuralFunction() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSent(){\t\n\t\treturn sent;\n\t}", "boolean isSending();", "public boolean SendingMessage() {\n \t\t\treturn false;\n \t\t}", "public void setMsg(boolean status){\r\n\t\tthis.send = status;\r\n\t}", "boolean isTransmitting();", "boolean isReceiving();", "public Boolean getSendType() {\...
[ "0.83585304", "0.76660967", "0.73361397", "0.73071563", "0.70941305", "0.70334345", "0.68588704", "0.6745314", "0.6703877", "0.662636", "0.65876174", "0.6568882", "0.6550837", "0.6513661", "0.64644843", "0.64644843", "0.64644843", "0.64644843", "0.64644843", "0.64644843", "0....
0.0
-1
Blank constructor for bean use.
public KeyedEntry() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bean() {\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public SampleBean() {\n }", "public PersonBean() {\n\t}", "public CampingBean() {\n }", "public PapelBean() {\n }", "public ClasseBean() {\r\n }", "public Classe...
[ "0.79397076", "0.7754841", "0.76610464", "0.76541406", "0.7641091", "0.76382774", "0.7441441", "0.7441441", "0.7436374", "0.7430423", "0.7426385", "0.7318565", "0.7318565", "0.7270592", "0.72395474", "0.72173965", "0.71891177", "0.7171146", "0.7162276", "0.7161804", "0.714930...
0.0
-1
Construct a new entry with the given label key.
public KeyedEntry(String label) { this.label = label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setLabel(String key, String value) {\n data.add(key);\n data.add(value);\n return this;\n }", "public LabelField addLabelField(final String key) {\n String label = key;\n LabelField labelField = new LabelField(getComposite(), _form, key, label, false);\n labelField.adapt...
[ "0.652529", "0.63683665", "0.60298", "0.59356534", "0.589914", "0.58956224", "0.581517", "0.5700036", "0.56895703", "0.56756246", "0.56729597", "0.5638037", "0.5629376", "0.5627536", "0.5627536", "0.5623933", "0.5623933", "0.5566751", "0.55590284", "0.55337435", "0.5530675", ...
0.7284244
0
Add an argument for substitution into the message string indicated by the label.
public void addArg(Object arg) { if (args == null) { args = new ArrayList(); } args.add(arg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String addLabel(String label);", "public abstract Code addLabel(String label);", "public abstract void addLabel(String str);", "void addLabel(Object newLabel);", "void addLabel(Object newLabel);", "@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}", "void setLabel(String label);", "@Overrid...
[ "0.6752967", "0.6350482", "0.6241098", "0.6169121", "0.6169121", "0.5985301", "0.5875031", "0.58390766", "0.5831104", "0.5800582", "0.57860327", "0.57193846", "0.57111025", "0.5660232", "0.5657974", "0.56576586", "0.5635667", "0.56011844", "0.5590648", "0.55898994", "0.555671...
0.0
-1
TODO: Warning this method won't work in the case the companyId fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof CompanyEntity)) { return false; } CompanyEntity other = (CompanyEntity) object; if ((this.companyId == null && other.companyId != null) || (this.companyId != null && !this.companyId.equals(other.comp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(Long companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(Integer company...
[ "0.76796913", "0.76012295", "0.7570221", "0.75508296", "0.75508296", "0.7490853", "0.7490853", "0.7409598", "0.7392748", "0.7392748", "0.73895293", "0.73708385", "0.7357233", "0.7357233", "0.7357233", "0.7357233", "0.7357233", "0.7312342", "0.7312342", "0.7307215", "0.7300452...
0.61992013
97
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootView = inflater.inflate(R.layout.fragment_product_rating_review_list, container, false); setHasOptionsMenu(true); ((AppCompatActivity)getActivity())....
{ "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
Hide Cart Icon in the Toolbar
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { MenuItem languageItem = menu.findItem(R.id.toolbar_ic_language); MenuItem currencyItem = menu.findItem(R.id.toolbar_ic_currency); MenuItem profileItem = menu.findItem(R.id.toolbar_edit_profile); MenuItem se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void HideToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e( \"HideToolBar\");\r\n\t}", "@Override\r\n public int getToolbarIconResId(){\r\n return android.R.drawable.ic_menu_close_clear_cancel;\r\n }", "@Override\r\n\tpublic void HideToolBar(Context _in_context) {\n\t\tType...
[ "0.6479229", "0.64076054", "0.6388483", "0.63374484", "0.632182", "0.6296482", "0.6275442", "0.6052939", "0.5969444", "0.5875096", "0.5836668", "0.58102745", "0.57822925", "0.57155585", "0.5660044", "0.5641309", "0.5633724", "0.560622", "0.5543107", "0.5522792", "0.5512692", ...
0.5363835
40
Created by raya on 6/30/17.
public interface UserRepository extends CrudRepository<User, Integer> { User findByUsername(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Ov...
[ "0.5855348", "0.57938164", "0.57899594", "0.570794", "0.56489956", "0.56392986", "0.56379527", "0.5620995", "0.5615823", "0.5615823", "0.56087106", "0.5569765", "0.5554207", "0.5554207", "0.5554207", "0.5554207", "0.5554207", "0.5543604", "0.55413854", "0.5520915", "0.5519221...
0.0
-1
pq: keep add the least stick
public int connectSticks(int[] sticks) { PriorityQueue<Integer> minHeap = new PriorityQueue<>(); for(int i: sticks){ minHeap.offer(i); } int res = 0; while(minHeap.size() > 1){ int cur = (int)minHeap.poll()+(int)minHeap.poll(); res += cur; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteMin();", "public abstract int deleteMin();", "k value.\nFor 2nd tallest group (and the rest), insert each one of them into (S) by k value. So on and so forth.\n\npublic class Solution {\n public int[][] reconstructQueue(int[][] people) {\n Arrays.sort(people,new Comparator<int[]>() ...
[ "0.58836347", "0.5775732", "0.56594956", "0.5619164", "0.5608078", "0.5583587", "0.55333966", "0.5517948", "0.5513556", "0.54430175", "0.54078734", "0.5388274", "0.5316935", "0.531455", "0.53112406", "0.53069824", "0.5279192", "0.52735114", "0.52558225", "0.5251405", "0.52488...
0.0
-1
Creates new form main
public mainmen() { try { this.setContentPane(new javax.swing.JLabel(new javax.swing.ImageIcon(getClass().getResource("/splash-bg.jpg")))); initComponents(); RobotoText = Font.createFont(Font.TRUETYPE_FONT, getClass().getResource("/Roboto/Roboto-Regular.ttf").openStream()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public MainForm() {\n initComponents();\n \n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "private FrmMainForm() {\n }", "public st...
[ "0.7554059", "0.73695004", "0.716449", "0.716449", "0.716449", "0.7137802", "0.6943197", "0.69002086", "0.68223894", "0.67711145", "0.6742878", "0.67203844", "0.6637302", "0.6628593", "0.6601603", "0.6600567", "0.6600567", "0.65519327", "0.65442747", "0.6534419", "0.6533982",...
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. //GENBEGIN:initComponents
private void initComponents() { pnlHeader = new javax.swing.JPanel(); lblCompanyName = new javax.swing.JLabel(); pnlMainButtons = new javax.swing.JPanel(); pnlPreLog = new javax.swing.JPanel(); btnSignUp = new javax.swing.JButton(); btnLogIn = new javax.swing.JButton(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public Form() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public GUIForm() { \...
[ "0.73914087", "0.73914087", "0.73914087", "0.7351462", "0.73308134", "0.732969", "0.7294673", "0.72652155", "0.7224294", "0.721449", "0.7157649", "0.7154444", "0.71494794", "0.7140369", "0.7135683", "0.71330816", "0.7120591", "0.7118868", "0.7112717", "0.7110416", "0.7088331"...
0.0
-1
Create the Ontology List object
public OntologyListView(Collection<Ontology> collection, JComponent parentComponent) { super(collection,parentComponent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass>...
[ "0.61522436", "0.59612334", "0.58918345", "0.5871209", "0.5865107", "0.58354414", "0.57844454", "0.57797855", "0.5773135", "0.5752281", "0.5742887", "0.572051", "0.5654224", "0.56528693", "0.56357545", "0.5626339", "0.56003875", "0.55856746", "0.5562658", "0.55590284", "0.555...
0.51967573
52
time.pid.host here we use use iNotes date + iNotes unid
protected String getMailFileName(MessageMetaData message) { return "" + message.date.getTime() + '-' + message.unid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public String getTimeVariable(){ return common.timeDatapath; }", "public String getTimeid() {\n return timeid;\n }", "public String getTimestamp() \n{\n Calendar now = Calen...
[ "0.5838069", "0.5777318", "0.5698688", "0.56982905", "0.5604099", "0.5530858", "0.5503497", "0.5477069", "0.5465076", "0.5449133", "0.5424866", "0.5414375", "0.54120994", "0.5384795", "0.53711224", "0.5340757", "0.5325386", "0.53231704", "0.5314341", "0.53085965", "0.53009284...
0.0
-1
from class: androidx.recyclerview.widget.GapWorker.1 / JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] / JADX WARNING: Code restructure failed: missing block: B:12:0x0017, code lost: if (r5 == null) goto L_0x0019; / JADX WARNING: Code restructure faile...
@Override // java.util.Comparator /* Code decompiled incorrectly, please refer to instructions dump. */ public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) { /* r5 = this; androidx.recyclerview.wid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12704a(androidx.recyclerview.widget.RecyclerView.C1085v r23, int r24) {\n /*\n r22 = this;\n r11 = r22\n r12 = r23\n r13 = r24\n androidx.recyclerview.widget.RecyclerView$v r0 = r11.f13664c\n if (r12 != r0) goto L_0x000f\n ...
[ "0.7309851", "0.72624356", "0.709162", "0.6564546", "0.6366607", "0.6194612", "0.6104888", "0.61014485", "0.605622", "0.60460967", "0.60378325", "0.6010487", "0.599866", "0.59520686", "0.59497035", "0.5900341", "0.5896499", "0.5893731", "0.58932555", "0.58878976", "0.5824675"...
0.68794584
3
return true if border left border
protected boolean isBorder(int x, int y){ if(super.getLocationX() == x) return true; //top border if (super.getLocationY() == y) return true; //right border if((super.getLocationX() + super.getWidth() - 1) == x) return true; //bottom ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getBorderVisible() {\n checkWidget();\n return borderLeft == 1;\n }", "@Test\n public void testIsLeft() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"LEFT\") || border.toString().contains(\"ALL\")) {\n Assert.asse...
[ "0.7739835", "0.762752", "0.7322745", "0.69876766", "0.6780817", "0.6754038", "0.6620488", "0.6552686", "0.652473", "0.6455028", "0.64260256", "0.63826996", "0.63600487", "0.6290656", "0.6287215", "0.62861", "0.62689036", "0.6247225", "0.62384397", "0.6227866", "0.6214456", ...
0.6356582
13
return false if outside bounds
protected boolean isInside(int x, int y){ if(x <= super.getLocationX()) return false; if(x >= (super.getLocationX() + super.getWidth() - 1)) return false; if(y <= super.getLocationY()) return false; if(y >= (super.getLocationY() + super.getHeight() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head....
[ "0.7941812", "0.7768419", "0.7747905", "0.7745556", "0.7627308", "0.7591391", "0.7566876", "0.7437833", "0.74342835", "0.7407642", "0.7358169", "0.72749114", "0.72644055", "0.7244863", "0.7122768", "0.7100758", "0.70978034", "0.70915955", "0.7090985", "0.70799536", "0.7071888...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public String strreplace(String str, char oldchar, char newchar) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String strreplace(String str, String oldstr, String newstr) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String strreplace(String str, int start, int end, String with) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String strindexOf(String str, char ch) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public String strindexOf(String str, String strsr) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO: This should depend on whether the column name was quoted in the original sql query
@Override public String sqlQualifiedColumn(String tablename, String columnname) { return String.format("%s.\"%s\"", tablename, columnname); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String getColNamesQuery(String tableName) {\n return \"SELECT t.* FROM \" + escapeTableName(tableName) + \" AS t LIMIT 1\";\n }", "private String getNormalisedColumnName(String columnName) {\n\t\t// Avoid double-quotes - if a column name is in quotes, then PG will\n\t\t// add more quot...
[ "0.6327004", "0.6267224", "0.6121499", "0.60803396", "0.60803396", "0.60803396", "0.60803396", "0.60803396", "0.60803396", "0.60803396", "0.6076357", "0.5997834", "0.58967566", "0.5857494", "0.5854048", "0.5778972", "0.5758061", "0.572246", "0.5673466", "0.5661132", "0.563732...
0.6593792
0
TODO: This should depend on quotes in the sql in the mappings
@Override public String sqlQuote(String name) { return String.format("\"%s\"", name); // return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toSQL();", "protected String processGeneratedSql( String sql ) {\n return sql;\n }", "String toSql();", "@Test\n public void test3() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' = ''Second one''',c.name) \";\n Query...
[ "0.63985527", "0.62922615", "0.60958004", "0.59813684", "0.59598416", "0.5790311", "0.5789723", "0.57850826", "0.57788", "0.57668215", "0.5766792", "0.57657254", "0.5739298", "0.57270473", "0.5726094", "0.56846595", "0.56693965", "0.5668395", "0.56654793", "0.5664455", "0.564...
0.5934831
5
TODO Autogenerated method stub
@Override public String sqlSlice(long limit, long offset) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doGet(req, resp); }
{ "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
checking for last page if last page home screen will be launched
@Override public void onClick(View v) { int current = getItem(+1); if (current < layouts.length) { // move to next screen viewPager.setCurrentItem(current); } else { if ((android.os.Build.VERSION.SDK_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLastPage();", "public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t...
[ "0.68936884", "0.6370662", "0.61900926", "0.61793196", "0.6128452", "0.6119466", "0.6019551", "0.60136485", "0.60136485", "0.59946114", "0.5918404", "0.58473897", "0.583685", "0.5825322", "0.5818142", "0.5800526", "0.57958215", "0.57930875", "0.5790322", "0.57471156", "0.5742...
0.0
-1
setting textviews as per number of layouts in layouts array
private void addBottomDots(int currentPage) { dots = new TextView[layouts.length]; //dots is textview array int[] colorsActive = getResources().getIntArray(R.array.array_dot_active); int[] colorsInactive = getResources().getIntArray(R.array.array_dot_inactive); //dotslayout is li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTxtViews(){\n \tupdateTextView(\"Phil Simms\", \"txtPatientName\");\n \tupdateTextView(\"Male\", \"txtPatientGender\");\n \tupdateTextView(\"24\", \"txtPatientAge\");\n \tupdateTextView(\"13\", \"txtPatientRoom\");\n \tupdateTextView(\"Melanoma\", \"txtPatientDiagnosis\");\n ...
[ "0.67078716", "0.6232232", "0.6161381", "0.61510515", "0.60925215", "0.60306597", "0.5929393", "0.5920142", "0.5911883", "0.5891548", "0.5890334", "0.5886266", "0.57453746", "0.57361877", "0.5728158", "0.569485", "0.56783557", "0.56765604", "0.5659014", "0.56463367", "0.56348...
0.0
-1
Creates new form VAlumnosAsignaturas
public VPrincipal() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPerson...
[ "0.6455663", "0.6391322", "0.6318371", "0.6271239", "0.6241207", "0.61530113", "0.60419154", "0.6034182", "0.60077584", "0.59945923", "0.5990414", "0.59236956", "0.5923182", "0.591916", "0.5888955", "0.58498603", "0.5797535", "0.57353723", "0.5660679", "0.56451446", "0.564297...
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() { jScrollPane3 = new javax.swing.JScrollPane(); tblPersonas = new javax.swing.JTable(); btnGuardar = new javax.swing.JButton(); ...
{ "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.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Map is an interface it accepts two object reference of any type it is in key/value format key MUST be unique value can be duplicated id, names
public static void main(String[] args) { Map<Integer,String> map = new HashMap<>(); map.put(1, "Nancy"); map.put(2, "Mariam"); map.put(1, "Heaven"); // in case of duplicated key, the value will get updated So it will print 1=Heaven for lines 13 and 15 map.put(100, "Ramy")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "public interface Map<K,V> {\n\n int size();\n\n boolean isEmpty();\n\n boolean containsKey(Object key);\n\n boolean containsValue(Object value);\n\n V get(Object key);\n\n V put(K key, V value);\n\n void putAll(Map<? exte...
[ "0.66410875", "0.62533844", "0.61670077", "0.6152668", "0.6137119", "0.6123941", "0.6056824", "0.6049086", "0.60368264", "0.6034137", "0.59959674", "0.5909715", "0.5895819", "0.58910674", "0.5843088", "0.5831584", "0.5823394", "0.5805509", "0.5804997", "0.580064", "0.57994735...
0.0
-1
function to draw the selector symbol in plane selection page
public void drawSelector(int x) { int currentTime = millis() / 100; noStroke(); if (currentTime % 13 == 0) { fill(200, 200, 100, 30); } else if (currentTime % 13 == 1) { fill(200, 200, 100, 40); } else if (currentTime % 13 == 2) { fill(200, 200, 100, 50); } el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void paintSelection(Graphics2D g);", "public void draw(){\n\t\tif(!visible) return;\n\n\t\twinApp.pushStyle();\n\t\twinApp.style(G4P.g4pStyle);\n\t\tPoint pos = new Point(0,0);\n\t\tcalcAbsPosition(pos);\n\n\t\t// Draw selected option area\n\t\tif(border == 0)\n\t\t\twinApp.noStroke();\n\t\tel...
[ "0.670185", "0.66182995", "0.6446747", "0.6291031", "0.6279142", "0.62745106", "0.6185351", "0.6084823", "0.60728085", "0.60675615", "0.6053217", "0.6048486", "0.6020682", "0.60193163", "0.6011292", "0.58877367", "0.5854761", "0.5834943", "0.5828598", "0.5805072", "0.5766715"...
0.62228215
6
draw the left corner symbol for bomb
public void drawBomb(int x, int y) { pushMatrix(); translate(x, y); scale(0.4f); smooth(); fill(200); quad(10,21,53,21,53,55,10,55); fill(150); bezier(10,21,18,-4,45,-4,53,21); beginShape(); vertex(3,65); vertex(7,95); vertex(22,81); vertex(40,81); vertex(54,95); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void show(){\n fill(255);\n stroke(255);\n \n if (left){\n rect(0, y, size, brickLength);\n x = 0;\n }\n else{\n rect(width - size, y, size, brickLength);\n x = width - size;\n }\n }", "@Override\r\n\tpublic void BuildArmLeft() {\n\t\tg.drawLine(60, 50, 40, 100);\...
[ "0.64256424", "0.6301899", "0.6293039", "0.62904364", "0.62876046", "0.61546254", "0.6145721", "0.6138077", "0.6040966", "0.5997295", "0.5961709", "0.5960738", "0.5953322", "0.5944558", "0.5940192", "0.5938876", "0.59349144", "0.593122", "0.5915651", "0.5902867", "0.5885883",...
0.6711963
0
draw the left corner symbol for health
public void drawHealth(int x, int y) { pushMatrix(); translate(x, y); scale(0.8f); smooth(); noStroke(); fill(0); beginShape(); vertex(52, 17); bezierVertex(52, -5, 90, 5, 52, 40); vertex(52, 17); bezierVertex(52, -5, 10, 5, 52, 40); endShape(); fill(255,0,0); beg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawHealthBar() {\n\t\td.setColor(Color.GREEN);\n\t\td.setFont(f1);\n\t\td.drawString(\"Health\", 387, 43);\n\t\td.setFont(f);\n\t\td.fillRect(227, 48, health * 100, 25);\n\t\td.setColor(Color.BLACK);\n\t\td.drawLine(327, 48, 327, 73);\n\t\td.drawLine(427, 48, 427, 73);\n\t\td.drawLine(527, 48, 527, 73...
[ "0.69064796", "0.68619597", "0.63501084", "0.62178534", "0.61723804", "0.61698824", "0.61633646", "0.6119969", "0.6055063", "0.60530984", "0.60394275", "0.60376066", "0.60193574", "0.60098666", "0.59936243", "0.59910667", "0.59891963", "0.5978666", "0.5978268", "0.59425133", ...
0.62799346
3
define the key press effect
public void keyPressed() { if (keyCode == ENTER){ if (2 == currentPage) { currentPage = 3; } if (1 == currentPage) { tmpframecount = frameCount; currentPage = 2; } else if (0 == currentPage) { currentPage = 1; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void keyPress(int key);", "@Override\n public void keyboardAction( KeyEvent ke )\n {\n \n }", "public void keyPressed() { \n\t\twantsFrameBreak = true;\n\t\t//key = e.getKeyChar();\n\t\tkeyPressed = true;\n\t\tif (System.nanoTime() - acted > .033e9f) {\n\t\t\t_keyPressed();\n\t\t}\n\t}", "...
[ "0.7431145", "0.73274845", "0.72530025", "0.7240209", "0.7227289", "0.7227289", "0.7227289", "0.72199816", "0.72143036", "0.7209433", "0.7200855", "0.71916133", "0.71905667", "0.7187355", "0.71773094", "0.71621096", "0.71621096", "0.71621096", "0.71536905", "0.7145128", "0.71...
0.0
-1
define the effects of releasing the key
public void keyReleased() { if (key == 'z' || key == 'Z') shoot = false; if (keyCode == UP) up = false; if (keyCode == DOWN) down = false; if (keyCode == LEFT) left = false; if (keyCode == RIGHT) right = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void keyReleased() {\t\t\r\n \t\t\r\n \t\tkeys[keyCode] = false;\r\n \t}", "public void keyReleased (KeyEvent e)\r\n {\r\n \tkeyPressed = false;\r\n \tkeyReleased = true;\r\n \tkey = 0;\r\n }", "@Override\n\tpublic void keyReleased(int k) {\n\n\t}", "public void keyReleased(KeyEvent e) ...
[ "0.77526414", "0.76809126", "0.7576806", "0.75205904", "0.75167197", "0.75092983", "0.745369", "0.7452832", "0.7452832", "0.7452832", "0.74423796", "0.74423796", "0.74423796", "0.74423796", "0.74423796", "0.74423796", "0.74423796", "0.74379396", "0.7437179", "0.74369746", "0....
0.0
-1
define the effects while choosing to move the selector
public void changeFlightType(int x) { if (currentPage != 1) return; if (0 == x) { if (flightType == 3) flightType = 1; if (flightType == 4) flightType = 2; } if (1 == x) { if (flightType == 1) flightType = 3; if (flightType == 2) flightType = 4; } if (2 == x) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectOrMove(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON1 && ui_inter != UI_INTERACTION.SELECTING && ui_inter != UI_INTERACTION.MOVING) return;\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n switch (me_enum) {\n case PRESSED: Set...
[ "0.6222429", "0.59629196", "0.5946307", "0.59150904", "0.59075844", "0.58312625", "0.58072996", "0.5734986", "0.56763643", "0.56643134", "0.5660334", "0.5549288", "0.5538617", "0.5529067", "0.5508363", "0.55078757", "0.5486664", "0.54476583", "0.5440742", "0.54391116", "0.542...
0.0
-1
part of plane design
public void interface1(){ noStroke(); fill(10,100);//light gray rect(0,60,600,590); fill(220);//gray noStroke(); beginShape(); vertex(365,40); vertex(600,40); vertex(600,80); vertex(365,80); vertex(345,60); endShape(CLOSE); fill(19,70,100,100);//dark blue rect(0,1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Plane getPlane();", "public void leerPlanesDietas();", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public void draw_plane(Graphics g, int log_num, int i);", "public void mark_plane(...
[ "0.7458217", "0.67433023", "0.6703278", "0.6664471", "0.64960194", "0.6410442", "0.6360973", "0.6301713", "0.62957543", "0.62930524", "0.62626255", "0.62254256", "0.61761945", "0.6164339", "0.61585516", "0.61160743", "0.6114436", "0.6093147", "0.6071039", "0.60472673", "0.602...
0.0
-1