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
Deletes a Lesson from the data store.
void deleteLesson(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteLesson(Module module, Lesson target);", "private CommandResult deleteLesson() throws KolinuxException {\n timetable.executeDelete(parsedArguments);\n logger.log(Level.INFO, \"User has deleted\" + parsedArguments[0].toUpperCase()\n +\n \" from the timetable.\...
[ "0.71462256", "0.6398769", "0.6342015", "0.6302202", "0.62542427", "0.6085031", "0.6067302", "0.6054821", "0.6045469", "0.60378194", "0.6018198", "0.6017859", "0.6013294", "0.60039157", "0.5980386", "0.5968739", "0.59580296", "0.59421104", "0.59412414", "0.59408104", "0.59322...
0.6952918
1
/ access modifiers changed from: private / access modifiers changed from: public
private void refreshUsers(int i) { UserInfo userInfo; if (i != -10000) { this.mForcePictureLoadForUserId.put(i, true); } if (!this.mPauseRefreshUsers) { boolean z = this.mForcePictureLoadForUserId.get(-1); SparseArray sparseArray = new SparseArray(this.mUsers.size()); int size = this.mUsers.size(); for (int i2 = 0; i2 < size; i2++) { UserRecord userRecord = this.mUsers.get(i2); if (!(userRecord == null || userRecord.picture == null || (userInfo = userRecord.info) == null || z || this.mForcePictureLoadForUserId.get(userInfo.id))) { sparseArray.put(userRecord.info.id, userRecord.picture); } } this.mForcePictureLoadForUserId.clear(); final boolean z2 = this.mAddUsersWhenLocked; new AsyncTask<SparseArray<Bitmap>, Void, ArrayList<UserRecord>>() { /* class com.android.systemui.statusbar.policy.UserSwitcherController.AnonymousClass2 */ /* access modifiers changed from: protected */ public ArrayList<UserRecord> doInBackground(SparseArray<Bitmap>... sparseArrayArr) { boolean z = false; SparseArray<Bitmap> sparseArray = sparseArrayArr[0]; List<UserInfo> users = UserSwitcherController.this.mUserManager.getUsers(true); UserRecord userRecord = null; if (users == null) { return null; } ArrayList<UserRecord> arrayList = new ArrayList<>(users.size()); int currentUser = ActivityManager.getCurrentUser(); boolean z2 = UserSwitcherController.this.mUserManager.getUserSwitchability(UserHandle.of(ActivityManager.getCurrentUser())) == 0; UserInfo userInfo = null; for (UserInfo userInfo2 : users) { boolean z3 = currentUser == userInfo2.id; UserInfo userInfo3 = z3 ? userInfo2 : userInfo; boolean z4 = z2 || z3; if (userInfo2.isEnabled()) { if (userInfo2.isGuest()) { userRecord = new UserRecord(userInfo2, null, true, z3, false, false, z2); } else if (userInfo2.supportsSwitchToByUser()) { Bitmap bitmap = sparseArray.get(userInfo2.id); if (bitmap == null && (bitmap = UserSwitcherController.this.mUserManager.getUserIcon(userInfo2.id)) != null) { int dimensionPixelSize = UserSwitcherController.this.mContext.getResources().getDimensionPixelSize(C0012R$dimen.max_avatar_size); bitmap = Bitmap.createScaledBitmap(bitmap, dimensionPixelSize, dimensionPixelSize, true); } arrayList.add(new UserRecord(userInfo2, bitmap, false, z3, false, false, z4)); } } userInfo = userInfo3; } if (arrayList.size() > 1 || userRecord != null) { Prefs.putBoolean(UserSwitcherController.this.mContext, "HasSeenMultiUser", true); } boolean z5 = !UserSwitcherController.this.mUserManager.hasBaseUserRestriction("no_add_user", UserHandle.SYSTEM); boolean z6 = userInfo != null && (userInfo.isAdmin() || userInfo.id == 0) && z5; boolean z7 = z5 && z2; boolean z8 = (z6 || z7) && userRecord == null; if ((z6 || z7) && UserSwitcherController.this.mUserManager.canAddMoreUsers()) { z = true; } boolean z9 = !z2; if (userRecord != null) { arrayList.add(userRecord); } else if (z8) { UserRecord userRecord2 = new UserRecord(null, null, true, false, false, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord2); arrayList.add(userRecord2); } if (z) { UserRecord userRecord3 = new UserRecord(null, null, false, false, true, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord3); arrayList.add(userRecord3); } return arrayList; } /* access modifiers changed from: protected */ public void onPostExecute(ArrayList<UserRecord> arrayList) { if (arrayList != null) { UserSwitcherController.this.mUsers = arrayList; UserSwitcherController.this.notifyAdapters(); } } }.execute(sparseArray); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private Rep...
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.62253...
0.0
-1
/ class com.android.systemui.statusbar.policy.UserSwitcherController.AnonymousClass2 / access modifiers changed from: protected
public ArrayList<UserRecord> doInBackground(SparseArray<Bitmap>... sparseArrayArr) { boolean z = false; SparseArray<Bitmap> sparseArray = sparseArrayArr[0]; List<UserInfo> users = UserSwitcherController.this.mUserManager.getUsers(true); UserRecord userRecord = null; if (users == null) { return null; } ArrayList<UserRecord> arrayList = new ArrayList<>(users.size()); int currentUser = ActivityManager.getCurrentUser(); boolean z2 = UserSwitcherController.this.mUserManager.getUserSwitchability(UserHandle.of(ActivityManager.getCurrentUser())) == 0; UserInfo userInfo = null; for (UserInfo userInfo2 : users) { boolean z3 = currentUser == userInfo2.id; UserInfo userInfo3 = z3 ? userInfo2 : userInfo; boolean z4 = z2 || z3; if (userInfo2.isEnabled()) { if (userInfo2.isGuest()) { userRecord = new UserRecord(userInfo2, null, true, z3, false, false, z2); } else if (userInfo2.supportsSwitchToByUser()) { Bitmap bitmap = sparseArray.get(userInfo2.id); if (bitmap == null && (bitmap = UserSwitcherController.this.mUserManager.getUserIcon(userInfo2.id)) != null) { int dimensionPixelSize = UserSwitcherController.this.mContext.getResources().getDimensionPixelSize(C0012R$dimen.max_avatar_size); bitmap = Bitmap.createScaledBitmap(bitmap, dimensionPixelSize, dimensionPixelSize, true); } arrayList.add(new UserRecord(userInfo2, bitmap, false, z3, false, false, z4)); } } userInfo = userInfo3; } if (arrayList.size() > 1 || userRecord != null) { Prefs.putBoolean(UserSwitcherController.this.mContext, "HasSeenMultiUser", true); } boolean z5 = !UserSwitcherController.this.mUserManager.hasBaseUserRestriction("no_add_user", UserHandle.SYSTEM); boolean z6 = userInfo != null && (userInfo.isAdmin() || userInfo.id == 0) && z5; boolean z7 = z5 && z2; boolean z8 = (z6 || z7) && userRecord == null; if ((z6 || z7) && UserSwitcherController.this.mUserManager.canAddMoreUsers()) { z = true; } boolean z9 = !z2; if (userRecord != null) { arrayList.add(userRecord); } else if (z8) { UserRecord userRecord2 = new UserRecord(null, null, true, false, false, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord2); arrayList.add(userRecord2); } if (z) { UserRecord userRecord3 = new UserRecord(null, null, false, false, true, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord3); arrayList.add(userRecord3); } return arrayList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public final void switchUserMode() {\n }", "@Override // com.android.server.wm.WindowContainer\n public void switchUser() {\n super.switchUser();\n this.mWmService.mWindowsChanged = true;\n this.mDisplayPolicy.switchUser();\n }", "public /* synthetic */ Integer lamb...
[ "0.5989306", "0.56741154", "0.566593", "0.5636276", "0.558315", "0.55476713", "0.5440659", "0.54051185", "0.539476", "0.5392601", "0.53842133", "0.5369116", "0.5367516", "0.53240085", "0.5282628", "0.5267136", "0.5264293", "0.52570724", "0.52570724", "0.52570724", "0.52570724...
0.0
-1
/ access modifiers changed from: protected
public void onPostExecute(ArrayList<UserRecord> arrayList) { if (arrayList != null) { UserSwitcherController.this.mUsers = arrayList; UserSwitcherController.this.notifyAdapters(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: private / access modifiers changed from: public
public void notifyAdapters() { for (int size = this.mAdapters.size() - 1; size >= 0; size--) { BaseUserAdapter baseUserAdapter = this.mAdapters.get(size).get(); if (baseUserAdapter != null) { baseUserAdapter.notifyDataSetChanged(); } else { this.mAdapters.remove(size); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private Rep...
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.62253...
0.0
-1
/ access modifiers changed from: private / renamed from: lambda$useFullscreenUserSwitcher$0
public /* synthetic */ Integer lambda$useFullscreenUserSwitcher$0$UserSwitcherController() { return Integer.valueOf(Settings.System.getInt(this.mContext.getContentResolver(), "enable_fullscreen_user_switcher", -1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t public void toggledFullscreen(boolean fullscreen)\n\t\t {\n\t\t }", "@Override\n public void onFullscreen(boolean b) {\n if (!b) {\n finish();\n }\n ...
[ "0.7213686", "0.6548608", "0.65401727", "0.6491778", "0.6354118", "0.63097227", "0.6238327", "0.6100996", "0.60854197", "0.6075731", "0.60525334", "0.60476553", "0.60476553", "0.6039725", "0.6029027", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "...
0.73872846
0
/ access modifiers changed from: protected
public void switchToUserId(int i) { try { pauseRefreshUsers(); ActivityManager.getService().switchUser(i); } catch (RemoteException e) { Log.e("UserSwitcherController", "Couldn't switch user.", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void showExitGuestDialog(int i, int i2) { Dialog dialog = this.mExitGuestDialog; if (dialog != null && dialog.isShowing()) { this.mExitGuestDialog.cancel(); } ExitGuestDialog exitGuestDialog = new ExitGuestDialog(this.mContext, i, i2); this.mExitGuestDialog = exitGuestDialog; exitGuestDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void exitGuest(int i, int i2) { switchToUserId(i2); this.mUserManager.removeUser(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: private / access modifiers changed from: public
private void checkIfAddUserDisallowedByAdminOnly(UserRecord userRecord) { RestrictedLockUtils.EnforcedAdmin checkIfRestrictionEnforced = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(this.mContext, "no_add_user", ActivityManager.getCurrentUser()); if (checkIfRestrictionEnforced == null || RestrictedLockUtilsInternal.hasBaseUserRestriction(this.mContext, "no_add_user", ActivityManager.getCurrentUser())) { userRecord.isDisabledByAdmin = false; userRecord.enforcedAdmin = null; return; } userRecord.isDisabledByAdmin = true; userRecord.enforcedAdmin = checkIfRestrictionEnforced; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private Rep...
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.62253...
0.0
-1
/ access modifiers changed from: private / access modifiers changed from: public
private boolean shouldUseSimpleUserSwitcher() { return Settings.Global.getInt(this.mContext.getContentResolver(), "lockscreenSimpleUserSwitcher", this.mContext.getResources().getBoolean(17891459) ? 1 : 0) != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private Rep...
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.62253...
0.0
-1
instance de la classe maison
public static void main(String[] args) { Maison maison = new Maison(); // ajouts de différentes pièces à maison maison.ajouterPiece(new Chambre(12, 1)); maison.ajouterPiece(new Chambre(10, 1)); maison.ajouterPiece(new Salon(18, 0)); maison.ajouterPiece(new Cuisine(10, 0)); maison.ajouterPiece(new SalleDeBain(4, 1)); maison.ajouterPiece(new Wc(1, 0)); // affichage des résultats System.out.println("Superficie totale : " + maison.superficieTotale() + " m2"); System.out.println("Superficie rez de chaussée : " + maison.superficieEtage(0)+ " m2"); System.out.println("Superficie étage 1 : " + maison.superficieEtage(1)+ " m2"); System.out.println("La superficie totale des chambres est de : " + maison.superficieTypePiece("Chambre") + " m2"); System.out.println("Il y a " + maison.nbPieceType("Chambre") + " chambres."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "Reproducible newInstance();", "private Instantiation(){}", "public Manusia() {}", "public Aritmetica(){ }", "public static LoCurso GetInstancia(){\n if (instancia==null)\n {\n instancia = new LoCurso();\n \n }\n\n return in...
[ "0.69301754", "0.6839289", "0.64383054", "0.64237744", "0.63896596", "0.6382705", "0.637728", "0.6349217", "0.63395774", "0.6337198", "0.63310516", "0.63204145", "0.6302961", "0.6299252", "0.6267886", "0.62393004", "0.62333614", "0.62234163", "0.62073815", "0.6195964", "0.619...
0.0
-1
Reads a number in the source, in the format: (9)+[.(9)+]
public String getNumberLiteral() { token = ""; skipSpaces(); char ch = getCurrentChar(); // Read the first sign, if exists if ( ch == '+' || ch == '-' ) { token += ch; this.advance(); ch = getCurrentChar(); } while( Character.isDigit( ch ) || ch == '.' ) { token += ch; this.advance(); ch = getCurrentChar(); } return token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String readNumber() {\n StringBuilder sb = new StringBuilder();\n char currentChar = code.charAt(currentIndex);\n while (!isEndOfCode() && Character.isDigit(currentChar)) {\n sb.append(currentChar);\n currentIndex++;\n if (isEndOfCode()) break;\n currentChar = code.charAt(curre...
[ "0.6479019", "0.628506", "0.59727955", "0.58663297", "0.57971215", "0.5661635", "0.5660562", "0.5623159", "0.54861015", "0.53508073", "0.53508073", "0.53508073", "0.53393763", "0.5296871", "0.5267585", "0.52431595", "0.5221964", "0.5199795", "0.5174283", "0.5153885", "0.51366...
0.4980595
33
Determines wether the token is a number or not
public static boolean isNumber(String token) { boolean toret = true; try { Double.parseDouble(token); } catch(Exception e) { toret = false; } return toret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }", "public static void checkNumber(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\tif (tk.getName().matches(\"^\\\\d...
[ "0.78163725", "0.7247083", "0.70996946", "0.69556886", "0.68833464", "0.685332", "0.6759734", "0.6734939", "0.6723074", "0.67033696", "0.66589034", "0.6607205", "0.65547055", "0.6544421", "0.6531808", "0.65290934", "0.64472264", "0.6427692", "0.6424488", "0.64182395", "0.6411...
0.6923456
4
Decides whether the token holds a string literal or not
public static boolean isStringLiteral(String token) { return isLiteral( '"', '"', token ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsLiteral();", "public boolean isLiteral() {\n return false;\n }", "public static boolean isLiteral(char openDelimiter, char endDelimiter, String token)\n {\n return ( token.charAt( 0 ) == openDelimiter\n && token.charAt( token.length() -1 ) == endDelimit...
[ "0.7376158", "0.7170796", "0.7149392", "0.7061559", "0.7018689", "0.69778365", "0.6920247", "0.686721", "0.6790841", "0.678891", "0.6684381", "0.661486", "0.6606342", "0.6385737", "0.6385737", "0.63831985", "0.63670415", "0.6361539", "0.63406146", "0.6278493", "0.6250453", ...
0.79683363
0
Decides whether the token holds a literal or not
public static boolean isLiteral(char openDelimiter, char endDelimiter, String token) { return ( token.charAt( 0 ) == openDelimiter && token.charAt( token.length() -1 ) == endDelimiter ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLiteral() {\n return false;\n }", "public boolean containsLiteral();", "public boolean isLiteral()\n {\n return this.literal;\n }", "public static boolean isStringLiteral(String token)\n {\n return isLiteral( '\"', '\"', token );\n }", "public final bool...
[ "0.8071239", "0.79362196", "0.7890037", "0.7424619", "0.740767", "0.7124527", "0.7096774", "0.6981571", "0.69589317", "0.69412464", "0.6937983", "0.68593216", "0.6834485", "0.6822255", "0.6708438", "0.6669514", "0.66274184", "0.66274184", "0.6529414", "0.65099925", "0.6481823...
0.77427655
3
Decides whether the token is a boolean or not.
public static boolean isBool(String token) { return ( BooleanValues.contains( " " + token + " " ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean readBoolean() {\n try {\n String token = readString();\n if (\"true\".equalsIgnoreCase(token)) return true;\n if (\"false\".equalsIgnoreCase(token)) return false;\n if (\"1\".equals(token)) return true;\n if (\"0\".e...
[ "0.7441353", "0.72904056", "0.6989321", "0.6958135", "0.6846288", "0.684543", "0.68136436", "0.67636067", "0.6739154", "0.6739154", "0.66731256", "0.66689175", "0.66479665", "0.6609492", "0.6600022", "0.65861726", "0.6563528", "0.6543528", "0.6523532", "0.64916044", "0.649005...
0.7087498
2
Determines whether the string is an identifier
public static boolean isIdentifier(String token) { boolean toret = false; token = token.trim(); if ( !token.isEmpty() ) { final char firstChar = token.charAt( 0 ); final char lastChar = token.charAt( token.length() -1 ); if ( Character.isLetter( firstChar ) || firstChar == '_' || Reserved.AllowedSymbolsInMethodName.indexOf( firstChar ) >= 0 ) { final int len = token.length() -1; int i = 1; for(; i < len; ++i) { final char ch = token.charAt( i ); if ( !Character.isLetterOrDigit( ch ) && ch != '_' && Reserved.AllowedSymbolsInMethodName.indexOf( ch ) < 0 ) { break; } } toret = ( i >= len ); // in case length is 1: "x" } } return toret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isIdentifier(String string) {\n\t\tif (string == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn string.matches(\"[0-9].*\");\n\t}", "private boolean isIdentifier(String input) {\n if (this.isLetter(input.charAt(0))) {\n return true;\n } else return false;\n }", "private boolean isId...
[ "0.83732575", "0.796173", "0.7811243", "0.77400416", "0.7718937", "0.7579798", "0.7315985", "0.7226749", "0.7165033", "0.7021674", "0.70094633", "0.6989645", "0.69745344", "0.6856239", "0.6852034", "0.6699654", "0.6689564", "0.66375947", "0.6618648", "0.6582404", "0.65768504"...
0.7313746
7
Inserts a new particle at the current position of the lexed string.
public void insertAtCurrentPos(String part) { StringBuffer newLine = new StringBuffer( this.getLine() ); newLine.insert( this.getPos(), part + ' ' ); this.line = newLine.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void insert(int pos, String s);", "public void addPos(String word, IPosition pos);", "public void insertBeforeCursor(String s) {\n if(this.isEmpty() || cursor==-1)\n {\n lines.addFirst(s);\n }\n else\n lines.addBefore(new PositionObject<>(lines.get(cursor)), s)...
[ "0.6760297", "0.6645591", "0.6294307", "0.61921555", "0.6071035", "0.6055019", "0.59670293", "0.5909659", "0.5866596", "0.57958204", "0.57808065", "0.57806677", "0.5747207", "0.5716406", "0.56970775", "0.56665164", "0.5663558", "0.56448233", "0.56438285", "0.5625065", "0.5623...
0.6402071
2
TODO: Return the communication channel to the service.
@Override public IBinder onBind(Intent intent) { throw new UnsupportedOperationException("Not yet implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Channel channel() {\n return channel;\n }", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "SocketChannel getChannel();", "EzyChannel getChannel();", "public Channel getChannel()\n {\n return channel;\n }", "java.lang.String getChannel();", "protected Channel getC...
[ "0.7437254", "0.73157257", "0.7183302", "0.7135984", "0.7129005", "0.71285546", "0.7090409", "0.7070889", "0.7067624", "0.7038997", "0.6988283", "0.6917885", "0.68884337", "0.67946744", "0.67914945", "0.67852235", "0.677885", "0.674656", "0.67354923", "0.6681876", "0.66714543...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int idade,mes,dia; Scanner leia = new Scanner(System.in); int diasVida; System.out.println("digite sua idade: "); idade = leia.nextInt(); System.out.println("digite quantos meses: "); mes = leia.nextInt(); System.out.println("digite os dias: "); dia = leia.nextInt(); diasVida=((idade*365)+(mes*30)+dia); System.out.println("VocÍ tem "+diasVida+" dias vividos"); }
{ "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
Recursive method to draw all rocks.
public void drawRocks(Graphics2D g2, int i){ int index = i; if(i<rocks.size()){ rocks.get(index).draw(g2); index++; drawRocks(g2,index); }else{ return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "private void drawSquar...
[ "0.6672406", "0.6007921", "0.59684086", "0.596722", "0.59524417", "0.5853097", "0.5848082", "0.5848082", "0.5848082", "0.5829672", "0.5814169", "0.5806981", "0.57920134", "0.5792004", "0.5779072", "0.5772863", "0.57700974", "0.5738784", "0.57339257", "0.5723601", "0.5699673",...
0.6645986
1
update je player TEMP: player movement limited to screen bounds
@Override public void update(){ if(right && !left) { if(player1.getX() < cm.getGameStateManager().getWidth() - player1.getBounds().getWidth()) player1.setX(player1.getX()+8); } if(!right && left) { if(player1.getX() > 0) player1.setX(player1.getX()-8); } checkBarrelBounds(); try{ checkPlayerCollision(); refreshData(); }catch(IOException e){ System.err.println("no connection with server"); } player1.update(); player2.update(); playerIndication.update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\n\t\t\n\t\t//System.out.println(this.observer);\n\t\t\n\t\tif(this.isCollidable == false){\n\t\t\tthis.x = -500;\n\t\t\tthis.y = -500;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (this.life < this.maxLife && !this.isDead()){\n\t\t\t\n\t\t\tif(recovery >= 1){\n\t\t\t\tthis.setLife(this.life + 1);\n\t...
[ "0.698386", "0.6872721", "0.6817059", "0.67564183", "0.67164564", "0.6704547", "0.670159", "0.6655917", "0.66554445", "0.6598844", "0.6543748", "0.65361917", "0.65307736", "0.6515315", "0.65130585", "0.650338", "0.64632785", "0.6421878", "0.6408887", "0.6384842", "0.63503844"...
0.648422
16
Gets the hiX property (double) value.
public double getHiX() { return fieldHiX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double hi() {\n return hi;\n }", "public String getXh() {\n return xh;\n }", "public double getXValue(){\r\n\t\treturn ((Double)(super.xValue) ).doubleValue();\r\n\t}", "public double getX() {\n return x;\r\n }", "public double getX() {\r\n return x;\r\n }", "publ...
[ "0.6784834", "0.6750269", "0.6715695", "0.6698794", "0.6657348", "0.6648927", "0.66446674", "0.6643698", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.66120714", "0.6611692", "0.66073185", "0.66073185", "0.66073185", "0.66073185...
0.711851
0
Gets the hiY property (double) value.
public double getHiY() { return fieldHiY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getYValue(){\n return(yValue);\n }", "public final double getY() {\n return y;\n }", "public double getYValue(){\r\n\t\treturn ((Double)(super.yValue) ).doubleValue(); \r\n\t}", "public final double getY() {\n return y;\n }", "public int getY() {\n return (in...
[ "0.72655463", "0.72644264", "0.72549933", "0.723897", "0.72019625", "0.7177236", "0.7168526", "0.71647465", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.7164184", "0.7164184", "0.7164184", "0.7164184", "0.71569705", "0.7...
0.6876471
90
Gets the hiZ property (double) value.
public double getHiZ() { return fieldHiZ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getZ();", "float getZ();", "float getZ();", "public final double getZ() {\n return z;\n }", "public final double getZ()\n {\n return m_jso.getZ();\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public double getZ(){\n\t\treturn z;\n\t}", "public double getZ(...
[ "0.7294864", "0.7294864", "0.7294864", "0.7217109", "0.7197006", "0.7190363", "0.71753687", "0.7168538", "0.7153166", "0.7153166", "0.70785546", "0.70539093", "0.6919321", "0.6905237", "0.68849653", "0.68762153", "0.68738115", "0.68612355", "0.6838625", "0.6814267", "0.678255...
0.74338406
0
Gets the loX property (double) value.
public double getLoX() { return fieldLoX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double lo() {\n return lo;\n }", "public final double getX() {\n return x;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x...
[ "0.76365906", "0.71892744", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7139456", "0.7128412", "0.7128142", "0.7113838", "0.71119577", "0.7101207", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.7092724", ...
0.7475222
1
Gets the loY property (double) value.
public double getLoY() { return fieldLoY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double lo() {\n return lo;\n }", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "public double GetY(){\n return this._Y;\n }", "public final double getY() {\n return y;\n }", ...
[ "0.7540483", "0.7407748", "0.7393327", "0.73804814", "0.73286355", "0.73083115", "0.730822", "0.730822", "0.730822", "0.730822", "0.730822", "0.730822", "0.730822", "0.72943944", "0.72764635", "0.72720695", "0.7262146", "0.7262146", "0.7262146", "0.7262146", "0.7262146", "0...
0.7414283
1
Gets the loZ property (double) value.
public double getLoZ() { return fieldLoZ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double lo() {\n return lo;\n }", "public final double getZ() {\n return z;\n }", "public double getZ(){\n\t\treturn z;\n\t}", "public double getZ() {\r\n return z;\r\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public double getZ() {\n\t\treturn z;\n\t}", ...
[ "0.75489277", "0.72837216", "0.72311956", "0.7219708", "0.7207862", "0.7188533", "0.7188533", "0.7152101", "0.70643145", "0.70304286", "0.70176107", "0.6959989", "0.6887132", "0.6879818", "0.6869846", "0.6869464", "0.6867221", "0.6867221", "0.6867221", "0.68368566", "0.678520...
0.7556852
0
format : Year Month Day Hour Minute Second
public CTime() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String dateToString(int year, int month, int day, int hour, int minute, double seconds);", "public static String ShowDate(){\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss.SS a\");\n String HH_MM = sdf.format(date);\n return HH_MM;\n }", "publi...
[ "0.7209465", "0.64241767", "0.64111763", "0.6386698", "0.63421553", "0.6298393", "0.62508684", "0.62083906", "0.61918825", "0.6142187", "0.6069829", "0.60690534", "0.5986246", "0.5982696", "0.59751844", "0.5934873", "0.5911469", "0.5875371", "0.5870605", "0.5850235", "0.58464...
0.0
-1
// the work that I will implement in this will work every where
public static void main(String[] args) { CTime a = new CTime(2013,15,28,13,24,56); CTime b = new CTime(2013,0,28,13,24,55); a.getTimeVerbose(); a.getTime(); a.compare(b); a.setTime(2014,8,16,13,24,55); a.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void poetries() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void ...
[ "0.6130698", "0.607629", "0.607597", "0.6064385", "0.6063151", "0.60412365", "0.5977897", "0.5968984", "0.5963748", "0.5955384", "0.5927408", "0.592559", "0.5914109", "0.5905195", "0.5860881", "0.5860881", "0.5817293", "0.57981855", "0.57957226", "0.57913786", "0.5790735", ...
0.0
-1
Creates new form Inicio
public Inicio() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public FormInserir() {\n initComponents();\n }", ...
[ "0.6993054", "0.6985426", "0.6954153", "0.681345", "0.67655253", "0.676181", "0.6758866", "0.6717438", "0.6688648", "0.66685706", "0.6632749", "0.66263914", "0.659723", "0.65587", "0.6557283", "0.65562373", "0.65447265", "0.6527449", "0.65252644", "0.651884", "0.65077907", ...
0.6400695
32
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(); jPanel3 = new javax.swing.JPanel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); jMenu6 = new javax.swing.JMenu(); jMenu5 = new javax.swing.JMenu(); jMenu4 = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(102, 102, 102)); jPanel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setFont(new java.awt.Font("Times New Roman", 3, 36)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText(" CADASTRO ONLINE"); jPanel3.setBackground(new java.awt.Color(255, 255, 255)); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Inicio", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 3, 18), new java.awt.Color(0, 0, 0))); // NOI18N javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 762, Short.MAX_VALUE) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 304, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(176, 176, 176) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 398, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(20, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jMenu1.setText("Inicio"); jMenu1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jMenu1MouseEntered(evt); } }); jMenuBar1.add(jMenu1); jMenu2.setText("Editar"); jMenuBar1.add(jMenu2); jMenu3.setText("Cadastro"); jMenu3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jMenu3MouseClicked(evt); } }); jMenuBar1.add(jMenu3); jMenu6.setText("Consulta de Clientes"); jMenuBar1.add(jMenu6); jMenu5.setText("Login"); jMenuBar1.add(jMenu5); jMenu4.setText("Banco de Cadastro"); jMenuBar1.add(jMenu4); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 824, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 427, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73206544", "0.7291311", "0.7291311", "0.7291311", "0.7286492", "0.7249181", "0.7213362", "0.72085494", "0.71965617", "0.7190475", "0.7184897", "0.7159234", "0.71483016", "0.7094075", "0.7081491", "0.70579433", "0.6987627", "0.69776064", "0.69552463", "0.69549114", "0.69453...
0.0
-1
Construct parameters stored in the given map.
public Parameters(Map<String, String[]> map) { requireNonNull(map, "Parameters map not speicifed"); this.store = new ParametersMap(map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParamMap createParamMap();", "public Parameterized(Map<String, String> parameters) {\n setParameters(parameters);\n }", "void setParameters(Map<String, String[]> parameters);", "@Override\n public void setParameterMap(Map arg0) {\n\n }", "private Map<String,Object> buildParamsMap(Map<String...
[ "0.6879985", "0.64121896", "0.6316741", "0.63073635", "0.62424046", "0.6214564", "0.6205237", "0.61631656", "0.6137554", "0.6121059", "0.60966486", "0.6067963", "0.60154676", "0.5915598", "0.5905922", "0.59053624", "0.5904145", "0.59036326", "0.58913237", "0.58727914", "0.586...
0.7782463
0
Construct parameters stored in the given properties. Multiple property values are divided by commas. Commas are escaped with backslashes.
public Parameters(Properties properties) { requireNonNull( properties, "A properties to store parameters in not specified"); this.store = new PropertiesParameters(properties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameters(Properties props) {\n\n\t}", "void setParameters(Map<String, Object> propertyValues);", "private String makeInsert(String tableName, Properties prop)\n {\n String sqlNames = \"\";\n String sqlValues = \"\";\n for (Enumeration e = prop.propertyNames(); e.hasMoreElements();) {\n St...
[ "0.5963504", "0.5827758", "0.57913035", "0.5712038", "0.5685382", "0.547813", "0.5477584", "0.5354969", "0.53535336", "0.5352134", "0.53375685", "0.5326934", "0.5314288", "0.5313584", "0.530381", "0.52374727", "0.5219677", "0.52072394", "0.51972044", "0.5191384", "0.5169694",...
0.6169862
0
Construct parameters stored in the given store.
public Parameters(ParametersStore store) { requireNonNull(store, "Parameters store not specified"); this.store = store; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected StoreParams() {\n this.setBatchSize(BATCH_SIZE_DEFAULT);\n this.setNumSyncBatches(NUM_SYNC_BATCHES_DEFAULT);\n this.setSegmentFileSizeMB(SEGMENT_FILE_SIZE_MB_DEFAULT);\n this.setSegmentCompactFactor(SEGMENT_COMPACT_FACTOR_DEFAULT);\n this.setHashLoadFactor(HASH_LOAD_FAC...
[ "0.5806583", "0.5606362", "0.5489835", "0.5419967", "0.5215416", "0.51970613", "0.51187116", "0.51105934", "0.5058753", "0.50358456", "0.5018347", "0.5008094", "0.49285036", "0.49124515", "0.4909694", "0.49092698", "0.4906302", "0.4897219", "0.48904067", "0.48705727", "0.4857...
0.72741413
0
URLencodes these parameters into a string in UTF8 encoding.
public final String urlEncode() { return urlEncode(UTF_8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\n\t}", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncod...
[ "0.7212877", "0.71031547", "0.697972", "0.691885", "0.6807509", "0.6804508", "0.6734226", "0.6693952", "0.6600927", "0.6599474", "0.659694", "0.65756917", "0.65756917", "0.65655607", "0.6526326", "0.65157294", "0.65138274", "0.64993894", "0.64882684", "0.64824426", "0.6442986...
0.7681317
0
URLencodes these parameters into a string.
public final String urlEncode(String encoding) { final StringBuilder out = new StringBuilder(); try { urlEncode(out, encoding); } catch (IOException e) { new IllegalStateException(e);// Should never happen. } return out.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : ent...
[ "0.72164017", "0.71519935", "0.70254177", "0.69329464", "0.69304615", "0.6830005", "0.67129105", "0.6683821", "0.66575354", "0.66456944", "0.6522539", "0.65157056", "0.6506462", "0.6497762", "0.6492543", "0.63519406", "0.63519406", "0.63080424", "0.63049394", "0.6291689", "0....
0.6436481
15
This function will be called in the render loop
public void render(int FrameBufferObjectID) { if (FrameBufferIDs.contains(FrameBufferObjectID)) { Render(FrameBufferObjectID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void render(){}", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "@Override\n public void beforeRender()\n {\n\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\n\tpublic void render () {\n\n\t}", ...
[ "0.74590915", "0.73247856", "0.7222448", "0.71794194", "0.71772665", "0.71765697", "0.7140389", "0.7120074", "0.69656736", "0.6944138", "0.6942174", "0.6927307", "0.6927307", "0.69229114", "0.68517256", "0.6814765", "0.68121254", "0.6781434", "0.6753391", "0.671023", "0.67087...
0.0
-1
Questo metodo consente di ottenere una lista di assegnamenti gia' effettuati e approvati per la data "tra 7 giorni" a partire da adesso
public List<String> GetAssegnamentiInCorso() { String str = "Guillizzoni-Coca Cola Spa1-DRYSZO,Rossi-Coca Cola Spa2-DRYSZ2"; StringaAssegnamenti = str; StringaAssegnamenti = ""; List<String> items = Arrays.asList(str.split("\\s*,\\s*")); return items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAvi...
[ "0.6777586", "0.6347688", "0.63117254", "0.6246811", "0.61990464", "0.61871374", "0.6157982", "0.61526054", "0.61401254", "0.6136713", "0.61256146", "0.6121901", "0.6059142", "0.6056857", "0.6045613", "0.60388124", "0.5989681", "0.59857434", "0.5985523", "0.5979148", "0.59772...
0.58313805
35
calcola il numero di assegnamenti
public int calcola_num_assegnamenti(String id_autista,Calendar cal){ AssegnamentiDao ass=new AssegnamentiDao(); //gią assegnati all'autista per scegliere int n=ass.get_num_assegnamenti(id_autista,cal); //l'ora del prossimo assegnamento if(n>4) n++; //CONTA L'ORA DI SPACCO return n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "int generarNumeroNota();", "public int getNumeroEspaciadorAdicionar() {\n return numeroEspaciadorAdicionar;\n }", "private int incrementarNumServ(String tipoServicio) throws BaseDeDatosExcepc...
[ "0.6409024", "0.6285901", "0.6169832", "0.6125384", "0.6114764", "0.6101811", "0.60768175", "0.6052186", "0.6052074", "0.6048357", "0.60427773", "0.6031816", "0.60225517", "0.6013427", "0.60048246", "0.5996718", "0.5994903", "0.5985603", "0.5963765", "0.5955817", "0.5871507",...
0.6856419
0
/AutomezziDao SearchAutomezzi= new AutomezziDao(); String id_automezzo = SearchAutomezzi.Get_id_AutomezzoByTarga(id_automezzo); ClienteDao SearchCliente = new ClienteDao(); String id_cliente = SearchCliente.get_id_cliente_by_nome(att_cliente); AutistaDao SearchAutista = new AutistaDao(); String id_autista = SearchAutista.get_id_autista_by_username(att_autista);
public String GenerateApprovaAssegnamentoLink(String id_cliente, String id_autista, String id_automezzo,String data){ if(id_autista!=null && id_cliente!=null &&id_automezzo!=null){ return "<a class='approve-link' href='approva-assegnamento?id_automezzo="+id_automezzo+"&id_cliente="+id_cliente+"&id_autista="+id_autista+"&data="+data+"'>Approva</a>"; } return "Non disponibile"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE...
[ "0.6648181", "0.66174054", "0.65012705", "0.64933175", "0.6490511", "0.6475708", "0.6448742", "0.64361197", "0.638023", "0.63711405", "0.63683236", "0.6358596", "0.6355655", "0.63325006", "0.63053405", "0.6303692", "0.630273", "0.62892175", "0.6271485", "0.6260979", "0.625930...
0.0
-1
/AutomezziDao SearchAutomezzi= new AutomezziDao(); String id_automezzo = SearchAutomezzi.Get_id_AutomezzoByTarga(att_automezzo); ClienteDao SearchCliente = new ClienteDao(); String id_cliente = SearchCliente.get_id_cliente_by_nome(att_cliente); AutistaDao SearchAutista = new AutistaDao(); String id_autista = SearchAutista.get_id_autista_by_username(att_autista);
public String GenerateRifiutaAssegnamentoLink(String id_cliente, String id_autista, String id_automezzo,String data){ if(id_autista!=null && id_cliente!=null &&id_automezzo!=null){ return "<a class='rifiuta-link' href='rifiuta-assegnamento?id_automezzo="+id_automezzo+"&id_cliente="+id_cliente+"&id_autista="+id_autista+"&data="+data+"'>Rifiuta</a>"; } return "Non disponibile"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE...
[ "0.6602798", "0.65695256", "0.6423411", "0.6420727", "0.6415331", "0.6395709", "0.63862115", "0.637675", "0.63318825", "0.63147867", "0.6310408", "0.6310246", "0.62939614", "0.628318", "0.6281627", "0.627064", "0.62667686", "0.62434405", "0.62308335", "0.6207944", "0.62058", ...
0.0
-1
Log.i("jq", "speed = " + speed);
private float getPaintWidth(float speed) { float max_width = 15f; float min_width = 3f; float max_dif = 0.35f;//0.35f较为合适 float max_speed = 30f; float min_speed = 1.5f; float width; speed = Math.max(min_speed, speed); speed = Math.min(max_speed, speed); //将 speed (min_speed-max_speed) 映射到 (width min_width-max_width) // width = (1 / (speed - min_speed) / (max_speed - min_speed)) * (max_width - min_width) + min_width;//反比例关系 速度越快 画笔越细 width = (speed - min_speed) / (max_speed - min_speed) * (max_width - min_width) + min_width;//正比例关系 速度越快 画笔越粗 // Log.i("jq", "width = " + width); width = Math.max(min_width, width); width = Math.min(max_width, width); if (!isNew) {//如果不是新的一笔,则进行宽度渐变 if (Math.abs(width - paintWidthPrevious) > max_dif) { if (width > paintWidthPrevious) width = paintWidthPrevious + max_dif; else width = paintWidthPrevious - max_dif; } } isNew = false; return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "public int getSpeed(){return this.speed;}", "double getSpeed();", "@Override\r\n\t...
[ "0.6358073", "0.6340041", "0.6340041", "0.6340041", "0.6340041", "0.6340041", "0.6340041", "0.63063955", "0.62943023", "0.6276164", "0.62336296", "0.6174653", "0.6166939", "0.6082553", "0.60741425", "0.6011563", "0.5996965", "0.5987024", "0.5978785", "0.5976234", "0.59721315"...
0.0
-1
Retorna a data convertida para o formato brasileiro
public String getDataString() { return formatoData.format(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t...
[ "0.6395287", "0.6336102", "0.6247061", "0.60862535", "0.5842453", "0.5787661", "0.5781259", "0.5777283", "0.5651737", "0.5650636", "0.56011945", "0.55578333", "0.55353254", "0.5532605", "0.5503155", "0.55008525", "0.54989254", "0.5479286", "0.5477595", "0.5464181", "0.5451069...
0.6090413
3
Sort by area test
@Test public void testGetShapesSortedByArea() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(regularPolygon); expectedOutput.add(triangle); expectedOutput.add(rectangle); expectedOutput.add(square); expectedOutput.add(circle); List<Shape> actualOutput = screen.sortShape(SortType.AREA); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testSortShapeWithArea()\r\n {\r\n // Screen screen = new Screen();\r\n \r\n Point originOfSquare = new Point(1,1);\r\n List<Double> listOne = new ArrayList<Double>();\r\n listOne.add(2.0);\r\n Shape square = ShapeFactory.createShape(0, originOfSq...
[ "0.71445876", "0.63297176", "0.6219181", "0.6136602", "0.6003842", "0.5888174", "0.5846179", "0.5788153", "0.5744121", "0.57008433", "0.5665592", "0.5659815", "0.56272984", "0.5584659", "0.55836624", "0.5543992", "0.5542229", "0.55354106", "0.55354106", "0.5525899", "0.552472...
0.73150676
0
Sort By Perimeter test
@Test public void testGetShapesSortedByPerimeter() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(regularPolygon); expectedOutput.add(triangle); expectedOutput.add(rectangle); expectedOutput.add(square); expectedOutput.add(circle); List<Shape> actualOutput = screen.sortShape(SortType.PERIMETER); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetShapesSortedByArea() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.a...
[ "0.6235971", "0.6143497", "0.5990474", "0.5941111", "0.5920695", "0.5727908", "0.5664702", "0.56255674", "0.55656654", "0.5545018", "0.5537714", "0.55330044", "0.55066186", "0.54879004", "0.5470414", "0.54677504", "0.54652834", "0.54642034", "0.5461777", "0.54564583", "0.5436...
0.76281327
0
Sort by Timestamp test
@Test public void testGetShapesSortedByTimestamp() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(circle); expectedOutput.add(square); expectedOutput.add(rectangle); expectedOutput.add(triangle); expectedOutput.add(regularPolygon); List<Shape> actualOutput = screen.sortShape(SortType.TIMESTAMP); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ArrayList<Quest> sortAfterTimestamp(ArrayList<Quest> questListToSort) {\n\t\tfor (int i = 0; i < questListToSort.size() - 1; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < questListToSort.size(); j++) {\n\t\t\t\tif (questListToSort.get(j).getTimestamp() > questListToSort.get(index).getT...
[ "0.7125881", "0.66986173", "0.6631409", "0.65547633", "0.6491772", "0.6438111", "0.6332725", "0.6332409", "0.63149405", "0.6313081", "0.62878734", "0.6214716", "0.6156489", "0.6071687", "0.604171", "0.60223144", "0.5889943", "0.5860588", "0.5817302", "0.5813574", "0.56993467"...
0.62851655
11
Sort by origin distance test
@Test public void testGetShapesSortedByOriginDistance() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(circle); expectedOutput.add(square); expectedOutput.add(rectangle); expectedOutput.add(triangle); expectedOutput.add(regularPolygon); List<Shape> actualOutput = screen.sortShape(SortType.ORIGIN_DISTANCE); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortDistHelper(Vector<Restaurant> vec, double origin_lat, double origin_long) {\n for (int i = 1; i < vec.size(); i++) {\n int j = i - 1;\n Restaurant key = vec.get(i);\n while (j >= 0 && !vec.get(j).compareDistance(key, origin_lat, origin_long)) {\n ...
[ "0.72822106", "0.60442686", "0.60040236", "0.59613323", "0.5848066", "0.5825017", "0.5785563", "0.57610875", "0.5674586", "0.5616108", "0.5607741", "0.5598133", "0.55859894", "0.55788195", "0.5577203", "0.55433095", "0.5503749", "0.5503686", "0.54743093", "0.5467677", "0.5465...
0.64178497
1
Get Enclosing Shape test
@Test public void testGetEnclosingShapes() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(circle); expectedOutput.add(square); assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetListOfShapesEnclosingGivenPoint() {\r\n\t\t\r\n\t\t// Create a first shape square\r\n\t\tPoint origin = new Point(25, 100); \r\n\t\tList<Double> list = new ArrayList<Double>(); \t\t\r\n double side = 5.0; ...
[ "0.63984454", "0.62795", "0.6240829", "0.61737335", "0.6037546", "0.6030689", "0.60035044", "0.5956878", "0.59011334", "0.58203477", "0.57934153", "0.5767209", "0.57320917", "0.5730988", "0.57219124", "0.5721739", "0.57099503", "0.5705183", "0.57048106", "0.56752235", "0.5672...
0.7184754
0
/ access modifiers changed from: packageprivate
public void setRTLParams() { ViewGroup.LayoutParams layoutParams = this.mSkipView.getLayoutParams(); if (layoutParams instanceof RelativeLayout.LayoutParams) { RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) layoutParams; layoutParams2.removeRule(20); layoutParams2.addRule(11); int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.fsgesture_skip_margin_right); this.mSkipView.setPadding(0, getResources().getDimensionPixelSize(R.dimen.fsgesture_skip_margin_top), dimensionPixelSize, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public void prepareTitleView(int i) { int i2; setBackground(getResources().getDrawable(R.drawable.fs_gesture_back_bg, (Resources.Theme) null)); int i3 = R.string.how_to_use_app_quick; switch (i) { case 0: i2 = R.string.fs_gesture_left_back_ready_summary; break; case 1: i2 = R.string.fs_gesture_right_back_ready_summary; break; case 2: i3 = R.string.how_to_back_home; i2 = R.string.fs_gesture_back_home_summary; break; case 3: i3 = R.string.how_to_switch_recents; i2 = R.string.fs_gesture_switch_recents_summary; break; case 4: i3 = R.string.how_to_use_drawer; i2 = R.string.how_to_use_drawer_summary; break; case 5: i2 = R.string.how_to_use_app_quick_summary; break; case 6: i2 = R.string.how_to_use_app_quick_hide_line_summary; break; default: i2 = 0; i3 = 0; break; } i3 = R.string.fs_gesture_back_ready_title; TextView textView = this.mTitleView; if (textView != null && this.mSummaryView != null) { textView.setText(i3); this.mSummaryView.setText(i2); this.mTitleView.setVisibility(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public void notifyFinish() { setBackground(getResources().getDrawable(R.drawable.fs_gesture_finish_bg, (Resources.Theme) null)); this.mTitleView.setVisibility(4); this.mSummaryView.setTranslationY(this.mSummaryView.getTranslationX() - 15.0f); this.mSummaryView.setText(R.string.fs_gesture_finish); this.mSkipView.setVisibility(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public void registerSkipEvent(View.OnClickListener onClickListener) { TextView textView = this.mSkipView; if (textView != null) { textView.setOnClickListener(onClickListener); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.expandable_list_view_test, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
This 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() { portTextField = new javax.swing.JFormattedTextField(); serverNameTextField = new javax.swing.JFormattedTextField(); serverLabel = new javax.swing.JLabel(); serverLabel1 = new javax.swing.JLabel(); closeButton = new javax.swing.JButton(); addButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Add New Server"); // NOI18N setName("Form"); // NOI18N portTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("##0")))); portTextField.setHorizontalAlignment(javax.swing.JTextField.TRAILING); portTextField.setName("portTextField"); // NOI18N portTextField.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { portTextFieldPropertyChange(evt); } }); serverNameTextField.setHorizontalAlignment(javax.swing.JTextField.TRAILING); serverNameTextField.setName("serverNameTextField"); // NOI18N serverLabel.setText("Server"); serverLabel.setName("serverLabel"); // NOI18N serverLabel1.setText("Port"); serverLabel1.setName("serverLabel1"); // NOI18N closeButton.setText("Close"); closeButton.setName("closeButton"); // NOI18N closeButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeButtonActionPerformed(evt); } }); addButton.setText("Add"); addButton.setName("addButton"); // NOI18N addButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createSequentialGroup() .add(closeButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(addButton)) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(serverLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 54, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(portTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 158, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))) .add(26, 26, Short.MAX_VALUE)) ); layout.linkSize(new java.awt.Component[] {serverLabel, serverLabel1}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.linkSize(new java.awt.Component[] {portTextField, serverNameTextField}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(serverNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(portTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverLabel1)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(closeButton) .add(addButton)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756...
0.0
-1
End of variables declaration//GENEND:variables
public javax.swing.JButton getAddButton() { return addButton; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
This code will create two variables to store the horizontal and vertical positions specified origin is (0,0) h= horizontal v=vertical
public static void main(String[] args) throws IOException { int h = 0; int v = 0; InputStreamReader file = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(file); //This string will be the iterable container String directions = br.readLine(); //this code will check upper limit if(directions.length()>10) System.out.println("I won't be able to make it that far"); else{ for (int i = 0; i < directions.length(); i++) { //Iterate through each character and increment/decrement horizontal/vertical values switch (directions.charAt(i)) { case 'U': case 'u': v++; break; case 'R': case 'r': h++; break; case 'L': case 'l': h--; break; case 'D': case 'd': v--; break; default: System.out.println(directions.charAt(i) + " was ignored "); } } System.out.println(h + " " + v); } //end of else statement br.close(); file.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coordinates getVerHor();", "void to_screen_2D_x_y_i (double horiz, double vert) {\n double rp = Math.toRadians(craft_pitch); \n double space_x = scalex*(offx+horiz);\n double space_y = scaley*(offy+vert);\n space_x = space_x*Math.cos(rp) - space_y*Math.sin(rp); \n space_y = space_...
[ "0.6308036", "0.6113545", "0.5960019", "0.5864781", "0.57613647", "0.5629759", "0.55990386", "0.55128646", "0.54859763", "0.5403556", "0.5339601", "0.5333012", "0.5282969", "0.52805054", "0.52598953", "0.523991", "0.52241373", "0.5220663", "0.521651", "0.52090764", "0.5196259...
0.0
-1
Constructor of the exception class.
public PreprocessorException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\tsuper();\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public Exception(String s) {\n\tsuper(s);\n }", "publ...
[ "0.8494733", "0.84452665", "0.8156281", "0.7871589", "0.7842381", "0.77496797", "0.77150065", "0.7692102", "0.763333", "0.7614605", "0.7595329", "0.7568654", "0.7560295", "0.75458544", "0.7535612", "0.7406927", "0.7390282", "0.7385478", "0.7382402", "0.73807365", "0.73804647"...
0.0
-1
This should be safe down to mBest of about 10^12 and is definitely safe to the value below
@Override public Z next() { if (mN <= 12068659184L) { final double best = mBest.doubleValue(); while (true) { final double d = Math.tan(++mN); double frac = d % 1; if (frac < 0) { frac = 1 + frac; } if (frac > best) { mBest = CR.valueOf(frac); return Z.valueOf(mN); } } } // More careful searching while (true) { final CR tan = ComputableReals.SINGLETON.tan(CR.valueOf(++mN)); CR frac = tan.subtract(CR.valueOf(tan.floor())); if (frac.signum() < 0) { frac = CR.ONE.add(frac); } if (frac.compareTo(mBest) > 0) { mBest = frac; return Z.valueOf(mN); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLargeALargeM() {\n assertEquals(11479907, PiGenerator.powerMod(123456, 2, 42423131));\n }", "@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }", "@Test\n public void testLargeA() {\n assertEquals(18, PiGe...
[ "0.6283214", "0.6216989", "0.61863536", "0.61347044", "0.6007158", "0.5975214", "0.59401596", "0.59239286", "0.5902288", "0.5846242", "0.5771421", "0.5770484", "0.5767264", "0.5757537", "0.5739364", "0.5732865", "0.570582", "0.5689782", "0.56851685", "0.5675509", "0.56730527"...
0.0
-1
Serialize to a byte array
public static byte[] GetByteArrayFromObject(Object object) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bos); out.writeObject(object); out.close(); return bos.toByteArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] serialize();", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "byte[] serialize(Serializable object);", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public byte[] marshall();", "public byte[] toBytes() {\n ByteArray...
[ "0.84114075", "0.78052866", "0.78052866", "0.7609733", "0.7580936", "0.7573354", "0.74194974", "0.73691696", "0.72436315", "0.71375746", "0.7081305", "0.699959", "0.6914812", "0.68820137", "0.68638325", "0.68594235", "0.685672", "0.685672", "0.6853697", "0.6820411", "0.679090...
0.6274198
70
Method opens an existing project file
public int openExistingProject(File file) { try { projectData = projectLoader.openExistingProject(file); } catch (FileNotFoundException ex) { return 1; // can not find ini file } catch (Exception ex) { return 2; // can not load project } if (projectData == null) return 2; return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void open(IdeaProject project);", "public void openProject(File pfile, FileOpenSelector files) { }", "public void openProject(File file) {\n\n try {\n if (!file.exists()) {\n JOptionPane.showMessageDialog(Application.getFrame(),\n \"Can't open project - ...
[ "0.7522025", "0.7392475", "0.7370743", "0.72926664", "0.70931673", "0.7019146", "0.6999864", "0.6852219", "0.670721", "0.66031224", "0.6427669", "0.62977904", "0.62462026", "0.62462026", "0.62462026", "0.61893237", "0.6108948", "0.6101429", "0.6097974", "0.6081798", "0.607344...
0.7381686
2
Method creates a new projet by importing project files in Jar
public int createProject(File jarFile, String packageName, boolean isSource) { try { projectData = projectLoader.createProject(jarFile, packageName, isSource); } catch (FileNotFoundException ex) { return 1; // can not find ini file } catch (Exception ex) { return 2; // can not load import classes data } catch (TokenMgrError tm) { return 2; // can not load import classes data } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Project createProject();", "Project createProject();", "Project createProject();", "public void createProject(Project newProject);", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@TaskAction\n public void createProject()\n throws IOException {\n String projectName = g...
[ "0.7570214", "0.7570214", "0.7570214", "0.74841547", "0.70353794", "0.6930584", "0.686508", "0.67955774", "0.67511", "0.6644663", "0.6610598", "0.66008544", "0.6553207", "0.6547112", "0.65117645", "0.6438081", "0.6424783", "0.6420179", "0.63813066", "0.6373082", "0.6330929", ...
0.6474004
15
Method creates a new projet by importing project classes
public int createProject(Map<File, String> classes, boolean isSource) { try { projectData = projectLoader.createProject(classes, isSource); } catch (FileNotFoundException ex) { Logger.getLogger(ProjectManager.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { try { projectData = projectLoader.createProject(classes, isSource); } catch (FileNotFoundException ex1) { Logger.getLogger(ProjectManager.class.getName()).log(Level.SEVERE, null, ex1); } catch (Exception ex1) { ex1.printStackTrace(); JOptionPane.showMessageDialog(master, "Cannot open file \nTry it again, please"); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createProject(Project newProject);", "Project createProject();", "Project createProject();", "Project createProject();", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public CreateProject() {\n\t\tsuper();\n\t}", "LectureProject createLectureProject();", "priva...
[ "0.81843853", "0.809506", "0.809506", "0.809506", "0.7919415", "0.7473316", "0.7171584", "0.7136024", "0.7133201", "0.70132124", "0.67498016", "0.6716387", "0.6675287", "0.6625159", "0.65890276", "0.65607333", "0.65589905", "0.6534191", "0.6448492", "0.6441394", "0.6424755", ...
0.6674885
13
Method exports project annoatated classes
public boolean exportClasses(File target) { if (projectData != null){ return exportClasses.exportAnnotatedClasses(projectData, target); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations getClassAnnotations();", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "Set<Class<?>> getClassSetByAnnotation(String packageName, Class<? extends Annotation> annotationClass);", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "public void...
[ "0.61062694", "0.6089173", "0.5804795", "0.5743471", "0.56903887", "0.56652176", "0.5623972", "0.5616904", "0.5616904", "0.55823326", "0.55595165", "0.55455565", "0.5544182", "0.5536331", "0.55291885", "0.5511478", "0.54985416", "0.54949677", "0.54722756", "0.5465224", "0.545...
0.0
-1
Method returns project classItems
public List<IclassItem> getClasses() { if(projectData!=null){ return projectData.getClasses(); } return new ArrayList<IclassItem>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<WjrClassItem> getClassItems() {\r\n return new ArrayList<WjrClassItem>(classItems.values());\r\n }", "public List<String> getClassList() {\n return classlist;\n }", "public IProject [] getProjects(){\n\t\treturn projects;\n\t}", "@NotNull\n List<? extends ClassInfo> getClasses();...
[ "0.7560231", "0.6342796", "0.6286215", "0.62291366", "0.61632913", "0.610838", "0.61028016", "0.6067753", "0.60307926", "0.6026654", "0.60229117", "0.60170025", "0.5986714", "0.5967811", "0.5924342", "0.592258", "0.5905152", "0.5874429", "0.58634686", "0.58127636", "0.5798251...
0.8133595
0
Method returns projcet ClassItems annotations
public List<Iannotation> getClassesAnnotations(String name) { return projectData.getClassesAnnotations(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations getClassAnnotations();", "public List<FileSavedAnnotation> getChangedAnnotations(List<IclassItem> classItems) {\n\n this.saveAnnotaion = new ArrayList<FileSavedAnnotation>();\n\n for (IclassItem item: classItems) {\n\n addClassAnnotation(item.getClassAnnotatio...
[ "0.6802379", "0.63501865", "0.6181895", "0.61591136", "0.60940176", "0.60891414", "0.6071096", "0.6052804", "0.6030744", "0.5996809", "0.59681433", "0.59429073", "0.5941449", "0.59105057", "0.5787384", "0.56242204", "0.5623609", "0.5605865", "0.56010836", "0.5580924", "0.5575...
0.5757786
15
Method returns all ClassItems attributes
public List<Iattribute> getClassesAttribute(String name) { return projectData.getClassesAttribute(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Collection getAttributes();", "public List<WjrClassItem> getClassItems() {\r\n return new ArrayList<WjrClassItem>(classItems.values());\r\n }", "Attributes getAttributes();", "ArrayList getAttributes();", "IAttributes getAttributes();", "public Attributes getAttributes() { return thi...
[ "0.7461733", "0.7065256", "0.70226717", "0.7009609", "0.6998138", "0.6949406", "0.690617", "0.68652797", "0.6825625", "0.68130606", "0.6804191", "0.67819536", "0.67622006", "0.67614555", "0.67614555", "0.6761123", "0.6761123", "0.6761123", "0.6758931", "0.6734034", "0.6734001...
0.60825133
73
Method returns Annotations of selected attribute of class
public List<Iannotation> getClassesAttrAnnotations(String className, String attrName) { return projectData.getClassesAttrAnnotations(className, attrName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations getClassAnnotations();", "public String getAnnotation();", "Attributes getAttributes();", "IAttributes getAttributes();", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "Annotation getAnnotation();", "public Element[] getA...
[ "0.6923093", "0.68240696", "0.67042047", "0.66074735", "0.6516841", "0.64874035", "0.6483968", "0.6462811", "0.6457277", "0.6426531", "0.64230406", "0.63662064", "0.6358936", "0.63556415", "0.63309", "0.63062793", "0.62657565", "0.61997074", "0.61793", "0.6165338", "0.6144475...
0.58271986
46
Method sets annotation value of selected annotation of class
public void changeClassAnnotation(String className, String annotationName, String value) { projectData.changeClassAnnotation(className, annotationName, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnnotation(String annotation) {\n this.annotation = annotation;\n }", "public void setAnnotation (String annotation) {\n this.annotation = annotation;\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annot...
[ "0.6616278", "0.65320474", "0.6491765", "0.6436906", "0.6301354", "0.6128491", "0.6000087", "0.59312534", "0.5873964", "0.58712167", "0.5805223", "0.57926947", "0.5752022", "0.5752022", "0.57414246", "0.5734513", "0.57123584", "0.5700228", "0.5623517", "0.5566397", "0.556541"...
0.6330856
4
Method change annotation of seleceted attribute
public void changeAttributeAnnotation(String className, String attrName, String AnnotationName, String value) { projectData.changeAttributeAnnotation(className, attrName, AnnotationName, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation ...
[ "0.7115305", "0.66251117", "0.6616793", "0.6587681", "0.65554714", "0.63092583", "0.62545305", "0.62464505", "0.6215877", "0.6215877", "0.61872977", "0.6150754", "0.6150754", "0.61472493", "0.61340535", "0.6133673", "0.6093729", "0.6081526", "0.6077237", "0.6055594", "0.60304...
0.6557797
4
Method sets nopar annotation of selected annotation of class
public void changeNoParClassAnnotation(String className, String annotationName, boolean set) { projectData.changeClassNoParAnnotation(className, annotationName, set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public void changeNoParAttributeAnnotation(String className, String attrName, String AnnotationName, boolean set) {\n\n projectData.changeAttributeNoParAnnotation(className, attrName, AnnotationName, set);\n }", "public void se...
[ "0.6995602", "0.6341827", "0.6282762", "0.627609", "0.6222206", "0.6191412", "0.61674976", "0.6152138", "0.61106384", "0.61106384", "0.59576386", "0.59483725", "0.5926211", "0.59094226", "0.5885806", "0.5860162", "0.58545554", "0.58257926", "0.5808682", "0.57533586", "0.57110...
0.7093819
0
Method change nopar annotation of seleceted attribute
public void changeNoParAttributeAnnotation(String className, String attrName, String AnnotationName, boolean set) { projectData.changeAttributeNoParAnnotation(className, attrName, AnnotationName, set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@Override\n public String visit(AnnotationDeclaration n, Object arg) {\n return null;\n }", "@Override\n\tpublic void setMissing(final Attribut...
[ "0.7028974", "0.62750983", "0.62466204", "0.62023896", "0.6197173", "0.61709976", "0.6161908", "0.6125199", "0.6125199", "0.6118577", "0.6076379", "0.60588425", "0.60286224", "0.60214645", "0.60051954", "0.58884", "0.5880545", "0.58628124", "0.5859931", "0.5804906", "0.579070...
0.6697426
1
Sets the message channel for service dispatching.
public void setChannel(SubscribableChannel messageChannel) { this.messageChannel = messageChannel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChannel(Channel channel)\n {\n this.channel = channel;\n }", "public void setSocketChannel(SocketChannel socketChannel);", "public void SetChannel(int channel);", "private void setChannel(String channel){\n put(SlackParamsConstants.CHANNEL, channel);\n }", "public void set...
[ "0.6754158", "0.6443957", "0.63850856", "0.6265501", "0.6210511", "0.6197923", "0.61905015", "0.6181815", "0.6166394", "0.6072937", "0.60532105", "0.6030894", "0.601824", "0.59235585", "0.58543426", "0.58267546", "0.5807336", "0.5793455", "0.5782705", "0.5759635", "0.573761",...
0.7118343
0
Sets the socket support to be used to get port info from a server socket.
public void setSocketSupport(PortExposingTcpSocketSupport socketSupport) { this.socketSupport = socketSupport; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSocket(SocketWrapper socket);", "public void setSocket(ServerSocket socket) {\n\t\tthis.socket = socket;\n\t}", "int getUdpServerPort();", "public final void setRemoteSocketPort(int port){\r\n remoteSocketPort = port;\r\n }", "protected final void setSocket(Socket socket) {\n ...
[ "0.67722696", "0.6387815", "0.61760706", "0.613439", "0.6061193", "0.60515535", "0.5958846", "0.59238535", "0.589433", "0.58791995", "0.5834792", "0.58256584", "0.58144975", "0.5801564", "0.5801564", "0.5794076", "0.5786633", "0.57819897", "0.5774802", "0.5771374", "0.5754576...
0.7829168
0
Set the class implementing appmaster service.
public void setServiceImpl(Class<AppmasterService> serviceImpl) { this.serviceImpl = serviceImpl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setClassOfService(ClassOfService serviceClass);", "public Class getServiceClass() { return serviceClass; }", "public Class getServiceClass()\n {\n return serviceClass;\n }", "public void setHomeClass(Class homeAPI)\n {\n _homeClass = homeAPI;\n }", "public void setServiceClass(jav...
[ "0.73280936", "0.6414157", "0.6326819", "0.6304372", "0.6264957", "0.6165014", "0.6063375", "0.60409063", "0.5971671", "0.58612907", "0.5845901", "0.5786202", "0.57698697", "0.5758784", "0.5703184", "0.56753045", "0.56196773", "0.56177354", "0.56032205", "0.5590208", "0.55612...
0.7164088
1
Sets the appmaster service as an instance. This is used if service is created externally and we just inject it into this factory.
public void setServiceRef(IntegrationAppmasterService<?> serviceRef) { this.serviceRef = serviceRef; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppService appService() {\n\t\treturn appService;\n\t}", "private void setService(Service service) {\n this.service = service;\n }", "public static void setApplication(ApplicationBase instance)\r\n {\r\n ApplicationBase.instance = instance;\r\n }", "public void setServiceImpl(Class<A...
[ "0.60829824", "0.6043722", "0.60321575", "0.5984998", "0.5815305", "0.5713572", "0.5706225", "0.56873417", "0.5674806", "0.5613572", "0.5567523", "0.5560581", "0.5557465", "0.5554251", "0.5532921", "0.5525156", "0.55011034", "0.5499615", "0.5494275", "0.54682034", "0.5458795"...
0.63443226
0
Devuelve el nivel del nodo
public NivelNodo getNivelNodo() { return nivelNodo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "@Override\n public int nivel() {\n return this.altura() - 1;\n }", "public void set...
[ "0.7556544", "0.74519235", "0.73052835", "0.724755", "0.724755", "0.7079939", "0.70459914", "0.696656", "0.68710834", "0.67581975", "0.67395616", "0.6691238", "0.6688271", "0.6677212", "0.6547154", "0.63776517", "0.63599074", "0.6359815", "0.629814", "0.6275339", "0.61900234"...
0.74619514
1
Guarda el nivel al que pertenece el nodo
public void setNivelNodo(NivelNodo nivelNodo) { this.nivelNodo = nivelNodo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void s...
[ "0.6677193", "0.66073436", "0.64385957", "0.6264459", "0.62625176", "0.6187873", "0.60663694", "0.6031656", "0.59878916", "0.59794897", "0.5917181", "0.58622575", "0.58303934", "0.5752023", "0.5745242", "0.57207817", "0.5681974", "0.56581503", "0.5617675", "0.55634993", "0.55...
0.6002584
8
tuve muchos problemas con los metodos y el polimorfismo con respecto a las clasespadres
public ArbolGeneralDNS(NodoGeneral raiz) { super(raiz); // TODO Auto-generated constructor stub }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void adicionarLetrasErradas() {\n }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo...
[ "0.6474738", "0.62258404", "0.62159973", "0.6076255", "0.60350484", "0.60301054", "0.6000147", "0.59471464", "0.59315765", "0.58789665", "0.58669794", "0.58547103", "0.582998", "0.57991", "0.57884645", "0.5767808", "0.57469857", "0.5744607", "0.57312226", "0.57190394", "0.571...
0.0
-1
Metodo que agrega un nodo a un nivel, si existe no se agrega.
public ArbolGeneralDNS agregarHijo(ArbolGeneralDNS hijo){ return modAdmin.agregarHijo( hijo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel...
[ "0.6648787", "0.6438415", "0.64003927", "0.6396134", "0.62275326", "0.6221523", "0.60723233", "0.60292274", "0.59790295", "0.59695196", "0.58981794", "0.5889739", "0.58892894", "0.5887781", "0.58875597", "0.5803798", "0.5780324", "0.57600504", "0.57589865", "0.57212424", "0.5...
0.0
-1
> modulo de administracion > Metodo que elimina una maquina del servidor DNS , pasando como parametro la URL
public void eliminar(ListaConArreglo nodosMaquina){ modAdmin.eliminar( nodosMaquina); if(!ModAdmin.existe){ System.err.println("El dominio indicado no existe en la base"); } ModAdmin.existe=false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decomminsionHost( int hostId );", "public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void del(String url) throws IOEx...
[ "0.66179335", "0.63763607", "0.58223516", "0.57869256", "0.57696146", "0.5696839", "0.5663242", "0.5650015", "0.5646403", "0.56460273", "0.55981666", "0.5588938", "0.5583134", "0.55726296", "0.5567252", "0.5565588", "0.5547251", "0.55256474", "0.54881847", "0.5478408", "0.546...
0.5514427
18
Metodo que va agregando por cada nodo de la url de derecha a izquierda en el arbol
public void agregarNuevaUrl(ListaConArreglo url,String ip,ListaEnlazada servicios) { modAdmin.agregarMaquina( url, ip, servicios); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClaveDicotomica(String url, String nodoInicial) {\n\t\tuserAgent = new UserAgent();\n\t\tarbolNodos = new TreeMap<String, ArrayList<String>>();\n\t\tcontenidoNodos = new TreeMap<String, ArrayList<String>>();\n\t\tgenerosNodos = new TreeMap<String, String>();\n\t\ttraductor = new Translator();\n\t\t// Inicia...
[ "0.58445", "0.5714065", "0.56856585", "0.56728715", "0.55616397", "0.5555791", "0.5554998", "0.55035305", "0.54921913", "0.5464617", "0.5455104", "0.5453652", "0.54475725", "0.54015994", "0.53238183", "0.5307859", "0.5289496", "0.52794755", "0.52603483", "0.5257261", "0.52352...
0.5133079
32
>modulo de consultas >>>>>> Imprime el nivel superior
public void imprimirNivelSuperior(){ modCons.imprimirNivelSuperior(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\...
[ "0.6326817", "0.6181833", "0.5950897", "0.59037787", "0.5851465", "0.5752699", "0.56355286", "0.55263096", "0.5521838", "0.54948723", "0.5424817", "0.54179126", "0.5416104", "0.5396027", "0.5378028", "0.5373488", "0.53695565", "0.5322549", "0.5316897", "0.5314434", "0.5306480...
0.6726973
0
Imprime el nivel medio
public void imprimirNivelMedio(){ modCons.imprimirNivelMedio(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void diminuiInSitu(){\n if(quantidade_in_situ>0)\n quantidade_in_situ--;\n else\n return;\n }", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\trein...
[ "0.70904845", "0.6112289", "0.607931", "0.6015198", "0.5887958", "0.58664066", "0.5866032", "0.56945676", "0.56643826", "0.5634124", "0.5597457", "0.55872124", "0.55821043", "0.5496604", "0.54643863", "0.5462328", "0.5461544", "0.5458903", "0.54258144", "0.5395214", "0.536374...
0.8312871
0
Usado por los metodos que imprimen
public void imprimirHijos(){ modCons.imprimirHijos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mostrarTareasEnPosicionImpar(){}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\...
[ "0.6682481", "0.6620993", "0.6589672", "0.65833205", "0.6511006", "0.64948833", "0.6475694", "0.6465494", "0.64430225", "0.63799155", "0.6357228", "0.63332355", "0.62988985", "0.62804383", "0.6279946", "0.6279677", "0.6249977", "0.6244514", "0.62438065", "0.6233356", "0.62059...
0.0
-1
Dado un nodo(subdominio) imprime todos nombres de dominio que dependen de el
public void imprimirSubdominios(String dominio,Pila pila){ modCons.imprimirSubdominios(dominio,pila); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incluirDescendiente(INodo INodo) {\n\t\tif (this.getDescendientes().size() > numArg) {\n\t\t\treturn;\n\t\t}\n\t\tsuper.incluirDescendiente(INodo);\n\t}", "private Nodo eliminarNodo(Nodo aux, int dato) {\n\t\tif(aux == null) { \r\n\t\t\tSystem.out.println(\"El nodo no se encontro\");\r\n\t\t}else if(...
[ "0.6021883", "0.57252496", "0.57078546", "0.56570303", "0.5642139", "0.56130964", "0.5496485", "0.54828143", "0.54529715", "0.5394353", "0.5390722", "0.538884", "0.53786975", "0.53780997", "0.53473204", "0.5323859", "0.5270783", "0.5265222", "0.5254027", "0.5252808", "0.52480...
0.6689306
0
Imprime los datos de la maquina de un dominio
public void imprimirDescripcionDominio(Pila url){ modCons.imprimirDescripcionDominio(url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n m...
[ "0.64509773", "0.634593", "0.6069294", "0.60166633", "0.59811026", "0.59239876", "0.58811134", "0.58667266", "0.5806943", "0.5753437", "0.5697599", "0.56661683", "0.56563187", "0.5571505", "0.5541374", "0.5510678", "0.55091405", "0.55053717", "0.54686207", "0.5460655", "0.546...
0.0
-1
Metodo usado para imprimir las ramas que desprenden de un nodo(imprime todas sin validacion)
public Pila imprimirRamasHijas(Pila pila,ArbolGeneralDNS subdominioLimite){ modCons.imprimirRamasHijas(pila,subdominioLimite); return pila; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System....
[ "0.64033836", "0.62973243", "0.6120525", "0.5941161", "0.5890111", "0.5846042", "0.5749497", "0.5721482", "0.564928", "0.5604201", "0.5570258", "0.551777", "0.5517054", "0.5479531", "0.5454692", "0.54314005", "0.5428021", "0.5409148", "0.53697836", "0.5363394", "0.53427565", ...
0.5040271
83
novi niz duzine 100
public static void main(String[] args) { int[] niz = new int[100]; // dodjeljuje random vrijednosti od 0 do 9 u niz for (int i = 0; i < niz.length; i++) { niz[i] = (int) (Math.random() * 10); } // niz za brojanje brojeva koji se ponavljaju int[] brojac = new int[10]; for (int e : niz) { brojac[e]++; } // ispisuje koliko se puta ponovio broj for (int j = 0; j < brojac.length; j++) { if (brojac[j] != 0) { System.out.println("Broj " + j + " ponovio se " + brojac[j] + " puta."); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "private void sonucYazdir() {\n\t\talinanPuan ...
[ "0.63205415", "0.6285839", "0.6159981", "0.60977787", "0.59859556", "0.59170336", "0.58793765", "0.58779925", "0.58337885", "0.58304965", "0.58174527", "0.5815976", "0.5776351", "0.5771775", "0.5747666", "0.5735759", "0.57354784", "0.5735311", "0.5727612", "0.57094765", "0.57...
0.0
-1
return CLOSED_OPTION or >=0
public static int askOptions(String title, String msg, Object[] options) { return askOptions(title, msg, options, options[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int d...
[ "0.59100187", "0.5854661", "0.5785515", "0.57512736", "0.56307584", "0.5588493", "0.5571069", "0.55603534", "0.5552472", "0.55220205", "0.54979986", "0.54790306", "0.54753834", "0.54753834", "0.5462252", "0.5449001", "0.54278857", "0.5416323", "0.54038954", "0.5389453", "0.53...
0.0
-1
return CLOSED_OPTION or >=0
public static int askOptions(String title, String msg, Object[] options, Object defOpt) { return JOptionPane.showOptionDialog(ZoeosFrame.getInstance(), msg, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, defOpt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int d...
[ "0.59100187", "0.5854661", "0.5785515", "0.57512736", "0.56307584", "0.5588493", "0.5571069", "0.55603534", "0.5552472", "0.55220205", "0.54979986", "0.54790306", "0.54753834", "0.54753834", "0.5462252", "0.5449001", "0.54278857", "0.5416323", "0.54038954", "0.5389453", "0.53...
0.0
-1
/ disperseRewards() params: Player p, player who finished acting Role r, role the player was acting in bool success, true if player succeeded acting, false otherwise precond: player attempted act Disperses rewards based on players success or failure of acting
public void disperseRewards(Player player, boolean success){ if(success){ //if player is in a role on a scene card if(player.getCurrentRole().isOnCard()){ player.addCredits(2); } else{ player.addCredits(1); player.addMoney(1); } } else{ //disperse loss rewards //if player is not on a scene card role if(!(player.getCurrentRole().isOnCard())){ player.addMoney(1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void rewards(Player p);", "@Override\n\tprotected void killReward() {\n\t\t\n\t}", "@Test\n public void testPactOfNegationRollback() {\n setStrictChooseMode(true);\n\n addCard(Zone.HAND, playerA, \"Silvercoat Lion\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 2...
[ "0.61181325", "0.5607543", "0.5518594", "0.5461689", "0.5456794", "0.53818166", "0.52710825", "0.5267543", "0.52586806", "0.525548", "0.5248266", "0.5247772", "0.51427126", "0.5136378", "0.51176286", "0.51160896", "0.510433", "0.50981194", "0.5073562", "0.50670314", "0.503501...
0.7701081
0
/ dispersePayout() params: Scene s, scene we're paying out for Role r, role the player has precond: scene is being wrapped up description: pays player for role as scene ends
public void dispersePayout(Room room){ Dice d = new Dice(); ArrayList<Integer> payoutVals = d.rollPayout(room.getSceneCard().getSceneBudget()); ArrayList<Player> players = room.getOccupants(); ArrayList<Role> roles = room.getSceneCard().getRoles(); ArrayList<Integer> ranks = new ArrayList<Integer>(); for(Role r : roles){ ranks.add(r.getRank()); } Collections.sort(ranks); Collections.reverse(ranks); //loop through roles and pay respective players for(int i = 0; i < payoutVals.size(); i++){ int roleRank = ranks.get(i % ranks.size()); for(Player p : players){ if(p.getCurrentRole() != null){ if(p.getCurrentRole().isOnCard() && p.getCurrentRole().getRank() == roleRank){ p.addMoney(payoutVals.get(i)); } } } } for(Player p : players){ if(p.getCurrentRole() != null){ if(!(p.getCurrentRole().isOnCard())){ p.addMoney(p.getCurrentRole().getRank()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disperseRewards(Player player, boolean success){\n if(success){\n //if player is in a role on a scene card\n if(player.getCurrentRole().isOnCard()){\n player.addCredits(2);\n }\n else{\n player.addCredits(1);\n player.addMoney(1);\n ...
[ "0.5824114", "0.54383063", "0.5258303", "0.52580756", "0.5249309", "0.5203707", "0.5112684", "0.51085144", "0.5097773", "0.5070743", "0.50503594", "0.502946", "0.50216544", "0.49788478", "0.48214573", "0.48118502", "0.47894198", "0.47872844", "0.47597593", "0.47289956", "0.47...
0.6927695
0
Gets the value of the value property.
public boolean isValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }", "public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}", "public Object getValue() {\n\t\t\treturn value;\n\t\t}", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return v...
[ "0.8500105", "0.8305661", "0.8197616", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191429", "0.8191429", "0.81832105", "0.817907", "0.81453365", "0.81289715", "0.8115546", "0.81137264", "0.8095892", "0.8094922", "0.8094922", "0.8094922", "0.8094922", ...
0.0
-1
Sets the value of the value property.
public void setValue(boolean value) { this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Value value) {\n this.value = value;\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(Object value) {\n ...
[ "0.858186", "0.83486116", "0.8284121", "0.8237388", "0.82108575", "0.8111187", "0.80922234", "0.7982137", "0.79254067", "0.79254067", "0.7906303", "0.78104156", "0.7806489", "0.7791204", "0.77591354", "0.7693482", "0.7688979", "0.76523703", "0.7603448", "0.7600727", "0.760072...
0.70270467
96
Gets the value of the value property.
public boolean isValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }", "public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}", "public Object getValue() {\n\t\t\treturn value;\n\t\t}", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return v...
[ "0.8500105", "0.8305661", "0.8197616", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191429", "0.8191429", "0.81832105", "0.817907", "0.81453365", "0.81289715", "0.8115546", "0.81137264", "0.8095892", "0.8094922", "0.8094922", "0.8094922", "0.8094922", ...
0.0
-1
Sets the value of the value property.
public void setValue(boolean value) { this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Value value) {\n this.value = value;\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(Object value) {\n ...
[ "0.858186", "0.83486116", "0.8284121", "0.8237388", "0.82108575", "0.8111187", "0.80922234", "0.7982137", "0.79254067", "0.79254067", "0.7906303", "0.78104156", "0.7806489", "0.7791204", "0.77591354", "0.7693482", "0.7688979", "0.76523703", "0.7603448", "0.7600727", "0.760072...
0.0
-1
Method to process the messages received from the SQS topic
public void processMessage(String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onSqsRequestSuccess(String internalQueueName, int messagesCount);", "@Override\n public void onMessage(Message message) {\n try {\n // Generate data\n QueueProcessor processor = getBean(QueueProcessor.class);\n ServiceData serviceData = processor.parseResponseMessage(response, message);\n...
[ "0.67425257", "0.6396895", "0.63854176", "0.6350337", "0.6309698", "0.62333965", "0.6209661", "0.616247", "0.6152131", "0.6066789", "0.6029803", "0.6007276", "0.5971567", "0.5968852", "0.5963807", "0.59469956", "0.59366626", "0.58915365", "0.5876116", "0.58702517", "0.5858912...
0.59238744
17
Method to send message to the SQS topic
public void sendMessage(String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(String providedTopic,V msg);", "public static void SendSMSMessage(String intentName, String message) {\n\n String topic = myProps.getPropertyValue(\"SNSMessageTopic\");\n\n try {\n\n log.warn(\"Creating SNS Message\");\n AmazonSNS snsClient = AmazonSNSClientBu...
[ "0.73757344", "0.7364023", "0.70885426", "0.6986044", "0.6859861", "0.6637555", "0.66116476", "0.66095734", "0.66019964", "0.64684314", "0.64643925", "0.64289373", "0.63720024", "0.63581353", "0.6350991", "0.6295653", "0.62696534", "0.62638235", "0.6260057", "0.6196351", "0.6...
0.6319388
15