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
Timer timerProp = new Timer(500,new TimerPropListener());
public static void useDiceProp(int diceNumber1) { useDiceProp = true; diceNumber = diceNumber1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTimer() {\n\t\t\n\t}", "Timer getTimer();", "public void setTimer(int timer) {\n this.timer = timer;\n }", "private void setTimer() {\r\n timer = new Timer(TIMER_DELAY, new ActionListener() {\r\n public void actionPerformed(ActionEvent ae) {\r\n actio...
[ "0.7298571", "0.6980324", "0.6933258", "0.68474555", "0.6823702", "0.6786864", "0.6728834", "0.6676059", "0.665449", "0.6595864", "0.6490367", "0.6479586", "0.647021", "0.6452835", "0.64425147", "0.6442098", "0.6440969", "0.6423004", "0.6391326", "0.63820404", "0.6378013", ...
0.0
-1
int i = a.getLocation() + 1; // diceResult + 1; int i_f = (a.getLocation() 1 + 38) % 38; int i2 = 20 + b.getLocation();// diceResult; int i2_f = (b.getLocation() + 19 1 + 38) % 38; Handle ActionEvent
public void actionPerformed(ActionEvent e) { // FireEvent sign = new FireEvent(j); System.out.println(diceResult + " a" + "a's locaton:" + a.getLocation()); if (conPlay % 2 == 0) { AIplay = false; // 用了转向卡时 if (a.getDirection() == 1) { if (con2 >= diceResult) { timer2.stop(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer aiAction() {\r\n\t\t//if the first dice is less then six, throw the second dice \r\n\t\t//if the both throws > 10 the ai has lost, and will return 0\r\n\t\t//if the first dice == 7, return first dice\r\n\t\tInteger totalSum = 0;\r\n\t\tRandom aiRandom = new Random();\r\n\t\tInteger firstDice = aiRan...
[ "0.63694715", "0.5828677", "0.5779182", "0.5775076", "0.5712221", "0.5681291", "0.5666018", "0.56389904", "0.5618352", "0.5617376", "0.56039476", "0.5582981", "0.5581845", "0.55755633", "0.5521679", "0.5515215", "0.55093753", "0.5505993", "0.55043256", "0.5466764", "0.5459744...
0.65433985
0
TODO Autogenerated method stub
public static void main(String[] args) { int cost[][] = { {1, 2, 3}, {4, 8, 2}, {1, 5, 3} }; int len=3; dp=new int[len+1][len+1]; for(int i=0;i<len;++i) Arrays.fill(dp[i], Integer.MAX_VALUE); System.out.println(getMinCost(cost, 2, 2, len)); printPath(cost, 2, 2); }
{ "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
here first if both the values are more than 0 that means you took path earlier from either top,left or diagonal
public static void printPath(int[][] dp,int n,int m){ if((n>0&&m>0)){ if(dp[n-1][m]<dp[n][m-1]&&dp[n-1][m]<dp[n-1][m-1]) printPath(dp, n-1, m); else if(dp[n][m-1]<dp[n-1][m-1]) printPath(dp, n, m-1); else printPath(dp, n-1, m-1); }else if(n>0){ //else if only x axis is positive you can taker path ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isPathH(Board B, Move M, Graph G, int row, int column, Tile tile) {\n\n Tile t = tile;\n\n boolean result = true;\n boolean tempa = true;\n\n int sourceid = 0;\n\n\n int c = M.getX(), r = M.getY();\n\n if (r <= 0 && c <= 0) {\n\n\n } else if (r <= 0 ...
[ "0.672891", "0.64694625", "0.6444008", "0.62702733", "0.6268663", "0.6161894", "0.61365473", "0.61121804", "0.6090148", "0.60850024", "0.6012525", "0.5920807", "0.59199846", "0.5891721", "0.58773524", "0.58765614", "0.5835411", "0.58313847", "0.5821625", "0.5820197", "0.58186...
0.0
-1
// Methods Access modifiers
public long getID() { return ID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void method(){}", "Operations operations();", "@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}", "pu...
[ "0.72109455", "0.66559535", "0.6496642", "0.63104296", "0.62934005", "0.6283805", "0.62830544", "0.62789863", "0.62524474", "0.6184693", "0.6178447", "0.61668086", "0.6163714", "0.61446327", "0.60917205", "0.6089549", "0.6080247", "0.60673094", "0.6051761", "0.60263646", "0.6...
0.0
-1
TODO Autogenerated method stub
public void onHitWall(int whichWall) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void onHitOther(Actor other) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean canCollide() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public int getLeftX() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public int getRightX() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public int getTopY() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public int getBottomY() { return 0; }
{ "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
/let the button know their function numberEvent= function to insert number in the editText while operatorEvent = allow buttons to operates its function to add, subtract,multiply,or divide equalEvent = allow the equal button solve all types of calculations. clearEvent = allow button to clear any Value in the EditText ar...
public void numberEvent(View view) { if (isNewOp) input.setText(""); isNewOp = false; String number = input.getText().toString(); switch (view.getId()) { case R.id.oneBTN: number += "1"; break; case R.id.twoBTN: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void OnNumberButtonClick (View v){\n try {\n Button b = (Button) v;\n if (mIsCalculating == false)\n expressionView.setText(\"\");\n if (mIsTyping == false) {\n resultView.setText(b.getText());\n mIsTyping = true;\n ...
[ "0.6901815", "0.6897381", "0.68833923", "0.68084645", "0.6731157", "0.66457534", "0.65927756", "0.6573479", "0.6570992", "0.6529209", "0.64980286", "0.6496966", "0.64290494", "0.6411239", "0.6409634", "0.63959754", "0.6381736", "0.6358578", "0.6350947", "0.6336536", "0.630547...
0.70984757
0
Practice various loops Print all even numbers between 0 and 100
public static void main(String[] args) { int x = 0; while (x <= 100) { if( x % 2 == 0) { System.out.println(x); }x ++; } // A while loop that prints every 3rd number going backwards from 100 to 0 int y = 100; while (y >= 0) { System.out.println(y); y -= 3; } // A for loo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printAll() {\n\t\tint i=0;\n\t\twhile(i%2==0) {\n\t\t\ti+=2;\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tif(i==100) break;\n\t\t}\n\t}", "public static void main(String[] args){\r\n int i=100;\r\n while (i>0) { \r\n if (i%2!=0) {\r\n System.out.p...
[ "0.78737104", "0.784872", "0.7484683", "0.74655384", "0.74080205", "0.7397556", "0.7338822", "0.732854", "0.7326862", "0.7309726", "0.7301096", "0.72878623", "0.72608954", "0.7248456", "0.72195506", "0.72012", "0.71918875", "0.7175123", "0.71513116", "0.71084577", "0.7082387"...
0.6836879
32
The connection to Google Play services was lost for some reason.
@Override public void onConnectionSuspended(int cause) { Log.i(TAG, "Connection suspended"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ...
[ "0.7643075", "0.7643075", "0.7643075", "0.7643075", "0.7643075", "0.7643075", "0.7643075", "0.76345867", "0.7615776", "0.74083203", "0.7351084", "0.72027194", "0.71496236", "0.67868716", "0.6760041", "0.6735244", "0.67038625", "0.668471", "0.668471", "0.66540205", "0.66521233...
0.0
-1
Refer to the javadoc for ConnectionResult to see what error codes might be returned in onConnectionFailed.
@Override public void onConnectionFailed(ConnectionResult result) { Log.i(TAG, "Connection failed: ConnectionResult.getErrorCode() = " + result.getErrorCode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n }", "@Override\n public void onConnectionFa...
[ "0.8277823", "0.82334906", "0.8164023", "0.81530815", "0.8152359", "0.8118874", "0.8107503", "0.8099103", "0.8094418", "0.80743754", "0.8059262", "0.8053845", "0.8041113", "0.796702", "0.7941709", "0.79296607", "0.7899514", "0.78674877", "0.78063416", "0.78063416", "0.778782"...
0.81679744
4
Builds and returns a GeofencingRequest. Specifies the list of geofences to be monitored. Also specifies how the geofence notifications are initially triggered.
private GeofencingRequest getGeofencingRequest() { GeofencingRequest.Builder builder = new GeofencingRequest.Builder(); // The INITIAL_TRIGGER_ENTER flag indicates that geofencing service should trigger a // GEOFENCE_TRANSITION_ENTER notification when the geofence is added and if the device ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GeofencingRequest getAddGeofencingRequest() {\n List<Geofence> geofencesToAdd = new ArrayList<>();\n geofencesToAdd.add(geofenceToAdd);\n GeofencingRequest.Builder builder = new GeofencingRequest.Builder();\n builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_EXIT)\n ...
[ "0.7753537", "0.7643294", "0.75867534", "0.7060811", "0.6343908", "0.6243534", "0.60553217", "0.596039", "0.5736071", "0.5708622", "0.5708609", "0.5656733", "0.565594", "0.56032264", "0.55757076", "0.5556457", "0.5554822", "0.55398625", "0.55380064", "0.55318844", "0.55101615...
0.8271868
1
Gets a PendingIntent to send with the request to add or remove Geofences. Location Services issues the Intent inside this PendingIntent whenever a geofence transition occurs for the current list of geofences.
private PendingIntent getGeofencePendingIntent() { // Reuse the PendingIntent if we already have it. if (mGeofencePendingIntent != null) { return mGeofencePendingIntent; } intent = new Intent(this, GeofenceTransitionsIntentService.class); //Intent intent = new Intent(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PendingIntent getGeofencePendingIntent() {\n if (mGeofencePendingIntent != null) {\r\n return mGeofencePendingIntent;\r\n }\r\n Intent intent = new Intent(this, GeofenceBroadcastReceiver.class);\r\n\r\n // addGeofences() and removeGeofences().\r\n mGeofencePend...
[ "0.8175581", "0.8133402", "0.80312085", "0.7493514", "0.72567976", "0.7180659", "0.7053417", "0.68792075", "0.6738564", "0.65939206", "0.6576415", "0.6547909", "0.6546547", "0.6319167", "0.63190615", "0.62676704", "0.60676557", "0.60630333", "0.6048421", "0.5996472", "0.59101...
0.76187223
3
ShapedRecipe recipe = new ShapedRecipe(getItem());
@Override public Recipe getRecipe() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ItemStack make();", "@Override\n public IRecipe addRecipe() {\n return RecipeRegistry.addShapedRecipe(new ItemStack(this),\n \"igi\",\n \"gog\",\n \"igi\",\n 'o', \"obsidian\", 'i', \"ingotIron\", 'g', \"blockGlass\");\n }", "protected abstract void makeItem();", "public stat...
[ "0.7049571", "0.68464255", "0.6756895", "0.6735587", "0.6652507", "0.64983016", "0.64682", "0.64434123", "0.63915104", "0.6373052", "0.63729686", "0.63556474", "0.6350446", "0.62368923", "0.6195561", "0.61643714", "0.61272806", "0.60929245", "0.60502356", "0.6036016", "0.6035...
0.5662925
74
Inserts a word into the trie.
public void insert(String word) { TrieNode cur = root; for(int i=0; i<word.length(); i++){ int index = word.charAt(i)-'a'; if(cur.children[index] == null) cur.children[index] = new TrieNode(word.charAt(i)); cur = cur.children[index]; if(i =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(String word) {\n\t\t\tTrieNode curr = root;\n\t\t\tfor (char c : word.toCharArray()) {\n\t\t\t\tif (!curr.children.containsKey(c))\n\t\t\t\t\tcurr.children.put(c, new TrieNode());\n\t\t\t\tcurr = curr.children.get(c);\n\t\t\t}\n\t\t\tcurr.isWord = true;\n\t\t}", "public void insert(String word...
[ "0.8807224", "0.8793351", "0.87825143", "0.87603605", "0.87531847", "0.87244797", "0.8703555", "0.86812365", "0.8663727", "0.8656706", "0.8647378", "0.86406666", "0.8638965", "0.8625531", "0.8625304", "0.8621602", "0.8619184", "0.86011845", "0.8596424", "0.8592704", "0.857974...
0.83459634
35
Returns if the word is in the trie.
public boolean search(String word) { return searchWord(word, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean search(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n return false;\n }\n now = now.children.get(c);\n }\n return now.hasWord;\n}", "public b...
[ "0.8014751", "0.7984532", "0.79244334", "0.79059774", "0.7905517", "0.7885265", "0.78772014", "0.7840615", "0.78359133", "0.78040844", "0.7789488", "0.77892065", "0.77878743", "0.77688414", "0.77643424", "0.77543366", "0.7753908", "0.7709519", "0.770567", "0.768657", "0.76771...
0.0
-1
Returns if there is any word in the trie that starts with the given prefix.
public boolean startsWith(String prefix) { return searchWord(prefix, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean startsWith(String prefix) {\n char [] words=prefix.toCharArray();\n CharTree t=root;\n for (char c : words) {\n t=t.next[c-97];\n if(t==null)return false;\n }\n return true;\n }", "public boolean startsWith(String prefix) {\n retur...
[ "0.83632916", "0.83499616", "0.82860404", "0.82630605", "0.8216368", "0.8177742", "0.81650454", "0.81640255", "0.8142898", "0.8130222", "0.8110278", "0.8109604", "0.8090557", "0.8069846", "0.8064832", "0.80586547", "0.80346704", "0.8009936", "0.80044013", "0.7995892", "0.7976...
0.79941833
20
Creates new form Home
public Home() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimensio...
[ "0.647876", "0.64451313", "0.6280335", "0.62746096", "0.62454146", "0.6242675", "0.6218096", "0.6181604", "0.6171541", "0.61670053", "0.61458725", "0.6126097", "0.6102605", "0.60914886", "0.60812795", "0.6076446", "0.60747474", "0.606979", "0.6068598", "0.60569316", "0.605540...
0.5574121
71
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); jLabel2 = new java...
{ "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.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.694586...
0.0
-1
Returns true to indicate that the editing cell can be selected. The default method returns true without action but may be overridden in derived classes for more specific behavior.
@Override public boolean shouldSelectCell(EventObject anEvent){ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canSelectionChange() {\n return true;\n }", "public boolean isEditingEnabled() {\r\n // Additional business logic can go here\r\n return (getContactSelection().getMinSelectionIndex() != -1);\r\n }", "@Override\r\n\t\t\t\t\tpublic boolean shouldSelectCell(EventObject ar...
[ "0.73294723", "0.71003217", "0.69898224", "0.69897014", "0.68777573", "0.686328", "0.6856763", "0.67199624", "0.6709631", "0.6665647", "0.6649979", "0.663792", "0.6619316", "0.6579728", "0.6478535", "0.6441589", "0.6441589", "0.6431722", "0.64215803", "0.641631", "0.63688517"...
0.6571982
14
Add event code here...
public void viewReference(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "Event () {\n // Nothing to do here.\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "private void createEvents() {\n\t}", "private...
[ "0.7133789", "0.6999529", "0.69949776", "0.69949776", "0.69066507", "0.68845415", "0.68496764", "0.68496764", "0.68496764", "0.68496764", "0.68496764", "0.68445176", "0.6841186", "0.6839083", "0.68375826", "0.6829158", "0.6829158", "0.6806268", "0.67489874", "0.67483705", "0....
0.0
-1
Before calling all the API's,Pass import source as "SAVE_CONFIG_TO_QUOTE"
public void saveQuoteFromSysToOrcl(ActionEvent actionEvent) throws MalformedURLException, IOException { boolean isQuoteSaved = false; V93kQuote v93k = (V93kQuote)ADFUtils.getSessionScopeValue("parentObject"); if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveConfiguration() {\n }", "private void config() {\n\t}", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "private void saveBeforeRun() {\n if ( _helper != null && _settings.getSaveBeforeRun() )\n _helper.saveBeforeR...
[ "0.6151158", "0.5895968", "0.5558243", "0.54523915", "0.5344255", "0.5286325", "0.5210359", "0.5179088", "0.51401675", "0.5130262", "0.5126775", "0.5116515", "0.5069339", "0.49853963", "0.498525", "0.49806342", "0.4968301", "0.49638847", "0.49493837", "0.49443978", "0.4938390...
0.6155575
0
RichPopup.PopupHints hints = new RichPopup.PopupHints(); quoteNavPopup.show(hints);
public void navToConfigurator(ActionEvent actionEvent) { ADFUtils.setSessionScopeValue("currView", "config"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void triggerPopup();", "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOption...
[ "0.6917718", "0.66626126", "0.6629831", "0.6589044", "0.65641737", "0.6488426", "0.6347049", "0.6331398", "0.6288317", "0.62869155", "0.626079", "0.6214322", "0.6143024", "0.60570097", "0.60439306", "0.6022645", "0.59931004", "0.5947834", "0.5944219", "0.5934131", "0.5916114"...
0.0
-1
Call the CIO servlet with unique identifier , before setting all session values to null
public void cancelAllConfigurations(ActionEvent actionEvent) throws IOException, JsonGenerationException, JsonMappingException { String currView = (String)ADFUtils.getS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter(...
[ "0.6620242", "0.66081876", "0.6331809", "0.6046704", "0.6029779", "0.5957492", "0.58986616", "0.5886507", "0.58454597", "0.5839811", "0.5826931", "0.57910204", "0.575835", "0.5743936", "0.5722818", "0.5722818", "0.56859106", "0.567411", "0.56380993", "0.5631667", "0.5626196",...
0.0
-1
Check if target lines exist , If yes open the popup or show error
public void exportTargetConfig(ActionEvent actionEvent) { String noTargetConfig = getFndMessages((String)SudokuUtils.noTargetConfigMsg); V93kQuote v93 = (V93kQuote)ADFUtils.getSessionScopeValue("parentObject"); if (v93 != null && v93.getTargetConfigurationLines() != null ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showInformationAboutBrokenFile(Shell shell) {\n\t\tMessageDialog\n \t.openInformation(\n \t\t shell, \n \t\t \"Info\",\n \t\t \"There was error during test cases generation, make sure selected file is correct!\");\n\t}", "private boolean badEntryFound() {\n boolean flag = fal...
[ "0.60520047", "0.5520872", "0.54735667", "0.54620653", "0.5453038", "0.54119265", "0.53991556", "0.5394867", "0.53805554", "0.5375235", "0.53418934", "0.5330941", "0.52811795", "0.5262463", "0.52594596", "0.52517253", "0.5232735", "0.52150196", "0.5209241", "0.51916224", "0.5...
0.0
-1
Add event code here...
public void quoteNavigationDialogEvent(DialogEvent dialogEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "Event () {\n // Nothing to do here.\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "private void createEvents() {\n\t}", "private...
[ "0.7133789", "0.6999529", "0.69949776", "0.69949776", "0.69066507", "0.68845415", "0.68496764", "0.68496764", "0.68496764", "0.68496764", "0.68496764", "0.68445176", "0.6841186", "0.6839083", "0.68375826", "0.6829158", "0.6829158", "0.6806268", "0.67489874", "0.67483705", "0....
0.0
-1
Step is a singular (quantized) "turn" the elevator can make In one step the elevator can EITHER: open the door, leave people and delete current job OR close the door, change state and move
public void step(){ if (this.jobs.contains(this.currentFloor)){ //we arrived at our destination this.openDoor(); this.leavePeople(); this.deleteJob(this.currentFloor); } else { this.closeDoor(); this.changeState(); this.move(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changeState() {\n if (jobs.contains(this.currentFloor)){\n throw new AssertionError(\"Changing state of elevator no \" + ElevatorID + \" on destination floor\");\n }\n\n // empty job set -> going to IDLE state\n if (jobs.size() == 0) {\n this.currentSt...
[ "0.66059184", "0.6513578", "0.6313564", "0.61259407", "0.6113206", "0.6109225", "0.6048982", "0.6043519", "0.5998957", "0.5972861", "0.5972861", "0.5939108", "0.5932143", "0.5928424", "0.5914316", "0.5897351", "0.5890922", "0.5879321", "0.5875444", "0.58737993", "0.58484584",...
0.77872336
0
`changeState` is the main function behind the "logic" of the elevator. The elevator changes to: IDLE if there are no jobs to do an of right now UP if: (for currentState == IDLE or UP) current floor is lower than the destination (for currentState == DOWN) current floor is lower and there is no job lower than current flo...
private void changeState() { if (jobs.contains(this.currentFloor)){ throw new AssertionError("Changing state of elevator no " + ElevatorID + " on destination floor"); } // empty job set -> going to IDLE state if (jobs.size() == 0) { this.currentState = IDLE; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateState() {\n //check if arrived\n if (destinations.contains(currentFloor)) {\n destinations.removeIf(n -> (n == currentFloor));\n System.out.println(\"\\t\\tElevator #\" + id + \": Arrived at floor #\" + currentFloor + \".\");\n }\n\n // take stock...
[ "0.70931983", "0.6577415", "0.6242648", "0.6104145", "0.6094384", "0.6057387", "0.604084", "0.60097873", "0.59752107", "0.5891517", "0.5891057", "0.58731264", "0.57952523", "0.57844126", "0.57616097", "0.5731503", "0.57111126", "0.5704077", "0.56716377", "0.56438166", "0.5615...
0.846341
0
maintaining people in elevator
public void addPerson(Person person){ if (person.getCurrentFloor() != this.currentFloor){ throw new IllegalArgumentException("Person with ID " + person.getPersonID() + " enters elevator with ID " + this.ElevatorID + " on wrong floor"); } if (!doorOpened) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addPeopleToElevator(Elevator e)\n\t\t\tthrows InvalidParameterException {\n\t\tsynchronized (this) {\n\t\t\tArrayList<Person> peopleToRemove = new ArrayList<Person>();\n\n\t\t\tfor (int i = 0; i < people.size(); i++) {\n\n\t\t\t\tif (e.getStatus() == Elevator.Status.MOVING_UP) {\n\n\t\t\t\...
[ "0.6851761", "0.6851066", "0.59283715", "0.5916799", "0.5837188", "0.58007354", "0.5781245", "0.5740534", "0.57219076", "0.5707447", "0.5646497", "0.56460315", "0.5508666", "0.5485151", "0.5461193", "0.5458464", "0.5428177", "0.54244065", "0.54179704", "0.5396943", "0.5352741...
0.57136905
9
only by finishing a job it can be deleted from `jobs`
private void deleteJob(int floorNumber){ jobs.remove(floorNumber); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"删除成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\...
[ "0.7159048", "0.675452", "0.65668964", "0.6463438", "0.6462865", "0.6423292", "0.64226437", "0.6395175", "0.6386145", "0.6374414", "0.6345986", "0.6334477", "0.6236907", "0.61798966", "0.6162054", "0.61551243", "0.61344695", "0.61204916", "0.61062276", "0.6103157", "0.6073122...
0.5813632
40
it's possible to empty jobs before changing the state; in this case our destination is the current floor
public Integer getDestinationFloor() { return switch (this.currentState){ case UP -> this.jobs.isEmpty() ? this.currentFloor : this.jobs.last(); case DOWN -> this.jobs.isEmpty() ? this.currentFloor : this.jobs.first(); case IDLE -> null; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void step(){\n if (this.jobs.contains(this.currentFloor)){ //we arrived at our destination\n this.openDoor();\n this.leavePeople();\n this.deleteJob(this.currentFloor);\n } else {\n this.closeDoor();\n this.changeState();\n thi...
[ "0.7150282", "0.65549415", "0.6110852", "0.6066906", "0.5981561", "0.5821933", "0.5773137", "0.56733924", "0.56209165", "0.5588835", "0.55795795", "0.5546901", "0.55310893", "0.5525696", "0.5504211", "0.5497049", "0.5459142", "0.5436914", "0.5424762", "0.5420277", "0.540756",...
0.5407003
21
Created by hdfs on 2018/5/15.
public interface UserService { public User getUserInfoByUsername(String username) throws Exception; public User getUserInfoFromSession(HttpSession session) throws Exception; /** * 用户注册逻辑 * * @param user */ // public Response merge(User user); /** * 用户获取逻辑 * * @p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void conn() throws Exception {\n conf = new Configuration();\n fs = FileSystem.get(URI.create(\"hdfs://hadoop001:9000\"), conf, \"hadoop\");\n\n //fs = FileSystem.get(conf);\n }", "void init() throws Exception\n\t {\n\t\t \n\t\t \n\t\t this.hdfsdir ...
[ "0.5731808", "0.55970687", "0.5409533", "0.53391784", "0.5332061", "0.52475023", "0.5198961", "0.51779944", "0.516192", "0.5149559", "0.51043177", "0.50920457", "0.5071111", "0.50578415", "0.5054181", "0.5003988", "0.5003299", "0.49902937", "0.4986788", "0.49762437", "0.49732...
0.0
-1
Interface for accessing AmazonConfig asynchronously. Each asynchronous method will return a Java Future object, and users are also allowed to provide a callback handler. AWS Config AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Co...
public interface AmazonConfigAsync extends AmazonConfig { /** * <p> * Returns the current status of the specified delivery channel. If a * delivery channel is not specified, this action returns the current * status of all delivery channels associated with the account. * </p> * <p> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ConfigDBAsync {\n\tpublic void getTables (DatabaseData inputs, @SuppressWarnings(\"rawtypes\") AsyncCallback callback);\n\tpublic void getColumns (DatabaseData inputs, @SuppressWarnings(\"rawtypes\") AsyncCallback callback);\n\tpublic void addEntry (DatabaseData inputs, @SuppressWarnings(\"rawtype...
[ "0.63107437", "0.60748357", "0.59943163", "0.57072073", "0.56976205", "0.56136996", "0.55849975", "0.55700076", "0.55525136", "0.549815", "0.5454532", "0.5438485", "0.5420088", "0.54124117", "0.53028053", "0.52708226", "0.5247796", "0.52394277", "0.52389985", "0.5237854", "0....
0.81087
0
Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account. NOTE:Currently, you can specify only one delivery channel per account.
public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest,\n AsyncHandler<DescribeDeliveryChannelStatusRequest, DescribeDeliveryChannelStatusResult> asyncHandler)\n throws AmazonServi...
[ "0.580943", "0.5338096", "0.5138576", "0.5114167", "0.49953127", "0.49952346", "0.4987785", "0.49164015", "0.49128133", "0.48950657", "0.4843509", "0.48132834", "0.48098528", "0.47855562", "0.47695374", "0.4767873", "0.4767873", "0.47482312", "0.47344092", "0.47288036", "0.47...
0.65501356
0
Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account. NOTE:Currently, you can specify only one delivery channel per account.
public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest, AsyncHandler<DescribeDeliveryChannelStatusRequest, DescribeDeliveryChannelStatusResult> asyncHandler) throws AmazonServiceExcep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest) \n throws AmazonServiceException, AmazonClientException;", "im.turms.common.constant.MessageDeliveryStatus getDeliveryStatus();", "int getD...
[ "0.6550249", "0.5339389", "0.51395017", "0.51165205", "0.4998972", "0.49970868", "0.49918687", "0.49192792", "0.49164015", "0.48991886", "0.4847812", "0.48149845", "0.4809998", "0.47880983", "0.477208", "0.477208", "0.47690663", "0.4751516", "0.47375503", "0.47328836", "0.472...
0.58098066
1
Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account. NOTE: Currently, you can specify only one configuration recorder per account.
public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest,\n AsyncHandler<DescribeConfigurationRecordersRequest, DescribeConfigurationRecordersResult> asyncHandler)\n throws Amazo...
[ "0.5030121", "0.46950406", "0.4664744", "0.43951795", "0.4305083", "0.41470537", "0.41081908", "0.40704036", "0.40624398", "0.39792278", "0.39463228", "0.39422533", "0.39417094", "0.39232427", "0.39203903", "0.39018285", "0.38975197", "0.38924378", "0.38038126", "0.37987447", ...
0.5873723
0
Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account. NOTE: Currently, you can specify only one configuration recorder per account.
public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest, AsyncHandler<DescribeConfigurationRecordersRequest, DescribeConfigurationRecordersResult> asyncHandler) throws AmazonServic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeConfigurationRecordersResult> describeConfigurationRecordersAsync(DescribeConfigurationRecordersRequest describeConfigurationRecordersRequest) \n throws AmazonServiceException, AmazonClientException;", "public String getName() {\n\t\treturn this.recordingProperties.name();\n\t}",...
[ "0.5875468", "0.46924308", "0.46648645", "0.4397322", "0.4304115", "0.41488248", "0.41061965", "0.40729874", "0.40608758", "0.39790794", "0.39449808", "0.3941351", "0.3935585", "0.39220434", "0.39208665", "0.39022505", "0.38953036", "0.38902953", "0.38059914", "0.3798592", "0...
0.5031838
1
Starts recording configurations of all the resources associated with the account. You must have created at least one delivery channel to successfully start the configuration recorder.
public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest,\n AsyncHandler<StartConfigurationRecorderRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;", "public void start() {\n sy...
[ "0.5527746", "0.5254858", "0.49699625", "0.49061808", "0.48569655", "0.4805792", "0.47793967", "0.47734553", "0.47590423", "0.472163", "0.46997693", "0.46114004", "0.46060774", "0.46000338", "0.45976192", "0.45815387", "0.45679265", "0.45278975", "0.45122617", "0.4506666", "0...
0.597674
0
Starts recording configurations of all the resources associated with the account. You must have created at least one delivery channel to successfully start the configuration recorder.
public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest, AsyncHandler<StartConfigurationRecorderRequest, Void> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;", "public void start() {\n synchronized (car) {\n LOG.fine(\"Validating APPLY Record\");\n try ...
[ "0.5974598", "0.52542615", "0.49688068", "0.49036726", "0.48573422", "0.48039958", "0.47804365", "0.47745445", "0.47589064", "0.47195965", "0.4697352", "0.4610838", "0.46044353", "0.45978683", "0.45958093", "0.45796514", "0.45697868", "0.4527876", "0.451325", "0.450803", "0.4...
0.5525819
1
Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic. You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and s...
public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest,\n AsyncHandler<PutDeliveryChannelRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;", "public void putChannel(NotificationsChannel notiChannel) throws E...
[ "0.58991146", "0.5700648", "0.5608332", "0.5534192", "0.53952533", "0.53762627", "0.53323007", "0.53094566", "0.5299928", "0.5299928", "0.52881587", "0.52881587", "0.52854127", "0.52839357", "0.52809316", "0.52637386", "0.5250126", "0.5238516", "0.52355784", "0.5228405", "0.5...
0.6394344
0
Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic. You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and s...
public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest, AsyncHandler<PutDeliveryChannelRequest, Void> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;", "public void putChannel(NotificationsChannel notiChannel) throws Exception;", "Response createChannelWithPayload(@NonNull ChannelRegistrationPay...
[ "0.6394426", "0.5702496", "0.5611848", "0.5536144", "0.53982276", "0.5379577", "0.5335431", "0.5312865", "0.5303212", "0.5303212", "0.5291388", "0.5291388", "0.528876", "0.52875066", "0.5284227", "0.52668446", "0.5253363", "0.52417", "0.5238791", "0.52324414", "0.5197917", ...
0.58993787
1
Deletes the specified delivery channel. The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.
public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest,\n AsyncHandler<DeleteDeliveryChannelRequest, Void> asyncHandler)\n throws AmazonServiceException, AmazonClientException;", "public String deleteSub(Channel currentChannel)\n ...
[ "0.62607545", "0.5033921", "0.5009171", "0.4948878", "0.49452904", "0.48983783", "0.48441502", "0.48267084", "0.48119193", "0.4677046", "0.45691228", "0.4463611", "0.44493058", "0.44460395", "0.44321898", "0.44083828", "0.43965107", "0.4393642", "0.43874088", "0.43510213", "0...
0.68092763
0
Deletes the specified delivery channel. The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.
public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest, AsyncHandler<DeleteDeliveryChannelRequest, Void> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> deleteDeliveryChannelAsync(DeleteDeliveryChannelRequest deleteDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;", "public String deleteSub(Channel currentChannel)\n {\n return accessData.deleteSub(currentChannel);\n }", "public boolean ...
[ "0.68075246", "0.5031738", "0.5006201", "0.49471864", "0.4941568", "0.48972294", "0.48407054", "0.48260784", "0.481173", "0.4677191", "0.45678326", "0.44613835", "0.44473475", "0.44458106", "0.44315538", "0.4406571", "0.4394761", "0.43921018", "0.43851313", "0.4349098", "0.43...
0.6259443
1
Stops recording configurations of all the resources associated with the account.
public Future<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n synchronized (car) {\n LOG.info(\"Invalidating APPLY Record\");\n try {\n cas.destroyChannel(dir);\n cas.destroyChannel(val);\n cas.destroyChannel(mess);\n cas.destroyChannel(omss);\n cas....
[ "0.6482251", "0.6064319", "0.56256074", "0.5462462", "0.5443606", "0.5412942", "0.53987014", "0.5391267", "0.53025097", "0.52890253", "0.5280781", "0.5276029", "0.5236262", "0.5235711", "0.5230489", "0.5229387", "0.5192819", "0.5181428", "0.5143567", "0.5133319", "0.51179826"...
0.58594924
2
Stops recording configurations of all the resources associated with the account.
public Future<Void> stopConfigurationRecorderAsync(StopConfigurationRecorderRequest stopConfigurationRecorderRequest, AsyncHandler<StopConfigurationRecorderRequest, Void> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n synchronized (car) {\n LOG.info(\"Invalidating APPLY Record\");\n try {\n cas.destroyChannel(dir);\n cas.destroyChannel(val);\n cas.destroyChannel(mess);\n cas.destroyChannel(omss);\n cas....
[ "0.6482251", "0.6064319", "0.58594924", "0.56256074", "0.5462462", "0.5443606", "0.5412942", "0.53987014", "0.5391267", "0.53025097", "0.52890253", "0.5280781", "0.5276029", "0.5236262", "0.5235711", "0.5230489", "0.5229387", "0.5192819", "0.5181428", "0.5143567", "0.5133319"...
0.4905857
50
Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified. Notification of starting the delivery. Notification of delivery completed, if the delivery...
public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) \n throws AmazonServiceException, AmazonClientException;", "public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest,\n Asy...
[ "0.60782987", "0.5752535", "0.5609444", "0.48727196", "0.46867263", "0.46596432", "0.4604125", "0.44918615", "0.4461258", "0.4457175", "0.44212052", "0.4415053", "0.4404407", "0.43678582", "0.42900148", "0.4262773", "0.42575958", "0.42281303", "0.41999128", "0.41971117", "0.4...
0.6089227
0
Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified. Notification of starting the delivery. Notification of delivery completed, if the delivery...
public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest, AsyncHandler<DeliverConfigSnapshotRequest, DeliverConfigSnapshotResult> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DeliverConfigSnapshotResult> deliverConfigSnapshotAsync(DeliverConfigSnapshotRequest deliverConfigSnapshotRequest) \n throws AmazonServiceException, AmazonClientException;", "public Future<Void> putDeliveryChannelAsync(PutDeliveryChannelRequest putDeliveryChannelRequest) \n th...
[ "0.6088026", "0.6077959", "0.56090355", "0.48715034", "0.46872276", "0.46582007", "0.46040872", "0.44928983", "0.44606462", "0.44578212", "0.44187602", "0.44153017", "0.44045612", "0.43689948", "0.4290816", "0.42635378", "0.42578214", "0.4227869", "0.42003953", "0.4198663", "...
0.5751278
2
Creates a new configuration recorder to record the resource configurations. You can use this action to change the role ( roleARN ) of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role. NOTE: Currently, you can specify only one configuration recorder per ...
public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;", "public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest,\n ...
[ "0.50481737", "0.4869105", "0.45873562", "0.45172718", "0.44795382", "0.4334334", "0.42430255", "0.42152885", "0.4177094", "0.41647002", "0.4146425", "0.41365975", "0.40730664", "0.407008", "0.40637836", "0.40347418", "0.40283012", "0.4013843", "0.39934686", "0.3912276", "0.3...
0.56406367
0
Creates a new configuration recorder to record the resource configurations. You can use this action to change the role ( roleARN ) of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role. NOTE: Currently, you can specify only one configuration recorder per ...
public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest, AsyncHandler<PutConfigurationRecorderRequest, Void> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<Void> putConfigurationRecorderAsync(PutConfigurationRecorderRequest putConfigurationRecorderRequest) \n throws AmazonServiceException, AmazonClientException;", "public Future<Void> startConfigurationRecorderAsync(StartConfigurationRecorderRequest startConfigurationRecorderRequest) \n ...
[ "0.5642073", "0.5047842", "0.45872638", "0.45174208", "0.44774234", "0.43341795", "0.42438278", "0.42159456", "0.41770247", "0.41628554", "0.41472912", "0.41362822", "0.40733948", "0.4070424", "0.4063541", "0.4034238", "0.40272212", "0.40138438", "0.39946842", "0.39111403", "...
0.4870392
2
Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. You can specify a limit on the number of results returned on the page. If a limit is specified, a nextToken is returned as part of the result that you can use ...
public Future<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}", "public PageBeanFi...
[ "0.5660362", "0.5631486", "0.55803585", "0.53508013", "0.5340651", "0.52229285", "0.51622176", "0.48939565", "0.48420545", "0.47706154", "0.47566536", "0.47435504", "0.4702695", "0.46772763", "0.4606861", "0.4576158", "0.45760247", "0.4558677", "0.454448", "0.45364764", "0.45...
0.44336596
29
Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. You can specify a limit on the number of results returned on the page. If a limit is specified, a nextToken is returned as part of the result that you can use ...
public Future<GetResourceConfigHistoryResult> getResourceConfigHistoryAsync(GetResourceConfigHistoryRequest getResourceConfigHistoryRequest, AsyncHandler<GetResourceConfigHistoryRequest, GetResourceConfigHistoryResult> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}", "public PageBeanFi...
[ "0.56617635", "0.5632575", "0.55819064", "0.53520906", "0.53419274", "0.5223785", "0.516395", "0.4894122", "0.48429805", "0.4772592", "0.475803", "0.4742991", "0.47048783", "0.4678625", "0.4608398", "0.45774546", "0.45762756", "0.45595357", "0.45464095", "0.45372623", "0.4506...
0.0
-1
Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account. NOTE: Currently, you can specify only one delivery channel per account.
public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliveryChannelStatusRequest describeDeliveryChannelStatusRequest) \n throws AmazonServiceException, AmazonClientException;", "public NotificationsChannel getChannel(String channelId) throws Exception;", "@...
[ "0.5597104", "0.5590799", "0.5490315", "0.54313064", "0.53565997", "0.53253806", "0.53213346", "0.5291972", "0.52909315", "0.52909315", "0.52902436", "0.5281644", "0.5277508", "0.5259415", "0.52419126", "0.5238373", "0.52259004", "0.5154559", "0.5122016", "0.51097876", "0.509...
0.6111185
0
Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account. NOTE: Currently, you can specify only one delivery channel per account.
public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest, AsyncHandler<DescribeDeliveryChannelsRequest, DescribeDeliveryChannelsResult> asyncHandler) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeDeliveryChannelsResult> describeDeliveryChannelsAsync(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest) \n throws AmazonServiceException, AmazonClientException;", "public Future<DescribeDeliveryChannelStatusResult> describeDeliveryChannelStatusAsync(DescribeDeliver...
[ "0.6110857", "0.559632", "0.5591946", "0.54906213", "0.5357151", "0.53259295", "0.53218395", "0.529259", "0.52912277", "0.52912277", "0.5290833", "0.52822286", "0.5278098", "0.52597797", "0.5243151", "0.5238689", "0.52262884", "0.51557094", "0.5122773", "0.51102877", "0.50975...
0.5431373
4
Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account. NOTE:Currently, you can specify only one configuration recorder per account.
public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest) throws AmazonServiceException, AmazonClientException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest,\n AsyncHandler<DescribeConfigurationRecorderStatusRequest, DescribeConfigurationRecorderStatusResult> asyncHandler)\n ...
[ "0.61011386", "0.5916069", "0.54097134", "0.53902155", "0.53902155", "0.53607076", "0.53607076", "0.53607076", "0.53607076", "0.5297541", "0.47863257", "0.47403592", "0.46949956", "0.46601203", "0.46590117", "0.46543893", "0.46271545", "0.45939794", "0.45766482", "0.45741585", ...
0.7083716
0
Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account. NOTE:Currently, you can specify only one configuration recorder per account.
public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest, AsyncHandler<DescribeConfigurationRecorderStatusRequest, DescribeConfigurationRecorderStatusResult> asyncHandler) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<DescribeConfigurationRecorderStatusResult> describeConfigurationRecorderStatusAsync(DescribeConfigurationRecorderStatusRequest describeConfigurationRecorderStatusRequest) \n throws AmazonServiceException, AmazonClientException;", "public Recording.Status getStatus() {\n\t\treturn status;...
[ "0.7084941", "0.59142995", "0.54072577", "0.5388508", "0.5388508", "0.5359166", "0.5359166", "0.5359166", "0.5359166", "0.5294496", "0.4784541", "0.4737802", "0.4692367", "0.4657992", "0.46577156", "0.46552607", "0.46256158", "0.45922348", "0.457393", "0.45714337", "0.4549846...
0.6102229
1
String[] must be length 3; first index is id.toString(), second is message, third is time
MessageService(Player[] players) { this.players = players; log = new ArrayList<String[]>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void testStringArray() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tString array[] = { \"Gimme\", \"a\", \"break\", \"dude\" };\n\t\tmessage.setPayload(array);\n\t\tsend(message);\n\t}", "private static String[] m19261a(long[] jArr, long[] jArr2) {\n AppMethodBeat.m2...
[ "0.5940728", "0.56266665", "0.558878", "0.53958255", "0.53873825", "0.5350612", "0.53223604", "0.5245006", "0.5234461", "0.5135935", "0.51341164", "0.5115548", "0.5094964", "0.50617176", "0.49932685", "0.49911743", "0.4945392", "0.49332413", "0.49231458", "0.49161798", "0.489...
0.0
-1
appends message with "PX: ", where X is playerID
boolean send(String message, PlayerID from, PlayerID to) { for (Player player : players) { if (player.id().equals(to)) { player.sendMsg("P" + from.toString() + ": " + message); log.add(new String[] { from.toString(), message, String.valueOf(System.currentTimeMillis()) }); } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getMessage(int player) {\n if (player == 0) {\n return \"Player\";\n }\n return \"CPU\";\n }", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "private void sendMessagetoRespectivePlayer(int num) {\n...
[ "0.6219398", "0.5972029", "0.59575194", "0.5761679", "0.5683666", "0.5673018", "0.5636179", "0.5602212", "0.5591949", "0.5566642", "0.5557679", "0.5497053", "0.54354286", "0.5405748", "0.54042256", "0.5398009", "0.5397633", "0.5387068", "0.53860354", "0.5377462", "0.5370499",...
0.0
-1
does not include timestamp info
ArrayList<String> requestLog(PlayerID requester) { ArrayList<String> output = new ArrayList<String>(); for (Player player : players) { if (player.id().equals(requester)) { for (String[] q : log) { if (q[0].contains(requester.toString())) output.add(q[1]); } } } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isSigned_infos_timestamp() {\n return false;\n }", "@Override\r\n\tpublic long getTimestamp() {\n\t\treturn -1;\r\n\t}", "@Override\n public long getTimestamp() {\n return timestamp;\n }", "String getTimestamp();", "String getTimestamp();", "boolean hasTimesta...
[ "0.6767597", "0.659148", "0.64716077", "0.6440329", "0.6440329", "0.6430687", "0.6430687", "0.6430687", "0.6430687", "0.6430687", "0.6430687", "0.6430687", "0.6367987", "0.6367742", "0.6342923", "0.63343513", "0.6319175", "0.62926537", "0.6279318", "0.62745386", "0.6267032", ...
0.0
-1
Calendar calendar=new GregorianCalendar(2017,0,25); Date date=calendar.getTime(); Room room1=new Room(1,100,2,date,"Zirka","Kiev"); Room room2=new Room(2,110,3,date,"Hilton","Kiev"); Room room3=new Room(3,200,4,date,"Hilton","Kiev"); Room room4=new Room(4,150,3,date,"Hilton","Kiev"); Room[] rooms=new Room[2]; rooms[0]=...
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n try {\n Model m = new Model();\n //Customer c = new Customer(\"Pam Satan III\", \"bad@inter.net\", \"Norwich\", \"V\", \"02/12\", \"2136871466\");\n //c = m.CUSTOMERS.getCustomer(c.getName(), c.getEmail());\n /*Customer p...
[ "0.67278385", "0.63831", "0.63093156", "0.6183257", "0.6129377", "0.6064313", "0.60338867", "0.59939355", "0.5979546", "0.59146076", "0.59017575", "0.5899112", "0.58907175", "0.5861457", "0.5767716", "0.57378286", "0.573513", "0.56813514", "0.56784797", "0.5677419", "0.567571...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static IndividualInformationFragment newInstance(long individualId) { IndividualInformationFragment fragment = new IndividualInformationFragment(); Bundle args = new Bundle(); args.putLong(INDIVIDUAL_ID, individualId); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_individual_information, container, false); if(member != null) { TextView nameView = v.findViewById(R.id.member_information_member_name...
{ "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
/ Create xml for bottom sheet.
public void createViewItems(View v, final Member member) { TableLayout tableLayout = v.findViewById(R.id.member_information_table_layout); tableLayout.setGravity(Gravity.CENTER); /* Set the horizontal separating border. */ tableLayout.addView(getBorderView()); /* For phone */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_menu_prueba, container, false);\n\n btn_bottom_sheet = (Button) view.findViewById(R.id.btn_bottom_sheet);\n bottom_sheet = (Linea...
[ "0.58001333", "0.5799423", "0.57784504", "0.5572429", "0.5549788", "0.5498309", "0.5448956", "0.5420219", "0.5409715", "0.54077977", "0.53672343", "0.53432214", "0.531649", "0.5304369", "0.52670556", "0.5205819", "0.5187485", "0.51438636", "0.51308364", "0.51134056", "0.51081...
0.0
-1
/ Phone Number link.
private TextView getPhoneTextView(String content) { TextView textView = getTextView(content); TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT, TableRow.LayoutParams.WRAP_CONTENT); layoutParams.weight = 20f; layoutParams.gravity = Gravity....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "public String getPhoneNumber() {\r\n return number;\r\n }", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNumber(){\n\t\t \n\t\t Telepho...
[ "0.7069675", "0.7069675", "0.7069675", "0.70168114", "0.6916356", "0.6838308", "0.68039", "0.6758538", "0.6741988", "0.6740571", "0.67246914", "0.6719776", "0.6698281", "0.66968036", "0.66850924", "0.6653973", "0.6649202", "0.6646238", "0.66449964", "0.66428864", "0.6640036",...
0.0
-1
/ The SMS Text Message button next to the phone number.
private ImageButton getPhoneImageButton(final String content) { ImageButton imageButton = new ImageButton(this.getContext()); TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT, TableRow.LayoutParams.WRAP_CONTENT); layoutParams.weight = 0f; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendSmsNew(phoneNum);\r\n\t\t\t\tsetTextSend();\r\n\t\t\t}", "public void sendMessage(View buttonView)\n {\n state = 0;\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewByI...
[ "0.66984624", "0.6621541", "0.66147375", "0.6475605", "0.6367677", "0.6362509", "0.6335388", "0.6310011", "0.6280395", "0.6267969", "0.6230612", "0.60913926", "0.60486156", "0.60461605", "0.60136515", "0.60133994", "0.60012674", "0.5999881", "0.59865564", "0.59759736", "0.593...
0.58215636
29
/ Email link text View.
private TextView getEmailTextView(String content) { TextView textView = getTextView(content); TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.MATCH_PARENT); layoutParams.weight = 1; Linkify.addLinks(textView, Linkif...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String linkText();", "Observable<String> messageBodyRecipientTextViewText();", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n TextView tv=(TextView)findViewById(R.id.txtView);\n ...
[ "0.70264375", "0.67030835", "0.6285912", "0.6260847", "0.61289465", "0.61111003", "0.60709095", "0.59926915", "0.5972659", "0.58758044", "0.587346", "0.58125067", "0.57822067", "0.57599807", "0.5754433", "0.5746454", "0.5741268", "0.5729787", "0.5705055", "0.568666", "0.56818...
0.7378907
0
/ Underneath text showing Individual or Household.
private TextView getIndividualHouseholdTextView(String content) { TextView textView = getTextView(content); TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT); layoutParams.weight = 1f; textView.setLayout...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }", ...
[ "0.65321374", "0.621902", "0.6141568", "0.61067307", "0.5973308", "0.59082425", "0.5871989", "0.5866203", "0.58299506", "0.5798294", "0.5763763", "0.57563615", "0.5752289", "0.57211745", "0.57039535", "0.56929076", "0.56723136", "0.5661329", "0.5659291", "0.5650448", "0.56461...
0.67227304
0
/ Generic TextView creation.
private TextView getTextView(String content) { TextView textView = new TextView(this.getContext()); textView.setEms(30); textView.setTextColor(getResources().getColor(R.color.ldstools_black)); if(content != null && !content.isEmpty()) { textView.setText(content); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract TextView getTextView();", "Text createText();", "@Override\n\tpublic View getView(Context context, ViewGroup parent) {\n\t\ttv = new TextView(context);\n\t\treturn tv;\n\t}", "public CustomTextView(Context context) {\n\t\tsuper(context);\n\t}", "public TextWithLabel(Context context, AttributeSet a...
[ "0.75386286", "0.7176444", "0.6981829", "0.6958659", "0.6942979", "0.6918209", "0.6898624", "0.6834429", "0.674891", "0.6717132", "0.6675211", "0.6671226", "0.66399884", "0.6577318", "0.6542897", "0.6538999", "0.6474559", "0.64576685", "0.6409738", "0.63759094", "0.63737214",...
0.6861206
7
/ TextView for no data.
private TextView getNoDataTextView(String content) { TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT); layoutParams.gravity = Gravity.CENTER_HORIZONTAL; TextView textView = getTextView(content); textVie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void noDataFoundTextView();", "@MediumTest\n\t public void testInfoTextViewText_isEmpty() {\n\t assertEquals(\"\", mtextView1.getText());\n\t }", "public static void displayNoResults()\n {\n tableData.add(new Company(null, \"No results found\"));\n tableView.setItems(tableData); ...
[ "0.82532215", "0.70363235", "0.6858785", "0.67501926", "0.6728538", "0.66758233", "0.6638112", "0.65936446", "0.65471745", "0.65120953", "0.65120953", "0.64817697", "0.64241713", "0.6351484", "0.63202983", "0.63136625", "0.6304757", "0.6298403", "0.6294386", "0.62803483", "0....
0.7668352
1
/ Separating horizontal border.
private View getBorderView() { View view = new View(this.getContext()); TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1); view.setLayoutParams(layoutParams); view.setBackgroundColor(getResources().getColor(R.color.ldstools_gray_light))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBorderHorizontal() {\n System.out.println(\"borderHorizontal\");\n int x = 0;\n int y = 0;\n int decks = 0;\n int i = 0;\n int[][] field = null;\n int state = 0; \n instance.borderHorizontal(x, y, decks, i, field, state);\n ...
[ "0.69684523", "0.6623149", "0.6543728", "0.64780784", "0.6444522", "0.6350783", "0.63417155", "0.63005364", "0.6276092", "0.6135395", "0.6024818", "0.6009567", "0.59848964", "0.5974013", "0.59210145", "0.590801", "0.58656305", "0.5829833", "0.5784316", "0.57548195", "0.574923...
0.5406732
61
Creates a default instance.
public AnalysisContext createDefaultAnalysisContext(ApplicationGroup group) { AnalysisContext defaultAnalysisContext = new AnalysisContext(group); ensureSystemRulesPathsPresent(defaultAnalysisContext); entityManager.persist(defaultAnalysisContext); return defaultAnalysisContext; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract S createDefault();", "private Default()\n {}", "Instance createInstance();", "defaultConstructor(){}", "public Instance() {\n }", "final Truerandomness defaultInstance() {\n\n\t\ttry {\n\t\t\treturn newInstance();\n\t\t} catch (Throwable t) {\n\t\t\t// hide\n\t\t}\n\n\t\t// n...
[ "0.74622464", "0.7266583", "0.69056815", "0.6843333", "0.66286296", "0.66246265", "0.65477836", "0.6528028", "0.6491646", "0.6456478", "0.6328999", "0.63220507", "0.63107383", "0.6302806", "0.6295166", "0.62434435", "0.61760706", "0.6164891", "0.6164861", "0.61559397", "0.615...
0.0
-1
Creates a new instance.
public AnalysisContext create(AnalysisContext analysisContext) { this.ensureSystemRulesPathsPresent(analysisContext); this.loadPackagesToAnalysisContext(analysisContext); entityManager.persist(analysisContext); return analysisContext; }
{ "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;", "public v...
[ "0.7834167", "0.72893584", "0.70771503", "0.7048765", "0.70209944", "0.6839274", "0.67782235", "0.6770133", "0.67429745", "0.6701039", "0.6690158", "0.6630354", "0.66046286", "0.6600776", "0.6600776", "0.6597608", "0.6592152", "0.6564594", "0.65268713", "0.652679", "0.6475239...
0.0
-1
Updates an existing instance.
public AnalysisContext update(AnalysisContext analysisContext) { AnalysisContext original = this.get(analysisContext.getId()); this.ensureSystemRulesPathsPresent(analysisContext); this.loadPackagesToAnalysisContext(analysisContext); analysisContext.setApplicationGroup(original.getAp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void update(String identifier, T instance) throws IOException;", "public void update(T instance) throws Exception {\n String primaryKeyValue=ReflectionUtils.getFieldValue(instance,instance.getPrimaryKeyName());\n if(null==primaryKeyValue){\n throw new Exception(\"This is no primary key v...
[ "0.6620575", "0.6391556", "0.63141656", "0.6280964", "0.6198101", "0.59903586", "0.59903586", "0.59579283", "0.5925469", "0.58945876", "0.5844963", "0.5772836", "0.5728505", "0.5676608", "0.56695056", "0.56695056", "0.56404114", "0.5567734", "0.55664927", "0.55634886", "0.554...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { for(int i = 1;i<100;i++){ MyThread mt = new MyThread("Thread"+i); Thread t = new Thread(mt); t.start(); } }
{ "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
// ACTIVE > EVENTS //
public void setActiveListener(boolean active) { if (active) { // Support without at load MassivePlugin plugin = this.getPlugin(); if (plugin.isEnabled()) { Bukkit.getPluginManager().registerEvents(this, this.getPlugin()); } } else { HandlerList.unregisterAll(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void onActive(AcStatusEvent event) {\n\n\t\t}", "BasicEvents createBasicEvents();", "private void createEvents() {\n\t}", "public interface ActiveEvent {\n\n /**\n * Dispatch the event to its target, listeners of the events source,\n * or do whatever it is this event is suppo...
[ "0.68703955", "0.65916324", "0.65146685", "0.63341033", "0.6066739", "0.60426253", "0.60134894", "0.5998379", "0.5978087", "0.59634393", "0.59355605", "0.5929459", "0.5919127", "0.59106326", "0.59106326", "0.59106326", "0.58961326", "0.5878147", "0.58634824", "0.58529055", "0...
0.0
-1
// ACTIVE > TASK //
public void setActiveTask(boolean active) { if (active) { if (this.getPeriod() != null) { // Support without at load MassivePlugin plugin = this.getPlugin(); if (plugin.isEnabled()) { if (this.isSync()) { this.task = Bukkit.getScheduler().runTaskTimer(this.getPlugi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int activeTasks();", "boolean updateActiveTask(Task task);", "public interface Task extends Runnable {\n\n /**\n * Get the task name\n *\n * @return\n */\n public String getTaskName();\n\n /**\n *\n * @return true if the task is in active, else false\n */\n public boolea...
[ "0.74015385", "0.719019", "0.69491816", "0.690613", "0.68000823", "0.6709815", "0.67001945", "0.6673955", "0.66594356", "0.6637147", "0.65756226", "0.65188956", "0.65091777", "0.64779073", "0.6464802", "0.6464802", "0.6464802", "0.6461576", "0.6441868", "0.6418894", "0.640376...
0.6446069
18
// ACTIVE > INNER //
public void setActiveInner(boolean active) { // NOTE: Here you can add some extra custom logic. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getActive()\r\n/* */ {\r\n/* 200 */ return this.active;\r\n/* */ }", "int isActive();", "public boolean isActive() { return true; }", "boolean isActive();", "boolean isActive();", "boolean isActive();", "public Active getActive() {\n return _active;\n }", "pub...
[ "0.61812365", "0.6043999", "0.6040526", "0.6032546", "0.6032546", "0.6032546", "0.587033", "0.5867184", "0.5867184", "0.58398366", "0.58398366", "0.58394533", "0.58356625", "0.58056515", "0.5802301", "0.5802301", "0.5802301", "0.5802301", "0.5802301", "0.5802301", "0.5802301"...
0.71119213
0
// IS OFF HAND //
public static boolean isOffHand(PlayerInteractEntityEvent event) { try { return event.getHand() == org.bukkit.inventory.EquipmentSlot.OFF_HAND; } catch (Throwable t) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void off() {\n\n\t}", "@Override\r\n\tpublic void off() {\n\r\n\t}", "@Override\n\tpublic void off() {\n\n\t}", "public void off() throws Exception;", "@Override\n\tpublic void turnOff() {\n\n\t}", "public void turn_off () {\n this.on = false;\n }", "public void noteOff()\n\t{\n\t\ttim...
[ "0.7202544", "0.70998317", "0.7097315", "0.6898583", "0.675851", "0.6649892", "0.6478214", "0.6464344", "0.6457769", "0.64170825", "0.63725674", "0.6357615", "0.634019", "0.63249034", "0.63214666", "0.62699074", "0.6269071", "0.623589", "0.6220539", "0.6212829", "0.62081325",...
0.0
-1
/ OverlayItem item = hOverlays.get(index); AlertDialog.Builder dialog = new AlertDialog.Builder(pcontext); dialog.setTitle(item.getTitle()); dialog.setMessage(item.getSnippet()); dialog.show();
@Override protected boolean onTap(int index) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showPopUp() {\n ListView listViewItems = new ListView(this);\n listViewItems.setAdapter(adapter);\n listViewItems.setAdapter(adapter);\n\n // put the ListView in the pop up\n alertDialog = new AlertDialog.Builder(MainActivity.this)\n .setView(listViewI...
[ "0.6119529", "0.61047375", "0.60630524", "0.6048027", "0.6023161", "0.5933967", "0.59222716", "0.5876435", "0.5858195", "0.5855563", "0.58516175", "0.5847033", "0.582627", "0.58177733", "0.58132434", "0.58063453", "0.58028996", "0.58005995", "0.57991683", "0.57855105", "0.574...
0.0
-1
TODO Autogenerated method stub
@Override public void draw(Canvas arg0, MapView arg1, boolean arg2) { super.draw(arg0, arg1, arg2); }
{ "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
Stores the userfriendly name of the shape
private Primitive(String shape) { this.shape = shape; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getShapeName();", "void setShapeLabel(String Label);", "public static String getCurrentShapeName() {\n\t\treturn currentShapeName;\n\t}", "String getLayerShapeName();", "String getShapeLabel();", "public void setShape(Info shape) {\n \n }", "public void setShape(String shape)\n\t{\n \t \n...
[ "0.77659214", "0.6842729", "0.6826816", "0.6742754", "0.6693903", "0.6250861", "0.6142378", "0.6122507", "0.6122308", "0.6093659", "0.59950376", "0.5953063", "0.5942682", "0.5927368", "0.58863795", "0.58226395", "0.5792852", "0.57656765", "0.5691445", "0.56913424", "0.5670475...
0.0
-1
Returns the userfriendly name of the shape
public String toString() { return shape; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getShapeName();", "String getLayerShapeName();", "String getShapeLabel();", "public String whatShape();", "public static String getCurrentShapeName() {\n\t\treturn currentShapeName;\n\t}", "@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toSt...
[ "0.8744489", "0.78085697", "0.7744992", "0.72506595", "0.687967", "0.67593014", "0.66548145", "0.6600809", "0.65518904", "0.6461386", "0.64506435", "0.6282266", "0.62779033", "0.62591356", "0.6252478", "0.6251019", "0.62115633", "0.6204647", "0.61751735", "0.6168295", "0.6168...
0.6983785
4
A constructor for the mesh class for nonprimitive geometries
public Mesh(int[][] faces, Vector[] verts) { // Will be read in from a file this.faces = faces; this.verts = verts; normals = new Vector[faces.length]; // One normal for each face ds = new double[faces.length]; // One d value for each face for (int i = 0; i < faces.length; i++) { normals[i] = this.normal(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mesh() {\n this(DEFAULT_COORDS);\n }", "public Mesh(String shape) {\n\t\tthis(primitiveFromStr(shape)); // Call the other constructor for primitive geometries\n\t}", "public ShapeTriMesh() {\n\t\tsuper();\n\t\tthis.setName(UUID.randomUUID().toString());\n\t}", "public Mesh() {\r\n \tthis....
[ "0.7794233", "0.73954946", "0.7273254", "0.72416824", "0.72314286", "0.717358", "0.69835323", "0.6844675", "0.6817136", "0.67603886", "0.6720665", "0.6647357", "0.65744865", "0.65683013", "0.6564657", "0.6479718", "0.64473003", "0.6415116", "0.63958776", "0.63154566", "0.6227...
0.5556199
69
A constructor for the mesh class for primitive geometries
public Mesh(Primitive shape) { switch (shape) { case CUBE: generateCube(); break; case CUBOID: generateCube(); scale(2, 1, 1); // Stretch the cube along the x-axis to give a cuboid break; case TRIANGULAR_PRISM: generatePrism(); break; case SPHERE: generateSphere(); brea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mesh() {\n this(DEFAULT_COORDS);\n }", "public Mesh(String shape) {\n\t\tthis(primitiveFromStr(shape)); // Call the other constructor for primitive geometries\n\t}", "public Mesh() {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n...
[ "0.752818", "0.7372802", "0.7278099", "0.712675", "0.70095944", "0.6884514", "0.6804084", "0.67596227", "0.67220056", "0.66917104", "0.66535825", "0.6638034", "0.6625776", "0.6560493", "0.64182144", "0.64081293", "0.63656926", "0.63473916", "0.6337472", "0.6334738", "0.622198...
0.721187
3
A constructor for the Mesh class for primitive geometries where the shape needs to be determined from its name
public Mesh(String shape) { this(primitiveFromStr(shape)); // Call the other constructor for primitive geometries }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ShapeTriMesh() {\n\t\tsuper();\n\t\tthis.setName(UUID.randomUUID().toString());\n\t}", "public Mesh(Primitive shape) {\n\t\tswitch (shape) {\n\t\t\tcase CUBE:\n\t\t\t\tgenerateCube();\n\t\t\t\tbreak;\n\t\t\tcase CUBOID:\n\t\t\t\tgenerateCube();\n\t\t\t\tscale(2, 1, 1); // Stretch the cube along the x-axis...
[ "0.7233299", "0.7155353", "0.67610234", "0.67478615", "0.6706788", "0.6488349", "0.6301576", "0.62363833", "0.62114805", "0.61978996", "0.6146003", "0.6141299", "0.60964876", "0.60951287", "0.60418487", "0.6040869", "0.60276043", "0.60148686", "0.59989494", "0.5981388", "0.59...
0.8264852
0
Returns a primitive shape as a Primitive object from its name/String representation
public static Primitive primitiveFromStr(String shape) { shape = shape.trim(); switch (shape) { case "Cube": return Primitive.CUBE; case "Cuboid": return Primitive.CUBOID; case "Triangular prism": return Primitive.TRIANGULAR_PRISM; case "Sphere": return Primitive.SPHERE; case "Convex ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Primitive(String shape) {\n\t\t\tthis.shape = shape;\n\t\t}", "PrimitiveType(String name) {\n\tthis.primitiveElem = new PrimitiveElem(name);\n\t\n }", "public static DataPrimitive of(PrimitiveType primitiveType, VariableName variableName) {\n return new DataPrimitive(\n variableName,\n ...
[ "0.7309327", "0.6738547", "0.6406399", "0.6151789", "0.6004581", "0.60038245", "0.5883975", "0.5782555", "0.5731998", "0.56511766", "0.5620622", "0.56187564", "0.5593262", "0.5592575", "0.5590723", "0.55815554", "0.55763036", "0.5572789", "0.55350024", "0.5474297", "0.5465188...
0.76681507
0
Creates the vertices and faces that define a cube of side length 2 units
private void generateCube() { verts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)}; verts[0].setElement(0, -1); verts[0].setElement(1, -1); verts[0].setElement(2, -1); verts[1].setElement(0, 1); verts[1].setElement(1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createCube(float x, float y, float z){\r\n\t\tboolean[] sides = checkCubeSides((int)x,(int)y,(int)z);\r\n\t\tfloat[] color = BlockType.color(blocks[(int)x][(int)y][(int)z]);\r\n\t\t\r\n//\t\t gl.glNormal3f(0.0f, 1.0f, 0.0f);\r\n\t\tif(sides[0]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tverte...
[ "0.7406442", "0.73660535", "0.73304194", "0.7162521", "0.6756996", "0.6625802", "0.6612362", "0.656734", "0.65505254", "0.6298832", "0.6268742", "0.6237462", "0.62337303", "0.6229326", "0.6205036", "0.6189189", "0.61617625", "0.61486", "0.6143528", "0.6134301", "0.6062339", ...
0.78625673
0
Creates the vertices and faces that define a triangular prism with sides of length 2
private void generatePrism() { double halfAltitude = Math.sin(Math.PI / 3); // The cross-section is an equilateral triangle with sides of length 2 units. The altitude is the height of the triangle with one edge horizontal verts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public Shape createShape(RenderContext ctx) {\n float v[] = { -1, -1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, // front face\r\n -1, -1, -1, -1, -1, 1, -1, 1, 1, -1, 1, -1, // left face\r\n -1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1 }; // bottom face\r\n\r\n // T...
[ "0.6167903", "0.6118857", "0.6034279", "0.59991217", "0.59595466", "0.59210604", "0.5913202", "0.58041966", "0.57696694", "0.5724866", "0.5717725", "0.57101846", "0.56997454", "0.56385845", "0.55345976", "0.5502206", "0.5499063", "0.5464177", "0.5454458", "0.5451688", "0.5436...
0.7691077
0
Creates the vertices and faces that define an approximation of a sphere with radius 1
private void generateSphere() { int segments = 14; int rings = 15; // Use an odd number of rings of faces so that halfway up the sphere is the middle of a ring and not a loop of edges verts = new Vector[segments * (rings - 1) + 2]; // There are rings + 1 rings of vertices, but the first and last of these are each...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\...
[ "0.73659265", "0.6895095", "0.6706584", "0.6666535", "0.66356397", "0.65258765", "0.6438559", "0.643035", "0.6427336", "0.6408753", "0.63298154", "0.63137585", "0.6279756", "0.6212963", "0.6166902", "0.61582", "0.615101", "0.61340296", "0.6121808", "0.60497683", "0.6045205", ...
0.7976449
0
Creates the vertices and faces that define the approximation of a cylinder of radius 1 and height 2 that has been cut in vertically in half
private void generateHalfCylinder() { int segments = 32; verts = new Vector[segments * 2]; faces = new int[4 * segments - 4][3]; double heading = 0; double headingIncrement = Math.PI / (segments - 1); // The increment in heading between segments of vertices for (int s = 0; s < segments; s++) { double x =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeCylinder (float radius, int radialDivisions, int heightDivisions)\r\n {\r\n \t// Midpoint for top and bottom surfaces\r\n \tPoint midTop = new Point( 0f, 0.5f, 0f);\r\n \tPoint midBot = new Point( 0f, -0.5f, 0f );\r\n \t\r\n \tPoint upper[] = new Point[radialDivisions + 1];\r\n ...
[ "0.74141616", "0.7180983", "0.6534577", "0.6443094", "0.6325939", "0.62532634", "0.6214325", "0.61043334", "0.6033015", "0.5941839", "0.5917603", "0.5874169", "0.5848993", "0.5822796", "0.5736581", "0.5726616", "0.57251155", "0.56994885", "0.56539667", "0.56462157", "0.564001...
0.7465177
0
Stretches the geometry parallel to the object space axes
public void scale(double xScale, double yScale, double zScale) { // Create a matrix that will transform vertices to their new positions Matrix scaleMatrix = new Matrix(3, 3); scaleMatrix.setElement(0, 0, xScale); scaleMatrix.setElement(1, 1, yScale); scaleMatrix.setElement(2, 2, zScale); for (int i = 0; i <...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble ...
[ "0.61038756", "0.5853969", "0.56565", "0.56296396", "0.54492897", "0.54189163", "0.5397656", "0.53879243", "0.5357473", "0.53415453", "0.53393626", "0.5327451", "0.53194404", "0.53066796", "0.52869606", "0.5266498", "0.5236394", "0.5231254", "0.5230797", "0.5214075", "0.52020...
0.0
-1
Returns a list of the vertices for the mesh's arbitrarily orientated bounding box (AOBB)
public Vector[] getBoxVerts() { return boxVerts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String bboxVertices(){\n \treturn \"0.5 0.5 0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5 -0.5\";\n }", "private void calcBoxVerts() {\n\t\tif (verts != null) {\n\t\t\tdouble minX = verts[0].getElement(0);\n\t\t\tdouble maxX = minX;\n\t\t\tdoub...
[ "0.7128893", "0.6682696", "0.66774225", "0.62033165", "0.61741674", "0.6001924", "0.5957094", "0.59271306", "0.59174734", "0.5902069", "0.5880878", "0.5858688", "0.5822355", "0.5774547", "0.57655567", "0.57447094", "0.57215506", "0.56921357", "0.5664265", "0.5650674", "0.5641...
0.6930304
1
Calculates the vertices for the mesh's AOBB
private void calcBoxVerts() { if (verts != null) { double minX = verts[0].getElement(0); double maxX = minX; double minY = verts[0].getElement(1); double maxY = minY; double minZ = verts[0].getElement(2); double maxZ = minZ; for (int i = 1; i < verts.length; i++) { if (verts[i].getElement(0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVertices();", "private E3DTexturedVertex getVertexA(){\r\n\t\treturn vertices[0];\r\n\t}", "public float[] getVertices() {\r\n\t\treturn vertices;\r\n\t}", "int getNumberOfVertexes();", "public abstract Vector2[] getVertices();", "public void constructBoundingBox()\r\n\t{\n\t\tdouble a = m_Qmin.x;...
[ "0.6272297", "0.61520696", "0.6100609", "0.603955", "0.60072947", "0.60034573", "0.5987499", "0.5962561", "0.5950289", "0.5947953", "0.5940264", "0.5918363", "0.5874135", "0.58434397", "0.5831181", "0.5825421", "0.5819282", "0.57931364", "0.57726556", "0.5768122", "0.5755573"...
0.6198718
1
Returns the list of faces
public int[][] getFaces() { return this.faces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int faces() { \n return t...
[ "0.8220528", "0.7658844", "0.7405497", "0.7400151", "0.68536735", "0.6538878", "0.6307922", "0.6165371", "0.60908055", "0.60908055", "0.6036322", "0.60187143", "0.60085726", "0.5968117", "0.5942875", "0.590417", "0.590194", "0.5883003", "0.5882622", "0.5879941", "0.58714074",...
0.7683649
1
Returns the list of vertices
public Vector[] getVerts() { return this.verts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<V> getVertices();", "List<V> getVertexList();", "public List<Vertex> vertices() {\n return Collections.unmodifiableList(this.vertices);\n }", "Set<Vertex> getVertices();", "@Override\r\n\tpublic ArrayList<E> getVertices() {\r\n\t\tArrayList<E> verts = new ArrayList<>();\r\n\...
[ "0.867833", "0.8463351", "0.83876854", "0.82238406", "0.8214296", "0.80935305", "0.8004439", "0.7995259", "0.79060954", "0.7890604", "0.78856665", "0.78736824", "0.78621477", "0.78621477", "0.7859628", "0.7762643", "0.77407455", "0.7714698", "0.7706783", "0.7689764", "0.76581...
0.70970047
43
Returns the list of normals
public Vector[] getNormals() { return this.normals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float[] getNormals() {\r\n\t\treturn normals;\r\n\t}", "public Vector2f[] getNormals() {\n\t\treturn normals.clone();\n\t}", "private void calculateNormals() {\n int i;\n float[] l_vect1 = new float[3];\n float[] l_vect2 = new float[3];\n float[] l_vect3 = new float[3];\n ...
[ "0.83938307", "0.8063396", "0.75577503", "0.7032056", "0.6860664", "0.6728076", "0.64994115", "0.6318355", "0.6246937", "0.62195194", "0.6183342", "0.61391085", "0.60550493", "0.6025265", "0.5986916", "0.5983889", "0.5953668", "0.59266055", "0.5883857", "0.5847084", "0.583280...
0.7951869
2