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
bracketsOpt [ '=' variableIntitializer ]
private void variableDeclaratorRest(VariableType x, Scope scope, Vector queue) { x.type.dim += bracketsOpt(); if (nextSymbol == Keyword.ASSIGNSY) { Operation node, root = new Operation(); root.operator = (x.modify & Keyword.FINALSY.value) == 0?Keyword.ASSIGNSY:Keyword.FINALASSIGNSY; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBracket(String val)\r\n\t{\r\n\t\t_bracket = val;\r\n\t}", "public Variable(int power, char notation){\n\t\tthis.power = power;\n\t\tthis.notation = notation;\n\t}", "public String getBracket()\r\n\t{\r\n\t\treturn _bracket;\r\n\t}", "OPTION createOPTION();", "private String processShorthand...
[ "0.60432357", "0.5108466", "0.5074971", "0.5022312", "0.49492884", "0.49155238", "0.48643288", "0.4858962", "0.48210385", "0.48027745", "0.47747746", "0.47712", "0.47253755", "0.46971428", "0.4620098", "0.4598972", "0.45611584", "0.4553007", "0.45362785", "0.45211178", "0.449...
0.4189154
77
"class" ident [ "extend" type ] [ "implement" typeList ] classBody
private void classDeclaration(Modifier modifier, Scope scope, String basename) { Vector queue = new Vector(); HashSet dummy = unresolved; ClassType x = new ClassType(); unresolved = x.unresolved; if (comment != null && comment.length() > 0) { x.comment = comment + '\n'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void inAClassBody(AClassBody node) {\n // Determine the start and end line numbers.\n int begin = findBeginLine(node);\n int end = node.getRBrace().getLine();\n String cname = null;\n Node parentNode = node.parent();\n if (parentNode instanceof AClassDe...
[ "0.678461", "0.6756421", "0.66587484", "0.6647105", "0.65516627", "0.65516627", "0.63856184", "0.6340203", "0.6275696", "0.62755233", "0.6154287", "0.6125933", "0.61142445", "0.606991", "0.6004471", "0.60039735", "0.59692943", "0.5952569", "0.5952352", "0.5945607", "0.5922005...
0.6610336
4
';' | [ STATICSY ] ( block | [ modifiers ] memberDecl )
private void classBodyDeclaration(ClassType object, Modifier modifier, Vector queue) { Modifier x = new Modifier(modifier); x.cur = 0; if (nextSymbol == Keyword.SEMICOLONSY) { lookAhead(); return; } if (nextSymbol == Keyword.STATICSY) { x.add(modifier()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void memberDecl(Modifier modify, ClassType object, Vector queue)\r\n {\r\n Type dummy = returns;\r\n\r\n if (identAndLPar())\r\n {\r\n if ((modify.cur & modify.constructors) == 0)\r\n modify.cur |= Keyword.PUBLICSY.value ;\r\n\r\n modify.check(modify.constructors | modify.method...
[ "0.58545095", "0.5813793", "0.55439675", "0.54482913", "0.5428254", "0.5399601", "0.5341742", "0.5340609", "0.5314068", "0.529766", "0.52619797", "0.5233506", "0.52189875", "0.52033615", "0.5181773", "0.51719254", "0.5166159", "0.51636165", "0.51569986", "0.51545876", "0.5123...
0.5989149
0
constructorDeclaratorRest | "void" voidMethodDeclaratorRest | classDeclaration | interfaceDeclaration | methodOrFieldDeclaration
private void memberDecl(Modifier modify, ClassType object, Vector queue) { Type dummy = returns; if (identAndLPar()) { if ((modify.cur & modify.constructors) == 0) modify.cur |= Keyword.PUBLICSY.value ; modify.check(modify.constructors | modify.methods); MethodType x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void constructorDeclaratorRest(MethodType x, ClassType object)\r\n {\r\n Scope scope = object.scope;\r\n\r\n x.parameter = formalParameters();\r\n if (nextSymbol == Keyword.THROWSSY)\r\n {\r\n lookAhead();\r\n x.throwing = qualidentList();\r\n }\r\n else\r\n x.throwing =...
[ "0.65380704", "0.5930811", "0.58458734", "0.5827123", "0.5815849", "0.57605064", "0.5726339", "0.5661342", "0.5634226", "0.56117094", "0.55589527", "0.5535946", "0.5476149", "0.5463186", "0.5443858", "0.54358107", "0.54241204", "0.5392496", "0.5357239", "0.535134", "0.532802"...
0.5753441
6
formalParameters bracketsOpt [ "throws" qualidentList ] ( ';' | block )
private void methodDeclaratorRest(Modifier modify, Type t, Token name, ClassType object) { modify.check(modify.methods | modify.access); MethodType x = member = new MethodType(modify.cur); x.comment = comment + '\n'; resetComment(); x.type = t; returns = x.type; x.name = name;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void constructorDeclaratorRest() throws RecognitionException {\n int constructorDeclaratorRest_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"constructorDeclaratorRest\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg...
[ "0.5582835", "0.5518597", "0.53196144", "0.5308051", "0.52623224", "0.52158636", "0.52029866", "0.5109213", "0.5022285", "0.50017995", "0.4991166", "0.4977902", "0.4819611", "0.4809581", "0.4746177", "0.47194052", "0.46785572", "0.4657945", "0.46429813", "0.46164808", "0.4531...
0.414764
82
formalParameters [ "throws" qualidentList ] ( ';' | block )
private void voidMethodDeclaratorRest(Modifier modify, MethodType x, ClassType object) { Scope scope = object.scope; x.parameter = formalParameters(); if (nextSymbol == Keyword.THROWSSY) { lookAhead(); x.throwing = qualidentList(); } else x.throwing = new String...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void constructorDeclaratorRest() throws RecognitionException {\n int constructorDeclaratorRest_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"constructorDeclaratorRest\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg...
[ "0.6022047", "0.5889035", "0.58654875", "0.5741068", "0.56518847", "0.552263", "0.5518971", "0.5516577", "0.55143106", "0.54530853", "0.53635925", "0.529346", "0.5281323", "0.5250102", "0.52481943", "0.52456445", "0.5231472", "0.52019167", "0.5168371", "0.5161505", "0.5160669...
0.0
-1
formalParameters [ "throws" qualidentList ] block
private void constructorDeclaratorRest(MethodType x, ClassType object) { Scope scope = object.scope; x.parameter = formalParameters(); if (nextSymbol == Keyword.THROWSSY) { lookAhead(); x.throwing = qualidentList(); } else x.throwing = new String[0]; Vect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo1944a() throws cf {\r\n }", "public void mo1964g() throws cf {\r\n }", "public void mo1963f() throws cf {\r\n }", "public interface RoutineException {}", "public final void constructorDeclaratorRest() throws RecognitionException {\n int constructorDeclaratorRest_StartIndex = i...
[ "0.59776527", "0.5817696", "0.56087744", "0.55717355", "0.550463", "0.5455715", "0.5450077", "0.54421854", "0.5347757", "0.5346857", "0.53236604", "0.5304839", "0.528192", "0.5281427", "0.5273408", "0.52686864", "0.524245", "0.5241067", "0.5233728", "0.5223661", "0.52206886",...
0.5021055
34
"interface" ident [ "extends" typeList ] interfaceBody
private void interfaceDeclaration(Modifier modify, Scope scope, String basename) { HashSet dummy = unresolved; ClassType x = new ClassType(); x.modify = (x.modify & ~Keyword.CLASSSY.value) | Keyword.INTERFACESY.value; unresolved = x.unresolved; if (comment != null && comment.length() > 0)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IInventoryObject extends IID\n{\n}", "public interface SimpleFlow extends Serializable {\n\n public Pipe getPipe();\n\n public @interface IrSimpleFlow {\n\n String name();\n\n }\n\n}", "public interface IHead extends IDetail {\n}", "public interface a extends IInterface {\n}"...
[ "0.6823568", "0.6755996", "0.6638447", "0.6621569", "0.6531366", "0.6342286", "0.632408", "0.62977946", "0.6254782", "0.62399477", "0.62284577", "0.6197219", "0.61939406", "0.61918813", "0.6146035", "0.6145063", "0.61429983", "0.6115285", "0.61090475", "0.61057144", "0.610214...
0.6559343
4
';' | [ modifiers ] interfaceMemberDecl
private void interfaceBodyDeclaration(Modifier modify, ClassType object) { if (nextSymbol == Keyword.SEMICOLONSY) { lookAhead(); return; } Modifier m = new Modifier(modify); m.cur = 0; for(int x; (x = modifier()) != 0; m.add(x)); if ((m.cur & m.constructors) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void interfaceMemberDecl(Modifier modify, ClassType object)\r\n {\r\n if (comment != null && comment.length() > 0)\r\n {\r\n Operation op = new Operation();\r\n op.code = comment + '\\n';\r\n op.operator = Keyword.COMMENTSY;\r\n object.statics.add(op);\r\n resetComment();\...
[ "0.7100405", "0.69286126", "0.6441975", "0.642301", "0.62751365", "0.6169609", "0.6142762", "0.6138974", "0.6067786", "0.60591555", "0.6049081", "0.6034443", "0.6027791", "0.601127", "0.6006412", "0.60026073", "0.59838605", "0.59091794", "0.5906611", "0.58963907", "0.5889478"...
0.6504393
2
"void" voidInterfaceMethodDeclaratorRest | classDeclaration | interfaceDeclaration | interfaceMethodOrFieldDeclaration
private void interfaceMemberDecl(Modifier modify, ClassType object) { if (comment != null && comment.length() > 0) { Operation op = new Operation(); op.code = comment + '\n'; op.operator = Keyword.COMMENTSY; object.statics.add(op); resetComment(); } if (nex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void voidInterfaceMethodDeclaratorRest(MethodType x)\r\n {\r\n x.parameter = formalParameters();\r\n if (nextSymbol == Keyword.THROWSSY)\r\n {\r\n lookAhead();\r\n x.throwing = qualidentList();\r\n }\r\n else\r\n x.throwing = new String[0];\r\n\r\n matchKeyword(Keyword.S...
[ "0.6292477", "0.6255203", "0.604128", "0.60360175", "0.6018279", "0.5997857", "0.59426165", "0.5882851", "0.58643514", "0.5849005", "0.5842872", "0.58292204", "0.5764565", "0.56892055", "0.56879693", "0.56365913", "0.5629413", "0.56078064", "0.5586258", "0.55662674", "0.55464...
0.64322364
0
formalParameters bracketsOpt [ "throws" qualidentList ] ';'
private void interfaceMethodDeclaratorRest(Modifier modify, Type t, Token ident, ClassType object) { modify.check(modify.methods | modify.access); MethodType x = new MethodType(modify.cur); x.name = ident; x.type = t; x.scope = new Scope(object.scope, Scope.automatic, ""); x.paramete...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void constructorDeclaratorRest() throws RecognitionException {\n int constructorDeclaratorRest_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"constructorDeclaratorRest\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg...
[ "0.56731623", "0.5657288", "0.55284274", "0.5419108", "0.539637", "0.5359709", "0.5132225", "0.51083505", "0.5012298", "0.49388194", "0.4934133", "0.492999", "0.49245542", "0.49208656", "0.48668775", "0.4834796", "0.48188698", "0.48131976", "0.47991717", "0.47882873", "0.4776...
0.0
-1
[ "throws" qualidentList ] ';'
private void voidInterfaceMethodDeclaratorRest(MethodType x) { x.parameter = formalParameters(); if (nextSymbol == Keyword.THROWSSY) { lookAhead(); x.throwing = qualidentList(); } else x.throwing = new String[0]; matchKeyword(Keyword.SEMICOLONSY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo1944a() throws cf {\r\n }", "Rule Throws() {\n // Push 1 ThrowsNode onto the value stack\n return Sequence(\n \"throws \",\n \"( \",\n actions.pushInterrupt(),\n ZeroOrMore(Field()),\n \") \",\n ...
[ "0.6348713", "0.6192659", "0.6090675", "0.5994965", "0.5969116", "0.5965288", "0.5943733", "0.59254694", "0.58441037", "0.5802001", "0.57715344", "0.57104", "0.5679942", "0.56751424", "0.56115705", "0.5593998", "0.55728877", "0.5562642", "0.5550828", "0.55396634", "0.5499715"...
0.5527715
20
insert leading parameter this in parameter list
private void insertThis(ClassType object, MethodType x) { if ((x.modify & Keyword.STATICSY.value) == 0) { Parameter p = new Parameter(); p.name = new Token(); p.name.string = "§this"; p.type = new Type(); p.type.version = object.version; p.type.ident.string = obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addParameter(ParmInfoEntry p){\n\t}", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void addToParameterNameValuePairs(entity.LoadParameter element);", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parame...
[ "0.6714579", "0.6358333", "0.61905134", "0.61623913", "0.6119906", "0.60475785", "0.59595466", "0.5793748", "0.5761136", "0.57383794", "0.5737107", "0.57151383", "0.5711862", "0.56905144", "0.56868523", "0.56864184", "0.56808937", "0.56801444", "0.5656486", "0.56478184", "0.5...
0.6021013
6
localVariableDeclaration ';' | classOrInterfaceDeclaration | statement
private void blockStatement(Scope scope, Vector queue) { Modifier modify = new Modifier(); modify.access = 0; modify.classes &= Keyword.FINALSY.value | Keyword.STRICTFPSY.value; modify.fields &= Keyword.FINALSY.value | Keyword.TRANSIENTSY.value | Keyword.VOLATILESY.value; modify.methods &...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void localVariableDeclarationStatement() throws RecognitionException {\n int localVariableDeclarationStatement_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"localVariableDeclarationStatement\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incR...
[ "0.672178", "0.638141", "0.63175726", "0.62892234", "0.60996777", "0.60664386", "0.6008117", "0.59839016", "0.59805435", "0.5964828", "0.5962328", "0.5920267", "0.59073114", "0.58600324", "0.58498937", "0.58460176", "0.5736271", "0.56092036", "0.55943024", "0.5589317", "0.556...
0.48200887
84
generate administrative code at the end of a block
private Operation blockEnd(Scope scope) { Operation root = new Operation(); root.operator = Keyword.BLOCKENDSY; root.code = (String)scope.label.get(0); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void endBlock() {\n }", "public void endBlockOut () {\n addLine (getBlockEnd());\n // writer.close();\n }", "public abstract void appendBlock();", "public String generateBlock(){\n return null;\n }", "public abstract void generateNextBlock();", "public St...
[ "0.7231743", "0.67107016", "0.6548194", "0.6522214", "0.6425628", "0.6217614", "0.6074418", "0.60680604", "0.59706414", "0.57040924", "0.56859106", "0.564769", "0.5637197", "0.56210405", "0.5598711", "0.5595582", "0.55890787", "0.55840814", "0.5579296", "0.5577703", "0.550026...
0.6441743
4
[ FINALSY ] type variableDeclarators
private void localVariableDeclaration(Modifier modify, Scope scope, Vector queue) { if (nextSymbol == Keyword.FINALSY) { modify.add(nextSymbol.value); lookAhead(); } modify.check(modify.fields | modify.access); Type t = type(); variableDeclarators(modify, t, scope, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Ref<? extends Type>> typeVariables();", "public TypeVarElements getTypeVarAccess() {\r\n\t\treturn pTypeVar;\r\n\t}", "public final Declaration var_type() throws RecognitionException {\n Declaration decl = null;\n\n\n Declaration d = null;\n\n\n try {\n // parser/fla...
[ "0.6854329", "0.6484034", "0.6378472", "0.63247406", "0.6305271", "0.62879175", "0.6255005", "0.6207978", "0.60585976", "0.605845", "0.6008981", "0.59969664", "0.5996945", "0.59650904", "0.59559405", "0.5950304", "0.5917259", "0.58856744", "0.58816177", "0.5866395", "0.584836...
0.58827466
18
localVariableDeclaration | statementExpression moreStatementExpression
private void forInit(Modifier x, Scope scope, Vector queue) { if (isLocalVarDecl(true)) localVariableDeclaration(new Modifier(x), scope, queue); else { Operation ret = moreStatementExpression(statementExpression(scope, queue), scope, queue); while(ret != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void visit(LocalVariableDeclaration n) {\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n n.f3.accept(this);\n }", "public final EObject ruleLocalVariableDeclarationStatement() throws RecognitionException {\n EObject current = null;\n int ruleLocalVariab...
[ "0.6412602", "0.6179717", "0.6003966", "0.59375614", "0.588699", "0.58497304", "0.58376664", "0.58011067", "0.5758302", "0.57551175", "0.5754447", "0.55781686", "0.5514493", "0.5511671", "0.5508053", "0.55015236", "0.549228", "0.5474876", "0.5463197", "0.5440684", "0.5425552"...
0.0
-1
"catch" '(' formalParameter ')' block
private void catchClause(String label, Scope scope, Vector queue) { matchKeyword(Keyword.CATCHSY); matchKeyword(Keyword.LPARSY); Parameter parameter = formalParameter(); Operation root = new Operation(); root.code = "DUP \" " + parameter.type.ident.string.substring(parameter.type.ident....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CatchBlock catch_(ParameterExpression expression0, Expression expression1) { throw Extensions.todo(); }", "public static CatchBlock catch_(ParameterExpression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "public static CatchBlock catch_(Class clazz, ...
[ "0.78254026", "0.7520823", "0.6623258", "0.6388202", "0.6337667", "0.62771845", "0.61811453", "0.6134547", "0.6109649", "0.6108349", "0.59787786", "0.5977756", "0.5932014", "0.5931313", "0.58750486", "0.5793527", "0.57790893", "0.57766896", "0.5774026", "0.5756763", "0.575074...
0.6227714
6
( "default" | "case" type ) ':'
private boolean switchLabel(Scope scope, Vector queue) { boolean x; if (x = nextSymbol == Keyword.DEFAULTSY) { lookAhead(); } else { matchKeyword(Keyword.CASESY); Type t = new Type(); t.type = Keyword.INTSY; follower.add(Keyword.COLONSY); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void rule__TypeCaseClause__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11033:1: ( ( ':' ) )\r\n // InternalGo.g:11034:1: ( ':' )\r\n {\r\n // InternalGo...
[ "0.60315603", "0.5666418", "0.55431753", "0.54653233", "0.54369104", "0.5296547", "0.5296115", "0.5245778", "0.52315444", "0.52239233", "0.5222001", "0.5209033", "0.51777434", "0.5176324", "0.5148611", "0.51386464", "0.51378435", "0.5110892", "0.50620615", "0.5049201", "0.503...
0.4785547
45
expression1 [ assign expression ]
private Operation expression(Scope scope, Vector queue) { Operation root = expression1(scope, queue); if (assign.contains(nextSymbol)) { Operation op = new Operation(); op.left = root; op.operator = assignmentOperator(); op.right = expression(scope, queue); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private static AssignExpr retrieveAssignExpression(Exp...
[ "0.8057695", "0.76524186", "0.7237177", "0.7232695", "0.7214998", "0.7162806", "0.71588033", "0.70275915", "0.70017743", "0.69440114", "0.6915929", "0.69068205", "0.68872577", "0.6855224", "0.68438435", "0.6806313", "0.67563474", "0.67459285", "0.6649631", "0.66354823", "0.66...
0.61721015
53
expression2 [ conditionalExpr ]
private Operation expression1(Scope scope, Vector queue) { follower.add(Keyword.QUESTIONMARKSY); Operation op = expression2(scope, queue); follower.remove(follower.size() - 1); if (nextSymbol == Keyword.QUESTIONMARKSY) { Operation a = new Operation(); a.operator = nextSymbo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ConditionalExpression createConditionalExpression();", "public static ConditionalExpression condition(Expression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "String getIfFunction(String condition, String exprtrue, String exprfalse);", "public static Conditional...
[ "0.77976996", "0.73492837", "0.6872344", "0.66864616", "0.6670527", "0.66375184", "0.66106826", "0.65334576", "0.6344973", "0.6306212", "0.6295149", "0.629398", "0.6113412", "0.60834706", "0.59616464", "0.5939651", "0.5937162", "0.5912977", "0.5909564", "0.5891631", "0.587886...
0.5394963
71
'?' expression ':' expression1
private Operation conditionalExpr(Scope scope, Vector queue) { Operation root = new Operation(); matchKeyword(Keyword.QUESTIONMARKSY); follower.add(Keyword.COLONSY); root.left = expression(scope, queue); follower.remove(follower.size() - 1); matchKeyword(Keyword.COLONSY); root.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String bindNull() {\n String op;\n \n if (operator == null) {\n op = null;\n } else if (operator.equals(\"=\")) {\n op = \"IS\";\n } else if (operator.equals(\"!=\")) {\n op = \"IS NOT\";\n } else {...
[ "0.62908936", "0.59015656", "0.57753634", "0.56565255", "0.56375515", "0.5615637", "0.5604816", "0.5518981", "0.5435942", "0.5426964", "0.5414378", "0.54013515", "0.5304313", "0.52987695", "0.5296063", "0.5278303", "0.524338", "0.5243097", "0.5241887", "0.52236706", "0.521562...
0.5535028
7
expression3 [ expression2Rest ]
private Operation expression2(Scope scope, Vector queue) { Operation root = expression3(scope, queue); if (infix.contains(nextSymbol)) root = expression2Rest(root, scope, queue); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String[] getTwoExpr(String expr, String op) {\n\t\t\n\t\tString[] exprArr = new String[2]; \n\t\t\n\t\tint commaPos = SyntaxChecker.checkMatchedParansAndReturnNextDelim(expr, op.length() + 1, ',');\n\t\tString expr1 = expr.substring(op.length() + 1, commaPos);\n\t\texprArr[0] = expr1;\n\t\t\n\t\tint...
[ "0.574101", "0.5719535", "0.5641727", "0.56271416", "0.55587834", "0.5546606", "0.54591465", "0.5433889", "0.5413436", "0.53979915", "0.5388574", "0.53555775", "0.5354336", "0.5351162", "0.53447264", "0.53229666", "0.532202", "0.5295287", "0.52539134", "0.52471685", "0.524715...
0.6631491
0
arguments | '.' ident argumentsOpt
private void superSuffix(Operation base, Scope scope, Vector queue) { if (nextSymbol == Keyword.LPARSY) base.left.left = arguments(scope, null, queue); else { matchKeyword(Keyword.DOTSY); base = base.right = new Operation(); base.left = new Operation(); base.left....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Optional<String[]> arguments();", "void setArguments(String arguments);", "String getArguments();", "public Code visitArgumentsNode(ExpNode.ArgumentsNode node) {\n beginGen(\"Arguments\");\n Code code = new Code();\n for(ExpNode exp : node.getArgs()) {\n code.append(exp.genCod...
[ "0.6526618", "0.62188", "0.617067", "0.6165467", "0.6068398", "0.5925369", "0.59005386", "0.577267", "0.57644427", "0.57426924", "0.573043", "0.57293475", "0.57293475", "0.57142687", "0.57071096", "0.57071096", "0.56829256", "0.56778187", "0.5620054", "0.5617508", "0.559691",...
0.0
-1
basicType arrayCreatorRest | qualident ( arrayCreatorRest | classCreatorRest )
private Operation creator(Scope scope, Vector queue) { Operation root = null; Type t = new Type(); if ((t.type = basicType()) != Keyword.NONESY) { root = arrayCreatorRest(t, scope, queue); } else { Token x = nextToken; t.ident = new Token(nextToken); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void creator() throws RecognitionException {\n int creator_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"creator\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(857, 1);\n\n try {\n if ( ...
[ "0.66494364", "0.64283484", "0.5847988", "0.54470474", "0.529542", "0.5128437", "0.50747585", "0.50178605", "0.4921848", "0.491676", "0.48715144", "0.48598677", "0.48397464", "0.48310965", "0.48256198", "0.4824616", "0.4815745", "0.48038927", "0.48016745", "0.4762685", "0.476...
0.55396366
3
arguments [ classBody ]
private Operation classCreatorRest(Token t, Scope scope, Vector queue) { Vector v = new Vector(); String s = "super"; Operation root = new Operation(); root.type.type = Keyword.NONESY; root.type.ident = t; traceOn(v); root.left = arguments(scope, v, queue); traceOff(v); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void inAClassBody(AClassBody node) {\n // Determine the start and end line numbers.\n int begin = findBeginLine(node);\n int end = node.getRBrace().getLine();\n String cname = null;\n Node parentNode = node.parent();\n if (parentNode instanceof AClassDe...
[ "0.6212795", "0.6094653", "0.602533", "0.601708", "0.5859332", "0.5856543", "0.5824258", "0.5799439", "0.57859117", "0.5752963", "0.5740551", "0.57384706", "0.57365674", "0.57365674", "0.57009906", "0.5649859", "0.5627211", "0.56025904", "0.55918074", "0.5585633", "0.5581739"...
0.0
-1
'[' ']' BracketsOpt '.' "class" | ArgumentsOpt | '.' ("class" | "this")
private Operation identifierSuffix(Operation root, Operation next, Scope scope, Vector queue) { if (nextSymbol == Keyword.LBRACKETSY) { lookAhead(); lookAhead(); unresolved.add("JavaArray"); bracketsOpt(); matchKeyword(Keyword.DOTSY); matchKeyword(Keyword.C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Snippet visit(MethodCallInConstructor n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t String className = \"NEED TO PUT CLASS NAME\";\n\t n.nodeToken.accept(this, argu);\n\t String methodName = n.identifier.accept(this, argu).expType.getTypeName();\n\t this...
[ "0.5584652", "0.5063738", "0.5030421", "0.49930885", "0.4976345", "0.49393883", "0.48815188", "0.48562983", "0.48518264", "0.48267272", "0.48143008", "0.47946846", "0.478832", "0.47635964", "0.47463697", "0.47378266", "0.47152674", "0.47152674", "0.47139385", "0.47137874", "0...
0.44142374
79
'.' ( ident ArgumentsOpt | "super" Arguments | "new" InnerCreator ) | '[' Expression ']'
private Operation selector(Scope scope, Vector queue) { Operation root; root = new Operation(); if (nextSymbol == Keyword.DOTSY) { lookAhead(); root.operator = nextSymbol; if (nextSymbol == Keyword.IDENTSY) { root.name = nextToken; lookAhea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Expr newSuperCstrCall(String superClassName) {\n MethodSignature.Builder msb = MethodSignature.newBuilder();\n msb.setName(\"new\");\n msb.setOwner(toGlobalName(superClassName));\n msb.setReturnType(voidType());\n MethodCall.Builder mb = MethodCall.newBuilder();\n mb.setSignature(m...
[ "0.5825867", "0.5810994", "0.5793749", "0.5586077", "0.55407876", "0.54051656", "0.5376658", "0.5358889", "0.528302", "0.51446134", "0.51443315", "0.51125747", "0.5093253", "0.5073238", "0.5068527", "0.50632143", "0.5060805", "0.50061786", "0.49289072", "0.49260837", "0.49247...
0.5367224
7
Construcctor del Objeto Signo.
public Signo(String nombreSigno) { this.nombreSigno = nombreSigno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Signo() {\n\n }", "public SignBean() {\n }", "SPX(Object obj) {\n super();\n\n this.obj = obj;\n\n }", "public BoletoPaymentRequest() {\n\n }", "public CuentaDeposito() {\n super();\n }", "public EnvioPersonaPK() {\r\n }", "public SignaturEater(...
[ "0.76215166", "0.62421006", "0.57751954", "0.5760748", "0.5740004", "0.57356066", "0.5718838", "0.5676105", "0.5670853", "0.56630903", "0.56623036", "0.5651707", "0.56443065", "0.5635455", "0.5631608", "0.5621887", "0.5615272", "0.55905503", "0.55825984", "0.5556664", "0.5551...
0.66347754
1
Construcctor del Objeto Signo.
public Signo() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Signo(String nombreSigno) {\n this.nombreSigno = nombreSigno;\n }", "public SignBean() {\n }", "SPX(Object obj) {\n super();\n\n this.obj = obj;\n\n }", "public BoletoPaymentRequest() {\n\n }", "public CuentaDeposito() {\n super();\n }", "publ...
[ "0.66347754", "0.62421006", "0.57751954", "0.5760748", "0.5740004", "0.57356066", "0.5718838", "0.5676105", "0.5670853", "0.56630903", "0.56623036", "0.5651707", "0.56443065", "0.5635455", "0.5631608", "0.5621887", "0.5615272", "0.55905503", "0.55825984", "0.5556664", "0.5551...
0.76215166
0
Callback used when this service component is activating
@Activate protected synchronized void activate(final ComponentContext componentContext, final Map<String, Object> properties) { LOGGER.info("Activating MongoDB Component..."); super.setCloudService(this.m_cloudService); super.activate(componentContext); this.m_context = componentContext; this.doRegister...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onActivate() {\n }", "@Override\n public void activate() {\n \n }", "@Override\n public void activate() {\n\n }", "@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t}", "public void onActivation() { }",...
[ "0.70359695", "0.69655627", "0.67814636", "0.6762563", "0.6703154", "0.6655462", "0.6655462", "0.66006845", "0.6597546", "0.65952057", "0.65696985", "0.6555636", "0.65208477", "0.6519615", "0.65171266", "0.6514596", "0.6436742", "0.6425872", "0.63952243", "0.63898", "0.635497...
0.0
-1
Callback used when this service component is deactivating
@Override @Deactivate protected void deactivate(final ComponentContext context) { LOGGER.debug("Deactivating MongoDB Component..."); LOGGER.info("Releasing CloudApplicationClient for {}...", APP_ID); super.deactivate(context); LOGGER.debug("Deactivating MongoDB Component... Done."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDeactivate() {\n }", "public void onDeactivation() { }", "@Override\n\tpublic void onDeactivated() {\n\t\t\n\t}", "@Override\n\tpublic void onDeactivate() {\n\t}", "public void deActivated() \r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tunbindServic...
[ "0.76919997", "0.7530798", "0.75143176", "0.74980015", "0.7164491", "0.71528757", "0.71251726", "0.71150094", "0.71035653", "0.7002748", "0.69868314", "0.69779134", "0.69779134", "0.6974324", "0.6942236", "0.6942002", "0.6941421", "0.6935349", "0.6935349", "0.6933779", "0.692...
0.65193874
81
Used to be called when configurations will get updated
public void updated(final Map<String, Object> properties) { LOGGER.info("Updating MongoDB Component..."); this.m_properties = properties; properties.keySet().forEach(s -> LOGGER.info("Update - " + s + ": " + properties.get(s))); this.doRegister(this.m_context, properties); LOGGER.info("Updating MongoDB Comp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void configurationUpdated();", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "public void notifyConfigChange() {\n }", "void onConfigChanged(ConfigUpdate update);", "public abstract void updatePendingConfiguration(Configuration config);", "private void config() {\n\t}", "private void fi...
[ "0.8578289", "0.80986", "0.77703315", "0.7487825", "0.7440951", "0.72692937", "0.72169024", "0.71941584", "0.71539813", "0.71333915", "0.70943147", "0.7086141", "0.7034697", "0.69955367", "0.69955367", "0.69955367", "0.69955367", "0.69955367", "0.69955367", "0.698126", "0.696...
0.0
-1
Initialize the editor by specifying the attribute to edit and the editor type to use.
public void init(final EAttribute eAttribute, final String javaClassTypeName) { this.eAttribute = eAttribute; this.propsEditor = EAttrPropsEditorPlugin.getStructuralFeatureEditor(eAttribute, javaClassTypeName, this, getStyle()); if (this.currentComponent != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "protected void initializeEditors() {\n\t}", "public void setEditor(Editor editor)\n {\n this.editor = editor;\n }", "public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}", "public StringEditor() {...
[ "0.6051455", "0.5918607", "0.58683497", "0.57546645", "0.5721572", "0.5697665", "0.56835777", "0.5668366", "0.55596834", "0.5548008", "0.5548008", "0.5474536", "0.54548836", "0.5454007", "0.5441319", "0.54326487", "0.5429812", "0.54006827", "0.539092", "0.53588724", "0.535628...
0.6126361
0
Default constructor that will generate a default loan.
public Loan() { this(2.5, 1, 1000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Loan(){\n\t\tthis(\"\", 0, 0, 0, 0);\n\t\tstart_date = null;\n\t}", "public Loan(int s) {\r\n\t\tstockId = s;\r\n\t\tloanId = nextLoanId;\r\n\t\tnextLoanId++;\r\n\t\tloanFine = new Fine();\t\t\r\n\t\tloanDate = LocalDate.now();\r\n\t}", "public Lanceur() {\n\t}", "public Loan(int loanId, book book, me...
[ "0.8042531", "0.7103456", "0.70114994", "0.6977064", "0.6858182", "0.6770535", "0.66889286", "0.6589517", "0.64766026", "0.6460452", "0.6453653", "0.6425949", "0.641147", "0.64051586", "0.63499165", "0.63404876", "0.6311535", "0.6256017", "0.6251142", "0.6232726", "0.62145257...
0.8163442
0
Construct a loan with specified annual interest rate, number of years, and loan amount.
public Loan(double annualInterestRate, int numberOfYears, double loanAmount) { this.annualInterestRate = annualInterestRate; this.numberOfYears = numberOfYears; this.loanAmount = loanAmount; loanDate = new java.util.Date(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Loan(double annualInterestRate, int numberOfYears, double loanAmount)\n {\n setAnnualInterestRate(annualInterestRate);\n setNumberOfYears(numberOfYears);\n setLoanAmount(loanAmount);\n loanDate = new Date();\n }", "public Loan(String cId, double pA, double iR, int nY, int...
[ "0.83322054", "0.68652654", "0.67955536", "0.6713729", "0.66644216", "0.64895993", "0.6460563", "0.614797", "0.6016528", "0.58425885", "0.5812335", "0.5800136", "0.579399", "0.5749996", "0.559929", "0.55849487", "0.5573042", "0.55505896", "0.5542063", "0.5538756", "0.5480698"...
0.8419995
0
Provides the annual interest rate.
public double getAnnualInterestRate() { return annualInterestRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAnnualInterestRate() {\n\t\treturn annualInterestRate;\n\t}", "public double getInterestRate(){\n return annualInterestRate;\n }", "public static double getInterestRate(){\n\t\t return interest_rate;\r\n\t }", "public double getMonthlyInterestRate() {\n return (annualInteres...
[ "0.827151", "0.8058885", "0.7826095", "0.7743423", "0.7721606", "0.7680758", "0.7631817", "0.7590641", "0.7493326", "0.7460857", "0.7443071", "0.73960066", "0.73174304", "0.72795504", "0.7242775", "0.7225746", "0.7205338", "0.70692825", "0.69836116", "0.69655776", "0.6886179"...
0.84106857
1
Sets the annual interest rate.
public void setAnnualInterestRate(double annualInterestRate) { this.annualInterestRate = annualInterestRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void modifyInterestRate(double interestRate){\n annualInterestRate = interestRate;\n }", "public void setInterest(double rate)\n {\n interestRate = rate;\n }", "public void setAnnualInterestRate(double annualInterestRate) {\n\t\tthis.annualInterestRate = annualInterestRate;...
[ "0.7652004", "0.7614111", "0.7332631", "0.7179029", "0.70576936", "0.6760844", "0.6619691", "0.63155144", "0.628289", "0.628289", "0.6276923", "0.6217384", "0.61651635", "0.60440266", "0.59668154", "0.5896842", "0.58729935", "0.5846255", "0.57928956", "0.5772212", "0.5747549"...
0.75483996
3
Provides the number of years a loan is active for.
public int getNumberOfYears() { return numberOfYears; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getYears();", "public int getYearsUntilTenure(){\n return m_yearsUntilTenure;\n }", "private int calculateAge() {\n\t\treturn LocalDate.now().getYear() - this.birthYear;\n\t}", "public int getYears() {\n return this.years;\n }", "public int getYears() {\r\n\t\treturn years;\r\n\t}", "pu...
[ "0.71602774", "0.70549023", "0.7027702", "0.7015681", "0.6903264", "0.6845713", "0.6702648", "0.6653057", "0.6636656", "0.6621055", "0.662064", "0.66160345", "0.65606123", "0.6560458", "0.64637136", "0.64496326", "0.644379", "0.6441581", "0.6404241", "0.6396017", "0.6380072",...
0.74527234
0
Sets the number of years a loan is active for.
public void setNumberOfYears(int numberOfYears) { this.numberOfYears = numberOfYears; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setYears(int years) {\n this.years = years;\n }", "public void setYear(int value) {\n\tthis.year = value;\n }", "public void setYear(int _year) { year = _year; }", "public void setYear(int value) {\r\n this.year = value;\r\n }", "public void setYear (int yr) {\n ...
[ "0.7002271", "0.66871", "0.6657304", "0.66516453", "0.66091126", "0.65313977", "0.65059614", "0.6505056", "0.64795744", "0.6416219", "0.63810617", "0.6305222", "0.6293492", "0.6287165", "0.6285803", "0.6258377", "0.6258377", "0.6228325", "0.62260705", "0.6208222", "0.62081724...
0.70768213
0
Provides size of loan.
public double getLoanAmount() { return loanAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final long getSize() { return size; }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\r\n return size;\r\n }", "public long getSize() {\n return size;\n }", "public long getSi...
[ "0.7315282", "0.7248679", "0.7218554", "0.71969384", "0.71827996", "0.71827996", "0.71827996", "0.71827996", "0.71806216", "0.7150316", "0.71306187", "0.70788294", "0.70519936", "0.70395875", "0.7029868", "0.7029868", "0.7024958", "0.7010591", "0.69981295", "0.69937277", "0.6...
0.0
-1
Sets the size of loan.
public void setLoanAmount(double loanAmount) { this.loanAmount = loanAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(long value) {\n this.size = value;\n }", "public void setSize(int size) {\r\n _size = size;\r\n }", "public void setSize(int ...
[ "0.7289109", "0.7223777", "0.7137515", "0.7036867", "0.70244354", "0.69549847", "0.69265205", "0.69090414", "0.6883894", "0.6883894", "0.68453664", "0.6806442", "0.6806442", "0.6806442", "0.6806442", "0.6728248", "0.66165984", "0.66056836", "0.65963274", "0.65949184", "0.6579...
0.0
-1
Provides the required monthly payment amount.
public double getMonthlyPayment() { double monthlyInterestRate = annualInterestRate / 1200; double monthlyPayment = loanAmount * monthlyInterestRate / (1 - (1 / Math.pow(1 + monthlyInterestRate, numberOfYears * 12))); return monthlyPayment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LoanMonthlyPayment calculateMonthlyPayment() {\n double monthlyInterest = loanRequest.getApr() / MONTHLY_INTEREST_DIVISOR;\n double tmp = Math.pow(1d + monthlyInterest, -1);\n tmp = Math.pow(tmp, loanRequest.getTermInMonths());\n tmp = Math.pow(1d - tmp, -1);\n return new ...
[ "0.7260527", "0.72044027", "0.718239", "0.7122574", "0.69955546", "0.6949449", "0.6706348", "0.6580219", "0.6577091", "0.6561213", "0.6501366", "0.6499962", "0.6475233", "0.6465791", "0.6456828", "0.6443561", "0.64252883", "0.6418953", "0.64074343", "0.63946676", "0.6382841",...
0.79301673
0
Provides the total number of payments required.
public double getTotalPayment() { double totalPayment = getMonthlyPayment() * numberOfYears * 12; return totalPayment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int minimumNumberOfPayments() {\n return 0;\n }", "public double getTotalPayments(){return this.total;}", "public double getTotalAmountPaid(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn ...
[ "0.7211168", "0.6893038", "0.680522", "0.6715126", "0.6615078", "0.65967166", "0.6554185", "0.6462327", "0.64481187", "0.64388967", "0.6391857", "0.63698834", "0.63521385", "0.63335925", "0.6323459", "0.6323459", "0.6315897", "0.63061726", "0.63061726", "0.62925786", "0.62897...
0.69496214
1
Provides the date of loan.
public java.util.Date getLoanDate() { return loanDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalDate getDate() {\r\n\t\treturn loanDate;\r\n\t}", "public String Get_date() \n {\n \n return date;\n }", "public String getLeavingDate();", "public Date getDate_of_admission() {\r\n return date_of_admission;\r\n }", "java.lang.String getDate();", "public long getDate()...
[ "0.80278045", "0.7148208", "0.69566554", "0.6690323", "0.666629", "0.661017", "0.66068244", "0.6591761", "0.6571702", "0.65464973", "0.65464973", "0.6542482", "0.6539978", "0.6535568", "0.6522169", "0.65185493", "0.65082425", "0.64739645", "0.64739645", "0.64739645", "0.64739...
0.8096227
0
Created by chan on 2/10/18.
public interface DetailContract { interface DetailView{ void openBrowserIntent(String url); void openShareIntent(); } interface DetailMvpPresenter{ void onMenuBrowserOpenClick(String url); void onMenuShareClick(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "publi...
[ "0.589098", "0.58720195", "0.5835741", "0.57920796", "0.57533365", "0.5734152", "0.5733649", "0.5700252", "0.5674923", "0.5674923", "0.5674923", "0.5674923", "0.5674923", "0.5674454", "0.5633371", "0.5632893", "0.5627495", "0.5627495", "0.5624418", "0.56141835", "0.5607625", ...
0.0
-1
Set a new course for this student.
public void changecourse(String replacementcourse, String id1) { course = replacementcourse; courseid = id1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCourse(String course);", "public void assignCourse(Course course) {\n assignedCourse = course;\n }", "public void setcourse(String course) {\n\t\tthis.course = course;\n\t}", "public void assignCourse(Course course) {\r\n this.course.add(course);\r\n }", "public void setEventCo...
[ "0.7170034", "0.70155954", "0.67550135", "0.66669047", "0.6576238", "0.6555568", "0.65456015", "0.6453327", "0.6306509", "0.63023466", "0.62776065", "0.6205937", "0.61827826", "0.61738306", "0.6157881", "0.6106482", "0.6082726", "0.60044", "0.5885722", "0.58840066", "0.581138...
0.6094863
16
String pattern = ",.";
public static String formatNumber(double number) { String pattern = "###,###"; DecimalFormat myFormatter = new DecimalFormat(pattern); String output = myFormatter.format(number); return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidPattern(String pattern) {\n return !pattern.startsWith(\"-\") && !pattern.contains(\",\");\n }", "private void replaceCommaToDot(String contentString)\n {\n char[] charArray = contentString.toCharArray();\n \n for(int i = 0; i < charArray.length; i++)\n ...
[ "0.60660654", "0.5590494", "0.5509168", "0.5488579", "0.5449958", "0.53112024", "0.527919", "0.5214272", "0.51839405", "0.51621026", "0.5157084", "0.5153784", "0.51366234", "0.51056427", "0.50686616", "0.50637674", "0.5051741", "0.5043206", "0.5026043", "0.50193626", "0.49853...
0.0
-1
mashing it all into one function of methods
public static long doubleToLong(double d) { return new Long(String.format("%.0f", d)).longValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMethods(Class<?> token) {\n List<Method> newMethods = new ArrayList<>();\n for (Method method : token.getDeclaredMethods()) {\n if (methods.add(new MethodWithHash(method)) && !method.isDefault()) {\n newMethods.add(method);\n }\n }\n ...
[ "0.5966792", "0.5933956", "0.5698374", "0.56169844", "0.55956304", "0.5549709", "0.5485362", "0.54074925", "0.538804", "0.5362182", "0.5361501", "0.5361501", "0.53313553", "0.53275615", "0.5310093", "0.5306132", "0.53046024", "0.5282257", "0.5278007", "0.52459455", "0.5234636...
0.0
-1
mashing it all into one function of methods
public static double longToDouble(long l) { return (double) l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMethods(Class<?> token) {\n List<Method> newMethods = new ArrayList<>();\n for (Method method : token.getDeclaredMethods()) {\n if (methods.add(new MethodWithHash(method)) && !method.isDefault()) {\n newMethods.add(method);\n }\n }\n ...
[ "0.5966792", "0.5933956", "0.5698374", "0.56169844", "0.55956304", "0.5549709", "0.5485362", "0.54074925", "0.538804", "0.5362182", "0.5361501", "0.5361501", "0.53313553", "0.53275615", "0.5310093", "0.5306132", "0.53046024", "0.5282257", "0.5278007", "0.52459455", "0.5234636...
0.0
-1
We use DSL here to try invoke the step implementation, if there is Step implementation found it's handled or it's an error. sandbox security execution relies on the assumption that CpsScript.invokeMethod() is safe for sandboxed code. That means we cannot let userwritten script override this method, hence the final.
@Override public final Object invokeMethod(String name, Object args) { DSL dsl = (DSL) getBinding().getVariable(STEPS_VAR); return dsl.invokeMethod(name,args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void doExecute(StepExecution stepExecution) throws Exception {\n\t\t\r\n\t}", "protected abstract R runStep();", "public interface IAutomationStep {\n\n void executeStep();\n}", "private Object invokeStep(MethodInvocation invocation) throws Throwable {\n\t\tprinter().onStepBegins(...
[ "0.6157857", "0.61558944", "0.5930179", "0.5908954", "0.58547926", "0.58203876", "0.5559398", "0.55302256", "0.5482509", "0.5472053", "0.5468591", "0.53335416", "0.5262466", "0.52398247", "0.52250826", "0.5222291", "0.522215", "0.52130604", "0.5203503", "0.518782", "0.5181737...
0.5166901
21
this might throw the magic CpsCallableInvocation to execute the script asynchronously
@Override public Object evaluate(String script) throws CompilationFailedException { return getShell().evaluate(script); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "private static Object executeAsyncJavascript(WebDriver driver, String script) {\n System.out.println(\"Executing Async javascript: \" + script);\n return ((JavascriptExecutor) driver).executeAsyncScript(script);\n }"...
[ "0.757757", "0.65191174", "0.6447996", "0.6241113", "0.61415005", "0.6032064", "0.5891763", "0.5882295", "0.58384997", "0.58029366", "0.57619566", "0.5755553", "0.5746768", "0.5740441", "0.57321906", "0.57050854", "0.5703898", "0.57031", "0.56879973", "0.56841975", "0.5684197...
0.0
-1
Obtains the Groovy compiler to be used for compiling user script in the CPStransformed and sandboxed manner.
private GroovyShell getShell() { return CpsThreadGroup.current().getExecution().getShell(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCompiler();", "public Compiler getCompiler() {\n\t\treturn this.compiler;\n\t}", "public String getCompilerSourceVM();", "public String getCompilerClassName();", "public PyCode compile(String script) {\n return null;\n }", "public T execute() {\n return GraalCompiler...
[ "0.7087824", "0.6494653", "0.60767746", "0.5958724", "0.5936324", "0.5928866", "0.5802162", "0.57071745", "0.56498486", "0.5627082", "0.5612963", "0.55880183", "0.555377", "0.5541758", "0.5421811", "0.54092026", "0.52320236", "0.5230801", "0.5148512", "0.51443297", "0.5133404...
0.46303353
60
/ Test hook, disable the LocalCBVLSN updates.
public void setAllowUpdate(boolean allowUpdate) { this.allowUpdate = allowUpdate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void setDontSendLocalSecurityUpdates(boolean arg0)\r\n\t\t\tthrows NotesApiException {\n\r\n\t}", "public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetCl...
[ "0.6171968", "0.60608035", "0.58863413", "0.5865614", "0.5767688", "0.5760496", "0.573063", "0.5718143", "0.571538", "0.571538", "0.5711072", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", "0.570262", ...
0.0
-1
If GlobalCBVLSN is defunct, does nothing. If GlobalCBVLSN is defunct, tracks barrier VLSNs, updating the local CBVLSN if the associated log file has changed. When tracking is done on a replica, the currentLocalCBVLSN value is ultimately sent via heartbeat response to the master, which updates the RepGroupDb. When track...
public void track(VLSN newVLSN, long lsn) { if (defunct || !allowUpdate) { return; } synchronized (this) { if (newVLSN.compareTo(lastSyncableVLSN) > 0) { VLSN old = lastSyncableVLSN; lastSyncableVLSN = newVLSN; if (DbLsn.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "synchronized void updateCheckpointOnReplica(final long checkpoint) {\n /*\n * The global checkpoint here is a local knowledge which is updated under the man...
[ "0.50709635", "0.49265188", "0.48355", "0.48273814", "0.46700633", "0.46698782", "0.46591732", "0.46091968", "0.4603446", "0.4599396", "0.45433962", "0.4500395", "0.4497717", "0.4463186", "0.44577447", "0.44379023", "0.44276705", "0.44233802", "0.44171703", "0.440049", "0.438...
0.6968448
0
If the GlobalVLSN is not defunct, initialize the local CBVLSN with the syncup matchpoint, so that the heartbeat responses sent before the node has replayed any log entries are still valid for saving a place in the replication stream. If the GlobalVLSN is defunct, do nothing.
public void registerMatchpoint(VLSN matchpoint) { if (defunct) { return; } this.currentLocalCBVLSN = matchpoint; this.lastSyncableVLSN = matchpoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ServerServices duplexstreamGlobalVarsInit() throws Exception {\n\t\treturn null;\n\t}", "public static void initialize()\n {\n localPeerIDCount = 0;\n\n }", "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\t...
[ "0.54224545", "0.53833354", "0.5316355", "0.52565396", "0.5251307", "0.52152073", "0.5175884", "0.50674057", "0.5061739", "0.50227034", "0.50213045", "0.50066525", "0.49351722", "0.49214247", "0.49078634", "0.4905479", "0.49002984", "0.4878639", "0.48574308", "0.48041338", "0...
0.5564671
0
Author: DaoTQ1 Description: This function testing Paging ShowDate Movie Result: The test is pass. This function return ResponseEntity with status 200 and Date Movies List, totalPages,totalElement and current Page
@Test public void testFindAll_multiRecord() throws Exception { // Setup // Configure MovieService.findAll(...). final List<MovieDTO> movieDTOS = Arrays.asList( new MovieDTO(0, "Kiendo", "justice league", "zack snyder", 0.0f, LocalDate.of(2020, 1, 1), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void getAllMoviesByTitle_Test() throws Exception {\n\n //Set up\n List<Movie> movies = new ArrayList<>();\n Movie movie = new Movie();\n movie.getTitle();\n movies.add(movie);\n\n //Exercise\n when(movieService.getAllMoviesByTitle(movie.getTitle())).thenReturn(...
[ "0.6423744", "0.63635504", "0.6256357", "0.62498415", "0.62265176", "0.621253", "0.6076213", "0.6027989", "0.60205376", "0.5981488", "0.59711915", "0.5939453", "0.5894045", "0.5887469", "0.587942", "0.585426", "0.58125997", "0.5763112", "0.5748663", "0.5716427", "0.57120854",...
0.54566073
47
TODO Autogenerated method stub
@Override public int af() { System.out.println("ddddd"); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int af() { System.out.println("dsdfdghbd"); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
private void info3(int i) { }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Invoked when an action occurs.
@Override public void actionPerformed(ActionEvent e) { if (e.getActionCommand() == "button1"){ JOptionPane.showMessageDialog(null,"Button1 hit"); }else { JOptionPane.showMessageDialog(null,"Button2 hit"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract void onAction();", "public void action() {\n action.action();\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }",...
[ "0.7907701", "0.7775921", "0.7644247", "0.76119846", "0.76119846", "0.76119846", "0.751699", "0.74891174", "0.74193674", "0.7412826", "0.7402896", "0.738321", "0.7359403", "0.7359403", "0.73438245", "0.73412704", "0.73412704", "0.73412704", "0.73412704", "0.73412704", "0.7341...
0.0
-1
Created by balaji on 1/1/18.
public interface Calculator { long add(int number1, int number2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bic...
[ "0.5928732", "0.58210576", "0.5817531", "0.5801082", "0.57672226", "0.57672226", "0.5766683", "0.5732634", "0.5708449", "0.5680293", "0.5671327", "0.56616294", "0.56525534", "0.5635601", "0.5601708", "0.55991346", "0.55955267", "0.5586667", "0.55818415", "0.5581494", "0.55716...
0.0
-1
Use MuleClient to test Remote Server by RemoteDispatcher tcp://ip:port on vm://vmQueueObjectArray
public final void testCall() throws Exception { Logger.getLogger(this.getClass()).info("waiting for Remote message..."); Logger.getLogger(this.getClass()).info("press enter to shutdown server"); //TODO raffaele.picardi: report this class out of this test and remain onl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void testIBMMQSendData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUE...
[ "0.5561779", "0.5441916", "0.5382026", "0.5346336", "0.53033227", "0.51517385", "0.509908", "0.5078192", "0.5058452", "0.5036253", "0.49921036", "0.49840853", "0.497542", "0.49642807", "0.49260762", "0.48742917", "0.48723045", "0.4872036", "0.48556796", "0.484779", "0.4835328...
0.71026
0
Test to make sure the "direct" raster path and the "nondirect" raster path produce matching results. This test was originally created after fixes to GEOS7270 where there were issues with images generated during the direct raster path but not in the normal path, stemming from not setting the background color the same wa...
@Test public void testDirectVsNonDirectRasterRender() throws Exception { Catalog catalog = getCatalog(); CoverageInfo ci = catalog.getCoverageByName(MULTIBAND.getPrefix(), MULTIBAND.getLocalPart()); final Envelope env = ci.boundingBox(); RenderedImageMapOutputFormatTest.LOGGER.info((...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void assertRasterEquals(final GridCoverage expected, final GridCoverage actual) {\n assertNotNull(\"Expected coverage\", expected);\n assertNotNull(\"Actual coverage\", actual);\n Assert.assertRasterEquals(expected.render(null),\n actual.render(null));...
[ "0.56471324", "0.555498", "0.54241383", "0.5369739", "0.5354094", "0.5311355", "0.5302043", "0.51695925", "0.5134436", "0.51311237", "0.51260793", "0.51177794", "0.5109101", "0.5098306", "0.50854325", "0.50820696", "0.50605255", "0.5050033", "0.5044693", "0.5036499", "0.50338...
0.692601
0
Test to check if we can successfully create a direct rendered image by using a coverage view as a source, and a symbolizer defining which three bands of the input coverage view can be used for RGB coloring, and with what order.
@Test public void testStyleUsingChannelsFromCoverageView() throws Exception { GetMapRequest request = new GetMapRequest(); CoordinateReferenceSystem crs = DefaultGeographicCRS.WGS84; ReferencedEnvelope bbox = new ReferencedEnvelope(new Envelope((-116.90673461649858), (-114.30988665660261), 3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTwoIndexedSameNoData() {\n IndexColorModel icm = buildIndexColorModel(Color.BLUE, Color.RED);\n BufferedImage splitVertical = new BufferedImage(100, 100, BufferedImage.TYPE_BYTE_INDEXED,\n icm);\n Graphics2D gr = splitVertical.createGraphics();\n ...
[ "0.5562243", "0.5547472", "0.551372", "0.54642", "0.5460175", "0.5442115", "0.5434388", "0.5411617", "0.5402052", "0.5377077", "0.5373975", "0.53683376", "0.52822053", "0.52795583", "0.52642673", "0.5242987", "0.521453", "0.52132744", "0.5174643", "0.5167812", "0.5143336", ...
0.6738903
0
Test to make sure the rendering does not skip on unmatched original envelope and tries anyways to render an output
@Test public void testMosaicExpansion() throws Exception { File red1 = URLs.urlToFile(this.getClass().getResource("red_footprint_test/red1.tif")); File source = red1.getParentFile(); File testDataDir = getResourceLoader().getBaseDirectory(); File directory1 = new File(testDataDir, "r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = java.io.IOException.class)\n\tpublic void testRenderMergedOutputModel_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request ...
[ "0.572113", "0.56976545", "0.56803936", "0.56707436", "0.55988324", "0.5449863", "0.5433896", "0.53644454", "0.5352272", "0.53061235", "0.52097064", "0.5192597", "0.5132681", "0.5126943", "0.5119177", "0.5094052", "0.5069992", "0.5063462", "0.5063462", "0.5063462", "0.5063462...
0.0
-1
Set is a list of unique items... no duplication. I can have a product with an id but I can't have the same product with another id, I can change the quantity of the product, or some of its attributes
public long getCustomerId() { return customerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n return Objects.hash(product, quantity);\n }", "private Set<Product> getProductSet(Product product) {\n\t\treturn get(product.getType(), product.getState(), product.getItemId());\n\t}", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>(...
[ "0.6531059", "0.62906134", "0.61590517", "0.6105416", "0.6045634", "0.60320777", "0.5944286", "0.5903926", "0.59013516", "0.5886527", "0.5881008", "0.5841194", "0.57838494", "0.57817155", "0.5759256", "0.57381845", "0.5732497", "0.57072246", "0.56951624", "0.56630945", "0.565...
0.0
-1
/ renamed from: tm reason: default package / compiled from: GoRoutePageListener
public interface tm<T, V> { void a(V v); void a(boolean z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RouterListener {\n /**\n * Notification method to be invoked from CLI if a router changes\n * his states (becomes available/unavailable).\n *\n * @param routerName router name\n * @param available true/false\n */\n public void onRouterEvent(String routerName, boolean...
[ "0.57247174", "0.54991394", "0.5497859", "0.5497859", "0.5440424", "0.5362493", "0.53451025", "0.5277411", "0.5256582", "0.5255934", "0.5228819", "0.51849365", "0.51835316", "0.51561385", "0.51403165", "0.5119282", "0.50910187", "0.5073891", "0.5066348", "0.5064031", "0.50618...
0.0
-1
/ public javaart.create_class_instance_by_5_methods.Book(); Code: 0: aload_0 1: invokespecial 1 // Method java/lang/Object."":()V 4: return
public Book(String name, int pages, int date, String type) { this.name = name; this.pages = pages; this.date = date; this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] arguments){\n Book AtlasShrugged = new Book(\"Atlas Shrugged\");\n// Book HungerGames = new Book(\"Hunger Games\");\n// CatinHat.WhatBook();\n AtlasShrugged.WhatBook();\n AtlasShrugged.CheckAvailable();\n// CatinHat.CheckAvailable();\n// HungerGames.CheckAvaila...
[ "0.6247805", "0.620454", "0.58636916", "0.584826", "0.578653", "0.57515764", "0.5712413", "0.56226736", "0.56154644", "0.5605853", "0.56054133", "0.55918604", "0.5571666", "0.5558799", "0.555388", "0.555388", "0.55409706", "0.55239636", "0.5510034", "0.54874283", "0.54851186"...
0.0
-1
/ public javaart.create_class_instance_by_5_methods.Book(java.lang.String, int, int, java.lang.String); Code: 0: aload_0 1: invokespecial 1 // Method java/lang/Object."":()V 4: aload_0 5: aload_1 6: putfield 2 // Field name:Ljava/lang/String; 9: aload_0 10: iload_2 11: putfield 3 // Field pages:I 14: aload_0 15: iload_...
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "Book createBook();", "public Book() {\n this.bookName = \"Five Point Someone\";\n this.bookAuthorName = \"Chetan Bhagat\";\n this.bookIsbnNumber = \"9788129104595\"...
[ "0.5974858", "0.5948454", "0.5841124", "0.579659", "0.5746668", "0.57299656", "0.5559946", "0.5557512", "0.55316275", "0.551686", "0.54956055", "0.54548967", "0.5421942", "0.5417119", "0.5380808", "0.5344206", "0.53383315", "0.53360856", "0.5316877", "0.5310093", "0.53081304"...
0.0
-1
/ public java.lang.String getSignalName(); Code: 0: aload_0 1: getfield 2 // Field name:Ljava/lang/String; 4: areturn
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSignal();", "public String getSignalName(int index);", "public java.lang.String getSignal() {\n java.lang.Object ref = signal_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n ...
[ "0.724697", "0.71326935", "0.6898097", "0.6854777", "0.6652825", "0.65187097", "0.65113944", "0.6460522", "0.64352506", "0.62606317", "0.6256554", "0.6217995", "0.61880726", "0.6180401", "0.61642873", "0.6131155", "0.6130617", "0.611745", "0.6116642", "0.6097398", "0.6095963"...
0.0
-1
/ public void setSignalName(java.lang.String); Code: 0: aload_0 1: aload_1 2: putfield 2 // Field name:Ljava/lang/String; 5: return
public int getPages() { return pages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setSignal(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n signal_ = value;\n onChanged();\n return this;\n }", "public void setName(String name)\n/* */ {\n/* 84 */ th...
[ "0.6774108", "0.6447041", "0.64104307", "0.63821834", "0.637256", "0.6250107", "0.62300503", "0.6192945", "0.6178019", "0.6158047", "0.61237305", "0.61237305", "0.61237305", "0.61138695", "0.61075383", "0.6084698", "0.60731345", "0.60718", "0.60645026", "0.6045492", "0.604403...
0.0
-1
/ public int getPages(); Code: 0: aload_0 1: getfield 3 // Field pages:I 4: ireturn
public void setPages(int pages) { this.pages = pages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPages()\n {\n return pages;\n }", "public int getPages() {\n return pages;\n }", "public int getPages(){\n return pages;\n }", "Pages getPages();", "int getPagesAmount();", "public int getPages() {\n return pages;\n }", "public int getPages() {\n ...
[ "0.7723648", "0.76646066", "0.7660696", "0.76224303", "0.7499715", "0.7496874", "0.7496874", "0.7305816", "0.7287281", "0.7230891", "0.68642634", "0.6842185", "0.682082", "0.67524797", "0.6727606", "0.65794617", "0.654052", "0.654052", "0.654052", "0.654052", "0.6509123", "...
0.6042988
48
/ public void setPages(int); Code: 0: aload_0 1: iload_1 2: putfield 3 // Field pages:I 5: return
public int getDate() { return date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPages(int pages) {\n this.pages = pages;\n }", "public void setPages(int pages) {\n this.pages = pages;\n }", "public void setPage(int value) {\n this.page = value;\n }", "public Set getPages () {\n return pages;\n }", "public void setPage(Page page)...
[ "0.77441", "0.7642619", "0.6956056", "0.6827284", "0.6748042", "0.67463595", "0.6685768", "0.6580491", "0.6578234", "0.64792717", "0.6396742", "0.6314143", "0.6314143", "0.6301009", "0.62095314", "0.6176032", "0.6176032", "0.61533946", "0.6062585", "0.6045681", "0.5996458", ...
0.0
-1
Gets the list of average fitness scores for each generation. The index of each entry corresponds to the generation number minus one.
public ArrayList<Double> getAverageFitnesses() { return avgFitnesses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAvgPopulationFitness() {\n\t\tdouble sum=0;\n\t\tfor (int i = 0; i < individuals.length; i++) {\n\t\t\tsum+=individuals[i].getFitness();\n\t\t}\n\t\treturn sum/(double)individuals.length;\n\t}", "public double getGradeAverage() {\n int gradesTotal = 0;\n for (int grade : grades) {\...
[ "0.65770787", "0.6502318", "0.6312537", "0.62453073", "0.6213012", "0.6203028", "0.61342007", "0.6119096", "0.6113729", "0.6092723", "0.6010432", "0.5892354", "0.58863103", "0.58806336", "0.5876923", "0.585288", "0.5843406", "0.58305204", "0.5747856", "0.5732025", "0.57287425...
0.55541503
36
Gets the list of highest fitness scores found for each generation. The index of each entry corresponds to the generation number minus one.
public ArrayList<Double> getHighestFitnesses() { return highFitnesses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getHighestFitness() {\r\n\t\treturn highestScore;\r\n\t}", "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best woul...
[ "0.6641527", "0.66082925", "0.65484333", "0.6459164", "0.6425596", "0.6356277", "0.62394387", "0.60545844", "0.60004616", "0.59384745", "0.593594", "0.59330046", "0.59100413", "0.5883253", "0.58789784", "0.58717155", "0.5853535", "0.58200884", "0.5819476", "0.5809736", "0.574...
0.5852693
17
Gets the probability of crossover.
public static double getCrossoverProbability() { return crossoverProbability; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getProbCross () {\r\n return cross_prob;\r\n }", "public static void setCrossoverProbability(double value) { crossoverProbability = value; }", "public int getCrossoverPoints() {\n\t\treturn 1;\r\n\t}", "public int nPercentileCrossover(){\n if(!this.monteCarloDone)this.monteCarlo...
[ "0.7559638", "0.72415245", "0.6996236", "0.6798722", "0.6459056", "0.6237282", "0.61431944", "0.59189993", "0.5798485", "0.5791319", "0.56945807", "0.56478596", "0.56339604", "0.55289036", "0.55258083", "0.54963726", "0.5478085", "0.54295754", "0.5429299", "0.54200816", "0.54...
0.87063354
0
Sets the crossover probability.
public static void setCrossoverProbability(double value) { crossoverProbability = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProbCross (float value) {\r\n cross_prob = value;\r\n }", "public static double getCrossoverProbability() { return crossoverProbability; }", "public void origCrossover() {\n\n ArrayList<Integer> crossPoints;\n\n // Perform crossover with probability Defines.PROB_CROSSOVER...
[ "0.75608313", "0.68994445", "0.6577615", "0.6538651", "0.6507472", "0.60021603", "0.5968832", "0.5930447", "0.59264904", "0.59002817", "0.5892742", "0.5839167", "0.5821907", "0.567351", "0.5620685", "0.5582957", "0.5480596", "0.53762776", "0.52503663", "0.52398133", "0.523398...
0.88332653
0
Gets the probability of mutation.
public static double getMutationProbability() { return mutationProbability; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getProbMut () {\r\n return mut_prob;\r\n }", "public double getProbability() {\n return probability;\n }", "public double getProbability() {\r\n\t\treturn Probability;\r\n\t}", "public static void setMutationProbability(double value) { mutationProbability = value; }", "publ...
[ "0.76699305", "0.7411026", "0.7081902", "0.69713616", "0.68518466", "0.67429256", "0.6634567", "0.6627757", "0.6548154", "0.6487983", "0.64162487", "0.63524365", "0.6213081", "0.61739993", "0.61709726", "0.615252", "0.6120002", "0.6112103", "0.60881066", "0.6078831", "0.60582...
0.8259988
0
Sets the mutation probability.
public static void setMutationProbability(double value) { mutationProbability = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProbMut (float value) {\r\n mut_prob= value;\r\n }", "public void setProbMut(double d){\n if ((d < 0) || (d > 1)){\n throw new IllegalArgumentException(\"Mutation probability cannot be less than 0 or greater than 1.\");\n }\n mutationProb = d;\n }", "@Override\r\n\tpubli...
[ "0.76518136", "0.7650244", "0.72454077", "0.6950708", "0.6488851", "0.6453925", "0.64409536", "0.6440413", "0.63980436", "0.6242966", "0.6134654", "0.6130618", "0.60675067", "0.6067467", "0.6037516", "0.5971806", "0.59320116", "0.5895231", "0.5778212", "0.5762223", "0.5749305...
0.8574286
0
Gets the number of maximum generations in each run.
public int getMaxGenerations() { return maxGenerations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMaximalIterationCount();", "protected int get_max_iter() {\n\t\treturn iterationsMaximum;\n\t}", "public final int getMaxIterations()\r\n\t{\r\n\t\treturn maxIterations;\r\n\t}", "public void setMaxGenerations(int value) { maxGenerations = value; }", "@Override\n\tpublic int getMaxIterations() {\n\t...
[ "0.73700464", "0.71817327", "0.71733254", "0.70247704", "0.7023468", "0.6996975", "0.6996975", "0.694638", "0.6904866", "0.6904866", "0.6898421", "0.6884361", "0.68691814", "0.6849113", "0.6663361", "0.66512376", "0.6617891", "0.6593703", "0.6588903", "0.65854985", "0.6554912...
0.8200335
0
Sets the maximum number of generations per run.
public void setMaxGenerations(int value) { maxGenerations = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxIterations(int number) {\r\n if (number < CurrentIteration) {\r\n throw new Error(\"Cannot be lower than the current iteration.\");\r\n }\r\n MaxIteration = number;\r\n Candidates.ensureCapacity(MaxIteration);\r\n }", "public int getMaxGenerations() { r...
[ "0.7271038", "0.7204827", "0.7177446", "0.7148762", "0.7148762", "0.7061572", "0.68838185", "0.6744752", "0.6739151", "0.67387456", "0.67143035", "0.6659836", "0.66490644", "0.65603876", "0.6544072", "0.6543032", "0.65364367", "0.6484324", "0.6450201", "0.6424511", "0.6423679...
0.88064414
0
Creates a new genetic engine with default values and no population.
public GeneticEngine() { avgFitnesses = new ArrayList<Double>(); highFitnesses = new ArrayList<Double>(); population = null; crossoverProbability = 0.07; mutationProbability = 0.001; maxGenerations = Integer.MAX_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Genetic() {\r\n }", "public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }", "public GeneticEngine(int popSize, int maxGen, int chromosomeLength) {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new A...
[ "0.70761263", "0.64537066", "0.6396623", "0.62220645", "0.6169256", "0.5935765", "0.5914046", "0.5851614", "0.58377075", "0.5737698", "0.5723978", "0.5675133", "0.56557554", "0.5649991", "0.5629246", "0.5623635", "0.5579655", "0.5530974", "0.5521417", "0.54981244", "0.5488102...
0.7719474
0
Creates a new genetic engine.
public GeneticEngine(int popSize, double crossoverRate, double mutationRate, int maxGen, int chromosomeLength) { avgFitnesses = new ArrayList<Double>(); highFitnesses = new ArrayList<Double>(); populationSize = popSize; crossoverProbability = crossoverRate; mutationP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GeneticEngine() {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n population = null;\n crossoverProbability = 0.07;\n mutationProbability = 0.001;\n maxGenerations = Integer.MAX_VALUE;\n }", "public Genetic() {\r\n }", ...
[ "0.6503695", "0.61801684", "0.61295015", "0.5604171", "0.5595854", "0.5568758", "0.55376774", "0.5529963", "0.55271775", "0.5515152", "0.55031335", "0.54652244", "0.5461561", "0.54511535", "0.5402805", "0.5398136", "0.5352323", "0.5313883", "0.5308805", "0.52984333", "0.52734...
0.5460583
13
Creates a new genetic engine.
public GeneticEngine(int popSize, int maxGen, int chromosomeLength) { avgFitnesses = new ArrayList<Double>(); highFitnesses = new ArrayList<Double>(); populationSize = popSize; maxGenerations = maxGen; chromosomeSize = chromosomeLength; initializePopulation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GeneticEngine() {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n population = null;\n crossoverProbability = 0.07;\n mutationProbability = 0.001;\n maxGenerations = Integer.MAX_VALUE;\n }", "public Genetic() {\r\n }", ...
[ "0.65042233", "0.61813843", "0.61318886", "0.5606636", "0.5590519", "0.55648935", "0.5535998", "0.55309504", "0.5529874", "0.5501122", "0.5463428", "0.54625285", "0.546244", "0.54519033", "0.5398963", "0.53975314", "0.534858", "0.53160053", "0.53058183", "0.5297734", "0.52748...
0.5516438
9
Sets a random, starting population.
private void initializePopulation() { // reset the population population = new ArrayList<Genotype>(); // set the population to an array of random genotypes for (int i = 0; i < populationSize; i++) { population.add(new Genotype(chromosomeSize)); } // evaluate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public void setNextGeneration() {\n // create a temporary population\n ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>();\n\n // select mates\n while (tempPopulation.size() < populationSize) {\n ...
[ "0.7183215", "0.6926208", "0.6869688", "0.6695815", "0.66498756", "0.662256", "0.65996337", "0.6548817", "0.6515252", "0.6507657", "0.64752716", "0.64133734", "0.6387521", "0.63846576", "0.6371994", "0.6364717", "0.63109666", "0.62786084", "0.626346", "0.6240623", "0.622396",...
0.6585972
7
Sets the fitness scores for each member of the population.
public void evaluatePopulation() { // reset the total fitness score totalFitness = 0; for (int i = 0; i < populationSize; i++) { population.get(i).setRawFitness( FeederCollection.getFeeders().get(i).GetFitness()); totalFitness += population.get(i).get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setFitnessScore(double score){\n fitnessScore = score;\n }", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\...
[ "0.7092305", "0.666054", "0.64500993", "0.6299279", "0.6261554", "0.6248128", "0.62275803", "0.61609584", "0.6124505", "0.6107644", "0.61004734", "0.6077427", "0.5988335", "0.5954946", "0.5951134", "0.59190774", "0.5869766", "0.5820241", "0.58129084", "0.5808236", "0.57885313...
0.67514426
1
Creates the next generation.
public void setNextGeneration() { // create a temporary population ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>(); // select mates while (tempPopulation.size() < populationSize) { tempPopulation.add(Genotype.Mate(rouletteSelection(), roule...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generate() {\n\t}", "protected abstract void generate();", "public Order generateNext();", "public abstract void generate();", "public int getNextModuleGeneration() {\n return moduleGeneration.incrementAndGet();\n }", "public NextGeneration(){\n this.born[3] = true;\n ...
[ "0.69206154", "0.6782394", "0.66955495", "0.6597136", "0.6565528", "0.65440905", "0.6535309", "0.65127957", "0.63766426", "0.6239581", "0.6130879", "0.6084129", "0.6075995", "0.6032806", "0.6015553", "0.6011456", "0.5991895", "0.5989571", "0.59842587", "0.59420556", "0.589816...
0.603555
13
Selects a genotype to mate.
public Genotype rouletteSelection() { // get a number between 0 and 1 to compare against double slice = rnd.nextDouble(); // keep track of the cumulative fitness double cumulativeFitness = 0; // loop through the population to pick a mate for (Genotype g : population) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void selectPhenotype(String option) {\r\n if (option.equals(\"null\") || option.equals(currentPhenotype)){\r\n return;\r\n } \r\n \r\n setDatasets((VerifiedSNP) getController().getActiveSNP(), option);\r\n currentPhenotype = option; \r\n }", ...
[ "0.68243843", "0.5895837", "0.5697615", "0.55700105", "0.5540435", "0.550514", "0.5503683", "0.54929125", "0.54801005", "0.54653317", "0.5415859", "0.5387952", "0.5383143", "0.537406", "0.5346014", "0.53310883", "0.53112626", "0.53087187", "0.53047043", "0.5269277", "0.523600...
0.55594605
4
The interface Sql queries.
public interface SqlQueries { /** * The constant QUOTATION. */ String QUOTATION = "'"; /** * The constant SELECT_ALL_CARS. */ String SELECT_ALL_CARS = "SELECT * FROM Car"; /** * The constant SELECT_ALL_USERS. */ String SELECT_ALL_USERS = "SELECT * FROM Users"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Query query();", "void runQueries();", "public List sqlQuery(String sql,Object... params);", "public abstract ResultList executeSQL(RawQuery rawQuery);", "private void executeQuery() {\n }", "public void Query() {\n }", "public abstract Statement queryToRetrieveData();", "Query queryOn(Connecti...
[ "0.76181334", "0.71907836", "0.7180062", "0.7147358", "0.7109294", "0.7107983", "0.70573175", "0.6997007", "0.69606423", "0.68606055", "0.68287224", "0.6691504", "0.66481113", "0.66283643", "0.6589777", "0.65719414", "0.6494637", "0.6458231", "0.64520985", "0.64445895", "0.64...
0.7014334
7
Get button id (service number and price)
@Override public void onClick(View v) { int baseId = service1Btn.getId(); switch (v.getId() - baseId){ case 0: serviceName = service1.getServiceName(); servicePrice = service1.getServi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String findButtonId(ActionEvent event) {\n Button buttonObj = (Button) event.getSource();\n return buttonObj.getId();\n }", "public int getButtonID(){return i_ButtonID;}", "String getService_id();", "public String getServiceID();", "Button getBtn();", "String getServiceId();", "...
[ "0.66194326", "0.6586924", "0.6322098", "0.60256505", "0.59863615", "0.59298056", "0.5904654", "0.5899057", "0.5816182", "0.5808063", "0.5780378", "0.57650185", "0.5682425", "0.56343967", "0.56262755", "0.5621849", "0.5614542", "0.560797", "0.55894274", "0.55873805", "0.55313...
0.5992501
4
Get all service quantity from services list and store into arrayList to transfer data to new activity with intent.putIntegerArrayListExtra()
private ArrayList<Integer> GetAllServiceQuantity(List<Services> services){ // Create new empty arrayList of service quantity ArrayList<Integer> tmp = new ArrayList<Integer>(); // Loop though services list and add service quantity to tmp arraylist for(Services service : services){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fetchServices() {\n serviciosTotales.clear();\n for (String serviceId : serviceList) {\n databaseServiceReference.child(serviceId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapsho...
[ "0.6723477", "0.57516706", "0.5735899", "0.56968135", "0.56694865", "0.5653477", "0.5628693", "0.561062", "0.55898273", "0.55354804", "0.5533767", "0.5533234", "0.55190754", "0.54920053", "0.54844683", "0.54710597", "0.5446598", "0.5444467", "0.54030883", "0.535256", "0.53515...
0.7352492
0
Transfer data to Choose Professional activity
private void TransferDataToMainActivity(){ Intent intent = new Intent(ChooseService.this, MainActivity.class); intent.putExtra("Professional", professionalName); intent.putExtra("Service", serviceName); intent.putExtra("Price", servicePrice); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n if (!TextUtils.isEmpty(typecode.getSelectId())) {\n Intent intent = null;\n if (toothType != null)\n intent = new Intent(getActivity(), VisitDrugDentalActivity.clas...
[ "0.6145682", "0.6131977", "0.609299", "0.6057293", "0.59831864", "0.59470767", "0.5940597", "0.59235036", "0.59235036", "0.59056413", "0.58479506", "0.58390725", "0.581895", "0.57597584", "0.5732908", "0.57241064", "0.57238287", "0.5651309", "0.56431395", "0.56399584", "0.560...
0.6297704
0
Check empty services, return true if no service has been selected
private boolean CheckEmptyServices(List<Services> services){ for(Services service : services){ if(service.getServiceQuantity() > 0){ return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasServiceList();", "boolean isSetListOfServiceElements();", "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "p...
[ "0.7031156", "0.7031156", "0.7031156", "0.7031156", "0.7031156", "0.7016881", "0.69657934", "0.68230337", "0.68230337", "0.68230337", "0.67917717", "0.67917717", "0.67917717", "0.6766815", "0.6766815", "0.6660843", "0.6331738", "0.6311997", "0.6277263", "0.62264895", "0.60825...
0.81688744
0
Update selection choice for Spinners
private void UpdateDataForSpinner(Spinner spinner){ // Create an ArrayAdapter using the string array and a default spinner layout ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.serviceQuantity, android.R.layout.simple_spinner_item); // Specify the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateSelection() {\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "private void updateSubModeSpinnerTexts() {\n\n }", "public void setSelection(T t) {\n\t\tspinner.setS...
[ "0.6842235", "0.6743116", "0.66415656", "0.6548555", "0.6470084", "0.64010483", "0.64008725", "0.6331629", "0.6308279", "0.6289834", "0.6282853", "0.6270557", "0.6249893", "0.62477845", "0.62340343", "0.62334204", "0.62017", "0.6191909", "0.61845577", "0.6179369", "0.6114589"...
0.5927834
49
Hide Action bar for this particular activity
private void HideActionBar(){ if(getSupportActionBar() != null){ getSupportActionBar().hide(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideActionBar() {\n View decorView = getWindow().getDecorView();\n // Hide the status bar.\n int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;\n decorView.setSystemUiVisibility(uiOptions);\n // Hide the action bar\n getSupportActionBar().hide();\n }", "publ...
[ "0.8559517", "0.8557274", "0.8081309", "0.73196864", "0.7141178", "0.68589115", "0.6786436", "0.6743239", "0.67242104", "0.662644", "0.6607407", "0.65983176", "0.65734226", "0.6564925", "0.6560437", "0.6465811", "0.6408134", "0.6408134", "0.6401923", "0.6382474", "0.6376077",...
0.83560413
2
Retrieve Google Sign In profile
private String RetrieveGoogleSignInProfile(){ String personName; acct = GoogleSignIn.getLastSignedInAccount(ChooseService.this); if (acct != null) { personName = acct.getDisplayName(); /*String personGivenName = acct.getGivenName(); String personFamilyName = a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName(...
[ "0.6969862", "0.67185396", "0.64642006", "0.62573594", "0.6185595", "0.617921", "0.614174", "0.60776407", "0.60764146", "0.6051935", "0.6022234", "0.6017609", "0.5985996", "0.5983912", "0.5937732", "0.5903281", "0.5898916", "0.5898879", "0.5857925", "0.58249474", "0.5813772",...
0.79646206
0
probably won't have to use this function either
public static void findWumpus(GameTile[][] visibleMap) { //method to find the position of the Wumpus //this will be used to determine where the beast is and to kill it for(int i=0; i<visibleMap.length; i++) { for(int j=0; j<visibleMap[i].length; j++) { if(visibleMap[i][j].hasWumpus()) { wumpusX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private void strin() {\n\n\t}", "public void method_4270() {}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n ...
[ "0.56414336", "0.5529691", "0.5417027", "0.53309745", "0.5330721", "0.53233266", "0.53216803", "0.53207964", "0.52877545", "0.5282024", "0.5252832", "0.5214639", "0.52093947", "0.51916283", "0.5173966", "0.51706296", "0.5164613", "0.5164613", "0.51577944", "0.5144722", "0.514...
0.0
-1
probably won't have to use this function. Need to change what arguments go into the wumpus state class
public void setStartingPosition(GameTile [][] visibleMap) { //method to set the starting position of our player. for(int i=0; i<visibleMap.length; i++) { for(int j=0; j<visibleMap[i].length; j++) { if(visibleMap[i][j] != null && visibleMap[i][j].hasPlayer()) { playerX = i; playerY = j; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo15871a(StateT statet);", "@Override\n protected void incrementStates() {\n\n }", "void setState(Object sender, ConditionT condition, Params params, StateT state);", "private StateUtils() {}", "@Override public void setTime(UpodWorld w)\n{\n StateRepr sr = getState(w);\n sr.checkAgain(0);\n}", ...
[ "0.68462044", "0.6534638", "0.65336394", "0.6532271", "0.6417674", "0.6390407", "0.63666296", "0.6270003", "0.61970556", "0.61748666", "0.6148404", "0.61260915", "0.60913646", "0.6083229", "0.6082864", "0.603202", "0.6021356", "0.60175514", "0.6001062", "0.5996934", "0.598074...
0.0
-1
new search function for its in here our goal state would be getting the closest unknown state before this, need to probably check if the the tile were standing on is safe. If it is safe, then generate children. Our first state tile will be known(starting position) lets see what we can do.
public WumpusState wellItsDarkNow(GameTile[][] visibleMap) { Queue<WumpusState> queue = new LinkedList<WumpusState>(); HashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>(); WumpusState state = new WumpusState(visibleMap, playerX, playerY); long nodesExpanded = 0; queue.add(state); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n ...
[ "0.64466894", "0.6435464", "0.624812", "0.6224093", "0.62071353", "0.6206119", "0.6199273", "0.6140004", "0.611651", "0.6085592", "0.60560733", "0.5996624", "0.59746987", "0.59703857", "0.59506994", "0.5943485", "0.593737", "0.59371996", "0.5934632", "0.59196156", "0.587561",...
0.6100195
9