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
Creates a new Bank with default parameters
public BankImpl() { accounts = new HashMap<Integer,Account>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public Bank() {\n\t\tsuper();\n\t}", "public Bank() {\n\n }", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID()...
[ "0.796873", "0.7584618", "0.75109255", "0.750765", "0.7069863", "0.70374894", "0.6996496", "0.69833004", "0.69754815", "0.6831744", "0.68228316", "0.6806946", "0.6801854", "0.6708276", "0.6654024", "0.663545", "0.662896", "0.6627537", "0.65984595", "0.6529278", "0.6500047", ...
0.62816596
34
Delete all of the Bank's Accounts. Useful for testing.
@Override public void deleteAllAccounts() { synchronized (accounts) { accounts.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void deleteAllAccounts() {\n\t\t\r\n\t}", "public void clearBalances() {\n for (HDAccount acct : mAccounts)\n acct.clearBalance();\n }", "@VisibleForTesting\n void removeAllAccounts();", "private void clearAccounts() {\n userAccountListController.getUserAc...
[ "0.81768584", "0.7484309", "0.7231387", "0.6994609", "0.67117745", "0.65324485", "0.64847016", "0.6428475", "0.64248246", "0.6395737", "0.6341457", "0.63192475", "0.6301877", "0.62705094", "0.624231", "0.62417305", "0.6240653", "0.6239365", "0.6236671", "0.6236671", "0.623667...
0.8105554
1
Adds the Account to the Bank's collection of Accounts. The Bank may only have one instance of any given Account.
@Override public void addAccount(Account account) throws DuplicateAccountException { if (accounts.containsValue(account)) { throw new DuplicateAccountException(account.id()); } else { accounts.put(account.id(), account); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAccount(Account account){\n if(accounts == null){\n accounts = new HashSet<>();\n }\n accounts.add(account);\n }", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we st...
[ "0.7789386", "0.749635", "0.747972", "0.7468903", "0.72754556", "0.7145746", "0.7140894", "0.70479196", "0.6971397", "0.6961836", "0.68601", "0.6845276", "0.68095505", "0.676478", "0.671664", "0.6645968", "0.65674603", "0.652175", "0.64817095", "0.64812857", "0.64382637", "...
0.72079545
5
Withdraws the specified amount from the specified Account and deposits it to the specified Account (synchronized on individual Accounts)
@Override public void transfer(int fromId, int toId, long amount) { synchronized (accounts.get(fromId)){ synchronized (accounts.get(toId)){ try { accounts.get(fromId).withdraw(amount); accounts.get(toId).deposit(amount); } catch (InsufficientFundsException e) { //Swallow the error and do nothing } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void withdraw(double amount) {\n this.balance -= amount;\n }", "public void withdrawMoney(int amount) {\n wallet.withdraw(amount);\n }", "public void withdraw(double amount)\n\t{\n\t\tbalance -= amount;\n\t}", "public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}", "...
[ "0.74416333", "0.7423671", "0.741894", "0.7394956", "0.73769784", "0.7352085", "0.7327697", "0.7305475", "0.729975", "0.7299501", "0.72356045", "0.7234939", "0.72123754", "0.7195185", "0.7167274", "0.71600884", "0.715041", "0.71305937", "0.7126021", "0.712206", "0.7107757", ...
0.6636087
73
Deposit the given amount to the Account identified by accountId.
@Override public void deposit(int accountId, long amount) { if(!accounts.containsKey(accountId)){ throw new IllegalArgumentException("Account " + accountId + " does not exist in this Bank."); } else{ synchronized (accounts.get(accountId)){ accounts.get(accountId).deposit(amount); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts(...
[ "0.7147227", "0.6953571", "0.69208115", "0.67842585", "0.6734448", "0.67191917", "0.66673136", "0.66320026", "0.6627232", "0.66225314", "0.66140985", "0.66128784", "0.6611068", "0.66085726", "0.66085726", "0.65972304", "0.6588908", "0.65464413", "0.65137106", "0.6506187", "0....
0.807981
0
Returns the long value representing the total balance of all the Accounts in the Bank.
@Override public long totalBalances() { long total = 0; for(Account account : accounts.values()){ total += account.balance(); } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public long getTotalBalances() {\n return accounts.values().stream().map(Account::getBalance).mapToLong(Long::longValue).sum();\n }", "@Override\n public long getTotalBalances() {\n return accountMap.values()\n .stream()\n .map(account -> account.g...
[ "0.75227547", "0.7277093", "0.7212022", "0.6716361", "0.66788733", "0.6631321", "0.66180813", "0.65493315", "0.6479017", "0.6339227", "0.63063365", "0.62696314", "0.62479186", "0.6233361", "0.61607516", "0.6140331", "0.6098983", "0.6092117", "0.6066781", "0.60411304", "0.6011...
0.7180176
3
Constructor por defecto donde iniciliazamos nuesta unidad de persistencia
public EmpleadoService() { super(); emf = Persistence.createEntityManagerFactory("up_h2"); empDAO = new EmpleadoDAO(emf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Persistencia() {\n\t}", "public PersistenciaCMT() {\n\n }", "public Caso_de_uso () {\n }", "public CuentaDeposito() {\n super();\n }", "public LocalResidenciaColaborador() {\n //ORM\n }", "public Unidadmedida() {\r\n\t}", "public EstadosSql() {\r\n }", "public Alojamiento...
[ "0.7443842", "0.7376111", "0.6999447", "0.6960476", "0.6953305", "0.69033766", "0.684048", "0.6828102", "0.68043596", "0.6800459", "0.6772402", "0.6751365", "0.6743492", "0.6721881", "0.66976887", "0.6680848", "0.6672468", "0.66435295", "0.66194415", "0.66154456", "0.6612934"...
0.0
-1
Metodo para guardar un empleado
public boolean guardar(Empleado empleado) { try { empDAO.create(empleado); System.out.println("Guardando Empleado:" + empleado.toString()); return true; } catch (Exception ex) { ex.printStackTrace(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardar(Empleado empleado) {\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.persist(empleado);\n\t\tentityManager.getTransaction().commit();\n\t\tJPAUtil.shutdown();\n\t}", "public void guardar(Empleado e){\r\n \r\n //Para serializar el primer paso es generar el archivo fisico...
[ "0.74624395", "0.7295036", "0.7191533", "0.69167286", "0.6874966", "0.6763566", "0.6698208", "0.6673829", "0.65779465", "0.6561173", "0.6522721", "0.6474853", "0.6444199", "0.6434533", "0.64344907", "0.6415751", "0.6409721", "0.63760144", "0.6374744", "0.63625777", "0.6354937...
0.72603345
2
Metodo para buscar un empleado
public Empleado buscarEmpleado(long legajo) throws NonexistentEntityException { EmpleadoAsalariado empA = new EmpleadoAsalariado(); // 3- Validar datos if (legajo == empA.getLegajo()) { return empDAO.findEmpleado(legajo); } else // 4- Llamada al Dao para buscar emp { empDAO.findEmpleado(legajo); } return empDAO.findEmpleado(legajo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static java.util.List<com.esperapp.ws.Empleado> buscarEmpleado(java.lang.String cedula) {\n com.esperapp.ws.AsignarTurnos_Service service = new com.esperapp.ws.AsignarTurnos_Service();\n com.esperapp.ws.AsignarTurnos port = service.getAsignarTurnosPort();\n return port.buscarEmpleado(c...
[ "0.70905787", "0.6950896", "0.6850721", "0.67018217", "0.66151667", "0.66142535", "0.6603442", "0.6564806", "0.6519575", "0.6481946", "0.6480754", "0.64251727", "0.6393027", "0.63849276", "0.6370251", "0.6364996", "0.63498306", "0.6325721", "0.63225687", "0.63178825", "0.6291...
0.67822534
3
Metodo para actualizar los datos de un empleado.
public Empleado editarEmpleado(Empleado empleado) { try { empDAO.edit(empleado); return buscarEmpleado(empleado.getLegajo()); } catch (NonexistentEntityException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizar();", "ParqueaderoEntidad actualizar(ParqueaderoEntidad parqueadero);", "public void actualizar() {\n\n\t}", "public void modificarempleado(Empleado empleado)throws SQLException{\n Connection conexion = null;\n \n try{\n conexion = GestionSQL.openConnecti...
[ "0.7029616", "0.70010346", "0.69875526", "0.69859576", "0.69060767", "0.69060624", "0.6807462", "0.6661039", "0.66380185", "0.6616303", "0.65873164", "0.65795517", "0.6547772", "0.6497351", "0.6488982", "0.64642894", "0.64577645", "0.6421587", "0.6338592", "0.62996656", "0.62...
0.57572013
95
Metodo que devuelve los tipos de empleado para este caso simulamos que los empleados son obtenidos de la base a partir de un Enum.
public List<String> getTiposEmpleados() { List<String> tipos = new ArrayList<String>(); tipos.add(TipoEmpleado.EmpleadoAsalarido.name()); tipos.add(TipoEmpleado.EmpleadoBaseMasComision.name()); tipos.add(TipoEmpleado.EmpleadoPorComision.name()); tipos.add(TipoEmpleado.EmpleadoPorHora.name()); return tipos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String toString() {\r\n return tipo;\r\n }", "public String getTipo(){\r\n return Tipo;\r\n }", "Object getTipo();", "public String getTipo();", "public String getTipo();", "public String getTipo(){\r\n return tipo;\r\n }", "public String getTipo(){...
[ "0.67629844", "0.65600646", "0.6490268", "0.63850695", "0.63850695", "0.62810767", "0.6230649", "0.62155837", "0.6150836", "0.6150354", "0.6087747", "0.6064552", "0.6047352", "0.6047352", "0.6035426", "0.6024487", "0.6017039", "0.600799", "0.59953344", "0.59737146", "0.594135...
0.6290433
5
state when highest index reached methods: state stack push,pop,drop,peek
final void state_push(int state) { try { stateptr++; statestk[stateptr]=state; } catch (ArrayIndexOutOfBoundsException e) { int oldsize = statestk.length; int newsize = oldsize * 2; int[] newstack = new int[newsize]; System.arraycopy(statestk,0,newstack,0,oldsize); statestk = newstack; statestk[stateptr]=state; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if ...
[ "0.73261446", "0.7007271", "0.6893106", "0.658581", "0.6574746", "0.6574746", "0.6574746", "0.6547325", "0.65392995", "0.64820015", "0.63985705", "0.63560325", "0.6352645", "0.6329559", "0.62606174", "0.62571466", "0.6256572", "0.6238058", "0.6226258", "0.62117845", "0.620765...
0.6705047
3
method: init_stacks : allocate and prepare stacks
final boolean init_stacks() { stateptr = -1; val_init(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n {\n stateptr = -1...
[ "0.76225513", "0.76225513", "0.76225513", "0.7513346", "0.6865094", "0.6719313", "0.67016083", "0.66273594", "0.6520718", "0.6401846", "0.6372111", "0.63665736", "0.6341818", "0.6329356", "0.6321506", "0.6302477", "0.6287149", "0.62723583", "0.62369144", "0.6225109", "0.62164...
0.7628471
0
method: dump_stacks : show n levels of the stacks
void dump_stacks(int count) { int i; System.out.println("=index==state====value= s:"+stateptr+" v:"+valptr); for (i=0;i<count;i++) System.out.println(" "+i+" "+statestk[i]+" "+valstk[i]); System.out.println("======================"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void dump_stacks(int count)\n {\n int i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n }", "void dump_stacks...
[ "0.7315965", "0.7130177", "0.7130177", "0.7130177", "0.6913257", "0.6778964", "0.6692224", "0.66779125", "0.66511047", "0.66410846", "0.6597046", "0.6591387", "0.6532172", "0.6505829", "0.6372203", "0.63704", "0.6278495", "0.62439066", "0.6192338", "0.6191092", "0.6183232", ...
0.70856607
4
methods: value stack push,pop,drop,peek.
final void val_init() { yyval=new SemValue(); yylval=new SemValue(); valptr=-1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(T value) {\n \tstack.add(value);\n }", "public void pop();", "public void pop() throws StackUnderflowException;", "public ExParValue pop() {\r\n\t\tExParValue v = null;\r\n\t\tif (value.next != null) {\r\n\t\t\tv = value;\r\n\t\t\tvalue = value.next;\r\n\t\t\t// System.out.println(\"E...
[ "0.71931624", "0.7190875", "0.7185017", "0.7044362", "0.70169044", "0.7000382", "0.6992985", "0.690153", "0.6880146", "0.6878587", "0.68676883", "0.68643737", "0.6854969", "0.6850131", "0.68405986", "0.6822734", "0.68086594", "0.68067193", "0.6803055", "0.680281", "0.67834675...
0.0
-1
line 671 "Parser.java" method: yylexdebug : check lexer state
void yylexdebug(int state,int ch) { String s=null; if (ch < 0) ch=0; if (ch <= YYMAXTOKEN) //check index bounds s = yyname[ch]; //now get it if (s==null) s = "illegal-symbol"; debug("state "+state+", reading "+ch+" ("+s+")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "void yylexdebug(int state,int ch)\n{\nStrin...
[ "0.7157847", "0.7157847", "0.6660318", "0.653292", "0.6332616", "0.6332616", "0.6273997", "0.6241551", "0.6145485", "0.60843235", "0.6055456", "0.60182315", "0.60182315", "0.60182315", "0.60182315", "0.60182315", "0.5984615", "0.5984615", "0.5984615", "0.5984615", "0.5984615"...
0.7231346
0
current token string method: yyparse : parse input and execute indicated items
int yyparse() { boolean doaction; init_stacks(); yynerrs = 0; yyerrflag = 0; yychar = -1; //impossible char forces a read yystate=0; //initial state state_push(yystate); //save it while (true) //until parsing is done, either correctly, or w/error { doaction=true; //if (yydebug) debug("loop"); //#### NEXT ACTION (from reduction table) for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate]) { //if (yydebug) debug("yyn:"+yyn+" state:"+yystate+" yychar:"+yychar); if (yychar < 0) //we want a char? { yychar = yylex(); //get next token //if (yydebug) debug(" next yychar:"+yychar); //#### ERROR CHECK #### //if (yychar < 0) //it it didn't work/error // { // yychar = 0; //change it to default string (no -1!) //if (yydebug) // yylexdebug(yystate,yychar); // } }//yychar<0 yyn = yysindex[yystate]; //get amount to shift by (shift index) if ((yyn != 0) && (yyn += yychar) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) { //if (yydebug) //debug("state "+yystate+", shifting to state "+yytable[yyn]); //#### NEXT STATE #### yystate = yytable[yyn];//we are in a new state state_push(yystate); //save it val_push(yylval); //push our lval as the input for next rule yychar = -1; //since we have 'eaten' a token, say we need another if (yyerrflag > 0) //have we recovered an error? --yyerrflag; //give ourselves credit doaction=false; //but don't process yet break; //quit the yyn=0 loop } yyn = yyrindex[yystate]; //reduce if ((yyn !=0 ) && (yyn += yychar) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) { //we reduced! //if (yydebug) debug("reduce"); yyn = yytable[yyn]; doaction=true; //get ready to execute break; //drop down to actions } else //ERROR RECOVERY { if (yyerrflag==0) { yyerror("syntax error"); yynerrs++; } if (yyerrflag < 3) //low error count? { yyerrflag = 3; while (true) //do until break { if (stateptr<0 || valptr<0) //check for under & overflow here { return 1; } yyn = yysindex[state_peek(0)]; if ((yyn != 0) && (yyn += YYERRCODE) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) { //if (yydebug) //debug("state "+state_peek(0)+", error recovery shifting to state "+yytable[yyn]+" "); yystate = yytable[yyn]; state_push(yystate); val_push(yylval); doaction=false; break; } else { //if (yydebug) //debug("error recovery discarding state "+state_peek(0)+" "); if (stateptr<0 || valptr<0) //check for under & overflow here { return 1; } state_pop(); val_pop(); } } } else //discard this token { if (yychar == 0) return 1; //yyabort //if (yydebug) //{ //yys = null; //if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; //if (yys == null) yys = "illegal-symbol"; //debug("state "+yystate+", error recovery discards token "+yychar+" ("+yys+")"); //} yychar = -1; //read another } }//end error recovery }//yyn=0 loop if (!doaction) //any reason not to proceed? continue; //skip action yym = yylen[yyn]; //get count of terminals on rhs //if (yydebug) //debug("state "+yystate+", reducing "+yym+" by rule "+yyn+" ("+yyrule[yyn]+")"); if (yym>0) //if count of rhs not 'nil' yyval = val_peek(yym-1); //get current semantic value if (reduceListener == null || reduceListener.onReduce(yyrule[yyn])) // if intercepted! switch(yyn) { //########## USER-SUPPLIED ACTIONS ########## case 1: //#line 59 "Parser.y" { tree = new Tree.TopLevel(val_peek(0).clist, val_peek(0).loc); } break; case 2: //#line 65 "Parser.y" { yyval.clist.add(val_peek(0).cdef); } break; case 3: //#line 69 "Parser.y" { yyval.clist = new ArrayList<Tree.ClassDef>(); yyval.clist.add(val_peek(0).cdef); } break; case 5: //#line 79 "Parser.y" { yyval.vdef = new Tree.VarDef(val_peek(0).ident, val_peek(1).type, val_peek(0).loc); } break; case 6: //#line 85 "Parser.y" { yyval.type = new Tree.TypeIdent(Tree.INT, val_peek(0).loc); } break; case 7: //#line 89 "Parser.y" { yyval.type = new Tree.TypeIdent(Tree.VOID, val_peek(0).loc); } break; case 8: //#line 93 "Parser.y" { yyval.type = new Tree.TypeIdent(Tree.BOOL, val_peek(0).loc); } break; case 9: //#line 97 "Parser.y" { yyval.type = new Tree.TypeIdent(Tree.STRING, val_peek(0).loc); } break; case 10: //#line 101 "Parser.y" { yyval.type = new Tree.TypeClass(val_peek(0).ident, val_peek(1).loc); } break; case 11: //#line 105 "Parser.y" { yyval.type = new Tree.TypeArray(val_peek(2).type, val_peek(2).loc); } break; case 12: //#line 111 "Parser.y" { yyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc); } break; case 13: //#line 117 "Parser.y" { yyval.ident = val_peek(0).ident; } break; case 14: //#line 121 "Parser.y" { yyval = new SemValue(); } break; case 15: //#line 127 "Parser.y" { yyval.flist.add(val_peek(0).vdef); } break; case 16: //#line 131 "Parser.y" { yyval.flist.add(val_peek(0).fdef); } break; case 17: //#line 135 "Parser.y" { yyval = new SemValue(); yyval.flist = new ArrayList<Tree>(); } break; case 19: //#line 143 "Parser.y" { yyval = new SemValue(); yyval.vlist = new ArrayList<Tree.VarDef>(); } break; case 20: //#line 150 "Parser.y" { yyval.vlist.add(val_peek(0).vdef); } break; case 21: //#line 154 "Parser.y" { yyval.vlist = new ArrayList<Tree.VarDef>(); yyval.vlist.add(val_peek(0).vdef); } break; case 22: //#line 161 "Parser.y" { yyval.fdef = new MethodDef(true, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc); } break; case 23: //#line 165 "Parser.y" { yyval.fdef = new MethodDef(false, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc); } break; case 24: //#line 171 "Parser.y" { yyval.stmt = new Block(val_peek(1).slist, val_peek(2).loc); } break; case 25: //#line 177 "Parser.y" { yyval.slist.add(val_peek(0).stmt); } break; case 26: //#line 181 "Parser.y" { yyval = new SemValue(); yyval.slist = new ArrayList<Tree>(); } break; case 27: //#line 188 "Parser.y" { yyval.stmt = val_peek(0).vdef; } break; case 28: //#line 193 "Parser.y" { if (yyval.stmt == null) { yyval.stmt = new Tree.Skip(val_peek(0).loc); } } break; case 39: //#line 211 "Parser.y" { yyval.stmt = new Tree.Assign(val_peek(2).lvalue, val_peek(0).expr, val_peek(1).loc); } break; case 40: //#line 215 "Parser.y" { yyval.stmt = new Tree.Exec(val_peek(0).expr, val_peek(0).loc); } break; case 41: //#line 219 "Parser.y" { yyval = new SemValue(); } break; case 43: //#line 226 "Parser.y" { yyval = new SemValue(); } break; case 44: //#line 232 "Parser.y" { yyval.lvalue = new Tree.Ident(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc); if (val_peek(1).loc == null) { yyval.loc = val_peek(0).loc; } } break; case 45: //#line 239 "Parser.y" { yyval.lvalue = new Tree.Indexed(val_peek(3).expr, val_peek(1).expr, val_peek(3).loc); } break; case 46: //#line 245 "Parser.y" { yyval.expr = new Tree.CallExpr(val_peek(4).expr, val_peek(3).ident, val_peek(1).elist, val_peek(3).loc); if (val_peek(4).loc == null) { yyval.loc = val_peek(3).loc; } } break; case 47: //#line 254 "Parser.y" { yyval.expr = val_peek(0).lvalue; } break; case 50: //#line 260 "Parser.y" { yyval.expr = new Tree.Binary(Tree.PLUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 51: //#line 264 "Parser.y" { yyval.expr = new Tree.Binary(Tree.MINUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 52: //#line 268 "Parser.y" { yyval.expr = new Tree.Binary(Tree.MUL, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 53: //#line 272 "Parser.y" { yyval.expr = new Tree.Binary(Tree.DIV, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 54: //#line 276 "Parser.y" { yyval.expr = new Tree.Binary(Tree.MOD, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 55: //#line 280 "Parser.y" { yyval.expr = new Tree.Binary(Tree.EQ, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 56: //#line 284 "Parser.y" { yyval.expr = new Tree.Binary(Tree.NE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 57: //#line 288 "Parser.y" { yyval.expr = new Tree.Binary(Tree.LT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 58: //#line 292 "Parser.y" { yyval.expr = new Tree.Binary(Tree.GT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 59: //#line 296 "Parser.y" { yyval.expr = new Tree.Binary(Tree.LE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 60: //#line 300 "Parser.y" { yyval.expr = new Tree.Binary(Tree.GE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 61: //#line 304 "Parser.y" { yyval.expr = new Tree.Binary(Tree.AND, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 62: //#line 308 "Parser.y" { yyval.expr = new Tree.Binary(Tree.OR, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 63: //#line 312 "Parser.y" { yyval = val_peek(1); } break; case 64: //#line 316 "Parser.y" { yyval.expr = new Tree.Unary(Tree.NEG, val_peek(0).expr, val_peek(1).loc); } break; case 65: //#line 320 "Parser.y" { yyval.expr = new Tree.Unary(Tree.NOT, val_peek(0).expr, val_peek(1).loc); } break; case 66: //#line 324 "Parser.y" { yyval.expr = new Tree.ReadIntExpr(val_peek(2).loc); } break; case 67: //#line 328 "Parser.y" { yyval.expr = new Tree.ReadLineExpr(val_peek(2).loc); } break; case 68: //#line 332 "Parser.y" { yyval.expr = new Tree.ThisExpr(val_peek(0).loc); } break; case 69: //#line 336 "Parser.y" { yyval.expr = new Tree.NewClass(val_peek(2).ident, val_peek(3).loc); } break; case 70: //#line 340 "Parser.y" { yyval.expr = new Tree.NewArray(val_peek(3).type, val_peek(1).expr, val_peek(4).loc); } break; case 71: //#line 344 "Parser.y" { yyval.expr = new Tree.TypeTest(val_peek(3).expr, val_peek(1).ident, val_peek(5).loc); } break; case 72: //#line 348 "Parser.y" { yyval.expr = new Tree.TypeCast(val_peek(2).ident, val_peek(0).expr, val_peek(0).loc); } break; case 73: //#line 352 "Parser.y" { yyval.expr = new Tree.Ternary(Tree.COND, val_peek(4).expr, val_peek(2).expr, val_peek(0).expr, val_peek(4).loc); } break; case 74: //#line 356 "Parser.y" { yyval.expr = new Tree.Binary(Tree.PCLONE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc); } break; case 75: //#line 362 "Parser.y" { yyval.expr = new Tree.Literal(val_peek(0).typeTag, val_peek(0).literal, val_peek(0).loc); } break; case 76: //#line 366 "Parser.y" { yyval.expr = new Null(val_peek(0).loc); } break; case 78: //#line 373 "Parser.y" { yyval = new SemValue(); yyval.elist = new ArrayList<Tree.Expr>(); } break; case 79: //#line 380 "Parser.y" { yyval.elist.add(val_peek(0).expr); } break; case 80: //#line 384 "Parser.y" { yyval.elist = new ArrayList<Tree.Expr>(); yyval.elist.add(val_peek(0).expr); } break; case 81: //#line 391 "Parser.y" { yyval.stmt = new Tree.WhileLoop(val_peek(2).expr, val_peek(0).stmt, val_peek(4).loc); } break; case 82: //#line 397 "Parser.y" { yyval.stmt = new Tree.Repeat(val_peek(4).stmt, val_peek(1).expr, val_peek(5).loc); } break; case 83: //#line 403 "Parser.y" { yyval.stmt = new Tree.ForLoop(val_peek(6).stmt, val_peek(4).expr, val_peek(2).stmt, val_peek(0).stmt, val_peek(8).loc); } break; case 84: //#line 409 "Parser.y" { yyval.stmt = new Tree.Break(val_peek(0).loc); } break; case 85: //#line 415 "Parser.y" { yyval.stmt = new Tree.If(val_peek(3).expr, val_peek(1).stmt, val_peek(0).stmt, val_peek(5).loc); } break; case 86: //#line 421 "Parser.y" { yyval.stmt = val_peek(0).stmt; } break; case 87: //#line 425 "Parser.y" { yyval = new SemValue(); } break; case 88: //#line 431 "Parser.y" { yyval.stmt = new Tree.Return(val_peek(0).expr, val_peek(1).loc); } break; case 89: //#line 435 "Parser.y" { yyval.stmt = new Tree.Return(null, val_peek(0).loc); } break; case 90: //#line 441 "Parser.y" { yyval.stmt = new Print(val_peek(1).elist, val_peek(3).loc); } break; case 91: //#line 447 "Parser.y" { yyval.stmt = new Tree.Switch(val_peek(5).expr, val_peek(2).slist, val_peek(1).stmt, val_peek(7).loc); } break; case 92: //#line 453 "Parser.y" { yyval.slist.add(val_peek(0).stmt); } break; case 93: //#line 457 "Parser.y" { yyval = new SemValue(); yyval.slist = new ArrayList<Tree>(); } break; case 94: //#line 464 "Parser.y" { yyval.stmt = new Tree.Case(val_peek(2).expr, val_peek(0).slist, val_peek(3).loc); } break; case 95: //#line 470 "Parser.y" { yyval.stmt = new Tree.Default(val_peek(0).slist, val_peek(2).loc); } break; case 96: //#line 474 "Parser.y" { yyval = new SemValue(); } break; case 97: //#line 480 "Parser.y" { yyval.stmt = new Tree.Continue(val_peek(0).loc); } break; //#line 1319 "Parser.java" //########## END OF USER-SUPPLIED ACTIONS ########## }//switch //#### Now let's reduce... #### //if (yydebug) debug("reduce"); state_drop(yym); //we just reduced yylen states yystate = state_peek(0); //get new state val_drop(yym); //corresponding value drop yym = yylhs[yyn]; //select next TERMINAL(on lhs) if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL { //if (yydebug) debug("After reduction, shifting from state 0 to state "+YYFINAL+""); yystate = YYFINAL; //explicitly say we're done state_push(YYFINAL); //and save it val_push(yyval); //also save the semantic value of parsing if (yychar < 0) //we want another character? { yychar = yylex(); //get next character //if (yychar<0) yychar=0; //clean, if necessary //if (yydebug) //yylexdebug(yystate,yychar); } if (yychar == 0) //Good exit (if lex returns 0 ;-) break; //quit the loop--all DONE }//if yystate else //else not done yet { //get next state and push, for next yydefred[] yyn = yygindex[yym]; //find out where to go if ((yyn != 0) && (yyn += yystate) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yystate) yystate = yytable[yyn]; //get new state else yystate = yydgoto[yym]; //else go to new defred //if (yydebug) debug("after reduction, shifting from state "+state_peek(0)+" to state "+yystate+""); state_push(yystate); //going again, so push state & val... val_push(yyval); //for next action } }//main loop return 0;//yyaccept!! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parse(Lexer lex);", "public void run()\n {\n yyparse();\n }", "public void run()\n{\n yyparse();\n}", "public void run()\n{\n yyparse();\n}", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n ...
[ "0.73469454", "0.7014289", "0.686535", "0.686535", "0.66377354", "0.6442044", "0.6285909", "0.61875606", "0.60212934", "0.6011834", "0.59977", "0.59881455", "0.59881455", "0.594668", "0.58535564", "0.5845833", "0.5802813", "0.5780944", "0.57597107", "0.57511955", "0.57427794"...
0.5961219
13
TODO Autogenerated method stub
@Override public RequiredData requiredData() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String creatorType() { return "ShapeViewer"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Viewer create(String name) { if(this.isAllDataPresent()) { return new ShapeViewer(name); } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Recursively deletes a folder
public static void deleteRecursively(File file) throws IOException { boolean successful = true; if (file.isDirectory()) { for (File sub : file.listFiles()) { deleteRecursively(sub); } successful = file.delete(); } else if (file.isFile()) { successful = file.delete(); } if (!successful) { throw new IOException("Could not delete:" + file.getName()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteDirectory(String path, boolean recursive) throws IOException;", "public static void deleteFolder(File folder) {\r\nFile[] files = folder.listFiles();\r\nif(files!=null) { //some JVMs return null for empty dirs\r\nfor(File f: files) {\r\nif(f.isDirectory()) {\r\ndeleteFolder(f);\r\n} else {\r\nf.delete...
[ "0.7739513", "0.7700406", "0.720276", "0.71105254", "0.6985159", "0.69511807", "0.6902221", "0.68740255", "0.67103386", "0.6706819", "0.6693126", "0.6609217", "0.6567582", "0.65455246", "0.65249264", "0.6523807", "0.652223", "0.6518625", "0.6517991", "0.64962316", "0.64738214...
0.66044563
12
Checks if two objects are null and of the same class still need to check a==b
public static boolean preEq(Object a, Object b) { return a != null && b != null && a.getClass().equals(b.getClass()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NeededForTesting\n public static boolean areObjectsEqual(Object a, Object b) {\n return a == b || (a != null && a.equals(b));\n }", "private static final boolean equal(Object a, Object b) {\n if (a == b)\n return true;\n if (a == null)\n return false;\n if...
[ "0.7711499", "0.75262725", "0.74950206", "0.742551", "0.72916466", "0.7190418", "0.7084181", "0.7082406", "0.6966375", "0.693298", "0.69099486", "0.6837117", "0.6605436", "0.6601452", "0.65919244", "0.6579726", "0.65374374", "0.65356153", "0.6534553", "0.64977175", "0.6490398...
0.7152092
6
Converts a byte list into an object
public static Serializable deserialize(List<Byte> data) throws ClassNotFoundException, IOException { byte[] bs = new byte[data.size()]; for (int i = 0; i < bs.length; i++) { bs[i] = data.get(i); } return deserialize(bs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<byte[]> asByteArrayList();", "public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n ...
[ "0.6967209", "0.67777926", "0.6305124", "0.6305121", "0.6262352", "0.62040627", "0.6193503", "0.6135815", "0.6105847", "0.6027411", "0.59923255", "0.59157425", "0.59117854", "0.586959", "0.5840942", "0.5814117", "0.5771034", "0.5770655", "0.57614404", "0.5728797", "0.5693368"...
0.692126
1
Converts a byte array into an object
public static Serializable deserialize(byte[] data) throws ClassNotFoundException, IOException { ByteArrayInputStream bis = new ByteArrayInputStream(data); ObjectInputStream ois; ois = new ObjectInputStream(bis); return (Serializable) ois.readObject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Object bytesToObject( byte[] bytes ) throws IOException, ClassNotFoundException\n {\n if( bytes == null ){\n return null;\n }\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);\n ObjectInputStream objectInputStream = new ObjectInpu...
[ "0.76974636", "0.7641502", "0.7475705", "0.74513245", "0.7404755", "0.70875275", "0.7072247", "0.70139134", "0.69764924", "0.6926546", "0.67768943", "0.6776537", "0.66603637", "0.65368617", "0.64254636", "0.640905", "0.63996994", "0.63952595", "0.6265742", "0.6179963", "0.611...
0.59537685
28
Checks if any of the Objects supplied is null
public static void confirmNotNull(Object... o) throws InvalidParameterException { for (Object object : o) { if (object == null) { throw new InvalidParameterException("Invalid parameters"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkAllNull() {\n return (locationFilterCriteria == null || locationFilterCriteria.checkAllNull()) &&\n minPricePerM2 == null && maxPricePerM2 == null &&\n sizeInM2LowerBound == null &&\n sizeInM2UpperBound == null && roofed == null &&\n leasingTim...
[ "0.69335", "0.6541705", "0.6487556", "0.64663994", "0.64186805", "0.6417836", "0.6405153", "0.6396283", "0.6337553", "0.6318014", "0.62932384", "0.6261681", "0.6255693", "0.6248689", "0.6242682", "0.62413096", "0.6240352", "0.6240203", "0.6233574", "0.6227383", "0.62266386", ...
0.5788719
55
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","C:\\Users\\Rajini Priya\\Desktop\\rrr\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://www.amazon.com/"); driver.manage().window().maximize(); Actions a= new Actions(driver); //Moves to Specific element a.moveToElement(driver.findElement(By.cssSelector("a[id='nav-link-accountList']"))).build().perform(); //Enter text in search bar a.moveToElement(driver.findElement(By.id("twotabsearchtextbox"))).click().keyDown(Keys.SHIFT).sendKeys("raghava").build().perform(); //To right-click on element a.moveToElement(driver.findElement(By.cssSelector("a[id='nav-link-accountList']"))).contextClick().build().perform(); }
{ "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
The store record field name to be used for the pie angles. The values bound to this field name must be positive real numbers.
public void setAngleField(String value) { JsoHelper.setAttribute(jsObj, "angleField", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1248();", "java.lang.String getField1489();", "java.lang.String getField1548();", "java.lang.String getField1448();", "java.lang.String getField1515();", "java.lang.String getField1645();", "java.lang.String getField1748();", "java.lang.String getField1263();", "java.lang.S...
[ "0.5813672", "0.58096415", "0.57729906", "0.5749776", "0.5738753", "0.5727636", "0.5714643", "0.5678089", "0.56573385", "0.5624554", "0.5596561", "0.55884475", "0.558485", "0.55824846", "0.5579263", "0.557399", "0.5569882", "0.55668914", "0.55648506", "0.5563716", "0.55569607...
0.0
-1
The store record field name to be used for the pie angles. The values bound to this field name must be positive real numbers.
public void setField(String value) { JsoHelper.setAttribute(jsObj, "field", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1248();", "java.lang.String getField1489();", "java.lang.String getField1548();", "java.lang.String getField1448();", "java.lang.String getField1515();", "java.lang.String getField1645();", "java.lang.String getField1748();", "java.lang.String getField1263();", "java.lang.S...
[ "0.5810955", "0.5806183", "0.57698697", "0.5747099", "0.5736052", "0.57244337", "0.5711469", "0.5674946", "0.5654249", "0.5621696", "0.55934143", "0.55854523", "0.5582196", "0.55794513", "0.557621", "0.5570937", "0.5566845", "0.55637735", "0.5561666", "0.5560423", "0.55536497...
0.0
-1
Use the entire disk or just a fraction of it for the gauge. Default's false. Defaults to: false
public void setDonut(boolean value) { JsoHelper.setAttribute(jsObj, "donut", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUnitsMetric(boolean b) {\r\n\t\tmetric = b;\r\n\t}", "public boolean isSuperGiant(){\r\n\t\tboolean flag = false;\r\n\t\tif ((getMass() >100) && (getSize()>100)){\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void setGrowable(boolean value) {\n this.growable = value;...
[ "0.5442241", "0.5360522", "0.5312337", "0.5293772", "0.5242933", "0.51525956", "0.51515675", "0.51370955", "0.5121133", "0.51130277", "0.51004666", "0.50822884", "0.5065952", "0.5044276", "0.5040267", "0.50371045", "0.5003276", "0.49972793", "0.49772987", "0.49196607", "0.490...
0.0
-1
Use the entire disk or just a fraction of it for the gauge.
public void setDonut(double value) { JsoHelper.setAttribute(jsObj, "donut", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onUpdate(long diskUsageSample);", "Update withDiskSizeGB(Integer diskSizeGB);", "Integer diskSizeGB();", "public void changeDisk(){\n if(isFull==true) {\n if (this.type == TYPE.WHITE) {\n this.type = TYPE.BLACK;\n } else {\n type = TYPE.WHITE;\n...
[ "0.61748296", "0.5952387", "0.5718009", "0.5572568", "0.5555731", "0.5489047", "0.54826677", "0.54782164", "0.5454943", "0.5449315", "0.5416532", "0.5402763", "0.5398075", "0.53918135", "0.5353806", "0.53458524", "0.530356", "0.5292767", "0.5285324", "0.52627695", "0.5260932"...
0.0
-1
The duration for the pie slice highlight effect. Defaults to: 150
public void setHighlightDuration(double value) { JsoHelper.setAttribute(jsObj, "highlightDuration", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tPieSlice s;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfloat temp=0,total=0;\n\t\t\t\t\t\tfor (int i = 0; i < pg.getSlices().size(); i++) {\n\t\t\t\t\t\t\ttemp=Float.parseFloat(BackgroundService.itemdata[i][4]);\n\t\t\t\t\t\t\ts = pg.getSlice(i);\n\t\t\t\t\t\t\ts.setGoalValue(...
[ "0.5591812", "0.49654594", "0.49576747", "0.4954423", "0.48400626", "0.47274423", "0.45781913", "0.45591846", "0.45470485", "0.45082098", "0.45027843", "0.44834536", "0.44670635", "0.44454533", "0.4423945", "0.4423942", "0.44157127", "0.4414253", "0.43867934", "0.43557438", "...
0.51638055
1
ListMatchs ls = new ListMatchs("Reservation", 0);
public Reservation(String title, Personne personne) { super(title); // this.matchs = matchs; this.personne = personne; // System.out.println(matchs.getNameJoueur1()); //append(matchs.getNameJoueur1()+ " " + matchs.getLastNameJoueur1() + " VS " + matchs.getNameJoueur2() + " " + matchs.getLastNameJoueur2()); // append("Le " + matchs.getDateMatch()); append("Vous avez actuellement " + ListMatchs.p.getNbrjeton()); addCommand(cmdBack); setCommandListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMatchList()\r\n {\r\n theMatchList = new MatchList();\r\n }", "Match createMatch();", "public Match( ) {\n\n }", "public Matchdata()\n {\n }", "public Match(){\n this(-1, null, 0, 0, null, null);\n }", "ArrayList<Match> getMatchList( Filter filter ) {\n ...
[ "0.7209547", "0.6398393", "0.6387131", "0.5914413", "0.5893415", "0.5857169", "0.58459175", "0.5766598", "0.5724444", "0.57131416", "0.5712507", "0.56218714", "0.5604798", "0.5588774", "0.55697477", "0.55517745", "0.55512846", "0.55260557", "0.5496246", "0.5489954", "0.547911...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { frame.dispose(); }
{ "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
model.addAttribute("bikelist", this.bikeService.getAllBikes()); model.addAttribute("curDate", bikeService.getCDate()); System.out.println("Returning " + this.bikeService.getAllBikes().size() + " Bikes to bikes.jsp");
@GetMapping public String viewForm(Model model) { if (model == null) { return "error"; } else { return "bikelistsaveform"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"findGoods\")\n public String findGoods(Model model){\n model.addAttribute(\"list\",goodsService.findGoods());\n return \"index\";\n }", "@RequestMapping(value = \"/list\", method= RequestMethod.GET) \n public String getAllBuku(Model model){\n model.addAttribute(\"b...
[ "0.7151588", "0.7015984", "0.6649", "0.65840346", "0.657322", "0.6533632", "0.65084314", "0.6501625", "0.6440162", "0.6435251", "0.63654125", "0.63635325", "0.6360806", "0.6311866", "0.630844", "0.6298069", "0.6285258", "0.6282134", "0.6275394", "0.6259374", "0.6249123", "0...
0.0
-1
nvertexreturn 6[[3, 6], [4, 3], [3, 2], [1, 3], [1, 2], [2, 4], [5, 2]]3
public static void main(String[] args) { int n = 6; int[][] vertex = {{3, 6}, {4, 3}, {3, 2}, {1, 3}, {1, 2}, {2, 4}, {5, 2}}; int result = new Lv3_49189().solution(n, vertex); System.out.println("result = " + result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfVertexes();", "public int getVertexCount();", "public int getNumVertices();", "public int getNumberOfVertices();", "int getVertices();", "public int numVertices();", "public int numVertices();", "public abstract int getVertexCount();", "public int numVertices() { return numV; }", "...
[ "0.7244659", "0.71246034", "0.7057372", "0.6990733", "0.69783264", "0.6770875", "0.6770875", "0.67574537", "0.67407906", "0.66047335", "0.65569615", "0.6466382", "0.64496225", "0.64443296", "0.6381809", "0.6297812", "0.6251457", "0.6249749", "0.6111759", "0.60923755", "0.6074...
0.65931547
10
retrieve All Users details
@RequestMapping("/retrieveUsersDetails") public ResponseEntity<Object> retrieveById(){ return loginService.retrieveUsersDetails(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAllUsers();", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User...
[ "0.83754516", "0.80836403", "0.80784374", "0.8057905", "0.80079716", "0.80079716", "0.7942704", "0.79224557", "0.7920372", "0.78721386", "0.7868483", "0.7861128", "0.781894", "0.7817086", "0.7797185", "0.77956396", "0.7792698", "0.77532697", "0.77345425", "0.77331704", "0.771...
0.0
-1
A Tag has a TagType and should be unique for all TagTypes
public Tag(UUID id, String name, UUID tagTypeId, boolean deleted, long touchedAt) { this.id = id; this.tagTypeId = tagTypeId; this.name = name; this.deleted = deleted; this.touchedAt = touchedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getType() {\n\t\treturn getTag();\r\n\t}", "public TagType getType() {\r\n\t\treturn type;\r\n\t}", "Tag createTag();", "public void addTag(Tag t);", "int getTagClass();", "public void addTag(TagDTO t) {\n\t\ttags.add(t);\n\t}", "private void tagDataType()\n {\n List...
[ "0.61750233", "0.5947379", "0.591122", "0.5844143", "0.5655548", "0.5613462", "0.55712116", "0.5570345", "0.5558168", "0.5547713", "0.5541236", "0.5502875", "0.54762137", "0.547398", "0.547398", "0.5473496", "0.5453518", "0.5412845", "0.5411088", "0.5400569", "0.537202", "0...
0.0
-1
Called when an action is performed.
String replaceParserMessage(Entity e, String action);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public void action() {\n action.action();\n }", "@Override\n public void action() {\n }", "@Override\n ...
[ "0.79119927", "0.78679705", "0.7684077", "0.7642205", "0.7642205", "0.7642205", "0.7534602", "0.7514153", "0.74896795", "0.74896795", "0.7481936", "0.74803203", "0.7463114", "0.7463114", "0.7463114", "0.7463114", "0.7463114", "0.7463114", "0.7463114", "0.7463114", "0.7397096"...
0.0
-1
Returns all of the inactivation blocks registered for a particular business object
public Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions( @SuppressWarnings("rawtypes") Class inactivationBlockedBusinessObjectClass) { Set<InactivationBlockingMetadata> blockingClasses = getDataDictionary().getAllInactivationBlockingMetadatas(inactivationBlockedBusinessObjectClass); if (blockingClasses == null) { return Collections.emptySet(); } return blockingClasses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;", "public ProductionBlock[] getAllProductionBlocks();", "public Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces() {\n \n Set<BusinessInterfaceDescriptor<?>> localBusIntfs = new HashSet<BusinessInterfa...
[ "0.6364751", "0.5847459", "0.5712773", "0.55707407", "0.554977", "0.54963034", "0.54936576", "0.541525", "0.5354575", "0.53360593", "0.528364", "0.52794105", "0.5270641", "0.5247519", "0.52442074", "0.52392447", "0.52201194", "0.51891303", "0.5136017", "0.51064306", "0.509180...
0.74865097
0
TODO: make intervalTree from requests > to determine overlapping timeframes
public int getLatestCost() { return latestCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n...
[ "0.5546581", "0.5425962", "0.5386501", "0.5301227", "0.53002095", "0.52658623", "0.52597886", "0.51002216", "0.50330883", "0.5016539", "0.49676004", "0.49634606", "0.49615195", "0.49474573", "0.49164945", "0.49105668", "0.48964107", "0.48888743", "0.48543346", "0.4832171", "0...
0.0
-1
TODO Autogenerated method stub
public void addRequest(Request q) { requestList.add(q); }
{ "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
Set the Holder of this panel Should only be used by the panel Handler
public void setEnvironment(PanelEnvironment aEnvironment) { this.panelEnvironment = aEnvironment; if( this.panelEnvironment == null ) { this.panelEnvironment = new NullPanelEnvironment(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setupPanel()\n {\n\n }", "@Override\r\n public void setup(Panel panel) {\n }", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.ad...
[ "0.63904095", "0.5926144", "0.5900224", "0.5867226", "0.58372307", "0.5808286", "0.580004", "0.5799517", "0.57987005", "0.5736696", "0.56683946", "0.56671435", "0.5650075", "0.5616871", "0.56115055", "0.56050074", "0.55980355", "0.5586141", "0.5584833", "0.5576867", "0.556155...
0.0
-1
Called from the Handler when the panel is activated
public void activated() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onPanelOpened(Panel panel) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void componentShown(ComponentEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n \tpublic void start(AcceptsOneWidget panel, EventBus eventBus) {\n \t\tpanel.setWidget(view);\t\t\r\n \t}", "@Override\n public voi...
[ "0.71931994", "0.6890916", "0.6837276", "0.6801288", "0.67748874", "0.67689025", "0.6766019", "0.6748493", "0.6716317", "0.6716317", "0.6702651", "0.6702179", "0.6668885", "0.6668885", "0.66629916", "0.6658905", "0.66317", "0.663092", "0.66293275", "0.6583266", "0.6549688", ...
0.63435745
62
Called from the Handler when the panel is deactivated
public void deActivated() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onDeactivate() {\n\t\t/* Hide the FakeToolTip that could be open in this moment */\n\t\tfakeToolTip.hide();\n\t}", "@Override\n public void onDeactivate() {\n }", "@Override\n\tpublic void onDeactivate() {\n\t}", "@Override\n public void windowDeactivated( WindowEvent arg0 )\n ...
[ "0.74263465", "0.7338315", "0.72619957", "0.71955866", "0.71955866", "0.71888435", "0.716098", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659", "0.7142659",...
0.70667636
50
Called from the Handler when the panel is closed
public void closed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onPanelClosed(Panel panel) {\n\r\n\t}", "public void onClosingFinished() {\n super.onClosingFinished();\n resetHorizontalPanelPosition();\n setClosingWithAlphaFadeout(false);\n }", "public void onGuiClosed() {\n super.onGuiClosed();\n }", "@Overrid...
[ "0.82814544", "0.7817432", "0.7403486", "0.7353234", "0.73321605", "0.7307586", "0.7307586", "0.7305941", "0.7285642", "0.7285642", "0.7285642", "0.7285642", "0.7285642", "0.7285642", "0.72781116", "0.7276374", "0.72630066", "0.72630066", "0.72630066", "0.72630066", "0.725393...
0.0
-1
Get the title of the Panel, displayed for example int the Titlebar of a Frame
public String getTitle() { return this.title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPanelName() {\n return \"Title\";\n }", "public TitlePanelView getTitlePanel() {\n\t\treturn titleview;\n\t}", "private JPanel getTitlePanel() {\n JPanel main = ProgramPresets.createPanel();\n main.setLayout(new FlowLayout());\n JLabel tron1 = new JLabel(ProgramP...
[ "0.82818264", "0.7394528", "0.73692405", "0.7311268", "0.7303014", "0.72330743", "0.7143881", "0.7143881", "0.70987993", "0.70766515", "0.7048193", "0.7048193", "0.7048193", "0.7048193", "0.7048193", "0.70119697", "0.70070153", "0.6963667", "0.6963667", "0.6963667", "0.696366...
0.68578196
39
Set the title of the panel
public void setTitle(String aNewTitle) { this.title = aNewTitle; this.panelEnvironment.panelTitleChanged(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitlePanel() {\n\t\ttitleview = new TitlePanelView();\n\t\ttitleview.createView();\n\t\tnorthpanel.add(titleview.getView());\n\t\n\t}", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+...
[ "0.82385576", "0.80126375", "0.7961651", "0.7718762", "0.77037686", "0.770183", "0.7699288", "0.7673328", "0.7673328", "0.7673328", "0.7627175", "0.7623124", "0.7620648", "0.7620648", "0.7620648", "0.7620648", "0.7620648", "0.75871986", "0.7576349", "0.7572185", "0.75672734",...
0.7642506
10
Instantiates a new abstract soa project wizard page.
public AbstractSOAProjectWizardPage(String pageName) { super(pageName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}", "public void addPages() {\n\t\twizardPage = new WizardNewProjectCreationPage(\n\t\t\"NewExampleComSiteProject\");\n\t\twizardPage.setDescription(\"Create a new Example.com Site Project.\")...
[ "0.77395386", "0.7255314", "0.72551626", "0.7202559", "0.7058464", "0.70508504", "0.69664", "0.6894342", "0.6852531", "0.680225", "0.66632444", "0.6628771", "0.6610205", "0.6608714", "0.6593564", "0.65789354", "0.65110636", "0.65058327", "0.6483091", "0.64244497", "0.6395567"...
0.7573769
1
Instantiates a new abstract soa project wizard page.
public AbstractSOAProjectWizardPage(String pageName, String title, String description) { super(pageName, title, description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}", "public AbstractSOAProjectWizardPage(String pageName) {\r\n\t\tsuper(pageName);\r\n\t}", "public void addPages() {\n\t\twizardPage = new WizardNewProjectCreationPage(\n\t\t\"NewExampleCo...
[ "0.77395386", "0.7573769", "0.7255314", "0.72551626", "0.7202559", "0.7058464", "0.70508504", "0.69664", "0.6894342", "0.6852531", "0.680225", "0.66632444", "0.6628771", "0.6610205", "0.6608714", "0.6593564", "0.65789354", "0.65058327", "0.6483091", "0.64244497", "0.6395567",...
0.65110636
17
Adds the workspace root chooser.
protected Composite addWorkspaceRootChooser(final Composite parentComposite) { final ISOARootLocator locator = GlobalRepositorySystem.instanceOf() .getActiveRepositorySystem().getSOARootLocator(); final String rootLocation;/* * = locator != null ? locator * .getDefaultProjectLocation() : * DEFAULT_TEXT_VALUE; */ final boolean shouldOverrideProjectRootDirectory = locator .shouldOverrideProjectRootDirectory(); boolean saveLocation = false; // whether to save the location to pref // store if (shouldOverrideProjectRootDirectory) { final String storedRoot = getWorkspaceRoot(); if (StringUtils.isNotBlank(storedRoot)) { // try the stored parent dir first rootLocation = storedRoot; } else { // the parent dir is not stored, use the default location // instead rootLocation = locator != null ? locator .getDefaultProjectLocation() : DEFAULT_TEXT_VALUE; saveLocation = true; } } else { // not overriding the root loc, use the default project loc instaed rootLocation = locator != null ? locator .getDefaultProjectLocation() : DEFAULT_TEXT_VALUE; saveLocation = true; } if (saveLocation == true) { saveWorkspaceRoot(rootLocation); } // workspace root new Label(parentComposite, SWT.LEFT).setText("&Parent Directory:"); workspaceRootText = new Text(parentComposite, SWT.BORDER); workspaceRootText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); workspaceRootText.addModifyListener(modifyListener); workspaceRootText.setEditable(shouldOverrideProjectRootDirectory); workspaceRootText.setEnabled(shouldOverrideProjectRootDirectory); workspaceRootText.setText(rootLocation); UIUtil.decorateControl(this, workspaceRootText, "either browse to or enter the destination of the new project"); workspaceRootBrowseButton = new Button(parentComposite, SWT.PUSH); workspaceRootBrowseButton.setAlignment(SWT.RIGHT); workspaceRootBrowseButton.setText("&Browse..."); workspaceRootBrowseButton.setSelection(false); workspaceRootBrowseButton .setEnabled(shouldOverrideProjectRootDirectory); final SelectionListener workspaceBrowseListener = new SelectionListener() { @Override public void widgetDefaultSelected(final SelectionEvent e) { widgetSelected(e); } @Override public void widgetSelected(final SelectionEvent e) { final String dirName = UIUtil.directoryDialog( "Select Target Directory for Project:", rootLocation); if (StringUtils.isBlank(dirName)) return; workspaceRootText.setText(dirName); dialogChanged(); } }; workspaceRootBrowseButton.addSelectionListener(workspaceBrowseListener); // workspace root override button final SelectionListener overrideWorkspaceListener = new SelectionListener() { @Override public void widgetDefaultSelected(final SelectionEvent e) { widgetSelected(e); } @Override public void widgetSelected(final SelectionEvent e) { if (workspaceRootOverrideButton.getSelection() == false) { workspaceRootText.setEditable(false); workspaceRootText.setEnabled(false); workspaceRootText.setText(locator .getDefaultProjectLocation()); workspaceRootBrowseButton.setEnabled(false); } else { workspaceRootText.setEditable(true); workspaceRootText.setEnabled(true); workspaceRootBrowseButton.setEnabled(true); if (StringUtils.isBlank(workspaceRootText.getText())) workspaceRootText.setText(getWorkspaceRoot()); } dialogChanged(); } }; workspaceRootOverrideButton = createOverrideButton(parentComposite, workspaceRootText, overrideWorkspaceListener); workspaceRootOverrideButton .setSelection(shouldOverrideProjectRootDirectory); return parentComposite; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tsetMessage(\"Exchange have to save data to a local directory\");\r\n\t\tsetTitleImage(ResourceManager.getPluginImage(\"com.munch.exchange\", \"icons/login_dialog.gif\"));\r\n\t\tsetTitle(\"Select a workspace\");\r\n\t\tComposite area = (C...
[ "0.64220303", "0.56886876", "0.5658271", "0.55684626", "0.55143476", "0.5465795", "0.5424124", "0.5330783", "0.52712965", "0.5248034", "0.52365357", "0.52025914", "0.5193473", "0.51899475", "0.5138146", "0.5110814", "0.51004434", "0.5085197", "0.5069656", "0.5069656", "0.5069...
0.76537323
0
Gets the workspace root text.
protected Text getWorkspaceRootText() { return workspaceRootText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "private IWorkspaceRoot getWorkspaceRoot() {\n\t\treturn ResourcesPlugin.getWorkspace().getRoot();\n\t}", "public String getRoot() {\n return root;\n }", "public String getRoot();", "public String ge...
[ "0.7300458", "0.71986324", "0.71049935", "0.70563775", "0.6878213", "0.6738629", "0.66258156", "0.65232545", "0.6419331", "0.63580185", "0.63495165", "0.63223016", "0.6318748", "0.63028556", "0.6260409", "0.6243576", "0.61992544", "0.61309546", "0.60445136", "0.598928", "0.59...
0.8961893
0
Adds the service domain list.
protected CCombo addServiceDomainList(final Composite composite) throws Exception{ return addServiceDomainList(composite, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CCombo addServiceDomainList(final Composite composite, \r\n\t\t\tboolean enabled) throws Exception{\r\n\t\tISOAOrganizationProvider provider = \r\n\t\t\tGlobalRepositorySystem.instanceOf().getActiveRepositorySystem().getActiveOrganizationProvider();\r\n\t\tif (provider != null && provider.supportFunction...
[ "0.6174699", "0.6152828", "0.60355735", "0.60115236", "0.60105276", "0.5990842", "0.5967835", "0.59349936", "0.57348305", "0.57148474", "0.5561319", "0.55499935", "0.55499935", "0.5544583", "0.553678", "0.5494859", "0.5485258", "0.5435706", "0.54279417", "0.53668743", "0.5366...
0.68067366
0
Adds the service domain list.
protected CCombo addServiceDomainList(final Composite composite, boolean enabled) throws Exception{ ISOAOrganizationProvider provider = GlobalRepositorySystem.instanceOf().getActiveRepositorySystem().getActiveOrganizationProvider(); if (provider != null && provider.supportFunctionalDomain() == false) { return null; } this.serviceDomainList = super.createCCombo(composite, "Functional Do&main", true, new String[0], "The service functional domain"); // we still want it look like modifiable although it is ready only. serviceDomainList.setBackground(UIUtil.display() .getSystemColor(SWT.COLOR_LIST_BACKGROUND)); this.serviceDomainList.setEnabled(enabled); domainListModifyListener = new ModifyListener() { @Override public void modifyText(ModifyEvent e) { populiateClassifierList(); if (modifyListener != null) modifyListener.modifyText(e); dialogChanged(); } }; serviceDomainList.addListener(SWT.DefaultSelection, new Listener() { @Override public void handleEvent(Event e) { domainListModifyListener.modifyText(new ModifyEvent(e)); } }); serviceDomainList.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { Event event = new Event(); event.display = e.display; event.widget = e.widget; event.time = e.time; event.data = e.data; domainListModifyListener.modifyText(new ModifyEvent(event)); } }); serviceDomainList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); domainClassifierList = new CCombo(composite, SWT.BORDER | SWT.DROP_DOWN | SWT.READ_ONLY); domainClassifierList.setEnabled(enabled); domainClassifierList.setBackground(UIUtil.display() .getSystemColor(SWT.COLOR_LIST_BACKGROUND)); domainClassifierList.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); UIUtil.decorateControl(this, domainClassifierList, "the namespace part of the selected functional domain"); domainClassifierModifyListener = new ModifyListener() { @Override public void modifyText(ModifyEvent e) { domainClassifierChanged(); } }; domainClassifierList.addModifyListener(domainClassifierModifyListener); new Label(composite, SWT.NONE); return serviceDomainList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CCombo addServiceDomainList(final Composite composite) throws Exception{\r\n\t\treturn addServiceDomainList(composite, true);\r\n\t}", "public void addServiceDomain(QName serviceName, ServiceDomain serviceDomain) {\n _serviceDomains.put(serviceName, serviceDomain);\n }", "public void servic...
[ "0.68067366", "0.6152828", "0.60355735", "0.60115236", "0.60105276", "0.5990842", "0.5967835", "0.59349936", "0.57348305", "0.57148474", "0.5561319", "0.55499935", "0.55499935", "0.5544583", "0.553678", "0.5494859", "0.5485258", "0.5435706", "0.54279417", "0.53668743", "0.536...
0.6174699
1
Checks if is override project root directory.
public boolean isOverrideProjectRootDirectory() { if (workspaceRootOverrideButton == null || !workspaceRootOverrideButton.isEnabled()) return false; return workspaceRootOverrideButton.getSelection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean currentDirectoryIsOnRoot() {\n\t\treturn getCurrentDirectory().equals(getVirtualRoot());\n\t}", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());...
[ "0.6511354", "0.60479915", "0.5688334", "0.5615103", "0.55903304", "0.5542354", "0.5491688", "0.5488887", "0.5468109", "0.5421589", "0.538816", "0.53829545", "0.53697777", "0.5333796", "0.53118783", "0.52934754", "0.5275177", "0.52055496", "0.515878", "0.51445144", "0.5128797...
0.7841699
0
Gets the project root directory.
public String getProjectRootDirectory() { return getTextValue(workspaceRootText); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "public static File getProjectRoot() {\n\t\tString filePath = \"/\";\n\t\tString rootDirName = FileUtil.class.getResource(filePath).getPath();\n\t\tFile rtn = new File(rootDirName, \"../../\");\n\t\treturn rtn;\n\t}", "...
[ "0.833527", "0.80161744", "0.7799594", "0.7776238", "0.76713157", "0.76630706", "0.7575746", "0.7500641", "0.74837697", "0.74154824", "0.7400128", "0.7245213", "0.7178774", "0.7111953", "0.7081079", "0.70649564", "0.7029429", "0.6986313", "0.69383955", "0.6916255", "0.6904005...
0.81891316
1
Subclass should use LinkedHashMap for overriding this method in order to keep the order of the names.
public List<ProjectNameControl> getProjectNames() { final List<ProjectNameControl> result = new ArrayList<ProjectNameControl>(5); result.add(new ProjectNameControl(getResourceName(), getResourceNameText())); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OrderedNameMap() {\r\n\t\tthis(CASE_SENSITIVE);\r\n\t}", "@Override\n public List<IMapData<Integer, String>> getLinkedHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getLinkedHashMapData1());\n data.add(this.getLinkedHashMapData2());\n\...
[ "0.6053995", "0.60276824", "0.5887388", "0.58029926", "0.5802362", "0.58011585", "0.58011585", "0.5728761", "0.57073295", "0.56703377", "0.5661752", "0.56484056", "0.55902517", "0.558841", "0.555823", "0.55526423", "0.5547797", "0.55461824", "0.55461824", "0.55453026", "0.554...
0.0
-1
Gets the service domain.
public String getServiceDomain() { return getTextValue(this.serviceDomainList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized ServiceDomain getDomain() {\n if (!domains.containsKey(ROOT_DOMAIN)) {\n createDomain(ROOT_DOMAIN);\n }\n\n return getDomain(ROOT_DOMAIN);\n }", "public ServiceDomain getServiceDomain() {\n return _serviceDomain;\n }", "public String getDo...
[ "0.81665987", "0.804292", "0.80327106", "0.7684066", "0.7684066", "0.7651331", "0.7641245", "0.75402", "0.75099516", "0.74917895", "0.7429542", "0.7404021", "0.7368543", "0.72945684", "0.71962893", "0.71098727", "0.7098661", "0.7097946", "0.7096327", "0.7083682", "0.70399785"...
0.82466924
0
Gets the domain classifier.
public String getDomainClassifier() { return getTextValue(this.domainClassifierList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getClassifier() {\n return _classifier;\n }", "public Classifier getClassifier() {\n return classifier;\n }", "com.google.ads.googleads.v6.resources.DomainCategory getDomainCategory();", "@Override\n public Classifier getClassifier() {\n return this.classifier;\n }", ...
[ "0.67495155", "0.6596493", "0.65283453", "0.62903965", "0.61682934", "0.60504276", "0.604199", "0.5916833", "0.5895901", "0.5889308", "0.5872184", "0.58714616", "0.5785504", "0.57803166", "0.57530737", "0.57444245", "0.5716767", "0.56421834", "0.56421834", "0.5591188", "0.558...
0.7994507
0
Instantiates a new project name control.
public ProjectNameControl(String projectName, Control... controls) { this(projectName, controls != null ? Arrays.asList(controls) : null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Project(String name){\n\t\tthis.pName = name;\n\t}", "public ProjectNameControl(String projectName, List<Control> controls) {\r\n\t\t\tsuper();\r\n\t\t\tthis.projectName = projectName;\r\n\t\t\tif (controls != null) {\r\n\t\t\t\tthis.controls = controls;\r\n\t\t\t}\r\n\t\t}", "public Project(String name...
[ "0.6926802", "0.6897352", "0.67956126", "0.6572296", "0.65656096", "0.64177054", "0.63018245", "0.61091256", "0.6101672", "0.6098222", "0.60552037", "0.60323596", "0.6024277", "0.5980642", "0.5950206", "0.59447974", "0.59356415", "0.592106", "0.5885206", "0.58609134", "0.5848...
0.69354755
0
Instantiates a new project name control.
public ProjectNameControl(String projectName, List<Control> controls) { super(); this.projectName = projectName; if (controls != null) { this.controls = controls; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProjectNameControl(String projectName, Control... controls) {\r\n\t\t\tthis(projectName, controls != null ? Arrays.asList(controls) : null);\r\n\t\t}", "public Project(String name){\n\t\tthis.pName = name;\n\t}", "public Project(String name) {\n this.name = name;\n }", "private JComponent bu...
[ "0.69354755", "0.6926802", "0.67956126", "0.6572296", "0.65656096", "0.64177054", "0.63018245", "0.61091256", "0.6101672", "0.6098222", "0.60552037", "0.60323596", "0.6024277", "0.5980642", "0.5950206", "0.59447974", "0.59356415", "0.592106", "0.5885206", "0.58609134", "0.584...
0.6897352
2
Gets the project name.
public String getProjectName() { return projectName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProjectName() {\n return getProperty(Property.PROJECT_NAME);\n }", "java.lang.String getProjectName();", "public String getProjectName(){\n return projectModel.getProjectName();\n }", "public String getProjectName() {\n\t\treturn project;\n\t}", "String getProjectName();", ...
[ "0.88925797", "0.8725026", "0.86298025", "0.85521597", "0.84202504", "0.8404264", "0.83914596", "0.83914596", "0.82638943", "0.82419276", "0.82367456", "0.82367456", "0.8213786", "0.81935173", "0.812754", "0.8083326", "0.7849096", "0.771736", "0.76930517", "0.767653", "0.7620...
0.82003576
13
Constructor to create an instance of class 'Body'. This constructor is automatically generated. Please, do not modify!
@Inject public BodyIOGroup(Controller controller) { super(controller, "Body"); addInput("PlayPauseButton", IOTypes.BOOLEAN, 1); addInput("BatteryAlarm", IOTypes.BOOLEAN, 1); addInput("OnBattery", IOTypes.BOOLEAN, 1); addDigitalOutput("End", IOTypes.BOOLEAN, 1); addDigitalOutput("PauseControl", IOTypes.BOOLEAN, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NCLBody() {}", "protected Body (World world, org.jbox2d.dynamics.Body body) {\n\t\tthis.world = world;\n\t\tthis.body = body;\n\t}", "protected abstract Body newBodyImpl();", "public void setBody(Body body) {\n this.body = body;\n }", "public void setBody(ClassBodyNode body);", "public f...
[ "0.79546887", "0.7463132", "0.7369", "0.7269932", "0.7266395", "0.7186755", "0.7094808", "0.70459926", "0.70420825", "0.70286715", "0.69147986", "0.6895074", "0.68491644", "0.68459606", "0.6816455", "0.67870843", "0.6782375", "0.6767429", "0.6751344", "0.67429036", "0.6684128...
0.0
-1
Gets the value of the digital input 'PlayPauseButton'. This method is automatically generated. Please, do not modify! I/O direction and type: digital input User description of the I/O: ./. Range of the I/O value: [false; true]
public boolean getPlayPauseButton() { return getBooleanIOValue("PlayPauseButton", false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getPauseControl()\n\t{\n\t\treturn getBooleanIOValue(\"PauseControl\", true);\n\t}", "public JButton getPauseButton ()\n {\n return pauseButton;\n }", "private JButton getCmdPause() {\r\n\t\tif (cmdPause == null) {\r\n\t\t\tcmdPause = new JButton();\r\n\t\t\tcmdPause.setIcon(new ImageIcon(g...
[ "0.72689086", "0.71839154", "0.67465436", "0.642558", "0.636296", "0.63119614", "0.6228215", "0.61994463", "0.602025", "0.59662783", "0.5945047", "0.59267426", "0.5919275", "0.59178907", "0.5892885", "0.5855148", "0.5849206", "0.57720333", "0.5767217", "0.5736951", "0.5659138...
0.79505706
0
Gets the value of the digital input 'BatteryAlarm'. This method is automatically generated. Please, do not modify! I/O direction and type: digital input User description of the I/O: ./. Range of the I/O value: [false; true]
public boolean getBatteryAlarm() { return getBooleanIOValue("BatteryAlarm", false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Byte getBattery() {\n return battery;\n }", "public int getBattery() {\n return battery_;\n }", "public int getBatteryLevel() { return batteryLevel; }", "public int getBattery() {\n return battery_;\n }", "int getBattery();", "public boolean getOnBattery()\n\t{\n\t\tr...
[ "0.66292834", "0.65281576", "0.6478399", "0.64679456", "0.64106345", "0.6296114", "0.59434026", "0.59337777", "0.5913228", "0.59082735", "0.5864091", "0.5855007", "0.576158", "0.5694656", "0.5633397", "0.55768645", "0.554902", "0.5523555", "0.5499689", "0.5479484", "0.5467614...
0.7808103
0
Gets the value of the digital input 'OnBattery'. This method is automatically generated. Please, do not modify! I/O direction and type: digital input User description of the I/O: ./. Range of the I/O value: [false; true]
public boolean getOnBattery() { return getBooleanIOValue("OnBattery", false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBattery();", "public int getBatteryLevel() { return batteryLevel; }", "public boolean getBatteryAlarm()\n\t{\n\t\treturn getBooleanIOValue(\"BatteryAlarm\", false);\n\t}", "public int getBattery() {\n return battery_;\n }", "private void onFullBattery() {\n\n }", "public int getBattery(...
[ "0.6767555", "0.65857214", "0.64624816", "0.64210975", "0.6343512", "0.6332658", "0.63319486", "0.6316795", "0.6283699", "0.61678", "0.6120799", "0.60278517", "0.5949548", "0.59494734", "0.5914084", "0.58974564", "0.5877536", "0.5833965", "0.5819595", "0.579796", "0.5682212",...
0.7856779
0
Gets the value of the digital output 'End'. This method is automatically generated. Please, do not modify! I/O direction and type: digital output User description of the I/O: ./. Range of the I/O value: [false; true]
public boolean getEnd() { return getBooleanIOValue("End", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getEnd(){\n\t\treturn this.isEnd;\n\t}", "public double getEnd() {\n return end;\n }", "public double getEnd();", "public boolean getEnd() {\n return end_;\n }", "public String getEnd(){\n\t\treturn end;\n\t}", "public synchronized boolean getEnd(){\n\treturn end;\n }", ...
[ "0.7710219", "0.75708544", "0.7512107", "0.7463202", "0.7447629", "0.743774", "0.7437507", "0.7425527", "0.74098265", "0.739841", "0.73941904", "0.73901767", "0.7377374", "0.73237616", "0.7283278", "0.7142423", "0.71134293", "0.7012383", "0.6989395", "0.69760597", "0.6970128"...
0.81694484
0
Sets the value of the digital output 'End'. This method is automatically generated. Please, do not modify! I/O direction and type: digital output User description of the I/O: ./. Range of the I/O value: [false; true]
public void setEnd(java.lang.Boolean value) { setDigitalOutput("End", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEnd(){\n\t\tthis.isEnd=true;\n\t}", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "public boolean getEnd()\n\t{\n\t\treturn getBooleanIOValue(\"End\", true);\n\t}", "public void setEnd(int end) {\n\t\tthis.end = end;\n\t}", "public void setEnd(int end)\n {\n this...
[ "0.76657194", "0.70503384", "0.7000201", "0.69812083", "0.6940885", "0.6912631", "0.6877552", "0.6795739", "0.67776054", "0.6710167", "0.6584696", "0.6494065", "0.6481146", "0.6469954", "0.6469068", "0.6443668", "0.64434403", "0.6427198", "0.63612515", "0.6349973", "0.6349346...
0.82034135
0
Gets the value of the digital output 'PauseControl'. This method is automatically generated. Please, do not modify! I/O direction and type: digital output User description of the I/O: ./. Range of the I/O value: [false; true]
public boolean getPauseControl() { return getBooleanIOValue("PauseControl", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPauseControl(java.lang.Boolean value)\n\t{\n\t\tsetDigitalOutput(\"PauseControl\", value);\n\t}", "public boolean getPause() {\r\n return pause;\r\n }", "public boolean getPlayPauseButton()\n\t{\n\t\treturn getBooleanIOValue(\"PlayPauseButton\", false);\n\t}", "public long getWaitP...
[ "0.75160396", "0.6938664", "0.64437824", "0.6328515", "0.62762976", "0.6222579", "0.6168225", "0.6125958", "0.609407", "0.59528595", "0.5941709", "0.5905105", "0.5803542", "0.5780959", "0.5708155", "0.56885463", "0.5681797", "0.5677384", "0.5676021", "0.5672793", "0.56605726"...
0.8436336
0
Sets the value of the digital output 'PauseControl'. This method is automatically generated. Please, do not modify! I/O direction and type: digital output User description of the I/O: ./. Range of the I/O value: [false; true]
public void setPauseControl(java.lang.Boolean value) { setDigitalOutput("PauseControl", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getPauseControl()\n\t{\n\t\treturn getBooleanIOValue(\"PauseControl\", true);\n\t}", "public void pause() {\r\n fPause = true;\r\n }", "public void setPause(boolean p) {\n pause = p;\n if (pause) {\n timerS.cancel();\n// System.out.p...
[ "0.76337624", "0.6572709", "0.6494883", "0.6482176", "0.6475275", "0.64529085", "0.6417763", "0.6410268", "0.63509446", "0.6315884", "0.6314724", "0.62954015", "0.62901926", "0.62901926", "0.6289082", "0.6231353", "0.6212795", "0.6176098", "0.6104755", "0.6083611", "0.6077762...
0.8329942
0
Metodo responsavel por tratar um pedido de login
private void loginRequest(Message msg) throws SuspendExecution { boolean result = this.userDAO.contains( ((User) msg.obj).getUsername(), ((User) msg.obj).getPassword() ); msg.source.send( new Message( Message.Type.LOGIN_REP , null, result )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n Com...
[ "0.7253415", "0.7070663", "0.70006", "0.6829999", "0.67298925", "0.67266965", "0.6701421", "0.66862625", "0.66716766", "0.66633147", "0.6650409", "0.66485333", "0.66310585", "0.65930235", "0.65801036", "0.6493363", "0.649272", "0.64811647", "0.6472148", "0.6463786", "0.645465...
0.0
-1
Launching All products Activity
@Override public void onClick(View view) { Intent i = new Intent(getApplicationContext(), AllProductsActivity.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadInitialProducts(){\n final Intent intent = new Intent(this, MainActivity.class);\n\n ProductServiceProvider.getInstance().setServiceListener(new ProductServiceProvider.ServiceListener() {\n @Override\n public void onResultsSuccess(Response<SearchResult> response...
[ "0.6760638", "0.6717933", "0.66374534", "0.6566165", "0.65004927", "0.64855534", "0.6441389", "0.6410923", "0.6403349", "0.638893", "0.6369694", "0.6264594", "0.61846787", "0.61659634", "0.61592185", "0.6096714", "0.60747206", "0.60326916", "0.60191566", "0.60190105", "0.5971...
0.7486192
0
Launching create new product activity
@Override public void onClick(View view) { Intent i = new Intent(getApplicationContext(), NewProductActivity.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonNew(View view) {\n Intent intent = new Intent(this, ProductNewActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n Intent intent_addProduct = new Intent(this, AddToolActivity.class);\n startActivity(intent_addProduct...
[ "0.72832423", "0.7006078", "0.6942092", "0.68603855", "0.67610735", "0.6672689", "0.6630981", "0.65672636", "0.65562767", "0.6449535", "0.6442542", "0.6414621", "0.62929815", "0.6237411", "0.6135751", "0.6107065", "0.60894006", "0.6029282", "0.6027949", "0.5999261", "0.597825...
0.7607734
0
attacks player if they are in the same room
public void interact() { if(alive) { CaveExplorer.print(attackDescription); battle(); }else { CaveExplorer.print(deadDescription); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attack(Player opponent) {\n\t\t\n\t\tboolean ok = false;\n\t\tString coord = \"\";\n\t\t\n\n\t\twhile(!ok) {\n\t\t\tcoord = CoordCheck.getRandomCoordinate();\n\t\t\tif (!this.shots.contains(coord)) {\n\t\t\t\tok = true;\n\t\t\t\tthis.shots.add(coord);\n\t\t\t}\n\n\t\t}\n\t\ttry {\n\t\t\tthis.gameBoard....
[ "0.655429", "0.6525285", "0.6414401", "0.6313403", "0.62812024", "0.6257067", "0.62532157", "0.62103677", "0.6208729", "0.61978537", "0.6187757", "0.6176625", "0.6130204", "0.6129118", "0.6113464", "0.60938007", "0.60786104", "0.6069258", "0.6069258", "0.60533065", "0.6045858...
0.0
-1
This is a Slot clone() class method overwritten by the clone() method in Object class
@Override public Slot clone() { final Slot s = new Slot(); s.day = day; s.start = start; s.end = end; s.venue = venue; s.instructor = instructor; s.sectionType = sectionType; return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object clone() ;", "public abstract Object clone();", "Object clone();", "Object clone();", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clo...
[ "0.8261236", "0.80922914", "0.7909534", "0.7909534", "0.7847579", "0.7764519", "0.7764519", "0.7764519", "0.7764519", "0.77613485", "0.77385896", "0.7571429", "0.7529667", "0.75143933", "0.74802816", "0.7446899", "0.7424084", "0.7405193", "0.74020195", "0.73592514", "0.735709...
0.7572199
11
this method gets the day
public int getDay() { return day; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getDay();", "public int getDay()\n {\n return day;\n }", "public int getDay() {\r\n return day;\r\n }", "public int getDay() {\n return day;\n }", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay(){\n\t\treturn day;\n\t}", "public Date getDay() {\...
[ "0.8162286", "0.7900297", "0.7880267", "0.78613657", "0.7807741", "0.7776923", "0.76139957", "0.76139957", "0.76139957", "0.76139957", "0.76139957", "0.76017207", "0.76017207", "0.76017207", "0.7588221", "0.7577525", "0.7546964", "0.7527953", "0.7526204", "0.7499138", "0.7496...
0.78431886
4
this method gets the end
public LocalTime getEnd() { return end; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@O...
[ "0.80423826", "0.797618", "0.7748977", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77090603", "0.77087486", "0.7696638", "0.7696638", "0.7696638", "0.7682853", "0....
0.0
-1
this method get the hour
public int getEndHour() { return end.getHour();// s }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getHour();", "public int getHour()\n {\n return hour;\n }", "Integer getStartHour();", "public int getHour() \n { \n return hour; \n }", "public int getHour() { return this.hour; }", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t...
[ "0.85934794", "0.8404732", "0.82481056", "0.82463354", "0.82379997", "0.81394225", "0.81394225", "0.8131209", "0.81092995", "0.79992193", "0.79900223", "0.7989958", "0.79378676", "0.7793118", "0.7740338", "0.7732555", "0.7723078", "0.7660761", "0.7637973", "0.7543405", "0.748...
0.73466617
23
this method gets the end minute
public int getEndMinute() { return end.getMinute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFinishMinute() {\n return finishMinute;\n }", "Integer getMinute();", "Integer getEndHour();", "public String getMinutes();", "public int getMinute() { return this.minute; }", "public int getEndHour() {\n\treturn end.getHour();// s\n }", "public int getMinute() {\n ...
[ "0.7468273", "0.7174595", "0.6966226", "0.67809474", "0.6768802", "0.6731765", "0.66915107", "0.6688499", "0.66729397", "0.66603136", "0.6643254", "0.66041714", "0.6589377", "0.65879834", "0.6573034", "0.65700775", "0.6567464", "0.6567464", "0.6567464", "0.6563655", "0.653215...
0.8573276
0
this method gets the instructor name
public String getinstructor() { return instructor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInstructorName() {\n return instructorName;\n }", "public String getInstructor ( )\n\t{\n\t\tif(instructor.length ( )==0 || instructor ==null)\n\t\t{\n\t\t\tinstructor=\"Instructor\";\n\t\t}\n\t\treturn instructor;\n\t\t\n\t}", "public String getInstructor()\n\t{\n\t\tString strInstruct...
[ "0.8384749", "0.8291943", "0.7952456", "0.7911481", "0.7333285", "0.7305912", "0.7254246", "0.68786484", "0.66998", "0.66701835", "0.6638981", "0.66088235", "0.65569115", "0.6412324", "0.63777703", "0.6302083", "0.63018674", "0.62868613", "0.62694705", "0.62594885", "0.624709...
0.79629993
2
this method gets the section
public Section getSection() { return belongedSection.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Section getSection();", "public String getSection() {\n return section;\n }", "public String getSection() {\n return section;\n }", "public String getSection(){\n return mSection;\n }", "String getSection() {\n\t\treturn this.mSection;\n\t}", "public Section getSection() {\n...
[ "0.82072663", "0.7824486", "0.7824486", "0.7575149", "0.7495257", "0.74477696", "0.7356347", "0.7331264", "0.68594277", "0.6553951", "0.6549772", "0.65435666", "0.6508327", "0.6504544", "0.64576745", "0.64576745", "0.6431157", "0.6345271", "0.6344753", "0.6310105", "0.6301918...
0.70819557
8
this method gets the section type
public String getSectionType() { return sectionType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SectionType createSectionType();", "public void setSectionType(final String sectionType) {\n\tthis.sectionType = sectionType;\n }", "SectionsType createSectionsType();", "Section getSection();", "public String getSection() {\n return section;\n }", "public String getSection() {\n retu...
[ "0.7354884", "0.69204754", "0.67555904", "0.653178", "0.6446433", "0.6446433", "0.6359129", "0.62367266", "0.6102013", "0.6053133", "0.5970662", "0.5892776", "0.586717", "0.5785622", "0.5780755", "0.57114357", "0.57019275", "0.5665112", "0.5644858", "0.56365955", "0.5609071",...
0.836452
0
this method get the start
public LocalTime getStart() { return start; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getStart();", "public int start() { return _start; }", "public int start() {\n return start;\n }", "public String get_start() {\n\t\treturn start;\n\t}", "public int getStart()\n {\n return start;\n }", "public int getStart() {\n return start;\n }", "public i...
[ "0.7909799", "0.79018015", "0.78147304", "0.74509454", "0.7376806", "0.73449725", "0.7342177", "0.7330495", "0.7294041", "0.72892284", "0.7273705", "0.7267875", "0.7256148", "0.72336495", "0.72102374", "0.7192421", "0.7192421", "0.718317", "0.7161397", "0.7158495", "0.7154549...
0.0
-1
this method get the start hour
public int getStartHour() { return start.getHour(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getStartHour();", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "public int getStartHour() {\n return startHour; // stub\n }", "private LocalDateTime getStartHour(...
[ "0.88287866", "0.8120816", "0.80597264", "0.7948248", "0.78568417", "0.7335191", "0.7312665", "0.7156291", "0.7105436", "0.7036651", "0.70001906", "0.6941497", "0.6941497", "0.6941497", "0.6899219", "0.6875663", "0.68686485", "0.6868334", "0.686476", "0.686476", "0.68566924",...
0.8316047
1
this method gets the start minute
public int getStartMinute() { return start.getMinute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getStartMinute() {\n return startMinute;\n }", "Integer getMinute();", "public int getMinute() { return this.minute; }", "public int getMinute() {\n return minute;\n }", "public int getMinute() {\n return minute;\n ...
[ "0.8319995", "0.789672", "0.7754659", "0.77201223", "0.76985794", "0.7627941", "0.73483765", "0.7346735", "0.7275765", "0.7201456", "0.7132494", "0.7051466", "0.70448714", "0.70052385", "0.69787884", "0.69122225", "0.6896806", "0.67788315", "0.67415303", "0.67415303", "0.6741...
0.85390013
0
this method gets the venue
public String getVenue() { return venue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getVenue();", "public String getVenueName()\r\n {\r\n return venueName;\r\n }", "public String getVenue() {\n Object ref = venue_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n S...
[ "0.7645425", "0.71324646", "0.7109214", "0.7100689", "0.7060114", "0.68640864", "0.67347866", "0.655312", "0.65152025", "0.6457402", "0.6446071", "0.6425207", "0.6414191", "0.62757564", "0.6244241", "0.6124685", "0.6074816", "0.60669535", "0.6054058", "0.60389143", "0.5913397...
0.76284677
1
This function determines if this slot has AM quantum
public boolean isAM() { if (start != null) return start.isBefore(LocalTime.NOON); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasArmedMASC() {\n for (Mounted m : getEquipment()) {\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\")) {\n return true;\n }\n }\n return f...
[ "0.63171077", "0.620607", "0.58716804", "0.5705064", "0.56977785", "0.56797904", "0.56643426", "0.56467396", "0.56467396", "0.56467396", "0.56467396", "0.56467396", "0.56467396", "0.56158966", "0.5615521", "0.5598248", "0.5587555", "0.5572602", "0.55538875", "0.5551507", "0.5...
0.6162356
2
This function determines if this slot has PM quantum
public boolean isPM() { if (end != null) return end.isAfter(LocalTime.NOON) || end.equals(LocalTime.NOON); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "public boolean isPM() {\n return isPM;\n }", "boolean hasMPValue();", "boolean hasMPPerSecond();", "public boolean hasCurMP() {\n return ((bit...
[ "0.6589354", "0.6589354", "0.6589354", "0.6589354", "0.6589354", "0.6589354", "0.65094423", "0.62877357", "0.6181109", "0.614668", "0.61169195", "0.6100235", "0.60957396", "0.60925883", "0.60925883", "0.60925883", "0.60925883", "0.60925883", "0.60925883", "0.6082821", "0.6059...
0.630753
7
set the end time
public void setEnd(final String end) { this.end = LocalTime.parse(end, DateTimeFormatter.ofPattern("hh:mma", Locale.US)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEnd_time(long end_time) {\n this.end_time = end_time;\n }", "public void setTimeEnd(int timeEnd) {\r\n this.timeEnd = timeEnd;\r\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "@Override\n\tpublic void setEndTime(float t) \n\...
[ "0.83022213", "0.8021499", "0.7970425", "0.7857876", "0.78544194", "0.7852771", "0.7852297", "0.77976733", "0.7726", "0.7708292", "0.7685389", "0.75571996", "0.7540077", "0.748838", "0.7429222", "0.73977864", "0.73639524", "0.7342553", "0.7299027", "0.7283559", "0.72744995", ...
0.70723855
39
set the section type
public void setSectionType(final String sectionType) { this.sectionType = sectionType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder section_type(String section_type) {\n this.section_type = section_type;\n return this;\n }", "public String getSectionType() {\n\treturn sectionType;\n }", "SectionType createSectionType();", "public void setType(String type);", "public void setType(String type);", "p...
[ "0.72862697", "0.70212567", "0.69336605", "0.6437412", "0.6437412", "0.6437412", "0.635856", "0.6332963", "0.6285831", "0.6272633", "0.6246948", "0.6239624", "0.6239523", "0.6236171", "0.6227253", "0.62164795", "0.62104905", "0.6196376", "0.61882967", "0.6187716", "0.61827934...
0.7743418
0
set the start time
public void setStart(final String start) { this.start = LocalTime.parse(start, DateTimeFormatter.ofPattern("hh:mma", Locale.US)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }", "public void setStart_time(long start_time) {\n this.start_time = start_time;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setStarttime(Date sta...
[ "0.84437746", "0.8354123", "0.8209754", "0.8209754", "0.8150331", "0.80803114", "0.80608356", "0.80505985", "0.79624754", "0.7826515", "0.7759165", "0.7742864", "0.7642597", "0.7641996", "0.7617367", "0.76099867", "0.760406", "0.7592042", "0.75832874", "0.75815314", "0.757777...
0.7125877
64
this method change the object to string
@Override public String toString() { return Slot.DAYS[day] + start.toString() + "-" + end.toString() + ":" + venue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String toStr(Object o);", "String objectWrite();", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "public String toString() { return stringify(this, true); }", "@Override // m.h\n public String a(Object obj) {\n return obj.toString();\n }", ...
[ "0.7128796", "0.709621", "0.7031866", "0.6772187", "0.6760743", "0.6746387", "0.6728054", "0.67205656", "0.6702581", "0.6688802", "0.66797274", "0.6650291", "0.6648046", "0.66169834", "0.66010827", "0.65964556", "0.65758735", "0.6564654", "0.6553195", "0.6548305", "0.65393734...
0.0
-1
set up a frame for this module. In Dynamo there's only one module ... the default.
@Override public void enterModel(org.sdxchange.dynamo.parser4.DynamoParser.ModelContext ctx) { XFrame frame = new XFrame("defaultModule"); frame.setSimulationName(simulationName); frameIndex.put(frame.getName(), frame); if (defaultModule != null){ // it might be occupied by a macro declaration frame. System.err.println("FrameHandling Error, current frame not null at stgart of default module"); } currentFrame = frame; defaultModule = frame; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setupFrame()\n {\n int wd = shopFrame.getWidth();\n sellItemF(wd);\n\n requestItemF(wd);\n setAllVisFalse();\n }", "private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n fin...
[ "0.6890323", "0.6601757", "0.6577326", "0.63155705", "0.63058066", "0.6285553", "0.6261318", "0.62571436", "0.62165606", "0.6208534", "0.6182061", "0.61759084", "0.61759084", "0.61559474", "0.6124339", "0.6122635", "0.60993344", "0.60992277", "0.6096693", "0.60832894", "0.606...
0.6735076
1
/ Special Cases Assignment to TIME should set start Initializer reads from stocks.
private void putSymbol(String symbol, String type, String eqn){ System.out.println(symbol+ " "+ type + " "+ eqn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void init() {\n \n if(stock==null){\n stock=Analyser.stock;\n //for each stock, it price and the time\n// stoc\n// String[] listedCompanies = new NSELoader(20).getAllStocks();\n// \n// for (int i =0; i < listedCompanies.length; i++) {\n// ...
[ "0.64261025", "0.6227162", "0.605712", "0.60297936", "0.60201097", "0.5927718", "0.58697975", "0.5865892", "0.5841822", "0.58271855", "0.5825064", "0.58105135", "0.5782521", "0.57242876", "0.57062787", "0.5696443", "0.56912047", "0.5668762", "0.5649864", "0.5621919", "0.56189...
0.0
-1
TODO Autogenerated method stub
@Override public CommonTokenStream getTokens() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Start monitoring of the ASI for new messages about NMR samples
@RequestMapping(value = "/nmr/init", method = RequestMethod.GET) public @ResponseBody String initStreams(final HttpServletRequest request, final HttpServletResponse response) { initASI(); return "Success!"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "private void startMonitoring() {\n executors.startMetrics(monitoring);\n reporter = JmxReporter.forRegistry(monitoring).inDomain(getJmxDomain()).build();\n reporter.start();\n }", "protected void start() thr...
[ "0.59525484", "0.5790708", "0.5767587", "0.574918", "0.5659367", "0.56153613", "0.5595909", "0.5530872", "0.5450688", "0.5438865", "0.54308796", "0.541804", "0.54089767", "0.54069275", "0.5371828", "0.53346264", "0.53006375", "0.52717483", "0.5264094", "0.5263322", "0.5235081...
0.0
-1
Provides a list of samples to the client
@RequestMapping(value = "/nmr/samples", method = RequestMethod.GET) public @ResponseBody List<SamplePrediction> getSamples(final HttpServletRequest request, final HttpServletResponse response) { List<SamplePrediction> samples = new ArrayList<SamplePrediction>(); samples.add(new SamplePrediction()); return samples; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public ArrayList<Sample> getAllSamples()\n {\n try\n {\n return clientDoctor.getAllSamples();\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while fetching all samples. Please try again.\");\n }\n }", "public void setSamples(List<Sample> samples)\...
[ "0.7440596", "0.73614496", "0.7122998", "0.7082343", "0.69087595", "0.6898185", "0.6685895", "0.6646963", "0.6117688", "0.61049527", "0.60113657", "0.5886841", "0.58804697", "0.58747417", "0.58540297", "0.5833478", "0.5833478", "0.5812427", "0.58014417", "0.57958126", "0.5793...
0.72000194
2
start frame of the currently playing stream
public JSChannel(AudioFormat f) throws UnsupportedAudioFileException { vChannel = new VirtualChannel(f); vChannel.setOnPlaybackEnded(() -> streamEnded()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n\t\tcurrentFrameIndex = 0;\n\t}", "public void start(){\n\t\tthis.lastUpdate = System.currentTimeMillis();\n\t\tthis.millisIntoFrame=0;\n\t\tthis.currentFrame=0;\n\t}", "public synchronized void start()\n {\n if (!started && open) {\n line.start();\n start...
[ "0.77375185", "0.7349222", "0.6822832", "0.6729202", "0.6494721", "0.64891523", "0.6427106", "0.6352227", "0.6292754", "0.62632805", "0.62415993", "0.624091", "0.6236286", "0.62347466", "0.62333316", "0.6213664", "0.62109905", "0.6195525", "0.6139114", "0.6137979", "0.6103383...
0.0
-1
Starts the program. Instantiates a new anonymous DoDServerController object.
public static void main(String[] args) { new DoDServerController(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tDMMainServer server = new DMMainServer();\n\t}", "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPo...
[ "0.64589685", "0.6328113", "0.6196765", "0.6104474", "0.6088951", "0.6062939", "0.6046737", "0.6023175", "0.5988982", "0.5987524", "0.5970512", "0.5947685", "0.59451", "0.5936181", "0.5931438", "0.5906385", "0.5898924", "0.58886087", "0.5886369", "0.58815664", "0.58712155", ...
0.75692403
0
Sets up properties about the JFrame, adds the components, then displays it.
public void createAndShowGUI() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { super.windowClosing(e); System.out.println("closing server..."); } }); this.addComponentsToPane(this.getContentPane()); this.pack(); this.centreFrameInScreen(); this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignC...
[ "0.7725248", "0.76198953", "0.76104754", "0.74969107", "0.7487977", "0.7470572", "0.74540216", "0.73874664", "0.73163015", "0.730327", "0.72946346", "0.7292397", "0.72829443", "0.72794753", "0.7270226", "0.7266183", "0.7200963", "0.7191663", "0.71714693", "0.7167948", "0.7157...
0.0
-1
Gets a current view of the map, and if mapGrid has not been instantiated. Finally it instantiates it before inserting the map into into.
public void updateMapGrid() { char[][] map = controller.getPopulatedMap(); if (mapGrid == null) { mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE); } mapGrid.insertCharMap(map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MapDisplay getMap(){\n\t\treturn map; //gibt die Karte zurück\n\t}", "public Map<?> getCurrentMap() {\n return this.currentArea;\n }", "private JTable getGridmapTable() {\n if (gridmapTable == null) {\n gridmapTable = new GridMapTable();\n }\n return gridmap...
[ "0.6465448", "0.6275104", "0.61019397", "0.60363495", "0.59942657", "0.59664744", "0.5963654", "0.5865166", "0.5849439", "0.58485293", "0.5848472", "0.584623", "0.58443433", "0.5839983", "0.58242553", "0.58132", "0.5799703", "0.57891375", "0.5748072", "0.5738101", "0.5732708"...
0.6290362
1