code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public BigInteger at(int n) { while (a.size() <= n) { final int lastn = a.size() - 1; final BigInteger nextn = BigInteger.valueOf(lastn + 1); a.add(a.get(lastn).multiply(nextn)); } return a.get(n); }
class class_name[name] begin[{] method[at, return_type[type[BigInteger]], modifier[public], parameter[n]] begin[{] while[binary_operation[call[a.size, parameter[]], <=, member[.n]]] begin[{] local_variable[type[int], lastn] local_variable[type[BigInteger], nextn] call[a.add, parameter[call[a.get, parameter[member[.lastn]]]]] end[}] return[call[a.get, parameter[member[.n]]]] end[}] END[}]
Keyword[public] identifier[BigInteger] identifier[at] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[while] operator[SEP] identifier[a] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[<=] identifier[n] operator[SEP] { Keyword[final] Keyword[int] identifier[lastn] operator[=] identifier[a] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] Keyword[final] identifier[BigInteger] identifier[nextn] operator[=] identifier[BigInteger] operator[SEP] identifier[valueOf] operator[SEP] identifier[lastn] operator[+] Other[1] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[add] operator[SEP] identifier[a] operator[SEP] identifier[get] operator[SEP] identifier[lastn] operator[SEP] operator[SEP] identifier[multiply] operator[SEP] identifier[nextn] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[a] operator[SEP] identifier[get] operator[SEP] identifier[n] operator[SEP] operator[SEP] }
public static JSONObject getObject(JSONValue value) { if (value == null) return null; if (!(value instanceof JSONObject)) throw new JSONException(NOT_AN_OBJECT); return (JSONObject)value; }
class class_name[name] begin[{] method[getObject, return_type[type[JSONObject]], modifier[public static], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[member[.value], instanceof, type[JSONObject]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=NOT_AN_OBJECT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JSONException, sub_type=None)), label=None) else begin[{] None end[}] return[Cast(expression=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=JSONObject, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[JSONObject] identifier[getObject] operator[SEP] identifier[JSONValue] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[value] Keyword[instanceof] identifier[JSONObject] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[JSONException] operator[SEP] identifier[NOT_AN_OBJECT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[JSONObject] operator[SEP] identifier[value] operator[SEP] }
final boolean merge( final SymbolTable symbolTable, final Frame dstFrame, final int catchTypeIndex) { boolean frameChanged = false; // Compute the concrete types of the local variables at the end of the basic block corresponding // to this frame, by resolving its abstract output types, and merge these concrete types with // those of the local variables in the input frame of dstFrame. int nLocal = inputLocals.length; int nStack = inputStack.length; if (dstFrame.inputLocals == null) { dstFrame.inputLocals = new int[nLocal]; frameChanged = true; } for (int i = 0; i < nLocal; ++i) { int concreteOutputType; if (outputLocals != null && i < outputLocals.length) { int abstractOutputType = outputLocals[i]; if (abstractOutputType == 0) { // If the local variable has never been assigned in this basic block, it is equal to its // value at the beginning of the block. concreteOutputType = inputLocals[i]; } else { int dim = abstractOutputType & DIM_MASK; int kind = abstractOutputType & KIND_MASK; if (kind == LOCAL_KIND) { // By definition, a LOCAL_KIND type designates the concrete type of a local variable at // the beginning of the basic block corresponding to this frame (which is known when // this method is called, but was not when the abstract type was computed). concreteOutputType = dim + inputLocals[abstractOutputType & VALUE_MASK]; if ((abstractOutputType & TOP_IF_LONG_OR_DOUBLE_FLAG) != 0 && (concreteOutputType == LONG || concreteOutputType == DOUBLE)) { concreteOutputType = TOP; } } else if (kind == STACK_KIND) { // By definition, a STACK_KIND type designates the concrete type of a local variable at // the beginning of the basic block corresponding to this frame (which is known when // this method is called, but was not when the abstract type was computed). concreteOutputType = dim + inputStack[nStack - (abstractOutputType & VALUE_MASK)]; if ((abstractOutputType & TOP_IF_LONG_OR_DOUBLE_FLAG) != 0 && (concreteOutputType == LONG || concreteOutputType == DOUBLE)) { concreteOutputType = TOP; } } else { concreteOutputType = abstractOutputType; } } } else { // If the local variable has never been assigned in this basic block, it is equal to its // value at the beginning of the block. concreteOutputType = inputLocals[i]; } // concreteOutputType might be an uninitialized type from the input locals or from the input // stack. However, if a constructor has been called for this class type in the basic block, // then this type is no longer uninitialized at the end of basic block. if (initializations != null) { concreteOutputType = getInitializedType(symbolTable, concreteOutputType); } frameChanged |= merge(symbolTable, concreteOutputType, dstFrame.inputLocals, i); } // If dstFrame is an exception handler block, it can be reached from any instruction of the // basic block corresponding to this frame, in particular from the first one. Therefore, the // input locals of dstFrame should be compatible (i.e. merged) with the input locals of this // frame (and the input stack of dstFrame should be compatible, i.e. merged, with a one // element stack containing the caught exception type). if (catchTypeIndex > 0) { for (int i = 0; i < nLocal; ++i) { frameChanged |= merge(symbolTable, inputLocals[i], dstFrame.inputLocals, i); } if (dstFrame.inputStack == null) { dstFrame.inputStack = new int[1]; frameChanged = true; } frameChanged |= merge(symbolTable, catchTypeIndex, dstFrame.inputStack, 0); return frameChanged; } // Compute the concrete types of the stack operands at the end of the basic block corresponding // to this frame, by resolving its abstract output types, and merge these concrete types with // those of the stack operands in the input frame of dstFrame. int nInputStack = inputStack.length + outputStackStart; if (dstFrame.inputStack == null) { dstFrame.inputStack = new int[nInputStack + outputStackTop]; frameChanged = true; } // First, do this for the stack operands that have not been popped in the basic block // corresponding to this frame, and which are therefore equal to their value in the input // frame (except for uninitialized types, which may have been initialized). for (int i = 0; i < nInputStack; ++i) { int concreteOutputType = inputStack[i]; if (initializations != null) { concreteOutputType = getInitializedType(symbolTable, concreteOutputType); } frameChanged |= merge(symbolTable, concreteOutputType, dstFrame.inputStack, i); } // Then, do this for the stack operands that have pushed in the basic block (this code is the // same as the one above for local variables). for (int i = 0; i < outputStackTop; ++i) { int concreteOutputType; int abstractOutputType = outputStack[i]; int dim = abstractOutputType & DIM_MASK; int kind = abstractOutputType & KIND_MASK; if (kind == LOCAL_KIND) { concreteOutputType = dim + inputLocals[abstractOutputType & VALUE_MASK]; if ((abstractOutputType & TOP_IF_LONG_OR_DOUBLE_FLAG) != 0 && (concreteOutputType == LONG || concreteOutputType == DOUBLE)) { concreteOutputType = TOP; } } else if (kind == STACK_KIND) { concreteOutputType = dim + inputStack[nStack - (abstractOutputType & VALUE_MASK)]; if ((abstractOutputType & TOP_IF_LONG_OR_DOUBLE_FLAG) != 0 && (concreteOutputType == LONG || concreteOutputType == DOUBLE)) { concreteOutputType = TOP; } } else { concreteOutputType = abstractOutputType; } if (initializations != null) { concreteOutputType = getInitializedType(symbolTable, concreteOutputType); } frameChanged |= merge(symbolTable, concreteOutputType, dstFrame.inputStack, nInputStack + i); } return frameChanged; }
class class_name[name] begin[{] method[merge, return_type[type[boolean]], modifier[final], parameter[symbolTable, dstFrame, catchTypeIndex]] begin[{] local_variable[type[boolean], frameChanged] local_variable[type[int], nLocal] local_variable[type[int], nStack] if[binary_operation[member[dstFrame.inputLocals], ==, literal[null]]] begin[{] assign[member[dstFrame.inputLocals], ArrayCreator(dimensions=[MemberReference(member=nLocal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] assign[member[.frameChanged], literal[true]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=concreteOutputType)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=outputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=outputLocals, selectors=[]), operator=<), operator=&&), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=outputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=abstractOutputType)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DIM_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), name=dim)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=KIND_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), name=kind)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=kind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LOCAL_KIND, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=kind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=STACK_KIND, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=dim, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=inputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=nStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=VALUE_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operator=-))]), operator=+)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=TOP_IF_LONG_OR_DOUBLE_FLAG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LONG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DOUBLE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TOP, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=dim, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=VALUE_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&))]), operator=+)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=TOP_IF_LONG_OR_DOUBLE_FLAG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LONG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DOUBLE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TOP, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))]))]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])), label=None)]))])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=initializations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getInitializedType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frameChanged, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=|=, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=dstFrame, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=merge, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=nLocal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) if[binary_operation[member[.catchTypeIndex], >, literal[0]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=frameChanged, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=|=, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=dstFrame, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=merge, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=nLocal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) if[binary_operation[member[dstFrame.inputStack], ==, literal[null]]] begin[{] assign[member[dstFrame.inputStack], ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] assign[member[.frameChanged], literal[true]] else begin[{] None end[}] assign[member[.frameChanged], call[.merge, parameter[member[.symbolTable], member[.catchTypeIndex], member[dstFrame.inputStack], literal[0]]]] return[member[.frameChanged]] else begin[{] None end[}] local_variable[type[int], nInputStack] if[binary_operation[member[dstFrame.inputStack], ==, literal[null]]] begin[{] assign[member[dstFrame.inputStack], ArrayCreator(dimensions=[BinaryOperation(operandl=MemberReference(member=nInputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=outputStackTop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] assign[member[.frameChanged], literal[true]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=inputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=concreteOutputType)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=initializations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getInitializedType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frameChanged, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=|=, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=inputStack, postfix_operators=[], prefix_operators=[], qualifier=dstFrame, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=merge, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=nInputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=concreteOutputType)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=outputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=abstractOutputType)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DIM_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), name=dim)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=KIND_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), name=kind)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=kind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LOCAL_KIND, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=kind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=STACK_KIND, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=dim, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=inputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=nStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=VALUE_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operator=-))]), operator=+)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=TOP_IF_LONG_OR_DOUBLE_FLAG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LONG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DOUBLE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TOP, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=dim, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=inputLocals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=VALUE_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&))]), operator=+)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=abstractOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=TOP_IF_LONG_OR_DOUBLE_FLAG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LONG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DOUBLE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TOP, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=initializations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getInitializedType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frameChanged, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=|=, value=MethodInvocation(arguments=[MemberReference(member=symbolTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=concreteOutputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=inputStack, postfix_operators=[], prefix_operators=[], qualifier=dstFrame, selectors=[]), BinaryOperation(operandl=MemberReference(member=nInputStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=merge, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=outputStackTop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) return[member[.frameChanged]] end[}] END[}]
Keyword[final] Keyword[boolean] identifier[merge] operator[SEP] Keyword[final] identifier[SymbolTable] identifier[symbolTable] , Keyword[final] identifier[Frame] identifier[dstFrame] , Keyword[final] Keyword[int] identifier[catchTypeIndex] operator[SEP] { Keyword[boolean] identifier[frameChanged] operator[=] literal[boolean] operator[SEP] Keyword[int] identifier[nLocal] operator[=] identifier[inputLocals] operator[SEP] identifier[length] operator[SEP] Keyword[int] identifier[nStack] operator[=] identifier[inputStack] operator[SEP] identifier[length] operator[SEP] Keyword[if] operator[SEP] identifier[dstFrame] operator[SEP] identifier[inputLocals] operator[==] Other[null] operator[SEP] { identifier[dstFrame] operator[SEP] identifier[inputLocals] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[nLocal] operator[SEP] operator[SEP] identifier[frameChanged] operator[=] literal[boolean] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[nLocal] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[int] identifier[concreteOutputType] operator[SEP] Keyword[if] operator[SEP] identifier[outputLocals] operator[!=] Other[null] operator[&&] identifier[i] operator[<] identifier[outputLocals] operator[SEP] identifier[length] operator[SEP] { Keyword[int] identifier[abstractOutputType] operator[=] identifier[outputLocals] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[abstractOutputType] operator[==] Other[0] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[inputLocals] operator[SEP] identifier[i] operator[SEP] operator[SEP] } Keyword[else] { Keyword[int] identifier[dim] operator[=] identifier[abstractOutputType] operator[&] identifier[DIM_MASK] operator[SEP] Keyword[int] identifier[kind] operator[=] identifier[abstractOutputType] operator[&] identifier[KIND_MASK] operator[SEP] Keyword[if] operator[SEP] identifier[kind] operator[==] identifier[LOCAL_KIND] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[dim] operator[+] identifier[inputLocals] operator[SEP] identifier[abstractOutputType] operator[&] identifier[VALUE_MASK] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[abstractOutputType] operator[&] identifier[TOP_IF_LONG_OR_DOUBLE_FLAG] operator[SEP] operator[!=] Other[0] operator[&&] operator[SEP] identifier[concreteOutputType] operator[==] identifier[LONG] operator[||] identifier[concreteOutputType] operator[==] identifier[DOUBLE] operator[SEP] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[TOP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[kind] operator[==] identifier[STACK_KIND] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[dim] operator[+] identifier[inputStack] operator[SEP] identifier[nStack] operator[-] operator[SEP] identifier[abstractOutputType] operator[&] identifier[VALUE_MASK] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[abstractOutputType] operator[&] identifier[TOP_IF_LONG_OR_DOUBLE_FLAG] operator[SEP] operator[!=] Other[0] operator[&&] operator[SEP] identifier[concreteOutputType] operator[==] identifier[LONG] operator[||] identifier[concreteOutputType] operator[==] identifier[DOUBLE] operator[SEP] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[TOP] operator[SEP] } } Keyword[else] { identifier[concreteOutputType] operator[=] identifier[abstractOutputType] operator[SEP] } } } Keyword[else] { identifier[concreteOutputType] operator[=] identifier[inputLocals] operator[SEP] identifier[i] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[initializations] operator[!=] Other[null] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[getInitializedType] operator[SEP] identifier[symbolTable] , identifier[concreteOutputType] operator[SEP] operator[SEP] } identifier[frameChanged] operator[|=] identifier[merge] operator[SEP] identifier[symbolTable] , identifier[concreteOutputType] , identifier[dstFrame] operator[SEP] identifier[inputLocals] , identifier[i] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[catchTypeIndex] operator[>] Other[0] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[nLocal] operator[SEP] operator[++] identifier[i] operator[SEP] { identifier[frameChanged] operator[|=] identifier[merge] operator[SEP] identifier[symbolTable] , identifier[inputLocals] operator[SEP] identifier[i] operator[SEP] , identifier[dstFrame] operator[SEP] identifier[inputLocals] , identifier[i] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[dstFrame] operator[SEP] identifier[inputStack] operator[==] Other[null] operator[SEP] { identifier[dstFrame] operator[SEP] identifier[inputStack] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[frameChanged] operator[=] literal[boolean] operator[SEP] } identifier[frameChanged] operator[|=] identifier[merge] operator[SEP] identifier[symbolTable] , identifier[catchTypeIndex] , identifier[dstFrame] operator[SEP] identifier[inputStack] , Other[0] operator[SEP] operator[SEP] Keyword[return] identifier[frameChanged] operator[SEP] } Keyword[int] identifier[nInputStack] operator[=] identifier[inputStack] operator[SEP] identifier[length] operator[+] identifier[outputStackStart] operator[SEP] Keyword[if] operator[SEP] identifier[dstFrame] operator[SEP] identifier[inputStack] operator[==] Other[null] operator[SEP] { identifier[dstFrame] operator[SEP] identifier[inputStack] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[nInputStack] operator[+] identifier[outputStackTop] operator[SEP] operator[SEP] identifier[frameChanged] operator[=] literal[boolean] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[nInputStack] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[int] identifier[concreteOutputType] operator[=] identifier[inputStack] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[initializations] operator[!=] Other[null] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[getInitializedType] operator[SEP] identifier[symbolTable] , identifier[concreteOutputType] operator[SEP] operator[SEP] } identifier[frameChanged] operator[|=] identifier[merge] operator[SEP] identifier[symbolTable] , identifier[concreteOutputType] , identifier[dstFrame] operator[SEP] identifier[inputStack] , identifier[i] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[outputStackTop] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[int] identifier[concreteOutputType] operator[SEP] Keyword[int] identifier[abstractOutputType] operator[=] identifier[outputStack] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[int] identifier[dim] operator[=] identifier[abstractOutputType] operator[&] identifier[DIM_MASK] operator[SEP] Keyword[int] identifier[kind] operator[=] identifier[abstractOutputType] operator[&] identifier[KIND_MASK] operator[SEP] Keyword[if] operator[SEP] identifier[kind] operator[==] identifier[LOCAL_KIND] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[dim] operator[+] identifier[inputLocals] operator[SEP] identifier[abstractOutputType] operator[&] identifier[VALUE_MASK] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[abstractOutputType] operator[&] identifier[TOP_IF_LONG_OR_DOUBLE_FLAG] operator[SEP] operator[!=] Other[0] operator[&&] operator[SEP] identifier[concreteOutputType] operator[==] identifier[LONG] operator[||] identifier[concreteOutputType] operator[==] identifier[DOUBLE] operator[SEP] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[TOP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[kind] operator[==] identifier[STACK_KIND] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[dim] operator[+] identifier[inputStack] operator[SEP] identifier[nStack] operator[-] operator[SEP] identifier[abstractOutputType] operator[&] identifier[VALUE_MASK] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[abstractOutputType] operator[&] identifier[TOP_IF_LONG_OR_DOUBLE_FLAG] operator[SEP] operator[!=] Other[0] operator[&&] operator[SEP] identifier[concreteOutputType] operator[==] identifier[LONG] operator[||] identifier[concreteOutputType] operator[==] identifier[DOUBLE] operator[SEP] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[TOP] operator[SEP] } } Keyword[else] { identifier[concreteOutputType] operator[=] identifier[abstractOutputType] operator[SEP] } Keyword[if] operator[SEP] identifier[initializations] operator[!=] Other[null] operator[SEP] { identifier[concreteOutputType] operator[=] identifier[getInitializedType] operator[SEP] identifier[symbolTable] , identifier[concreteOutputType] operator[SEP] operator[SEP] } identifier[frameChanged] operator[|=] identifier[merge] operator[SEP] identifier[symbolTable] , identifier[concreteOutputType] , identifier[dstFrame] operator[SEP] identifier[inputStack] , identifier[nInputStack] operator[+] identifier[i] operator[SEP] operator[SEP] } Keyword[return] identifier[frameChanged] operator[SEP] }
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException { checkValid(); NodeData versionData = getVersionDataByLabel(label); if (versionData != null && version.getUUID().equals(versionData.getIdentifier())) { return true; } return false; }
class class_name[name] begin[{] method[hasVersionLabel, return_type[type[boolean]], modifier[public], parameter[version, label]] begin[{] call[.checkValid, parameter[]] local_variable[type[NodeData], versionData] if[binary_operation[binary_operation[member[.versionData], !=, literal[null]], &&, call[version.getUUID, parameter[]]]] begin[{] return[literal[true]] else begin[{] None end[}] return[literal[false]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[hasVersionLabel] operator[SEP] identifier[Version] identifier[version] , identifier[String] identifier[label] operator[SEP] Keyword[throws] identifier[VersionException] , identifier[RepositoryException] { identifier[checkValid] operator[SEP] operator[SEP] operator[SEP] identifier[NodeData] identifier[versionData] operator[=] identifier[getVersionDataByLabel] operator[SEP] identifier[label] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[versionData] operator[!=] Other[null] operator[&&] identifier[version] operator[SEP] identifier[getUUID] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[versionData] operator[SEP] identifier[getIdentifier] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
public Observable<ClusterInner> createOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1<ServiceResponse<ClusterInner>, ClusterInner>() { @Override public ClusterInner call(ServiceResponse<ClusterInner> response) { return response.body(); } }); }
class class_name[name] begin[{] method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, clusterName, parameters]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.clusterName], member[.parameters]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ClusterInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[clusterName] , identifier[ClusterInner] identifier[parameters] operator[SEP] { Keyword[return] identifier[createOrUpdateWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[clusterName] , identifier[parameters] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[ClusterInner] operator[>] , identifier[ClusterInner] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[ClusterInner] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[ClusterInner] operator[>] identifier[response] operator[SEP] { Keyword[return] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
protected Set<File> jrxmlFilesToCompile(SourceMapping mapping) throws MojoExecutionException { if (!sourceDirectory.isDirectory()) { String message = sourceDirectory.getName() + " is not a directory"; if (failOnMissingSourceDirectory) { throw new IllegalArgumentException(message); } else { log.warn(message + ", skip JasperReports reports compiling."); return Collections.emptySet(); } } try { SourceInclusionScanner scanner = createSourceInclusionScanner(); scanner.addSourceMapping(mapping); return scanner.getIncludedSources(sourceDirectory, outputDirectory); } catch (InclusionScanException e) { throw new MojoExecutionException("Error scanning source root: \'" + sourceDirectory + "\'.", e); } }
class class_name[name] begin[{] method[jrxmlFilesToCompile, return_type[type[Set]], modifier[protected], parameter[mapping]] begin[{] if[call[sourceDirectory.isDirectory, parameter[]]] begin[{] local_variable[type[String], message] if[member[.failOnMissingSourceDirectory]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=message, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] call[log.warn, parameter[binary_operation[member[.message], +, literal[", skip JasperReports reports compiling."]]]] return[call[Collections.emptySet, parameter[]]] end[}] else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=createSourceInclusionScanner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=scanner)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=SourceInclusionScanner, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addSourceMapping, postfix_operators=[], prefix_operators=[], qualifier=scanner, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=sourceDirectory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=outputDirectory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getIncludedSources, postfix_operators=[], prefix_operators=[], qualifier=scanner, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Error scanning source root: \'"), operandr=MemberReference(member=sourceDirectory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\'."), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MojoExecutionException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['InclusionScanException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[protected] identifier[Set] operator[<] identifier[File] operator[>] identifier[jrxmlFilesToCompile] operator[SEP] identifier[SourceMapping] identifier[mapping] operator[SEP] Keyword[throws] identifier[MojoExecutionException] { Keyword[if] operator[SEP] operator[!] identifier[sourceDirectory] operator[SEP] identifier[isDirectory] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[message] operator[=] identifier[sourceDirectory] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[failOnMissingSourceDirectory] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] identifier[message] operator[SEP] operator[SEP] } Keyword[else] { identifier[log] operator[SEP] identifier[warn] operator[SEP] identifier[message] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[Collections] operator[SEP] identifier[emptySet] operator[SEP] operator[SEP] operator[SEP] } } Keyword[try] { identifier[SourceInclusionScanner] identifier[scanner] operator[=] identifier[createSourceInclusionScanner] operator[SEP] operator[SEP] operator[SEP] identifier[scanner] operator[SEP] identifier[addSourceMapping] operator[SEP] identifier[mapping] operator[SEP] operator[SEP] Keyword[return] identifier[scanner] operator[SEP] identifier[getIncludedSources] operator[SEP] identifier[sourceDirectory] , identifier[outputDirectory] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[InclusionScanException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[MojoExecutionException] operator[SEP] literal[String] operator[+] identifier[sourceDirectory] operator[+] literal[String] , identifier[e] operator[SEP] operator[SEP] } }
public IntBuffer put (IntBuffer src) { if (src == this) { throw new IllegalArgumentException(); } if (src.remaining() > remaining()) { throw new BufferOverflowException(); } int[] contents = new int[src.remaining()]; src.get(contents); put(contents); return this; }
class class_name[name] begin[{] method[put, return_type[type[IntBuffer]], modifier[public], parameter[src]] begin[{] if[binary_operation[member[.src], ==, THIS[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[call[src.remaining, parameter[]], >, call[.remaining, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BufferOverflowException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[int], contents] call[src.get, parameter[member[.contents]]] call[.put, parameter[member[.contents]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[IntBuffer] identifier[put] operator[SEP] identifier[IntBuffer] identifier[src] operator[SEP] { Keyword[if] operator[SEP] identifier[src] operator[==] Keyword[this] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[src] operator[SEP] identifier[remaining] operator[SEP] operator[SEP] operator[>] identifier[remaining] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[BufferOverflowException] operator[SEP] operator[SEP] operator[SEP] } Keyword[int] operator[SEP] operator[SEP] identifier[contents] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[src] operator[SEP] identifier[remaining] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[src] operator[SEP] identifier[get] operator[SEP] identifier[contents] operator[SEP] operator[SEP] identifier[put] operator[SEP] identifier[contents] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
@Override public URL get(final ResultSet rs, final int index, final int dbSqlType) throws SQLException { return rs.getURL(index); }
class class_name[name] begin[{] method[get, return_type[type[URL]], modifier[public], parameter[rs, index, dbSqlType]] begin[{] return[call[rs.getURL, parameter[member[.index]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[URL] identifier[get] operator[SEP] Keyword[final] identifier[ResultSet] identifier[rs] , Keyword[final] Keyword[int] identifier[index] , Keyword[final] Keyword[int] identifier[dbSqlType] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[return] identifier[rs] operator[SEP] identifier[getURL] operator[SEP] identifier[index] operator[SEP] operator[SEP] }
public List<Object> insertForGeneratedKeys(Entity record) throws SQLException { Connection conn = null; try { conn = this.getConnection(); return runner.insertForGeneratedKeys(conn, record); } catch (SQLException e) { throw e; } finally { this.closeConnection(conn); } }
class class_name[name] begin[{] method[insertForGeneratedKeys, return_type[type[List]], modifier[public], parameter[record]] begin[{] local_variable[type[Connection], conn] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getConnection, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])), label=None), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=record, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=insertForGeneratedKeys, postfix_operators=[], prefix_operators=[], qualifier=runner, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['SQLException']))], finally_block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=closeConnection, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)], label=None, resources=None) end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Object] operator[>] identifier[insertForGeneratedKeys] operator[SEP] identifier[Entity] identifier[record] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[Connection] identifier[conn] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[conn] operator[=] Keyword[this] operator[SEP] identifier[getConnection] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[runner] operator[SEP] identifier[insertForGeneratedKeys] operator[SEP] identifier[conn] , identifier[record] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[SQLException] identifier[e] operator[SEP] { Keyword[throw] identifier[e] operator[SEP] } Keyword[finally] { Keyword[this] operator[SEP] identifier[closeConnection] operator[SEP] identifier[conn] operator[SEP] operator[SEP] } }
public List<ConversionMethod> getConversionMethods (Class<?> clazz){ List<ConversionMethod> conversions = new ArrayList<ConversionMethod>(); Map<String, List<ConversionMethod>> conversionsMap = this.conversionsLoad(); for (Class<?> classToCheck : getAllsuperClasses(clazz)){ List<ConversionMethod> methods = conversionsMap.get(classToCheck.getName()); if(methods != null)conversions.addAll(methods); } return conversions; }
class class_name[name] begin[{] method[getConversionMethods, return_type[type[List]], modifier[public], parameter[clazz]] begin[{] local_variable[type[List], conversions] local_variable[type[Map], conversionsMap] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=classToCheck, selectors=[], type_arguments=None)], member=get, postfix_operators=[], prefix_operators=[], qualifier=conversionsMap, selectors=[], type_arguments=None), name=methods)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ConversionMethod, sub_type=None))], dimensions=[], name=List, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=methods, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=methods, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addAll, postfix_operators=[], prefix_operators=[], qualifier=conversions, selectors=[], type_arguments=None), label=None))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[MemberReference(member=clazz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getAllsuperClasses, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=classToCheck)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=?, type=None)], dimensions=[], name=Class, sub_type=None))), label=None) return[member[.conversions]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[ConversionMethod] operator[>] identifier[getConversionMethods] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[List] operator[<] identifier[ConversionMethod] operator[>] identifier[conversions] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[ConversionMethod] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[ConversionMethod] operator[>] operator[>] identifier[conversionsMap] operator[=] Keyword[this] operator[SEP] identifier[conversionsLoad] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[classToCheck] operator[:] identifier[getAllsuperClasses] operator[SEP] identifier[clazz] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[ConversionMethod] operator[>] identifier[methods] operator[=] identifier[conversionsMap] operator[SEP] identifier[get] operator[SEP] identifier[classToCheck] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[methods] operator[!=] Other[null] operator[SEP] identifier[conversions] operator[SEP] identifier[addAll] operator[SEP] identifier[methods] operator[SEP] operator[SEP] } Keyword[return] identifier[conversions] operator[SEP] }
public CmsMenuListItem createListItem(final CmsContainerElementData containerElement) { CmsMenuListItem listItem = new CmsMenuListItem(containerElement); if (!containerElement.isGroupContainer() && !containerElement.isInheritContainer() && CmsStringUtil.isEmptyOrWhitespaceOnly(containerElement.getNoEditReason())) { listItem.enableEdit(new ClickHandler() { public void onClick(ClickEvent event) { CmsEditableData editableData = new CmsEditableData(); editableData.setElementLanguage(CmsCoreProvider.get().getLocale()); editableData.setStructureId( new CmsUUID(CmsContainerpageController.getServerId(containerElement.getClientId()))); editableData.setSitePath(containerElement.getSitePath()); getController().getContentEditorHandler().openDialog(editableData, false, null, null, null); ((CmsPushButton)event.getSource()).clearHoverState(); } }); } else { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(containerElement.getNoEditReason())) { listItem.disableEdit(containerElement.getNoEditReason(), true); } else { listItem.disableEdit(Messages.get().key(Messages.GUI_CLIPBOARD_ITEM_CAN_NOT_BE_EDITED_0), false); } } String clientId = containerElement.getClientId(); String serverId = CmsContainerpageController.getServerId(clientId); if (CmsUUID.isValidUUID(serverId)) { CmsContextMenuButton button = new CmsContextMenuButton(new CmsUUID(serverId), new CmsContextMenuHandler() { @Override public void refreshResource(CmsUUID structureId) { Window.Location.reload(); } }, AdeContext.gallery); listItem.getListItemWidget().addButtonToFront(button); } listItem.initMoveHandle(m_controller.getDndHandler(), true); return listItem; }
class class_name[name] begin[{] method[createListItem, return_type[type[CmsMenuListItem]], modifier[public], parameter[containerElement]] begin[{] local_variable[type[CmsMenuListItem], listItem] if[binary_operation[binary_operation[call[containerElement.isGroupContainer, parameter[]], &&, call[containerElement.isInheritContainer, parameter[]]], &&, call[CmsStringUtil.isEmptyOrWhitespaceOnly, parameter[call[containerElement.getNoEditReason, parameter[]]]]]] begin[{] call[listItem.enableEdit, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsEditableData, sub_type=None)), name=editableData)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CmsEditableData, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=CmsCoreProvider, selectors=[MethodInvocation(arguments=[], member=getLocale, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=setElementLanguage, postfix_operators=[], prefix_operators=[], qualifier=editableData, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getClientId, postfix_operators=[], prefix_operators=[], qualifier=containerElement, selectors=[], type_arguments=None)], member=getServerId, postfix_operators=[], prefix_operators=[], qualifier=CmsContainerpageController, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsUUID, sub_type=None))], member=setStructureId, postfix_operators=[], prefix_operators=[], qualifier=editableData, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getSitePath, postfix_operators=[], prefix_operators=[], qualifier=containerElement, selectors=[], type_arguments=None)], member=setSitePath, postfix_operators=[], prefix_operators=[], qualifier=editableData, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=getController, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getContentEditorHandler, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=editableData, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], member=openDialog, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None), StatementExpression(expression=Cast(expression=MethodInvocation(arguments=[], member=getSource, postfix_operators=[], prefix_operators=[], qualifier=event, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CmsPushButton, sub_type=None)), label=None)], documentation=None, modifiers={'public'}, name=onClick, parameters=[FormalParameter(annotations=[], modifiers=set(), name=event, type=ReferenceType(arguments=None, dimensions=[], name=ClickEvent, sub_type=None), varargs=False)], return_type=None, throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ClickHandler, sub_type=None))]] else begin[{] if[call[CmsStringUtil.isNotEmptyOrWhitespaceOnly, parameter[call[containerElement.getNoEditReason, parameter[]]]]] begin[{] call[listItem.disableEdit, parameter[call[containerElement.getNoEditReason, parameter[]], literal[true]]] else begin[{] call[listItem.disableEdit, parameter[call[Messages.get, parameter[]], literal[false]]] end[}] end[}] local_variable[type[String], clientId] local_variable[type[String], serverId] if[call[CmsUUID.isValidUUID, parameter[member[.serverId]]]] begin[{] local_variable[type[CmsContextMenuButton], button] call[listItem.getListItemWidget, parameter[]] else begin[{] None end[}] call[listItem.initMoveHandle, parameter[call[m_controller.getDndHandler, parameter[]], literal[true]]] return[member[.listItem]] end[}] END[}]
Keyword[public] identifier[CmsMenuListItem] identifier[createListItem] operator[SEP] Keyword[final] identifier[CmsContainerElementData] identifier[containerElement] operator[SEP] { identifier[CmsMenuListItem] identifier[listItem] operator[=] Keyword[new] identifier[CmsMenuListItem] operator[SEP] identifier[containerElement] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[containerElement] operator[SEP] identifier[isGroupContainer] operator[SEP] operator[SEP] operator[&&] operator[!] identifier[containerElement] operator[SEP] identifier[isInheritContainer] operator[SEP] operator[SEP] operator[&&] identifier[CmsStringUtil] operator[SEP] identifier[isEmptyOrWhitespaceOnly] operator[SEP] identifier[containerElement] operator[SEP] identifier[getNoEditReason] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[listItem] operator[SEP] identifier[enableEdit] operator[SEP] Keyword[new] identifier[ClickHandler] operator[SEP] operator[SEP] { Keyword[public] Keyword[void] identifier[onClick] operator[SEP] identifier[ClickEvent] identifier[event] operator[SEP] { identifier[CmsEditableData] identifier[editableData] operator[=] Keyword[new] identifier[CmsEditableData] operator[SEP] operator[SEP] operator[SEP] identifier[editableData] operator[SEP] identifier[setElementLanguage] operator[SEP] identifier[CmsCoreProvider] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getLocale] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[editableData] operator[SEP] identifier[setStructureId] operator[SEP] Keyword[new] identifier[CmsUUID] operator[SEP] identifier[CmsContainerpageController] operator[SEP] identifier[getServerId] operator[SEP] identifier[containerElement] operator[SEP] identifier[getClientId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[editableData] operator[SEP] identifier[setSitePath] operator[SEP] identifier[containerElement] operator[SEP] identifier[getSitePath] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getController] operator[SEP] operator[SEP] operator[SEP] identifier[getContentEditorHandler] operator[SEP] operator[SEP] operator[SEP] identifier[openDialog] operator[SEP] identifier[editableData] , literal[boolean] , Other[null] , Other[null] , Other[null] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[CmsPushButton] operator[SEP] identifier[event] operator[SEP] identifier[getSource] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[clearHoverState] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isNotEmptyOrWhitespaceOnly] operator[SEP] identifier[containerElement] operator[SEP] identifier[getNoEditReason] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[listItem] operator[SEP] identifier[disableEdit] operator[SEP] identifier[containerElement] operator[SEP] identifier[getNoEditReason] operator[SEP] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] } Keyword[else] { identifier[listItem] operator[SEP] identifier[disableEdit] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[key] operator[SEP] identifier[Messages] operator[SEP] identifier[GUI_CLIPBOARD_ITEM_CAN_NOT_BE_EDITED_0] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] } } identifier[String] identifier[clientId] operator[=] identifier[containerElement] operator[SEP] identifier[getClientId] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[serverId] operator[=] identifier[CmsContainerpageController] operator[SEP] identifier[getServerId] operator[SEP] identifier[clientId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[CmsUUID] operator[SEP] identifier[isValidUUID] operator[SEP] identifier[serverId] operator[SEP] operator[SEP] { identifier[CmsContextMenuButton] identifier[button] operator[=] Keyword[new] identifier[CmsContextMenuButton] operator[SEP] Keyword[new] identifier[CmsUUID] operator[SEP] identifier[serverId] operator[SEP] , Keyword[new] identifier[CmsContextMenuHandler] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[refreshResource] operator[SEP] identifier[CmsUUID] identifier[structureId] operator[SEP] { identifier[Window] operator[SEP] identifier[Location] operator[SEP] identifier[reload] operator[SEP] operator[SEP] operator[SEP] } } , identifier[AdeContext] operator[SEP] identifier[gallery] operator[SEP] operator[SEP] identifier[listItem] operator[SEP] identifier[getListItemWidget] operator[SEP] operator[SEP] operator[SEP] identifier[addButtonToFront] operator[SEP] identifier[button] operator[SEP] operator[SEP] } identifier[listItem] operator[SEP] identifier[initMoveHandle] operator[SEP] identifier[m_controller] operator[SEP] identifier[getDndHandler] operator[SEP] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] Keyword[return] identifier[listItem] operator[SEP] }
public void setDefaultColorspace(PdfName name, PdfObject obj) { PageResources prs = getPageResources(); prs.addDefaultColor(name, obj); }
class class_name[name] begin[{] method[setDefaultColorspace, return_type[void], modifier[public], parameter[name, obj]] begin[{] local_variable[type[PageResources], prs] call[prs.addDefaultColor, parameter[member[.name], member[.obj]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setDefaultColorspace] operator[SEP] identifier[PdfName] identifier[name] , identifier[PdfObject] identifier[obj] operator[SEP] { identifier[PageResources] identifier[prs] operator[=] identifier[getPageResources] operator[SEP] operator[SEP] operator[SEP] identifier[prs] operator[SEP] identifier[addDefaultColor] operator[SEP] identifier[name] , identifier[obj] operator[SEP] operator[SEP] }
public static String changeTimestampToNewFormatWithDefaultZoneId( String isoTimestamp, DateTimeFormatter newFormat) { return changeTimestampToNewFormat(isoTimestamp, getZoneId(DEFAULT_ZONE_ID), newFormat); }
class class_name[name] begin[{] method[changeTimestampToNewFormatWithDefaultZoneId, return_type[type[String]], modifier[public static], parameter[isoTimestamp, newFormat]] begin[{] return[call[.changeTimestampToNewFormat, parameter[member[.isoTimestamp], call[.getZoneId, parameter[member[.DEFAULT_ZONE_ID]]], member[.newFormat]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[changeTimestampToNewFormatWithDefaultZoneId] operator[SEP] identifier[String] identifier[isoTimestamp] , identifier[DateTimeFormatter] identifier[newFormat] operator[SEP] { Keyword[return] identifier[changeTimestampToNewFormat] operator[SEP] identifier[isoTimestamp] , identifier[getZoneId] operator[SEP] identifier[DEFAULT_ZONE_ID] operator[SEP] , identifier[newFormat] operator[SEP] operator[SEP] }
public void compare(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) { controlTracker.reset(); testTracker.reset(); try { compare(getNullOrNotNull(control), getNullOrNotNull(test), control, test, listener, NODE_TYPE); if (control!=null) { compareNode(control, test, listener, elementQualifier); } } catch (DifferenceFoundException e) { // thrown by the protected compare() method to terminate the // comparison and unwind the call stack back to here } }
class class_name[name] begin[{] method[compare, return_type[void], modifier[public], parameter[control, test, listener, elementQualifier]] begin[{] call[controlTracker.reset, parameter[]] call[testTracker.reset, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=control, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getNullOrNotNull, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=test, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getNullOrNotNull, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=control, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=test, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=listener, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=NODE_TYPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=compare, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=control, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=control, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=test, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=listener, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=elementQualifier, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=compareNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]))], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['DifferenceFoundException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[compare] operator[SEP] identifier[Node] identifier[control] , identifier[Node] identifier[test] , identifier[DifferenceListener] identifier[listener] , identifier[ElementQualifier] identifier[elementQualifier] operator[SEP] { identifier[controlTracker] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[testTracker] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[compare] operator[SEP] identifier[getNullOrNotNull] operator[SEP] identifier[control] operator[SEP] , identifier[getNullOrNotNull] operator[SEP] identifier[test] operator[SEP] , identifier[control] , identifier[test] , identifier[listener] , identifier[NODE_TYPE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[control] operator[!=] Other[null] operator[SEP] { identifier[compareNode] operator[SEP] identifier[control] , identifier[test] , identifier[listener] , identifier[elementQualifier] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[DifferenceFoundException] identifier[e] operator[SEP] { } }
public Verifier newVerifier(String uri) throws VerifierConfigurationException, SAXException, IOException { return compileSchema(uri).newVerifier(); }
class class_name[name] begin[{] method[newVerifier, return_type[type[Verifier]], modifier[public], parameter[uri]] begin[{] return[call[.compileSchema, parameter[member[.uri]]]] end[}] END[}]
Keyword[public] identifier[Verifier] identifier[newVerifier] operator[SEP] identifier[String] identifier[uri] operator[SEP] Keyword[throws] identifier[VerifierConfigurationException] , identifier[SAXException] , identifier[IOException] { Keyword[return] identifier[compileSchema] operator[SEP] identifier[uri] operator[SEP] operator[SEP] identifier[newVerifier] operator[SEP] operator[SEP] operator[SEP] }
@Override protected List<ColumnDescription> getColumnDescriptions( PortletExecutionAggregationDiscriminator reportColumnDiscriminator, PortletExecutionReportForm form) { int groupSize = form.getGroups().size(); int portletSize = form.getPortlets().size(); int executionTypeSize = form.getExecutionTypeNames().size(); String portletName = reportColumnDiscriminator.getPortletMapping().getFname(); String groupName = reportColumnDiscriminator.getAggregatedGroup().getGroupName(); String executionTypeName = reportColumnDiscriminator.getExecutionType().getName(); TitleAndCount[] items = new TitleAndCount[] { new TitleAndCount(portletName, portletSize), new TitleAndCount(executionTypeName, executionTypeSize), new TitleAndCount(groupName, groupSize) }; return titleAndColumnDescriptionStrategy.getColumnDescriptions( items, showFullColumnHeaderDescriptions(form), form); }
class class_name[name] begin[{] method[getColumnDescriptions, return_type[type[List]], modifier[protected], parameter[reportColumnDiscriminator, form]] begin[{] local_variable[type[int], groupSize] local_variable[type[int], portletSize] local_variable[type[int], executionTypeSize] local_variable[type[String], portletName] local_variable[type[String], groupName] local_variable[type[String], executionTypeName] local_variable[type[TitleAndCount], items] return[call[titleAndColumnDescriptionStrategy.getColumnDescriptions, parameter[member[.items], call[.showFullColumnHeaderDescriptions, parameter[member[.form]]], member[.form]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] identifier[List] operator[<] identifier[ColumnDescription] operator[>] identifier[getColumnDescriptions] operator[SEP] identifier[PortletExecutionAggregationDiscriminator] identifier[reportColumnDiscriminator] , identifier[PortletExecutionReportForm] identifier[form] operator[SEP] { Keyword[int] identifier[groupSize] operator[=] identifier[form] operator[SEP] identifier[getGroups] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[portletSize] operator[=] identifier[form] operator[SEP] identifier[getPortlets] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[executionTypeSize] operator[=] identifier[form] operator[SEP] identifier[getExecutionTypeNames] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[portletName] operator[=] identifier[reportColumnDiscriminator] operator[SEP] identifier[getPortletMapping] operator[SEP] operator[SEP] operator[SEP] identifier[getFname] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[groupName] operator[=] identifier[reportColumnDiscriminator] operator[SEP] identifier[getAggregatedGroup] operator[SEP] operator[SEP] operator[SEP] identifier[getGroupName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[executionTypeName] operator[=] identifier[reportColumnDiscriminator] operator[SEP] identifier[getExecutionType] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[TitleAndCount] operator[SEP] operator[SEP] identifier[items] operator[=] Keyword[new] identifier[TitleAndCount] operator[SEP] operator[SEP] { Keyword[new] identifier[TitleAndCount] operator[SEP] identifier[portletName] , identifier[portletSize] operator[SEP] , Keyword[new] identifier[TitleAndCount] operator[SEP] identifier[executionTypeName] , identifier[executionTypeSize] operator[SEP] , Keyword[new] identifier[TitleAndCount] operator[SEP] identifier[groupName] , identifier[groupSize] operator[SEP] } operator[SEP] Keyword[return] identifier[titleAndColumnDescriptionStrategy] operator[SEP] identifier[getColumnDescriptions] operator[SEP] identifier[items] , identifier[showFullColumnHeaderDescriptions] operator[SEP] identifier[form] operator[SEP] , identifier[form] operator[SEP] operator[SEP] }
private boolean contains(Line line) { return contains(line.getX1(), line.getY1()) && contains(line.getX2(), line.getY2()); }
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[private], parameter[line]] begin[{] return[binary_operation[call[.contains, parameter[call[line.getX1, parameter[]], call[line.getY1, parameter[]]]], &&, call[.contains, parameter[call[line.getX2, parameter[]], call[line.getY2, parameter[]]]]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[contains] operator[SEP] identifier[Line] identifier[line] operator[SEP] { Keyword[return] identifier[contains] operator[SEP] identifier[line] operator[SEP] identifier[getX1] operator[SEP] operator[SEP] , identifier[line] operator[SEP] identifier[getY1] operator[SEP] operator[SEP] operator[SEP] operator[&&] identifier[contains] operator[SEP] identifier[line] operator[SEP] identifier[getX2] operator[SEP] operator[SEP] , identifier[line] operator[SEP] identifier[getY2] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public final void setItsType(final EShopItemType pItsType) { this.itsType = pItsType; if (this.itsId == null) { this.itsId = new IdI18nSpecificInList(); } this.itsId.setItsType(this.itsType); }
class class_name[name] begin[{] method[setItsType, return_type[void], modifier[final public], parameter[pItsType]] begin[{] assign[THIS[member[None.itsType]], member[.pItsType]] if[binary_operation[THIS[member[None.itsId]], ==, literal[null]]] begin[{] assign[THIS[member[None.itsId]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IdI18nSpecificInList, sub_type=None))] else begin[{] None end[}] THIS[member[None.itsId]call[None.setItsType, parameter[THIS[member[None.itsType]]]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[setItsType] operator[SEP] Keyword[final] identifier[EShopItemType] identifier[pItsType] operator[SEP] { Keyword[this] operator[SEP] identifier[itsType] operator[=] identifier[pItsType] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[itsId] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[itsId] operator[=] Keyword[new] identifier[IdI18nSpecificInList] operator[SEP] operator[SEP] operator[SEP] } Keyword[this] operator[SEP] identifier[itsId] operator[SEP] identifier[setItsType] operator[SEP] Keyword[this] operator[SEP] identifier[itsType] operator[SEP] operator[SEP] }
public static CommerceOrderItem findByCPInstanceId_Last(long CPInstanceId, OrderByComparator<CommerceOrderItem> orderByComparator) throws com.liferay.commerce.exception.NoSuchOrderItemException { return getPersistence() .findByCPInstanceId_Last(CPInstanceId, orderByComparator); }
class class_name[name] begin[{] method[findByCPInstanceId_Last, return_type[type[CommerceOrderItem]], modifier[public static], parameter[CPInstanceId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceOrderItem] identifier[findByCPInstanceId_Last] operator[SEP] Keyword[long] identifier[CPInstanceId] , identifier[OrderByComparator] operator[<] identifier[CommerceOrderItem] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[exception] operator[SEP] identifier[NoSuchOrderItemException] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] operator[SEP] identifier[findByCPInstanceId_Last] operator[SEP] identifier[CPInstanceId] , identifier[orderByComparator] operator[SEP] operator[SEP] }
public void write(Writer writer) throws IOException { synchronized(writer) { for (int i=0;i<_fields.size();i++) { Field field=(Field)_fields.get(i); if (field!=null) field.write(writer,_version); } writer.write(__CRLF); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[writer]] begin[{] SYNCHRONIZED[member[.writer]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=_fields, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Field, sub_type=None)), name=field)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Field, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=writer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=_version, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=write, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None), label=None))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=_fields, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) call[writer.write, parameter[member[.__CRLF]]] END[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[synchronized] operator[SEP] identifier[writer] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[_fields] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[Field] identifier[field] operator[=] operator[SEP] identifier[Field] operator[SEP] identifier[_fields] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[field] operator[!=] Other[null] operator[SEP] identifier[field] operator[SEP] identifier[write] operator[SEP] identifier[writer] , identifier[_version] operator[SEP] operator[SEP] } identifier[writer] operator[SEP] identifier[write] operator[SEP] identifier[__CRLF] operator[SEP] operator[SEP] } }
public Optional<V> findOne(final K key, final long maxTime, final TimeUnit timeUnit) { return ofNullable(collection() .find(byId(key)) .maxTime(maxTime, timeUnit) .map(this::decode) .first()); }
class class_name[name] begin[{] method[findOne, return_type[type[Optional]], modifier[public], parameter[key, maxTime, timeUnit]] begin[{] return[call[.ofNullable, parameter[call[.collection, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[Optional] operator[<] identifier[V] operator[>] identifier[findOne] operator[SEP] Keyword[final] identifier[K] identifier[key] , Keyword[final] Keyword[long] identifier[maxTime] , Keyword[final] identifier[TimeUnit] identifier[timeUnit] operator[SEP] { Keyword[return] identifier[ofNullable] operator[SEP] identifier[collection] operator[SEP] operator[SEP] operator[SEP] identifier[find] operator[SEP] identifier[byId] operator[SEP] identifier[key] operator[SEP] operator[SEP] operator[SEP] identifier[maxTime] operator[SEP] identifier[maxTime] , identifier[timeUnit] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[this] operator[::] identifier[decode] operator[SEP] operator[SEP] identifier[first] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
class class_name[name] begin[{] method[getAsString, return_type[type[String]], modifier[public static], parameter[headers, name]] begin[{] local_variable[type[V], orig] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=orig, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=orig, selectors=[], type_arguments=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[String] identifier[getAsString] operator[SEP] identifier[Headers] operator[<] identifier[K] , identifier[V] , operator[?] operator[>] identifier[headers] , identifier[K] identifier[name] operator[SEP] { identifier[V] identifier[orig] operator[=] identifier[headers] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[return] identifier[orig] operator[!=] Other[null] operator[?] identifier[orig] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[:] Other[null] operator[SEP] }
public static JaxWsClientMetaData getJaxWsClientMetaData(ModuleMetaData mmd) { JaxWsClientMetaData clientMetaData = null; if (mmd != null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "Getting client metadata from module metadata instance: " + mmd); } JaxWsModuleMetaData moduleMetaData = (JaxWsModuleMetaData) mmd.getMetaData(jaxwsModuleSlot); if (moduleMetaData != null) { clientMetaData = moduleMetaData.getClientMetaData(); } } return clientMetaData; }
class class_name[name] begin[{] method[getJaxWsClientMetaData, return_type[type[JaxWsClientMetaData]], modifier[public static], parameter[mmd]] begin[{] local_variable[type[JaxWsClientMetaData], clientMetaData] if[binary_operation[member[.mmd], !=, literal[null]]] begin[{] if[call[tc.isDebugEnabled, parameter[]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[literal["Getting client metadata from module metadata instance: "], +, member[.mmd]]]] else begin[{] None end[}] local_variable[type[JaxWsModuleMetaData], moduleMetaData] if[binary_operation[member[.moduleMetaData], !=, literal[null]]] begin[{] assign[member[.clientMetaData], call[moduleMetaData.getClientMetaData, parameter[]]] else begin[{] None end[}] else begin[{] None end[}] return[member[.clientMetaData]] end[}] END[}]
Keyword[public] Keyword[static] identifier[JaxWsClientMetaData] identifier[getJaxWsClientMetaData] operator[SEP] identifier[ModuleMetaData] identifier[mmd] operator[SEP] { identifier[JaxWsClientMetaData] identifier[clientMetaData] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[mmd] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[mmd] operator[SEP] operator[SEP] } identifier[JaxWsModuleMetaData] identifier[moduleMetaData] operator[=] operator[SEP] identifier[JaxWsModuleMetaData] operator[SEP] identifier[mmd] operator[SEP] identifier[getMetaData] operator[SEP] identifier[jaxwsModuleSlot] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[moduleMetaData] operator[!=] Other[null] operator[SEP] { identifier[clientMetaData] operator[=] identifier[moduleMetaData] operator[SEP] identifier[getClientMetaData] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] identifier[clientMetaData] operator[SEP] }
public static String buildTypeSourcePath(final String sourcePath, final String type) { val newName = type.replace(".", File.separator); return sourcePath + "/src/main/java/" + newName + ".java"; }
class class_name[name] begin[{] method[buildTypeSourcePath, return_type[type[String]], modifier[public static], parameter[sourcePath, type]] begin[{] local_variable[type[val], newName] return[binary_operation[binary_operation[binary_operation[member[.sourcePath], +, literal["/src/main/java/"]], +, member[.newName]], +, literal[".java"]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[buildTypeSourcePath] operator[SEP] Keyword[final] identifier[String] identifier[sourcePath] , Keyword[final] identifier[String] identifier[type] operator[SEP] { identifier[val] identifier[newName] operator[=] identifier[type] operator[SEP] identifier[replace] operator[SEP] literal[String] , identifier[File] operator[SEP] identifier[separator] operator[SEP] operator[SEP] Keyword[return] identifier[sourcePath] operator[+] literal[String] operator[+] identifier[newName] operator[+] literal[String] operator[SEP] }
public static final <T extends Date> Function<T[], Interval> dateFieldArrayToInterval(DateTimeZone dateTimeZone) { return FnInterval.dateFieldArrayToInterval(dateTimeZone); }
class class_name[name] begin[{] method[dateFieldArrayToInterval, return_type[type[Function]], modifier[final public static], parameter[dateTimeZone]] begin[{] return[call[FnInterval.dateFieldArrayToInterval, parameter[member[.dateTimeZone]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] operator[<] identifier[T] Keyword[extends] identifier[Date] operator[>] identifier[Function] operator[<] identifier[T] operator[SEP] operator[SEP] , identifier[Interval] operator[>] identifier[dateFieldArrayToInterval] operator[SEP] identifier[DateTimeZone] identifier[dateTimeZone] operator[SEP] { Keyword[return] identifier[FnInterval] operator[SEP] identifier[dateFieldArrayToInterval] operator[SEP] identifier[dateTimeZone] operator[SEP] operator[SEP] }
public static Keyword findFirstKeywordWithSameConflicts(final Keyword element, final Grammar grammar) { final List<AbstractRule> conflicting = getConflictingLexerRules(element, grammar); Keyword result = element; Iterator<Keyword> iterator = Iterators.filter( Iterators.filter(EcoreUtil.getAllContents(grammar, true), Keyword.class), new Predicate<Keyword>() { @Override public boolean apply(Keyword param) { if (GrammarUtil.containingParserRule(param) == null) return false; final List<AbstractRule> otherConflicting = getConflictingLexerRules(param, grammar); return otherConflicting != null && otherConflicting.equals(conflicting); } }); if (iterator.hasNext()) result = iterator.next(); return result; }
class class_name[name] begin[{] method[findFirstKeywordWithSameConflicts, return_type[type[Keyword]], modifier[public static], parameter[element, grammar]] begin[{] local_variable[type[List], conflicting] local_variable[type[Keyword], result] local_variable[type[Iterator], iterator] if[call[iterator.hasNext, parameter[]]] begin[{] assign[member[.result], call[iterator.next, parameter[]]] else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Keyword] identifier[findFirstKeywordWithSameConflicts] operator[SEP] Keyword[final] identifier[Keyword] identifier[element] , Keyword[final] identifier[Grammar] identifier[grammar] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[AbstractRule] operator[>] identifier[conflicting] operator[=] identifier[getConflictingLexerRules] operator[SEP] identifier[element] , identifier[grammar] operator[SEP] operator[SEP] identifier[Keyword] identifier[result] operator[=] identifier[element] operator[SEP] identifier[Iterator] operator[<] identifier[Keyword] operator[>] identifier[iterator] operator[=] identifier[Iterators] operator[SEP] identifier[filter] operator[SEP] identifier[Iterators] operator[SEP] identifier[filter] operator[SEP] identifier[EcoreUtil] operator[SEP] identifier[getAllContents] operator[SEP] identifier[grammar] , literal[boolean] operator[SEP] , identifier[Keyword] operator[SEP] Keyword[class] operator[SEP] , Keyword[new] identifier[Predicate] operator[<] identifier[Keyword] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[apply] operator[SEP] identifier[Keyword] identifier[param] operator[SEP] { Keyword[if] operator[SEP] identifier[GrammarUtil] operator[SEP] identifier[containingParserRule] operator[SEP] identifier[param] operator[SEP] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[AbstractRule] operator[>] identifier[otherConflicting] operator[=] identifier[getConflictingLexerRules] operator[SEP] identifier[param] , identifier[grammar] operator[SEP] operator[SEP] Keyword[return] identifier[otherConflicting] operator[!=] Other[null] operator[&&] identifier[otherConflicting] operator[SEP] identifier[equals] operator[SEP] identifier[conflicting] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[iterator] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[=] identifier[iterator] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[SEP] }
public Collection<Group> getGroups() throws FlickrException { GroupList<Group> groups = new GroupList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GROUPS); Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { throw new FlickrException(response.getErrorCode(), response.getErrorMessage()); } Element groupsElement = response.getPayload(); groups.setPage(groupsElement.getAttribute("page")); groups.setPages(groupsElement.getAttribute("pages")); groups.setPerPage(groupsElement.getAttribute("perpage")); groups.setTotal(groupsElement.getAttribute("total")); NodeList groupNodes = groupsElement.getElementsByTagName("group"); for (int i = 0; i < groupNodes.getLength(); i++) { Element groupElement = (Element) groupNodes.item(i); Group group = new Group(); group.setId(groupElement.getAttribute("id")); group.setName(groupElement.getAttribute("name")); group.setAdmin("1".equals(groupElement.getAttribute("admin"))); group.setPrivacy(groupElement.getAttribute("privacy")); group.setIconServer(groupElement.getAttribute("iconserver")); group.setIconFarm(groupElement.getAttribute("iconfarm")); group.setPhotoCount(groupElement.getAttribute("photos")); groups.add(group); } return groups; }
class class_name[name] begin[{] method[getGroups, return_type[type[Collection]], modifier[public], parameter[]] begin[{] local_variable[type[GroupList], groups] local_variable[type[Map], parameters] call[parameters.put, parameter[literal["method"], member[.METHOD_GET_GROUPS]]] local_variable[type[Response], response] if[call[response.isError, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getErrorCode, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getErrorMessage, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=FlickrException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[Element], groupsElement] call[groups.setPage, parameter[call[groupsElement.getAttribute, parameter[literal["page"]]]]] call[groups.setPages, parameter[call[groupsElement.getAttribute, parameter[literal["pages"]]]]] call[groups.setPerPage, parameter[call[groupsElement.getAttribute, parameter[literal["perpage"]]]]] call[groups.setTotal, parameter[call[groupsElement.getAttribute, parameter[literal["total"]]]]] local_variable[type[NodeList], groupNodes] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=item, postfix_operators=[], prefix_operators=[], qualifier=groupNodes, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Element, sub_type=None)), name=groupElement)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Element, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Group, sub_type=None)), name=group)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Group, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="id")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=setId, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="name")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=setName, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="admin")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], value="1")], member=setAdmin, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="privacy")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=setPrivacy, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="iconserver")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=setIconServer, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="iconfarm")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=setIconFarm, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="photos")], member=getAttribute, postfix_operators=[], prefix_operators=[], qualifier=groupElement, selectors=[], type_arguments=None)], member=setPhotoCount, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=group, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=groups, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=getLength, postfix_operators=[], prefix_operators=[], qualifier=groupNodes, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.groups]] end[}] END[}]
Keyword[public] identifier[Collection] operator[<] identifier[Group] operator[>] identifier[getGroups] operator[SEP] operator[SEP] Keyword[throws] identifier[FlickrException] { identifier[GroupList] operator[<] identifier[Group] operator[>] identifier[groups] operator[=] Keyword[new] identifier[GroupList] operator[<] identifier[Group] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[parameters] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[parameters] operator[SEP] identifier[put] operator[SEP] literal[String] , identifier[METHOD_GET_GROUPS] operator[SEP] operator[SEP] identifier[Response] identifier[response] operator[=] identifier[transport] operator[SEP] identifier[get] operator[SEP] identifier[transport] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] , identifier[parameters] , identifier[apiKey] , identifier[sharedSecret] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[response] operator[SEP] identifier[isError] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[FlickrException] operator[SEP] identifier[response] operator[SEP] identifier[getErrorCode] operator[SEP] operator[SEP] , identifier[response] operator[SEP] identifier[getErrorMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[Element] identifier[groupsElement] operator[=] identifier[response] operator[SEP] identifier[getPayload] operator[SEP] operator[SEP] operator[SEP] identifier[groups] operator[SEP] identifier[setPage] operator[SEP] identifier[groupsElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[groups] operator[SEP] identifier[setPages] operator[SEP] identifier[groupsElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[groups] operator[SEP] identifier[setPerPage] operator[SEP] identifier[groupsElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[groups] operator[SEP] identifier[setTotal] operator[SEP] identifier[groupsElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[NodeList] identifier[groupNodes] operator[=] identifier[groupsElement] operator[SEP] identifier[getElementsByTagName] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[groupNodes] operator[SEP] identifier[getLength] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[Element] identifier[groupElement] operator[=] operator[SEP] identifier[Element] operator[SEP] identifier[groupNodes] operator[SEP] identifier[item] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[Group] identifier[group] operator[=] Keyword[new] identifier[Group] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setId] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setName] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setAdmin] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setPrivacy] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setIconServer] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setIconFarm] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setPhotoCount] operator[SEP] identifier[groupElement] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[groups] operator[SEP] identifier[add] operator[SEP] identifier[group] operator[SEP] operator[SEP] } Keyword[return] identifier[groups] operator[SEP] }
private void flushBuffer() throws IOException { if (buffer.position() > 0) { buffer.flip(); writeCompressed(buffer); buffer.clear(); } }
class class_name[name] begin[{] method[flushBuffer, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[call[buffer.position, parameter[]], >, literal[0]]] begin[{] call[buffer.flip, parameter[]] call[.writeCompressed, parameter[member[.buffer]]] call[buffer.clear, parameter[]] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[flushBuffer] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[buffer] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[buffer] operator[SEP] identifier[flip] operator[SEP] operator[SEP] operator[SEP] identifier[writeCompressed] operator[SEP] identifier[buffer] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] } }
public static <T> Expiring<T> of(T... elements) { return of(Arrays.asList(checkNotNull(elements))); }
class class_name[name] begin[{] method[of, return_type[type[Expiring]], modifier[public static], parameter[elements]] begin[{] return[call[.of, parameter[call[Arrays.asList, parameter[call[.checkNotNull, parameter[member[.elements]]]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Expiring] operator[<] identifier[T] operator[>] identifier[of] operator[SEP] identifier[T] operator[...] identifier[elements] operator[SEP] { Keyword[return] identifier[of] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[elements] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public Closeable onConnectionStateChange(final Consumer<BitfinexConnectionStateEnum> listener) { connectionStateConsumers.offer(listener); return () -> connectionStateConsumers.remove(listener); }
class class_name[name] begin[{] method[onConnectionStateChange, return_type[type[Closeable]], modifier[public], parameter[listener]] begin[{] call[connectionStateConsumers.offer, parameter[member[.listener]]] return[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=listener, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=remove, postfix_operators=[], prefix_operators=[], qualifier=connectionStateConsumers, selectors=[], type_arguments=None), parameters=[])] end[}] END[}]
Keyword[public] identifier[Closeable] identifier[onConnectionStateChange] operator[SEP] Keyword[final] identifier[Consumer] operator[<] identifier[BitfinexConnectionStateEnum] operator[>] identifier[listener] operator[SEP] { identifier[connectionStateConsumers] operator[SEP] identifier[offer] operator[SEP] identifier[listener] operator[SEP] operator[SEP] Keyword[return] operator[SEP] operator[SEP] operator[->] identifier[connectionStateConsumers] operator[SEP] identifier[remove] operator[SEP] identifier[listener] operator[SEP] operator[SEP] }
public static boolean isEqual(byte[] digesta, byte[] digestb) { if (digesta == digestb) return true; if (digesta == null || digestb == null) { return false; } if (digesta.length != digestb.length) { return false; } int result = 0; // time-constant comparison for (int i = 0; i < digesta.length; i++) { result |= digesta[i] ^ digestb[i]; } return result == 0; }
class class_name[name] begin[{] method[isEqual, return_type[type[boolean]], modifier[public static], parameter[digesta, digestb]] begin[{] if[binary_operation[member[.digesta], ==, member[.digestb]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_operation[binary_operation[member[.digesta], ==, literal[null]], ||, binary_operation[member[.digestb], ==, literal[null]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[member[digesta.length], !=, member[digestb.length]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[int], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=|=, value=BinaryOperation(operandl=MemberReference(member=digesta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=digestb, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=^)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=digesta, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[binary_operation[member[.result], ==, literal[0]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isEqual] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[digesta] , Keyword[byte] operator[SEP] operator[SEP] identifier[digestb] operator[SEP] { Keyword[if] operator[SEP] identifier[digesta] operator[==] identifier[digestb] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[digesta] operator[==] Other[null] operator[||] identifier[digestb] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[digesta] operator[SEP] identifier[length] operator[!=] identifier[digestb] operator[SEP] identifier[length] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[int] identifier[result] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[digesta] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[result] operator[|=] identifier[digesta] operator[SEP] identifier[i] operator[SEP] operator[^] identifier[digestb] operator[SEP] identifier[i] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[==] Other[0] operator[SEP] }
public static CouchbaseCluster fromConnectionString(final String connectionString) { return new CouchbaseCluster( DefaultCouchbaseEnvironment.create(), ConnectionString.create(connectionString), false ); }
class class_name[name] begin[{] method[fromConnectionString, return_type[type[CouchbaseCluster]], modifier[public static], parameter[connectionString]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=create, postfix_operators=[], prefix_operators=[], qualifier=DefaultCouchbaseEnvironment, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=connectionString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=ConnectionString, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CouchbaseCluster, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[CouchbaseCluster] identifier[fromConnectionString] operator[SEP] Keyword[final] identifier[String] identifier[connectionString] operator[SEP] { Keyword[return] Keyword[new] identifier[CouchbaseCluster] operator[SEP] identifier[DefaultCouchbaseEnvironment] operator[SEP] identifier[create] operator[SEP] operator[SEP] , identifier[ConnectionString] operator[SEP] identifier[create] operator[SEP] identifier[connectionString] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] }
synchronized Thread triggerUpdate() { if (inProgress != null) { if (!inProgress.isAlive()) { LOGGER.log(Level.WARNING, "Previous {0} monitoring activity died without cleaning up after itself", getDisplayName()); inProgress = null; } else if (System.currentTimeMillis() > inProgressStarted + getMonitoringTimeOut() + 1000) { // maybe it got stuck? LOGGER.log(Level.WARNING, "Previous {0} monitoring activity still in progress. Interrupting", getDisplayName()); inProgress.interrupt(); inProgress = null; // we interrupted the old one so it's now dead to us. } else { // return the in progress return inProgress; } } final Record t = new Record(); t.start(); // only store the new thread if we started it inProgress = t; inProgressStarted = System.currentTimeMillis(); return inProgress; }
class class_name[name] begin[{] method[triggerUpdate, return_type[type[Thread]], modifier[synchronized], parameter[]] begin[{] if[binary_operation[member[.inProgress], !=, literal[null]]] begin[{] if[call[inProgress.isAlive, parameter[]]] begin[{] call[LOGGER.log, parameter[member[Level.WARNING], literal["Previous {0} monitoring activity died without cleaning up after itself"], call[.getDisplayName, parameter[]]]] assign[member[.inProgress], literal[null]] else begin[{] if[binary_operation[call[System.currentTimeMillis, parameter[]], >, binary_operation[binary_operation[member[.inProgressStarted], +, call[.getMonitoringTimeOut, parameter[]]], +, literal[1000]]]] begin[{] call[LOGGER.log, parameter[member[Level.WARNING], literal["Previous {0} monitoring activity still in progress. Interrupting"], call[.getDisplayName, parameter[]]]] call[inProgress.interrupt, parameter[]] assign[member[.inProgress], literal[null]] else begin[{] return[member[.inProgress]] end[}] end[}] else begin[{] None end[}] local_variable[type[Record], t] call[t.start, parameter[]] assign[member[.inProgress], member[.t]] assign[member[.inProgressStarted], call[System.currentTimeMillis, parameter[]]] return[member[.inProgress]] end[}] END[}]
Keyword[synchronized] identifier[Thread] identifier[triggerUpdate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[inProgress] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[inProgress] operator[SEP] identifier[isAlive] operator[SEP] operator[SEP] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[WARNING] , literal[String] , identifier[getDisplayName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[inProgress] operator[=] Other[null] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[>] identifier[inProgressStarted] operator[+] identifier[getMonitoringTimeOut] operator[SEP] operator[SEP] operator[+] Other[1000] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[WARNING] , literal[String] , identifier[getDisplayName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[inProgress] operator[SEP] identifier[interrupt] operator[SEP] operator[SEP] operator[SEP] identifier[inProgress] operator[=] Other[null] operator[SEP] } Keyword[else] { Keyword[return] identifier[inProgress] operator[SEP] } } Keyword[final] identifier[Record] identifier[t] operator[=] Keyword[new] identifier[Record] operator[SEP] operator[SEP] operator[SEP] identifier[t] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] identifier[inProgress] operator[=] identifier[t] operator[SEP] identifier[inProgressStarted] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[inProgress] operator[SEP] }
@Override public GetUICustomizationResult getUICustomization(GetUICustomizationRequest request) { request = beforeClientExecution(request); return executeGetUICustomization(request); }
class class_name[name] begin[{] method[getUICustomization, return_type[type[GetUICustomizationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetUICustomization, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[GetUICustomizationResult] identifier[getUICustomization] operator[SEP] identifier[GetUICustomizationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeGetUICustomization] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
@Override protected void defineWidgets() { super.defineWidgets(); // widgets to display // new indexsource addWidget( new CmsWidgetDialogParameter(this, "type", PAGES[0], new CmsSelectWidget(getTypeWidgetConfiguration()))); addWidget(new CmsWidgetDialogParameter(m_mapping, "param", "", PAGES[0], new CmsInputWidget(), 0, 1)); addWidget(new CmsWidgetDialogParameter(m_mapping, "defaultValue", "", PAGES[0], new CmsInputWidget(), 0, 1)); }
class class_name[name] begin[{] method[defineWidgets, return_type[void], modifier[protected], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=defineWidgets, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) call[.addWidget, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="type"), MemberReference(member=PAGES, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), ClassCreator(arguments=[MethodInvocation(arguments=[], member=getTypeWidgetConfiguration, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsSelectWidget, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsWidgetDialogParameter, sub_type=None))]] call[.addWidget, parameter[ClassCreator(arguments=[MemberReference(member=m_mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="param"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), MemberReference(member=PAGES, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsInputWidget, sub_type=None)), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsWidgetDialogParameter, sub_type=None))]] call[.addWidget, parameter[ClassCreator(arguments=[MemberReference(member=m_mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="defaultValue"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), MemberReference(member=PAGES, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsInputWidget, sub_type=None)), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsWidgetDialogParameter, sub_type=None))]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[defineWidgets] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[defineWidgets] operator[SEP] operator[SEP] operator[SEP] identifier[addWidget] operator[SEP] Keyword[new] identifier[CmsWidgetDialogParameter] operator[SEP] Keyword[this] , literal[String] , identifier[PAGES] operator[SEP] Other[0] operator[SEP] , Keyword[new] identifier[CmsSelectWidget] operator[SEP] identifier[getTypeWidgetConfiguration] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[addWidget] operator[SEP] Keyword[new] identifier[CmsWidgetDialogParameter] operator[SEP] identifier[m_mapping] , literal[String] , literal[String] , identifier[PAGES] operator[SEP] Other[0] operator[SEP] , Keyword[new] identifier[CmsInputWidget] operator[SEP] operator[SEP] , Other[0] , Other[1] operator[SEP] operator[SEP] operator[SEP] identifier[addWidget] operator[SEP] Keyword[new] identifier[CmsWidgetDialogParameter] operator[SEP] identifier[m_mapping] , literal[String] , literal[String] , identifier[PAGES] operator[SEP] Other[0] operator[SEP] , Keyword[new] identifier[CmsInputWidget] operator[SEP] operator[SEP] , Other[0] , Other[1] operator[SEP] operator[SEP] operator[SEP] }
public static int inc(int value, int r, int g, int b) { final int alpha = value >> Constant.BYTE_4 & 0xFF; if (alpha == 0) { return 0; } final int red = value >> Constant.BYTE_3 & 0xFF; final int green = value >> Constant.BYTE_2 & 0xFF; final int blue = value >> Constant.BYTE_1 & 0xFF; final int alphaMask = (UtilMath.clamp(alpha, 0, 255) & 0xFF) << Constant.BYTE_4; final int redMask = (UtilMath.clamp(red + r, 0, 255) & 0xFF) << Constant.BYTE_3; final int greenMask = (UtilMath.clamp(green + g, 0, 255) & 0xFF) << Constant.BYTE_2; final int blueMask = (UtilMath.clamp(blue + b, 0, 255) & 0xFF) << Constant.BYTE_1; return alphaMask | redMask | greenMask | blueMask; }
class class_name[name] begin[{] method[inc, return_type[type[int]], modifier[public static], parameter[value, r, g, b]] begin[{] local_variable[type[int], alpha] if[binary_operation[member[.alpha], ==, literal[0]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[int], red] local_variable[type[int], green] local_variable[type[int], blue] local_variable[type[int], alphaMask] local_variable[type[int], redMask] local_variable[type[int], greenMask] local_variable[type[int], blueMask] return[binary_operation[binary_operation[binary_operation[member[.alphaMask], |, member[.redMask]], |, member[.greenMask]], |, member[.blueMask]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[inc] operator[SEP] Keyword[int] identifier[value] , Keyword[int] identifier[r] , Keyword[int] identifier[g] , Keyword[int] identifier[b] operator[SEP] { Keyword[final] Keyword[int] identifier[alpha] operator[=] identifier[value] operator[>] operator[>] identifier[Constant] operator[SEP] identifier[BYTE_4] operator[&] literal[Integer] operator[SEP] Keyword[if] operator[SEP] identifier[alpha] operator[==] Other[0] operator[SEP] { Keyword[return] Other[0] operator[SEP] } Keyword[final] Keyword[int] identifier[red] operator[=] identifier[value] operator[>] operator[>] identifier[Constant] operator[SEP] identifier[BYTE_3] operator[&] literal[Integer] operator[SEP] Keyword[final] Keyword[int] identifier[green] operator[=] identifier[value] operator[>] operator[>] identifier[Constant] operator[SEP] identifier[BYTE_2] operator[&] literal[Integer] operator[SEP] Keyword[final] Keyword[int] identifier[blue] operator[=] identifier[value] operator[>] operator[>] identifier[Constant] operator[SEP] identifier[BYTE_1] operator[&] literal[Integer] operator[SEP] Keyword[final] Keyword[int] identifier[alphaMask] operator[=] operator[SEP] identifier[UtilMath] operator[SEP] identifier[clamp] operator[SEP] identifier[alpha] , Other[0] , Other[255] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[<<] identifier[Constant] operator[SEP] identifier[BYTE_4] operator[SEP] Keyword[final] Keyword[int] identifier[redMask] operator[=] operator[SEP] identifier[UtilMath] operator[SEP] identifier[clamp] operator[SEP] identifier[red] operator[+] identifier[r] , Other[0] , Other[255] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[<<] identifier[Constant] operator[SEP] identifier[BYTE_3] operator[SEP] Keyword[final] Keyword[int] identifier[greenMask] operator[=] operator[SEP] identifier[UtilMath] operator[SEP] identifier[clamp] operator[SEP] identifier[green] operator[+] identifier[g] , Other[0] , Other[255] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[<<] identifier[Constant] operator[SEP] identifier[BYTE_2] operator[SEP] Keyword[final] Keyword[int] identifier[blueMask] operator[=] operator[SEP] identifier[UtilMath] operator[SEP] identifier[clamp] operator[SEP] identifier[blue] operator[+] identifier[b] , Other[0] , Other[255] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[<<] identifier[Constant] operator[SEP] identifier[BYTE_1] operator[SEP] Keyword[return] identifier[alphaMask] operator[|] identifier[redMask] operator[|] identifier[greenMask] operator[|] identifier[blueMask] operator[SEP] }
public void releaseReplicaSyncPermits(int permits) { assert permits > 0 : "Invalid permits: " + permits; replicaSyncSemaphore.release(permits); if (logger.isFinestEnabled()) { logger.finest("Released " + permits + " replica sync permits. Available permits: " + replicaSyncSemaphore.availablePermits()); } assert availableReplicaSyncPermits() <= maxParallelReplications : "Number of replica sync permits exceeded the configured number!"; }
class class_name[name] begin[{] method[releaseReplicaSyncPermits, return_type[void], modifier[public], parameter[permits]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=permits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), label=None, value=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid permits: "), operandr=MemberReference(member=permits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)) call[replicaSyncSemaphore.release, parameter[member[.permits]]] if[call[logger.isFinestEnabled, parameter[]]] begin[{] call[logger.finest, parameter[binary_operation[binary_operation[binary_operation[literal["Released "], +, member[.permits]], +, literal[" replica sync permits. Available permits: "]], +, call[replicaSyncSemaphore.availablePermits, parameter[]]]]] else begin[{] None end[}] AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=availableReplicaSyncPermits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MemberReference(member=maxParallelReplications, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), label=None, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Number of replica sync permits exceeded the configured number!")) end[}] END[}]
Keyword[public] Keyword[void] identifier[releaseReplicaSyncPermits] operator[SEP] Keyword[int] identifier[permits] operator[SEP] { Keyword[assert] identifier[permits] operator[>] Other[0] operator[:] literal[String] operator[+] identifier[permits] operator[SEP] identifier[replicaSyncSemaphore] operator[SEP] identifier[release] operator[SEP] identifier[permits] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isFinestEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[finest] operator[SEP] literal[String] operator[+] identifier[permits] operator[+] literal[String] operator[+] identifier[replicaSyncSemaphore] operator[SEP] identifier[availablePermits] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[assert] identifier[availableReplicaSyncPermits] operator[SEP] operator[SEP] operator[<=] identifier[maxParallelReplications] operator[:] literal[String] operator[SEP] }
private static boolean compareOrdered(DualKey dualKey, LinkedList<DualKey> stack, Collection visited) { Collection col1 = (Collection) dualKey._key1; Collection col2 = (Collection) dualKey._key2; if (ProxyHelper.isProxyCollection(col1) || ProxyHelper.isProxyCollection(col2)) { return false; } if (col1.size() != col2.size()) { return false; } Iterator i1 = col1.iterator(); Iterator i2 = col2.iterator(); while (i1.hasNext()) { DualKey dk = new DualKey(i1.next(), i2.next()); if (!visited.contains(dk)) { stack.addFirst(dk); } } return true; }
class class_name[name] begin[{] method[compareOrdered, return_type[type[boolean]], modifier[private static], parameter[dualKey, stack, visited]] begin[{] local_variable[type[Collection], col1] local_variable[type[Collection], col2] if[binary_operation[call[ProxyHelper.isProxyCollection, parameter[member[.col1]]], ||, call[ProxyHelper.isProxyCollection, parameter[member[.col2]]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[call[col1.size, parameter[]], !=, call[col2.size, parameter[]]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[Iterator], i1] local_variable[type[Iterator], i2] while[call[i1.hasNext, parameter[]]] begin[{] local_variable[type[DualKey], dk] if[call[visited.contains, parameter[member[.dk]]]] begin[{] call[stack.addFirst, parameter[member[.dk]]] else begin[{] None end[}] end[}] return[literal[true]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[boolean] identifier[compareOrdered] operator[SEP] identifier[DualKey] identifier[dualKey] , identifier[LinkedList] operator[<] identifier[DualKey] operator[>] identifier[stack] , identifier[Collection] identifier[visited] operator[SEP] { identifier[Collection] identifier[col1] operator[=] operator[SEP] identifier[Collection] operator[SEP] identifier[dualKey] operator[SEP] identifier[_key1] operator[SEP] identifier[Collection] identifier[col2] operator[=] operator[SEP] identifier[Collection] operator[SEP] identifier[dualKey] operator[SEP] identifier[_key2] operator[SEP] Keyword[if] operator[SEP] identifier[ProxyHelper] operator[SEP] identifier[isProxyCollection] operator[SEP] identifier[col1] operator[SEP] operator[||] identifier[ProxyHelper] operator[SEP] identifier[isProxyCollection] operator[SEP] identifier[col2] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[col1] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] identifier[col2] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[Iterator] identifier[i1] operator[=] identifier[col1] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] identifier[Iterator] identifier[i2] operator[=] identifier[col2] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[i1] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { identifier[DualKey] identifier[dk] operator[=] Keyword[new] identifier[DualKey] operator[SEP] identifier[i1] operator[SEP] identifier[next] operator[SEP] operator[SEP] , identifier[i2] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[visited] operator[SEP] identifier[contains] operator[SEP] identifier[dk] operator[SEP] operator[SEP] { identifier[stack] operator[SEP] identifier[addFirst] operator[SEP] identifier[dk] operator[SEP] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public <T> Collection<T> collectAll(InputStream inputStream, Class<T> tClass, JsonPath... paths) { CollectAllListener<T> listener = new CollectAllListener<T>(jsonProvider, tClass); SurfingConfiguration.Builder builder = configBuilder(); for (JsonPath jsonPath : paths) { builder.bind(jsonPath, listener); } surf(inputStream, builder.build()); return listener.getCollection(); }
class class_name[name] begin[{] method[collectAll, return_type[type[Collection]], modifier[public], parameter[inputStream, tClass, paths]] begin[{] local_variable[type[CollectAllListener], listener] local_variable[type[SurfingConfiguration], builder] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=jsonPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=listener, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=bind, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=paths, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=jsonPath)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=JsonPath, sub_type=None))), label=None) call[.surf, parameter[member[.inputStream], call[builder.build, parameter[]]]] return[call[listener.getCollection, parameter[]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] operator[>] identifier[Collection] operator[<] identifier[T] operator[>] identifier[collectAll] operator[SEP] identifier[InputStream] identifier[inputStream] , identifier[Class] operator[<] identifier[T] operator[>] identifier[tClass] , identifier[JsonPath] operator[...] identifier[paths] operator[SEP] { identifier[CollectAllListener] operator[<] identifier[T] operator[>] identifier[listener] operator[=] Keyword[new] identifier[CollectAllListener] operator[<] identifier[T] operator[>] operator[SEP] identifier[jsonProvider] , identifier[tClass] operator[SEP] operator[SEP] identifier[SurfingConfiguration] operator[SEP] identifier[Builder] identifier[builder] operator[=] identifier[configBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[JsonPath] identifier[jsonPath] operator[:] identifier[paths] operator[SEP] { identifier[builder] operator[SEP] identifier[bind] operator[SEP] identifier[jsonPath] , identifier[listener] operator[SEP] operator[SEP] } identifier[surf] operator[SEP] identifier[inputStream] , identifier[builder] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[listener] operator[SEP] identifier[getCollection] operator[SEP] operator[SEP] operator[SEP] }
private Matrix[] decomposeNonSymmetricMatrix(Matrix matrix) { Matrix A = matrix.copy(); int n = matrix.columns(); Matrix v = SparseMatrix.identity(n); Vector d = DenseVector.zero(n); Vector e = DenseVector.zero(n); Matrix h = A.copy(); Vector ort = DenseVector.zero(n); // Reduce to Hessenberg form. orthes(h, v, ort); // Reduce Hessenberg to real Schur form. hqr2(h, v, d, e); Matrix dd = matrix.blankOfShape(n, n); for (int i = 0; i < n; i++) { dd.set(i, i, d.get(i)); if (e.get(i) > 0) { dd.set(i, i + 1, e.get(i)); } else if (e.get(i) < 0) { dd.set(i, i - 1, e.get(i)); } } return new Matrix[] { v, dd }; }
class class_name[name] begin[{] method[decomposeNonSymmetricMatrix, return_type[type[Matrix]], modifier[private], parameter[matrix]] begin[{] local_variable[type[Matrix], A] local_variable[type[int], n] local_variable[type[Matrix], v] local_variable[type[Vector], d] local_variable[type[Vector], e] local_variable[type[Matrix], h] local_variable[type[Vector], ort] call[.orthes, parameter[member[.h], member[.v], member[.ort]]] call[.hqr2, parameter[member[.h], member[.v], member[.d], member[.e]]] local_variable[type[Matrix], dd] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=d, selectors=[], type_arguments=None)], member=set, postfix_operators=[], prefix_operators=[], qualifier=dd, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None)], member=set, postfix_operators=[], prefix_operators=[], qualifier=dd, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None)], member=set, postfix_operators=[], prefix_operators=[], qualifier=dd, selectors=[], type_arguments=None), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=dd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Matrix, sub_type=None))] end[}] END[}]
Keyword[private] identifier[Matrix] operator[SEP] operator[SEP] identifier[decomposeNonSymmetricMatrix] operator[SEP] identifier[Matrix] identifier[matrix] operator[SEP] { identifier[Matrix] identifier[A] operator[=] identifier[matrix] operator[SEP] identifier[copy] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[n] operator[=] identifier[matrix] operator[SEP] identifier[columns] operator[SEP] operator[SEP] operator[SEP] identifier[Matrix] identifier[v] operator[=] identifier[SparseMatrix] operator[SEP] identifier[identity] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[Vector] identifier[d] operator[=] identifier[DenseVector] operator[SEP] identifier[zero] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[Vector] identifier[e] operator[=] identifier[DenseVector] operator[SEP] identifier[zero] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[Matrix] identifier[h] operator[=] identifier[A] operator[SEP] identifier[copy] operator[SEP] operator[SEP] operator[SEP] identifier[Vector] identifier[ort] operator[=] identifier[DenseVector] operator[SEP] identifier[zero] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[orthes] operator[SEP] identifier[h] , identifier[v] , identifier[ort] operator[SEP] operator[SEP] identifier[hqr2] operator[SEP] identifier[h] , identifier[v] , identifier[d] , identifier[e] operator[SEP] operator[SEP] identifier[Matrix] identifier[dd] operator[=] identifier[matrix] operator[SEP] identifier[blankOfShape] operator[SEP] identifier[n] , identifier[n] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[n] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[dd] operator[SEP] identifier[set] operator[SEP] identifier[i] , identifier[i] , identifier[d] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[dd] operator[SEP] identifier[set] operator[SEP] identifier[i] , identifier[i] operator[+] Other[1] , identifier[e] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[<] Other[0] operator[SEP] { identifier[dd] operator[SEP] identifier[set] operator[SEP] identifier[i] , identifier[i] operator[-] Other[1] , identifier[e] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] Keyword[new] identifier[Matrix] operator[SEP] operator[SEP] { identifier[v] , identifier[dd] } operator[SEP] }
public static String encodeBase64(final byte[] data, final boolean chunked) { if (data != null && data.length > 0) { if (chunked) { return BASE64_CHUNKED_ENCODER.encodeToString(data).trim(); } return BASE64_UNCHUNKED_ENCODER.encodeToString(data).trim(); } return StringUtils.EMPTY; }
class class_name[name] begin[{] method[encodeBase64, return_type[type[String]], modifier[public static], parameter[data, chunked]] begin[{] if[binary_operation[binary_operation[member[.data], !=, literal[null]], &&, binary_operation[member[data.length], >, literal[0]]]] begin[{] if[member[.chunked]] begin[{] return[call[BASE64_CHUNKED_ENCODER.encodeToString, parameter[member[.data]]]] else begin[{] None end[}] return[call[BASE64_UNCHUNKED_ENCODER.encodeToString, parameter[member[.data]]]] else begin[{] None end[}] return[member[StringUtils.EMPTY]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[encodeBase64] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[final] Keyword[boolean] identifier[chunked] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[!=] Other[null] operator[&&] identifier[data] operator[SEP] identifier[length] operator[>] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[chunked] operator[SEP] { Keyword[return] identifier[BASE64_CHUNKED_ENCODER] operator[SEP] identifier[encodeToString] operator[SEP] identifier[data] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[BASE64_UNCHUNKED_ENCODER] operator[SEP] identifier[encodeToString] operator[SEP] identifier[data] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[StringUtils] operator[SEP] identifier[EMPTY] operator[SEP] }
@Override public RevokeFlowEntitlementResult revokeFlowEntitlement(RevokeFlowEntitlementRequest request) { request = beforeClientExecution(request); return executeRevokeFlowEntitlement(request); }
class class_name[name] begin[{] method[revokeFlowEntitlement, return_type[type[RevokeFlowEntitlementResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeRevokeFlowEntitlement, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[RevokeFlowEntitlementResult] identifier[revokeFlowEntitlement] operator[SEP] identifier[RevokeFlowEntitlementRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeRevokeFlowEntitlement] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public static int cuPointerGetAttribute(Pointer data, int attribute, CUdeviceptr ptr) { return checkResult(cuPointerGetAttributeNative(data, attribute, ptr)); }
class class_name[name] begin[{] method[cuPointerGetAttribute, return_type[type[int]], modifier[public static], parameter[data, attribute, ptr]] begin[{] return[call[.checkResult, parameter[call[.cuPointerGetAttributeNative, parameter[member[.data], member[.attribute], member[.ptr]]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[cuPointerGetAttribute] operator[SEP] identifier[Pointer] identifier[data] , Keyword[int] identifier[attribute] , identifier[CUdeviceptr] identifier[ptr] operator[SEP] { Keyword[return] identifier[checkResult] operator[SEP] identifier[cuPointerGetAttributeNative] operator[SEP] identifier[data] , identifier[attribute] , identifier[ptr] operator[SEP] operator[SEP] operator[SEP] }
public com.google.api.ads.adwords.axis.v201809.cm.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() { return vanityPharmaDisplayUrlMode; }
class class_name[name] begin[{] method[getVanityPharmaDisplayUrlMode, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.vanityPharmaDisplayUrlMode]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] identifier[VanityPharmaDisplayUrlMode] identifier[getVanityPharmaDisplayUrlMode] operator[SEP] operator[SEP] { Keyword[return] identifier[vanityPharmaDisplayUrlMode] operator[SEP] }
public static String applyBaseUrl(OrchidContext context, String url) { return context.getBaseUrl() + "/" + OrchidUtils.normalizePath(url); }
class class_name[name] begin[{] method[applyBaseUrl, return_type[type[String]], modifier[public static], parameter[context, url]] begin[{] return[binary_operation[binary_operation[call[context.getBaseUrl, parameter[]], +, literal["/"]], +, call[OrchidUtils.normalizePath, parameter[member[.url]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[applyBaseUrl] operator[SEP] identifier[OrchidContext] identifier[context] , identifier[String] identifier[url] operator[SEP] { Keyword[return] identifier[context] operator[SEP] identifier[getBaseUrl] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[OrchidUtils] operator[SEP] identifier[normalizePath] operator[SEP] identifier[url] operator[SEP] operator[SEP] }
public static <T> MaybeObserver<T> create(Observer<? super T> downstream) { return new MaybeToObservableObserver<T>(downstream); }
class class_name[name] begin[{] method[create, return_type[type[MaybeObserver]], modifier[public static], parameter[downstream]] begin[{] return[ClassCreator(arguments=[MemberReference(member=downstream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=None, name=MaybeToObservableObserver, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[MaybeObserver] operator[<] identifier[T] operator[>] identifier[create] operator[SEP] identifier[Observer] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[downstream] operator[SEP] { Keyword[return] Keyword[new] identifier[MaybeToObservableObserver] operator[<] identifier[T] operator[>] operator[SEP] identifier[downstream] operator[SEP] operator[SEP] }
public static DZcs cs_transpose(DZcs A, boolean values) { int p, q, j, Cp[], Ci[], n, m, Ap[], Ai[], w[] ; DZcsa Cx = new DZcsa(), Ax = new DZcsa() ; DZcs C ; if (!CS_CSC (A)) return (null) ; /* check inputs */ m = A.m ; n = A.n ; Ap = A.p ; Ai = A.i ; Ax.x = A.x ; C = cs_spalloc (n, m, Ap [n], values && (Ax.x != null), false) ; /* allocate result */ w = new int [m] ; /* get workspace */ Cp = C.p ; Ci = C.i ; Cx.x = C.x ; for (p = 0 ; p < Ap [n] ; p++) w [Ai [p]]++ ; /* row counts */ cs_cumsum (Cp, w, m) ; /* row pointers */ for (j = 0 ; j < n ; j++) { for (p = Ap [j] ; p < Ap [j + 1] ; p++) { Ci [q = w [Ai [p]]++] = j ; /* place A(i,j) as entry C(j,i) */ if (Cx.x != null) Cx.set(q, (values) ? cs_conj(Ax.get(p)) : Ax.get(p)) ; } } return (C) ; }
class class_name[name] begin[{] method[cs_transpose, return_type[type[DZcs]], modifier[public static], parameter[A, values]] begin[{] local_variable[type[int], p] local_variable[type[DZcsa], Cx] local_variable[type[DZcs], C] if[call[.CS_CSC, parameter[member[.A]]]] begin[{] return[literal[null]] else begin[{] None end[}] assign[member[.m], member[A.m]] assign[member[.n], member[A.n]] assign[member[.Ap], member[A.p]] assign[member[.Ai], member[A.i]] assign[member[Ax.x], member[A.x]] assign[member[.C], call[.cs_spalloc, parameter[member[.n], member[.m], member[.Ap], binary_operation[member[.values], &&, binary_operation[member[Ax.x], !=, literal[null]]], literal[false]]]] assign[member[.w], ArrayCreator(dimensions=[MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] assign[member[.Cp], member[C.p]] assign[member[.Ci], member[C.i]] assign[member[Cx.x], member[C.x]] ForStatement(body=StatementExpression(expression=MemberReference(member=w, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=Ai, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]))]), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Ap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=p, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) call[.cs_cumsum, parameter[member[.Cp], member[.w], member[.m]]] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=Ci, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Assignment(expressionl=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=w, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=Ai, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]))])))]), type==, value=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=Cx, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), TernaryExpression(condition=MemberReference(member=values, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=MethodInvocation(arguments=[MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=Ax, selectors=[], type_arguments=None), if_true=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=Ax, selectors=[], type_arguments=None)], member=cs_conj, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None))], member=set, postfix_operators=[], prefix_operators=[], qualifier=Cx, selectors=[], type_arguments=None), label=None))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Ap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=Ap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]))], update=[MemberReference(member=p, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=[Assignment(expressionl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.C]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DZcs] identifier[cs_transpose] operator[SEP] identifier[DZcs] identifier[A] , Keyword[boolean] identifier[values] operator[SEP] { Keyword[int] identifier[p] , identifier[q] , identifier[j] , identifier[Cp] operator[SEP] operator[SEP] , identifier[Ci] operator[SEP] operator[SEP] , identifier[n] , identifier[m] , identifier[Ap] operator[SEP] operator[SEP] , identifier[Ai] operator[SEP] operator[SEP] , identifier[w] operator[SEP] operator[SEP] operator[SEP] identifier[DZcsa] identifier[Cx] operator[=] Keyword[new] identifier[DZcsa] operator[SEP] operator[SEP] , identifier[Ax] operator[=] Keyword[new] identifier[DZcsa] operator[SEP] operator[SEP] operator[SEP] identifier[DZcs] identifier[C] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[CS_CSC] operator[SEP] identifier[A] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[m] operator[=] identifier[A] operator[SEP] identifier[m] operator[SEP] identifier[n] operator[=] identifier[A] operator[SEP] identifier[n] operator[SEP] identifier[Ap] operator[=] identifier[A] operator[SEP] identifier[p] operator[SEP] identifier[Ai] operator[=] identifier[A] operator[SEP] identifier[i] operator[SEP] identifier[Ax] operator[SEP] identifier[x] operator[=] identifier[A] operator[SEP] identifier[x] operator[SEP] identifier[C] operator[=] identifier[cs_spalloc] operator[SEP] identifier[n] , identifier[m] , identifier[Ap] operator[SEP] identifier[n] operator[SEP] , identifier[values] operator[&&] operator[SEP] identifier[Ax] operator[SEP] identifier[x] operator[!=] Other[null] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] identifier[w] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[Cp] operator[=] identifier[C] operator[SEP] identifier[p] operator[SEP] identifier[Ci] operator[=] identifier[C] operator[SEP] identifier[i] operator[SEP] identifier[Cx] operator[SEP] identifier[x] operator[=] identifier[C] operator[SEP] identifier[x] operator[SEP] Keyword[for] operator[SEP] identifier[p] operator[=] Other[0] operator[SEP] identifier[p] operator[<] identifier[Ap] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[p] operator[++] operator[SEP] identifier[w] operator[SEP] identifier[Ai] operator[SEP] identifier[p] operator[SEP] operator[SEP] operator[++] operator[SEP] identifier[cs_cumsum] operator[SEP] identifier[Cp] , identifier[w] , identifier[m] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[n] operator[SEP] identifier[j] operator[++] operator[SEP] { Keyword[for] operator[SEP] identifier[p] operator[=] identifier[Ap] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[p] operator[<] identifier[Ap] operator[SEP] identifier[j] operator[+] Other[1] operator[SEP] operator[SEP] identifier[p] operator[++] operator[SEP] { identifier[Ci] operator[SEP] identifier[q] operator[=] identifier[w] operator[SEP] identifier[Ai] operator[SEP] identifier[p] operator[SEP] operator[SEP] operator[++] operator[SEP] operator[=] identifier[j] operator[SEP] Keyword[if] operator[SEP] identifier[Cx] operator[SEP] identifier[x] operator[!=] Other[null] operator[SEP] identifier[Cx] operator[SEP] identifier[set] operator[SEP] identifier[q] , operator[SEP] identifier[values] operator[SEP] operator[?] identifier[cs_conj] operator[SEP] identifier[Ax] operator[SEP] identifier[get] operator[SEP] identifier[p] operator[SEP] operator[SEP] operator[:] identifier[Ax] operator[SEP] identifier[get] operator[SEP] identifier[p] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] operator[SEP] identifier[C] operator[SEP] operator[SEP] }
private void opStateCheckAnyCharStar() { int mem = code[ip++]; final byte[]bytes = this.bytes; while (s < range) { if (stateCheckVal(s, mem)) {opFail(); return;} pushAltWithStateCheck(ip, s, sprev, mem, pkeep); int n = enc.length(bytes, s, end); if (s + n > range || enc.isNewLine(bytes, s, end)) {opFail(); return;} sprev = s; s += n; } sprev = sbegin; // break; }
class class_name[name] begin[{] method[opStateCheckAnyCharStar, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], mem] local_variable[type[byte], bytes] while[binary_operation[member[.s], <, member[.range]]] begin[{] if[call[.stateCheckVal, parameter[member[.s], member[.mem]]]] begin[{] call[.opFail, parameter[]] return[None] else begin[{] None end[}] call[.pushAltWithStateCheck, parameter[member[.ip], member[.s], member[.sprev], member[.mem], member[.pkeep]]] local_variable[type[int], n] if[binary_operation[binary_operation[binary_operation[member[.s], +, member[.n]], >, member[.range]], ||, call[enc.isNewLine, parameter[member[.bytes], member[.s], member[.end]]]]] begin[{] call[.opFail, parameter[]] return[None] else begin[{] None end[}] assign[member[.sprev], member[.s]] assign[member[.s], member[.n]] end[}] assign[member[.sprev], member[.sbegin]] end[}] END[}]
Keyword[private] Keyword[void] identifier[opStateCheckAnyCharStar] operator[SEP] operator[SEP] { Keyword[int] identifier[mem] operator[=] identifier[code] operator[SEP] identifier[ip] operator[++] operator[SEP] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] Keyword[this] operator[SEP] identifier[bytes] operator[SEP] Keyword[while] operator[SEP] identifier[s] operator[<] identifier[range] operator[SEP] { Keyword[if] operator[SEP] identifier[stateCheckVal] operator[SEP] identifier[s] , identifier[mem] operator[SEP] operator[SEP] { identifier[opFail] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[pushAltWithStateCheck] operator[SEP] identifier[ip] , identifier[s] , identifier[sprev] , identifier[mem] , identifier[pkeep] operator[SEP] operator[SEP] Keyword[int] identifier[n] operator[=] identifier[enc] operator[SEP] identifier[length] operator[SEP] identifier[bytes] , identifier[s] , identifier[end] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[s] operator[+] identifier[n] operator[>] identifier[range] operator[||] identifier[enc] operator[SEP] identifier[isNewLine] operator[SEP] identifier[bytes] , identifier[s] , identifier[end] operator[SEP] operator[SEP] { identifier[opFail] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[sprev] operator[=] identifier[s] operator[SEP] identifier[s] operator[+=] identifier[n] operator[SEP] } identifier[sprev] operator[=] identifier[sbegin] operator[SEP] }
public SelectOptions getSiteSelectOptions() { return getSiteSelectOptionsStatic( getCms(), CmsWorkplace.getStartSiteRoot(getCms(), m_userSettings), getSettings().getUserSettings().getLocale()); }
class class_name[name] begin[{] method[getSiteSelectOptions, return_type[type[SelectOptions]], modifier[public], parameter[]] begin[{] return[call[.getSiteSelectOptionsStatic, parameter[call[.getCms, parameter[]], call[CmsWorkplace.getStartSiteRoot, parameter[call[.getCms, parameter[]], member[.m_userSettings]]], call[.getSettings, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[SelectOptions] identifier[getSiteSelectOptions] operator[SEP] operator[SEP] { Keyword[return] identifier[getSiteSelectOptionsStatic] operator[SEP] identifier[getCms] operator[SEP] operator[SEP] , identifier[CmsWorkplace] operator[SEP] identifier[getStartSiteRoot] operator[SEP] identifier[getCms] operator[SEP] operator[SEP] , identifier[m_userSettings] operator[SEP] , identifier[getSettings] operator[SEP] operator[SEP] operator[SEP] identifier[getUserSettings] operator[SEP] operator[SEP] operator[SEP] identifier[getLocale] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public void serviceName_udp_farm_farmId_PUT(String serviceName, Long farmId, OvhBackendUdp body) throws IOException { String qPath = "/ipLoadbalancing/{serviceName}/udp/farm/{farmId}"; StringBuilder sb = path(qPath, serviceName, farmId); exec(qPath, "PUT", sb.toString(), body); }
class class_name[name] begin[{] method[serviceName_udp_farm_farmId_PUT, return_type[void], modifier[public], parameter[serviceName, farmId, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.exec, parameter[member[.qPath], literal["PUT"], call[sb.toString, parameter[]], member[.body]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[serviceName_udp_farm_farmId_PUT] operator[SEP] identifier[String] identifier[serviceName] , identifier[Long] identifier[farmId] , identifier[OvhBackendUdp] identifier[body] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] identifier[path] operator[SEP] identifier[qPath] , identifier[serviceName] , identifier[farmId] operator[SEP] operator[SEP] identifier[exec] operator[SEP] identifier[qPath] , literal[String] , identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[body] operator[SEP] operator[SEP] }
public static SourceSnippet callChildGetter(final GinjectorBindings childBindings, final Key<?> key) { return new SourceSnippet() { public String getSource(InjectorWriteContext writeContext) { return writeContext.callChildGetter(childBindings, key); } }; }
class class_name[name] begin[{] method[callChildGetter, return_type[type[SourceSnippet]], modifier[public static], parameter[childBindings, key]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=childBindings, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=callChildGetter, postfix_operators=[], prefix_operators=[], qualifier=writeContext, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=getSource, parameters=[FormalParameter(annotations=[], modifiers=set(), name=writeContext, type=ReferenceType(arguments=None, dimensions=[], name=InjectorWriteContext, sub_type=None), varargs=False)], return_type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SourceSnippet, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[SourceSnippet] identifier[callChildGetter] operator[SEP] Keyword[final] identifier[GinjectorBindings] identifier[childBindings] , Keyword[final] identifier[Key] operator[<] operator[?] operator[>] identifier[key] operator[SEP] { Keyword[return] Keyword[new] identifier[SourceSnippet] operator[SEP] operator[SEP] { Keyword[public] identifier[String] identifier[getSource] operator[SEP] identifier[InjectorWriteContext] identifier[writeContext] operator[SEP] { Keyword[return] identifier[writeContext] operator[SEP] identifier[callChildGetter] operator[SEP] identifier[childBindings] , identifier[key] operator[SEP] operator[SEP] } } operator[SEP] }
@Override public Iterator<Map.Entry<K, V>> iterator() { return Collections.unmodifiableSet(state.entrySet()).iterator(); }
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] return[call[Collections.unmodifiableSet, parameter[call[state.entrySet, parameter[]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[iterator] operator[SEP] operator[SEP] { Keyword[return] identifier[Collections] operator[SEP] identifier[unmodifiableSet] operator[SEP] identifier[state] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] }
public MetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners() { synchronized (changeListenerList) { ArrayList<MetaClassRegistryChangeEventListener> ret = new ArrayList<MetaClassRegistryChangeEventListener>(changeListenerList.size()+nonRemoveableChangeListenerList.size()); ret.addAll(nonRemoveableChangeListenerList); ret.addAll(changeListenerList); return ret.toArray(new MetaClassRegistryChangeEventListener[ret.size()]); } }
class class_name[name] begin[{] method[getMetaClassRegistryChangeEventListeners, return_type[type[MetaClassRegistryChangeEventListener]], modifier[public], parameter[]] begin[{] SYNCHRONIZED[member[.changeListenerList]] BEGIN[{] local_variable[type[ArrayList], ret] call[ret.addAll, parameter[member[.nonRemoveableChangeListenerList]]] call[ret.addAll, parameter[member[.changeListenerList]]] return[call[ret.toArray, parameter[ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=ret, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MetaClassRegistryChangeEventListener, sub_type=None))]]] END[}] end[}] END[}]
Keyword[public] identifier[MetaClassRegistryChangeEventListener] operator[SEP] operator[SEP] identifier[getMetaClassRegistryChangeEventListeners] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[changeListenerList] operator[SEP] { identifier[ArrayList] operator[<] identifier[MetaClassRegistryChangeEventListener] operator[>] identifier[ret] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[MetaClassRegistryChangeEventListener] operator[>] operator[SEP] identifier[changeListenerList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[+] identifier[nonRemoveableChangeListenerList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[ret] operator[SEP] identifier[addAll] operator[SEP] identifier[nonRemoveableChangeListenerList] operator[SEP] operator[SEP] identifier[ret] operator[SEP] identifier[addAll] operator[SEP] identifier[changeListenerList] operator[SEP] operator[SEP] Keyword[return] identifier[ret] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[MetaClassRegistryChangeEventListener] operator[SEP] identifier[ret] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
@Override public FBClassReader analyze(IAnalysisCache analysisCache, ClassDescriptor descriptor) throws CheckedAnalysisException { ClassData classData = analysisCache.getClassAnalysis(ClassData.class, descriptor); FBClassReader classReader = new FBClassReader(classData.getData()); return classReader; }
class class_name[name] begin[{] method[analyze, return_type[type[FBClassReader]], modifier[public], parameter[analysisCache, descriptor]] begin[{] local_variable[type[ClassData], classData] local_variable[type[FBClassReader], classReader] return[member[.classReader]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[FBClassReader] identifier[analyze] operator[SEP] identifier[IAnalysisCache] identifier[analysisCache] , identifier[ClassDescriptor] identifier[descriptor] operator[SEP] Keyword[throws] identifier[CheckedAnalysisException] { identifier[ClassData] identifier[classData] operator[=] identifier[analysisCache] operator[SEP] identifier[getClassAnalysis] operator[SEP] identifier[ClassData] operator[SEP] Keyword[class] , identifier[descriptor] operator[SEP] operator[SEP] identifier[FBClassReader] identifier[classReader] operator[=] Keyword[new] identifier[FBClassReader] operator[SEP] identifier[classData] operator[SEP] identifier[getData] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[classReader] operator[SEP] }
public void marshall(Pipeline pipeline, ProtocolMarshaller protocolMarshaller) { if (pipeline == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pipeline.getId(), ID_BINDING); protocolMarshaller.marshall(pipeline.getArn(), ARN_BINDING); protocolMarshaller.marshall(pipeline.getName(), NAME_BINDING); protocolMarshaller.marshall(pipeline.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(pipeline.getInputBucket(), INPUTBUCKET_BINDING); protocolMarshaller.marshall(pipeline.getOutputBucket(), OUTPUTBUCKET_BINDING); protocolMarshaller.marshall(pipeline.getRole(), ROLE_BINDING); protocolMarshaller.marshall(pipeline.getAwsKmsKeyArn(), AWSKMSKEYARN_BINDING); protocolMarshaller.marshall(pipeline.getNotifications(), NOTIFICATIONS_BINDING); protocolMarshaller.marshall(pipeline.getContentConfig(), CONTENTCONFIG_BINDING); protocolMarshaller.marshall(pipeline.getThumbnailConfig(), THUMBNAILCONFIG_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[pipeline, protocolMarshaller]] begin[{] if[binary_operation[member[.pipeline], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=ID_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getArn, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=ARN_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=NAME_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getStatus, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=STATUS_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getInputBucket, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=INPUTBUCKET_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getOutputBucket, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=OUTPUTBUCKET_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getRole, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=ROLE_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAwsKmsKeyArn, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=AWSKMSKEYARN_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getNotifications, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=NOTIFICATIONS_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getContentConfig, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=CONTENTCONFIG_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getThumbnailConfig, postfix_operators=[], prefix_operators=[], qualifier=pipeline, selectors=[], type_arguments=None), MemberReference(member=THUMBNAILCONFIG_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Pipeline] identifier[pipeline] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[pipeline] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getId] operator[SEP] operator[SEP] , identifier[ID_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getArn] operator[SEP] operator[SEP] , identifier[ARN_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[NAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getStatus] operator[SEP] operator[SEP] , identifier[STATUS_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getInputBucket] operator[SEP] operator[SEP] , identifier[INPUTBUCKET_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getOutputBucket] operator[SEP] operator[SEP] , identifier[OUTPUTBUCKET_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getRole] operator[SEP] operator[SEP] , identifier[ROLE_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getAwsKmsKeyArn] operator[SEP] operator[SEP] , identifier[AWSKMSKEYARN_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getNotifications] operator[SEP] operator[SEP] , identifier[NOTIFICATIONS_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getContentConfig] operator[SEP] operator[SEP] , identifier[CONTENTCONFIG_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[pipeline] operator[SEP] identifier[getThumbnailConfig] operator[SEP] operator[SEP] , identifier[THUMBNAILCONFIG_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public void marshall(ContainerStateChange containerStateChange, ProtocolMarshaller protocolMarshaller) { if (containerStateChange == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(containerStateChange.getContainerName(), CONTAINERNAME_BINDING); protocolMarshaller.marshall(containerStateChange.getExitCode(), EXITCODE_BINDING); protocolMarshaller.marshall(containerStateChange.getNetworkBindings(), NETWORKBINDINGS_BINDING); protocolMarshaller.marshall(containerStateChange.getReason(), REASON_BINDING); protocolMarshaller.marshall(containerStateChange.getStatus(), STATUS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[containerStateChange, protocolMarshaller]] begin[{] if[binary_operation[member[.containerStateChange], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getContainerName, postfix_operators=[], prefix_operators=[], qualifier=containerStateChange, selectors=[], type_arguments=None), MemberReference(member=CONTAINERNAME_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getExitCode, postfix_operators=[], prefix_operators=[], qualifier=containerStateChange, selectors=[], type_arguments=None), MemberReference(member=EXITCODE_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getNetworkBindings, postfix_operators=[], prefix_operators=[], qualifier=containerStateChange, selectors=[], type_arguments=None), MemberReference(member=NETWORKBINDINGS_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getReason, postfix_operators=[], prefix_operators=[], qualifier=containerStateChange, selectors=[], type_arguments=None), MemberReference(member=REASON_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getStatus, postfix_operators=[], prefix_operators=[], qualifier=containerStateChange, selectors=[], type_arguments=None), MemberReference(member=STATUS_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ContainerStateChange] identifier[containerStateChange] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[containerStateChange] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[containerStateChange] operator[SEP] identifier[getContainerName] operator[SEP] operator[SEP] , identifier[CONTAINERNAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[containerStateChange] operator[SEP] identifier[getExitCode] operator[SEP] operator[SEP] , identifier[EXITCODE_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[containerStateChange] operator[SEP] identifier[getNetworkBindings] operator[SEP] operator[SEP] , identifier[NETWORKBINDINGS_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[containerStateChange] operator[SEP] identifier[getReason] operator[SEP] operator[SEP] , identifier[REASON_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[containerStateChange] operator[SEP] identifier[getStatus] operator[SEP] operator[SEP] , identifier[STATUS_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public org.inferred.freebuilder.processor.property.Property.Builder clear() { Property_Builder defaults = new org.inferred.freebuilder.processor.property.Property.Builder(); type = defaults.type; boxedType = defaults.boxedType; name = defaults.name; capitalizedName = defaults.capitalizedName; allCapsName = defaults.allCapsName; usingBeanConvention = defaults.usingBeanConvention; getterName = defaults.getterName; fullyCheckedCast = defaults.fullyCheckedCast; clearAccessorAnnotations(); _unsetProperties.clear(); _unsetProperties.addAll(defaults._unsetProperties); return (org.inferred.freebuilder.processor.property.Property.Builder) this; }
class class_name[name] begin[{] method[clear, return_type[type[org]], modifier[public], parameter[]] begin[{] local_variable[type[Property_Builder], defaults] assign[member[.type], member[defaults.type]] assign[member[.boxedType], member[defaults.boxedType]] assign[member[.name], member[defaults.name]] assign[member[.capitalizedName], member[defaults.capitalizedName]] assign[member[.allCapsName], member[defaults.allCapsName]] assign[member[.usingBeanConvention], member[defaults.usingBeanConvention]] assign[member[.getterName], member[defaults.getterName]] assign[member[.fullyCheckedCast], member[defaults.fullyCheckedCast]] call[.clearAccessorAnnotations, parameter[]] call[_unsetProperties.clear, parameter[]] call[_unsetProperties.addAll, parameter[member[defaults._unsetProperties]]] return[Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=org, sub_type=ReferenceType(arguments=None, dimensions=None, name=inferred, sub_type=ReferenceType(arguments=None, dimensions=None, name=freebuilder, sub_type=ReferenceType(arguments=None, dimensions=None, name=processor, sub_type=ReferenceType(arguments=None, dimensions=None, name=property, sub_type=ReferenceType(arguments=None, dimensions=None, name=Property, sub_type=ReferenceType(arguments=None, dimensions=None, name=Builder, sub_type=None))))))))] end[}] END[}]
Keyword[public] identifier[org] operator[SEP] identifier[inferred] operator[SEP] identifier[freebuilder] operator[SEP] identifier[processor] operator[SEP] identifier[property] operator[SEP] identifier[Property] operator[SEP] identifier[Builder] identifier[clear] operator[SEP] operator[SEP] { identifier[Property_Builder] identifier[defaults] operator[=] Keyword[new] identifier[org] operator[SEP] identifier[inferred] operator[SEP] identifier[freebuilder] operator[SEP] identifier[processor] operator[SEP] identifier[property] operator[SEP] identifier[Property] operator[SEP] identifier[Builder] operator[SEP] operator[SEP] operator[SEP] identifier[type] operator[=] identifier[defaults] operator[SEP] identifier[type] operator[SEP] identifier[boxedType] operator[=] identifier[defaults] operator[SEP] identifier[boxedType] operator[SEP] identifier[name] operator[=] identifier[defaults] operator[SEP] identifier[name] operator[SEP] identifier[capitalizedName] operator[=] identifier[defaults] operator[SEP] identifier[capitalizedName] operator[SEP] identifier[allCapsName] operator[=] identifier[defaults] operator[SEP] identifier[allCapsName] operator[SEP] identifier[usingBeanConvention] operator[=] identifier[defaults] operator[SEP] identifier[usingBeanConvention] operator[SEP] identifier[getterName] operator[=] identifier[defaults] operator[SEP] identifier[getterName] operator[SEP] identifier[fullyCheckedCast] operator[=] identifier[defaults] operator[SEP] identifier[fullyCheckedCast] operator[SEP] identifier[clearAccessorAnnotations] operator[SEP] operator[SEP] operator[SEP] identifier[_unsetProperties] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[_unsetProperties] operator[SEP] identifier[addAll] operator[SEP] identifier[defaults] operator[SEP] identifier[_unsetProperties] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[org] operator[SEP] identifier[inferred] operator[SEP] identifier[freebuilder] operator[SEP] identifier[processor] operator[SEP] identifier[property] operator[SEP] identifier[Property] operator[SEP] identifier[Builder] operator[SEP] Keyword[this] operator[SEP] }
private static boolean verifySignature(String content, String secret, String signature) throws InvalidTokenException{ try { SecretKey secretKey = new SecretKeySpec(secret.getBytes(), ALG_HMACSHA256); Mac mac = Mac.getInstance(ALG_HMACSHA256); mac.init(secretKey); byte[] bytes = mac.doFinal(content.getBytes()); String base64 = base64UrlEncode(bytes); return Strings.equals(base64,signature); } catch (Exception e) { throw new RuntimeException("Verify signature error", e); } }
class class_name[name] begin[{] method[verifySignature, return_type[type[boolean]], modifier[private static], parameter[content, secret, signature]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getBytes, postfix_operators=[], prefix_operators=[], qualifier=secret, selectors=[], type_arguments=None), MemberReference(member=ALG_HMACSHA256, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SecretKeySpec, sub_type=None)), name=secretKey)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=SecretKey, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ALG_HMACSHA256, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getInstance, postfix_operators=[], prefix_operators=[], qualifier=Mac, selectors=[], type_arguments=None), name=mac)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Mac, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=secretKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators=[], prefix_operators=[], qualifier=mac, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getBytes, postfix_operators=[], prefix_operators=[], qualifier=content, selectors=[], type_arguments=None)], member=doFinal, postfix_operators=[], prefix_operators=[], qualifier=mac, selectors=[], type_arguments=None), name=bytes)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=base64UrlEncode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=base64)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=base64, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=signature, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=Strings, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Verify signature error"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[private] Keyword[static] Keyword[boolean] identifier[verifySignature] operator[SEP] identifier[String] identifier[content] , identifier[String] identifier[secret] , identifier[String] identifier[signature] operator[SEP] Keyword[throws] identifier[InvalidTokenException] { Keyword[try] { identifier[SecretKey] identifier[secretKey] operator[=] Keyword[new] identifier[SecretKeySpec] operator[SEP] identifier[secret] operator[SEP] identifier[getBytes] operator[SEP] operator[SEP] , identifier[ALG_HMACSHA256] operator[SEP] operator[SEP] identifier[Mac] identifier[mac] operator[=] identifier[Mac] operator[SEP] identifier[getInstance] operator[SEP] identifier[ALG_HMACSHA256] operator[SEP] operator[SEP] identifier[mac] operator[SEP] identifier[init] operator[SEP] identifier[secretKey] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] identifier[mac] operator[SEP] identifier[doFinal] operator[SEP] identifier[content] operator[SEP] identifier[getBytes] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[base64] operator[=] identifier[base64UrlEncode] operator[SEP] identifier[bytes] operator[SEP] operator[SEP] Keyword[return] identifier[Strings] operator[SEP] identifier[equals] operator[SEP] identifier[base64] , identifier[signature] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } }
@RequestMapping("/getUsers") public ResponseEntity<String> getUsers() { ConfigurationHandler response = configurationHandlerService.getConfigForGetUsers(); return new ResponseEntity<>(response.getBodyAnswer(), httpHeaders, HttpStatus.valueOf(response.getResult())); }
class class_name[name] begin[{] method[getUsers, return_type[type[ResponseEntity]], modifier[public], parameter[]] begin[{] local_variable[type[ConfigurationHandler], response] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getBodyAnswer, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), MemberReference(member=httpHeaders, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getResult, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=HttpStatus, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ResponseEntity, sub_type=None))] end[}] END[}]
annotation[@] identifier[RequestMapping] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[ResponseEntity] operator[<] identifier[String] operator[>] identifier[getUsers] operator[SEP] operator[SEP] { identifier[ConfigurationHandler] identifier[response] operator[=] identifier[configurationHandlerService] operator[SEP] identifier[getConfigForGetUsers] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[ResponseEntity] operator[<] operator[>] operator[SEP] identifier[response] operator[SEP] identifier[getBodyAnswer] operator[SEP] operator[SEP] , identifier[httpHeaders] , identifier[HttpStatus] operator[SEP] identifier[valueOf] operator[SEP] identifier[response] operator[SEP] identifier[getResult] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@Override protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { copyToDelegate(); long start = System.currentTimeMillis(); try { method("setPerformancePreferences", int.class, int.class, int.class).invoke(delegate, connectionTime, latency, bandwidth); } catch (Exception e) { ExceptionUtil.processException(e); } finally { logSocket(System.currentTimeMillis() - start); copyFromDelegate(); } }
class class_name[name] begin[{] method[setPerformancePreferences, return_type[void], modifier[protected], parameter[connectionTime, latency, bandwidth]] begin[{] call[.copyToDelegate, parameter[]] local_variable[type[long], start] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="setPerformancePreferences"), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[], name=int)), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[], name=int)), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[], name=int))], member=method, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=delegate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=connectionTime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=latency, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bandwidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=invoke, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=processException, postfix_operators=[], prefix_operators=[], qualifier=ExceptionUtil, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=currentTimeMillis, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), operandr=MemberReference(member=start, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)], member=logSocket, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=copyFromDelegate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[setPerformancePreferences] operator[SEP] Keyword[int] identifier[connectionTime] , Keyword[int] identifier[latency] , Keyword[int] identifier[bandwidth] operator[SEP] { identifier[copyToDelegate] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[start] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[method] operator[SEP] literal[String] , Keyword[int] operator[SEP] Keyword[class] , Keyword[int] operator[SEP] Keyword[class] , Keyword[int] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[invoke] operator[SEP] identifier[delegate] , identifier[connectionTime] , identifier[latency] , identifier[bandwidth] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[ExceptionUtil] operator[SEP] identifier[processException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[finally] { identifier[logSocket] operator[SEP] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[-] identifier[start] operator[SEP] operator[SEP] identifier[copyFromDelegate] operator[SEP] operator[SEP] operator[SEP] } }
public <T extends IEvaluation> Map<Integer, T[]> evaluate(MultiDataSetIterator iterator, Map<Integer,T[]> evaluations){ try{ return doEvaluationHelper(iterator, evaluations); } catch (OutOfMemoryError e){ CrashReportingUtil.writeMemoryCrashDump(this, e); throw e; } }
class class_name[name] begin[{] method[evaluate, return_type[type[Map]], modifier[public], parameter[iterator, evaluations]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=iterator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=evaluations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doEvaluationHelper, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=writeMemoryCrashDump, postfix_operators=[], prefix_operators=[], qualifier=CrashReportingUtil, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['OutOfMemoryError']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[IEvaluation] operator[>] identifier[Map] operator[<] identifier[Integer] , identifier[T] operator[SEP] operator[SEP] operator[>] identifier[evaluate] operator[SEP] identifier[MultiDataSetIterator] identifier[iterator] , identifier[Map] operator[<] identifier[Integer] , identifier[T] operator[SEP] operator[SEP] operator[>] identifier[evaluations] operator[SEP] { Keyword[try] { Keyword[return] identifier[doEvaluationHelper] operator[SEP] identifier[iterator] , identifier[evaluations] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[OutOfMemoryError] identifier[e] operator[SEP] { identifier[CrashReportingUtil] operator[SEP] identifier[writeMemoryCrashDump] operator[SEP] Keyword[this] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] identifier[e] operator[SEP] } }
private AsyncResourceRequest<V> getNextUnexpiredResourceRequest(Queue<AsyncResourceRequest<V>> requestQueue) { AsyncResourceRequest<V> resourceRequest = requestQueue.poll(); while(resourceRequest != null) { if(resourceRequest.getDeadlineNs() < System.nanoTime()) { resourceRequest.handleTimeout(); resourceRequest = requestQueue.poll(); } else { break; } } return resourceRequest; }
class class_name[name] begin[{] method[getNextUnexpiredResourceRequest, return_type[type[AsyncResourceRequest]], modifier[private], parameter[requestQueue]] begin[{] local_variable[type[AsyncResourceRequest], resourceRequest] while[binary_operation[member[.resourceRequest], !=, literal[null]]] begin[{] if[binary_operation[call[resourceRequest.getDeadlineNs, parameter[]], <, call[System.nanoTime, parameter[]]]] begin[{] call[resourceRequest.handleTimeout, parameter[]] assign[member[.resourceRequest], call[requestQueue.poll, parameter[]]] else begin[{] BreakStatement(goto=None, label=None) end[}] end[}] return[member[.resourceRequest]] end[}] END[}]
Keyword[private] identifier[AsyncResourceRequest] operator[<] identifier[V] operator[>] identifier[getNextUnexpiredResourceRequest] operator[SEP] identifier[Queue] operator[<] identifier[AsyncResourceRequest] operator[<] identifier[V] operator[>] operator[>] identifier[requestQueue] operator[SEP] { identifier[AsyncResourceRequest] operator[<] identifier[V] operator[>] identifier[resourceRequest] operator[=] identifier[requestQueue] operator[SEP] identifier[poll] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[resourceRequest] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[resourceRequest] operator[SEP] identifier[getDeadlineNs] operator[SEP] operator[SEP] operator[<] identifier[System] operator[SEP] identifier[nanoTime] operator[SEP] operator[SEP] operator[SEP] { identifier[resourceRequest] operator[SEP] identifier[handleTimeout] operator[SEP] operator[SEP] operator[SEP] identifier[resourceRequest] operator[=] identifier[requestQueue] operator[SEP] identifier[poll] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[break] operator[SEP] } } Keyword[return] identifier[resourceRequest] operator[SEP] }
protected void setConnectionInformation() throws IOException { if (System.getenv(PIG_RPC_PORT) != null) { ConfigHelper.setInputRpcPort(conf, System.getenv(PIG_RPC_PORT)); ConfigHelper.setOutputRpcPort(conf, System.getenv(PIG_RPC_PORT)); } if (System.getenv(PIG_INPUT_RPC_PORT) != null) ConfigHelper.setInputRpcPort(conf, System.getenv(PIG_INPUT_RPC_PORT)); if (System.getenv(PIG_OUTPUT_RPC_PORT) != null) ConfigHelper.setOutputRpcPort(conf, System.getenv(PIG_OUTPUT_RPC_PORT)); if (System.getenv(PIG_INITIAL_ADDRESS) != null) { ConfigHelper.setInputInitialAddress(conf, System.getenv(PIG_INITIAL_ADDRESS)); ConfigHelper.setOutputInitialAddress(conf, System.getenv(PIG_INITIAL_ADDRESS)); } if (System.getenv(PIG_INPUT_INITIAL_ADDRESS) != null) ConfigHelper.setInputInitialAddress(conf, System.getenv(PIG_INPUT_INITIAL_ADDRESS)); if (System.getenv(PIG_OUTPUT_INITIAL_ADDRESS) != null) ConfigHelper.setOutputInitialAddress(conf, System.getenv(PIG_OUTPUT_INITIAL_ADDRESS)); if (System.getenv(PIG_PARTITIONER) != null) { ConfigHelper.setInputPartitioner(conf, System.getenv(PIG_PARTITIONER)); ConfigHelper.setOutputPartitioner(conf, System.getenv(PIG_PARTITIONER)); } if(System.getenv(PIG_INPUT_PARTITIONER) != null) ConfigHelper.setInputPartitioner(conf, System.getenv(PIG_INPUT_PARTITIONER)); if(System.getenv(PIG_OUTPUT_PARTITIONER) != null) ConfigHelper.setOutputPartitioner(conf, System.getenv(PIG_OUTPUT_PARTITIONER)); if (System.getenv(PIG_INPUT_FORMAT) != null) inputFormatClass = getFullyQualifiedClassName(System.getenv(PIG_INPUT_FORMAT)); else inputFormatClass = DEFAULT_INPUT_FORMAT; if (System.getenv(PIG_OUTPUT_FORMAT) != null) outputFormatClass = getFullyQualifiedClassName(System.getenv(PIG_OUTPUT_FORMAT)); else outputFormatClass = DEFAULT_OUTPUT_FORMAT; }
class class_name[name] begin[{] method[setConnectionInformation, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[call[System.getenv, parameter[member[.PIG_RPC_PORT]]], !=, literal[null]]] begin[{] call[ConfigHelper.setInputRpcPort, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_RPC_PORT]]]]] call[ConfigHelper.setOutputRpcPort, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_RPC_PORT]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_INPUT_RPC_PORT]]], !=, literal[null]]] begin[{] call[ConfigHelper.setInputRpcPort, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_INPUT_RPC_PORT]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_OUTPUT_RPC_PORT]]], !=, literal[null]]] begin[{] call[ConfigHelper.setOutputRpcPort, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_OUTPUT_RPC_PORT]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_INITIAL_ADDRESS]]], !=, literal[null]]] begin[{] call[ConfigHelper.setInputInitialAddress, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_INITIAL_ADDRESS]]]]] call[ConfigHelper.setOutputInitialAddress, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_INITIAL_ADDRESS]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_INPUT_INITIAL_ADDRESS]]], !=, literal[null]]] begin[{] call[ConfigHelper.setInputInitialAddress, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_INPUT_INITIAL_ADDRESS]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_OUTPUT_INITIAL_ADDRESS]]], !=, literal[null]]] begin[{] call[ConfigHelper.setOutputInitialAddress, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_OUTPUT_INITIAL_ADDRESS]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_PARTITIONER]]], !=, literal[null]]] begin[{] call[ConfigHelper.setInputPartitioner, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_PARTITIONER]]]]] call[ConfigHelper.setOutputPartitioner, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_PARTITIONER]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_INPUT_PARTITIONER]]], !=, literal[null]]] begin[{] call[ConfigHelper.setInputPartitioner, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_INPUT_PARTITIONER]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_OUTPUT_PARTITIONER]]], !=, literal[null]]] begin[{] call[ConfigHelper.setOutputPartitioner, parameter[member[.conf], call[System.getenv, parameter[member[.PIG_OUTPUT_PARTITIONER]]]]] else begin[{] None end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_INPUT_FORMAT]]], !=, literal[null]]] begin[{] assign[member[.inputFormatClass], call[.getFullyQualifiedClassName, parameter[call[System.getenv, parameter[member[.PIG_INPUT_FORMAT]]]]]] else begin[{] assign[member[.inputFormatClass], member[.DEFAULT_INPUT_FORMAT]] end[}] if[binary_operation[call[System.getenv, parameter[member[.PIG_OUTPUT_FORMAT]]], !=, literal[null]]] begin[{] assign[member[.outputFormatClass], call[.getFullyQualifiedClassName, parameter[call[System.getenv, parameter[member[.PIG_OUTPUT_FORMAT]]]]]] else begin[{] assign[member[.outputFormatClass], member[.DEFAULT_OUTPUT_FORMAT]] end[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[setConnectionInformation] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_RPC_PORT] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[ConfigHelper] operator[SEP] identifier[setInputRpcPort] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_RPC_PORT] operator[SEP] operator[SEP] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setOutputRpcPort] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_RPC_PORT] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_RPC_PORT] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setInputRpcPort] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_RPC_PORT] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_RPC_PORT] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setOutputRpcPort] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_RPC_PORT] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INITIAL_ADDRESS] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[ConfigHelper] operator[SEP] identifier[setInputInitialAddress] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INITIAL_ADDRESS] operator[SEP] operator[SEP] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setOutputInitialAddress] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INITIAL_ADDRESS] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_INITIAL_ADDRESS] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setInputInitialAddress] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_INITIAL_ADDRESS] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_INITIAL_ADDRESS] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setOutputInitialAddress] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_INITIAL_ADDRESS] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_PARTITIONER] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[ConfigHelper] operator[SEP] identifier[setInputPartitioner] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_PARTITIONER] operator[SEP] operator[SEP] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setOutputPartitioner] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_PARTITIONER] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_PARTITIONER] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setInputPartitioner] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_PARTITIONER] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_PARTITIONER] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[ConfigHelper] operator[SEP] identifier[setOutputPartitioner] operator[SEP] identifier[conf] , identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_PARTITIONER] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_FORMAT] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[inputFormatClass] operator[=] identifier[getFullyQualifiedClassName] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_INPUT_FORMAT] operator[SEP] operator[SEP] operator[SEP] Keyword[else] identifier[inputFormatClass] operator[=] identifier[DEFAULT_INPUT_FORMAT] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_FORMAT] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[outputFormatClass] operator[=] identifier[getFullyQualifiedClassName] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[PIG_OUTPUT_FORMAT] operator[SEP] operator[SEP] operator[SEP] Keyword[else] identifier[outputFormatClass] operator[=] identifier[DEFAULT_OUTPUT_FORMAT] operator[SEP] }
public static MaxSATSolver wmsu3() { return new MaxSATSolver(new MaxSATConfig.Builder().incremental(MaxSATConfig.IncrementalStrategy.ITERATIVE).build(), Algorithm.WMSU3); }
class class_name[name] begin[{] method[wmsu3, return_type[type[MaxSATSolver]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=ITERATIVE, postfix_operators=[], prefix_operators=[], qualifier=MaxSATConfig.IncrementalStrategy, selectors=[])], member=incremental, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=build, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=MaxSATConfig, sub_type=ReferenceType(arguments=None, dimensions=None, name=Builder, sub_type=None))), MemberReference(member=WMSU3, postfix_operators=[], prefix_operators=[], qualifier=Algorithm, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MaxSATSolver, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[MaxSATSolver] identifier[wmsu3] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[MaxSATSolver] operator[SEP] Keyword[new] identifier[MaxSATConfig] operator[SEP] identifier[Builder] operator[SEP] operator[SEP] operator[SEP] identifier[incremental] operator[SEP] identifier[MaxSATConfig] operator[SEP] identifier[IncrementalStrategy] operator[SEP] identifier[ITERATIVE] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] , identifier[Algorithm] operator[SEP] identifier[WMSU3] operator[SEP] operator[SEP] }
private static void addCommiteeSummary(final StringBuilder stringBuilder, final Entry<String, List<ProposalCommitteeeSummary>> entry, final Optional<ViewRiksdagenCommittee> vewRiksdagenCommittee) { if (vewRiksdagenCommittee.isPresent()) { final Map<String, List<ProposalCommitteeeSummary>> docTypeMap = entry.getValue().stream() .collect(Collectors.groupingBy(ProposalCommitteeeSummary::getDocType)); stringBuilder.append('\n').append(vewRiksdagenCommittee.get().getEmbeddedId().getDetail()); for (final Entry<String, List<ProposalCommitteeeSummary>> docEntry : docTypeMap.entrySet()) { if (docEntry.getKey().length() > 0 && entry.getKey().length() > 0) { addEntry(stringBuilder, entry, docEntry); } } } }
class class_name[name] begin[{] method[addCommiteeSummary, return_type[void], modifier[private static], parameter[stringBuilder, entry, vewRiksdagenCommittee]] begin[{] if[call[vewRiksdagenCommittee.isPresent, parameter[]]] begin[{] local_variable[type[Map], docTypeMap] call[stringBuilder.append, parameter[literal['\n']]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=docEntry, selectors=[MethodInvocation(arguments=[], member=length, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[MethodInvocation(arguments=[], member=length, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=stringBuilder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=entry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=docEntry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addEntry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=docTypeMap, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=docEntry)], modifiers={'final'}, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ProposalCommitteeeSummary, sub_type=None))], dimensions=[], name=List, sub_type=None))], dimensions=[], name=Entry, sub_type=None))), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[addCommiteeSummary] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[stringBuilder] , Keyword[final] identifier[Entry] operator[<] identifier[String] , identifier[List] operator[<] identifier[ProposalCommitteeeSummary] operator[>] operator[>] identifier[entry] , Keyword[final] identifier[Optional] operator[<] identifier[ViewRiksdagenCommittee] operator[>] identifier[vewRiksdagenCommittee] operator[SEP] { Keyword[if] operator[SEP] identifier[vewRiksdagenCommittee] operator[SEP] identifier[isPresent] operator[SEP] operator[SEP] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[ProposalCommitteeeSummary] operator[>] operator[>] identifier[docTypeMap] operator[=] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[collect] operator[SEP] identifier[Collectors] operator[SEP] identifier[groupingBy] operator[SEP] identifier[ProposalCommitteeeSummary] operator[::] identifier[getDocType] operator[SEP] operator[SEP] operator[SEP] identifier[stringBuilder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[vewRiksdagenCommittee] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getEmbeddedId] operator[SEP] operator[SEP] operator[SEP] identifier[getDetail] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Entry] operator[<] identifier[String] , identifier[List] operator[<] identifier[ProposalCommitteeeSummary] operator[>] operator[>] identifier[docEntry] operator[:] identifier[docTypeMap] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[docEntry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[&&] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[addEntry] operator[SEP] identifier[stringBuilder] , identifier[entry] , identifier[docEntry] operator[SEP] operator[SEP] } } } }
private void register(Class<? extends YamlNode> type, Represent represent) { this.representers.put(type, represent); this.multiRepresenters.put(type, represent); }
class class_name[name] begin[{] method[register, return_type[void], modifier[private], parameter[type, represent]] begin[{] THIS[member[None.representers]call[None.put, parameter[member[.type], member[.represent]]]] THIS[member[None.multiRepresenters]call[None.put, parameter[member[.type], member[.represent]]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[register] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[YamlNode] operator[>] identifier[type] , identifier[Represent] identifier[represent] operator[SEP] { Keyword[this] operator[SEP] identifier[representers] operator[SEP] identifier[put] operator[SEP] identifier[type] , identifier[represent] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[multiRepresenters] operator[SEP] identifier[put] operator[SEP] identifier[type] , identifier[represent] operator[SEP] operator[SEP] }
private static void navigateContextToNextPortableTokenFromPortableArrayCell( PortableNavigatorContext ctx, PortablePathCursor path, int index) throws IOException { BufferObjectDataInput in = ctx.getIn(); // find the array field position that's stored in the fieldDefinition int the context and navigate to it int pos = getStreamPositionOfTheField(ctx); in.position(pos); // read array length and ignore in.readInt(); // read factory and class ID and validate if it's the same as expected in the fieldDefinition int factoryId = in.readInt(); int classId = in.readInt(); validateFactoryAndClass(ctx.getCurrentFieldDefinition(), factoryId, classId, path.path()); // calculate the offset of the cell given by the index final int cellOffset = in.position() + index * Bits.INT_SIZE_IN_BYTES; in.position(cellOffset); // read the position of the portable addressed in this array cell (array contains portable position only) int portablePosition = in.readInt(); // navigate to portable position and read it's version in.position(portablePosition); int versionId = in.readInt(); // initialise context with the given portable field for further navigation ctx.advanceContextToNextPortableToken(factoryId, classId, versionId); }
class class_name[name] begin[{] method[navigateContextToNextPortableTokenFromPortableArrayCell, return_type[void], modifier[private static], parameter[ctx, path, index]] begin[{] local_variable[type[BufferObjectDataInput], in] local_variable[type[int], pos] call[in.position, parameter[member[.pos]]] call[in.readInt, parameter[]] local_variable[type[int], factoryId] local_variable[type[int], classId] call[.validateFactoryAndClass, parameter[call[ctx.getCurrentFieldDefinition, parameter[]], member[.factoryId], member[.classId], call[path.path, parameter[]]]] local_variable[type[int], cellOffset] call[in.position, parameter[member[.cellOffset]]] local_variable[type[int], portablePosition] call[in.position, parameter[member[.portablePosition]]] local_variable[type[int], versionId] call[ctx.advanceContextToNextPortableToken, parameter[member[.factoryId], member[.classId], member[.versionId]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[navigateContextToNextPortableTokenFromPortableArrayCell] operator[SEP] identifier[PortableNavigatorContext] identifier[ctx] , identifier[PortablePathCursor] identifier[path] , Keyword[int] identifier[index] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferObjectDataInput] identifier[in] operator[=] identifier[ctx] operator[SEP] identifier[getIn] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[pos] operator[=] identifier[getStreamPositionOfTheField] operator[SEP] identifier[ctx] operator[SEP] operator[SEP] identifier[in] operator[SEP] identifier[position] operator[SEP] identifier[pos] operator[SEP] operator[SEP] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[factoryId] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[classId] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] identifier[validateFactoryAndClass] operator[SEP] identifier[ctx] operator[SEP] identifier[getCurrentFieldDefinition] operator[SEP] operator[SEP] , identifier[factoryId] , identifier[classId] , identifier[path] operator[SEP] identifier[path] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[cellOffset] operator[=] identifier[in] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[+] identifier[index] operator[*] identifier[Bits] operator[SEP] identifier[INT_SIZE_IN_BYTES] operator[SEP] identifier[in] operator[SEP] identifier[position] operator[SEP] identifier[cellOffset] operator[SEP] operator[SEP] Keyword[int] identifier[portablePosition] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] identifier[in] operator[SEP] identifier[position] operator[SEP] identifier[portablePosition] operator[SEP] operator[SEP] Keyword[int] identifier[versionId] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] identifier[ctx] operator[SEP] identifier[advanceContextToNextPortableToken] operator[SEP] identifier[factoryId] , identifier[classId] , identifier[versionId] operator[SEP] operator[SEP] }
protected void checkNull( Object... objects ) { for( Object object : objects ) { if (object == null) { throw new ModelsIllegalargumentException("Mandatory input argument is missing. Check your syntax...", this.getClass().getSimpleName(), pm); } } }
class class_name[name] begin[{] method[checkNull, return_type[void], modifier[protected], parameter[objects]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Mandatory input argument is missing. Check your syntax..."), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getClass, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getSimpleName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), MemberReference(member=pm, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ModelsIllegalargumentException, sub_type=None)), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=objects, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=object)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None) end[}] END[}]
Keyword[protected] Keyword[void] identifier[checkNull] operator[SEP] identifier[Object] operator[...] identifier[objects] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[object] operator[:] identifier[objects] operator[SEP] { Keyword[if] operator[SEP] identifier[object] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[ModelsIllegalargumentException] operator[SEP] literal[String] , Keyword[this] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] , identifier[pm] operator[SEP] operator[SEP] } } }
@Nullable public static int[] getIntArray(@Nullable final JsonArray array) { if (null == array) return null; return IntStream.range(0, array.size()).map(i -> array.get(i).getAsInt()).toArray(); }
class class_name[name] begin[{] method[getIntArray, return_type[type[int]], modifier[public static], parameter[array]] begin[{] if[binary_operation[literal[null], ==, member[.array]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[IntStream.range, parameter[literal[0], call[array.size, parameter[]]]]] end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[getIntArray] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[JsonArray] identifier[array] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[array] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[return] identifier[IntStream] operator[SEP] identifier[range] operator[SEP] Other[0] , identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[i] operator[->] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getAsInt] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] operator[SEP] operator[SEP] }
public static String changeFormatAndTimeZone(String isoTimestamp, String toBeTimeFormat) { return changeFormatAndTimeZone(isoTimestamp, toBeTimeFormat, DEFAULT_ZONE_ID); }
class class_name[name] begin[{] method[changeFormatAndTimeZone, return_type[type[String]], modifier[public static], parameter[isoTimestamp, toBeTimeFormat]] begin[{] return[call[.changeFormatAndTimeZone, parameter[member[.isoTimestamp], member[.toBeTimeFormat], member[.DEFAULT_ZONE_ID]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[changeFormatAndTimeZone] operator[SEP] identifier[String] identifier[isoTimestamp] , identifier[String] identifier[toBeTimeFormat] operator[SEP] { Keyword[return] identifier[changeFormatAndTimeZone] operator[SEP] identifier[isoTimestamp] , identifier[toBeTimeFormat] , identifier[DEFAULT_ZONE_ID] operator[SEP] operator[SEP] }
private Paint getStylePaint(StyleRow style, FeatureDrawType drawType) { Paint paint = featurePaintCache.getPaint(style, drawType); if (paint == null) { mil.nga.geopackage.style.Color color = null; Float strokeWidth = null; switch (drawType) { case CIRCLE: color = style.getColorOrDefault(); break; case STROKE: color = style.getColorOrDefault(); strokeWidth = this.scale * (float) style.getWidthOrDefault(); break; case FILL: color = style.getFillColor(); strokeWidth = this.scale * (float) style.getWidthOrDefault(); break; default: throw new GeoPackageException("Unsupported Draw Type: " + drawType); } Paint stylePaint = new Paint(); stylePaint.setColor(new Color(color.getColorWithAlpha(), true)); if (strokeWidth != null) { stylePaint.setStrokeWidth(strokeWidth); } synchronized (featurePaintCache) { paint = featurePaintCache.getPaint(style, drawType); if (paint == null) { featurePaintCache.setPaint(style, drawType, stylePaint); paint = stylePaint; } } } return paint; }
class class_name[name] begin[{] method[getStylePaint, return_type[type[Paint]], modifier[private], parameter[style, drawType]] begin[{] local_variable[type[Paint], paint] if[binary_operation[member[.paint], ==, literal[null]]] begin[{] local_variable[type[mil], color] local_variable[type[Float], strokeWidth] SwitchStatement(cases=[SwitchStatementCase(case=['CIRCLE'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=color, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getColorOrDefault, postfix_operators=[], prefix_operators=[], qualifier=style, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['STROKE'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=color, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getColorOrDefault, postfix_operators=[], prefix_operators=[], qualifier=style, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=strokeWidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=scale, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operandr=Cast(expression=MethodInvocation(arguments=[], member=getWidthOrDefault, postfix_operators=[], prefix_operators=[], qualifier=style, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=float)), operator=*)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['FILL'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=color, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getFillColor, postfix_operators=[], prefix_operators=[], qualifier=style, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=strokeWidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=scale, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operandr=Cast(expression=MethodInvocation(arguments=[], member=getWidthOrDefault, postfix_operators=[], prefix_operators=[], qualifier=style, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=float)), operator=*)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unsupported Draw Type: "), operandr=MemberReference(member=drawType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GeoPackageException, sub_type=None)), label=None)])], expression=MemberReference(member=drawType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) local_variable[type[Paint], stylePaint] call[stylePaint.setColor, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getColorWithAlpha, postfix_operators=[], prefix_operators=[], qualifier=color, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Color, sub_type=None))]] if[binary_operation[member[.strokeWidth], !=, literal[null]]] begin[{] call[stylePaint.setStrokeWidth, parameter[member[.strokeWidth]]] else begin[{] None end[}] SYNCHRONIZED[member[.featurePaintCache]] BEGIN[{] assign[member[.paint], call[featurePaintCache.getPaint, parameter[member[.style], member[.drawType]]]] if[binary_operation[member[.paint], ==, literal[null]]] begin[{] call[featurePaintCache.setPaint, parameter[member[.style], member[.drawType], member[.stylePaint]]] assign[member[.paint], member[.stylePaint]] else begin[{] None end[}] END[}] else begin[{] None end[}] return[member[.paint]] end[}] END[}]
Keyword[private] identifier[Paint] identifier[getStylePaint] operator[SEP] identifier[StyleRow] identifier[style] , identifier[FeatureDrawType] identifier[drawType] operator[SEP] { identifier[Paint] identifier[paint] operator[=] identifier[featurePaintCache] operator[SEP] identifier[getPaint] operator[SEP] identifier[style] , identifier[drawType] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[paint] operator[==] Other[null] operator[SEP] { identifier[mil] operator[SEP] identifier[nga] operator[SEP] identifier[geopackage] operator[SEP] identifier[style] operator[SEP] identifier[Color] identifier[color] operator[=] Other[null] operator[SEP] identifier[Float] identifier[strokeWidth] operator[=] Other[null] operator[SEP] Keyword[switch] operator[SEP] identifier[drawType] operator[SEP] { Keyword[case] identifier[CIRCLE] operator[:] identifier[color] operator[=] identifier[style] operator[SEP] identifier[getColorOrDefault] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[STROKE] operator[:] identifier[color] operator[=] identifier[style] operator[SEP] identifier[getColorOrDefault] operator[SEP] operator[SEP] operator[SEP] identifier[strokeWidth] operator[=] Keyword[this] operator[SEP] identifier[scale] operator[*] operator[SEP] Keyword[float] operator[SEP] identifier[style] operator[SEP] identifier[getWidthOrDefault] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[FILL] operator[:] identifier[color] operator[=] identifier[style] operator[SEP] identifier[getFillColor] operator[SEP] operator[SEP] operator[SEP] identifier[strokeWidth] operator[=] Keyword[this] operator[SEP] identifier[scale] operator[*] operator[SEP] Keyword[float] operator[SEP] identifier[style] operator[SEP] identifier[getWidthOrDefault] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[GeoPackageException] operator[SEP] literal[String] operator[+] identifier[drawType] operator[SEP] operator[SEP] } identifier[Paint] identifier[stylePaint] operator[=] Keyword[new] identifier[Paint] operator[SEP] operator[SEP] operator[SEP] identifier[stylePaint] operator[SEP] identifier[setColor] operator[SEP] Keyword[new] identifier[Color] operator[SEP] identifier[color] operator[SEP] identifier[getColorWithAlpha] operator[SEP] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[strokeWidth] operator[!=] Other[null] operator[SEP] { identifier[stylePaint] operator[SEP] identifier[setStrokeWidth] operator[SEP] identifier[strokeWidth] operator[SEP] operator[SEP] } Keyword[synchronized] operator[SEP] identifier[featurePaintCache] operator[SEP] { identifier[paint] operator[=] identifier[featurePaintCache] operator[SEP] identifier[getPaint] operator[SEP] identifier[style] , identifier[drawType] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[paint] operator[==] Other[null] operator[SEP] { identifier[featurePaintCache] operator[SEP] identifier[setPaint] operator[SEP] identifier[style] , identifier[drawType] , identifier[stylePaint] operator[SEP] operator[SEP] identifier[paint] operator[=] identifier[stylePaint] operator[SEP] } } } Keyword[return] identifier[paint] operator[SEP] }
public String getMessage(Throwable exception) { String message; if (getExceptionToMessage() != null) { message = getExceptionToMessage().get(exception.getClass()); if (StringUtils.hasText(message)) { return message; } // map entry with a null value if (getExceptionToMessage().containsKey(exception.getClass())) { return exception.getMessage(); } } if (isSendExceptionMessage()) { return exception.getMessage(); } return getDefaultExceptionMessage(); }
class class_name[name] begin[{] method[getMessage, return_type[type[String]], modifier[public], parameter[exception]] begin[{] local_variable[type[String], message] if[binary_operation[call[.getExceptionToMessage, parameter[]], !=, literal[null]]] begin[{] assign[member[.message], call[.getExceptionToMessage, parameter[]]] if[call[StringUtils.hasText, parameter[member[.message]]]] begin[{] return[member[.message]] else begin[{] None end[}] if[call[.getExceptionToMessage, parameter[]]] begin[{] return[call[exception.getMessage, parameter[]]] else begin[{] None end[}] else begin[{] None end[}] if[call[.isSendExceptionMessage, parameter[]]] begin[{] return[call[exception.getMessage, parameter[]]] else begin[{] None end[}] return[call[.getDefaultExceptionMessage, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[getMessage] operator[SEP] identifier[Throwable] identifier[exception] operator[SEP] { identifier[String] identifier[message] operator[SEP] Keyword[if] operator[SEP] identifier[getExceptionToMessage] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[message] operator[=] identifier[getExceptionToMessage] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[exception] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[hasText] operator[SEP] identifier[message] operator[SEP] operator[SEP] { Keyword[return] identifier[message] operator[SEP] } Keyword[if] operator[SEP] identifier[getExceptionToMessage] operator[SEP] operator[SEP] operator[SEP] identifier[containsKey] operator[SEP] identifier[exception] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[exception] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[isSendExceptionMessage] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[exception] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[getDefaultExceptionMessage] operator[SEP] operator[SEP] operator[SEP] }
public static Planar<GrayF32> convertU8F32( InterleavedU8 input , Planar<GrayF32> output ) { if (output == null) { output = new Planar<>(GrayF32.class,input.width, input.height,input.numBands); } else { output.reshape(input.width,input.height,input.numBands); } if( BoofConcurrency.USE_CONCURRENT ) { ImplConvertImage_MT.convertU8F32(input,output); } else { ImplConvertImage.convertU8F32(input,output); } return output; }
class class_name[name] begin[{] method[convertU8F32, return_type[type[Planar]], modifier[public static], parameter[input, output]] begin[{] if[binary_operation[member[.output], ==, literal[null]]] begin[{] assign[member[.output], ClassCreator(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayF32, sub_type=None)), MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[]), MemberReference(member=height, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[]), MemberReference(member=numBands, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=Planar, sub_type=None))] else begin[{] call[output.reshape, parameter[member[input.width], member[input.height], member[input.numBands]]] end[}] if[member[BoofConcurrency.USE_CONCURRENT]] begin[{] call[ImplConvertImage_MT.convertU8F32, parameter[member[.input], member[.output]]] else begin[{] call[ImplConvertImage.convertU8F32, parameter[member[.input], member[.output]]] end[}] return[member[.output]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Planar] operator[<] identifier[GrayF32] operator[>] identifier[convertU8F32] operator[SEP] identifier[InterleavedU8] identifier[input] , identifier[Planar] operator[<] identifier[GrayF32] operator[>] identifier[output] operator[SEP] { Keyword[if] operator[SEP] identifier[output] operator[==] Other[null] operator[SEP] { identifier[output] operator[=] Keyword[new] identifier[Planar] operator[<] operator[>] operator[SEP] identifier[GrayF32] operator[SEP] Keyword[class] , identifier[input] operator[SEP] identifier[width] , identifier[input] operator[SEP] identifier[height] , identifier[input] operator[SEP] identifier[numBands] operator[SEP] operator[SEP] } Keyword[else] { identifier[output] operator[SEP] identifier[reshape] operator[SEP] identifier[input] operator[SEP] identifier[width] , identifier[input] operator[SEP] identifier[height] , identifier[input] operator[SEP] identifier[numBands] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[BoofConcurrency] operator[SEP] identifier[USE_CONCURRENT] operator[SEP] { identifier[ImplConvertImage_MT] operator[SEP] identifier[convertU8F32] operator[SEP] identifier[input] , identifier[output] operator[SEP] operator[SEP] } Keyword[else] { identifier[ImplConvertImage] operator[SEP] identifier[convertU8F32] operator[SEP] identifier[input] , identifier[output] operator[SEP] operator[SEP] } Keyword[return] identifier[output] operator[SEP] }
@SuppressLint("NewApi") public static void setBackground(View v, Drawable d) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { v.setBackgroundDrawable(d); } else { v.setBackground(d); } }
class class_name[name] begin[{] method[setBackground, return_type[void], modifier[public static], parameter[v, d]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], <, member[Build.VERSION_CODES.JELLY_BEAN]]] begin[{] call[v.setBackgroundDrawable, parameter[member[.d]]] else begin[{] call[v.setBackground, parameter[member[.d]]] end[}] end[}] END[}]
annotation[@] identifier[SuppressLint] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[setBackground] operator[SEP] identifier[View] identifier[v] , identifier[Drawable] identifier[d] operator[SEP] { Keyword[if] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION] operator[SEP] identifier[SDK_INT] operator[<] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[JELLY_BEAN] operator[SEP] { identifier[v] operator[SEP] identifier[setBackgroundDrawable] operator[SEP] identifier[d] operator[SEP] operator[SEP] } Keyword[else] { identifier[v] operator[SEP] identifier[setBackground] operator[SEP] identifier[d] operator[SEP] operator[SEP] } }
public ArtifactResult resolveArtifact( Artifact artifact ) throws ArtifactResolutionException { return resolveArtifact(new ArtifactRequest(artifact,remoteRepositories,null)); }
class class_name[name] begin[{] method[resolveArtifact, return_type[type[ArtifactResult]], modifier[public], parameter[artifact]] begin[{] return[call[.resolveArtifact, parameter[ClassCreator(arguments=[MemberReference(member=artifact, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=remoteRepositories, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ArtifactRequest, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[ArtifactResult] identifier[resolveArtifact] operator[SEP] identifier[Artifact] identifier[artifact] operator[SEP] Keyword[throws] identifier[ArtifactResolutionException] { Keyword[return] identifier[resolveArtifact] operator[SEP] Keyword[new] identifier[ArtifactRequest] operator[SEP] identifier[artifact] , identifier[remoteRepositories] , Other[null] operator[SEP] operator[SEP] operator[SEP] }
private LibBinder getTypeLibInfo(IWTypeLib p) throws BindingException { LibBinder tli = typeLibs.get(p); if(tli==null) { typeLibs.put(p,tli=new LibBinder(p)); } return tli; }
class class_name[name] begin[{] method[getTypeLibInfo, return_type[type[LibBinder]], modifier[private], parameter[p]] begin[{] local_variable[type[LibBinder], tli] if[binary_operation[member[.tli], ==, literal[null]]] begin[{] call[typeLibs.put, parameter[member[.p], assign[member[.tli], ClassCreator(arguments=[MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=LibBinder, sub_type=None))]]] else begin[{] None end[}] return[member[.tli]] end[}] END[}]
Keyword[private] identifier[LibBinder] identifier[getTypeLibInfo] operator[SEP] identifier[IWTypeLib] identifier[p] operator[SEP] Keyword[throws] identifier[BindingException] { identifier[LibBinder] identifier[tli] operator[=] identifier[typeLibs] operator[SEP] identifier[get] operator[SEP] identifier[p] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tli] operator[==] Other[null] operator[SEP] { identifier[typeLibs] operator[SEP] identifier[put] operator[SEP] identifier[p] , identifier[tli] operator[=] Keyword[new] identifier[LibBinder] operator[SEP] identifier[p] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[tli] operator[SEP] }
private String findParentFqcn(TypeElement typeElement, Set<String> parents) { TypeMirror type; while (true) { type = typeElement.getSuperclass(); if (type.getKind() == TypeKind.NONE) { return null; } typeElement = (TypeElement) ((DeclaredType) type).asElement(); if (parents.contains(typeElement.toString())) { String packageName = getPackageName(typeElement); return packageName + "." + getClassName(typeElement, packageName); } } }
class class_name[name] begin[{] method[findParentFqcn, return_type[type[String]], modifier[private], parameter[typeElement, parents]] begin[{] local_variable[type[TypeMirror], type] while[literal[true]] begin[{] assign[member[.type], call[typeElement.getSuperclass, parameter[]]] if[binary_operation[call[type.getKind, parameter[]], ==, member[TypeKind.NONE]]] begin[{] return[literal[null]] else begin[{] None end[}] assign[member[.typeElement], Cast(expression=Cast(expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=DeclaredType, sub_type=None)), type=ReferenceType(arguments=None, dimensions=[], name=TypeElement, sub_type=None))] if[call[parents.contains, parameter[call[typeElement.toString, parameter[]]]]] begin[{] local_variable[type[String], packageName] return[binary_operation[binary_operation[member[.packageName], +, literal["."]], +, call[.getClassName, parameter[member[.typeElement], member[.packageName]]]]] else begin[{] None end[}] end[}] end[}] END[}]
Keyword[private] identifier[String] identifier[findParentFqcn] operator[SEP] identifier[TypeElement] identifier[typeElement] , identifier[Set] operator[<] identifier[String] operator[>] identifier[parents] operator[SEP] { identifier[TypeMirror] identifier[type] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { identifier[type] operator[=] identifier[typeElement] operator[SEP] identifier[getSuperclass] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[SEP] identifier[getKind] operator[SEP] operator[SEP] operator[==] identifier[TypeKind] operator[SEP] identifier[NONE] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[typeElement] operator[=] operator[SEP] identifier[TypeElement] operator[SEP] operator[SEP] operator[SEP] identifier[DeclaredType] operator[SEP] identifier[type] operator[SEP] operator[SEP] identifier[asElement] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[parents] operator[SEP] identifier[contains] operator[SEP] identifier[typeElement] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[packageName] operator[=] identifier[getPackageName] operator[SEP] identifier[typeElement] operator[SEP] operator[SEP] Keyword[return] identifier[packageName] operator[+] literal[String] operator[+] identifier[getClassName] operator[SEP] identifier[typeElement] , identifier[packageName] operator[SEP] operator[SEP] } } }
public void showTextKerned(String text) { if (state.fontDetails == null) throw new NullPointerException("Font and size must be set before writing any text"); BaseFont bf = state.fontDetails.getBaseFont(); if (bf.hasKernPairs()) showText(getKernArray(text, bf)); else showText(text); }
class class_name[name] begin[{] method[showTextKerned, return_type[void], modifier[public], parameter[text]] begin[{] if[binary_operation[member[state.fontDetails], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Font and size must be set before writing any text")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NullPointerException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[BaseFont], bf] if[call[bf.hasKernPairs, parameter[]]] begin[{] call[.showText, parameter[call[.getKernArray, parameter[member[.text], member[.bf]]]]] else begin[{] call[.showText, parameter[member[.text]]] end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[showTextKerned] operator[SEP] identifier[String] identifier[text] operator[SEP] { Keyword[if] operator[SEP] identifier[state] operator[SEP] identifier[fontDetails] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[BaseFont] identifier[bf] operator[=] identifier[state] operator[SEP] identifier[fontDetails] operator[SEP] identifier[getBaseFont] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bf] operator[SEP] identifier[hasKernPairs] operator[SEP] operator[SEP] operator[SEP] identifier[showText] operator[SEP] identifier[getKernArray] operator[SEP] identifier[text] , identifier[bf] operator[SEP] operator[SEP] operator[SEP] Keyword[else] identifier[showText] operator[SEP] identifier[text] operator[SEP] operator[SEP] }
public ElemTemplateElement appendChild(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_WHEN : case Constants.ELEMNAME_OTHERWISE : // TODO: Positional checking break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
class class_name[name] begin[{] method[appendChild, return_type[type[ElemTemplateElement]], modifier[public], parameter[newChild]] begin[{] local_variable[type[int], type] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=ELEMNAME_WHEN, postfix_operators=[], prefix_operators=[], qualifier=Constants, selectors=[]), MemberReference(member=ELEMNAME_OTHERWISE, postfix_operators=[], prefix_operators=[], qualifier=Constants, selectors=[])], statements=[BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ER_CANNOT_ADD, postfix_operators=[], prefix_operators=[], qualifier=XSLTErrorResources, selectors=[]), ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MethodInvocation(arguments=[], member=getNodeName, postfix_operators=[], prefix_operators=[], qualifier=newChild, selectors=[], type_arguments=None), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getNodeName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Object, sub_type=None))], member=error, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) return[SuperMethodInvocation(arguments=[MemberReference(member=newChild, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=appendChild, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)] end[}] END[}]
Keyword[public] identifier[ElemTemplateElement] identifier[appendChild] operator[SEP] identifier[ElemTemplateElement] identifier[newChild] operator[SEP] { Keyword[int] identifier[type] operator[=] operator[SEP] operator[SEP] identifier[ElemTemplateElement] operator[SEP] identifier[newChild] operator[SEP] operator[SEP] identifier[getXSLToken] operator[SEP] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[Constants] operator[SEP] identifier[ELEMNAME_WHEN] operator[:] Keyword[case] identifier[Constants] operator[SEP] identifier[ELEMNAME_OTHERWISE] operator[:] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[error] operator[SEP] identifier[XSLTErrorResources] operator[SEP] identifier[ER_CANNOT_ADD] , Keyword[new] identifier[Object] operator[SEP] operator[SEP] { identifier[newChild] operator[SEP] identifier[getNodeName] operator[SEP] operator[SEP] , Keyword[this] operator[SEP] identifier[getNodeName] operator[SEP] operator[SEP] } operator[SEP] operator[SEP] } Keyword[return] Keyword[super] operator[SEP] identifier[appendChild] operator[SEP] identifier[newChild] operator[SEP] operator[SEP] }
public static int[] arange(final int len) { checkArgument(len > 0); final int[] ret = new int[len]; for (int i = 0; i < len; ++i) { ret[i] = i; } return ret; }
class class_name[name] begin[{] method[arange, return_type[type[int]], modifier[public static], parameter[len]] begin[{] call[.checkArgument, parameter[binary_operation[member[.len], >, literal[0]]]] local_variable[type[int], ret] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=ret, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) return[member[.ret]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[arange] operator[SEP] Keyword[final] Keyword[int] identifier[len] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[len] operator[>] Other[0] operator[SEP] operator[SEP] Keyword[final] Keyword[int] operator[SEP] operator[SEP] identifier[ret] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[len] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[len] operator[SEP] operator[++] identifier[i] operator[SEP] { identifier[ret] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[i] operator[SEP] } Keyword[return] identifier[ret] operator[SEP] }
public static Config parseResources(ClassLoader loader, String resource, ConfigParseOptions options) { return Parseable.newResources(resource, options.setClassLoader(loader)).parse().toConfig(); }
class class_name[name] begin[{] method[parseResources, return_type[type[Config]], modifier[public static], parameter[loader, resource, options]] begin[{] return[call[Parseable.newResources, parameter[member[.resource], call[options.setClassLoader, parameter[member[.loader]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Config] identifier[parseResources] operator[SEP] identifier[ClassLoader] identifier[loader] , identifier[String] identifier[resource] , identifier[ConfigParseOptions] identifier[options] operator[SEP] { Keyword[return] identifier[Parseable] operator[SEP] identifier[newResources] operator[SEP] identifier[resource] , identifier[options] operator[SEP] identifier[setClassLoader] operator[SEP] identifier[loader] operator[SEP] operator[SEP] operator[SEP] identifier[parse] operator[SEP] operator[SEP] operator[SEP] identifier[toConfig] operator[SEP] operator[SEP] operator[SEP] }
@Override public CPInstance[] findByG_ST_PrevAndNext(long CPInstanceId, long groupId, int status, OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException { CPInstance cpInstance = findByPrimaryKey(CPInstanceId); Session session = null; try { session = openSession(); CPInstance[] array = new CPInstanceImpl[3]; array[0] = getByG_ST_PrevAndNext(session, cpInstance, groupId, status, orderByComparator, true); array[1] = cpInstance; array[2] = getByG_ST_PrevAndNext(session, cpInstance, groupId, status, orderByComparator, false); return array; } catch (Exception e) { throw processException(e); } finally { closeSession(session); } }
class class_name[name] begin[{] method[findByG_ST_PrevAndNext, return_type[type[CPInstance]], modifier[public], parameter[CPInstanceId, groupId, status, orderByComparator]] begin[{] local_variable[type[CPInstance], cpInstance] local_variable[type[Session], session] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=openSession, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CPInstanceImpl, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=CPInstance, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=cpInstance, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=groupId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=status, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=orderByComparator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=getByG_ST_PrevAndNext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))]), type==, value=MemberReference(member=cpInstance, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2))]), type==, value=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=cpInstance, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=groupId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=status, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=orderByComparator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=getByG_ST_PrevAndNext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), ReturnStatement(expression=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=processException, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=closeSession, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CPInstance] operator[SEP] operator[SEP] identifier[findByG_ST_PrevAndNext] operator[SEP] Keyword[long] identifier[CPInstanceId] , Keyword[long] identifier[groupId] , Keyword[int] identifier[status] , identifier[OrderByComparator] operator[<] identifier[CPInstance] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[NoSuchCPInstanceException] { identifier[CPInstance] identifier[cpInstance] operator[=] identifier[findByPrimaryKey] operator[SEP] identifier[CPInstanceId] operator[SEP] operator[SEP] identifier[Session] identifier[session] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[session] operator[=] identifier[openSession] operator[SEP] operator[SEP] operator[SEP] identifier[CPInstance] operator[SEP] operator[SEP] identifier[array] operator[=] Keyword[new] identifier[CPInstanceImpl] operator[SEP] Other[3] operator[SEP] operator[SEP] identifier[array] operator[SEP] Other[0] operator[SEP] operator[=] identifier[getByG_ST_PrevAndNext] operator[SEP] identifier[session] , identifier[cpInstance] , identifier[groupId] , identifier[status] , identifier[orderByComparator] , literal[boolean] operator[SEP] operator[SEP] identifier[array] operator[SEP] Other[1] operator[SEP] operator[=] identifier[cpInstance] operator[SEP] identifier[array] operator[SEP] Other[2] operator[SEP] operator[=] identifier[getByG_ST_PrevAndNext] operator[SEP] identifier[session] , identifier[cpInstance] , identifier[groupId] , identifier[status] , identifier[orderByComparator] , literal[boolean] operator[SEP] operator[SEP] Keyword[return] identifier[array] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] identifier[processException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[finally] { identifier[closeSession] operator[SEP] identifier[session] operator[SEP] operator[SEP] } }
public static char eatPercentage(String a, int[] n) { // Length 0 if (!a.startsWith("%") || a.length() < 3) { n[0] = 0; return ((char) 0); } char c; // Try to parse first char try { c = (char) Integer.parseInt(a.substring(1, 3), 16); } catch (Exception e) { n[0] = -1; return ((char) 0); } // For non-UTF8, return the char int len = Utf8Length(c); n[0] = 3; if (len <= 1) return (c); // Else collect the UTF8 String dec = "" + c; for (int i = 1; i < len; i++) { try { dec += (char) Integer.parseInt(a.substring(1 + i * 3, 3 + i * 3), 16); } catch (Exception e) { return (c); } } // Try to decode the UTF8 int[] eatLength = new int[1]; char utf8 = eatUtf8(dec, eatLength); if (eatLength[0] != len) return (c); n[0] = len * 3; return (utf8); }
class class_name[name] begin[{] method[eatPercentage, return_type[type[char]], modifier[public static], parameter[a, n]] begin[{] if[binary_operation[call[a.startsWith, parameter[literal["%"]]], ||, binary_operation[call[a.length, parameter[]], <, literal[3]]]] begin[{] assign[member[.n], literal[0]] return[Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), type=BasicType(dimensions=[], name=char))] else begin[{] None end[}] local_variable[type[char], c] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=char))), label=None)], catches=[CatchClause(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)), label=None), ReturnStatement(expression=Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), type=BasicType(dimensions=[], name=char)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) local_variable[type[int], len] assign[member[.n], literal[3]] if[binary_operation[member[.len], <=, literal[1]]] begin[{] return[member[.c]] else begin[{] None end[}] local_variable[type[String], dec] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=dec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=*), operator=+), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operandr=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=*), operator=+)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=char))), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[int], eatLength] local_variable[type[char], utf8] if[binary_operation[member[.eatLength], !=, member[.len]]] begin[{] return[member[.c]] else begin[{] None end[}] assign[member[.n], binary_operation[member[.len], *, literal[3]]] return[member[.utf8]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[char] identifier[eatPercentage] operator[SEP] identifier[String] identifier[a] , Keyword[int] operator[SEP] operator[SEP] identifier[n] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[a] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[||] identifier[a] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[<] Other[3] operator[SEP] { identifier[n] operator[SEP] Other[0] operator[SEP] operator[=] Other[0] operator[SEP] Keyword[return] operator[SEP] operator[SEP] Keyword[char] operator[SEP] Other[0] operator[SEP] operator[SEP] } Keyword[char] identifier[c] operator[SEP] Keyword[try] { identifier[c] operator[=] operator[SEP] Keyword[char] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[a] operator[SEP] identifier[substring] operator[SEP] Other[1] , Other[3] operator[SEP] , Other[16] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[n] operator[SEP] Other[0] operator[SEP] operator[=] operator[-] Other[1] operator[SEP] Keyword[return] operator[SEP] operator[SEP] Keyword[char] operator[SEP] Other[0] operator[SEP] operator[SEP] } Keyword[int] identifier[len] operator[=] identifier[Utf8Length] operator[SEP] identifier[c] operator[SEP] operator[SEP] identifier[n] operator[SEP] Other[0] operator[SEP] operator[=] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[len] operator[<=] Other[1] operator[SEP] Keyword[return] operator[SEP] identifier[c] operator[SEP] operator[SEP] identifier[String] identifier[dec] operator[=] literal[String] operator[+] identifier[c] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] identifier[i] operator[<] identifier[len] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[try] { identifier[dec] operator[+=] operator[SEP] Keyword[char] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[a] operator[SEP] identifier[substring] operator[SEP] Other[1] operator[+] identifier[i] operator[*] Other[3] , Other[3] operator[+] identifier[i] operator[*] Other[3] operator[SEP] , Other[16] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[return] operator[SEP] identifier[c] operator[SEP] operator[SEP] } } Keyword[int] operator[SEP] operator[SEP] identifier[eatLength] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[char] identifier[utf8] operator[=] identifier[eatUtf8] operator[SEP] identifier[dec] , identifier[eatLength] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[eatLength] operator[SEP] Other[0] operator[SEP] operator[!=] identifier[len] operator[SEP] Keyword[return] operator[SEP] identifier[c] operator[SEP] operator[SEP] identifier[n] operator[SEP] Other[0] operator[SEP] operator[=] identifier[len] operator[*] Other[3] operator[SEP] Keyword[return] operator[SEP] identifier[utf8] operator[SEP] operator[SEP] }
protected boolean isOracleDatabase() throws HandlerException { String dbName = determineDatabaseType(); if (dbName == null) { return false; } return "Oracle".equalsIgnoreCase(dbName); }
class class_name[name] begin[{] method[isOracleDatabase, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] local_variable[type[String], dbName] if[binary_operation[member[.dbName], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] return[literal["Oracle"]] end[}] END[}]
Keyword[protected] Keyword[boolean] identifier[isOracleDatabase] operator[SEP] operator[SEP] Keyword[throws] identifier[HandlerException] { identifier[String] identifier[dbName] operator[=] identifier[determineDatabaseType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[dbName] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[dbName] operator[SEP] operator[SEP] }
@Override public Analyzer analyzer() { // Setup stopwords CharArraySet stops = stopwords == null ? getDefaultStopwords(language) : getStopwords(stopwords); return buildAnalyzer(language, stops); }
class class_name[name] begin[{] method[analyzer, return_type[type[Analyzer]], modifier[public], parameter[]] begin[{] local_variable[type[CharArraySet], stops] return[call[.buildAnalyzer, parameter[member[.language], member[.stops]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Analyzer] identifier[analyzer] operator[SEP] operator[SEP] { identifier[CharArraySet] identifier[stops] operator[=] identifier[stopwords] operator[==] Other[null] operator[?] identifier[getDefaultStopwords] operator[SEP] identifier[language] operator[SEP] operator[:] identifier[getStopwords] operator[SEP] identifier[stopwords] operator[SEP] operator[SEP] Keyword[return] identifier[buildAnalyzer] operator[SEP] identifier[language] , identifier[stops] operator[SEP] operator[SEP] }
public List<Blob> get(String blobName1, String blobName2, String... blobNames) { List<BlobId> blobIds = Lists.newArrayListWithCapacity(blobNames.length + 2); blobIds.add(BlobId.of(getName(), blobName1)); blobIds.add(BlobId.of(getName(), blobName2)); for (String blobName : blobNames) { blobIds.add(BlobId.of(getName(), blobName)); } return storage.get(blobIds); }
class class_name[name] begin[{] method[get, return_type[type[List]], modifier[public], parameter[blobName1, blobName2, blobNames]] begin[{] local_variable[type[List], blobIds] call[blobIds.add, parameter[call[BlobId.of, parameter[call[.getName, parameter[]], member[.blobName1]]]]] call[blobIds.add, parameter[call[BlobId.of, parameter[call[.getName, parameter[]], member[.blobName2]]]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=blobName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=of, postfix_operators=[], prefix_operators=[], qualifier=BlobId, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=blobIds, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=blobNames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=blobName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) return[call[storage.get, parameter[member[.blobIds]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Blob] operator[>] identifier[get] operator[SEP] identifier[String] identifier[blobName1] , identifier[String] identifier[blobName2] , identifier[String] operator[...] identifier[blobNames] operator[SEP] { identifier[List] operator[<] identifier[BlobId] operator[>] identifier[blobIds] operator[=] identifier[Lists] operator[SEP] identifier[newArrayListWithCapacity] operator[SEP] identifier[blobNames] operator[SEP] identifier[length] operator[+] Other[2] operator[SEP] operator[SEP] identifier[blobIds] operator[SEP] identifier[add] operator[SEP] identifier[BlobId] operator[SEP] identifier[of] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[blobName1] operator[SEP] operator[SEP] operator[SEP] identifier[blobIds] operator[SEP] identifier[add] operator[SEP] identifier[BlobId] operator[SEP] identifier[of] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[blobName2] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[blobName] operator[:] identifier[blobNames] operator[SEP] { identifier[blobIds] operator[SEP] identifier[add] operator[SEP] identifier[BlobId] operator[SEP] identifier[of] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[blobName] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[storage] operator[SEP] identifier[get] operator[SEP] identifier[blobIds] operator[SEP] operator[SEP] }
public void deleteVariable(Object groupIdOrPath, String key) throws GitLabApiException { delete(Response.Status.NO_CONTENT, null, "groups", getGroupIdOrPath(groupIdOrPath), "variables", key); }
class class_name[name] begin[{] method[deleteVariable, return_type[void], modifier[public], parameter[groupIdOrPath, key]] begin[{] call[.delete, parameter[member[Response.Status.NO_CONTENT], literal[null], literal["groups"], call[.getGroupIdOrPath, parameter[member[.groupIdOrPath]]], literal["variables"], member[.key]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[deleteVariable] operator[SEP] identifier[Object] identifier[groupIdOrPath] , identifier[String] identifier[key] operator[SEP] Keyword[throws] identifier[GitLabApiException] { identifier[delete] operator[SEP] identifier[Response] operator[SEP] identifier[Status] operator[SEP] identifier[NO_CONTENT] , Other[null] , literal[String] , identifier[getGroupIdOrPath] operator[SEP] identifier[groupIdOrPath] operator[SEP] , literal[String] , identifier[key] operator[SEP] operator[SEP] }
public void set(Rec record) throws DBException { if ((this.getRecord().getEditMode() != Constants.EDIT_CURRENT) && ((this.getRecord().getEditMode() != Constants.EDIT_IN_PROGRESS))) throw new DBException(Constants.INVALID_RECORD); m_record = (FieldList)record; this.fieldsToData(record); this.doSet(record); this.setDataSource(null); this.getRecord().setEditMode(Constants.EDIT_NONE); }
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[record]] begin[{] if[binary_operation[binary_operation[THIS[call[None.getRecord, parameter[]]call[None.getEditMode, parameter[]]], !=, member[Constants.EDIT_CURRENT]], &&, binary_operation[THIS[call[None.getRecord, parameter[]]call[None.getEditMode, parameter[]]], !=, member[Constants.EDIT_IN_PROGRESS]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=INVALID_RECORD, postfix_operators=[], prefix_operators=[], qualifier=Constants, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DBException, sub_type=None)), label=None) else begin[{] None end[}] assign[member[.m_record], Cast(expression=MemberReference(member=record, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=FieldList, sub_type=None))] THIS[call[None.fieldsToData, parameter[member[.record]]]] THIS[call[None.doSet, parameter[member[.record]]]] THIS[call[None.setDataSource, parameter[literal[null]]]] THIS[call[None.getRecord, parameter[]]call[None.setEditMode, parameter[member[Constants.EDIT_NONE]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[Rec] identifier[record] operator[SEP] Keyword[throws] identifier[DBException] { Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[getRecord] operator[SEP] operator[SEP] operator[SEP] identifier[getEditMode] operator[SEP] operator[SEP] operator[!=] identifier[Constants] operator[SEP] identifier[EDIT_CURRENT] operator[SEP] operator[&&] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[getRecord] operator[SEP] operator[SEP] operator[SEP] identifier[getEditMode] operator[SEP] operator[SEP] operator[!=] identifier[Constants] operator[SEP] identifier[EDIT_IN_PROGRESS] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[DBException] operator[SEP] identifier[Constants] operator[SEP] identifier[INVALID_RECORD] operator[SEP] operator[SEP] identifier[m_record] operator[=] operator[SEP] identifier[FieldList] operator[SEP] identifier[record] operator[SEP] Keyword[this] operator[SEP] identifier[fieldsToData] operator[SEP] identifier[record] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[doSet] operator[SEP] identifier[record] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[setDataSource] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[getRecord] operator[SEP] operator[SEP] operator[SEP] identifier[setEditMode] operator[SEP] identifier[Constants] operator[SEP] identifier[EDIT_NONE] operator[SEP] operator[SEP] }
@Nonnull public static LCharToByteFunction charToByteFunctionFrom(Consumer<LCharToByteFunctionBuilder> buildingFunction) { LCharToByteFunctionBuilder builder = new LCharToByteFunctionBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[charToByteFunctionFrom, return_type[type[LCharToByteFunction]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[LCharToByteFunctionBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] return[call[builder.build, parameter[]]] end[}] END[}]
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[LCharToByteFunction] identifier[charToByteFunctionFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LCharToByteFunctionBuilder] operator[>] identifier[buildingFunction] operator[SEP] { identifier[LCharToByteFunctionBuilder] identifier[builder] operator[=] Keyword[new] identifier[LCharToByteFunctionBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buildingFunction] operator[SEP] identifier[accept] operator[SEP] identifier[builder] operator[SEP] operator[SEP] Keyword[return] identifier[builder] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] }
@Override public void execute() throws MojoExecutionException { if (StringUtils.isEmpty(moduleSource) && ignoreMissingSource) { getLog().info("No help module source specified."); return; } init("help", moduleBase); registerLoader(new SourceLoader("javahelp", "*.hs", ZipIterator.class)); registerLoader(new SourceLoader("ohj", "*.hs", ZipIterator.class)); registerLoader(new ChmSourceLoader()); registerExternalLoaders(); SourceLoader loader = sourceLoaders.get(moduleFormat); if (loader == null) { throw new MojoExecutionException("No source loader found for format " + moduleFormat); } try { String sourceFilename = FileUtils.normalize(baseDirectory + "/" + moduleSource); HelpProcessor processor = new HelpProcessor(this, sourceFilename, loader); processor.transform(); addConfigEntry("help", moduleId, processor.getHelpSetFile(), moduleName, getModuleVersion(), moduleFormat, moduleLocale); assembleArchive(); } catch (Exception e) { throw new MojoExecutionException("Unexpected error.", e); } }
class class_name[name] begin[{] method[execute, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[StringUtils.isEmpty, parameter[member[.moduleSource]]], &&, member[.ignoreMissingSource]]] begin[{] call[.getLog, parameter[]] return[None] else begin[{] None end[}] call[.init, parameter[literal["help"], member[.moduleBase]]] call[.registerLoader, parameter[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="javahelp"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.hs"), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ZipIterator, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SourceLoader, sub_type=None))]] call[.registerLoader, parameter[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ohj"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.hs"), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ZipIterator, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SourceLoader, sub_type=None))]] call[.registerLoader, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ChmSourceLoader, sub_type=None))]] call[.registerExternalLoaders, parameter[]] local_variable[type[SourceLoader], loader] if[binary_operation[member[.loader], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No source loader found for format "), operandr=MemberReference(member=moduleFormat, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MojoExecutionException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=baseDirectory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/"), operator=+), operandr=MemberReference(member=moduleSource, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=normalize, postfix_operators=[], prefix_operators=[], qualifier=FileUtils, selectors=[], type_arguments=None), name=sourceFilename)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=sourceFilename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=loader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=HelpProcessor, sub_type=None)), name=processor)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HelpProcessor, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[], member=transform, postfix_operators=[], prefix_operators=[], qualifier=processor, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="help"), MemberReference(member=moduleId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getHelpSetFile, postfix_operators=[], prefix_operators=[], qualifier=processor, selectors=[], type_arguments=None), MemberReference(member=moduleName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getModuleVersion, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=moduleFormat, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=moduleLocale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addConfigEntry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=assembleArchive, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unexpected error."), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MojoExecutionException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[execute] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[moduleSource] operator[SEP] operator[&&] identifier[ignoreMissingSource] operator[SEP] { identifier[getLog] operator[SEP] operator[SEP] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[init] operator[SEP] literal[String] , identifier[moduleBase] operator[SEP] operator[SEP] identifier[registerLoader] operator[SEP] Keyword[new] identifier[SourceLoader] operator[SEP] literal[String] , literal[String] , identifier[ZipIterator] operator[SEP] Keyword[class] operator[SEP] operator[SEP] operator[SEP] identifier[registerLoader] operator[SEP] Keyword[new] identifier[SourceLoader] operator[SEP] literal[String] , literal[String] , identifier[ZipIterator] operator[SEP] Keyword[class] operator[SEP] operator[SEP] operator[SEP] identifier[registerLoader] operator[SEP] Keyword[new] identifier[ChmSourceLoader] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[registerExternalLoaders] operator[SEP] operator[SEP] operator[SEP] identifier[SourceLoader] identifier[loader] operator[=] identifier[sourceLoaders] operator[SEP] identifier[get] operator[SEP] identifier[moduleFormat] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[loader] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[MojoExecutionException] operator[SEP] literal[String] operator[+] identifier[moduleFormat] operator[SEP] operator[SEP] } Keyword[try] { identifier[String] identifier[sourceFilename] operator[=] identifier[FileUtils] operator[SEP] identifier[normalize] operator[SEP] identifier[baseDirectory] operator[+] literal[String] operator[+] identifier[moduleSource] operator[SEP] operator[SEP] identifier[HelpProcessor] identifier[processor] operator[=] Keyword[new] identifier[HelpProcessor] operator[SEP] Keyword[this] , identifier[sourceFilename] , identifier[loader] operator[SEP] operator[SEP] identifier[processor] operator[SEP] identifier[transform] operator[SEP] operator[SEP] operator[SEP] identifier[addConfigEntry] operator[SEP] literal[String] , identifier[moduleId] , identifier[processor] operator[SEP] identifier[getHelpSetFile] operator[SEP] operator[SEP] , identifier[moduleName] , identifier[getModuleVersion] operator[SEP] operator[SEP] , identifier[moduleFormat] , identifier[moduleLocale] operator[SEP] operator[SEP] identifier[assembleArchive] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[MojoExecutionException] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } }
@Override public boolean hasWaveBean(final Class<? extends WaveBean> waveBeanClass) { if (this.waveBeanMap != null && !this.waveBeanMap.isEmpty()) { return this.waveBeanMap.containsKey(waveBeanClass); } return false; }
class class_name[name] begin[{] method[hasWaveBean, return_type[type[boolean]], modifier[public], parameter[waveBeanClass]] begin[{] if[binary_operation[binary_operation[THIS[member[None.waveBeanMap]], !=, literal[null]], &&, THIS[member[None.waveBeanMap]call[None.isEmpty, parameter[]]]]] begin[{] return[THIS[member[None.waveBeanMap]call[None.containsKey, parameter[member[.waveBeanClass]]]]] else begin[{] None end[}] return[literal[false]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[hasWaveBean] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[WaveBean] operator[>] identifier[waveBeanClass] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[waveBeanMap] operator[!=] Other[null] operator[&&] operator[!] Keyword[this] operator[SEP] identifier[waveBeanMap] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[waveBeanMap] operator[SEP] identifier[containsKey] operator[SEP] identifier[waveBeanClass] operator[SEP] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
public synchronized void unregisterSessionManager(Object key) { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[UNREGISTER_SESSION_MANAGER], "registryKey= " + key); } _genericSessionManagers.remove(key); if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_CORE.exiting(methodClassName, methodNames[UNREGISTER_SESSION_MANAGER]); } }
class class_name[name] begin[{] method[unregisterSessionManager, return_type[void], modifier[synchronized public], parameter[key]] begin[{] if[binary_operation[call[com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[LoggingUtil.SESSION_LOGGER_CORE.isLoggable, parameter[member[Level.FINE]]]]] begin[{] call[LoggingUtil.SESSION_LOGGER_CORE.entering, parameter[member[.methodClassName], member[.methodNames], binary_operation[literal["registryKey= "], +, member[.key]]]] else begin[{] None end[}] call[_genericSessionManagers.remove, parameter[member[.key]]] if[binary_operation[call[com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[LoggingUtil.SESSION_LOGGER_CORE.isLoggable, parameter[member[Level.FINE]]]]] begin[{] call[LoggingUtil.SESSION_LOGGER_CORE.exiting, parameter[member[.methodClassName], member[.methodNames]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[synchronized] Keyword[void] identifier[unregisterSessionManager] operator[SEP] identifier[Object] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ejs] operator[SEP] identifier[ras] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[LoggingUtil] operator[SEP] identifier[SESSION_LOGGER_CORE] operator[SEP] identifier[isLoggable] operator[SEP] identifier[Level] operator[SEP] identifier[FINE] operator[SEP] operator[SEP] { identifier[LoggingUtil] operator[SEP] identifier[SESSION_LOGGER_CORE] operator[SEP] identifier[entering] operator[SEP] identifier[methodClassName] , identifier[methodNames] operator[SEP] identifier[UNREGISTER_SESSION_MANAGER] operator[SEP] , literal[String] operator[+] identifier[key] operator[SEP] operator[SEP] } identifier[_genericSessionManagers] operator[SEP] identifier[remove] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ejs] operator[SEP] identifier[ras] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[LoggingUtil] operator[SEP] identifier[SESSION_LOGGER_CORE] operator[SEP] identifier[isLoggable] operator[SEP] identifier[Level] operator[SEP] identifier[FINE] operator[SEP] operator[SEP] { identifier[LoggingUtil] operator[SEP] identifier[SESSION_LOGGER_CORE] operator[SEP] identifier[exiting] operator[SEP] identifier[methodClassName] , identifier[methodNames] operator[SEP] identifier[UNREGISTER_SESSION_MANAGER] operator[SEP] operator[SEP] operator[SEP] } }
private WsByteBuffer[] marshallReuseHeaders(WsByteBuffer[] inBuffers) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); WsByteBuffer[] src = inBuffers; if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Marshalling headers and re-using buffers, change=" + this.headerChangeCount + ", add=" + this.headerAddCount + ", src=" + src); } HeaderElement elem = this.hdrSequence; WsByteBuffer[] buffers = src; int size = this.parseIndex + (0 < this.headerAddCount ? 2 : 1); int output = 0; int input = 0; if (null == src || 0 == src.length) { // the first line has not changed buffers = new WsByteBuffer[size]; } else { // first line has been remarshalled. We need to update the parse // buffers to trim off the first line data. Dump any first line data // from the cache and flip the last buffer. src = flushCache(src); src[src.length - 1].flip(); int firstHeaderBuffer = elem.getLastCRLFBufferIndex(); for (int i = 0; i < firstHeaderBuffer; i++) { if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Trimming first line data from " + this.parseBuffers[i]); } this.parseBuffersStartPos[i] = this.parseBuffers[i].limit(); } int firstHeaderPos = elem.getLastCRLFPosition() + (elem.isLastCRLFaCR() ? 2 : 1); if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Setting first buffer with headers pos to " + firstHeaderPos); } this.parseBuffersStartPos[firstHeaderBuffer] = firstHeaderPos; size = size - firstHeaderBuffer + src.length; buffers = new WsByteBuffer[size]; System.arraycopy(src, 0, buffers, 0, src.length); output = src.length; input = firstHeaderBuffer; } // handle any changed/removed headers if (0 < this.headerChangeCount) { elem = this.hdrSequence; for (int i = 0; i < this.headerChangeCount && null != elem && -1 != elem.getLastCRLFBufferIndex();) { if (elem.wasRemoved()) { eraseValue(elem); i++; } else if (elem.wasChanged()) { overlayValue(elem); i++; } elem = elem.nextSequence; } } // copy the existing parse buffers to the output list, fixing positions // as we go, up until the last header buffer for (; input < this.parseIndex; input++, output++) { buffers[output] = this.parseBuffers[input]; buffers[output].position(this.parseBuffersStartPos[input]); if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Copying existing parse buffer: " + buffers[output]); } } // now slice the last header buffer. If no additional headers are there, // then leave the double EOL, otherwise trim one of them off int endPos = this.eohPosition; if (0 < this.headerAddCount) { endPos = this.lastCRLFPosition + 1; if (this.lastCRLFisCR) { endPos++; } } WsByteBuffer buffer = this.parseBuffers[input]; int pos = buffer.position(); int lim = buffer.limit(); buffer.position(this.parseBuffersStartPos[input]); buffer.limit(endPos); buffers[output] = buffer.slice(); addToCreatedBuffer(buffers[output]); buffer.limit(lim); buffer.position(pos); if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Sliced last header buffer: " + buffers[output]); } // check whether we need to marshall any new headers if (0 < this.headerAddCount) { buffers = marshallAddedHeaders(buffers, ++output); } return buffers; }
class class_name[name] begin[{] method[marshallReuseHeaders, return_type[type[WsByteBuffer]], modifier[private], parameter[inBuffers]] begin[{] local_variable[type[boolean], bTrace] local_variable[type[WsByteBuffer], src] if[binary_operation[member[.bTrace], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Marshalling headers and re-using buffers, change="], +, THIS[member[None.headerChangeCount]]], +, literal[", add="]], +, THIS[member[None.headerAddCount]]], +, literal[", src="]], +, member[.src]]]] else begin[{] None end[}] local_variable[type[HeaderElement], elem] local_variable[type[WsByteBuffer], buffers] local_variable[type[int], size] local_variable[type[int], output] local_variable[type[int], input] if[binary_operation[binary_operation[literal[null], ==, member[.src]], ||, binary_operation[literal[0], ==, member[src.length]]]] begin[{] assign[member[.buffers], ArrayCreator(dimensions=[MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=WsByteBuffer, sub_type=None))] else begin[{] assign[member[.src], call[.flushCache, parameter[member[.src]]]] member[.src] local_variable[type[int], firstHeaderBuffer] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bTrace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=tc, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Trimming first line data from "), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parseBuffers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=Tr, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parseBuffersStartPos, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parseBuffers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[], member=limit, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=firstHeaderBuffer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[int], firstHeaderPos] if[binary_operation[member[.bTrace], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[literal["Setting first buffer with headers pos to "], +, member[.firstHeaderPos]]]] else begin[{] None end[}] assign[THIS[member[None.parseBuffersStartPos]ArraySelector(index=MemberReference(member=firstHeaderBuffer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))], member[.firstHeaderPos]] assign[member[.size], binary_operation[binary_operation[member[.size], -, member[.firstHeaderBuffer]], +, member[src.length]]] assign[member[.buffers], ArrayCreator(dimensions=[MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=WsByteBuffer, sub_type=None))] call[System.arraycopy, parameter[member[.src], literal[0], member[.buffers], literal[0], member[src.length]]] assign[member[.output], member[src.length]] assign[member[.input], member[.firstHeaderBuffer]] end[}] if[binary_operation[literal[0], <, THIS[member[None.headerChangeCount]]]] begin[{] assign[member[.elem], THIS[member[None.hdrSequence]]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=wasRemoved, postfix_operators=[], prefix_operators=[], qualifier=elem, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[], member=wasChanged, postfix_operators=[], prefix_operators=[], qualifier=elem, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=elem, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=overlayValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=elem, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=eraseValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=elem, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=nextSequence, postfix_operators=[], prefix_operators=[], qualifier=elem, selectors=[])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=headerChangeCount, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operator=<), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operandr=MemberReference(member=elem, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), operator=&&), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), operandr=MethodInvocation(arguments=[], member=getLastCRLFBufferIndex, postfix_operators=[], prefix_operators=[], qualifier=elem, selectors=[], type_arguments=None), operator=!=), operator=&&), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=None), label=None) else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=buffers, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=output, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parseBuffers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), ArraySelector(index=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])), label=None), StatementExpression(expression=MemberReference(member=buffers, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=output, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parseBuffersStartPos, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), ArraySelector(index=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=position, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bTrace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=tc, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Copying existing parse buffer: "), operandr=MemberReference(member=buffers, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=output, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=Tr, selectors=[], type_arguments=None), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parseIndex, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operator=<), init=None, update=[MemberReference(member=input, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=output, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[int], endPos] if[binary_operation[literal[0], <, THIS[member[None.headerAddCount]]]] begin[{] assign[member[.endPos], binary_operation[THIS[member[None.lastCRLFPosition]], +, literal[1]]] if[THIS[member[None.lastCRLFisCR]]] begin[{] member[.endPos] else begin[{] None end[}] else begin[{] None end[}] local_variable[type[WsByteBuffer], buffer] local_variable[type[int], pos] local_variable[type[int], lim] call[buffer.position, parameter[THIS[member[None.parseBuffersStartPos]ArraySelector(index=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]]] call[buffer.limit, parameter[member[.endPos]]] assign[member[.buffers], call[buffer.slice, parameter[]]] call[.addToCreatedBuffer, parameter[member[.buffers]]] call[buffer.limit, parameter[member[.lim]]] call[buffer.position, parameter[member[.pos]]] if[binary_operation[member[.bTrace], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[literal["Sliced last header buffer: "], +, member[.buffers]]]] else begin[{] None end[}] if[binary_operation[literal[0], <, THIS[member[None.headerAddCount]]]] begin[{] assign[member[.buffers], call[.marshallAddedHeaders, parameter[member[.buffers], member[.output]]]] else begin[{] None end[}] return[member[.buffers]] end[}] END[}]
Keyword[private] identifier[WsByteBuffer] operator[SEP] operator[SEP] identifier[marshallReuseHeaders] operator[SEP] identifier[WsByteBuffer] operator[SEP] operator[SEP] identifier[inBuffers] operator[SEP] { Keyword[final] Keyword[boolean] identifier[bTrace] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[WsByteBuffer] operator[SEP] operator[SEP] identifier[src] operator[=] identifier[inBuffers] operator[SEP] Keyword[if] operator[SEP] identifier[bTrace] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] Keyword[this] operator[SEP] identifier[headerChangeCount] operator[+] literal[String] operator[+] Keyword[this] operator[SEP] identifier[headerAddCount] operator[+] literal[String] operator[+] identifier[src] operator[SEP] operator[SEP] } identifier[HeaderElement] identifier[elem] operator[=] Keyword[this] operator[SEP] identifier[hdrSequence] operator[SEP] identifier[WsByteBuffer] operator[SEP] operator[SEP] identifier[buffers] operator[=] identifier[src] operator[SEP] Keyword[int] identifier[size] operator[=] Keyword[this] operator[SEP] identifier[parseIndex] operator[+] operator[SEP] Other[0] operator[<] Keyword[this] operator[SEP] identifier[headerAddCount] operator[?] Other[2] operator[:] Other[1] operator[SEP] operator[SEP] Keyword[int] identifier[output] operator[=] Other[0] operator[SEP] Keyword[int] identifier[input] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[==] identifier[src] operator[||] Other[0] operator[==] identifier[src] operator[SEP] identifier[length] operator[SEP] { identifier[buffers] operator[=] Keyword[new] identifier[WsByteBuffer] operator[SEP] identifier[size] operator[SEP] operator[SEP] } Keyword[else] { identifier[src] operator[=] identifier[flushCache] operator[SEP] identifier[src] operator[SEP] operator[SEP] identifier[src] operator[SEP] identifier[src] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[SEP] identifier[flip] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[firstHeaderBuffer] operator[=] identifier[elem] operator[SEP] identifier[getLastCRLFBufferIndex] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[firstHeaderBuffer] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[bTrace] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] Keyword[this] operator[SEP] identifier[parseBuffers] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } Keyword[this] operator[SEP] identifier[parseBuffersStartPos] operator[SEP] identifier[i] operator[SEP] operator[=] Keyword[this] operator[SEP] identifier[parseBuffers] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[limit] operator[SEP] operator[SEP] operator[SEP] } Keyword[int] identifier[firstHeaderPos] operator[=] identifier[elem] operator[SEP] identifier[getLastCRLFPosition] operator[SEP] operator[SEP] operator[+] operator[SEP] identifier[elem] operator[SEP] identifier[isLastCRLFaCR] operator[SEP] operator[SEP] operator[?] Other[2] operator[:] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bTrace] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[firstHeaderPos] operator[SEP] operator[SEP] } Keyword[this] operator[SEP] identifier[parseBuffersStartPos] operator[SEP] identifier[firstHeaderBuffer] operator[SEP] operator[=] identifier[firstHeaderPos] operator[SEP] identifier[size] operator[=] identifier[size] operator[-] identifier[firstHeaderBuffer] operator[+] identifier[src] operator[SEP] identifier[length] operator[SEP] identifier[buffers] operator[=] Keyword[new] identifier[WsByteBuffer] operator[SEP] identifier[size] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[src] , Other[0] , identifier[buffers] , Other[0] , identifier[src] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[output] operator[=] identifier[src] operator[SEP] identifier[length] operator[SEP] identifier[input] operator[=] identifier[firstHeaderBuffer] operator[SEP] } Keyword[if] operator[SEP] Other[0] operator[<] Keyword[this] operator[SEP] identifier[headerChangeCount] operator[SEP] { identifier[elem] operator[=] Keyword[this] operator[SEP] identifier[hdrSequence] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Keyword[this] operator[SEP] identifier[headerChangeCount] operator[&&] Other[null] operator[!=] identifier[elem] operator[&&] operator[-] Other[1] operator[!=] identifier[elem] operator[SEP] identifier[getLastCRLFBufferIndex] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[elem] operator[SEP] identifier[wasRemoved] operator[SEP] operator[SEP] operator[SEP] { identifier[eraseValue] operator[SEP] identifier[elem] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[elem] operator[SEP] identifier[wasChanged] operator[SEP] operator[SEP] operator[SEP] { identifier[overlayValue] operator[SEP] identifier[elem] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] } identifier[elem] operator[=] identifier[elem] operator[SEP] identifier[nextSequence] operator[SEP] } } Keyword[for] operator[SEP] operator[SEP] identifier[input] operator[<] Keyword[this] operator[SEP] identifier[parseIndex] operator[SEP] identifier[input] operator[++] , identifier[output] operator[++] operator[SEP] { identifier[buffers] operator[SEP] identifier[output] operator[SEP] operator[=] Keyword[this] operator[SEP] identifier[parseBuffers] operator[SEP] identifier[input] operator[SEP] operator[SEP] identifier[buffers] operator[SEP] identifier[output] operator[SEP] operator[SEP] identifier[position] operator[SEP] Keyword[this] operator[SEP] identifier[parseBuffersStartPos] operator[SEP] identifier[input] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bTrace] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[buffers] operator[SEP] identifier[output] operator[SEP] operator[SEP] operator[SEP] } } Keyword[int] identifier[endPos] operator[=] Keyword[this] operator[SEP] identifier[eohPosition] operator[SEP] Keyword[if] operator[SEP] Other[0] operator[<] Keyword[this] operator[SEP] identifier[headerAddCount] operator[SEP] { identifier[endPos] operator[=] Keyword[this] operator[SEP] identifier[lastCRLFPosition] operator[+] Other[1] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[lastCRLFisCR] operator[SEP] { identifier[endPos] operator[++] operator[SEP] } } identifier[WsByteBuffer] identifier[buffer] operator[=] Keyword[this] operator[SEP] identifier[parseBuffers] operator[SEP] identifier[input] operator[SEP] operator[SEP] Keyword[int] identifier[pos] operator[=] identifier[buffer] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[lim] operator[=] identifier[buffer] operator[SEP] identifier[limit] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[position] operator[SEP] Keyword[this] operator[SEP] identifier[parseBuffersStartPos] operator[SEP] identifier[input] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[limit] operator[SEP] identifier[endPos] operator[SEP] operator[SEP] identifier[buffers] operator[SEP] identifier[output] operator[SEP] operator[=] identifier[buffer] operator[SEP] identifier[slice] operator[SEP] operator[SEP] operator[SEP] identifier[addToCreatedBuffer] operator[SEP] identifier[buffers] operator[SEP] identifier[output] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[limit] operator[SEP] identifier[lim] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[position] operator[SEP] identifier[pos] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bTrace] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[buffers] operator[SEP] identifier[output] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] Other[0] operator[<] Keyword[this] operator[SEP] identifier[headerAddCount] operator[SEP] { identifier[buffers] operator[=] identifier[marshallAddedHeaders] operator[SEP] identifier[buffers] , operator[++] identifier[output] operator[SEP] operator[SEP] } Keyword[return] identifier[buffers] operator[SEP] }
public Observable<Page<JobTargetGroupInner>> listByAgentNextAsync(final String nextPageLink) { return listByAgentNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<JobTargetGroupInner>>, Page<JobTargetGroupInner>>() { @Override public Page<JobTargetGroupInner> call(ServiceResponse<Page<JobTargetGroupInner>> response) { return response.body(); } }); }
class class_name[name] begin[{] method[listByAgentNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listByAgentNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[JobTargetGroupInner] operator[>] operator[>] identifier[listByAgentNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[listByAgentNextWithServiceResponseAsync] operator[SEP] identifier[nextPageLink] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobTargetGroupInner] operator[>] operator[>] , identifier[Page] operator[<] identifier[JobTargetGroupInner] operator[>] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Page] operator[<] identifier[JobTargetGroupInner] operator[>] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobTargetGroupInner] operator[>] operator[>] identifier[response] operator[SEP] { Keyword[return] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public TokenMetadata cloneOnlyTokenMap() { lock.readLock().lock(); try { return new TokenMetadata(SortedBiMultiValMap.<Token, InetAddress>create(tokenToEndpointMap, null, inetaddressCmp), HashBiMap.create(endpointToHostIdMap), new Topology(topology)); } finally { lock.readLock().unlock(); } }
class class_name[name] begin[{] method[cloneOnlyTokenMap, return_type[type[TokenMetadata]], modifier[public], parameter[]] begin[{] call[lock.readLock, parameter[]] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=tokenToEndpointMap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=inetaddressCmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=SortedBiMultiValMap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=InetAddress, sub_type=None))]), MethodInvocation(arguments=[MemberReference(member=endpointToHostIdMap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=HashBiMap, selectors=[], type_arguments=None), ClassCreator(arguments=[MemberReference(member=topology, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Topology, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TokenMetadata, sub_type=None)), label=None)], catches=None, finally_block=[StatementExpression(expression=MethodInvocation(arguments=[], member=readLock, postfix_operators=[], prefix_operators=[], qualifier=lock, selectors=[MethodInvocation(arguments=[], member=unlock, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
Keyword[public] identifier[TokenMetadata] identifier[cloneOnlyTokenMap] operator[SEP] operator[SEP] { identifier[lock] operator[SEP] identifier[readLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[return] Keyword[new] identifier[TokenMetadata] operator[SEP] identifier[SortedBiMultiValMap] operator[SEP] operator[<] identifier[Token] , identifier[InetAddress] operator[>] identifier[create] operator[SEP] identifier[tokenToEndpointMap] , Other[null] , identifier[inetaddressCmp] operator[SEP] , identifier[HashBiMap] operator[SEP] identifier[create] operator[SEP] identifier[endpointToHostIdMap] operator[SEP] , Keyword[new] identifier[Topology] operator[SEP] identifier[topology] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { identifier[lock] operator[SEP] identifier[readLock] operator[SEP] operator[SEP] operator[SEP] identifier[unlock] operator[SEP] operator[SEP] operator[SEP] } }
public void marshall(LifecyclePolicyPreviewFilter lifecyclePolicyPreviewFilter, ProtocolMarshaller protocolMarshaller) { if (lifecyclePolicyPreviewFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(lifecyclePolicyPreviewFilter.getTagStatus(), TAGSTATUS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[lifecyclePolicyPreviewFilter, protocolMarshaller]] begin[{] if[binary_operation[member[.lifecyclePolicyPreviewFilter], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getTagStatus, postfix_operators=[], prefix_operators=[], qualifier=lifecyclePolicyPreviewFilter, selectors=[], type_arguments=None), MemberReference(member=TAGSTATUS_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[LifecyclePolicyPreviewFilter] identifier[lifecyclePolicyPreviewFilter] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[lifecyclePolicyPreviewFilter] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[lifecyclePolicyPreviewFilter] operator[SEP] identifier[getTagStatus] operator[SEP] operator[SEP] , identifier[TAGSTATUS_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public static boolean intersectRaySphere(Rayd ray, Spheref sphere, Vector2d result) { return intersectRaySphere(ray.oX, ray.oY, ray.oZ, ray.dX, ray.dY, ray.dZ, sphere.x, sphere.y, sphere.z, sphere.r*sphere.r, result); }
class class_name[name] begin[{] method[intersectRaySphere, return_type[type[boolean]], modifier[public static], parameter[ray, sphere, result]] begin[{] return[call[.intersectRaySphere, parameter[member[ray.oX], member[ray.oY], member[ray.oZ], member[ray.dX], member[ray.dY], member[ray.dZ], member[sphere.x], member[sphere.y], member[sphere.z], binary_operation[member[sphere.r], *, member[sphere.r]], member[.result]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[intersectRaySphere] operator[SEP] identifier[Rayd] identifier[ray] , identifier[Spheref] identifier[sphere] , identifier[Vector2d] identifier[result] operator[SEP] { Keyword[return] identifier[intersectRaySphere] operator[SEP] identifier[ray] operator[SEP] identifier[oX] , identifier[ray] operator[SEP] identifier[oY] , identifier[ray] operator[SEP] identifier[oZ] , identifier[ray] operator[SEP] identifier[dX] , identifier[ray] operator[SEP] identifier[dY] , identifier[ray] operator[SEP] identifier[dZ] , identifier[sphere] operator[SEP] identifier[x] , identifier[sphere] operator[SEP] identifier[y] , identifier[sphere] operator[SEP] identifier[z] , identifier[sphere] operator[SEP] identifier[r] operator[*] identifier[sphere] operator[SEP] identifier[r] , identifier[result] operator[SEP] operator[SEP] }
public MultiRaftProtocolBuilder withRetryDelay(long retryDelay, TimeUnit timeUnit) { return withRetryDelay(Duration.ofMillis(timeUnit.toMillis(retryDelay))); }
class class_name[name] begin[{] method[withRetryDelay, return_type[type[MultiRaftProtocolBuilder]], modifier[public], parameter[retryDelay, timeUnit]] begin[{] return[call[.withRetryDelay, parameter[call[Duration.ofMillis, parameter[call[timeUnit.toMillis, parameter[member[.retryDelay]]]]]]]] end[}] END[}]
Keyword[public] identifier[MultiRaftProtocolBuilder] identifier[withRetryDelay] operator[SEP] Keyword[long] identifier[retryDelay] , identifier[TimeUnit] identifier[timeUnit] operator[SEP] { Keyword[return] identifier[withRetryDelay] operator[SEP] identifier[Duration] operator[SEP] identifier[ofMillis] operator[SEP] identifier[timeUnit] operator[SEP] identifier[toMillis] operator[SEP] identifier[retryDelay] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public Identifier extractPartAfterLastDot() { String part = BaseUtils.extractPartAfterLastDot(identifier()); return Identifier.create( part, location().offsetStartCol(identifier().length() - part.length())); }
class class_name[name] begin[{] method[extractPartAfterLastDot, return_type[type[Identifier]], modifier[public], parameter[]] begin[{] local_variable[type[String], part] return[call[Identifier.create, parameter[member[.part], call[.location, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[Identifier] identifier[extractPartAfterLastDot] operator[SEP] operator[SEP] { identifier[String] identifier[part] operator[=] identifier[BaseUtils] operator[SEP] identifier[extractPartAfterLastDot] operator[SEP] identifier[identifier] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Identifier] operator[SEP] identifier[create] operator[SEP] identifier[part] , identifier[location] operator[SEP] operator[SEP] operator[SEP] identifier[offsetStartCol] operator[SEP] identifier[identifier] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] identifier[part] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public List<String> copyTo(String folder, String dest) throws IOException { List<String> res = new ArrayList<String>(); if (path != null) { copyToDest(Utilities.path(path, folder), Utilities.path(path, folder), dest, res); } else { for (Entry<String, byte[]> e : content.entrySet()) { if (e.getKey().startsWith(folder+"/")) { String s = e.getKey().substring(folder.length()+1); res.add(s); String dst = Utilities.path(dest, s); String dstDir = Utilities.getDirectoryForFile(dst); Utilities.createDirectory(dstDir); TextFile.bytesToFile(e.getValue(), dst); } } } return res; }
class class_name[name] begin[{] method[copyTo, return_type[type[List]], modifier[public], parameter[folder, dest]] begin[{] local_variable[type[List], res] if[binary_operation[member[.path], !=, literal[null]]] begin[{] call[.copyToDest, parameter[call[Utilities.path, parameter[member[.path], member[.folder]]], call[Utilities.path, parameter[member[.path], member[.folder]]], member[.dest], member[.res]]] else begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=folder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/"), operator=+)], member=startsWith, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=folder, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=substring, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=s)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=res, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=path, postfix_operators=[], prefix_operators=[], qualifier=Utilities, selectors=[], type_arguments=None), name=dst)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getDirectoryForFile, postfix_operators=[], prefix_operators=[], qualifier=Utilities, selectors=[], type_arguments=None), name=dstDir)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=dstDir, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createDirectory, postfix_operators=[], prefix_operators=[], qualifier=Utilities, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=bytesToFile, postfix_operators=[], prefix_operators=[], qualifier=TextFile, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=content, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=e)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=BasicType(dimensions=[None], name=byte))], dimensions=[], name=Entry, sub_type=None))), label=None) end[}] return[member[.res]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[copyTo] operator[SEP] identifier[String] identifier[folder] , identifier[String] identifier[dest] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[String] operator[>] identifier[res] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[path] operator[!=] Other[null] operator[SEP] { identifier[copyToDest] operator[SEP] identifier[Utilities] operator[SEP] identifier[path] operator[SEP] identifier[path] , identifier[folder] operator[SEP] , identifier[Utilities] operator[SEP] identifier[path] operator[SEP] identifier[path] , identifier[folder] operator[SEP] , identifier[dest] , identifier[res] operator[SEP] operator[SEP] } Keyword[else] { Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[String] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[e] operator[:] identifier[content] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[startsWith] operator[SEP] identifier[folder] operator[+] literal[String] operator[SEP] operator[SEP] { identifier[String] identifier[s] operator[=] identifier[e] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[substring] operator[SEP] identifier[folder] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] identifier[res] operator[SEP] identifier[add] operator[SEP] identifier[s] operator[SEP] operator[SEP] identifier[String] identifier[dst] operator[=] identifier[Utilities] operator[SEP] identifier[path] operator[SEP] identifier[dest] , identifier[s] operator[SEP] operator[SEP] identifier[String] identifier[dstDir] operator[=] identifier[Utilities] operator[SEP] identifier[getDirectoryForFile] operator[SEP] identifier[dst] operator[SEP] operator[SEP] identifier[Utilities] operator[SEP] identifier[createDirectory] operator[SEP] identifier[dstDir] operator[SEP] operator[SEP] identifier[TextFile] operator[SEP] identifier[bytesToFile] operator[SEP] identifier[e] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] , identifier[dst] operator[SEP] operator[SEP] } } } Keyword[return] identifier[res] operator[SEP] }