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
Retrieves the value of a key value pair based on the key name. If the key is not found 0 is returned.
public int getInteger(String key) { try { return Integer.decode(getString(key)).intValue(); } catch (Exception e) { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String get(Integer key);", "Object get(String key);", "Object get(String key);", "public String getValue(String keyName)\n {\n if (keyName == null || keyName.trim().length() == 0)\n throw new IllegalArgumentException(\"keyName may not be null or empty\");\n\n String keyValue = null;\n\n ...
[ "0.68341017", "0.6816764", "0.6816764", "0.67200756", "0.66921526", "0.66792", "0.6669763", "0.66669136", "0.66273934", "0.6578388", "0.6578388", "0.6563409", "0.6563409", "0.6563409", "0.6563409", "0.6563409", "0.6563409", "0.6563409", "0.6518246", "0.6475256", "0.6458404", ...
0.0
-1
Retrieves the value of a key value pair based on the key name. If the key is not found false is returned.
public boolean getBoolean(String key) { try { String string = getString(key); return string.equalsIgnoreCase("true") || string.equals("1"); } catch (MissingResourceException e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Optional<Value> get(Key k) {\n\t\treturn bst.find(k);\n\t}", "Object get(String key);", "Object get(String key);", "public boolean getBoolean(String key)\r\n {\r\n debug(\"getBoolean(\" + key + \") - retrieving Key...\");\r\n String valueSz = null;\r\n try\r\n {\r\n valu...
[ "0.6607453", "0.65542513", "0.65542513", "0.6456904", "0.64461577", "0.6433588", "0.6405261", "0.6278883", "0.62710136", "0.62451077", "0.62307614", "0.6166505", "0.614941", "0.6133624", "0.61196023", "0.6118882", "0.6059365", "0.6059365", "0.6059365", "0.6059365", "0.6059365...
0.5768246
60
Retrieves the value of a key value pair based on the key name. If the key is not found null is returned.
public Color getColor(String key) { String cs = getString(key); cs.trim(); int i1 = cs.indexOf(','), i2 = cs.lastIndexOf(','); if (i1 != i2) { try { int r = Integer.decode(cs.substring(0, i1).trim()).intValue(); int g = Integer.decode(cs.substring(i1 + 1, i2).trim()).intValu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getValue(String keyName)\n {\n if (keyName == null || keyName.trim().length() == 0)\n throw new IllegalArgumentException(\"keyName may not be null or empty\");\n\n String keyValue = null;\n\n for (int i=0; i < m_keyNames.size(); i++)\n {\n if (((String)m_keyNames...
[ "0.70660377", "0.7024605", "0.68498534", "0.68172663", "0.6812745", "0.6812745", "0.6780838", "0.6768222", "0.674769", "0.67384416", "0.67249256", "0.67109144", "0.6688425", "0.6647282", "0.66404563", "0.6636536", "0.6627187", "0.66245806", "0.6623104", "0.6623104", "0.662310...
0.0
-1
Sets the specified key to the specified value, returns true if a new key was created.
public boolean setString(String key, String value) { return keyvaluepairs.put(key.toLowerCase(), value) == null ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean put(String key, String value);", "boolean put(K key, V value);", "boolean setValue(String type, String key, String value);", "public boolean put(K key, V value)\r\n\t{\r\n\t\treturn data.addUpdate(new Entry(key, value));\r\n\t}", "protected abstract boolean _setIfAbsent(String key, Object va...
[ "0.73586655", "0.7057683", "0.7044803", "0.7044458", "0.685788", "0.68277013", "0.6686652", "0.66398025", "0.66256243", "0.65936947", "0.6592562", "0.65562886", "0.6542158", "0.65220517", "0.6518505", "0.6468811", "0.6439912", "0.64067644", "0.6311426", "0.6305597", "0.628876...
0.6243949
22
Saves the settings to file.
public void save(String filename) throws IOException { String newline = System.getProperty("line.separator"); FileWriter out = new FileWriter(filename); Enumeration e = keyvaluepairs.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); out.write(key + "=" + (Str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n ...
[ "0.8765729", "0.8311208", "0.8135995", "0.81322795", "0.79935163", "0.7982531", "0.7934165", "0.7813232", "0.77559286", "0.7629378", "0.75922644", "0.7508799", "0.74332166", "0.7366439", "0.7326101", "0.7289528", "0.71253246", "0.7083043", "0.70726436", "0.7068057", "0.704749...
0.6462573
59
$ANTLR start "unit" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:258:1: unit : (declStart= classDecl )+ EOF > ( classDecl )+ ;
public final JavaliParser.unit_return unit() throws RecognitionException { JavaliParser.unit_return retval = new JavaliParser.unit_return(); retval.start = input.LT(1); Object root_0 = null; Token EOF1=null; ParserRuleReturnScope declStart =null; Object EOF1_tree=null; RewriteRuleTokenStream stream_EOF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__AstUnit__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3660:1: ( ( 'unit' ) )\n ...
[ "0.62392944", "0.62244844", "0.6005807", "0.5821332", "0.56962514", "0.5641451", "0.5595192", "0.5540265", "0.5516205", "0.5515362", "0.54950005", "0.5489949", "0.5441652", "0.54246885", "0.5385475", "0.5380779", "0.535859", "0.53300565", "0.53214", "0.531757", "0.53012323", ...
0.8262611
0
$ANTLR start "declList" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:270:1: declList : ( varDecl | methodDecl )+ ;
public final JavaliParser.declList_return declList() throws RecognitionException { JavaliParser.declList_return retval = new JavaliParser.declList_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope varDecl12 =null; ParserRuleReturnScope methodDecl13 =null; try { // /hom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void decl(ArrayList<String> list) throws RecognitionException {\n\t\tString varDecl3 =null;\n\t\tString procDecl4 =null;\n\t\tString funcDecl5 =null;\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:101:2: ( varDecl[li...
[ "0.7605697", "0.720828", "0.6973235", "0.68421525", "0.68289346", "0.6369075", "0.63313216", "0.6281777", "0.597834", "0.593751", "0.58962494", "0.5884575", "0.58335316", "0.57256323", "0.57180357", "0.5708071", "0.569275", "0.5678069", "0.5626207", "0.5624455", "0.5613282", ...
0.7989513
0
$ANTLR start "varDecl" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:274:1: varDecl : (declStart= type Identifier ';' > ^( VarDecl[$declStart.start, \"VarDecl\"] type Identifier ) |declStart= type Identifier ( ',' Identifier )+ ';' > ^( VarDeclList[$declStart.start, \"VarDeclList\"] type (...
public final JavaliParser.varDecl_return varDecl() throws RecognitionException { JavaliParser.varDecl_return retval = new JavaliParser.varDecl_return(); retval.start = input.LT(1); Object root_0 = null; Token Identifier14=null; Token char_literal15=null; Token Identifier16=null; Token char_literal17=nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void varDecl(StmtVarDecl stmt)\n {\n for (int i = 0; i < stmt.getNumVars(); i++)\n {\n String nm = stmt.getName(i);\n Type vt = (Type)stmt.getType(i).accept(this);\n state.varDeclare(nm, vt);\n }\n }", "public void var_decl(VarDeclList vd, Intege...
[ "0.73188365", "0.6976409", "0.6959069", "0.6904878", "0.6858939", "0.6843023", "0.68049544", "0.67529166", "0.6736998", "0.654497", "0.65329725", "0.65267056", "0.65135974", "0.648094", "0.6416596", "0.6400489", "0.6273761", "0.62583137", "0.62277997", "0.61889976", "0.618283...
0.8129219
0
$ANTLR start "methodDecl" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:281:1: methodDecl : methSig= methodHeading methodBody > ^( MethodDecl[$methSig.start, \"MethodDecl\"] methodHeading methodBody ) ;
public final JavaliParser.methodDecl_return methodDecl() throws RecognitionException { JavaliParser.methodDecl_return retval = new JavaliParser.methodDecl_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope methSig =null; ParserRuleReturnScope methodBody20 =null; RewriteRule...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\...
[ "0.6883508", "0.6782148", "0.66810185", "0.64540416", "0.6320746", "0.62731326", "0.61168265", "0.61089176", "0.6078251", "0.60695744", "0.6022396", "0.6007642", "0.594438", "0.5939242", "0.5938602", "0.5906044", "0.58942187", "0.58750886", "0.5861694", "0.5832269", "0.569990...
0.7721403
0
$ANTLR start "methodHeading" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:286:1: methodHeading : ( type Identifier '(' ( formalParamList )? ')' > type Identifier ( formalParamList )? |methSig= 'void' Identifier '(' ( formalParamList )? ')' > Identifier[$methSig, \"void\"] Identifier ( for...
public final JavaliParser.methodHeading_return methodHeading() throws RecognitionException { JavaliParser.methodHeading_return retval = new JavaliParser.methodHeading_return(); retval.start = input.LT(1); Object root_0 = null; Token methSig=null; Token Identifier22=null; Token char_literal23=null; Token...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\...
[ "0.65536237", "0.65115434", "0.613757", "0.589055", "0.5812744", "0.57839394", "0.56339735", "0.54927385", "0.5475922", "0.54649496", "0.54578936", "0.54564214", "0.54084367", "0.5368556", "0.53463876", "0.53379464", "0.5332734", "0.5325928", "0.5307671", "0.5303432", "0.5276...
0.8008334
0
$ANTLR start "formalParamList" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:293:1: formalParamList : paramDecl= type Identifier ( ',' type Identifier ) > ( ^( VarDecl[$paramDecl.start, \"VarDecl\"] type Identifier ) )+ ;
public final JavaliParser.formalParamList_return formalParamList() throws RecognitionException { JavaliParser.formalParamList_return retval = new JavaliParser.formalParamList_return(); retval.start = input.LT(1); Object root_0 = null; Token Identifier30=null; Token char_literal31=null; Token Identifier33=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void param_decl(ArrayList<ParamDecl> pd) {\n if (lexer.token != Symbol.FLOAT && lexer.token != Symbol.INT) {\n error.signal(\"Wrong or missing variable type at parameters declaration\");\n }\n\n String type = lexer.getStringValue();\n \n lexer.nextToken();\n\n ...
[ "0.6856233", "0.6464604", "0.6358023", "0.62423503", "0.6205614", "0.617456", "0.6094668", "0.6093524", "0.60904896", "0.5985309", "0.59634566", "0.5925813", "0.5921782", "0.58581924", "0.5841406", "0.5818756", "0.5814352", "0.5751086", "0.5706713", "0.56828505", "0.5665123",...
0.79556924
0
$ANTLR start "stmtList" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:318:1: stmtList : ( stmt )+ > ( stmt )+ ;
public final JavaliParser.stmtList_return stmtList() throws RecognitionException { JavaliParser.stmtList_return retval = new JavaliParser.stmtList_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope stmt38 =null; RewriteRuleSubtreeStream stream_stmt=new RewriteRuleSubtreeStrea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String stmtList() throws RecognitionException {\n\t\tString out = null;\n\n\n\n\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:303:2: ( ( stmt...
[ "0.8128499", "0.67481446", "0.6570813", "0.6390186", "0.6173047", "0.61625373", "0.611512", "0.60616076", "0.60556805", "0.59864604", "0.5959511", "0.5897043", "0.5823297", "0.5812589", "0.5770281", "0.5759936", "0.5688306", "0.56791186", "0.56757045", "0.5659589", "0.5572855...
0.81706005
0
$ANTLR start "stmt" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:323:1: stmt : ( assignmentOrMethodCall ';' > assignmentOrMethodCall | ioStmt | ifStmt | whileStmt | returnStmt );
public final JavaliParser.stmt_return stmt() throws RecognitionException { JavaliParser.stmt_return retval = new JavaliParser.stmt_return(); retval.start = input.LT(1); Object root_0 = null; Token char_literal40=null; ParserRuleReturnScope assignmentOrMethodCall39 =null; ParserRuleReturnScope ioStmt41 =nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Stmt stmt(){\n \n switch(lexer.token){\n case IDENT:\n \n if (symbolTable.get(lexer.getStringValue()) instanceof Procedure) \n return procedureCall();\n \n //can´t be a function\n else if (s...
[ "0.7488478", "0.7118499", "0.644338", "0.6282037", "0.62399364", "0.6166054", "0.61614525", "0.61300707", "0.6123329", "0.5995563", "0.5924815", "0.5910052", "0.5900933", "0.58987486", "0.5896546", "0.5890114", "0.5871188", "0.5870003", "0.5858496", "0.5832236", "0.58111966",...
0.7829435
0
$ANTLR start "assignmentOrMethodCall" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:333:1: assignmentOrMethodCall : target= identAccess ( assignmentTail[$target.tree] > assignmentTail | > identAccess ) ;
public final JavaliParser.assignmentOrMethodCall_return assignmentOrMethodCall() throws RecognitionException { JavaliParser.assignmentOrMethodCall_return retval = new JavaliParser.assignmentOrMethodCall_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope target =null; ParserRul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final JavaliParser.stmt_return stmt() throws RecognitionException {\n\t\tJavaliParser.stmt_return retval = new JavaliParser.stmt_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken char_literal40=null;\n\t\tParserRuleReturnScope assignmentOrMethodCall39 =null;\n\t\tParserRul...
[ "0.5887086", "0.5747418", "0.56601846", "0.5623902", "0.5554858", "0.55098444", "0.5500688", "0.5468944", "0.5468576", "0.5424867", "0.5416106", "0.541485", "0.5408346", "0.5405272", "0.5399737", "0.53839827", "0.5375914", "0.53634614", "0.5362897", "0.53262234", "0.5322683",...
0.8194527
0
$ANTLR start "assignmentTail" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:342:1: assignmentTail[Object lhs] : eq= '=' rightExpr= assignmentRHS > ^( Assign[$eq, \"Assign\"] assignmentRHS ) ;
public final JavaliParser.assignmentTail_return assignmentTail(Object lhs) throws RecognitionException { JavaliParser.assignmentTail_return retval = new JavaliParser.assignmentTail_return(); retval.start = input.LT(1); Object root_0 = null; Token eq=null; ParserRuleReturnScope rightExpr =null; Object eq_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBac...
[ "0.66410667", "0.6226076", "0.61483836", "0.6037363", "0.59222007", "0.5896841", "0.58928484", "0.5890783", "0.58827066", "0.58747387", "0.5856664", "0.58481777", "0.5785072", "0.5757634", "0.5713381", "0.5648397", "0.5636946", "0.5635444", "0.5626363", "0.56197345", "0.55710...
0.82795304
0
$ANTLR start "assignmentRHS" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:347:1: assignmentRHS : ( expr | newExpr | readExpr | readExprFloat ) ;
public final JavaliParser.assignmentRHS_return assignmentRHS() throws RecognitionException { JavaliParser.assignmentRHS_return retval = new JavaliParser.assignmentRHS_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope expr46 =null; ParserRuleReturnScope newExpr47 =null; Pars...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final JavaliParser.assignmentTail_return assignmentTail(Object lhs) throws RecognitionException {\n\t\tJavaliParser.assignmentTail_return retval = new JavaliParser.assignmentTail_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken eq=null;\n\t\tParserRuleReturnScope rightExp...
[ "0.63856626", "0.6102739", "0.60496306", "0.6033498", "0.59435755", "0.59432846", "0.58956796", "0.5732666", "0.5674802", "0.56651324", "0.56257445", "0.5620232", "0.5615903", "0.5564613", "0.55489993", "0.5517233", "0.5506964", "0.5456384", "0.54552096", "0.544718", "0.54440...
0.79073983
0
$ANTLR start "methodCallTail" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:351:1: methodCallTail : '(' ( actualParamList )? ')' > ( actualParamList )? ;
public final JavaliParser.methodCallTail_return methodCallTail() throws RecognitionException { JavaliParser.methodCallTail_return retval = new JavaliParser.methodCallTail_return(); retval.start = input.LT(1); Object root_0 = null; Token char_literal50=null; Token char_literal52=null; ParserRuleReturnScope...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String visitMethodCall(MethodCallContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tParseTree lastChild=ctx.children.get(childrenNo-1);\n\t\tString returnType;\n\t\tString methodName;\n\t\tif(lastChild instanceof TerminalNode){\n\t\t\tList<String> argTypes=new ArrayList<>();\n\t\t\tSt...
[ "0.5849102", "0.5796915", "0.5716469", "0.5628546", "0.5598763", "0.55563915", "0.5553614", "0.5507", "0.5479268", "0.53013325", "0.52363205", "0.52115595", "0.51895475", "0.5161549", "0.5134568", "0.5133462", "0.51212394", "0.50957215", "0.509379", "0.50836855", "0.5081859",...
0.77065337
0
$ANTLR start "actualParamList" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:367:1: actualParamList : argStart= expr ( ',' expr ) > ( expr )+ ;
public final JavaliParser.actualParamList_return actualParamList() throws RecognitionException { JavaliParser.actualParamList_return retval = new JavaliParser.actualParamList_return(); retval.start = input.LT(1); Object root_0 = null; Token char_literal53=null; ParserRuleReturnScope argStart =null; Parser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String paramList() throws RecognitionException {\n\t\tString out = null;\n\n\n\n\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:273:2: ( ( par...
[ "0.6376852", "0.6374772", "0.61877924", "0.59703267", "0.5856439", "0.5691655", "0.56883544", "0.5633657", "0.56145", "0.5601833", "0.55988836", "0.5590052", "0.55725825", "0.5506141", "0.5487632", "0.5466356", "0.5444896", "0.5443343", "0.54279935", "0.54191744", "0.54111004...
0.78513205
0
$ANTLR start "ioStmt" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:372:1: ioStmt : (mth= 'write' '(' expr ')' ';' > ^( BuiltInWrite[$mth, \"BuiltInWrite\"] expr ) |mth= 'writef' '(' expr ')' ';' > ^( BuiltInWriteFloat[$mth, \"BuiltInWriteFloat\"] expr ) |mth= 'writeln' '(' ')' ';' > ^( Bu...
public final JavaliParser.ioStmt_return ioStmt() throws RecognitionException { JavaliParser.ioStmt_return retval = new JavaliParser.ioStmt_return(); retval.start = input.LT(1); Object root_0 = null; Token mth=null; Token char_literal55=null; Token char_literal57=null; Token char_literal58=null; Token ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void statement(CommonTree ast, IRTree irt)\n {\n CommonTree ast1;\n IRTree irt1 = new IRTree();\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == WRITELN)\n {\n String a = String.valueOf(Memory.allocateString(\"\\n\"));\n irt.setOp(\"WRS\");\n irt.addSu...
[ "0.6113433", "0.5759433", "0.56507957", "0.55941635", "0.5548093", "0.55003536", "0.54396945", "0.54354596", "0.53786016", "0.5369206", "0.5344469", "0.52375716", "0.51270443", "0.51134974", "0.5066522", "0.50202847", "0.5003238", "0.49804273", "0.4954757", "0.49524006", "0.4...
0.7872061
0
$ANTLR start "ifStmt" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:381:1: ifStmt : ifStart= 'if' '(' expr ')' then= stmtBlock ( > ^( IfElse[$ifStart, \"IfElse\"] expr $then ^( Nop[$then.start, \"Nop\"] ) ) | 'else' otherwise= stmtBlock > ^( IfElse[$ifStart, \"IfElse\"] expr $then $otherwi...
public final JavaliParser.ifStmt_return ifStmt() throws RecognitionException { JavaliParser.ifStmt_return retval = new JavaliParser.ifStmt_return(); retval.start = input.LT(1); Object root_0 = null; Token ifStart=null; Token char_literal66=null; Token char_literal68=null; Token string_literal69=null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private IfStmt ifstmt(){\n Expr expr=null;\n Stmt thenstmt=null;\n Stmt elsestmt= null;\n \n if(lexer.token == Symbol.IF){\n lexer.nextToken();\n expr = expr();\n\n if(lexer.token == Symbol.THEN){\n lexer.nextToken();\n ...
[ "0.79214704", "0.73590297", "0.729414", "0.71856916", "0.7166138", "0.7153093", "0.7039184", "0.69577104", "0.693372", "0.6919342", "0.69062805", "0.682667", "0.6791205", "0.67815375", "0.6769192", "0.67125815", "0.66532326", "0.6651457", "0.6546195", "0.6523498", "0.65225375...
0.8200529
0
$ANTLR start "whileStmt" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:390:1: whileStmt : whileStart= 'while' '(' expr ')' stmtBlock > ^( WhileLoop[$whileStart, \"WhileLoop\"] expr stmtBlock ) ;
public final JavaliParser.whileStmt_return whileStmt() throws RecognitionException { JavaliParser.whileStmt_return retval = new JavaliParser.whileStmt_return(); retval.start = input.LT(1); Object root_0 = null; Token whileStart=null; Token char_literal70=null; Token char_literal72=null; ParserRuleReturn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private WhileStmt whilestmt(){\n \n Expr expr=null;\n Stmt stmt=null;\n \n if(lexer.token == Symbol.WHILE){\n lexer.nextToken();\n expr = expr();\n if(lexer.token == Symbol.DO){\n lexer.nextToken();\n stmt = stmt();\n...
[ "0.7921491", "0.76083666", "0.74750805", "0.7436054", "0.7431526", "0.74014896", "0.73141044", "0.72772044", "0.71830827", "0.71379393", "0.70108384", "0.6971555", "0.69184554", "0.6914359", "0.6889951", "0.68207765", "0.6799838", "0.6767222", "0.6710807", "0.66620564", "0.66...
0.8320608
0
$ANTLR start "returnStmt" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:395:1: returnStmt : 'return' ( expr )? ';' > ^( ReturnStmt ( expr )? ) ;
public final JavaliParser.returnStmt_return returnStmt() throws RecognitionException { JavaliParser.returnStmt_return retval = new JavaliParser.returnStmt_return(); retval.start = input.LT(1); Object root_0 = null; Token string_literal74=null; Token char_literal76=null; ParserRuleReturnScope expr75 =null;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }", "public ReturnStmt return_stmt() {\n if (lexer.token != Symbol.RETURN) {\n err...
[ "0.84626937", "0.8455541", "0.78078705", "0.7737852", "0.7645036", "0.76398605", "0.76385933", "0.75825244", "0.7439915", "0.74071014", "0.7399049", "0.70642054", "0.7027425", "0.7006654", "0.69509625", "0.69098425", "0.6858564", "0.6836371", "0.67320424", "0.66965204", "0.66...
0.84750986
0
$ANTLR start "newExpr" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:407:1: newExpr : (kw= 'new' Identifier '(' ')' > ^( NewObject[$kw, \"NewObject\"] Identifier ) |kw= 'new' id= Identifier '[' simpleExpr ']' > ^( NewArray[$kw, \"NewArray\"] Identifier[$id, $id.text + \"[]\"] simpleExpr ) ...
public final JavaliParser.newExpr_return newExpr() throws RecognitionException { JavaliParser.newExpr_return retval = new JavaliParser.newExpr_return(); retval.start = input.LT(1); Object root_0 = null; Token kw=null; Token id=null; Token Identifier79=null; Token char_literal80=null; Token char_litera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static NewExpression new_(Class type) { throw Extensions.todo(); }", "public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions) { throw Extensions.todo(); }", "Expr createExpr();", "public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }...
[ "0.6297987", "0.6290317", "0.60751617", "0.6061168", "0.5939618", "0.58998674", "0.5827704", "0.5812616", "0.57459766", "0.57264626", "0.5715213", "0.5704707", "0.5703332", "0.5692233", "0.5646162", "0.5547052", "0.5471964", "0.54415596", "0.53611916", "0.5290884", "0.5280803...
0.753111
0
$ANTLR start "readExpr" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:416:1: readExpr : kw= 'read' '(' ')' > ^( BuiltInRead[$kw, \"BuiltInRead\"] ) ;
public final JavaliParser.readExpr_return readExpr() throws RecognitionException { JavaliParser.readExpr_return retval = new JavaliParser.readExpr_return(); retval.start = input.LT(1); Object root_0 = null; Token kw=null; Token char_literal88=null; Token char_literal89=null; Object kw_tree=null; Obje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Code visitReadNode(ExpNode.ReadNode node) {\n beginGen(\"Read\");\n Code code = new Code();\n code.generateOp(Operation.READ);\n endGen(\"Read\");\n return code;\n }", "private void parseReadStatement() {\n check(Token.READ);\n check(Token.LPAR);\n\n ...
[ "0.6914448", "0.6592924", "0.6121787", "0.5605543", "0.55210775", "0.54559684", "0.5441697", "0.5357581", "0.5271906", "0.5185556", "0.51683164", "0.5135162", "0.5117045", "0.508896", "0.506208", "0.504262", "0.49738985", "0.4866546", "0.4854569", "0.48347235", "0.4831506", ...
0.8160222
0
$ANTLR start "readExprFloat" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:421:1: readExprFloat : kw= 'readf' '(' ')' > ^( BuiltInReadFloat[$kw, \"BuiltInReadFloat\"] ) ;
public final JavaliParser.readExprFloat_return readExprFloat() throws RecognitionException { JavaliParser.readExprFloat_return retval = new JavaliParser.readExprFloat_return(); retval.start = input.LT(1); Object root_0 = null; Token kw=null; Token char_literal90=null; Token char_literal91=null; Object ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract float read_float();", "float readFloat();", "String getFloat_lit();", "public final void mFLOAT() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.FLOAT;\r\n final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n // /Use...
[ "0.6702639", "0.6469806", "0.62951225", "0.6230573", "0.6151056", "0.6071854", "0.5992598", "0.59128773", "0.5687162", "0.564484", "0.56132615", "0.55896616", "0.5532175", "0.5476979", "0.5468814", "0.5449436", "0.5431568", "0.542621", "0.5421819", "0.5406856", "0.540354", ...
0.7770545
0
$ANTLR start "expr" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:426:1: expr : leftExpr= simpleExpr ( > $leftExpr|op= compOp rightExpr= simpleExpr > ^( BinaryOp[$op.start, \"BinaryOp\"] $leftExpr compOp $rightExpr) ) ;
public final JavaliParser.expr_return expr() throws RecognitionException { JavaliParser.expr_return retval = new JavaliParser.expr_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope leftExpr =null; ParserRuleReturnScope op =null; ParserRuleReturnScope rightExpr =null; Rew...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Binary left(Expr left) {\n\tBinary_c n = (Binary_c) copy();\n\tn.left = left;\n\treturn n;\n }", "LogicExpression getLeftExp();", "LogicExpression getLeft();", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "OrExp getLeft();",...
[ "0.67421335", "0.64925647", "0.649128", "0.62770385", "0.6154175", "0.6021288", "0.60094255", "0.5979611", "0.5978356", "0.59396267", "0.5924241", "0.5873388", "0.5857321", "0.5855968", "0.583543", "0.58312863", "0.57961833", "0.5761119", "0.5719033", "0.5712035", "0.56961495...
0.76101077
0
$ANTLR start "compOp" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:435:1: compOp : (op= '==' > ^( B_EQUAL[$op, \"B_EQUAL\"] ) |op= '!=' > ^( B_NOT_EQUAL[$op, \"B_NOT_EQUAL\"] ) |op= ' ^( B_LESS_THAN[$op, \"B_LESS_THAN\"] ) |op= ' ^( B_LESS_OR_EQUAL[$op, \"B_LESS_OR_EQUAL\"] ) |op= '>' > ^...
public final JavaliParser.compOp_return compOp() throws RecognitionException { JavaliParser.compOp_return retval = new JavaliParser.compOp_return(); retval.start = input.LT(1); Object root_0 = null; Token op=null; Object op_tree=null; RewriteRuleTokenStream stream_79=new RewriteRuleTokenStream(adaptor,"t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final PythonParser.comp_op_return comp_op() throws RecognitionException {\n PythonParser.comp_op_return retval = new PythonParser.comp_op_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token LESS189=null;\n Token GREATER190=null;\n Token E...
[ "0.69509643", "0.6753808", "0.67277783", "0.6433755", "0.6368051", "0.6351024", "0.6186405", "0.6110031", "0.60527784", "0.6036635", "0.60103494", "0.59082717", "0.58694255", "0.57761973", "0.5730952", "0.5678297", "0.5651202", "0.5627099", "0.5626757", "0.5620604", "0.559324...
0.7557819
0
$ANTLR start "simpleExpr" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:450:1: simpleExpr : ( term > term ) (op= weakOp rightTerm= term > ^( BinaryOp[$op.start, \"BinaryOp\"] $simpleExpr weakOp $rightTerm) ) ;
public final JavaliParser.simpleExpr_return simpleExpr() throws RecognitionException { JavaliParser.simpleExpr_return retval = new JavaliParser.simpleExpr_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope op =null; ParserRuleReturnScope rightTerm =null; ParserRuleReturnScop...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final JavaliParser.expr_return expr() throws RecognitionException {\n\t\tJavaliParser.expr_return retval = new JavaliParser.expr_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tParserRuleReturnScope leftExpr =null;\n\t\tParserRuleReturnScope op =null;\n\t\tParserRuleReturnScop...
[ "0.6311177", "0.60847104", "0.5994576", "0.5897999", "0.57236874", "0.5646662", "0.5645572", "0.5638547", "0.5489203", "0.5451612", "0.54497147", "0.5448952", "0.5364244", "0.53313845", "0.5325574", "0.5318802", "0.52889663", "0.5275785", "0.5259945", "0.5225572", "0.519285",...
0.76077485
0
$ANTLR start "weakOp" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:458:1: weakOp : (op= '+' > ^( B_PLUS[$op, \"B_PLUS\"] ) |op= '' > ^( B_MINUS[$op, \"B_MINUS\"] ) |op= '||' > ^( B_OR[$op, \"B_OR\"] ) );
public final JavaliParser.weakOp_return weakOp() throws RecognitionException { JavaliParser.weakOp_return retval = new JavaliParser.weakOp_return(); retval.start = input.LT(1); Object root_0 = null; Token op=null; Object op_tree=null; RewriteRuleTokenStream stream_105=new RewriteRuleTokenStream(adaptor,"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final JavaliParser.strongOp_return strongOp() throws RecognitionException {\n\t\tJavaliParser.strongOp_return retval = new JavaliParser.strongOp_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken op=null;\n\n\t\tObject op_tree=null;\n\t\tRewriteRuleTokenStream stream_67=new...
[ "0.6228642", "0.5768686", "0.56297076", "0.5553891", "0.5466735", "0.5366427", "0.53619385", "0.53210014", "0.5278796", "0.5250281", "0.52444476", "0.5237607", "0.5233192", "0.5206925", "0.51054424", "0.5085076", "0.5083655", "0.50830686", "0.50671905", "0.50631803", "0.50467...
0.7750631
0
$ANTLR start "term" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:467:1: term : ( factor > factor ) (op= strongOp rightFactor= factor > ^( BinaryOp[$op.start, \"BinaryOp\"] $term strongOp $rightFactor) ) ;
public final JavaliParser.term_return term() throws RecognitionException { JavaliParser.term_return retval = new JavaliParser.term_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope op =null; ParserRuleReturnScope rightFactor =null; ParserRuleReturnScope factor93 =null; R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final PythonParser.term_return term() throws RecognitionException {\n PythonParser.term_return retval = new PythonParser.term_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_right=null;\n PythonParser.factor_return left = null;\n\n ...
[ "0.704518", "0.65311325", "0.6330099", "0.62011683", "0.6155741", "0.61253023", "0.61097395", "0.6109465", "0.6106185", "0.60793966", "0.6077657", "0.60530496", "0.58570695", "0.5854489", "0.5831677", "0.57866395", "0.56581557", "0.5632108", "0.56295395", "0.5581127", "0.5568...
0.7002261
1
$ANTLR start "strongOp" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:475:1: strongOp : (op= '' > ^( B_TIMES[$op, \"B_TIMES\"] ) |op= '/' > ^( B_DIV[$op, \"B_DIV\"] ) |op= '%' > ^( B_MOD[$op, \"B_MOD\"] ) |op= '&&' > ^( B_AND[$op, \"B_AND\"] ) );
public final JavaliParser.strongOp_return strongOp() throws RecognitionException { JavaliParser.strongOp_return retval = new JavaliParser.strongOp_return(); retval.start = input.LT(1); Object root_0 = null; Token op=null; Object op_tree=null; RewriteRuleTokenStream stream_67=new RewriteRuleTokenStream(ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final JavaliParser.weakOp_return weakOp() throws RecognitionException {\n\t\tJavaliParser.weakOp_return retval = new JavaliParser.weakOp_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken op=null;\n\n\t\tObject op_tree=null;\n\t\tRewriteRuleTokenStream stream_105=new Rewrit...
[ "0.56166846", "0.52051157", "0.5150058", "0.5096418", "0.50899523", "0.5088962", "0.500837", "0.49950767", "0.4958291", "0.49239576", "0.48943463", "0.48883167", "0.48638135", "0.48486993", "0.48351043", "0.48221144", "0.48145336", "0.48057985", "0.48034194", "0.47772938", "0...
0.78317237
0
$ANTLR start "factor" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:486:1: factor : (op= '+' noSignFactor > ^( UnaryOp[$op, \"UnaryOp\"] ^( U_PLUS[$op, \"U_PLUS\"] ) noSignFactor ) |op= '' noSignFactor > ^( UnaryOp[$op, \"UnaryOp\"] ^( U_MINUS[$op, \"U_MINUS\"] ) noSignFactor ) | noSignFac...
public final JavaliParser.factor_return factor() throws RecognitionException { JavaliParser.factor_return retval = new JavaliParser.factor_return(); retval.start = input.LT(1); Object root_0 = null; Token op=null; ParserRuleReturnScope noSignFactor94 =null; ParserRuleReturnScope noSignFactor95 =null; Pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node factor(Node n_parent) {\r\n String identifier=\"\";\r\n String type=\"\";\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: factor:if:\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPoss...
[ "0.6424155", "0.60276246", "0.60049", "0.5988896", "0.58990735", "0.57870424", "0.5786152", "0.57783395", "0.5768736", "0.5731647", "0.5720546", "0.5696625", "0.56520313", "0.56508785", "0.5639003", "0.5619032", "0.5616555", "0.5613497", "0.55486983", "0.5530511", "0.552534",...
0.6222611
1
$ANTLR start "noSignFactor" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:494:1: noSignFactor : (op= '!' factor > ^( UnaryOp[$op, \"UnaryOp\"] ^( U_BOOL_NOT[$op, \"U_BOOL_NOT\"] ) factor ) |val= DecimalNumber > ^( DecimalIntConst[$val] ) |val= HexNumber > ^( HexIntConst[$val] ) |val= Float...
public final JavaliParser.noSignFactor_return noSignFactor() throws RecognitionException { JavaliParser.noSignFactor_return retval = new JavaliParser.noSignFactor_return(); retval.start = input.LT(1); Object root_0 = null; Token op=null; Token val=null; Token kw=null; Token lp=null; Token char_literal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object visitBitwiseNegationExpression(GNode n) {\n Object a, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n result = ~ (Long) a;\n }\n else {\n ...
[ "0.5713061", "0.5635692", "0.5609376", "0.55038357", "0.548435", "0.54438025", "0.54202354", "0.53713036", "0.5368216", "0.5359468", "0.53386295", "0.5330802", "0.5284004", "0.52609086", "0.52577966", "0.5169766", "0.5169123", "0.5142543", "0.51333535", "0.513317", "0.5130368...
0.68195117
0
$ANTLR start "identAccess" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:515:1: identAccess : (var= Identifier > ^( Var[$var, \"Var\"] Identifier ) |var= Identifier methodCallTail > ^( MethodCall[$var, \"MethodCall\"] ^( ThisRef[$var, \"ThisRef\"] ) Identifier ( methodCallTail )? ) |kw= 't...
public final JavaliParser.identAccess_return identAccess() throws RecognitionException { JavaliParser.identAccess_return retval = new JavaliParser.identAccess_return(); retval.start = input.LT(1); Object root_0 = null; Token var=null; Token kw=null; ParserRuleReturnScope methodCallTail104 =null; ParserR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void attributeAccess() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:2: ( ATTRIBUTTE_ACCESS (a= IDENT ) )\r\n ...
[ "0.6604193", "0.55424255", "0.5540948", "0.5510046", "0.5245589", "0.5237292", "0.5224756", "0.52157056", "0.514259", "0.51322746", "0.50878656", "0.50854176", "0.50127095", "0.49976635", "0.49746516", "0.49228194", "0.49156183", "0.49082112", "0.490075", "0.48735428", "0.486...
0.82948446
0
$ANTLR start "selectorSeq" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:526:1: selectorSeq[Object target] : ( ( fieldSelector[$target] > fieldSelector | elemSelector[$target] > elemSelector ) ) ( fieldSelector[$selectorSeq.tree] > fieldSelector | elemSelector[$selectorSeq.tree] > elemSele...
public final JavaliParser.selectorSeq_return selectorSeq(Object target) throws RecognitionException { JavaliParser.selectorSeq_return retval = new JavaliParser.selectorSeq_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope fieldSelector106 =null; ParserRuleReturnScope elemSele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void selector() throws RecognitionException {\n int selector_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"selector\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(890, 1);\n\n try {\n if...
[ "0.53951746", "0.5096973", "0.5059001", "0.5017069", "0.5004397", "0.49692214", "0.4923813", "0.48850894", "0.48850894", "0.48279163", "0.47980016", "0.47932482", "0.4785331", "0.47661453", "0.47661453", "0.47650856", "0.47394514", "0.4706139", "0.46993333", "0.4678708", "0.4...
0.78853095
0
$ANTLR start "fieldSelector" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:536:1: fieldSelector[Object target] : ( '.' id= Identifier methodCallTail > ^( MethodCall[$id, \"MethodCall\"] Identifier ( methodCallTail )? ) | '.' id= Identifier > ^( Field[$id, \"Field\"] Identifier ) );
public final JavaliParser.fieldSelector_return fieldSelector(Object target) throws RecognitionException { JavaliParser.fieldSelector_return retval = new JavaliParser.fieldSelector_return(); retval.start = input.LT(1); Object root_0 = null; Token id=null; Token char_literal110=null; Token char_literal112=n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> fields(String... fields);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> fields(EntityField... fields);", "public ListBuild fieldSelector(String fieldSe...
[ "0.6626284", "0.6330364", "0.61255515", "0.601023", "0.58956206", "0.5830991", "0.57006365", "0.5698251", "0.56760985", "0.5671568", "0.5658778", "0.56498003", "0.5610038", "0.55926657", "0.5519139", "0.54821855", "0.54714537", "0.5446715", "0.54426366", "0.5396584", "0.53723...
0.80407214
0
$ANTLR start "elemSelector" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:543:1: elemSelector[Object target] : kw= '[' iExpr= simpleExpr ']' > ^( Index[$kw, \"Index\"] simpleExpr ) ;
public final JavaliParser.elemSelector_return elemSelector(Object target) throws RecognitionException { JavaliParser.elemSelector_return retval = new JavaliParser.elemSelector_return(); retval.start = input.LT(1); Object root_0 = null; Token kw=null; Token char_literal113=null; ParserRuleReturnScope iExpr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ATExpression base_indexExpression();", "Expression getIndexExpr();", "EolItemSelectorExpression getItemSelectorExpression();", "public SelectorPart(Class<?> type, int index) {\n this.type = type;\n this.index = index;\n }", "public ArrayAccessExpression(Token operator, Expression expr, Expres...
[ "0.5708646", "0.5577772", "0.52430266", "0.51632285", "0.51420784", "0.50865066", "0.50635326", "0.5012083", "0.49889758", "0.49779657", "0.49631977", "0.49306014", "0.48449785", "0.4833868", "0.4833868", "0.48237202", "0.48056662", "0.47827595", "0.47771254", "0.47640738", "...
0.7484505
0
$ANTLR start "type" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:550:1: type : ( primitiveType | referenceType );
public final JavaliParser.type_return type() throws RecognitionException { JavaliParser.type_return retval = new JavaliParser.type_return(); retval.start = input.LT(1); Object root_0 = null; ParserRuleReturnScope primitiveType114 =null; ParserRuleReturnScope referenceType115 =null; try { // /home/luc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeReference getTypeReference();", "Rule CppType() {\n // Push 1 CppTypeNode onto the value stack\n return Sequence(\n \"cpp_type \",\n Literal(),\n actions.pushCppTypeNode());\n }", "type getType();", "TypeLiteralExp createTypeLiteralExp();", ...
[ "0.5975137", "0.5787002", "0.56563133", "0.56247574", "0.5606687", "0.555694", "0.54746526", "0.5456199", "0.5434998", "0.5428678", "0.5419129", "0.5401976", "0.5397297", "0.53671336", "0.53330475", "0.53113735", "0.5308304", "0.5308304", "0.5308304", "0.5308304", "0.5308304"...
0.6937082
0
$ANTLR start "referenceType" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:555:1: referenceType : ( Identifier | arrayType );
public final JavaliParser.referenceType_return referenceType() throws RecognitionException { JavaliParser.referenceType_return retval = new JavaliParser.referenceType_return(); retval.start = input.LT(1); Object root_0 = null; Token Identifier116=null; ParserRuleReturnScope arrayType117 =null; Object Ide...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final smaliTreeWalker.reference_type_descriptor_return reference_type_descriptor() throws RecognitionException {\n smaliTreeWalker.reference_type_descriptor_return retval = new smaliTreeWalker.reference_type_descriptor_return();\n retval.start = input.LT(1);\n\n try {\n // D:...
[ "0.5973177", "0.56457037", "0.5578872", "0.5490721", "0.5469033", "0.5461902", "0.52650326", "0.5204605", "0.51286167", "0.51259106", "0.50316906", "0.4998238", "0.49741942", "0.49109292", "0.49000308", "0.48907754", "0.4871443", "0.48615828", "0.4838441", "0.4818479", "0.481...
0.76295906
0
$ANTLR start "primitiveType" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:560:1: primitiveType : (tok= 'int' > Identifier[$tok, $tok.text] |tok= 'float' > Identifier[$tok, $tok.text] |tok= 'boolean' > Identifier[$tok, $tok.text] );
public final JavaliParser.primitiveType_return primitiveType() throws RecognitionException { JavaliParser.primitiveType_return retval = new JavaliParser.primitiveType_return(); retval.start = input.LT(1); Object root_0 = null; Token tok=null; Object tok_tree=null; RewriteRuleTokenStream stream_92=new Rew...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void primitiveType() throws RecognitionException {\n int primitiveType_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"primitiveType\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(445, 1);\n\n try {\...
[ "0.68653464", "0.6649607", "0.64167535", "0.6302841", "0.628796", "0.6246591", "0.60525274", "0.6029898", "0.59921044", "0.58056146", "0.57846874", "0.5646034", "0.5634674", "0.56207174", "0.56140125", "0.56054026", "0.55959046", "0.55947286", "0.5563384", "0.5557561", "0.551...
0.7639758
0
$ANTLR start "arrayType" /home/luca/svnrepos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:569:1: arrayType : (id= Identifier '[' ']' > ^( ArrayType[$id, \"ArrayType\"] Identifier ) |pt= primitiveType '[' ']' > ^( ArrayType[$pt.start, \"ArrayType\"] primitiveType ) );
public final JavaliParser.arrayType_return arrayType() throws RecognitionException { JavaliParser.arrayType_return retval = new JavaliParser.arrayType_return(); retval.start = input.LT(1); Object root_0 = null; Token id=null; Token char_literal118=null; Token char_literal119=null; Token char_literal120=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mARRAY_TYPE() throws RecognitionException {\n try {\n int _type = ARRAY_TYPE;\n // /Users/benjamincoe/HackWars/C.g:193:2: ( 'array' )\n // /Users/benjamincoe/HackWars/C.g:193:4: 'array'\n {\n match(\"array\"); \n\n\n }\n\n ...
[ "0.6744033", "0.66786677", "0.663676", "0.6490538", "0.62251097", "0.6068535", "0.6046025", "0.6023376", "0.5949121", "0.5848878", "0.5837795", "0.58360153", "0.57285196", "0.5698772", "0.5664251", "0.5625497", "0.5623724", "0.55595845", "0.55087", "0.54541993", "0.543956", ...
0.7649664
0
Created by Katsura on 2017/4/21.
public interface Subject { void request(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private sta...
[ "0.5991324", "0.5905592", "0.5715394", "0.56359637", "0.56359637", "0.56341594", "0.5594616", "0.55910355", "0.55710715", "0.5564271", "0.5519474", "0.55157006", "0.5512661", "0.54843116", "0.5481396", "0.54805833", "0.5459671", "0.5458379", "0.54257166", "0.54192615", "0.540...
0.0
-1
Add explicit style. Should only be used when nothing else works.
public Button addExplicitStyle(String name, String value){ if(this.explicitStyle==null){ this.explicitStyle = name + ":" + value + ";"; }else{ this.explicitStyle += name + ":" + value + ";"; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void addStyleName(String style) {\n super.addStyleName(style);\n }", "public void addExceptionStyle();", "public void addToStyle(ApplContext ac, CssStyle style) {\r\n\tif (((Css3Style) style).cssBackgroundClip != null)\r\n\t style.addRedefinitionWarning(ac, this);\r\n\t((Css3Style) s...
[ "0.68134767", "0.66089666", "0.63739437", "0.6335648", "0.63029593", "0.6211933", "0.61885506", "0.6171344", "0.6160667", "0.60854894", "0.6029876", "0.5987958", "0.5969803", "0.59282297", "0.5881115", "0.5821735", "0.5711315", "0.5711315", "0.56441784", "0.5638368", "0.56203...
0.6732832
1
/ JADX WARNING: Removed duplicated region for block: B:17:0x0036 / JADX WARNING: Removed duplicated region for block: B:19:0x0038 / JADX WARNING: Removed duplicated region for block: B:21:0x0046 / JADX WARNING: Removed duplicated region for block: B:23:0x0054 / Code decompiled incorrectly, please refer to instructions ...
public java.lang.String getLocalizedFrequencyString(java.lang.String r3) { /* r2 = this; int r0 = r3.hashCode() r1 = -791707519(0xffffffffd0cf8081, float:-2.78504428E10) if (r0 == r1) goto L_0x0028 r1 = 95346201(0x5aede19, float:1.6444467E-35) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:...
[ "0.5902875", "0.5786591", "0.57799816", "0.5733782", "0.57158333", "0.5695793", "0.56457126", "0.5634022", "0.5612185", "0.56025076", "0.5598491", "0.5598491", "0.55926067", "0.5587486", "0.5557008", "0.5535513", "0.55255795", "0.55200046", "0.55040807", "0.5502759", "0.54905...
0.0
-1
Strategy to provide inventory management for art pieces in a gallery
public interface Gallery { /** * Add the specified art piece to the gallery, replacing an equivalent in the gallery if existing. * * @param art the art piece to add to the gallery */ void addArt(Art art); /** * Remove the specified art piece from the gallery if found. * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void useInventoryByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Collectible> inventory = ((Wizard)AI).getInventory();\n\t\tif(inventory.size()>0){\n\t\t\tint randomPotion = (int)(Math.random()*inventory.size());\n\t\t\tcurrentTask.usePotion((Potion)inventory.get(randomPotion));\n...
[ "0.6186375", "0.5977838", "0.5905799", "0.5902335", "0.5801859", "0.57900804", "0.5744666", "0.57022643", "0.56873655", "0.56732035", "0.56586164", "0.56522", "0.56110805", "0.5604391", "0.55687535", "0.5563458", "0.5503523", "0.54771656", "0.54475707", "0.5442054", "0.543773...
0.6689035
0
Add the specified art piece to the gallery, replacing an equivalent in the gallery if existing.
void addArt(Art art);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addPiece(Piece piece);", "public interface Gallery {\n\n /**\n * Add the specified art piece to the gallery, replacing an equivalent in the gallery if existing.\n *\n * @param art the art piece to add to the gallery\n */\n void addArt(Art art);\n\n /**\n * Remove the specified a...
[ "0.5755774", "0.56224793", "0.55359685", "0.5467571", "0.5450169", "0.5391676", "0.5156065", "0.50531816", "0.50524557", "0.50410396", "0.50361574", "0.50350314", "0.50119334", "0.5003746", "0.4986112", "0.49848276", "0.4979659", "0.49701974", "0.4958025", "0.4949372", "0.491...
0.62803197
0
Remove the specified art piece from the gallery if found.
void deleteArt(Art art);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removePiece(Piece piece) {\n addPiece(piece, piece.rowPosition, piece.columnPosition);\n }", "private void removeAlbumFromCollection() {\n //\n }", "public void remove(String piece) {\n\tpieces.remove(piece);\n\tupdate();\n }", "public SimpleProduct3WithSpecialPriceDetailP...
[ "0.6317749", "0.6210534", "0.6106421", "0.60992575", "0.604814", "0.59970516", "0.59836805", "0.5977095", "0.59693134", "0.5956137", "0.59001595", "0.58976734", "0.58887744", "0.5879957", "0.58744603", "0.5821247", "0.58093846", "0.58025914", "0.57712424", "0.5704018", "0.568...
0.624305
1
Return the collection of art pieces in the gallery, is cannot be modified.
Set<Art> getAllArt();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Gallery {\n\n /**\n * Add the specified art piece to the gallery, replacing an equivalent in the gallery if existing.\n *\n * @param art the art piece to add to the gallery\n */\n void addArt(Art art);\n\n /**\n * Remove the specified art piece from the gallery if foun...
[ "0.6712858", "0.64619285", "0.6397107", "0.6145353", "0.61432993", "0.60259354", "0.60230035", "0.60041165", "0.59440416", "0.5891616", "0.58697635", "0.58697635", "0.5852259", "0.5852259", "0.58198947", "0.57524866", "0.5743849", "0.5731505", "0.5693093", "0.56848454", "0.56...
0.6145557
3
Return list of unique artists with art represented in the gallery, in alphabetical order.
List<String> getArtists();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getPatternAuthors() {\n Set<String> authors = mapAuths.keySet();\r\n //int n = authors.size();\r\n List <String> authorList = new LinkedList<String>();\r\n //iterate through set and add to list\r\n for(String author : authors) {\r\n authorList.add(a...
[ "0.6145655", "0.5941618", "0.5940678", "0.5915711", "0.5889543", "0.5877129", "0.586018", "0.5813076", "0.571827", "0.5672144", "0.56360865", "0.5574352", "0.5564218", "0.5548627", "0.5526021", "0.55189806", "0.55117244", "0.54896736", "0.5486941", "0.54618514", "0.539242", ...
0.6399199
0
Return all art for the specified artist
Set<Art> getArtByArtist(String artist);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ArtistSet.class);\n\t}", "public List<Album> getAlbums(Artist artist);", "Set<Art> getAllArt();", "public Set<String> getArtists() {\r\n return this.artists;\r\n }", "public Vector<Artista> ...
[ "0.72970897", "0.72337246", "0.69645953", "0.686213", "0.6804659", "0.67171335", "0.6584452", "0.6580278", "0.6496594", "0.64496386", "0.64310193", "0.63328767", "0.6331272", "0.6331272", "0.63254", "0.6275202", "0.6269548", "0.62538964", "0.62521553", "0.62131983", "0.620548...
0.76964694
0
Return all art pieces created in the gallery within the past year
Set<Art> getRecentArt();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Gallery> getGallery() {\n List<Gallery> galleries = new ArrayList<>();\n galleries.add(new Gallery(\"islands\", \"Holiday 2017\", \"Islands\", 130, 4, \"City break\", \"13/04/2018\", \"15/04/2018\"));\n galleries.add(new Gallery(\"rome\", \"Fall 2017\",\"Rome\", 250, 5,\"City break...
[ "0.5961262", "0.5672544", "0.5526625", "0.5222357", "0.51894075", "0.51745236", "0.5155721", "0.5146175", "0.5105629", "0.51020813", "0.50399786", "0.49340641", "0.4897712", "0.48783702", "0.4842745", "0.4831398", "0.4830466", "0.4773597", "0.4759747", "0.4755292", "0.4744530...
0.5271176
3
Return all art pieces with an asking price in between the specified upper and lower bands.
Set<Art> getArtByPrice(Double upper, Double lower);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Bid> getProperBid(double lower, double upper) {\r\n\r\n\t\tList<Bid> bids = new ArrayList<Bid>();\r\n\t\tBidIterator myBidIterator = new BidIterator(US.getDomain());\r\n\t\t\r\n\t\twhile (myBidIterator.hasNext()) {\r\n\t\t\tBid b = myBidIterator.next();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tdouble util ...
[ "0.56263566", "0.5596506", "0.54185015", "0.5338122", "0.53183496", "0.52312577", "0.51498693", "0.5053299", "0.50109553", "0.49969283", "0.4979064", "0.49354702", "0.4903571", "0.48599902", "0.46902472", "0.46364978", "0.46248394", "0.46053562", "0.45886597", "0.4572843", "0...
0.6720639
0
Return the label for the selection menu. This way the f:selectItems tag doesn't need itemLabel attributes.
@Override public String toString() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}", "public static String choicelabel() {\n\t\treturn null;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getMenuLabel();", "public String getSourceSelectionLabel()\n {\n\treturn this.source...
[ "0.6896495", "0.6752113", "0.654973", "0.6363839", "0.6269079", "0.6159436", "0.6152186", "0.6091336", "0.589968", "0.5816619", "0.57830286", "0.57532984", "0.5724755", "0.5723631", "0.5723631", "0.5723631", "0.57065266", "0.57023907", "0.56597847", "0.56562084", "0.5643857",...
0.0
-1
Class with 5 dead nodes / 11 dead lines. CHECKSTYLE:OFF
interface Iface { void usedIface(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testInvalidClasses()\n\t{\n\t\tth.addError(1, 11, \"Class properties must be methods. Expected '(' but instead saw ''.\");\n\t\tth.addError(1, 11, \"Unrecoverable syntax error. (100% scanned).\");\n\t\tth.test(\"class a { b\", new LinterOptions().set(\"esnext\", true));\n\t\t\n\t\t// Regressio...
[ "0.5752883", "0.5520164", "0.548228", "0.5429619", "0.5350525", "0.52362096", "0.5213762", "0.521116", "0.5208539", "0.51901776", "0.5176647", "0.5156928", "0.51557636", "0.5154259", "0.50886625", "0.504168", "0.5025895", "0.5025104", "0.5022637", "0.5011599", "0.500647", "...
0.0
-1
/ java is also a main calss like this one where String []args has been defined and it takes the input in this Similarly,I am thaking input as array
public static void main(String[] args) { if (args.length < 1) { System.out.println("\n\njava mylang file.txt");//to give error if less than 1 return; } String contents = readFile(args[0]);//read file is a methode not only this remember that arg[0] contains t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nSystem.out.println(\"you passed...\"+args.length);\r\nfor(int i=0;i<args.length;i++)\r\n{\r\n\tSystem.out.println(\"data is\"+args[i]);\r\n}\r\n\t}", "public static void main(String[] args) {\n\t\tint[] arr = takeInput();\n//\t\tprintArray(arr);\n\t\tprintStartEndArray(a...
[ "0.7624993", "0.75423354", "0.7506173", "0.7443435", "0.73926705", "0.7344199", "0.7316446", "0.7308661", "0.73072624", "0.7249641", "0.7234187", "0.7234187", "0.7234187", "0.7234187", "0.7234187", "0.7233581", "0.723157", "0.7204624", "0.7189389", "0.7180894", "0.7157467", ...
0.0
-1
Test of delegate method, of class EventFiringMap.
@Test public void testDelegate() { assertSame(delegate, testMockedMapObject.delegate()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testNearBack()\n {\n String sName = \"near-back-listener\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "@Test\n public void testDispatchEvent(){\n\n final SampleClass s...
[ "0.6137337", "0.6024765", "0.60051495", "0.600174", "0.6000736", "0.5989412", "0.59814805", "0.58495766", "0.58418524", "0.57375926", "0.56816405", "0.5668645", "0.56654286", "0.56553537", "0.5639298", "0.5632664", "0.5618087", "0.56179434", "0.5601885", "0.55871993", "0.5581...
0.69960845
0
Test of clear method, of class EventFiringMap.
@Test public void testClear_EmptyMap() { configureAnswer(); testObject.clear(); verifyZeroInteractions(helper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testClear_WithItems() {\n Map<String, String> toAdd = fillMap(1, 10);\n\n map.putAll(toAdd);\n\n configureAnswer();\n\n testObject.clear();\n\n for (Entry<String, String> entry : toAdd.entrySet()) {\n verify(helper).fireRemove(entry);\n }\...
[ "0.7668109", "0.74658006", "0.7308419", "0.71311325", "0.7119796", "0.7058117", "0.7048707", "0.7046506", "0.699593", "0.6994303", "0.69860107", "0.69455165", "0.69203824", "0.68374753", "0.68374753", "0.68374753", "0.68374753", "0.68374753", "0.68374753", "0.68374753", "0.68...
0.77495474
0
Test of clear method, of class EventFiringMap.
@Test public void testClear_WithItems() { Map<String, String> toAdd = fillMap(1, 10); map.putAll(toAdd); configureAnswer(); testObject.clear(); for (Entry<String, String> entry : toAdd.entrySet()) { verify(helper).fireRemove(entry); } verifyNoM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testClear_EmptyMap() {\n configureAnswer();\n testObject.clear();\n\n verifyZeroInteractions(helper);\n }", "public void testNormalClearIsEmpty()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkClearMap(pmf,\r\n ...
[ "0.77499497", "0.7466909", "0.7310062", "0.7132595", "0.7121762", "0.7059809", "0.7050432", "0.70481503", "0.6997593", "0.6995965", "0.6987697", "0.69454867", "0.69210696", "0.68379503", "0.68379503", "0.68379503", "0.68379503", "0.68379503", "0.68379503", "0.68379503", "0.68...
0.7668519
1
Test of put method, of class EventFiringMap.
@Test public void testPut_NonExisting() { configureAnswer(); testObject.put("Hello", "World"); verify(helper).fireAdd(entry("Hello", "World")); verifyNoMoreInteractions(helper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPut_Existing() {\n map.put(\"Hello\", \"Old World\");\n configureAnswer();\n\n testObject.put(\"Hello\", \"World\");\n\n verify(helper).fireReplace(entry(\"Hello\", \"Old World\"), entry(\"Hello\", \"World\"));\n\n verifyNoMoreInteractions(helper);\n ...
[ "0.7655474", "0.7299214", "0.7178493", "0.6747056", "0.6697072", "0.6531432", "0.64324594", "0.6392417", "0.6359032", "0.6347223", "0.6345916", "0.63164043", "0.62879544", "0.62409014", "0.6223884", "0.6201921", "0.61770725", "0.6132265", "0.60962427", "0.6049001", "0.6017821...
0.68278694
3
Test of put method, of class EventFiringMap.
@Test public void testPut_Existing() { map.put("Hello", "Old World"); configureAnswer(); testObject.put("Hello", "World"); verify(helper).fireReplace(entry("Hello", "Old World"), entry("Hello", "World")); verifyNoMoreInteractions(helper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void put(T event);", "@Test\n public void testPut_ExistingNoChange() {\n map.put(\"Hello\", \"World\");\n configureAnswer();\n\n testObject.put(\"Hello\", \"World\");\n\n verifyZeroInteractions(helper);\n }", "@Test\n public void testPut_NonExisting() {\n co...
[ "0.7300506", "0.71782583", "0.68278944", "0.67459285", "0.66955334", "0.65307957", "0.6430873", "0.63920724", "0.63590187", "0.63472277", "0.6345549", "0.6316122", "0.6287203", "0.6240238", "0.62225366", "0.62013155", "0.6178175", "0.61308205", "0.60964143", "0.6048405", "0.6...
0.76549065
0
Test of put method, of class EventFiringMap.
@Test public void testPut_ExistingNoChange() { map.put("Hello", "World"); configureAnswer(); testObject.put("Hello", "World"); verifyZeroInteractions(helper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPut_Existing() {\n map.put(\"Hello\", \"Old World\");\n configureAnswer();\n\n testObject.put(\"Hello\", \"World\");\n\n verify(helper).fireReplace(entry(\"Hello\", \"Old World\"), entry(\"Hello\", \"World\"));\n\n verifyNoMoreInteractions(helper);\n ...
[ "0.76549065", "0.7300506", "0.68278944", "0.67459285", "0.66955334", "0.65307957", "0.6430873", "0.63920724", "0.63590187", "0.63472277", "0.6345549", "0.6316122", "0.6287203", "0.6240238", "0.62225366", "0.62013155", "0.6178175", "0.61308205", "0.60964143", "0.6048405", "0.6...
0.71782583
2
Test of putAll method, of class EventFiringMap.
@Test public void testPutAll_NonExisting() { Map<String, String> toAdd = fillMap(1, 10); configureAnswer(); testObject.putAll(toAdd); for (Entry<String, String> entry : toAdd.entrySet()) { verify(helper).fireAdd(entry); } verifyNoMoreInteractions(helper);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPutAll_Existing() {\n Map<String, String> toAdd = fillMap(1, 10, \"\", \"Old \");\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10, \"\", \"New \");\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n for (String k : ...
[ "0.75112826", "0.72371167", "0.7114724", "0.6225771", "0.6074279", "0.60591775", "0.60433453", "0.60261184", "0.6003515", "0.59561324", "0.5919498", "0.59043986", "0.5880726", "0.587161", "0.58702856", "0.58647346", "0.58138865", "0.5801063", "0.5773888", "0.57388395", "0.573...
0.75431955
0
Test of putAll method, of class EventFiringMap.
@Test public void testPutAll_Existing() { Map<String, String> toAdd = fillMap(1, 10, "", "Old "); map.putAll(toAdd); Map<String, String> toUpdate = fillMap(1, 10, "", "New "); configureAnswer(); testObject.putAll(toUpdate); for (String k : toAdd.keySet()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPutAll_NonExisting() {\n Map<String, String> toAdd = fillMap(1, 10);\n configureAnswer();\n testObject.putAll(toAdd);\n\n for (Entry<String, String> entry : toAdd.entrySet()) {\n verify(helper).fireAdd(entry);\n }\n verifyNoMoreInterac...
[ "0.75427806", "0.72366405", "0.71141434", "0.62251675", "0.6072842", "0.60587806", "0.6043992", "0.6026506", "0.6003814", "0.595617", "0.59194666", "0.5903786", "0.5879991", "0.5871435", "0.587055", "0.58662236", "0.5813561", "0.580109", "0.577404", "0.57389003", "0.57365304"...
0.751116
1
Test of putAll method, of class EventFiringMap.
@Test public void testPutAll_ExistingNoChange() { Map<String, String> toAdd = fillMap(1, 10); map.putAll(toAdd); Map<String, String> toUpdate = fillMap(1, 10); configureAnswer(); testObject.putAll(toUpdate); verifyZeroInteractions(helper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPutAll_NonExisting() {\n Map<String, String> toAdd = fillMap(1, 10);\n configureAnswer();\n testObject.putAll(toAdd);\n\n for (Entry<String, String> entry : toAdd.entrySet()) {\n verify(helper).fireAdd(entry);\n }\n verifyNoMoreInterac...
[ "0.7543224", "0.75111526", "0.72363585", "0.62243515", "0.60734403", "0.6058166", "0.60426015", "0.6025738", "0.6002622", "0.5956131", "0.59182966", "0.59046763", "0.5879525", "0.58723897", "0.5869341", "0.5865271", "0.5814225", "0.58006126", "0.57727057", "0.5739179", "0.573...
0.71144205
3
Test of remove method, of class EventFiringMap.
@Test public void testRemove() { map.put("Hello", "World"); map.put("Hi", "World2"); configureAnswer(); testObject.remove("Hello"); verify(helper).fireRemove(entry("Hello", "World")); verifyNoMoreInteractions(helper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void removeFromMap();", "public void testNormalRemoveItem()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkRemove(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n ...
[ "0.6873212", "0.6821789", "0.6773427", "0.6704272", "0.6686373", "0.66754085", "0.664093", "0.664093", "0.664093", "0.664093", "0.664093", "0.664093", "0.664093", "0.664093", "0.6622047", "0.6619919", "0.66075265", "0.6603714", "0.6580499", "0.6580499", "0.65769273", "0.657...
0.7686823
0
Get relative path expression
public RelativePathExpr getRelativePath() { return this.relativePathExpr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPathExpression() {\n return getProperty(PATH_EXPRESSION);\n }", "public String getRelativePath();", "public String getAbsPath();", "public String resolvePath();", "public Pattern getCompiledPath();", "String getRealPath(String path);", "private String getResourcePath() {\n\t\...
[ "0.6316254", "0.6301434", "0.5984422", "0.59471965", "0.59340477", "0.58320916", "0.57812", "0.57757515", "0.5661172", "0.56072146", "0.56034315", "0.55978173", "0.5596049", "0.55629677", "0.55215394", "0.55143327", "0.54894036", "0.5482641", "0.54790384", "0.5467345", "0.542...
0.6597108
0
Initializes an Verlet engine instance
public VPhysicsSimple() { this.particles = new ArrayList<VParticle>(); this.springs = new ArrayList<VSpring>(); this.behaviors = new ArrayList<BehaviorInterface>(1); this.constraints = new ArrayList<VParticle>(10); setNumIterations(50); setfriction(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initEngine() {\n \n }", "@Override\n public void initEngine() {\n \n }", "void init(@NotNull final AIEngine engine);", "public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }", "private void initializeEngine() {\n try {\n mRtcE...
[ "0.73372394", "0.73372394", "0.7075607", "0.6751388", "0.6707064", "0.66870624", "0.66835266", "0.66778976", "0.66556376", "0.65492404", "0.64014035", "0.6362683", "0.62471753", "0.62331074", "0.6224358", "0.62179357", "0.6202946", "0.61867553", "0.6168593", "0.6164522", "0.6...
0.0
-1
Adds a behavior to the list
public void addBehavior(BehaviorInterface behavior) { behaviors.add(behavior); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWhen(When pWhen);", "public void autoAdd()\n {\n switch (this.getGameType())\n {\n case 1:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(swimmers.get(i).getId(),swimmers.get(i).c...
[ "0.59116775", "0.5645632", "0.5602343", "0.5588712", "0.55776787", "0.5554294", "0.55538404", "0.5507832", "0.55056036", "0.55025566", "0.5482499", "0.54481626", "0.5442114", "0.5432566", "0.54217017", "0.54081076", "0.54047865", "0.5381382", "0.53497154", "0.5348329", "0.534...
0.73854685
0
Adds a particle to the list
public VParticle addParticle(VParticle particle) { VParticle p = returnIfConstrained(particle); //particles.add(p); return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Particle particle) {\n this.particles.add(particle);\n }", "@External\r\n\t@ClientFunc\r\n\tpublic MetaVarCLuaParticle Add(MetaVarString materialVar,MetaVarVector positionVar);", "public void spawnParticle ( Particle particle , double x , double y , double z , int count , double offse...
[ "0.8266019", "0.7223628", "0.6892944", "0.6722938", "0.66427463", "0.6611836", "0.6534792", "0.6428723", "0.6385842", "0.63348", "0.6327049", "0.62954795", "0.62845886", "0.627039", "0.62618446", "0.6253566", "0.6192605", "0.6181261", "0.61770207", "0.61517495", "0.6098691", ...
0.7148481
2
Adds a spring to the list
public VPhysicsSimple addSpring(VSpring s) { if (this.springs == null) springs = new ArrayList<VSpring>(); if (getSpring(s.a, s.b) == null) { springs.add(s); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void add(Component component) {\n\t\tlist.add(component);\n\t}", "public void addProperty(SGFProperty property)\r\n\t{\r\n\t\t_propertyList.add(property);\r\n\t}", "void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}", "public void add(Object o){\n list.add(o);\n }", "pr...
[ "0.5420292", "0.53949696", "0.53583765", "0.5344652", "0.5254108", "0.5147698", "0.5144868", "0.5140343", "0.5047359", "0.5018033", "0.50102085", "0.5007347", "0.4977427", "0.4952628", "0.49244288", "0.49242216", "0.4914313", "0.49110973", "0.49037513", "0.48807132", "0.48725...
0.6565158
0
Adds a group (or String) to the List without affecting the global particle calculation
public void addGroup(VParticleGroup g) { if (this.groups == null) groups = new ArrayList<VParticleGroup>(); groups.add(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(R group);", "public void newGroup() {\n addGroup(null, true);\n }", "private void addGroup(StreamTokenizer st) throws IOException {\n\t\tcurrentGroups.clear();\n\t\tst.nextToken();\n\t\tString gName = \"default\";\n\t\tif (st.ttype == StreamTokenizer.TT_EOL) {\n\t\t\tLoggingSystem.getLogger(...
[ "0.6575791", "0.6560614", "0.6501332", "0.6457609", "0.6438213", "0.62993836", "0.62209517", "0.62103355", "0.61395013", "0.60839605", "0.60764945", "0.58688855", "0.5848207", "0.58289444", "0.57965213", "0.57504505", "0.57005376", "0.56691366", "0.5659595", "0.5647581", "0.5...
0.7107985
0
Attempts to find the spring element between the 2 particles supplied
public VSpring getSpring(Vec a, Vec b) { for (VSpring s : springs) { if ((s.a == a && s.b == b) || (s.a == b && s.b == a)) { return s; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged() {\n pma_ParticleVerlet p = new pma_ParticleVerlet(mouseX,mouseY);\n p.lock();\n // if there is at least one particle and this is the current continuous line\n if (physics.particles.size() > 0 && continuous == current) {\n // get the previous particle (aka the last in the list)\n ...
[ "0.5639361", "0.53784", "0.52628046", "0.5191537", "0.51375604", "0.511127", "0.5007753", "0.5006983", "0.4990199", "0.4903587", "0.48922154", "0.48532254", "0.48458508", "0.4800642", "0.47920808", "0.47284356", "0.47164318", "0.46774143", "0.4663195", "0.46336445", "0.462814...
0.6306869
0
get the count of how many springs are connected to A
public int getnumConnected(Vec a) { int count = 0; if (springs != null) { for (VSpring s : springs) { if ((s.a == a) || (s.b == a)) { count++; } } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfStonesOnBoard();", "public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}", "int getEdgeCount();", "int getSnInfoCount();", "...
[ "0.6448844", "0.63643605", "0.6289646", "0.6283351", "0.6283351", "0.6283351", "0.62703186", "0.6262875", "0.6253871", "0.62505955", "0.62505955", "0.62470394", "0.62054604", "0.6186485", "0.6185619", "0.61798745", "0.61798745", "0.6176194", "0.6147353", "0.61426294", "0.6135...
0.78880316
0
Removes a behavior from the simulation.
public boolean removeBehavior(BehaviorInterface b) { return behaviors.remove(b); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeSpecification() {\n simSpec = null;\n }", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "public void removeArtifact(ArtifactModel artifact);", "public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPo...
[ "0.5867674", "0.5717763", "0.5715233", "0.5648679", "0.5608586", "0.55623806", "0.5502908", "0.55008715", "0.5499238", "0.5443402", "0.5441494", "0.54380006", "0.54309314", "0.54178697", "0.54130495", "0.5401203", "0.53956306", "0.53768367", "0.5366761", "0.5361253", "0.53353...
0.62981004
0
Removes a constraint from the simulation.
public boolean removeConstraint(VParticle constraint) { return constraints.remove(constraint); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeConstraintEntity(IViewEntity entity);", "void removeConstraintRelation(IViewRelation relation);", "void unsetConstraints();", "public Delta removeConstraintItem(ConstraintType type, ConstraintId constraintId) {\n _removedConstraints.get(type).add(constraintId);\n return this;\n }", ...
[ "0.6683558", "0.65845114", "0.62837315", "0.6209685", "0.6040508", "0.5827461", "0.57462585", "0.55969703", "0.55564845", "0.55104524", "0.55003375", "0.54900277", "0.54871875", "0.5460966", "0.5392286", "0.51336", "0.5118807", "0.51092607", "0.5089036", "0.5048911", "0.50489...
0.71221673
0
Removes a particle from the simulation.
public boolean removeParticle(VParticle p) { return particles.remove(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeNoCollisionElement(Particle p)\n {\n noCollisionElements.remove(p);\n p.removeNoCollisionElementFree(this);\n }", "public void remove(Point p)\n {\n pellets.remove(p);\n }", "public void removePoint(Point2D p);", "public abstract void removeCreature(Point p)...
[ "0.68177736", "0.66339105", "0.6052969", "0.59571546", "0.5842351", "0.5832954", "0.5790179", "0.5740898", "0.5718688", "0.5717748", "0.5699227", "0.5695135", "0.56741786", "0.56709754", "0.56535524", "0.56533813", "0.5647623", "0.5647623", "0.5647623", "0.5647623", "0.564762...
0.6946406
0
Removes a spring connector from the simulation instance.
public boolean removeSpring(VSpring s) { return springs.remove(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void remove(SpectatorComponent spectatorComponent) {\n }", "public void disconnect() {\n try {\n theCoorInt.unregisterForCallback(this);\n theCoorInt = null;\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"Simulati...
[ "0.5235546", "0.5200952", "0.516494", "0.49800313", "0.4976292", "0.49502248", "0.4936321", "0.48703712", "0.48675385", "0.48239046", "0.4810164", "0.48047155", "0.48014575", "0.4739439", "0.47351792", "0.4715926", "0.47151", "0.47051147", "0.4697242", "0.46775407", "0.464601...
0.52144456
1
Removes a spring connector and its both end point particles from the simulation
public boolean removeSpringElements(VSpring s) { if (removeSpring(s)) { return (removeParticle(s.a) && removeParticle(s.b)); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void RemoveSol()\r\n {\r\n for (int i = 0; i <maze.Struct.length ; i++) {\r\n for (int j = 0; j <maze.Struct[0].length ; j++) {\r\n if (maze.Struct[i][j]== 2)\r\n maze.Struct[i][j]= 0;\r\n }\r\n }\r\n setChanged();\r\n no...
[ "0.55504745", "0.5461635", "0.53913933", "0.53077745", "0.52896833", "0.52507514", "0.5229999", "0.52107555", "0.5210391", "0.5176194", "0.5150271", "0.5143317", "0.51272714", "0.51242715", "0.5066663", "0.5052742", "0.504231", "0.50185925", "0.50149274", "0.49917042", "0.499...
0.5551641
0
Removes a particle group from the simulation instance.
public boolean removeGroup(VParticleGroup g) { return groups.remove(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(Group sceneGroup) {\n\t setState(SpriteState.TO_BE_REMOVED);\n\t if (sceneGroup != null) {\n\t sceneGroup.getChildren().remove(getNode());\n\t }\n\t }", "public void removeFromGroup () throws PPException{\n\t\tif (PPNative.Unit_SetGroup (id, -1) == -1)\n\t\t\...
[ "0.6703078", "0.6595162", "0.65574604", "0.6529256", "0.6448672", "0.6446217", "0.63954586", "0.6233887", "0.6233887", "0.60497284", "0.586306", "0.58509856", "0.5794263", "0.57730395", "0.57600576", "0.5688828", "0.5676438", "0.55966944", "0.55959845", "0.55715007", "0.55456...
0.66079843
1
Updates all particle positions
protected void updateParticles() { for (int i = 0; i < particles.size(); i++) { VParticle p = particles.get(i); if (p.neighbors == null) { p.neighbors = particles; } for (BehaviorInterface b : behaviors) { b.apply(p); } } for (int i = 0; i < particles.size(); i++) { VParticle p = partic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void update() {\n\t\t\n\t\t// Fill the background for every call\n\t\tUtility.background(Utility.color(235, 213, 186));\n\t\t\n\t\t// Create 10 new random particles\n\t\tcreateNewParticles(10);\n\t\t\n\t\t// Track every particle in the array then update their feature\n\t\tfor (int i = 0; i < particle...
[ "0.71851355", "0.71446896", "0.7061897", "0.69856584", "0.6970798", "0.67080045", "0.6689695", "0.66740084", "0.66736925", "0.6593146", "0.6530424", "0.6520593", "0.6497997", "0.64673", "0.64641535", "0.6433699", "0.63677377", "0.6343941", "0.6335842", "0.6308743", "0.6307761...
0.77313006
0
Progresses the physics simulation by 1 time step and updates all forces and particle positions accordingly
public void update() { updateParticles(); updateSprings(); if (groups != null) { for (VParticleGroup g : groups) { g.update(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void step() {\n hasMoved = new boolean[simulationSize][simulationSize]; // Initializing the array and populating it with false values\n\n for(int i = 0; i < hasMoved.length; i++)\n Arrays.fill(hasMoved[i], false);\n\n moveFluid();\n\n yVelocityModifier.add(gravity);\n ...
[ "0.7086809", "0.6797885", "0.67345124", "0.6603141", "0.652511", "0.6482001", "0.64132416", "0.64126515", "0.6410757", "0.63093007", "0.62932014", "0.6279485", "0.62316406", "0.62290365", "0.62285537", "0.6172378", "0.6140458", "0.6104236", "0.61026937", "0.6087334", "0.60803...
0.0
-1
String expression = "3 4 + 5 6 "; String expression1 = "3 4 + 5 6 "; List listString = getListString(expression); int calculate = calculate(listString); System.out.println(calculate);
public static void main(String[] args) { String expresson = "1+((2+3)*40)-5"; List<String> strings = toInffixExpresion(expresson); System.out.println(strings.toString()); List<String> parse = parseSuffix(strings); System.out.println(parse); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array a...
[ "0.71346605", "0.7107905", "0.702646", "0.6952346", "0.69362396", "0.69131285", "0.6885563", "0.6855828", "0.6816672", "0.68087584", "0.6776803", "0.6667957", "0.66658187", "0.6621859", "0.6556362", "0.6525214", "0.65149915", "0.6503535", "0.6432783", "0.6430428", "0.64208096...
0.0
-1
/ return the former value if any, otherwise null
public Object setProperty(String key, String value) { return this.props.setProperty(key, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getElseValue();", "protected D getPreviousOrSame(D d) {\n\t\t\tD prev = getPrevious(d);\n\t\t\tif (prev == null) {\n\t\t\t\treturn d;\n\t\t\t}\n\t\t\treturn prev;\n\t\t}", "default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }", "T getOrElse(T value);", "protected T...
[ "0.6491669", "0.62083703", "0.6133139", "0.60793734", "0.6075931", "0.6049683", "0.6011853", "0.5968389", "0.5884777", "0.5877035", "0.5864706", "0.58203685", "0.58063924", "0.5789605", "0.5690639", "0.5671432", "0.5671432", "0.565472", "0.5652098", "0.56429505", "0.5641842",...
0.0
-1
Split the user command by spaces, but preserving them when inside doublequotes. Code Adapted from:
public static String[] splitCommand(String command) { java.util.List<String> matchList = new java.util.ArrayList<>(); Pattern regex = Pattern.compile("[^\\s\"']+|\"([^\"]*)\"|'([^']*)'"); Matcher regexMatcher = regex.matcher(command); while (regexMatcher.find()) { if (regexM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processCommand(String userInput){\n if (userInput.contains(\" \")){ \n processSingleToken(userInput.split(\" \")); //Splits strings based on \" \" \n }\n \n else{\n List<String> tempStore = new ArrayList<String>();\n tempStore.add(userInput);\n String[] token = tempStore...
[ "0.67271805", "0.6556597", "0.64864546", "0.6441886", "0.62878776", "0.6095677", "0.6053618", "0.5924528", "0.5914495", "0.5893874", "0.57732654", "0.5738695", "0.5726268", "0.5637614", "0.56129396", "0.5597313", "0.55872905", "0.55843043", "0.55828226", "0.5566519", "0.55594...
0.6693337
1
TODO Autogenerated method stub
@Override public int getType() { return TYPE_PAGE_REPAIR; }
{ "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 BaseAdapter getAdapter() { if (mAdapter == null) { mAdapter = new CommonAdapter<FaultBean>(getApplicationContext(), list, R.layout.item_accident_repair_history) { @Override public void convert(ViewHolder viewHolder, FaultBean item) { TextView tv_bg = viewHolder .getView(R...
{ "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 int getTotalNumber() { return totalNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void initListData(final int page) { if (list == null) { list = new ArrayList<FaultBean>(); } // page值为1时,表明巡检状态可能发生了变化,所以数据需要进行初始化。当适配器mAapter非空时,表明有数据,所以需要通知列表刷新 if (page == 1) { list.clear(); if (mAdapter != null) { // 一定要做通知刷新处理,否则可能会报错 mAdapter.notifyDataSetChanged(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onListViewItemClick(int position) { FaultBean fault_bean = list.get(position - 1); Intent intent = new Intent(ActivityRepair.this, AccidentHistoryDetailsActivity.class); Bundle bundle = new Bundle(); bundle.putSerializable("FaultBean", fault_bean); intent.putExtras(bundle); startA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onMoreLisenter() { startActivity(new Intent(this, AccidentHandlingActivity.class)); }
{ "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
Creates new form home
public home() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\tti...
[ "0.6750822", "0.66476196", "0.66468185", "0.64336306", "0.63795817", "0.6365466", "0.62872887", "0.6285692", "0.62688375", "0.6184401", "0.61300087", "0.6091361", "0.60213107", "0.6013546", "0.6013034", "0.5964978", "0.594355", "0.5939284", "0.58955604", "0.5877783", "0.58585...
0.58536977
23
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton3 = new j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Die onModuleLoadMethode wird als erstes beim Laden der Homepage aufgerufen.
@Override public void onModuleLoad() { Button loginButton = new Button("Einloggen"); loginButton.addStyleName("loginlogoutButton"); loginButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.Location.assign(loginurl); } }); signInLink.getElement()....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onModuleLoad() {\n }", "public void onModuleLoad() {\n \t\tMainPage.currentPage = this;\n \t\t\n \t\tif(Window.Location.getHash().length() == 0){\n \t\t\tloggedIn = false;\n \t\t}else{\n \t\t\tloggedIn = true;\n \t\t}\n \t\t\n \t\tinitUI();\n \t\t\n \t\tif(loggedIn){\n \t\t\tsetStat...
[ "0.7536928", "0.75007147", "0.7174901", "0.7060138", "0.7002749", "0.6970777", "0.6970072", "0.69499916", "0.68761826", "0.6818173", "0.6792758", "0.6717046", "0.66347414", "0.6614124", "0.65870434", "0.6582018", "0.65174484", "0.6486699", "0.6466632", "0.64312446", "0.636912...
0.0
-1
Wir beim aktuallisieren auf page2 aufgerufen und refrehed den Content
public void reloadPage2() { greetingService .getContactSourceTypes(new AsyncCallback<ArrayList<ContactSourceType>>() { @Override public void onSuccess(ArrayList<ContactSourceType> result) { exportTreeManager = new ExportTreeManager(); contactSourceTypesTree = exportTreeManager.getTree(result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void process(Page page) {\n\t\t\t\tgetContent(page);\n\t\t\t}", "@Override\n public void process(Page page) {\n PageStore.prePage = page.getHtml().toString();\n }", "void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.s...
[ "0.63372767", "0.6334243", "0.6255895", "0.6202071", "0.61343956", "0.612772", "0.61049736", "0.60902697", "0.6046228", "0.5995253", "0.5985571", "0.59699154", "0.5954147", "0.59182644", "0.5859769", "0.58480215", "0.57877624", "0.578471", "0.57793236", "0.57781094", "0.57388...
0.6542094
0
Setzt die Selections der Kontakte und Kontaktgruppen und sendet diese an den Server
public void setSelections(ContactRecord[] contactRecords, ContactGroupRecord[] contactGroupRecords) { for (ContactGroupRecord contactGroupRecord : contactGroupRecords) { for (ContactGroup contactGroup : contactGroups) { if (contactGroupRecord.getGroupname().equals( contactGroup.getName())) { cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreferenc...
[ "0.67808604", "0.60685134", "0.6051514", "0.59295934", "0.5844027", "0.57854235", "0.57282424", "0.5669648", "0.56291974", "0.5623755", "0.559022", "0.5567043", "0.555237", "0.5546721", "0.55400777", "0.55285746", "0.54946536", "0.54649496", "0.54331535", "0.5431383", "0.5407...
0.0
-1
TODO Autogenerated method stub
@Override public void onFailure(Throwable caught) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method returns new date by moving minutes in the past/future by minutes
public static Date getRandomMinutesPastNow(int minutesMin, int minutesMax){ Random rand = new Random(); int randomMinutes = (rand.nextInt((minutesMax - minutesMin) + 1) + minutesMin)*-1; Calendar now = Calendar.getInstance(); now.add(Calendar.MINUTE, randomMinutes); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Date stepTime(Date d, int mins) {\n\t\tif (d == null) return d;\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(d);\n\t\tcal.add(Calendar.MINUTE, mins);\n\t\treturn cal.getTime();\n\t}", "public MyTime nextMinute(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour...
[ "0.5820973", "0.5583993", "0.5502913", "0.5388857", "0.5194047", "0.51032937", "0.5058931", "0.5050582", "0.50078094", "0.50012237", "0.49977905", "0.495238", "0.49505717", "0.4932976", "0.4932161", "0.49031278", "0.48644096", "0.48495144", "0.48425564", "0.48415595", "0.4821...
0.5022166
8
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Areaciudad)) { return false; } Areaciudad other = (Areaciudad) object; if ((this.idAreaCiudad == null && other.idAreaCiudad != null) || (this.idAreaCiudad != null && !this.idAreaCiudad.equals(other.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896825", "0.6838604", "0.6705561", "0.66422164", "0.66422164", "0.65926504", "0.6579192", "0.6579192", "0.65745574", "0.65745574", "0.65745574", "0.65745574", "0.65745574", "0.65745574", "0.6562735", "0.6562735", "0.6544228", "0.6524609", "0.65156776", "0.64875734", "0.64...
0.0
-1
If a proxy is needed to make the connection it should be set here.
public static void updateProxySettings(String host,String port,String username,String password){ HttpPosterCommons.host = (!host.equals(""))?host:HttpPosterCommons.host; HttpPosterCommons.port = (!port.equals(""))?port:HttpPosterCommons.port; HttpPosterCommons.username = (!username.equals(""))?username:Http...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authP...
[ "0.73848677", "0.7247318", "0.71754384", "0.71340317", "0.711889", "0.70086896", "0.69929343", "0.6950037", "0.6946006", "0.6872612", "0.6871158", "0.6857681", "0.6825827", "0.6806567", "0.6799412", "0.67267376", "0.67215973", "0.6715122", "0.6681973", "0.668071", "0.6655915"...
0.0
-1
String XML_API_PATH= " XML_API_PATH = " /String reqXML = "" + "777334123" + "adminadmin" + "2" + "47805" + "11" + "777334123"; String reqXML = "1234VOICE20090218174568777335365test user3/25/2009 12:00:00 AM0303"; String reqXML = "1234VOICE2009021817456877733536522/10/1990|04:34:AM>Colombo6546554"; String reqXML = "DTLD...
public static void main(String[] args) { HashMap responseMap; try { HashMap reqparams = new HashMap(0); reqparams.put("msisdn", "94777335365"); responseMap = HttpPosterCommons.getInstance().executeGetRequestAsStream("http://192.168.71.225/interimbillpdfext.php", reqparams,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tMap<String, String> restmap = null;\n\t\ttry {\n\t\t\tMap<String, String> parm = new HashMap<String, String>();\n\t\t\tparm.put(\"mch_appid\", APP_ID); //公众账号appid\n\t\t\tparm.put(\"mchid\", MCH_ID); //商户号\n\t\t\tparm.put(\"nonce_str\", PayUtil.getNonceStr()); //随机字符串\...
[ "0.6173799", "0.55765337", "0.5569919", "0.539231", "0.5343229", "0.5299308", "0.52558506", "0.5182954", "0.5180073", "0.5169819", "0.5121081", "0.5112764", "0.50782007", "0.50763726", "0.5074199", "0.50213665", "0.501978", "0.501726", "0.4999054", "0.49944994", "0.49895585",...
0.58471435
1