code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public final void add(ObservableDoubleValue dependency) { requireNonNull(dependency, "Parameter 'dependency' is null"); if (!dependencies.contains(dependency)) { dependencies.add(dependency); bind(dependency); invalidate(); } else { LOGGER.warn("Dependency already included: " + dependency + ", Skipping."); } }
class class_name[name] begin[{] method[add, return_type[void], modifier[final public], parameter[dependency]] begin[{] call[.requireNonNull, parameter[member[.dependency], literal["Parameter 'dependency' is null"]]] if[call[dependencies.contains, parameter[member[.dependency]]]] begin[{] call[dependencies.add, parameter[member[.dependency]]] call[.bind, parameter[member[.dependency]]] call[.invalidate, parameter[]] else begin[{] call[LOGGER.warn, parameter[binary_operation[binary_operation[literal["Dependency already included: "], +, member[.dependency]], +, literal[", Skipping."]]]] end[}] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[add] operator[SEP] identifier[ObservableDoubleValue] identifier[dependency] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[dependency] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[dependencies] operator[SEP] identifier[contains] operator[SEP] identifier[dependency] operator[SEP] operator[SEP] { identifier[dependencies] operator[SEP] identifier[add] operator[SEP] identifier[dependency] operator[SEP] operator[SEP] identifier[bind] operator[SEP] identifier[dependency] operator[SEP] operator[SEP] identifier[invalidate] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[LOGGER] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] identifier[dependency] operator[+] literal[String] operator[SEP] operator[SEP] } }
public FacesConfigFlowDefinitionSwitchCaseType<FacesConfigFlowDefinitionSwitchType<T>> getOrCreateCase() { List<Node> nodeList = childNode.get("case"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigFlowDefinitionSwitchCaseTypeImpl<FacesConfigFlowDefinitionSwitchType<T>>(this, "case", childNode, nodeList.get(0)); } return createCase(); }
class class_name[name] begin[{] method[getOrCreateCase, return_type[type[FacesConfigFlowDefinitionSwitchCaseType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList.size, parameter[]], >, literal[0]]]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="case"), MemberReference(member=childNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=get, postfix_operators=[], prefix_operators=[], qualifier=nodeList, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=[], name=FacesConfigFlowDefinitionSwitchType, sub_type=None))], dimensions=None, name=FacesConfigFlowDefinitionSwitchCaseTypeImpl, sub_type=None))] else begin[{] None end[}] return[call[.createCase, parameter[]]] end[}] END[}]
Keyword[public] identifier[FacesConfigFlowDefinitionSwitchCaseType] operator[<] identifier[FacesConfigFlowDefinitionSwitchType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateCase] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childNode] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[nodeList] operator[!=] Other[null] operator[&&] identifier[nodeList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { Keyword[return] Keyword[new] identifier[FacesConfigFlowDefinitionSwitchCaseTypeImpl] operator[<] identifier[FacesConfigFlowDefinitionSwitchType] operator[<] identifier[T] operator[>] operator[>] operator[SEP] Keyword[this] , literal[String] , identifier[childNode] , identifier[nodeList] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[createCase] operator[SEP] operator[SEP] operator[SEP] }
private <T> void bindObjectToJavaNameSpaces(NameSpaceBinder<T> binder, T bindingObject, HomeRecord hr, boolean singleGlobalInterface, String interfaceName, int interfaceIndex, boolean local) throws NamingException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "bindObjectToJavaNameSpaces"); BeanMetaData bmd = hr.getBeanMetaData(); J2EEName j2eeName = bmd.j2eeName; String beanName = j2eeName.getComponent(); List<String> jndiNames = new ArrayList<String>(); if (hr.bindInterfaceNames()) { jndiNames.add(beanName + '!' + interfaceName); } if (singleGlobalInterface) { jndiNames.add(beanName); } if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "names=" + jndiNames + ", global=" + hr.bindToJavaGlobalNameSpace()); // d660700 - Bind to java:global if necessary. if (hr.bindToJavaGlobalNameSpace()) { if (bindingObject != null) { sendBindingMessage(bmd, beanName, interfaceName, interfaceIndex, local); } for (String jndiName : jndiNames) { if (bindingObject != null) { binder.bindJavaGlobal(jndiName, bindingObject); // F69147.2 } hr.ivJavaGlobalBindings.add(jndiName); } } // d660700 - Bind to java:app. for (String jndiName : jndiNames) { if (bindingObject != null) { binder.bindJavaApp(jndiName, bindingObject); // F69147.2 } hr.ivJavaAppBindings.add(jndiName); } // d660700 - Bind to java:module. if (bindingObject != null) { for (String jndiName : jndiNames) { binder.bindJavaModule(jndiName, bindingObject); // F69147.2 } } if (isTraceOn && tc.isEntryEnabled()) Tr.exit(tc, "bindObjectToJavaNameSpaces"); }
class class_name[name] begin[{] method[bindObjectToJavaNameSpaces, return_type[void], modifier[private], parameter[binder, bindingObject, hr, singleGlobalInterface, interfaceName, interfaceIndex, local]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["bindObjectToJavaNameSpaces"]]] else begin[{] None end[}] local_variable[type[BeanMetaData], bmd] local_variable[type[J2EEName], j2eeName] local_variable[type[String], beanName] local_variable[type[List], jndiNames] if[call[hr.bindInterfaceNames, parameter[]]] begin[{] call[jndiNames.add, parameter[binary_operation[binary_operation[member[.beanName], +, literal['!']], +, member[.interfaceName]]]] else begin[{] None end[}] if[member[.singleGlobalInterface]] begin[{] call[jndiNames.add, parameter[member[.beanName]]] else begin[{] None end[}] if[binary_operation[member[.isTraceOn], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[binary_operation[binary_operation[literal["names="], +, member[.jndiNames]], +, literal[", global="]], +, call[hr.bindToJavaGlobalNameSpace, parameter[]]]]] else begin[{] None end[}] if[call[hr.bindToJavaGlobalNameSpace, parameter[]]] begin[{] if[binary_operation[member[.bindingObject], !=, literal[null]]] begin[{] call[.sendBindingMessage, parameter[member[.bmd], member[.beanName], member[.interfaceName], member[.interfaceIndex], member[.local]]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bindingObject, 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=jndiName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bindingObject, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=bindJavaGlobal, postfix_operators=[], prefix_operators=[], qualifier=binder, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=jndiName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=hr.ivJavaGlobalBindings, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=jndiNames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=jndiName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bindingObject, 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=jndiName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bindingObject, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=bindJavaApp, postfix_operators=[], prefix_operators=[], qualifier=binder, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=jndiName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=hr.ivJavaAppBindings, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=jndiNames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=jndiName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) if[binary_operation[member[.bindingObject], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=jndiName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bindingObject, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=bindJavaModule, postfix_operators=[], prefix_operators=[], qualifier=binder, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=jndiNames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=jndiName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.exit, parameter[member[.tc], literal["bindObjectToJavaNameSpaces"]]] else begin[{] None end[}] end[}] END[}]
Keyword[private] operator[<] identifier[T] operator[>] Keyword[void] identifier[bindObjectToJavaNameSpaces] operator[SEP] identifier[NameSpaceBinder] operator[<] identifier[T] operator[>] identifier[binder] , identifier[T] identifier[bindingObject] , identifier[HomeRecord] identifier[hr] , Keyword[boolean] identifier[singleGlobalInterface] , identifier[String] identifier[interfaceName] , Keyword[int] identifier[interfaceIndex] , Keyword[boolean] identifier[local] operator[SEP] Keyword[throws] identifier[NamingException] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] operator[SEP] operator[SEP] identifier[BeanMetaData] identifier[bmd] operator[=] identifier[hr] operator[SEP] identifier[getBeanMetaData] operator[SEP] operator[SEP] operator[SEP] identifier[J2EEName] identifier[j2eeName] operator[=] identifier[bmd] operator[SEP] identifier[j2eeName] operator[SEP] identifier[String] identifier[beanName] operator[=] identifier[j2eeName] operator[SEP] identifier[getComponent] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[jndiNames] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hr] operator[SEP] identifier[bindInterfaceNames] operator[SEP] operator[SEP] operator[SEP] { identifier[jndiNames] operator[SEP] identifier[add] operator[SEP] identifier[beanName] operator[+] literal[String] operator[+] identifier[interfaceName] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[singleGlobalInterface] operator[SEP] { identifier[jndiNames] operator[SEP] identifier[add] operator[SEP] identifier[beanName] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[isTraceOn] 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[jndiNames] operator[+] literal[String] operator[+] identifier[hr] operator[SEP] identifier[bindToJavaGlobalNameSpace] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hr] operator[SEP] identifier[bindToJavaGlobalNameSpace] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[bindingObject] operator[!=] Other[null] operator[SEP] { identifier[sendBindingMessage] operator[SEP] identifier[bmd] , identifier[beanName] , identifier[interfaceName] , identifier[interfaceIndex] , identifier[local] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[String] identifier[jndiName] operator[:] identifier[jndiNames] operator[SEP] { Keyword[if] operator[SEP] identifier[bindingObject] operator[!=] Other[null] operator[SEP] { identifier[binder] operator[SEP] identifier[bindJavaGlobal] operator[SEP] identifier[jndiName] , identifier[bindingObject] operator[SEP] operator[SEP] } identifier[hr] operator[SEP] identifier[ivJavaGlobalBindings] operator[SEP] identifier[add] operator[SEP] identifier[jndiName] operator[SEP] operator[SEP] } } Keyword[for] operator[SEP] identifier[String] identifier[jndiName] operator[:] identifier[jndiNames] operator[SEP] { Keyword[if] operator[SEP] identifier[bindingObject] operator[!=] Other[null] operator[SEP] { identifier[binder] operator[SEP] identifier[bindJavaApp] operator[SEP] identifier[jndiName] , identifier[bindingObject] operator[SEP] operator[SEP] } identifier[hr] operator[SEP] identifier[ivJavaAppBindings] operator[SEP] identifier[add] operator[SEP] identifier[jndiName] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[bindingObject] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[jndiName] operator[:] identifier[jndiNames] operator[SEP] { identifier[binder] operator[SEP] identifier[bindJavaModule] operator[SEP] identifier[jndiName] , identifier[bindingObject] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[exit] operator[SEP] identifier[tc] , literal[String] operator[SEP] operator[SEP] }
public boolean effectiveCharges(IAtomContainer mol) { int[][] adjList = mol.getProperty(MMFF_ADJLIST_CACHE); GraphUtil.EdgeToBondMap edgeMap = mol.getProperty(MMFF_EDGEMAP_CACHE); if (adjList == null || edgeMap == null) throw new IllegalArgumentException("Invoke assignAtomTypes first."); primaryCharges(mol, adjList, edgeMap); effectiveCharges(mol, adjList); return true; }
class class_name[name] begin[{] method[effectiveCharges, return_type[type[boolean]], modifier[public], parameter[mol]] begin[{] local_variable[type[int], adjList] local_variable[type[GraphUtil], edgeMap] if[binary_operation[binary_operation[member[.adjList], ==, literal[null]], ||, binary_operation[member[.edgeMap], ==, literal[null]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invoke assignAtomTypes first.")], 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[}] call[.primaryCharges, parameter[member[.mol], member[.adjList], member[.edgeMap]]] call[.effectiveCharges, parameter[member[.mol], member[.adjList]]] return[literal[true]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[effectiveCharges] operator[SEP] identifier[IAtomContainer] identifier[mol] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[adjList] operator[=] identifier[mol] operator[SEP] identifier[getProperty] operator[SEP] identifier[MMFF_ADJLIST_CACHE] operator[SEP] operator[SEP] identifier[GraphUtil] operator[SEP] identifier[EdgeToBondMap] identifier[edgeMap] operator[=] identifier[mol] operator[SEP] identifier[getProperty] operator[SEP] identifier[MMFF_EDGEMAP_CACHE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[adjList] operator[==] Other[null] operator[||] identifier[edgeMap] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[primaryCharges] operator[SEP] identifier[mol] , identifier[adjList] , identifier[edgeMap] operator[SEP] operator[SEP] identifier[effectiveCharges] operator[SEP] identifier[mol] , identifier[adjList] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] }
public static DrawBlock getDrawBlockFromBlockState(IBlockState state, List<IProperty> extraProperties) { if (state == null) return null; DrawBlock block = new DrawBlock(); Object blockName = Block.REGISTRY.getNameForObject(state.getBlock()); if (blockName instanceof ResourceLocation) { String name = ((ResourceLocation)blockName).getResourcePath(); BlockType type = BlockType.fromValue(name); block.setType(type); } Colour col = null; Variation var = null; Facing face = null; // Add properties: for (IProperty prop : state.getProperties().keySet()) { String propVal = state.getValue(prop).toString(); boolean matched = false; // Try colour first: if (col == null) { col = attemptToGetAsColour(propVal); if (col != null) matched = true; } // Then variant: if (!matched && var == null) { var = attemptToGetAsVariant(propVal); if (var != null) matched = true; } // Then facing: if (!matched && face == null) { face = attemptToGetAsFacing(propVal); if (face != null) matched = true; } if (!matched) { if (extraProperties != null) extraProperties.add(prop); } } if (col != null) block.setColour(col); if (var != null) block.setVariant(var); if (face != null) block.setFace(face); return block; }
class class_name[name] begin[{] method[getDrawBlockFromBlockState, return_type[type[DrawBlock]], modifier[public static], parameter[state, extraProperties]] begin[{] if[binary_operation[member[.state], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[DrawBlock], block] local_variable[type[Object], blockName] if[binary_operation[member[.blockName], instanceof, type[ResourceLocation]]] begin[{] local_variable[type[String], name] local_variable[type[BlockType], type] call[block.setType, parameter[member[.type]]] else begin[{] None end[}] local_variable[type[Colour], col] local_variable[type[Variation], var] local_variable[type[Facing], face] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=prop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=state, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=propVal)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), name=matched)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=col, 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=col, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=propVal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=attemptToGetAsColour, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=col, 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=Assignment(expressionl=MemberReference(member=matched, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None))])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=matched, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=var, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=var, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=propVal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=attemptToGetAsVariant, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=var, 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=Assignment(expressionl=MemberReference(member=matched, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None))])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=matched, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=face, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=face, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=propVal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=attemptToGetAsFacing, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=face, 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=Assignment(expressionl=MemberReference(member=matched, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None))])), IfStatement(condition=MemberReference(member=matched, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=extraProperties, 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=prop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=extraProperties, selectors=[], type_arguments=None), label=None))]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getProperties, postfix_operators=[], prefix_operators=[], qualifier=state, selectors=[MethodInvocation(arguments=[], member=keySet, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=prop)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IProperty, sub_type=None))), label=None) if[binary_operation[member[.col], !=, literal[null]]] begin[{] call[block.setColour, parameter[member[.col]]] else begin[{] None end[}] if[binary_operation[member[.var], !=, literal[null]]] begin[{] call[block.setVariant, parameter[member[.var]]] else begin[{] None end[}] if[binary_operation[member[.face], !=, literal[null]]] begin[{] call[block.setFace, parameter[member[.face]]] else begin[{] None end[}] return[member[.block]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DrawBlock] identifier[getDrawBlockFromBlockState] operator[SEP] identifier[IBlockState] identifier[state] , identifier[List] operator[<] identifier[IProperty] operator[>] identifier[extraProperties] operator[SEP] { Keyword[if] operator[SEP] identifier[state] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[DrawBlock] identifier[block] operator[=] Keyword[new] identifier[DrawBlock] operator[SEP] operator[SEP] operator[SEP] identifier[Object] identifier[blockName] operator[=] identifier[Block] operator[SEP] identifier[REGISTRY] operator[SEP] identifier[getNameForObject] operator[SEP] identifier[state] operator[SEP] identifier[getBlock] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[blockName] Keyword[instanceof] identifier[ResourceLocation] operator[SEP] { identifier[String] identifier[name] operator[=] operator[SEP] operator[SEP] identifier[ResourceLocation] operator[SEP] identifier[blockName] operator[SEP] operator[SEP] identifier[getResourcePath] operator[SEP] operator[SEP] operator[SEP] identifier[BlockType] identifier[type] operator[=] identifier[BlockType] operator[SEP] identifier[fromValue] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[block] operator[SEP] identifier[setType] operator[SEP] identifier[type] operator[SEP] operator[SEP] } identifier[Colour] identifier[col] operator[=] Other[null] operator[SEP] identifier[Variation] identifier[var] operator[=] Other[null] operator[SEP] identifier[Facing] identifier[face] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] identifier[IProperty] identifier[prop] operator[:] identifier[state] operator[SEP] identifier[getProperties] operator[SEP] operator[SEP] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[propVal] operator[=] identifier[state] operator[SEP] identifier[getValue] operator[SEP] identifier[prop] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[matched] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[col] operator[==] Other[null] operator[SEP] { identifier[col] operator[=] identifier[attemptToGetAsColour] operator[SEP] identifier[propVal] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[col] operator[!=] Other[null] operator[SEP] identifier[matched] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[matched] operator[&&] identifier[var] operator[==] Other[null] operator[SEP] { identifier[var] operator[=] identifier[attemptToGetAsVariant] operator[SEP] identifier[propVal] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[var] operator[!=] Other[null] operator[SEP] identifier[matched] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[matched] operator[&&] identifier[face] operator[==] Other[null] operator[SEP] { identifier[face] operator[=] identifier[attemptToGetAsFacing] operator[SEP] identifier[propVal] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[face] operator[!=] Other[null] operator[SEP] identifier[matched] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[matched] operator[SEP] { Keyword[if] operator[SEP] identifier[extraProperties] operator[!=] Other[null] operator[SEP] identifier[extraProperties] operator[SEP] identifier[add] operator[SEP] identifier[prop] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[col] operator[!=] Other[null] operator[SEP] identifier[block] operator[SEP] identifier[setColour] operator[SEP] identifier[col] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[var] operator[!=] Other[null] operator[SEP] identifier[block] operator[SEP] identifier[setVariant] operator[SEP] identifier[var] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[face] operator[!=] Other[null] operator[SEP] identifier[block] operator[SEP] identifier[setFace] operator[SEP] identifier[face] operator[SEP] operator[SEP] Keyword[return] identifier[block] operator[SEP] }
public static String getDatasetUri(Table table) { return HIVE_DATASETS_CONFIG_PREFIX + table.getDbName() + Path.SEPARATOR + table.getTableName(); }
class class_name[name] begin[{] method[getDatasetUri, return_type[type[String]], modifier[public static], parameter[table]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.HIVE_DATASETS_CONFIG_PREFIX], +, call[table.getDbName, parameter[]]], +, member[Path.SEPARATOR]], +, call[table.getTableName, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getDatasetUri] operator[SEP] identifier[Table] identifier[table] operator[SEP] { Keyword[return] identifier[HIVE_DATASETS_CONFIG_PREFIX] operator[+] identifier[table] operator[SEP] identifier[getDbName] operator[SEP] operator[SEP] operator[+] identifier[Path] operator[SEP] identifier[SEPARATOR] operator[+] identifier[table] operator[SEP] identifier[getTableName] operator[SEP] operator[SEP] operator[SEP] }
@Override public Object getValue(double evaluationTime, Model model) { if(model instanceof MonteCarloSimulationModel) { try { return getValue(evaluationTime, (MonteCarloSimulationModel)model); } catch (CalculationException e) { return null; } } else { throw new IllegalArgumentException("The product " + this.getClass() + " cannot be valued against a model " + model.getClass() + "." + "It requires a model of type " + MonteCarloSimulationModel.class + "."); } }
class class_name[name] begin[{] method[getValue, return_type[type[Object]], modifier[public], parameter[evaluationTime, model]] begin[{] if[binary_operation[member[.model], instanceof, type[MonteCarloSimulationModel]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=evaluationTime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MemberReference(member=model, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MonteCarloSimulationModel, sub_type=None))], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['CalculationException']))], finally_block=None, label=None, resources=None) else begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The product "), operandr=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)]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" cannot be valued against a model "), operator=+), operandr=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=model, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="."), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="It requires a model of type "), operator=+), operandr=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MonteCarloSimulationModel, sub_type=None)), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="."), operator=+)], 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) end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getValue] operator[SEP] Keyword[double] identifier[evaluationTime] , identifier[Model] identifier[model] operator[SEP] { Keyword[if] operator[SEP] identifier[model] Keyword[instanceof] identifier[MonteCarloSimulationModel] operator[SEP] { Keyword[try] { Keyword[return] identifier[getValue] operator[SEP] identifier[evaluationTime] , operator[SEP] identifier[MonteCarloSimulationModel] operator[SEP] identifier[model] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[CalculationException] identifier[e] operator[SEP] { Keyword[return] Other[null] operator[SEP] } } Keyword[else] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] Keyword[this] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[model] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] literal[String] operator[+] identifier[MonteCarloSimulationModel] operator[SEP] Keyword[class] operator[+] literal[String] operator[SEP] operator[SEP] } }
protected int require (int required) throws KryoException { int remaining = limit - position; if (remaining >= required) return remaining; if (required > capacity) throw new KryoException("Buffer too small: capacity: " + capacity + ", required: " + required); int count; // Try to fill the buffer. if (remaining > 0) { count = fill(buffer, limit, capacity - limit); if (count == -1) throw new KryoException("Buffer underflow."); remaining += count; if (remaining >= required) { limit += count; return remaining; } } // Was not enough, compact and try again. System.arraycopy(buffer, position, buffer, 0, remaining); total += position; position = 0; while (true) { count = fill(buffer, remaining, capacity - remaining); if (count == -1) { if (remaining >= required) break; throw new KryoException("Buffer underflow."); } remaining += count; if (remaining >= required) break; // Enough has been read. } limit = remaining; return remaining; }
class class_name[name] begin[{] method[require, return_type[type[int]], modifier[protected], parameter[required]] begin[{] local_variable[type[int], remaining] if[binary_operation[member[.remaining], >=, member[.required]]] begin[{] return[member[.remaining]] else begin[{] None end[}] if[binary_operation[member[.required], >, member[.capacity]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Buffer too small: capacity: "), operandr=MemberReference(member=capacity, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", required: "), operator=+), operandr=MemberReference(member=required, 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=KryoException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[int], count] if[binary_operation[member[.remaining], >, literal[0]]] begin[{] assign[member[.count], call[.fill, parameter[member[.buffer], member[.limit], binary_operation[member[.capacity], -, member[.limit]]]]] if[binary_operation[member[.count], ==, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Buffer underflow.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KryoException, sub_type=None)), label=None) else begin[{] None end[}] assign[member[.remaining], member[.count]] if[binary_operation[member[.remaining], >=, member[.required]]] begin[{] assign[member[.limit], member[.count]] return[member[.remaining]] else begin[{] None end[}] else begin[{] None end[}] call[System.arraycopy, parameter[member[.buffer], member[.position], member[.buffer], literal[0], member[.remaining]]] assign[member[.total], member[.position]] assign[member[.position], literal[0]] while[literal[true]] begin[{] assign[member[.count], call[.fill, parameter[member[.buffer], member[.remaining], binary_operation[member[.capacity], -, member[.remaining]]]]] if[binary_operation[member[.count], ==, literal[1]]] begin[{] if[binary_operation[member[.remaining], >=, member[.required]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Buffer underflow.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KryoException, sub_type=None)), label=None) else begin[{] None end[}] assign[member[.remaining], member[.count]] if[binary_operation[member[.remaining], >=, member[.required]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] end[}] assign[member[.limit], member[.remaining]] return[member[.remaining]] end[}] END[}]
Keyword[protected] Keyword[int] identifier[require] operator[SEP] Keyword[int] identifier[required] operator[SEP] Keyword[throws] identifier[KryoException] { Keyword[int] identifier[remaining] operator[=] identifier[limit] operator[-] identifier[position] operator[SEP] Keyword[if] operator[SEP] identifier[remaining] operator[>=] identifier[required] operator[SEP] Keyword[return] identifier[remaining] operator[SEP] Keyword[if] operator[SEP] identifier[required] operator[>] identifier[capacity] operator[SEP] Keyword[throw] Keyword[new] identifier[KryoException] operator[SEP] literal[String] operator[+] identifier[capacity] operator[+] literal[String] operator[+] identifier[required] operator[SEP] operator[SEP] Keyword[int] identifier[count] operator[SEP] Keyword[if] operator[SEP] identifier[remaining] operator[>] Other[0] operator[SEP] { identifier[count] operator[=] identifier[fill] operator[SEP] identifier[buffer] , identifier[limit] , identifier[capacity] operator[-] identifier[limit] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[count] operator[==] operator[-] Other[1] operator[SEP] Keyword[throw] Keyword[new] identifier[KryoException] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[remaining] operator[+=] identifier[count] operator[SEP] Keyword[if] operator[SEP] identifier[remaining] operator[>=] identifier[required] operator[SEP] { identifier[limit] operator[+=] identifier[count] operator[SEP] Keyword[return] identifier[remaining] operator[SEP] } } identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[buffer] , identifier[position] , identifier[buffer] , Other[0] , identifier[remaining] operator[SEP] operator[SEP] identifier[total] operator[+=] identifier[position] operator[SEP] identifier[position] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { identifier[count] operator[=] identifier[fill] operator[SEP] identifier[buffer] , identifier[remaining] , identifier[capacity] operator[-] identifier[remaining] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[count] operator[==] operator[-] Other[1] operator[SEP] { Keyword[if] operator[SEP] identifier[remaining] operator[>=] identifier[required] operator[SEP] Keyword[break] operator[SEP] Keyword[throw] Keyword[new] identifier[KryoException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[remaining] operator[+=] identifier[count] operator[SEP] Keyword[if] operator[SEP] identifier[remaining] operator[>=] identifier[required] operator[SEP] Keyword[break] operator[SEP] } identifier[limit] operator[=] identifier[remaining] operator[SEP] Keyword[return] identifier[remaining] operator[SEP] }
public Observable<ServiceResponse<Page<JobCredentialInner>>> listByAgentNextWithServiceResponseAsync(final String nextPageLink) { return listByAgentNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<JobCredentialInner>>, Observable<ServiceResponse<Page<JobCredentialInner>>>>() { @Override public Observable<ServiceResponse<Page<JobCredentialInner>>> call(ServiceResponse<Page<JobCredentialInner>> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } return Observable.just(page).concatWith(listByAgentNextWithServiceResponseAsync(nextPageLink)); } }); }
class class_name[name] begin[{] method[listByAgentNextWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listByAgentNextSinglePageAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobCredentialInner] operator[>] operator[>] operator[>] identifier[listByAgentNextWithServiceResponseAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[listByAgentNextSinglePageAsync] operator[SEP] identifier[nextPageLink] operator[SEP] operator[SEP] identifier[concatMap] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobCredentialInner] operator[>] operator[>] , identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobCredentialInner] operator[>] operator[>] operator[>] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobCredentialInner] operator[>] operator[>] operator[>] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobCredentialInner] operator[>] operator[>] identifier[page] operator[SEP] { identifier[String] identifier[nextPageLink] operator[=] identifier[page] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] identifier[nextPageLink] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[nextPageLink] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[Observable] operator[SEP] identifier[just] operator[SEP] identifier[page] operator[SEP] operator[SEP] } Keyword[return] identifier[Observable] operator[SEP] identifier[just] operator[SEP] identifier[page] operator[SEP] operator[SEP] identifier[concatWith] operator[SEP] identifier[listByAgentNextWithServiceResponseAsync] operator[SEP] identifier[nextPageLink] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public boolean isRecordMatch(Record record) { Map<String,Object> properties = this.getProperties(); String strTableName = (String)properties.get(TABLE_NAME); // Object dsBookmark = this.getBookmark(DBConstants.BOOKMARK_HANDLE); if (record != null) if (record.getTableNames(false).equals(strTableName)) return true; // Match return false; // No match }
class class_name[name] begin[{] method[isRecordMatch, return_type[type[boolean]], modifier[public], parameter[record]] begin[{] local_variable[type[Map], properties] local_variable[type[String], strTableName] if[binary_operation[member[.record], !=, literal[null]]] begin[{] if[call[record.getTableNames, parameter[literal[false]]]] begin[{] return[literal[true]] else begin[{] None end[}] else begin[{] None end[}] return[literal[false]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isRecordMatch] operator[SEP] identifier[Record] identifier[record] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[=] Keyword[this] operator[SEP] identifier[getProperties] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[strTableName] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[properties] operator[SEP] identifier[get] operator[SEP] identifier[TABLE_NAME] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[record] operator[!=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[record] operator[SEP] identifier[getTableNames] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[strTableName] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[return] literal[boolean] operator[SEP] }
public static BigInteger convertVarNumberToBigInteger(byte[] rawData) { BigInteger result=BigInteger.ZERO; if (rawData!=null) { if (rawData.length>0) { result = new BigInteger(1,rawData); // we know it is always positive } } return result; }
class class_name[name] begin[{] method[convertVarNumberToBigInteger, return_type[type[BigInteger]], modifier[public static], parameter[rawData]] begin[{] local_variable[type[BigInteger], result] if[binary_operation[member[.rawData], !=, literal[null]]] begin[{] if[binary_operation[member[rawData.length], >, literal[0]]] begin[{] assign[member[.result], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), MemberReference(member=rawData, 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=BigInteger, sub_type=None))] else begin[{] None end[}] else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[BigInteger] identifier[convertVarNumberToBigInteger] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[rawData] operator[SEP] { identifier[BigInteger] identifier[result] operator[=] identifier[BigInteger] operator[SEP] identifier[ZERO] operator[SEP] Keyword[if] operator[SEP] identifier[rawData] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[rawData] operator[SEP] identifier[length] operator[>] Other[0] operator[SEP] { identifier[result] operator[=] Keyword[new] identifier[BigInteger] operator[SEP] Other[1] , identifier[rawData] operator[SEP] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] }
private boolean renderURL(URL urlstring, URL baseUrl, OutputStream out) throws IOException, SAXException { // Open the network connection DocumentSource docSource = new DefaultDocumentSource(urlstring); // Parse the input document DOMSource parser = new DefaultDOMSource(docSource); Document doc = parser.parse(); // create the media specification MediaSpec media = new MediaSpec(mediaType); media.setDimensions(windowSize.width, windowSize.height); media.setDeviceDimensions(windowSize.width, windowSize.height); // Create the CSS analyzer DOMAnalyzer da = new DOMAnalyzer(doc, baseUrl); da.setMediaSpec(media); da.attributesToStyles(); // convert the HTML presentation attributes to // inline styles da.addStyleSheet(baseUrl, CSSNorm.stdStyleSheet(), DOMAnalyzer.Origin.AGENT); // use the standard style sheet da.addStyleSheet(null, CSSNorm.userStyleSheet(), DOMAnalyzer.Origin.AGENT); // use the additional style sheet da.addStyleSheet(null, CSSNorm.formsStyleSheet(), DOMAnalyzer.Origin.AGENT); // render form fields using css da.getStyleSheets(); // load the author style sheets BrowserCanvas contentCanvas = new BrowserCanvas(da.getRoot(), da, baseUrl); // contentCanvas.setAutoMediaUpdate(false); // we have a correct media // // specification, do not // // update contentCanvas.getConfig().setClipViewport(cropWindow); contentCanvas.getConfig().setLoadImages(loadImages); contentCanvas.getConfig().setLoadBackgroundImages(loadBackgroundImages); contentCanvas.setPreferredSize(new Dimension(windowSize.width, 10)); contentCanvas.setAutoSizeUpdate(true); setDefaultFonts(contentCanvas.getConfig()); contentCanvas.createLayout(windowSize); contentCanvas.validate(); ImageIO.write(contentCanvas.getImage(), "png", out); // Image image = contentCanvas.createImage(windowSize.width, // windowSize.height); docSource.close(); return true; }
class class_name[name] begin[{] method[renderURL, return_type[type[boolean]], modifier[private], parameter[urlstring, baseUrl, out]] begin[{] local_variable[type[DocumentSource], docSource] local_variable[type[DOMSource], parser] local_variable[type[Document], doc] local_variable[type[MediaSpec], media] call[media.setDimensions, parameter[member[windowSize.width], member[windowSize.height]]] call[media.setDeviceDimensions, parameter[member[windowSize.width], member[windowSize.height]]] local_variable[type[DOMAnalyzer], da] call[da.setMediaSpec, parameter[member[.media]]] call[da.attributesToStyles, parameter[]] call[da.addStyleSheet, parameter[member[.baseUrl], call[CSSNorm.stdStyleSheet, parameter[]], member[DOMAnalyzer.Origin.AGENT]]] call[da.addStyleSheet, parameter[literal[null], call[CSSNorm.userStyleSheet, parameter[]], member[DOMAnalyzer.Origin.AGENT]]] call[da.addStyleSheet, parameter[literal[null], call[CSSNorm.formsStyleSheet, parameter[]], member[DOMAnalyzer.Origin.AGENT]]] call[da.getStyleSheets, parameter[]] local_variable[type[BrowserCanvas], contentCanvas] call[contentCanvas.getConfig, parameter[]] call[contentCanvas.getConfig, parameter[]] call[contentCanvas.getConfig, parameter[]] call[contentCanvas.setPreferredSize, parameter[ClassCreator(arguments=[MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=windowSize, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Dimension, sub_type=None))]] call[contentCanvas.setAutoSizeUpdate, parameter[literal[true]]] call[.setDefaultFonts, parameter[call[contentCanvas.getConfig, parameter[]]]] call[contentCanvas.createLayout, parameter[member[.windowSize]]] call[contentCanvas.validate, parameter[]] call[ImageIO.write, parameter[call[contentCanvas.getImage, parameter[]], literal["png"], member[.out]]] call[docSource.close, parameter[]] return[literal[true]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[renderURL] operator[SEP] identifier[URL] identifier[urlstring] , identifier[URL] identifier[baseUrl] , identifier[OutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SAXException] { identifier[DocumentSource] identifier[docSource] operator[=] Keyword[new] identifier[DefaultDocumentSource] operator[SEP] identifier[urlstring] operator[SEP] operator[SEP] identifier[DOMSource] identifier[parser] operator[=] Keyword[new] identifier[DefaultDOMSource] operator[SEP] identifier[docSource] operator[SEP] operator[SEP] identifier[Document] identifier[doc] operator[=] identifier[parser] operator[SEP] identifier[parse] operator[SEP] operator[SEP] operator[SEP] identifier[MediaSpec] identifier[media] operator[=] Keyword[new] identifier[MediaSpec] operator[SEP] identifier[mediaType] operator[SEP] operator[SEP] identifier[media] operator[SEP] identifier[setDimensions] operator[SEP] identifier[windowSize] operator[SEP] identifier[width] , identifier[windowSize] operator[SEP] identifier[height] operator[SEP] operator[SEP] identifier[media] operator[SEP] identifier[setDeviceDimensions] operator[SEP] identifier[windowSize] operator[SEP] identifier[width] , identifier[windowSize] operator[SEP] identifier[height] operator[SEP] operator[SEP] identifier[DOMAnalyzer] identifier[da] operator[=] Keyword[new] identifier[DOMAnalyzer] operator[SEP] identifier[doc] , identifier[baseUrl] operator[SEP] operator[SEP] identifier[da] operator[SEP] identifier[setMediaSpec] operator[SEP] identifier[media] operator[SEP] operator[SEP] identifier[da] operator[SEP] identifier[attributesToStyles] operator[SEP] operator[SEP] operator[SEP] identifier[da] operator[SEP] identifier[addStyleSheet] operator[SEP] identifier[baseUrl] , identifier[CSSNorm] operator[SEP] identifier[stdStyleSheet] operator[SEP] operator[SEP] , identifier[DOMAnalyzer] operator[SEP] identifier[Origin] operator[SEP] identifier[AGENT] operator[SEP] operator[SEP] identifier[da] operator[SEP] identifier[addStyleSheet] operator[SEP] Other[null] , identifier[CSSNorm] operator[SEP] identifier[userStyleSheet] operator[SEP] operator[SEP] , identifier[DOMAnalyzer] operator[SEP] identifier[Origin] operator[SEP] identifier[AGENT] operator[SEP] operator[SEP] identifier[da] operator[SEP] identifier[addStyleSheet] operator[SEP] Other[null] , identifier[CSSNorm] operator[SEP] identifier[formsStyleSheet] operator[SEP] operator[SEP] , identifier[DOMAnalyzer] operator[SEP] identifier[Origin] operator[SEP] identifier[AGENT] operator[SEP] operator[SEP] identifier[da] operator[SEP] identifier[getStyleSheets] operator[SEP] operator[SEP] operator[SEP] identifier[BrowserCanvas] identifier[contentCanvas] operator[=] Keyword[new] identifier[BrowserCanvas] operator[SEP] identifier[da] operator[SEP] identifier[getRoot] operator[SEP] operator[SEP] , identifier[da] , identifier[baseUrl] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[getConfig] operator[SEP] operator[SEP] operator[SEP] identifier[setClipViewport] operator[SEP] identifier[cropWindow] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[getConfig] operator[SEP] operator[SEP] operator[SEP] identifier[setLoadImages] operator[SEP] identifier[loadImages] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[getConfig] operator[SEP] operator[SEP] operator[SEP] identifier[setLoadBackgroundImages] operator[SEP] identifier[loadBackgroundImages] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[setPreferredSize] operator[SEP] Keyword[new] identifier[Dimension] operator[SEP] identifier[windowSize] operator[SEP] identifier[width] , Other[10] operator[SEP] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[setAutoSizeUpdate] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[setDefaultFonts] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[getConfig] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[createLayout] operator[SEP] identifier[windowSize] operator[SEP] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[validate] operator[SEP] operator[SEP] operator[SEP] identifier[ImageIO] operator[SEP] identifier[write] operator[SEP] identifier[contentCanvas] operator[SEP] identifier[getImage] operator[SEP] operator[SEP] , literal[String] , identifier[out] operator[SEP] operator[SEP] identifier[docSource] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] }
public void printUsage(OutputStream os) { int count = 0; PrintStream out = UTF8.printStream(os); for (String option : optionList) { if (optionGroups.containsKey(count)) { out.println(" " + optionGroups.get(count)); } count++; if (unlistedOptions.contains(option)) { continue; } out.print(" "); StringBuilder buf = new StringBuilder(); buf.append(option); if (optionExtraPartSynopsisMap.get(option) != null) { String optionExtraPartSynopsis = optionExtraPartSynopsisMap.get(option); buf.append("[:"); buf.append(optionExtraPartSynopsis); buf.append("]"); } if (requiresArgumentSet.contains(option)) { buf.append(" <"); buf.append(argumentDescriptionMap.get(option)); buf.append(">"); } printField(out, buf.toString(), maxWidth + 1); out.println(optionDescriptionMap.get(option)); } out.flush(); }
class class_name[name] begin[{] method[printUsage, return_type[void], modifier[public], parameter[os]] begin[{] local_variable[type[int], count] local_variable[type[PrintStream], out] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=count, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=containsKey, postfix_operators=[], prefix_operators=[], qualifier=optionGroups, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" "), operandr=MethodInvocation(arguments=[MemberReference(member=count, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=optionGroups, selectors=[], type_arguments=None), operator=+)], member=println, postfix_operators=[], prefix_operators=[], qualifier=out, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MemberReference(member=count, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=unlistedOptions, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" ")], member=print, postfix_operators=[], prefix_operators=[], qualifier=out, selectors=[], type_arguments=None), label=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=StringBuilder, sub_type=None)), name=buf)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=optionExtraPartSynopsisMap, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=optionExtraPartSynopsisMap, selectors=[], type_arguments=None), name=optionExtraPartSynopsis)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="[:")], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=optionExtraPartSynopsis, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="]")], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=requiresArgumentSet, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" <")], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=argumentDescriptionMap, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=">")], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=out, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), BinaryOperation(operandl=MemberReference(member=maxWidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=printField, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=option, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=optionDescriptionMap, selectors=[], type_arguments=None)], member=println, postfix_operators=[], prefix_operators=[], qualifier=out, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=optionList, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=option)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) call[out.flush, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[printUsage] operator[SEP] identifier[OutputStream] identifier[os] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] identifier[PrintStream] identifier[out] operator[=] identifier[UTF8] operator[SEP] identifier[printStream] operator[SEP] identifier[os] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[option] operator[:] identifier[optionList] operator[SEP] { Keyword[if] operator[SEP] identifier[optionGroups] operator[SEP] identifier[containsKey] operator[SEP] identifier[count] operator[SEP] operator[SEP] { identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[optionGroups] operator[SEP] identifier[get] operator[SEP] identifier[count] operator[SEP] operator[SEP] operator[SEP] } identifier[count] operator[++] operator[SEP] Keyword[if] operator[SEP] identifier[unlistedOptions] operator[SEP] identifier[contains] operator[SEP] identifier[option] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } identifier[out] operator[SEP] identifier[print] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[buf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] operator[SEP] identifier[option] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optionExtraPartSynopsisMap] operator[SEP] identifier[get] operator[SEP] identifier[option] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[String] identifier[optionExtraPartSynopsis] operator[=] identifier[optionExtraPartSynopsisMap] operator[SEP] identifier[get] operator[SEP] identifier[option] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] operator[SEP] identifier[optionExtraPartSynopsis] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[requiresArgumentSet] operator[SEP] identifier[contains] operator[SEP] identifier[option] operator[SEP] operator[SEP] { identifier[buf] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] operator[SEP] identifier[argumentDescriptionMap] operator[SEP] identifier[get] operator[SEP] identifier[option] operator[SEP] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[printField] operator[SEP] identifier[out] , identifier[buf] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[maxWidth] operator[+] Other[1] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] identifier[optionDescriptionMap] operator[SEP] identifier[get] operator[SEP] identifier[option] operator[SEP] operator[SEP] operator[SEP] } identifier[out] operator[SEP] identifier[flush] operator[SEP] operator[SEP] operator[SEP] }
public static boolean isZip(String fName) { if (Strings.isNullOrEmpty(fName)) { return false; } return fName.endsWith(ZIP_SUFFIX); // Technically a file named `.zip` would be fine }
class class_name[name] begin[{] method[isZip, return_type[type[boolean]], modifier[public static], parameter[fName]] begin[{] if[call[Strings.isNullOrEmpty, parameter[member[.fName]]]] begin[{] return[literal[false]] else begin[{] None end[}] return[call[fName.endsWith, parameter[member[.ZIP_SUFFIX]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isZip] operator[SEP] identifier[String] identifier[fName] operator[SEP] { Keyword[if] operator[SEP] identifier[Strings] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[fName] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[return] identifier[fName] operator[SEP] identifier[endsWith] operator[SEP] identifier[ZIP_SUFFIX] operator[SEP] operator[SEP] }
private Iterator<Row<ByteBuffer, UUID>> rowScan(final DeltaPlacement placement, final ByteBufferRange rowRange, final ByteBufferRange columnRange, final LimitCounter limit, final ReadConsistency consistency) { return rowScan(placement, placement.getDeltaColumnFamily(), rowRange, columnRange, limit, consistency); }
class class_name[name] begin[{] method[rowScan, return_type[type[Iterator]], modifier[private], parameter[placement, rowRange, columnRange, limit, consistency]] begin[{] return[call[.rowScan, parameter[member[.placement], call[placement.getDeltaColumnFamily, parameter[]], member[.rowRange], member[.columnRange], member[.limit], member[.consistency]]]] end[}] END[}]
Keyword[private] identifier[Iterator] operator[<] identifier[Row] operator[<] identifier[ByteBuffer] , identifier[UUID] operator[>] operator[>] identifier[rowScan] operator[SEP] Keyword[final] identifier[DeltaPlacement] identifier[placement] , Keyword[final] identifier[ByteBufferRange] identifier[rowRange] , Keyword[final] identifier[ByteBufferRange] identifier[columnRange] , Keyword[final] identifier[LimitCounter] identifier[limit] , Keyword[final] identifier[ReadConsistency] identifier[consistency] operator[SEP] { Keyword[return] identifier[rowScan] operator[SEP] identifier[placement] , identifier[placement] operator[SEP] identifier[getDeltaColumnFamily] operator[SEP] operator[SEP] , identifier[rowRange] , identifier[columnRange] , identifier[limit] , identifier[consistency] operator[SEP] operator[SEP] }
protected boolean isSlowTracker(String taskTracker) { if (trackerMapStats.get(taskTracker) != null && trackerMapStats.get(taskTracker).mean() - mapTaskStats.mean() > mapTaskStats.std()*slowNodeThreshold) { if (LOG.isDebugEnabled()) { LOG.debug("Tracker " + taskTracker + " declared slow. trackerMapStats.get(taskTracker).mean() :" + trackerMapStats.get(taskTracker).mean() + " mapTaskStats :" + mapTaskStats); } return true; } if (trackerReduceStats.get(taskTracker) != null && trackerReduceStats.get(taskTracker).mean() - reduceTaskStats.mean() > reduceTaskStats.std()*slowNodeThreshold) { if (LOG.isDebugEnabled()) { LOG.debug("Tracker " + taskTracker + " declared slow. trackerReduceStats.get(taskTracker).mean() :" + trackerReduceStats.get(taskTracker).mean() + " reduceTaskStats :" + reduceTaskStats); } return true; } return false; }
class class_name[name] begin[{] method[isSlowTracker, return_type[type[boolean]], modifier[protected], parameter[taskTracker]] begin[{] if[binary_operation[binary_operation[call[trackerMapStats.get, parameter[member[.taskTracker]]], !=, literal[null]], &&, binary_operation[binary_operation[call[trackerMapStats.get, parameter[member[.taskTracker]]], -, call[mapTaskStats.mean, parameter[]]], >, binary_operation[call[mapTaskStats.std, parameter[]], *, member[.slowNodeThreshold]]]]] begin[{] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Tracker "], +, member[.taskTracker]], +, literal[" declared slow. trackerMapStats.get(taskTracker).mean() :"]], +, call[trackerMapStats.get, parameter[member[.taskTracker]]]], +, literal[" mapTaskStats :"]], +, member[.mapTaskStats]]]] else begin[{] None end[}] return[literal[true]] else begin[{] None end[}] if[binary_operation[binary_operation[call[trackerReduceStats.get, parameter[member[.taskTracker]]], !=, literal[null]], &&, binary_operation[binary_operation[call[trackerReduceStats.get, parameter[member[.taskTracker]]], -, call[reduceTaskStats.mean, parameter[]]], >, binary_operation[call[reduceTaskStats.std, parameter[]], *, member[.slowNodeThreshold]]]]] begin[{] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Tracker "], +, member[.taskTracker]], +, literal[" declared slow. trackerReduceStats.get(taskTracker).mean() :"]], +, call[trackerReduceStats.get, parameter[member[.taskTracker]]]], +, literal[" reduceTaskStats :"]], +, member[.reduceTaskStats]]]] else begin[{] None end[}] return[literal[true]] else begin[{] None end[}] return[literal[false]] end[}] END[}]
Keyword[protected] Keyword[boolean] identifier[isSlowTracker] operator[SEP] identifier[String] identifier[taskTracker] operator[SEP] { Keyword[if] operator[SEP] identifier[trackerMapStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[!=] Other[null] operator[&&] identifier[trackerMapStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[SEP] identifier[mean] operator[SEP] operator[SEP] operator[-] identifier[mapTaskStats] operator[SEP] identifier[mean] operator[SEP] operator[SEP] operator[>] identifier[mapTaskStats] operator[SEP] identifier[std] operator[SEP] operator[SEP] operator[*] identifier[slowNodeThreshold] operator[SEP] { Keyword[if] operator[SEP] identifier[LOG] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[taskTracker] operator[+] literal[String] operator[+] identifier[trackerMapStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[SEP] identifier[mean] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[mapTaskStats] operator[SEP] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[trackerReduceStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[!=] Other[null] operator[&&] identifier[trackerReduceStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[SEP] identifier[mean] operator[SEP] operator[SEP] operator[-] identifier[reduceTaskStats] operator[SEP] identifier[mean] operator[SEP] operator[SEP] operator[>] identifier[reduceTaskStats] operator[SEP] identifier[std] operator[SEP] operator[SEP] operator[*] identifier[slowNodeThreshold] operator[SEP] { Keyword[if] operator[SEP] identifier[LOG] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[taskTracker] operator[+] literal[String] operator[+] identifier[trackerReduceStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[SEP] identifier[mean] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[reduceTaskStats] operator[SEP] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
public org.inferred.freebuilder.processor.property.Property.Builder setNullableBoxedType( TypeMirror boxedType) { if (boxedType != null) { return setBoxedType(boxedType); } else { return clearBoxedType(); } }
class class_name[name] begin[{] method[setNullableBoxedType, return_type[type[org]], modifier[public], parameter[boxedType]] begin[{] if[binary_operation[member[.boxedType], !=, literal[null]]] begin[{] return[call[.setBoxedType, parameter[member[.boxedType]]]] else begin[{] return[call[.clearBoxedType, parameter[]]] end[}] 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[setNullableBoxedType] operator[SEP] identifier[TypeMirror] identifier[boxedType] operator[SEP] { Keyword[if] operator[SEP] identifier[boxedType] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[setBoxedType] operator[SEP] identifier[boxedType] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] identifier[clearBoxedType] operator[SEP] operator[SEP] operator[SEP] } }
@Deprecated public final void setPattern(Expression p, String wildcardMultiChar, String wildcardOneChar, String escapeString) { setPattern(p.toString(), wildcardMultiChar, wildcardOneChar, escapeString); }
class class_name[name] begin[{] method[setPattern, return_type[void], modifier[final public], parameter[p, wildcardMultiChar, wildcardOneChar, escapeString]] begin[{] call[.setPattern, parameter[call[p.toString, parameter[]], member[.wildcardMultiChar], member[.wildcardOneChar], member[.escapeString]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] Keyword[final] Keyword[void] identifier[setPattern] operator[SEP] identifier[Expression] identifier[p] , identifier[String] identifier[wildcardMultiChar] , identifier[String] identifier[wildcardOneChar] , identifier[String] identifier[escapeString] operator[SEP] { identifier[setPattern] operator[SEP] identifier[p] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[wildcardMultiChar] , identifier[wildcardOneChar] , identifier[escapeString] operator[SEP] operator[SEP] }
public static Object convertValue(String text, String typeName) throws ClassNotFoundException, IntrospectionException { // see if it is a primitive type first Class<?> typeClass = getPrimitiveTypeForName(typeName); if (typeClass == null) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); typeClass = loader.loadClass(typeName); } PropertyEditor editor = PropertyEditorFinder.getInstance().find(typeClass); if (editor == null) { throw new IntrospectionException("No property editor for type=" + typeClass); } editor.setAsText(text); return editor.getValue(); }
class class_name[name] begin[{] method[convertValue, return_type[type[Object]], modifier[public static], parameter[text, typeName]] begin[{] local_variable[type[Class], typeClass] if[binary_operation[member[.typeClass], ==, literal[null]]] begin[{] local_variable[type[ClassLoader], loader] assign[member[.typeClass], call[loader.loadClass, parameter[member[.typeName]]]] else begin[{] None end[}] local_variable[type[PropertyEditor], editor] if[binary_operation[member[.editor], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No property editor for type="), operandr=MemberReference(member=typeClass, 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=IntrospectionException, sub_type=None)), label=None) else begin[{] None end[}] call[editor.setAsText, parameter[member[.text]]] return[call[editor.getValue, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[convertValue] operator[SEP] identifier[String] identifier[text] , identifier[String] identifier[typeName] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] , identifier[IntrospectionException] { identifier[Class] operator[<] operator[?] operator[>] identifier[typeClass] operator[=] identifier[getPrimitiveTypeForName] operator[SEP] identifier[typeName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[typeClass] operator[==] Other[null] operator[SEP] { identifier[ClassLoader] identifier[loader] operator[=] identifier[Thread] operator[SEP] identifier[currentThread] operator[SEP] operator[SEP] operator[SEP] identifier[getContextClassLoader] operator[SEP] operator[SEP] operator[SEP] identifier[typeClass] operator[=] identifier[loader] operator[SEP] identifier[loadClass] operator[SEP] identifier[typeName] operator[SEP] operator[SEP] } identifier[PropertyEditor] identifier[editor] operator[=] identifier[PropertyEditorFinder] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[find] operator[SEP] identifier[typeClass] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[editor] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IntrospectionException] operator[SEP] literal[String] operator[+] identifier[typeClass] operator[SEP] operator[SEP] } identifier[editor] operator[SEP] identifier[setAsText] operator[SEP] identifier[text] operator[SEP] operator[SEP] Keyword[return] identifier[editor] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] }
public void viewUpdated() { BufferedImage active = null; if( controls.selectedView == 0 ) { active = original; } else if( controls.selectedView == 1 ) { synchronized (lockProcessing) { VisualizeBinaryData.renderBinary(detector.getBinary(), false, work); } active = work; work.setRGB(0, 0, work.getRGB(0, 0)); // hack so that Swing knows it's been modified } else { Graphics2D g2 = work.createGraphics(); g2.setColor(Color.BLACK); g2.fillRect(0,0,work.getWidth(),work.getHeight()); active = work; } guiImage.setBufferedImage(active); guiImage.setScale(controls.zoom); guiImage.repaint(); }
class class_name[name] begin[{] method[viewUpdated, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[BufferedImage], active] if[binary_operation[member[controls.selectedView], ==, literal[0]]] begin[{] assign[member[.active], member[.original]] else begin[{] if[binary_operation[member[controls.selectedView], ==, literal[1]]] begin[{] SYNCHRONIZED[member[.lockProcessing]] BEGIN[{] call[VisualizeBinaryData.renderBinary, parameter[call[detector.getBinary, parameter[]], literal[false], member[.work]]] END[}] assign[member[.active], member[.work]] call[work.setRGB, parameter[literal[0], literal[0], call[work.getRGB, parameter[literal[0], literal[0]]]]] else begin[{] local_variable[type[Graphics2D], g2] call[g2.setColor, parameter[member[Color.BLACK]]] call[g2.fillRect, parameter[literal[0], literal[0], call[work.getWidth, parameter[]], call[work.getHeight, parameter[]]]] assign[member[.active], member[.work]] end[}] end[}] call[guiImage.setBufferedImage, parameter[member[.active]]] call[guiImage.setScale, parameter[member[controls.zoom]]] call[guiImage.repaint, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[viewUpdated] operator[SEP] operator[SEP] { identifier[BufferedImage] identifier[active] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[controls] operator[SEP] identifier[selectedView] operator[==] Other[0] operator[SEP] { identifier[active] operator[=] identifier[original] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[controls] operator[SEP] identifier[selectedView] operator[==] Other[1] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[lockProcessing] operator[SEP] { identifier[VisualizeBinaryData] operator[SEP] identifier[renderBinary] operator[SEP] identifier[detector] operator[SEP] identifier[getBinary] operator[SEP] operator[SEP] , literal[boolean] , identifier[work] operator[SEP] operator[SEP] } identifier[active] operator[=] identifier[work] operator[SEP] identifier[work] operator[SEP] identifier[setRGB] operator[SEP] Other[0] , Other[0] , identifier[work] operator[SEP] identifier[getRGB] operator[SEP] Other[0] , Other[0] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[Graphics2D] identifier[g2] operator[=] identifier[work] operator[SEP] identifier[createGraphics] operator[SEP] operator[SEP] operator[SEP] identifier[g2] operator[SEP] identifier[setColor] operator[SEP] identifier[Color] operator[SEP] identifier[BLACK] operator[SEP] operator[SEP] identifier[g2] operator[SEP] identifier[fillRect] operator[SEP] Other[0] , Other[0] , identifier[work] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] , identifier[work] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[active] operator[=] identifier[work] operator[SEP] } identifier[guiImage] operator[SEP] identifier[setBufferedImage] operator[SEP] identifier[active] operator[SEP] operator[SEP] identifier[guiImage] operator[SEP] identifier[setScale] operator[SEP] identifier[controls] operator[SEP] identifier[zoom] operator[SEP] operator[SEP] identifier[guiImage] operator[SEP] identifier[repaint] operator[SEP] operator[SEP] operator[SEP] }
public ColumnConfig setValueDate(String valueDate) throws DateParseException { if ((valueDate == null) || "null".equalsIgnoreCase(valueDate)) { this.valueDate = null; } else if (NowAndTodayUtil.isNowOrTodayFormat(valueDate)) { this.valueDate = NowAndTodayUtil.doNowOrToday(valueDate, this.getType()); } else { try { this.valueDate = new ISODateFormat().parse(valueDate); } catch (ParseException e) { //probably a function this.valueComputed = new DatabaseFunction(valueDate); } } return this; }
class class_name[name] begin[{] method[setValueDate, return_type[type[ColumnConfig]], modifier[public], parameter[valueDate]] begin[{] if[binary_operation[binary_operation[member[.valueDate], ==, literal[null]], ||, literal["null"]]] begin[{] assign[THIS[member[None.valueDate]], literal[null]] else begin[{] if[call[NowAndTodayUtil.isNowOrTodayFormat, parameter[member[.valueDate]]]] begin[{] assign[THIS[member[None.valueDate]], call[NowAndTodayUtil.doNowOrToday, parameter[member[.valueDate], THIS[call[None.getType, parameter[]]]]]] else begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=valueDate, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), type==, value=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=valueDate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parse, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=ISODateFormat, sub_type=None))), label=None)], catches=[CatchClause(block=[StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=valueComputed, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), type==, value=ClassCreator(arguments=[MemberReference(member=valueDate, 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=DatabaseFunction, sub_type=None))), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['ParseException']))], finally_block=None, label=None, resources=None) end[}] end[}] return[THIS[]] end[}] END[}]
Keyword[public] identifier[ColumnConfig] identifier[setValueDate] operator[SEP] identifier[String] identifier[valueDate] operator[SEP] Keyword[throws] identifier[DateParseException] { Keyword[if] operator[SEP] operator[SEP] identifier[valueDate] operator[==] Other[null] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[valueDate] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[valueDate] operator[=] Other[null] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[NowAndTodayUtil] operator[SEP] identifier[isNowOrTodayFormat] operator[SEP] identifier[valueDate] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[valueDate] operator[=] identifier[NowAndTodayUtil] operator[SEP] identifier[doNowOrToday] operator[SEP] identifier[valueDate] , Keyword[this] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[try] { Keyword[this] operator[SEP] identifier[valueDate] operator[=] Keyword[new] identifier[ISODateFormat] operator[SEP] operator[SEP] operator[SEP] identifier[parse] operator[SEP] identifier[valueDate] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[ParseException] identifier[e] operator[SEP] { Keyword[this] operator[SEP] identifier[valueComputed] operator[=] Keyword[new] identifier[DatabaseFunction] operator[SEP] identifier[valueDate] operator[SEP] operator[SEP] } } Keyword[return] Keyword[this] operator[SEP] }
public StringBuilder formatMeasurePerUnit( Measure measure, MeasureUnit perUnit, StringBuilder appendTo, FieldPosition pos) { MeasureUnit resolvedUnit = MeasureUnit.resolveUnitPerUnit( measure.getUnit(), perUnit); if (resolvedUnit != null) { Measure newMeasure = new Measure(measure.getNumber(), resolvedUnit); return formatMeasure(newMeasure, numberFormat, appendTo, pos); } FieldPosition fpos = new FieldPosition( pos.getFieldAttribute(), pos.getField()); int offset = withPerUnitAndAppend( formatMeasure(measure, numberFormat, new StringBuilder(), fpos), perUnit, appendTo); if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { pos.setBeginIndex(fpos.getBeginIndex() + offset); pos.setEndIndex(fpos.getEndIndex() + offset); } return appendTo; }
class class_name[name] begin[{] method[formatMeasurePerUnit, return_type[type[StringBuilder]], modifier[public], parameter[measure, perUnit, appendTo, pos]] begin[{] local_variable[type[MeasureUnit], resolvedUnit] if[binary_operation[member[.resolvedUnit], !=, literal[null]]] begin[{] local_variable[type[Measure], newMeasure] return[call[.formatMeasure, parameter[member[.newMeasure], member[.numberFormat], member[.appendTo], member[.pos]]]] else begin[{] None end[}] local_variable[type[FieldPosition], fpos] local_variable[type[int], offset] if[binary_operation[binary_operation[call[fpos.getBeginIndex, parameter[]], !=, literal[0]], ||, binary_operation[call[fpos.getEndIndex, parameter[]], !=, literal[0]]]] begin[{] call[pos.setBeginIndex, parameter[binary_operation[call[fpos.getBeginIndex, parameter[]], +, member[.offset]]]] call[pos.setEndIndex, parameter[binary_operation[call[fpos.getEndIndex, parameter[]], +, member[.offset]]]] else begin[{] None end[}] return[member[.appendTo]] end[}] END[}]
Keyword[public] identifier[StringBuilder] identifier[formatMeasurePerUnit] operator[SEP] identifier[Measure] identifier[measure] , identifier[MeasureUnit] identifier[perUnit] , identifier[StringBuilder] identifier[appendTo] , identifier[FieldPosition] identifier[pos] operator[SEP] { identifier[MeasureUnit] identifier[resolvedUnit] operator[=] identifier[MeasureUnit] operator[SEP] identifier[resolveUnitPerUnit] operator[SEP] identifier[measure] operator[SEP] identifier[getUnit] operator[SEP] operator[SEP] , identifier[perUnit] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[resolvedUnit] operator[!=] Other[null] operator[SEP] { identifier[Measure] identifier[newMeasure] operator[=] Keyword[new] identifier[Measure] operator[SEP] identifier[measure] operator[SEP] identifier[getNumber] operator[SEP] operator[SEP] , identifier[resolvedUnit] operator[SEP] operator[SEP] Keyword[return] identifier[formatMeasure] operator[SEP] identifier[newMeasure] , identifier[numberFormat] , identifier[appendTo] , identifier[pos] operator[SEP] operator[SEP] } identifier[FieldPosition] identifier[fpos] operator[=] Keyword[new] identifier[FieldPosition] operator[SEP] identifier[pos] operator[SEP] identifier[getFieldAttribute] operator[SEP] operator[SEP] , identifier[pos] operator[SEP] identifier[getField] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[offset] operator[=] identifier[withPerUnitAndAppend] operator[SEP] identifier[formatMeasure] operator[SEP] identifier[measure] , identifier[numberFormat] , Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] , identifier[fpos] operator[SEP] , identifier[perUnit] , identifier[appendTo] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[fpos] operator[SEP] identifier[getBeginIndex] operator[SEP] operator[SEP] operator[!=] Other[0] operator[||] identifier[fpos] operator[SEP] identifier[getEndIndex] operator[SEP] operator[SEP] operator[!=] Other[0] operator[SEP] { identifier[pos] operator[SEP] identifier[setBeginIndex] operator[SEP] identifier[fpos] operator[SEP] identifier[getBeginIndex] operator[SEP] operator[SEP] operator[+] identifier[offset] operator[SEP] operator[SEP] identifier[pos] operator[SEP] identifier[setEndIndex] operator[SEP] identifier[fpos] operator[SEP] identifier[getEndIndex] operator[SEP] operator[SEP] operator[+] identifier[offset] operator[SEP] operator[SEP] } Keyword[return] identifier[appendTo] operator[SEP] }
public void save(String comment) throws DataException, ApplicationUnavailableException { assetID = instance.commit(this, comment); stubAssetID = null; }
class class_name[name] begin[{] method[save, return_type[void], modifier[public], parameter[comment]] begin[{] assign[member[.assetID], call[instance.commit, parameter[THIS[], member[.comment]]]] assign[member[.stubAssetID], literal[null]] end[}] END[}]
Keyword[public] Keyword[void] identifier[save] operator[SEP] identifier[String] identifier[comment] operator[SEP] Keyword[throws] identifier[DataException] , identifier[ApplicationUnavailableException] { identifier[assetID] operator[=] identifier[instance] operator[SEP] identifier[commit] operator[SEP] Keyword[this] , identifier[comment] operator[SEP] operator[SEP] identifier[stubAssetID] operator[=] Other[null] operator[SEP] }
private void deregisterServices() { Iterator<ServiceRegistration<?>> serviceIterator = serviceRegistrations.iterator(); while (serviceIterator.hasNext()) { ServiceRegistration<?> serviceReference = serviceIterator.next(); serviceReference.unregister(); serviceIterator.remove(); } }
class class_name[name] begin[{] method[deregisterServices, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[Iterator], serviceIterator] while[call[serviceIterator.hasNext, parameter[]]] begin[{] local_variable[type[ServiceRegistration], serviceReference] call[serviceReference.unregister, parameter[]] call[serviceIterator.remove, parameter[]] end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[deregisterServices] operator[SEP] operator[SEP] { identifier[Iterator] operator[<] identifier[ServiceRegistration] operator[<] operator[?] operator[>] operator[>] identifier[serviceIterator] operator[=] identifier[serviceRegistrations] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[serviceIterator] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { identifier[ServiceRegistration] operator[<] operator[?] operator[>] identifier[serviceReference] operator[=] identifier[serviceIterator] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[serviceReference] operator[SEP] identifier[unregister] operator[SEP] operator[SEP] operator[SEP] identifier[serviceIterator] operator[SEP] identifier[remove] operator[SEP] operator[SEP] operator[SEP] } }
public String keyDefault(String keyName, String defaultValue) { return getMessages().keyDefault(keyName, defaultValue); }
class class_name[name] begin[{] method[keyDefault, return_type[type[String]], modifier[public], parameter[keyName, defaultValue]] begin[{] return[call[.getMessages, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[keyDefault] operator[SEP] identifier[String] identifier[keyName] , identifier[String] identifier[defaultValue] operator[SEP] { Keyword[return] identifier[getMessages] operator[SEP] operator[SEP] operator[SEP] identifier[keyDefault] operator[SEP] identifier[keyName] , identifier[defaultValue] operator[SEP] operator[SEP] }
public static EraPreference hispanicBetween( PlainDate start, PlainDate end ) { return new EraPreference(HistoricEra.HISPANIC, start, end); }
class class_name[name] begin[{] method[hispanicBetween, return_type[type[EraPreference]], modifier[public static], parameter[start, end]] begin[{] return[ClassCreator(arguments=[MemberReference(member=HISPANIC, postfix_operators=[], prefix_operators=[], qualifier=HistoricEra, selectors=[]), MemberReference(member=start, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=end, 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=EraPreference, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[EraPreference] identifier[hispanicBetween] operator[SEP] identifier[PlainDate] identifier[start] , identifier[PlainDate] identifier[end] operator[SEP] { Keyword[return] Keyword[new] identifier[EraPreference] operator[SEP] identifier[HistoricEra] operator[SEP] identifier[HISPANIC] , identifier[start] , identifier[end] operator[SEP] operator[SEP] }
public byte[] sendUnbind(OutputStream os, int sequenceNumber) throws IOException { byte[] b = pduComposer.unbind(sequenceNumber); writeAndFlush(os, b); return b; }
class class_name[name] begin[{] method[sendUnbind, return_type[type[byte]], modifier[public], parameter[os, sequenceNumber]] begin[{] local_variable[type[byte], b] call[.writeAndFlush, parameter[member[.os], member[.b]]] return[member[.b]] end[}] END[}]
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[sendUnbind] operator[SEP] identifier[OutputStream] identifier[os] , Keyword[int] identifier[sequenceNumber] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[=] identifier[pduComposer] operator[SEP] identifier[unbind] operator[SEP] identifier[sequenceNumber] operator[SEP] operator[SEP] identifier[writeAndFlush] operator[SEP] identifier[os] , identifier[b] operator[SEP] operator[SEP] Keyword[return] identifier[b] operator[SEP] }
private <T> List<? super T> bind(final ResultSet results, final Class<T> klass, final List<? super T> instances) throws SQLException { if (results == null) { throw new NullPointerException("results is null"); } if (klass == null) { throw new NullPointerException("klass is null"); } if (instances == null) { throw new NullPointerException("instances is null"); } while (results.next()) { final T instance; try { instance = klass.newInstance(); } catch (final ReflectiveOperationException roe) { logger.log(SEVERE, format("failed to create new instance of %s", klass), roe); continue; } instances.add(bind(results, klass, instance)); } return instances; }
class class_name[name] begin[{] method[bind, return_type[type[List]], modifier[private], parameter[results, klass, instances]] begin[{] if[binary_operation[member[.results], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="results is null")], 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[}] if[binary_operation[member[.klass], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="klass is null")], 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[}] if[binary_operation[member[.instances], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="instances is null")], 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[}] while[call[results.next, parameter[]]] begin[{] local_variable[type[T], instance] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=instance, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=newInstance, postfix_operators=[], prefix_operators=[], qualifier=klass, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=SEVERE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="failed to create new instance of %s"), MemberReference(member=klass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=roe, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=log, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), ContinueStatement(goto=None, label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=roe, types=['ReflectiveOperationException']))], finally_block=None, label=None, resources=None) call[instances.add, parameter[call[.bind, parameter[member[.results], member[.klass], member[.instance]]]]] end[}] return[member[.instances]] end[}] END[}]
Keyword[private] operator[<] identifier[T] operator[>] identifier[List] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[bind] operator[SEP] Keyword[final] identifier[ResultSet] identifier[results] , Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[klass] , Keyword[final] identifier[List] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[instances] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[results] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[klass] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[instances] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[while] operator[SEP] identifier[results] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] { Keyword[final] identifier[T] identifier[instance] operator[SEP] Keyword[try] { identifier[instance] operator[=] identifier[klass] operator[SEP] identifier[newInstance] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[ReflectiveOperationException] identifier[roe] operator[SEP] { identifier[logger] operator[SEP] identifier[log] operator[SEP] identifier[SEVERE] , identifier[format] operator[SEP] literal[String] , identifier[klass] operator[SEP] , identifier[roe] operator[SEP] operator[SEP] Keyword[continue] operator[SEP] } identifier[instances] operator[SEP] identifier[add] operator[SEP] identifier[bind] operator[SEP] identifier[results] , identifier[klass] , identifier[instance] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[instances] operator[SEP] }
public static PlatformBitmapFactory buildPlatformBitmapFactory( PoolFactory poolFactory, PlatformDecoder platformDecoder) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { return new ArtBitmapFactory(poolFactory.getBitmapPool()); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { return new HoneycombBitmapFactory( new EmptyJpegGenerator(poolFactory.getPooledByteBufferFactory()), platformDecoder); } else { return new GingerbreadBitmapFactory(); } }
class class_name[name] begin[{] method[buildPlatformBitmapFactory, return_type[type[PlatformBitmapFactory]], modifier[public static], parameter[poolFactory, platformDecoder]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.LOLLIPOP]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getBitmapPool, postfix_operators=[], prefix_operators=[], qualifier=poolFactory, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ArtBitmapFactory, sub_type=None))] else begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.HONEYCOMB]]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getPooledByteBufferFactory, postfix_operators=[], prefix_operators=[], qualifier=poolFactory, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EmptyJpegGenerator, sub_type=None)), MemberReference(member=platformDecoder, 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=HoneycombBitmapFactory, sub_type=None))] else begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GingerbreadBitmapFactory, sub_type=None))] end[}] end[}] end[}] END[}]
Keyword[public] Keyword[static] identifier[PlatformBitmapFactory] identifier[buildPlatformBitmapFactory] operator[SEP] identifier[PoolFactory] identifier[poolFactory] , identifier[PlatformDecoder] identifier[platformDecoder] 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[LOLLIPOP] operator[SEP] { Keyword[return] Keyword[new] identifier[ArtBitmapFactory] operator[SEP] identifier[poolFactory] operator[SEP] identifier[getBitmapPool] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] 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[HONEYCOMB] operator[SEP] { Keyword[return] Keyword[new] identifier[HoneycombBitmapFactory] operator[SEP] Keyword[new] identifier[EmptyJpegGenerator] operator[SEP] identifier[poolFactory] operator[SEP] identifier[getPooledByteBufferFactory] operator[SEP] operator[SEP] operator[SEP] , identifier[platformDecoder] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[GingerbreadBitmapFactory] operator[SEP] operator[SEP] operator[SEP] } }
public UnitVectorProperty secondAxisProperty() { if (this.saxis == null) { this.saxis = new UnitVectorProperty(this, MathFXAttributeNames.SECOND_AXIS, getGeomFactory()); } return this.saxis; }
class class_name[name] begin[{] method[secondAxisProperty, return_type[type[UnitVectorProperty]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.saxis]], ==, literal[null]]] begin[{] assign[THIS[member[None.saxis]], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=SECOND_AXIS, postfix_operators=[], prefix_operators=[], qualifier=MathFXAttributeNames, selectors=[]), MethodInvocation(arguments=[], member=getGeomFactory, 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=UnitVectorProperty, sub_type=None))] else begin[{] None end[}] return[THIS[member[None.saxis]]] end[}] END[}]
Keyword[public] identifier[UnitVectorProperty] identifier[secondAxisProperty] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[saxis] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[saxis] operator[=] Keyword[new] identifier[UnitVectorProperty] operator[SEP] Keyword[this] , identifier[MathFXAttributeNames] operator[SEP] identifier[SECOND_AXIS] , identifier[getGeomFactory] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] identifier[saxis] operator[SEP] }
public void hideColumn(int modelColumn) { int viewColumn = table.convertColumnIndexToView(modelColumn); if (viewColumn != -1) { TableColumn column = columnModel.getColumn(viewColumn); hideColumn(column); } }
class class_name[name] begin[{] method[hideColumn, return_type[void], modifier[public], parameter[modelColumn]] begin[{] local_variable[type[int], viewColumn] if[binary_operation[member[.viewColumn], !=, literal[1]]] begin[{] local_variable[type[TableColumn], column] call[.hideColumn, parameter[member[.column]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[hideColumn] operator[SEP] Keyword[int] identifier[modelColumn] operator[SEP] { Keyword[int] identifier[viewColumn] operator[=] identifier[table] operator[SEP] identifier[convertColumnIndexToView] operator[SEP] identifier[modelColumn] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[viewColumn] operator[!=] operator[-] Other[1] operator[SEP] { identifier[TableColumn] identifier[column] operator[=] identifier[columnModel] operator[SEP] identifier[getColumn] operator[SEP] identifier[viewColumn] operator[SEP] operator[SEP] identifier[hideColumn] operator[SEP] identifier[column] operator[SEP] operator[SEP] } }
@Override public void activate(RuleBlock ruleBlock) { if (FuzzyLite.isDebugging()) { FuzzyLite.logger().log(Level.FINE, "Activation: {0} {1}", new String[]{getClass().getName(), parameters()}); } TNorm conjunction = ruleBlock.getConjunction(); SNorm disjunction = ruleBlock.getDisjunction(); TNorm implication = ruleBlock.getImplication(); double sumActivationDegrees = 0.0; List<Rule> rulesToActivate = new ArrayList<Rule>(ruleBlock.getRules().size()); for (Rule rule : ruleBlock.getRules()) { rule.deactivate(); if (rule.isLoaded()) { double activationDegree = rule.activateWith(conjunction, disjunction); rulesToActivate.add(rule); sumActivationDegrees += activationDegree; } } for (Rule rule : rulesToActivate) { double activationDegree = rule.getActivationDegree() / sumActivationDegrees; rule.setActivationDegree(activationDegree); rule.trigger(implication); } }
class class_name[name] begin[{] method[activate, return_type[void], modifier[public], parameter[ruleBlock]] begin[{] if[call[FuzzyLite.isDebugging, parameter[]]] begin[{] call[FuzzyLite.logger, parameter[]] else begin[{] None end[}] local_variable[type[TNorm], conjunction] local_variable[type[SNorm], disjunction] local_variable[type[TNorm], implication] local_variable[type[double], sumActivationDegrees] local_variable[type[List], rulesToActivate] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=deactivate, postfix_operators=[], prefix_operators=[], qualifier=rule, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=isLoaded, postfix_operators=[], prefix_operators=[], qualifier=rule, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=conjunction, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=disjunction, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=activateWith, postfix_operators=[], prefix_operators=[], qualifier=rule, selectors=[], type_arguments=None), name=activationDegree)], modifiers=set(), type=BasicType(dimensions=[], name=double)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=rule, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=rulesToActivate, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=sumActivationDegrees, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=activationDegree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getRules, postfix_operators=[], prefix_operators=[], qualifier=ruleBlock, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=rule)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Rule, sub_type=None))), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getActivationDegree, postfix_operators=[], prefix_operators=[], qualifier=rule, selectors=[], type_arguments=None), operandr=MemberReference(member=sumActivationDegrees, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=/), name=activationDegree)], modifiers=set(), type=BasicType(dimensions=[], name=double)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=activationDegree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setActivationDegree, postfix_operators=[], prefix_operators=[], qualifier=rule, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=implication, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=trigger, postfix_operators=[], prefix_operators=[], qualifier=rule, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=rulesToActivate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=rule)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Rule, sub_type=None))), label=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[activate] operator[SEP] identifier[RuleBlock] identifier[ruleBlock] operator[SEP] { Keyword[if] operator[SEP] identifier[FuzzyLite] operator[SEP] identifier[isDebugging] operator[SEP] operator[SEP] operator[SEP] { identifier[FuzzyLite] operator[SEP] identifier[logger] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[FINE] , literal[String] , Keyword[new] identifier[String] operator[SEP] operator[SEP] { identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[parameters] operator[SEP] operator[SEP] } operator[SEP] operator[SEP] } identifier[TNorm] identifier[conjunction] operator[=] identifier[ruleBlock] operator[SEP] identifier[getConjunction] operator[SEP] operator[SEP] operator[SEP] identifier[SNorm] identifier[disjunction] operator[=] identifier[ruleBlock] operator[SEP] identifier[getDisjunction] operator[SEP] operator[SEP] operator[SEP] identifier[TNorm] identifier[implication] operator[=] identifier[ruleBlock] operator[SEP] identifier[getImplication] operator[SEP] operator[SEP] operator[SEP] Keyword[double] identifier[sumActivationDegrees] operator[=] literal[Float] operator[SEP] identifier[List] operator[<] identifier[Rule] operator[>] identifier[rulesToActivate] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Rule] operator[>] operator[SEP] identifier[ruleBlock] operator[SEP] identifier[getRules] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Rule] identifier[rule] operator[:] identifier[ruleBlock] operator[SEP] identifier[getRules] operator[SEP] operator[SEP] operator[SEP] { identifier[rule] operator[SEP] identifier[deactivate] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rule] operator[SEP] identifier[isLoaded] operator[SEP] operator[SEP] operator[SEP] { Keyword[double] identifier[activationDegree] operator[=] identifier[rule] operator[SEP] identifier[activateWith] operator[SEP] identifier[conjunction] , identifier[disjunction] operator[SEP] operator[SEP] identifier[rulesToActivate] operator[SEP] identifier[add] operator[SEP] identifier[rule] operator[SEP] operator[SEP] identifier[sumActivationDegrees] operator[+=] identifier[activationDegree] operator[SEP] } } Keyword[for] operator[SEP] identifier[Rule] identifier[rule] operator[:] identifier[rulesToActivate] operator[SEP] { Keyword[double] identifier[activationDegree] operator[=] identifier[rule] operator[SEP] identifier[getActivationDegree] operator[SEP] operator[SEP] operator[/] identifier[sumActivationDegrees] operator[SEP] identifier[rule] operator[SEP] identifier[setActivationDegree] operator[SEP] identifier[activationDegree] operator[SEP] operator[SEP] identifier[rule] operator[SEP] identifier[trigger] operator[SEP] identifier[implication] operator[SEP] operator[SEP] } }
public void commitAddedRules() { // commit changes in the context initialization rules ChainableContextInitRule nextContextInitRule; Chain<ChainableContextInitRule> contextInitRuleChain; nextContextInitRule = addedContextInitRules_; contextInitRuleChain = getContextInitRuleChain(); while (nextContextInitRule != null) { nextContextInitRule.addTo(contextInitRuleChain); nextContextInitRule = nextContextInitRule.next(); } // commit changes in rules for IndexedClassExpression ChainableSubsumerRule nextClassExpressionRule; Chain<ChainableSubsumerRule> classExpressionRuleChain; for (ModifiableIndexedClassExpression target : addedContextRuleHeadByClassExpressions_ .keySet()) { LOGGER_.trace("{}: committing context rule additions", target); nextClassExpressionRule = addedContextRuleHeadByClassExpressions_ .get(target); classExpressionRuleChain = target.getCompositionRuleChain(); while (nextClassExpressionRule != null) { nextClassExpressionRule.addTo(classExpressionRuleChain); nextClassExpressionRule = nextClassExpressionRule.next(); } } for (ModifiableIndexedClass target : addedDefinitions_.keySet()) { ModifiableIndexedClassExpression definition = addedDefinitions_ .get(target); ElkAxiom reason = addedDefinitionReasons_.get(target); LOGGER_.trace("{}: committing definition addition {}", target, definition); if (!target.setDefinition(definition, reason)) throw new ElkUnexpectedIndexingException(target); } initAdditions(); }
class class_name[name] begin[{] method[commitAddedRules, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[ChainableContextInitRule], nextContextInitRule] local_variable[type[Chain], contextInitRuleChain] assign[member[.nextContextInitRule], member[.addedContextInitRules_]] assign[member[.contextInitRuleChain], call[.getContextInitRuleChain, parameter[]]] while[binary_operation[member[.nextContextInitRule], !=, literal[null]]] begin[{] call[nextContextInitRule.addTo, parameter[member[.contextInitRuleChain]]] assign[member[.nextContextInitRule], call[nextContextInitRule.next, parameter[]]] end[}] local_variable[type[ChainableSubsumerRule], nextClassExpressionRule] local_variable[type[Chain], classExpressionRuleChain] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="{}: committing context rule additions"), MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=trace, postfix_operators=[], prefix_operators=[], qualifier=LOGGER_, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=nextClassExpressionRule, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=addedContextRuleHeadByClassExpressions_, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=classExpressionRuleChain, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getCompositionRuleChain, postfix_operators=[], prefix_operators=[], qualifier=target, selectors=[], type_arguments=None)), label=None), WhileStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=classExpressionRuleChain, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addTo, postfix_operators=[], prefix_operators=[], qualifier=nextClassExpressionRule, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=nextClassExpressionRule, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=nextClassExpressionRule, selectors=[], type_arguments=None)), label=None)]), condition=BinaryOperation(operandl=MemberReference(member=nextClassExpressionRule, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=keySet, postfix_operators=[], prefix_operators=[], qualifier=addedContextRuleHeadByClassExpressions_, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=target)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ModifiableIndexedClassExpression, sub_type=None))), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=addedDefinitions_, selectors=[], type_arguments=None), name=definition)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ModifiableIndexedClassExpression, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=addedDefinitionReasons_, selectors=[], type_arguments=None), name=reason)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ElkAxiom, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="{}: committing definition addition {}"), MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=definition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=trace, postfix_operators=[], prefix_operators=[], qualifier=LOGGER_, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=definition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=reason, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setDefinition, postfix_operators=[], prefix_operators=['!'], qualifier=target, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=target, 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=ElkUnexpectedIndexingException, sub_type=None)), label=None))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=keySet, postfix_operators=[], prefix_operators=[], qualifier=addedDefinitions_, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=target)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ModifiableIndexedClass, sub_type=None))), label=None) call[.initAdditions, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[commitAddedRules] operator[SEP] operator[SEP] { identifier[ChainableContextInitRule] identifier[nextContextInitRule] operator[SEP] identifier[Chain] operator[<] identifier[ChainableContextInitRule] operator[>] identifier[contextInitRuleChain] operator[SEP] identifier[nextContextInitRule] operator[=] identifier[addedContextInitRules_] operator[SEP] identifier[contextInitRuleChain] operator[=] identifier[getContextInitRuleChain] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[nextContextInitRule] operator[!=] Other[null] operator[SEP] { identifier[nextContextInitRule] operator[SEP] identifier[addTo] operator[SEP] identifier[contextInitRuleChain] operator[SEP] operator[SEP] identifier[nextContextInitRule] operator[=] identifier[nextContextInitRule] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] } identifier[ChainableSubsumerRule] identifier[nextClassExpressionRule] operator[SEP] identifier[Chain] operator[<] identifier[ChainableSubsumerRule] operator[>] identifier[classExpressionRuleChain] operator[SEP] Keyword[for] operator[SEP] identifier[ModifiableIndexedClassExpression] identifier[target] operator[:] identifier[addedContextRuleHeadByClassExpressions_] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] { identifier[LOGGER_] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[target] operator[SEP] operator[SEP] identifier[nextClassExpressionRule] operator[=] identifier[addedContextRuleHeadByClassExpressions_] operator[SEP] identifier[get] operator[SEP] identifier[target] operator[SEP] operator[SEP] identifier[classExpressionRuleChain] operator[=] identifier[target] operator[SEP] identifier[getCompositionRuleChain] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[nextClassExpressionRule] operator[!=] Other[null] operator[SEP] { identifier[nextClassExpressionRule] operator[SEP] identifier[addTo] operator[SEP] identifier[classExpressionRuleChain] operator[SEP] operator[SEP] identifier[nextClassExpressionRule] operator[=] identifier[nextClassExpressionRule] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] } } Keyword[for] operator[SEP] identifier[ModifiableIndexedClass] identifier[target] operator[:] identifier[addedDefinitions_] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] { identifier[ModifiableIndexedClassExpression] identifier[definition] operator[=] identifier[addedDefinitions_] operator[SEP] identifier[get] operator[SEP] identifier[target] operator[SEP] operator[SEP] identifier[ElkAxiom] identifier[reason] operator[=] identifier[addedDefinitionReasons_] operator[SEP] identifier[get] operator[SEP] identifier[target] operator[SEP] operator[SEP] identifier[LOGGER_] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[target] , identifier[definition] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[target] operator[SEP] identifier[setDefinition] operator[SEP] identifier[definition] , identifier[reason] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[ElkUnexpectedIndexingException] operator[SEP] identifier[target] operator[SEP] operator[SEP] } identifier[initAdditions] operator[SEP] operator[SEP] operator[SEP] }
public static synchronized RenderEngine getInstance(String name) { if (null == availableEngines) { availableEngines = new HashMap(); } //Logger.debug("Engines: " + availableEngines); return (RenderEngine) availableEngines.get(name); }
class class_name[name] begin[{] method[getInstance, return_type[type[RenderEngine]], modifier[synchronized public static], parameter[name]] begin[{] if[binary_operation[literal[null], ==, member[.availableEngines]]] begin[{] assign[member[.availableEngines], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=HashMap, sub_type=None))] else begin[{] None end[}] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=availableEngines, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=RenderEngine, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] Keyword[synchronized] identifier[RenderEngine] identifier[getInstance] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[availableEngines] operator[SEP] { identifier[availableEngines] operator[=] Keyword[new] identifier[HashMap] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] operator[SEP] identifier[RenderEngine] operator[SEP] identifier[availableEngines] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] }
public static Method[] getAllMethods(Class<?> clazz) { Method[] allMethods = allClassMethodsCache.get(clazz); if (allMethods == null) { // Allows a race between concurrent threads coming for clazz's methods at the same time, // but the race seems to be harmless. allMethods = doGetAllMethods(clazz); allClassMethodsCache.put(clazz, allMethods); } return allMethods; }
class class_name[name] begin[{] method[getAllMethods, return_type[type[Method]], modifier[public static], parameter[clazz]] begin[{] local_variable[type[Method], allMethods] if[binary_operation[member[.allMethods], ==, literal[null]]] begin[{] assign[member[.allMethods], call[.doGetAllMethods, parameter[member[.clazz]]]] call[allClassMethodsCache.put, parameter[member[.clazz], member[.allMethods]]] else begin[{] None end[}] return[member[.allMethods]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Method] operator[SEP] operator[SEP] identifier[getAllMethods] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[Method] operator[SEP] operator[SEP] identifier[allMethods] operator[=] identifier[allClassMethodsCache] operator[SEP] identifier[get] operator[SEP] identifier[clazz] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[allMethods] operator[==] Other[null] operator[SEP] { identifier[allMethods] operator[=] identifier[doGetAllMethods] operator[SEP] identifier[clazz] operator[SEP] operator[SEP] identifier[allClassMethodsCache] operator[SEP] identifier[put] operator[SEP] identifier[clazz] , identifier[allMethods] operator[SEP] operator[SEP] } Keyword[return] identifier[allMethods] operator[SEP] }
private JButton getSelectButton() { if (selectButton == null) { selectButton = new JButton(); selectButton.setText(Constant.messages.getString("siteselect.button.select")); selectButton.setEnabled(false); // Enabled when a node is selected selectButton.addActionListener(new java.awt.event.ActionListener() { @Override public void actionPerformed(java.awt.event.ActionEvent e) { if (treeSite.getLastSelectedPathComponent() != null) { nodeSelected(); } else if (treeContext.getLastSelectedPathComponent() != null) { contextSelected(); } } }); } return selectButton; }
class class_name[name] begin[{] method[getSelectButton, return_type[type[JButton]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.selectButton], ==, literal[null]]] begin[{] assign[member[.selectButton], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JButton, sub_type=None))] call[selectButton.setText, parameter[call[Constant.messages.getString, parameter[literal["siteselect.button.select"]]]]] call[selectButton.setEnabled, parameter[literal[false]]] call[selectButton.addActionListener, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLastSelectedPathComponent, postfix_operators=[], prefix_operators=[], qualifier=treeSite, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLastSelectedPathComponent, postfix_operators=[], prefix_operators=[], qualifier=treeContext, selectors=[], type_arguments=None), 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=[], member=contextSelected, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=nodeSelected, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]))], documentation=None, modifiers={'public'}, name=actionPerformed, parameters=[FormalParameter(annotations=[], modifiers=set(), name=e, type=ReferenceType(arguments=None, dimensions=[], name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=awt, sub_type=ReferenceType(arguments=None, dimensions=None, name=event, sub_type=ReferenceType(arguments=None, dimensions=None, name=ActionEvent, 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=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=awt, sub_type=ReferenceType(arguments=None, dimensions=None, name=event, sub_type=ReferenceType(arguments=None, dimensions=None, name=ActionListener, sub_type=None)))))]] else begin[{] None end[}] return[member[.selectButton]] end[}] END[}]
Keyword[private] identifier[JButton] identifier[getSelectButton] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[selectButton] operator[==] Other[null] operator[SEP] { identifier[selectButton] operator[=] Keyword[new] identifier[JButton] operator[SEP] operator[SEP] operator[SEP] identifier[selectButton] operator[SEP] identifier[setText] operator[SEP] identifier[Constant] operator[SEP] identifier[messages] operator[SEP] identifier[getString] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[selectButton] operator[SEP] identifier[setEnabled] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[selectButton] operator[SEP] identifier[addActionListener] operator[SEP] Keyword[new] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionListener] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[actionPerformed] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionEvent] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[treeSite] operator[SEP] identifier[getLastSelectedPathComponent] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[nodeSelected] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[treeContext] operator[SEP] identifier[getLastSelectedPathComponent] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[contextSelected] operator[SEP] operator[SEP] operator[SEP] } } } operator[SEP] operator[SEP] } Keyword[return] identifier[selectButton] operator[SEP] }
public double get2DHV(List<? extends Solution<?>> solutionSet) { double hv = 0.0; if (solutionSet.size() > 0) { hv = Math.abs((solutionSet.get(0).getObjective(0) - referencePoint.getValue(0)) * (solutionSet.get(0).getObjective(1) - referencePoint.getValue(1))); for (int i = 1; i < solutionSet.size(); i++) { double tmp ; tmp = Math.abs((solutionSet.get(i).getObjective(0) - referencePoint.getValue(0)) * (solutionSet.get(i).getObjective(1) - solutionSet.get(i - 1).getObjective(1))); hv += tmp; } } return hv; }
class class_name[name] begin[{] method[get2DHV, return_type[type[double]], modifier[public], parameter[solutionSet]] begin[{] local_variable[type[double], hv] if[binary_operation[call[solutionSet.size, parameter[]], >, literal[0]]] begin[{] assign[member[.hv], call[Math.abs, parameter[binary_operation[binary_operation[call[solutionSet.get, parameter[literal[0]]], -, call[referencePoint.getValue, parameter[literal[0]]]], *, binary_operation[call[solutionSet.get, parameter[literal[0]]], -, call[referencePoint.getValue, parameter[literal[1]]]]]]]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=tmp)], modifiers=set(), type=BasicType(dimensions=[], name=double)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=solutionSet, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=getObjective, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=referencePoint, selectors=[], type_arguments=None), operator=-), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=solutionSet, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=getObjective, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=get, postfix_operators=[], prefix_operators=[], qualifier=solutionSet, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=getObjective, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=-), operator=*)], member=abs, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=hv, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), 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=solutionSet, selectors=[], type_arguments=None), 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) else begin[{] None end[}] return[member[.hv]] end[}] END[}]
Keyword[public] Keyword[double] identifier[get2DHV] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Solution] operator[<] operator[?] operator[>] operator[>] identifier[solutionSet] operator[SEP] { Keyword[double] identifier[hv] operator[=] literal[Float] operator[SEP] Keyword[if] operator[SEP] identifier[solutionSet] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[hv] operator[=] identifier[Math] operator[SEP] identifier[abs] operator[SEP] operator[SEP] identifier[solutionSet] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getObjective] operator[SEP] Other[0] operator[SEP] operator[-] identifier[referencePoint] operator[SEP] identifier[getValue] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[*] operator[SEP] identifier[solutionSet] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getObjective] operator[SEP] Other[1] operator[SEP] operator[-] identifier[referencePoint] operator[SEP] identifier[getValue] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] identifier[i] operator[<] identifier[solutionSet] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[double] identifier[tmp] operator[SEP] identifier[tmp] operator[=] identifier[Math] operator[SEP] identifier[abs] operator[SEP] operator[SEP] identifier[solutionSet] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getObjective] operator[SEP] Other[0] operator[SEP] operator[-] identifier[referencePoint] operator[SEP] identifier[getValue] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[*] operator[SEP] identifier[solutionSet] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getObjective] operator[SEP] Other[1] operator[SEP] operator[-] identifier[solutionSet] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[-] Other[1] operator[SEP] operator[SEP] identifier[getObjective] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[hv] operator[+=] identifier[tmp] operator[SEP] } } Keyword[return] identifier[hv] operator[SEP] }
public static <K, V> ScanIterator<V> sscan(RedisSetCommands<K, V> commands, K key) { return sscan(commands, key, Optional.empty()); }
class class_name[name] begin[{] method[sscan, return_type[type[ScanIterator]], modifier[public static], parameter[commands, key]] begin[{] return[call[.sscan, parameter[member[.commands], member[.key], call[Optional.empty, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[ScanIterator] operator[<] identifier[V] operator[>] identifier[sscan] operator[SEP] identifier[RedisSetCommands] operator[<] identifier[K] , identifier[V] operator[>] identifier[commands] , identifier[K] identifier[key] operator[SEP] { Keyword[return] identifier[sscan] operator[SEP] identifier[commands] , identifier[key] , identifier[Optional] operator[SEP] identifier[empty] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public void formatDate(int year, int month, int day, boolean extended, Appendable buffer) { try { // year String yearString = String.valueOf(year); buffer.append(yearString); if (extended) { buffer.append('-'); } // month String monthString = String.valueOf(month); if (monthString.length() < 2) { buffer.append('0'); } buffer.append(monthString); if (extended) { buffer.append('-'); } // day String dayString = String.valueOf(day); if (dayString.length() < 2) { buffer.append('0'); } buffer.append(dayString); } catch (IOException e) { throw new IllegalStateException(e); } }
class class_name[name] begin[{] method[formatDate, return_type[void], modifier[public], parameter[year, month, day, extended, buffer]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=year, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None), name=yearString)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=yearString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), IfStatement(condition=MemberReference(member=extended, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=month, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None), name=monthString)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=monthString, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='0')], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=monthString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), IfStatement(condition=MemberReference(member=extended, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=day, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None), name=dayString)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=dayString, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='0')], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=dayString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[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=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[formatDate] operator[SEP] Keyword[int] identifier[year] , Keyword[int] identifier[month] , Keyword[int] identifier[day] , Keyword[boolean] identifier[extended] , identifier[Appendable] identifier[buffer] operator[SEP] { Keyword[try] { identifier[String] identifier[yearString] operator[=] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[year] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[yearString] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[extended] operator[SEP] { identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[String] identifier[monthString] operator[=] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[month] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[monthString] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[<] Other[2] operator[SEP] { identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[monthString] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[extended] operator[SEP] { identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[String] identifier[dayString] operator[=] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[day] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[dayString] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[<] Other[2] operator[SEP] { identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[dayString] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
private void maybeAddGoogScopeUsage(NodeTraversal t, Node n, Node parent) { checkState(NodeUtil.isNameDeclaration(n)); if (n.hasOneChild() && parent == googScopeBlock) { Node rhs = n.getFirstFirstChild(); if (rhs != null && rhs.isQualifiedName()) { Node root = NodeUtil.getRootOfQualifiedName(rhs); if (root.isName()) { Var var = t.getScope().getVar(root.getString()); if (var == null || (var.isGlobal() && !var.isExtern())) { usages.put(rhs.getQualifiedName(), rhs); } } } } }
class class_name[name] begin[{] method[maybeAddGoogScopeUsage, return_type[void], modifier[private], parameter[t, n, parent]] begin[{] call[.checkState, parameter[call[NodeUtil.isNameDeclaration, parameter[member[.n]]]]] if[binary_operation[call[n.hasOneChild, parameter[]], &&, binary_operation[member[.parent], ==, member[.googScopeBlock]]]] begin[{] local_variable[type[Node], rhs] if[binary_operation[binary_operation[member[.rhs], !=, literal[null]], &&, call[rhs.isQualifiedName, parameter[]]]] begin[{] local_variable[type[Node], root] if[call[root.isName, parameter[]]] begin[{] local_variable[type[Var], var] if[binary_operation[binary_operation[member[.var], ==, literal[null]], ||, binary_operation[call[var.isGlobal, parameter[]], &&, call[var.isExtern, parameter[]]]]] begin[{] call[usages.put, parameter[call[rhs.getQualifiedName, parameter[]], member[.rhs]]] else begin[{] None end[}] else begin[{] None end[}] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[maybeAddGoogScopeUsage] operator[SEP] identifier[NodeTraversal] identifier[t] , identifier[Node] identifier[n] , identifier[Node] identifier[parent] operator[SEP] { identifier[checkState] operator[SEP] identifier[NodeUtil] operator[SEP] identifier[isNameDeclaration] operator[SEP] identifier[n] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[n] operator[SEP] identifier[hasOneChild] operator[SEP] operator[SEP] operator[&&] identifier[parent] operator[==] identifier[googScopeBlock] operator[SEP] { identifier[Node] identifier[rhs] operator[=] identifier[n] operator[SEP] identifier[getFirstFirstChild] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rhs] operator[!=] Other[null] operator[&&] identifier[rhs] operator[SEP] identifier[isQualifiedName] operator[SEP] operator[SEP] operator[SEP] { identifier[Node] identifier[root] operator[=] identifier[NodeUtil] operator[SEP] identifier[getRootOfQualifiedName] operator[SEP] identifier[rhs] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[root] operator[SEP] identifier[isName] operator[SEP] operator[SEP] operator[SEP] { identifier[Var] identifier[var] operator[=] identifier[t] operator[SEP] identifier[getScope] operator[SEP] operator[SEP] operator[SEP] identifier[getVar] operator[SEP] identifier[root] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[var] operator[==] Other[null] operator[||] operator[SEP] identifier[var] operator[SEP] identifier[isGlobal] operator[SEP] operator[SEP] operator[&&] operator[!] identifier[var] operator[SEP] identifier[isExtern] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[usages] operator[SEP] identifier[put] operator[SEP] identifier[rhs] operator[SEP] identifier[getQualifiedName] operator[SEP] operator[SEP] , identifier[rhs] operator[SEP] operator[SEP] } } } } }
public static CPOptionCategory fetchByG_K(long groupId, String key, boolean retrieveFromCache) { return getPersistence().fetchByG_K(groupId, key, retrieveFromCache); }
class class_name[name] begin[{] method[fetchByG_K, return_type[type[CPOptionCategory]], modifier[public static], parameter[groupId, key, retrieveFromCache]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPOptionCategory] identifier[fetchByG_K] operator[SEP] Keyword[long] identifier[groupId] , identifier[String] identifier[key] , Keyword[boolean] identifier[retrieveFromCache] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] operator[SEP] identifier[fetchByG_K] operator[SEP] identifier[groupId] , identifier[key] , identifier[retrieveFromCache] operator[SEP] operator[SEP] }
public <T extends MvpPresenter> void add(String tag, T instance) { mPresenters.put(tag, instance); }
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[tag, instance]] begin[{] call[mPresenters.put, parameter[member[.tag], member[.instance]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[MvpPresenter] operator[>] Keyword[void] identifier[add] operator[SEP] identifier[String] identifier[tag] , identifier[T] identifier[instance] operator[SEP] { identifier[mPresenters] operator[SEP] identifier[put] operator[SEP] identifier[tag] , identifier[instance] operator[SEP] operator[SEP] }
private static int[] ensureSize(int[] tab, int length) { if (tab.length < length) { tab = null; tab = new int[length]; } return tab; }
class class_name[name] begin[{] method[ensureSize, return_type[type[int]], modifier[private static], parameter[tab, length]] begin[{] if[binary_operation[member[tab.length], <, member[.length]]] begin[{] assign[member[.tab], literal[null]] assign[member[.tab], ArrayCreator(dimensions=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] else begin[{] None end[}] return[member[.tab]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[ensureSize] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[tab] , Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[tab] operator[SEP] identifier[length] operator[<] identifier[length] operator[SEP] { identifier[tab] operator[=] Other[null] operator[SEP] identifier[tab] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[length] operator[SEP] operator[SEP] } Keyword[return] identifier[tab] operator[SEP] }
void add(MutableBigInteger addend) { int x = intLen; int y = addend.intLen; int resultLen = (intLen > addend.intLen ? intLen : addend.intLen); int[] result = (value.length < resultLen ? new int[resultLen] : value); int rstart = result.length-1; long sum; long carry = 0; // Add common parts of both numbers while(x > 0 && y > 0) { x--; y--; sum = (value[x+offset] & LONG_MASK) + (addend.value[y+addend.offset] & LONG_MASK) + carry; result[rstart--] = (int)sum; carry = sum >>> 32; } // Add remainder of the longer number while(x > 0) { x--; if (carry == 0 && result == value && rstart == (x + offset)) return; sum = (value[x+offset] & LONG_MASK) + carry; result[rstart--] = (int)sum; carry = sum >>> 32; } while(y > 0) { y--; sum = (addend.value[y+addend.offset] & LONG_MASK) + carry; result[rstart--] = (int)sum; carry = sum >>> 32; } if (carry > 0) { // Result must grow in length resultLen++; if (result.length < resultLen) { int temp[] = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. System.arraycopy(result, 0, temp, 1, result.length); temp[0] = 1; result = temp; } else { result[rstart--] = 1; } } value = result; intLen = resultLen; offset = result.length - resultLen; }
class class_name[name] begin[{] method[add, return_type[void], modifier[default], parameter[addend]] begin[{] local_variable[type[int], x] local_variable[type[int], y] local_variable[type[int], resultLen] local_variable[type[int], result] local_variable[type[int], rstart] local_variable[type[long], sum] local_variable[type[long], carry] while[binary_operation[binary_operation[member[.x], >, literal[0]], &&, binary_operation[member[.y], >, literal[0]]]] begin[{] member[.x] member[.y] assign[member[.sum], binary_operation[binary_operation[binary_operation[member[.value], &, member[.LONG_MASK]], +, binary_operation[member[addend.value], &, member[.LONG_MASK]]], +, member[.carry]]] assign[member[.result], Cast(expression=MemberReference(member=sum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=int))] assign[member[.carry], binary_operation[member[.sum], >>>, literal[32]]] end[}] while[binary_operation[member[.x], >, literal[0]]] begin[{] member[.x] if[binary_operation[binary_operation[binary_operation[member[.carry], ==, literal[0]], &&, binary_operation[member[.result], ==, member[.value]]], &&, binary_operation[member[.rstart], ==, binary_operation[member[.x], +, member[.offset]]]]] begin[{] return[None] else begin[{] None end[}] assign[member[.sum], binary_operation[binary_operation[member[.value], &, member[.LONG_MASK]], +, member[.carry]]] assign[member[.result], Cast(expression=MemberReference(member=sum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=int))] assign[member[.carry], binary_operation[member[.sum], >>>, literal[32]]] end[}] while[binary_operation[member[.y], >, literal[0]]] begin[{] member[.y] assign[member[.sum], binary_operation[binary_operation[member[addend.value], &, member[.LONG_MASK]], +, member[.carry]]] assign[member[.result], Cast(expression=MemberReference(member=sum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=int))] assign[member[.carry], binary_operation[member[.sum], >>>, literal[32]]] end[}] if[binary_operation[member[.carry], >, literal[0]]] begin[{] member[.resultLen] if[binary_operation[member[result.length], <, member[.resultLen]]] begin[{] local_variable[type[int], temp] call[System.arraycopy, parameter[member[.result], literal[0], member[.temp], literal[1], member[result.length]]] assign[member[.temp], literal[1]] assign[member[.result], member[.temp]] else begin[{] assign[member[.result], literal[1]] end[}] else begin[{] None end[}] assign[member[.value], member[.result]] assign[member[.intLen], member[.resultLen]] assign[member[.offset], binary_operation[member[result.length], -, member[.resultLen]]] end[}] END[}]
Keyword[void] identifier[add] operator[SEP] identifier[MutableBigInteger] identifier[addend] operator[SEP] { Keyword[int] identifier[x] operator[=] identifier[intLen] operator[SEP] Keyword[int] identifier[y] operator[=] identifier[addend] operator[SEP] identifier[intLen] operator[SEP] Keyword[int] identifier[resultLen] operator[=] operator[SEP] identifier[intLen] operator[>] identifier[addend] operator[SEP] identifier[intLen] operator[?] identifier[intLen] operator[:] identifier[addend] operator[SEP] identifier[intLen] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[result] operator[=] operator[SEP] identifier[value] operator[SEP] identifier[length] operator[<] identifier[resultLen] operator[?] Keyword[new] Keyword[int] operator[SEP] identifier[resultLen] operator[SEP] operator[:] identifier[value] operator[SEP] operator[SEP] Keyword[int] identifier[rstart] operator[=] identifier[result] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] Keyword[long] identifier[sum] operator[SEP] Keyword[long] identifier[carry] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] identifier[x] operator[>] Other[0] operator[&&] identifier[y] operator[>] Other[0] operator[SEP] { identifier[x] operator[--] operator[SEP] identifier[y] operator[--] operator[SEP] identifier[sum] operator[=] operator[SEP] identifier[value] operator[SEP] identifier[x] operator[+] identifier[offset] operator[SEP] operator[&] identifier[LONG_MASK] operator[SEP] operator[+] operator[SEP] identifier[addend] operator[SEP] identifier[value] operator[SEP] identifier[y] operator[+] identifier[addend] operator[SEP] identifier[offset] operator[SEP] operator[&] identifier[LONG_MASK] operator[SEP] operator[+] identifier[carry] operator[SEP] identifier[result] operator[SEP] identifier[rstart] operator[--] operator[SEP] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[sum] operator[SEP] identifier[carry] operator[=] identifier[sum] operator[>] operator[>] operator[>] Other[32] operator[SEP] } Keyword[while] operator[SEP] identifier[x] operator[>] Other[0] operator[SEP] { identifier[x] operator[--] operator[SEP] Keyword[if] operator[SEP] identifier[carry] operator[==] Other[0] operator[&&] identifier[result] operator[==] identifier[value] operator[&&] identifier[rstart] operator[==] operator[SEP] identifier[x] operator[+] identifier[offset] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[sum] operator[=] operator[SEP] identifier[value] operator[SEP] identifier[x] operator[+] identifier[offset] operator[SEP] operator[&] identifier[LONG_MASK] operator[SEP] operator[+] identifier[carry] operator[SEP] identifier[result] operator[SEP] identifier[rstart] operator[--] operator[SEP] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[sum] operator[SEP] identifier[carry] operator[=] identifier[sum] operator[>] operator[>] operator[>] Other[32] operator[SEP] } Keyword[while] operator[SEP] identifier[y] operator[>] Other[0] operator[SEP] { identifier[y] operator[--] operator[SEP] identifier[sum] operator[=] operator[SEP] identifier[addend] operator[SEP] identifier[value] operator[SEP] identifier[y] operator[+] identifier[addend] operator[SEP] identifier[offset] operator[SEP] operator[&] identifier[LONG_MASK] operator[SEP] operator[+] identifier[carry] operator[SEP] identifier[result] operator[SEP] identifier[rstart] operator[--] operator[SEP] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[sum] operator[SEP] identifier[carry] operator[=] identifier[sum] operator[>] operator[>] operator[>] Other[32] operator[SEP] } Keyword[if] operator[SEP] identifier[carry] operator[>] Other[0] operator[SEP] { identifier[resultLen] operator[++] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[SEP] identifier[length] operator[<] identifier[resultLen] operator[SEP] { Keyword[int] identifier[temp] operator[SEP] operator[SEP] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[resultLen] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[result] , Other[0] , identifier[temp] , Other[1] , identifier[result] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[temp] operator[SEP] Other[0] operator[SEP] operator[=] Other[1] operator[SEP] identifier[result] operator[=] identifier[temp] operator[SEP] } Keyword[else] { identifier[result] operator[SEP] identifier[rstart] operator[--] operator[SEP] operator[=] Other[1] operator[SEP] } } identifier[value] operator[=] identifier[result] operator[SEP] identifier[intLen] operator[=] identifier[resultLen] operator[SEP] identifier[offset] operator[=] identifier[result] operator[SEP] identifier[length] operator[-] identifier[resultLen] operator[SEP] }
public void marshall(ServiceSummary serviceSummary, ProtocolMarshaller protocolMarshaller) { if (serviceSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(serviceSummary.getId(), ID_BINDING); protocolMarshaller.marshall(serviceSummary.getArn(), ARN_BINDING); protocolMarshaller.marshall(serviceSummary.getName(), NAME_BINDING); protocolMarshaller.marshall(serviceSummary.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(serviceSummary.getInstanceCount(), INSTANCECOUNT_BINDING); protocolMarshaller.marshall(serviceSummary.getDnsConfig(), DNSCONFIG_BINDING); protocolMarshaller.marshall(serviceSummary.getHealthCheckConfig(), HEALTHCHECKCONFIG_BINDING); protocolMarshaller.marshall(serviceSummary.getHealthCheckCustomConfig(), HEALTHCHECKCUSTOMCONFIG_BINDING); protocolMarshaller.marshall(serviceSummary.getCreateDate(), CREATEDATE_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[serviceSummary, protocolMarshaller]] begin[{] if[binary_operation[member[.serviceSummary], ==, 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=serviceSummary, 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=serviceSummary, 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=serviceSummary, 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=getDescription, postfix_operators=[], prefix_operators=[], qualifier=serviceSummary, selectors=[], type_arguments=None), MemberReference(member=DESCRIPTION_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=getInstanceCount, postfix_operators=[], prefix_operators=[], qualifier=serviceSummary, selectors=[], type_arguments=None), MemberReference(member=INSTANCECOUNT_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=getDnsConfig, postfix_operators=[], prefix_operators=[], qualifier=serviceSummary, selectors=[], type_arguments=None), MemberReference(member=DNSCONFIG_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=getHealthCheckConfig, postfix_operators=[], prefix_operators=[], qualifier=serviceSummary, selectors=[], type_arguments=None), MemberReference(member=HEALTHCHECKCONFIG_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=getHealthCheckCustomConfig, postfix_operators=[], prefix_operators=[], qualifier=serviceSummary, selectors=[], type_arguments=None), MemberReference(member=HEALTHCHECKCUSTOMCONFIG_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=getCreateDate, postfix_operators=[], prefix_operators=[], qualifier=serviceSummary, selectors=[], type_arguments=None), MemberReference(member=CREATEDATE_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[ServiceSummary] identifier[serviceSummary] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[serviceSummary] 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[serviceSummary] operator[SEP] identifier[getId] operator[SEP] operator[SEP] , identifier[ID_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getArn] operator[SEP] operator[SEP] , identifier[ARN_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[NAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getDescription] operator[SEP] operator[SEP] , identifier[DESCRIPTION_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getInstanceCount] operator[SEP] operator[SEP] , identifier[INSTANCECOUNT_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getDnsConfig] operator[SEP] operator[SEP] , identifier[DNSCONFIG_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getHealthCheckConfig] operator[SEP] operator[SEP] , identifier[HEALTHCHECKCONFIG_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getHealthCheckCustomConfig] operator[SEP] operator[SEP] , identifier[HEALTHCHECKCUSTOMCONFIG_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[serviceSummary] operator[SEP] identifier[getCreateDate] operator[SEP] operator[SEP] , identifier[CREATEDATE_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] } }
@Nullable public SoyType getType(String typeName) { SoyType result = BUILTIN_TYPES.get(typeName); if (result != null) { return result; } synchronized (lock) { result = protoTypeCache.get(typeName); if (result == null) { GenericDescriptor descriptor = descriptors.get(typeName); if (descriptor == null) { return null; } if (descriptor instanceof EnumDescriptor) { result = new SoyProtoEnumType((EnumDescriptor) descriptor); } else { result = new SoyProtoType(this, (Descriptor) descriptor, extensions.get(typeName)); } protoTypeCache.put(typeName, result); } } return result; }
class class_name[name] begin[{] method[getType, return_type[type[SoyType]], modifier[public], parameter[typeName]] begin[{] local_variable[type[SoyType], result] if[binary_operation[member[.result], !=, literal[null]]] begin[{] return[member[.result]] else begin[{] None end[}] SYNCHRONIZED[member[.lock]] BEGIN[{] assign[member[.result], call[protoTypeCache.get, parameter[member[.typeName]]]] if[binary_operation[member[.result], ==, literal[null]]] begin[{] local_variable[type[GenericDescriptor], descriptor] if[binary_operation[member[.descriptor], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[member[.descriptor], instanceof, type[EnumDescriptor]]] begin[{] assign[member[.result], ClassCreator(arguments=[Cast(expression=MemberReference(member=descriptor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=EnumDescriptor, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SoyProtoEnumType, sub_type=None))] else begin[{] assign[member[.result], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Cast(expression=MemberReference(member=descriptor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Descriptor, sub_type=None)), MethodInvocation(arguments=[MemberReference(member=typeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=extensions, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SoyProtoType, sub_type=None))] end[}] call[protoTypeCache.put, parameter[member[.typeName], member[.result]]] else begin[{] None end[}] END[}] return[member[.result]] end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] identifier[SoyType] identifier[getType] operator[SEP] identifier[String] identifier[typeName] operator[SEP] { identifier[SoyType] identifier[result] operator[=] identifier[BUILTIN_TYPES] operator[SEP] identifier[get] operator[SEP] identifier[typeName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[result] operator[SEP] } Keyword[synchronized] operator[SEP] identifier[lock] operator[SEP] { identifier[result] operator[=] identifier[protoTypeCache] operator[SEP] identifier[get] operator[SEP] identifier[typeName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[==] Other[null] operator[SEP] { identifier[GenericDescriptor] identifier[descriptor] operator[=] identifier[descriptors] operator[SEP] identifier[get] operator[SEP] identifier[typeName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[descriptor] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SEP] identifier[descriptor] Keyword[instanceof] identifier[EnumDescriptor] operator[SEP] { identifier[result] operator[=] Keyword[new] identifier[SoyProtoEnumType] operator[SEP] operator[SEP] identifier[EnumDescriptor] operator[SEP] identifier[descriptor] operator[SEP] operator[SEP] } Keyword[else] { identifier[result] operator[=] Keyword[new] identifier[SoyProtoType] operator[SEP] Keyword[this] , operator[SEP] identifier[Descriptor] operator[SEP] identifier[descriptor] , identifier[extensions] operator[SEP] identifier[get] operator[SEP] identifier[typeName] operator[SEP] operator[SEP] operator[SEP] } identifier[protoTypeCache] operator[SEP] identifier[put] operator[SEP] identifier[typeName] , identifier[result] operator[SEP] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] }
public static void register(MetricsRegistry metricsRegistry) { checkNotNull(metricsRegistry, "metricsRegistry"); File file = new File(System.getProperty("user.home")); metricsRegistry.register(file, "file.partition[user.home].freeSpace", MANDATORY, File::getFreeSpace); metricsRegistry.register(file, "file.partition[user.home].totalSpace", MANDATORY, File::getTotalSpace); metricsRegistry.register(file, "file.partition[user.home].usableSpace", MANDATORY, File::getUsableSpace); }
class class_name[name] begin[{] method[register, return_type[void], modifier[public static], parameter[metricsRegistry]] begin[{] call[.checkNotNull, parameter[member[.metricsRegistry], literal["metricsRegistry"]]] local_variable[type[File], file] call[metricsRegistry.register, parameter[member[.file], literal["file.partition[user.home].freeSpace"], member[.MANDATORY], MethodReference(expression=MemberReference(member=File, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReference(member=getFreeSpace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type_arguments=[])]] call[metricsRegistry.register, parameter[member[.file], literal["file.partition[user.home].totalSpace"], member[.MANDATORY], MethodReference(expression=MemberReference(member=File, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReference(member=getTotalSpace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type_arguments=[])]] call[metricsRegistry.register, parameter[member[.file], literal["file.partition[user.home].usableSpace"], member[.MANDATORY], MethodReference(expression=MemberReference(member=File, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReference(member=getUsableSpace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type_arguments=[])]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[register] operator[SEP] identifier[MetricsRegistry] identifier[metricsRegistry] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[metricsRegistry] , literal[String] operator[SEP] operator[SEP] identifier[File] identifier[file] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[metricsRegistry] operator[SEP] identifier[register] operator[SEP] identifier[file] , literal[String] , identifier[MANDATORY] , identifier[File] operator[::] identifier[getFreeSpace] operator[SEP] operator[SEP] identifier[metricsRegistry] operator[SEP] identifier[register] operator[SEP] identifier[file] , literal[String] , identifier[MANDATORY] , identifier[File] operator[::] identifier[getTotalSpace] operator[SEP] operator[SEP] identifier[metricsRegistry] operator[SEP] identifier[register] operator[SEP] identifier[file] , literal[String] , identifier[MANDATORY] , identifier[File] operator[::] identifier[getUsableSpace] operator[SEP] operator[SEP] }
int getLocalityLevel(TaskInProgress tip, TaskTrackerStatus tts) { Node tracker = jobtracker.getNode(tts.getHost()); int level = this.maxLevel; // find the right level across split locations for (String local : maps[tip.getIdWithinJob()].getSplitLocations()) { Node datanode = jobtracker.getNode(local); int newLevel = this.maxLevel; if (tracker != null && datanode != null) { newLevel = getMatchingLevelForNodes(tracker, datanode); } if (newLevel < level) { level = newLevel; // an optimization if (level == 0) { break; } } } return level; }
class class_name[name] begin[{] method[getLocalityLevel, return_type[type[int]], modifier[default], parameter[tip, tts]] begin[{] local_variable[type[Node], tracker] local_variable[type[int], level] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=local, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getNode, postfix_operators=[], prefix_operators=[], qualifier=jobtracker, selectors=[], type_arguments=None), name=datanode)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Node, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=maxLevel, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), name=newLevel)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=tracker, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MemberReference(member=datanode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=newLevel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=tracker, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=datanode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getMatchingLevelForNodes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=newLevel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=level, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=level, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=newLevel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=level, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[BreakStatement(goto=None, label=None)]))]))]), control=EnhancedForControl(iterable=MemberReference(member=maps, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MethodInvocation(arguments=[], member=getIdWithinJob, postfix_operators=[], prefix_operators=[], qualifier=tip, selectors=[], type_arguments=None)), MethodInvocation(arguments=[], member=getSplitLocations, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=local)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) return[member[.level]] end[}] END[}]
Keyword[int] identifier[getLocalityLevel] operator[SEP] identifier[TaskInProgress] identifier[tip] , identifier[TaskTrackerStatus] identifier[tts] operator[SEP] { identifier[Node] identifier[tracker] operator[=] identifier[jobtracker] operator[SEP] identifier[getNode] operator[SEP] identifier[tts] operator[SEP] identifier[getHost] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[level] operator[=] Keyword[this] operator[SEP] identifier[maxLevel] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[local] operator[:] identifier[maps] operator[SEP] identifier[tip] operator[SEP] identifier[getIdWithinJob] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getSplitLocations] operator[SEP] operator[SEP] operator[SEP] { identifier[Node] identifier[datanode] operator[=] identifier[jobtracker] operator[SEP] identifier[getNode] operator[SEP] identifier[local] operator[SEP] operator[SEP] Keyword[int] identifier[newLevel] operator[=] Keyword[this] operator[SEP] identifier[maxLevel] operator[SEP] Keyword[if] operator[SEP] identifier[tracker] operator[!=] Other[null] operator[&&] identifier[datanode] operator[!=] Other[null] operator[SEP] { identifier[newLevel] operator[=] identifier[getMatchingLevelForNodes] operator[SEP] identifier[tracker] , identifier[datanode] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[newLevel] operator[<] identifier[level] operator[SEP] { identifier[level] operator[=] identifier[newLevel] operator[SEP] Keyword[if] operator[SEP] identifier[level] operator[==] Other[0] operator[SEP] { Keyword[break] operator[SEP] } } } Keyword[return] identifier[level] operator[SEP] }
public boolean executeWithoutAccessCheck() throws EFapsException { boolean ret = false; if (isMarked4execute()) { if (getInstanceList().size() > 0) { ret = executeOneCompleteStmt(createSQLStatement(), this.allSelects); } if (ret) { for (final OneSelect onesel : this.allSelects) { if (onesel.getFromSelect() != null) { onesel.getFromSelect().execute(onesel); } } } } return ret; }
class class_name[name] begin[{] method[executeWithoutAccessCheck, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], ret] if[call[.isMarked4execute, parameter[]]] begin[{] if[binary_operation[call[.getInstanceList, parameter[]], >, literal[0]]] begin[{] assign[member[.ret], call[.executeOneCompleteStmt, parameter[call[.createSQLStatement, parameter[]], THIS[member[None.allSelects]]]]] else begin[{] None end[}] if[member[.ret]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getFromSelect, postfix_operators=[], prefix_operators=[], qualifier=onesel, selectors=[], type_arguments=None), 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=[], member=getFromSelect, postfix_operators=[], prefix_operators=[], qualifier=onesel, selectors=[MethodInvocation(arguments=[MemberReference(member=onesel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=execute, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=allSelects, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=onesel)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=OneSelect, sub_type=None))), label=None) else begin[{] None end[}] else begin[{] None end[}] return[member[.ret]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[executeWithoutAccessCheck] operator[SEP] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[boolean] identifier[ret] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[isMarked4execute] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getInstanceList] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[ret] operator[=] identifier[executeOneCompleteStmt] operator[SEP] identifier[createSQLStatement] operator[SEP] operator[SEP] , Keyword[this] operator[SEP] identifier[allSelects] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[ret] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[OneSelect] identifier[onesel] operator[:] Keyword[this] operator[SEP] identifier[allSelects] operator[SEP] { Keyword[if] operator[SEP] identifier[onesel] operator[SEP] identifier[getFromSelect] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[onesel] operator[SEP] identifier[getFromSelect] operator[SEP] operator[SEP] operator[SEP] identifier[execute] operator[SEP] identifier[onesel] operator[SEP] operator[SEP] } } } } Keyword[return] identifier[ret] operator[SEP] }
protected static List<String> buildDefaultTrustedDirs() { List<String> tDirs = new ArrayList<String>(); tDirs.add(DEFAULT_VOMS_DIR); return tDirs; }
class class_name[name] begin[{] method[buildDefaultTrustedDirs, return_type[type[List]], modifier[static protected], parameter[]] begin[{] local_variable[type[List], tDirs] call[tDirs.add, parameter[member[.DEFAULT_VOMS_DIR]]] return[member[.tDirs]] end[}] END[}]
Keyword[protected] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[buildDefaultTrustedDirs] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[tDirs] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[tDirs] operator[SEP] identifier[add] operator[SEP] identifier[DEFAULT_VOMS_DIR] operator[SEP] operator[SEP] Keyword[return] identifier[tDirs] operator[SEP] }
@Override public DisplayPolicy getDisplayPolicy() { if (_asset.getWlpInformation() == null) { return null; } return _asset.getWlpInformation().getDisplayPolicy(); }
class class_name[name] begin[{] method[getDisplayPolicy, return_type[type[DisplayPolicy]], modifier[public], parameter[]] begin[{] if[binary_operation[call[_asset.getWlpInformation, parameter[]], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[_asset.getWlpInformation, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[DisplayPolicy] identifier[getDisplayPolicy] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_asset] operator[SEP] identifier[getWlpInformation] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[_asset] operator[SEP] identifier[getWlpInformation] operator[SEP] operator[SEP] operator[SEP] identifier[getDisplayPolicy] operator[SEP] operator[SEP] operator[SEP] }
public Observable<VirtualNetworkRuleInner> updateAsync(String resourceGroupName, String accountName, String virtualNetworkRuleName, UpdateVirtualNetworkRuleParameters parameters) { return updateWithServiceResponseAsync(resourceGroupName, accountName, virtualNetworkRuleName, parameters).map(new Func1<ServiceResponse<VirtualNetworkRuleInner>, VirtualNetworkRuleInner>() { @Override public VirtualNetworkRuleInner call(ServiceResponse<VirtualNetworkRuleInner> response) { return response.body(); } }); }
class class_name[name] begin[{] method[updateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, accountName, virtualNetworkRuleName, parameters]] begin[{] return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.virtualNetworkRuleName], member[.parameters]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[VirtualNetworkRuleInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[virtualNetworkRuleName] , identifier[UpdateVirtualNetworkRuleParameters] identifier[parameters] operator[SEP] { Keyword[return] identifier[updateWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[accountName] , identifier[virtualNetworkRuleName] , identifier[parameters] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[VirtualNetworkRuleInner] operator[>] , identifier[VirtualNetworkRuleInner] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[VirtualNetworkRuleInner] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[VirtualNetworkRuleInner] operator[>] identifier[response] operator[SEP] { Keyword[return] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException { ManagedConnection result = null; Iterator it = connectionSet.iterator(); while (result == null && it.hasNext()) { ManagedConnection mc = (ManagedConnection)it.next(); if (mc instanceof HelloWorldManagedConnection) { HelloWorldManagedConnection hwmc = (HelloWorldManagedConnection)mc; result = hwmc; } } return result; }
class class_name[name] begin[{] method[matchManagedConnections, return_type[type[ManagedConnection]], modifier[public], parameter[connectionSet, subject, cxRequestInfo]] begin[{] local_variable[type[ManagedConnection], result] local_variable[type[Iterator], it] while[binary_operation[binary_operation[member[.result], ==, literal[null]], &&, call[it.hasNext, parameter[]]]] begin[{] local_variable[type[ManagedConnection], mc] if[binary_operation[member[.mc], instanceof, type[HelloWorldManagedConnection]]] begin[{] local_variable[type[HelloWorldManagedConnection], hwmc] assign[member[.result], member[.hwmc]] else begin[{] None end[}] end[}] return[member[.result]] end[}] END[}]
Keyword[public] identifier[ManagedConnection] identifier[matchManagedConnections] operator[SEP] identifier[Set] identifier[connectionSet] , identifier[Subject] identifier[subject] , identifier[ConnectionRequestInfo] identifier[cxRequestInfo] operator[SEP] Keyword[throws] identifier[ResourceException] { identifier[ManagedConnection] identifier[result] operator[=] Other[null] operator[SEP] identifier[Iterator] identifier[it] operator[=] identifier[connectionSet] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[result] operator[==] Other[null] operator[&&] identifier[it] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { identifier[ManagedConnection] identifier[mc] operator[=] operator[SEP] identifier[ManagedConnection] operator[SEP] identifier[it] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mc] Keyword[instanceof] identifier[HelloWorldManagedConnection] operator[SEP] { identifier[HelloWorldManagedConnection] identifier[hwmc] operator[=] operator[SEP] identifier[HelloWorldManagedConnection] operator[SEP] identifier[mc] operator[SEP] identifier[result] operator[=] identifier[hwmc] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] }
public ServerState createServerStateFromString(EDataType eDataType, String initialValue) { ServerState result = ServerState.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
class class_name[name] begin[{] method[createServerStateFromString, return_type[type[ServerState]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[ServerState], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The value '"), operandr=MemberReference(member=initialValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="' is not a valid enumerator of '"), operator=+), operandr=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=eDataType, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'"), operator=+)], 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[}] return[member[.result]] end[}] END[}]
Keyword[public] identifier[ServerState] identifier[createServerStateFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[ServerState] identifier[result] operator[=] identifier[ServerState] operator[SEP] identifier[get] operator[SEP] identifier[initialValue] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[initialValue] operator[+] literal[String] operator[+] identifier[eDataType] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[SEP] }
public com.google.api.ads.admanager.axis.v201811.ComputedStatus getStatus() { return status; }
class class_name[name] begin[{] method[getStatus, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.status]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201811] operator[SEP] identifier[ComputedStatus] identifier[getStatus] operator[SEP] operator[SEP] { Keyword[return] identifier[status] operator[SEP] }
private static void copyClassAnnotations(final ClassNode cNode, final ClassNode helper) { List<AnnotationNode> annotations = cNode.getAnnotations(); for (AnnotationNode annotation : annotations) { if (!annotation.getClassNode().equals(Traits.TRAIT_CLASSNODE)) { helper.addAnnotation(annotation); } } }
class class_name[name] begin[{] method[copyClassAnnotations, return_type[void], modifier[private static], parameter[cNode, helper]] begin[{] local_variable[type[List], annotations] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getClassNode, postfix_operators=[], prefix_operators=['!'], qualifier=annotation, selectors=[MethodInvocation(arguments=[MemberReference(member=TRAIT_CLASSNODE, postfix_operators=[], prefix_operators=[], qualifier=Traits, selectors=[])], member=equals, 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=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=annotation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addAnnotation, postfix_operators=[], prefix_operators=[], qualifier=helper, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=annotations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=annotation)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=AnnotationNode, sub_type=None))), label=None) end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[copyClassAnnotations] operator[SEP] Keyword[final] identifier[ClassNode] identifier[cNode] , Keyword[final] identifier[ClassNode] identifier[helper] operator[SEP] { identifier[List] operator[<] identifier[AnnotationNode] operator[>] identifier[annotations] operator[=] identifier[cNode] operator[SEP] identifier[getAnnotations] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[AnnotationNode] identifier[annotation] operator[:] identifier[annotations] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[annotation] operator[SEP] identifier[getClassNode] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[Traits] operator[SEP] identifier[TRAIT_CLASSNODE] operator[SEP] operator[SEP] { identifier[helper] operator[SEP] identifier[addAnnotation] operator[SEP] identifier[annotation] operator[SEP] operator[SEP] } } }
public UriTemplateBuilder fragment(VarSpec... var) throws UriTemplateBuilderException { if (hasExpressionWithOperator(Operator.FRAGMENT)) { throw new UriTemplateBuilderException("The template already has a fragment expression and this would not result in a valid URI"); } addComponent(Expression.fragment(var).build()); return this; }
class class_name[name] begin[{] method[fragment, return_type[type[UriTemplateBuilder]], modifier[public], parameter[var]] begin[{] if[call[.hasExpressionWithOperator, parameter[member[Operator.FRAGMENT]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The template already has a fragment expression and this would not result in a valid URI")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=UriTemplateBuilderException, sub_type=None)), label=None) else begin[{] None end[}] call[.addComponent, parameter[call[Expression.fragment, parameter[member[.var]]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[UriTemplateBuilder] identifier[fragment] operator[SEP] identifier[VarSpec] operator[...] identifier[var] operator[SEP] Keyword[throws] identifier[UriTemplateBuilderException] { Keyword[if] operator[SEP] identifier[hasExpressionWithOperator] operator[SEP] identifier[Operator] operator[SEP] identifier[FRAGMENT] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[UriTemplateBuilderException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[addComponent] operator[SEP] identifier[Expression] operator[SEP] identifier[fragment] operator[SEP] identifier[var] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public URL registerInMemoryResource(final InMemoryMappingFile file) { URL url = DoPrivHelper.newInMemoryMappingFileURL(file); _resourceMap.put(file.getName(), url); return url; }
class class_name[name] begin[{] method[registerInMemoryResource, return_type[type[URL]], modifier[public], parameter[file]] begin[{] local_variable[type[URL], url] call[_resourceMap.put, parameter[call[file.getName, parameter[]], member[.url]]] return[member[.url]] end[}] END[}]
Keyword[public] identifier[URL] identifier[registerInMemoryResource] operator[SEP] Keyword[final] identifier[InMemoryMappingFile] identifier[file] operator[SEP] { identifier[URL] identifier[url] operator[=] identifier[DoPrivHelper] operator[SEP] identifier[newInMemoryMappingFileURL] operator[SEP] identifier[file] operator[SEP] operator[SEP] identifier[_resourceMap] operator[SEP] identifier[put] operator[SEP] identifier[file] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[url] operator[SEP] operator[SEP] Keyword[return] identifier[url] operator[SEP] }
public BatchResponse[] send(Batch batchRequest) throws ApiException { if(batchRequest.getRequests().size() > this.BATCH_MAX_SIZE) { return sendMultipartBatchRequest(batchRequest); } String responseStr = sendRequest(batchRequest); try { Object[] responses = this.mapper.readValue(responseStr, Object[].class); BatchResponse[] result = new BatchResponse[responses.length]; for(int i=0;i<responses.length;i++) { Map<String, Object> response = (Map<String, Object>) responses[i]; int status = (Integer) response.get("code"); Object parsedResponse = response.get("json"); Request request = batchRequest.getRequests().get(i); if(status!=200 && status!=201) { Map<String, Object> exceptionMap = (Map<String,Object>) parsedResponse; parsedResponse = new ResponseException(request, status, (String)exceptionMap.get("error")); } else { if ((request instanceof ItemBasedRecommendation) || (request instanceof UserBasedRecommendation)) { boolean returnProperties = false; if (request instanceof ItemBasedRecommendation) returnProperties = ((ItemBasedRecommendation) request).getReturnProperties(); if (request instanceof UserBasedRecommendation) returnProperties = ((UserBasedRecommendation) request).getReturnProperties(); if(returnProperties) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Recommendation[] ar = new Recommendation[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Recommendation((String)array.get(j).get("itemId"), array.get(j)); parsedResponse = ar; } else { ArrayList<String> array = (ArrayList<String>) parsedResponse; Recommendation[] ar = new Recommendation[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Recommendation(array.get(j)); parsedResponse = ar; } } else if (request instanceof ListItems) { boolean returnProperties = ((ListItems) request).getReturnProperties(); if(returnProperties) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Item[] ar = new Item[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Item((String)array.get(j).get("itemId"), array.get(j)); parsedResponse = ar; } else { ArrayList<String> array = (ArrayList<String>) parsedResponse; Item[] ar = new Item[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Item(array.get(j)); parsedResponse = ar; } } else if (request instanceof ListUsers) { boolean returnProperties = ((ListUsers) request).getReturnProperties(); if(returnProperties) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; User[] ar = new User[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new User((String)array.get(j).get("userId"), array.get(j)); parsedResponse = ar; } else { ArrayList<String> array = (ArrayList<String>) parsedResponse; User[] ar = new User[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new User(array.get(j)); parsedResponse = ar; } } else if ((request instanceof RecommendItemsToUser) || (request instanceof RecommendUsersToUser) || (request instanceof RecommendItemsToItem) || (request instanceof RecommendUsersToItem)) { parsedResponse = mapper.convertValue(parsedResponse, RecommendationResponse.class); } /* Start of the generated code */ else if (request instanceof GetItemPropertyInfo) { Map<String, Object> obj = (Map<String, Object>) parsedResponse; parsedResponse = new PropertyInfo(obj); } else if (request instanceof ListItemProperties) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; PropertyInfo[] ar = new PropertyInfo[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new PropertyInfo(array.get(j)); parsedResponse = ar; } else if (request instanceof ListSeries) { ArrayList<String> array = (ArrayList<String>) parsedResponse; Series[] ar = new Series[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Series(array.get(j)); parsedResponse = ar; } else if (request instanceof ListSeriesItems) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; SeriesItem[] ar = new SeriesItem[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new SeriesItem(array.get(j)); parsedResponse = ar; } else if (request instanceof ListGroups) { ArrayList<String> array = (ArrayList<String>) parsedResponse; Group[] ar = new Group[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Group(array.get(j)); parsedResponse = ar; } else if (request instanceof ListGroupItems) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; GroupItem[] ar = new GroupItem[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new GroupItem(array.get(j)); parsedResponse = ar; } else if (request instanceof GetUserPropertyInfo) { Map<String, Object> obj = (Map<String, Object>) parsedResponse; parsedResponse = new PropertyInfo(obj); } else if (request instanceof ListUserProperties) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; PropertyInfo[] ar = new PropertyInfo[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new PropertyInfo(array.get(j)); parsedResponse = ar; } else if (request instanceof ListItemDetailViews) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; DetailView[] ar = new DetailView[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new DetailView(array.get(j)); parsedResponse = ar; } else if (request instanceof ListUserDetailViews) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; DetailView[] ar = new DetailView[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new DetailView(array.get(j)); parsedResponse = ar; } else if (request instanceof ListItemPurchases) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Purchase[] ar = new Purchase[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Purchase(array.get(j)); parsedResponse = ar; } else if (request instanceof ListUserPurchases) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Purchase[] ar = new Purchase[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Purchase(array.get(j)); parsedResponse = ar; } else if (request instanceof ListItemRatings) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Rating[] ar = new Rating[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Rating(array.get(j)); parsedResponse = ar; } else if (request instanceof ListUserRatings) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Rating[] ar = new Rating[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Rating(array.get(j)); parsedResponse = ar; } else if (request instanceof ListItemCartAdditions) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; CartAddition[] ar = new CartAddition[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new CartAddition(array.get(j)); parsedResponse = ar; } else if (request instanceof ListUserCartAdditions) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; CartAddition[] ar = new CartAddition[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new CartAddition(array.get(j)); parsedResponse = ar; } else if (request instanceof ListItemBookmarks) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Bookmark[] ar = new Bookmark[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Bookmark(array.get(j)); parsedResponse = ar; } else if (request instanceof ListUserBookmarks) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; Bookmark[] ar = new Bookmark[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new Bookmark(array.get(j)); parsedResponse = ar; } else if (request instanceof ListItemViewPortions) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; ViewPortion[] ar = new ViewPortion[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new ViewPortion(array.get(j)); parsedResponse = ar; } else if (request instanceof ListUserViewPortions) { ArrayList<Map<String, Object>> array = (ArrayList<Map<String, Object>>) parsedResponse; ViewPortion[] ar = new ViewPortion[array.size()]; for(int j=0;j<ar.length;j++) ar[j] = new ViewPortion(array.get(j)); parsedResponse = ar; } /* End of the generated code */ } result[i] = new BatchResponse(status, parsedResponse); } return result; } catch (IOException e) { e.printStackTrace(); } return null; }
class class_name[name] begin[{] method[send, return_type[type[BatchResponse]], modifier[public], parameter[batchRequest]] begin[{] if[binary_operation[call[batchRequest.getRequests, parameter[]], >, THIS[member[None.BATCH_MAX_SIZE]]]] begin[{] return[call[.sendMultipartBatchRequest, parameter[member[.batchRequest]]]] else begin[{] None end[}] local_variable[type[String], responseStr] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=mapper, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=responseStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Object, sub_type=None))], member=readValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), name=responses)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Object, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=responses, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BatchResponse, sub_type=None)), name=result)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=BatchResponse, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=responses, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), name=response)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="code")], member=get, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Integer, sub_type=None)), name=status)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="json")], member=get, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), name=parsedResponse)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getRequests, postfix_operators=[], prefix_operators=[], qualifier=batchRequest, selectors=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=request)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Request, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=status, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=200), operator=!=), operandr=BinaryOperation(operandl=MemberReference(member=status, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=201), operator=!=), operator=&&), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ItemBasedRecommendation, sub_type=None), operator=instanceof), operandr=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=UserBasedRecommendation, sub_type=None), operator=instanceof), operator=||), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItems, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUsers, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=RecommendItemsToUser, sub_type=None), operator=instanceof), operandr=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=RecommendUsersToUser, sub_type=None), operator=instanceof), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=RecommendItemsToItem, sub_type=None), operator=instanceof), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=RecommendUsersToItem, sub_type=None), operator=instanceof), operator=||), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=GetItemPropertyInfo, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemProperties, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListSeries, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListSeriesItems, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListGroups, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListGroupItems, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=GetUserPropertyInfo, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserProperties, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemDetailViews, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserDetailViews, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemPurchases, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserPurchases, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemRatings, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserRatings, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemCartAdditions, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserCartAdditions, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemBookmarks, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserBookmarks, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListItemViewPortions, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ListUserViewPortions, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ViewPortion, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=ViewPortion, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ViewPortion, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ViewPortion, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=ViewPortion, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ViewPortion, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Bookmark, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Bookmark, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Bookmark, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Bookmark, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Bookmark, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Bookmark, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CartAddition, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=CartAddition, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CartAddition, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CartAddition, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=CartAddition, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CartAddition, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Rating, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Rating, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Rating, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Rating, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Rating, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Rating, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Purchase, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Purchase, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Purchase, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Purchase, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Purchase, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Purchase, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DetailView, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=DetailView, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DetailView, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DetailView, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=DetailView, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DetailView, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PropertyInfo, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=PropertyInfo, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PropertyInfo, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), name=obj)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=obj, 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=PropertyInfo, sub_type=None))), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GroupItem, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=GroupItem, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GroupItem, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Group, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Group, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Group, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SeriesItem, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=SeriesItem, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SeriesItem, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Series, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Series, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Series, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PropertyInfo, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=PropertyInfo, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PropertyInfo, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), name=obj)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=obj, 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=PropertyInfo, sub_type=None))), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RecommendationResponse, sub_type=None))], member=convertValue, postfix_operators=[], prefix_operators=[], qualifier=mapper, selectors=[], type_arguments=None)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=ListUsers, sub_type=None)), name=returnProperties)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), IfStatement(condition=MemberReference(member=returnProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=User, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=User, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=User, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=User, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=User, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[Cast(expression=MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="userId")], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=User, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=ListItems, sub_type=None)), name=returnProperties)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), IfStatement(condition=MemberReference(member=returnProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Item, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Item, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Item, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Item, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Item, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[Cast(expression=MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="itemId")], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Item, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), name=returnProperties)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=ItemBasedRecommendation, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=returnProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=ItemBasedRecommendation, sub_type=None))), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=UserBasedRecommendation, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=returnProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=UserBasedRecommendation, sub_type=None))), label=None)), IfStatement(condition=MemberReference(member=returnProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Recommendation, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Recommendation, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Recommendation, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None))], dimensions=[], name=ArrayList, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Recommendation, sub_type=None)), name=ar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Recommendation, sub_type=None)), ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[Cast(expression=MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="itemId")], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Recommendation, sub_type=None))), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ar, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=ar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))]))]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), name=exceptionMap)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=Map, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=parsedResponse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=status, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="error")], member=get, postfix_operators=[], prefix_operators=[], qualifier=exceptionMap, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ResponseException, sub_type=None))), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[MemberReference(member=status, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=parsedResponse, 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=BatchResponse, sub_type=None))), 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=responses, 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), ReturnStatement(expression=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=printStackTrace, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) return[literal[null]] end[}] END[}]
Keyword[public] identifier[BatchResponse] operator[SEP] operator[SEP] identifier[send] operator[SEP] identifier[Batch] identifier[batchRequest] operator[SEP] Keyword[throws] identifier[ApiException] { Keyword[if] operator[SEP] identifier[batchRequest] operator[SEP] identifier[getRequests] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Keyword[this] operator[SEP] identifier[BATCH_MAX_SIZE] operator[SEP] { Keyword[return] identifier[sendMultipartBatchRequest] operator[SEP] identifier[batchRequest] operator[SEP] operator[SEP] } identifier[String] identifier[responseStr] operator[=] identifier[sendRequest] operator[SEP] identifier[batchRequest] operator[SEP] operator[SEP] Keyword[try] { identifier[Object] operator[SEP] operator[SEP] identifier[responses] operator[=] Keyword[this] operator[SEP] identifier[mapper] operator[SEP] identifier[readValue] operator[SEP] identifier[responseStr] , identifier[Object] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[BatchResponse] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] identifier[BatchResponse] operator[SEP] identifier[responses] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[responses] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[response] operator[=] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] identifier[responses] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[int] identifier[status] operator[=] operator[SEP] identifier[Integer] operator[SEP] identifier[response] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Object] identifier[parsedResponse] operator[=] identifier[response] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Request] identifier[request] operator[=] identifier[batchRequest] operator[SEP] identifier[getRequests] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[status] operator[!=] Other[200] operator[&&] identifier[status] operator[!=] Other[201] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[exceptionMap] operator[=] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[parsedResponse] operator[=] Keyword[new] identifier[ResponseException] operator[SEP] identifier[request] , identifier[status] , operator[SEP] identifier[String] operator[SEP] identifier[exceptionMap] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] operator[SEP] identifier[request] Keyword[instanceof] identifier[ItemBasedRecommendation] operator[SEP] operator[||] operator[SEP] identifier[request] Keyword[instanceof] identifier[UserBasedRecommendation] operator[SEP] operator[SEP] { Keyword[boolean] identifier[returnProperties] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ItemBasedRecommendation] operator[SEP] identifier[returnProperties] operator[=] operator[SEP] operator[SEP] identifier[ItemBasedRecommendation] operator[SEP] identifier[request] operator[SEP] operator[SEP] identifier[getReturnProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[UserBasedRecommendation] operator[SEP] identifier[returnProperties] operator[=] operator[SEP] operator[SEP] identifier[UserBasedRecommendation] operator[SEP] identifier[request] operator[SEP] operator[SEP] identifier[getReturnProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[returnProperties] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Recommendation] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Recommendation] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Recommendation] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] , identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Recommendation] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Recommendation] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Recommendation] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItems] operator[SEP] { Keyword[boolean] identifier[returnProperties] operator[=] operator[SEP] operator[SEP] identifier[ListItems] operator[SEP] identifier[request] operator[SEP] operator[SEP] identifier[getReturnProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[returnProperties] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Item] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Item] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Item] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] , identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Item] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Item] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Item] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUsers] operator[SEP] { Keyword[boolean] identifier[returnProperties] operator[=] operator[SEP] operator[SEP] identifier[ListUsers] operator[SEP] identifier[request] operator[SEP] operator[SEP] identifier[getReturnProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[returnProperties] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[User] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[User] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[User] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] , identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[User] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[User] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[User] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] operator[SEP] identifier[request] Keyword[instanceof] identifier[RecommendItemsToUser] operator[SEP] operator[||] operator[SEP] identifier[request] Keyword[instanceof] identifier[RecommendUsersToUser] operator[SEP] operator[||] operator[SEP] identifier[request] Keyword[instanceof] identifier[RecommendItemsToItem] operator[SEP] operator[||] operator[SEP] identifier[request] Keyword[instanceof] identifier[RecommendUsersToItem] operator[SEP] operator[SEP] { identifier[parsedResponse] operator[=] identifier[mapper] operator[SEP] identifier[convertValue] operator[SEP] identifier[parsedResponse] , identifier[RecommendationResponse] operator[SEP] Keyword[class] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[GetItemPropertyInfo] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[obj] operator[=] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[parsedResponse] operator[=] Keyword[new] identifier[PropertyInfo] operator[SEP] identifier[obj] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemProperties] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[PropertyInfo] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[PropertyInfo] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[PropertyInfo] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListSeries] operator[SEP] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Series] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Series] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Series] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListSeriesItems] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[SeriesItem] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[SeriesItem] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[SeriesItem] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListGroups] operator[SEP] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Group] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Group] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Group] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListGroupItems] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[GroupItem] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[GroupItem] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[GroupItem] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[GetUserPropertyInfo] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[obj] operator[=] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[parsedResponse] operator[=] Keyword[new] identifier[PropertyInfo] operator[SEP] identifier[obj] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserProperties] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[PropertyInfo] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[PropertyInfo] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[PropertyInfo] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemDetailViews] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[DetailView] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[DetailView] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[DetailView] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserDetailViews] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[DetailView] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[DetailView] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[DetailView] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemPurchases] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Purchase] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Purchase] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Purchase] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserPurchases] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Purchase] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Purchase] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Purchase] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemRatings] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Rating] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Rating] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Rating] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserRatings] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Rating] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Rating] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Rating] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemCartAdditions] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[CartAddition] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[CartAddition] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[CartAddition] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserCartAdditions] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[CartAddition] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[CartAddition] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[CartAddition] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemBookmarks] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Bookmark] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Bookmark] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Bookmark] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserBookmarks] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[Bookmark] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[Bookmark] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[Bookmark] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListItemViewPortions] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[ViewPortion] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[ViewPortion] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[ViewPortion] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[ListUserViewPortions] operator[SEP] { identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[array] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] operator[SEP] identifier[parsedResponse] operator[SEP] identifier[ViewPortion] operator[SEP] operator[SEP] identifier[ar] operator[=] Keyword[new] identifier[ViewPortion] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[ar] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] identifier[ar] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] identifier[ViewPortion] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] identifier[parsedResponse] operator[=] identifier[ar] operator[SEP] } } identifier[result] operator[SEP] identifier[i] operator[SEP] operator[=] Keyword[new] identifier[BatchResponse] operator[SEP] identifier[status] , identifier[parsedResponse] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[e] operator[SEP] identifier[printStackTrace] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
public String encrypt(final String value) { try { return encrypt(value.getBytes("UTF8")); } catch (Exception ex) { throw OException.wrapException(new OSecurityException("OSymmetricKey.encrypt() Exception: " + ex.getMessage()), ex); } }
class class_name[name] begin[{] method[encrypt, return_type[type[String]], modifier[public], parameter[value]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="UTF8")], member=getBytes, postfix_operators=[], prefix_operators=[], qualifier=value, selectors=[], type_arguments=None)], member=encrypt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="OSymmetricKey.encrypt() Exception: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ex, selectors=[], type_arguments=None), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=OSecurityException, sub_type=None)), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=wrapException, postfix_operators=[], prefix_operators=[], qualifier=OException, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] identifier[String] identifier[encrypt] operator[SEP] Keyword[final] identifier[String] identifier[value] operator[SEP] { Keyword[try] { Keyword[return] identifier[encrypt] operator[SEP] identifier[value] operator[SEP] identifier[getBytes] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ex] operator[SEP] { Keyword[throw] identifier[OException] operator[SEP] identifier[wrapException] operator[SEP] Keyword[new] identifier[OSecurityException] operator[SEP] literal[String] operator[+] identifier[ex] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] , identifier[ex] operator[SEP] operator[SEP] } }
public long getUniqueValue() throws PersistenceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getUniqueValue"); long retval; synchronized (_globalUniqueLock) { if (_globalUnique == _globalUniqueThreshold) { _globalUniqueManager.scheduleUpdate(this); } else if (_globalUnique == _globalUniqueLimit) { _globalUniqueManager.updateEntry(this); nextRangeMaximumAvailable(); } retval = _globalUnique++; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getUniqueValue", "return="+retval); return retval; }
class class_name[name] begin[{] method[getUniqueValue, return_type[type[long]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["getUniqueValue"]]] else begin[{] None end[}] local_variable[type[long], retval] SYNCHRONIZED[member[._globalUniqueLock]] BEGIN[{] if[binary_operation[member[._globalUnique], ==, member[._globalUniqueThreshold]]] begin[{] call[_globalUniqueManager.scheduleUpdate, parameter[THIS[]]] else begin[{] if[binary_operation[member[._globalUnique], ==, member[._globalUniqueLimit]]] begin[{] call[_globalUniqueManager.updateEntry, parameter[THIS[]]] call[.nextRangeMaximumAvailable, parameter[]] else begin[{] None end[}] end[}] assign[member[.retval], member[._globalUnique]] END[}] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.exit, parameter[member[.tc], literal["getUniqueValue"], binary_operation[literal["return="], +, member[.retval]]]] else begin[{] None end[}] return[member[.retval]] end[}] END[}]
Keyword[public] Keyword[long] identifier[getUniqueValue] operator[SEP] operator[SEP] Keyword[throws] identifier[PersistenceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] operator[SEP] operator[SEP] Keyword[long] identifier[retval] operator[SEP] Keyword[synchronized] operator[SEP] identifier[_globalUniqueLock] operator[SEP] { Keyword[if] operator[SEP] identifier[_globalUnique] operator[==] identifier[_globalUniqueThreshold] operator[SEP] { identifier[_globalUniqueManager] operator[SEP] identifier[scheduleUpdate] operator[SEP] Keyword[this] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[_globalUnique] operator[==] identifier[_globalUniqueLimit] operator[SEP] { identifier[_globalUniqueManager] operator[SEP] identifier[updateEntry] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[nextRangeMaximumAvailable] operator[SEP] operator[SEP] operator[SEP] } identifier[retval] operator[=] identifier[_globalUnique] operator[++] operator[SEP] } Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[exit] operator[SEP] identifier[tc] , literal[String] , literal[String] operator[+] identifier[retval] operator[SEP] operator[SEP] Keyword[return] identifier[retval] operator[SEP] }
protected <T extends InvocationMarshaller<?>> T addProvider ( InvocationProvider prov, Class<T> mclass) { T marsh = _invmgr.registerProvider(prov, mclass); _marshallers.add(marsh); return marsh; }
class class_name[name] begin[{] method[addProvider, return_type[type[T]], modifier[protected], parameter[prov, mclass]] begin[{] local_variable[type[T], marsh] call[_marshallers.add, parameter[member[.marsh]]] return[member[.marsh]] end[}] END[}]
Keyword[protected] operator[<] identifier[T] Keyword[extends] identifier[InvocationMarshaller] operator[<] operator[?] operator[>] operator[>] identifier[T] identifier[addProvider] operator[SEP] identifier[InvocationProvider] identifier[prov] , identifier[Class] operator[<] identifier[T] operator[>] identifier[mclass] operator[SEP] { identifier[T] identifier[marsh] operator[=] identifier[_invmgr] operator[SEP] identifier[registerProvider] operator[SEP] identifier[prov] , identifier[mclass] operator[SEP] operator[SEP] identifier[_marshallers] operator[SEP] identifier[add] operator[SEP] identifier[marsh] operator[SEP] operator[SEP] Keyword[return] identifier[marsh] operator[SEP] }
public EClass getIfcForceMeasure() { if (ifcForceMeasureEClass == null) { ifcForceMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(679); } return ifcForceMeasureEClass; }
class class_name[name] begin[{] method[getIfcForceMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcForceMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcForceMeasureEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(member=eNS_URI, postfix_operators=[], prefix_operators=[], qualifier=Ifc2x3tc1Package, selectors=[])], member=getEPackage, postfix_operators=[], prefix_operators=[], qualifier=EPackage.Registry.INSTANCE, selectors=[MethodInvocation(arguments=[], member=getEClassifiers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=679)], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=EClass, sub_type=None))] else begin[{] None end[}] return[member[.ifcForceMeasureEClass]] end[}] END[}]
Keyword[public] identifier[EClass] identifier[getIfcForceMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcForceMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcForceMeasureEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[getEPackage] operator[SEP] identifier[Ifc2x3tc1Package] operator[SEP] identifier[eNS_URI] operator[SEP] operator[SEP] identifier[getEClassifiers] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[679] operator[SEP] operator[SEP] } Keyword[return] identifier[ifcForceMeasureEClass] operator[SEP] }
public final Object evaluate(final String expression, final Map<String, Object> context) { JexlContext jexlContext = new MapContext(context); try { JexlEngine jexl = JEXL_LOCAL.get(); Map<String, Expression> expMap = JEXL_MAP_LOCAL.get(); Expression jexlExpression = expMap.get(expression); if (jexlExpression == null) { jexlExpression = jexl.createExpression(expression); expMap.put(expression, jexlExpression); } return jexlExpression.evaluate(jexlContext); } catch (Exception e) { throw new EvaluationException(e); } }
class class_name[name] begin[{] method[evaluate, return_type[type[Object]], modifier[final public], parameter[expression, context]] begin[{] local_variable[type[JexlContext], jexlContext] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=JEXL_LOCAL, selectors=[], type_arguments=None), name=jexl)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=JexlEngine, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=JEXL_MAP_LOCAL, selectors=[], type_arguments=None), name=expMap)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Expression, sub_type=None))], dimensions=[], name=Map, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=expression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=expMap, selectors=[], type_arguments=None), name=jexlExpression)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Expression, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=jexlExpression, 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=jexlExpression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=expression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createExpression, postfix_operators=[], prefix_operators=[], qualifier=jexl, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=expression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=jexlExpression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=expMap, selectors=[], type_arguments=None), label=None)])), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=jexlContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=evaluate, postfix_operators=[], prefix_operators=[], qualifier=jexlExpression, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[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=EvaluationException, 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[final] identifier[Object] identifier[evaluate] operator[SEP] Keyword[final] identifier[String] identifier[expression] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[context] operator[SEP] { identifier[JexlContext] identifier[jexlContext] operator[=] Keyword[new] identifier[MapContext] operator[SEP] identifier[context] operator[SEP] operator[SEP] Keyword[try] { identifier[JexlEngine] identifier[jexl] operator[=] identifier[JEXL_LOCAL] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Expression] operator[>] identifier[expMap] operator[=] identifier[JEXL_MAP_LOCAL] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[Expression] identifier[jexlExpression] operator[=] identifier[expMap] operator[SEP] identifier[get] operator[SEP] identifier[expression] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[jexlExpression] operator[==] Other[null] operator[SEP] { identifier[jexlExpression] operator[=] identifier[jexl] operator[SEP] identifier[createExpression] operator[SEP] identifier[expression] operator[SEP] operator[SEP] identifier[expMap] operator[SEP] identifier[put] operator[SEP] identifier[expression] , identifier[jexlExpression] operator[SEP] operator[SEP] } Keyword[return] identifier[jexlExpression] operator[SEP] identifier[evaluate] operator[SEP] identifier[jexlContext] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[EvaluationException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
public static void and2by2(BitmapContainer container, SparseBitmap bitmap1, SparseBitmap bitmap2) { int it1 = 0; int it2 = 0; int p1 = bitmap1.buffer.get(it1), p2 = bitmap2.buffer.get(it2); int buff; while (true) { if (p1 < p2) { if (it1 + 2 >= bitmap1.buffer.size()) break; it1 += 2; p1 += bitmap1.buffer.get(it1) + 1; } else if (p1 > p2) { if (it2 + 2 >= bitmap2.buffer.size()) break; it2 += 2; p2 += bitmap2.buffer.get(it2) + 1; } else { if ((buff = bitmap1.buffer.get(it1 + 1) & bitmap2.buffer.get(it2 + 1)) != 0) { container.add(buff, p1); } if ((it1 + 2 >= bitmap1.buffer.size()) || (it2 + 2 >= bitmap2.buffer.size())) break; it1 += 2; it2 += 2; p1 += bitmap1.buffer.get(it1) + 1; p2 += bitmap2.buffer.get(it2) + 1; } } }
class class_name[name] begin[{] method[and2by2, return_type[void], modifier[public static], parameter[container, bitmap1, bitmap2]] begin[{] local_variable[type[int], it1] local_variable[type[int], it2] local_variable[type[int], p1] local_variable[type[int], buff] while[literal[true]] begin[{] if[binary_operation[member[.p1], <, member[.p2]]] begin[{] if[binary_operation[binary_operation[member[.it1], +, literal[2]], >=, call[bitmap1.buffer.size, parameter[]]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] assign[member[.it1], literal[2]] assign[member[.p1], binary_operation[call[bitmap1.buffer.get, parameter[member[.it1]]], +, literal[1]]] else begin[{] if[binary_operation[member[.p1], >, member[.p2]]] begin[{] if[binary_operation[binary_operation[member[.it2], +, literal[2]], >=, call[bitmap2.buffer.size, parameter[]]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] assign[member[.it2], literal[2]] assign[member[.p2], binary_operation[call[bitmap2.buffer.get, parameter[member[.it2]]], +, literal[1]]] else begin[{] if[binary_operation[assign[member[.buff], binary_operation[call[bitmap1.buffer.get, parameter[binary_operation[member[.it1], +, literal[1]]]], &, call[bitmap2.buffer.get, parameter[binary_operation[member[.it2], +, literal[1]]]]]], !=, literal[0]]] begin[{] call[container.add, parameter[member[.buff], member[.p1]]] else begin[{] None end[}] if[binary_operation[binary_operation[binary_operation[member[.it1], +, literal[2]], >=, call[bitmap1.buffer.size, parameter[]]], ||, binary_operation[binary_operation[member[.it2], +, literal[2]], >=, call[bitmap2.buffer.size, parameter[]]]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] assign[member[.it1], literal[2]] assign[member[.it2], literal[2]] assign[member[.p1], binary_operation[call[bitmap1.buffer.get, parameter[member[.it1]]], +, literal[1]]] assign[member[.p2], binary_operation[call[bitmap2.buffer.get, parameter[member[.it2]]], +, literal[1]]] end[}] end[}] end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[and2by2] operator[SEP] identifier[BitmapContainer] identifier[container] , identifier[SparseBitmap] identifier[bitmap1] , identifier[SparseBitmap] identifier[bitmap2] operator[SEP] { Keyword[int] identifier[it1] operator[=] Other[0] operator[SEP] Keyword[int] identifier[it2] operator[=] Other[0] operator[SEP] Keyword[int] identifier[p1] operator[=] identifier[bitmap1] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it1] operator[SEP] , identifier[p2] operator[=] identifier[bitmap2] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it2] operator[SEP] operator[SEP] Keyword[int] identifier[buff] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { Keyword[if] operator[SEP] identifier[p1] operator[<] identifier[p2] operator[SEP] { Keyword[if] operator[SEP] identifier[it1] operator[+] Other[2] operator[>=] identifier[bitmap1] operator[SEP] identifier[buffer] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] identifier[it1] operator[+=] Other[2] operator[SEP] identifier[p1] operator[+=] identifier[bitmap1] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it1] operator[SEP] operator[+] Other[1] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[p1] operator[>] identifier[p2] operator[SEP] { Keyword[if] operator[SEP] identifier[it2] operator[+] Other[2] operator[>=] identifier[bitmap2] operator[SEP] identifier[buffer] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] identifier[it2] operator[+=] Other[2] operator[SEP] identifier[p2] operator[+=] identifier[bitmap2] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it2] operator[SEP] operator[+] Other[1] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] operator[SEP] identifier[buff] operator[=] identifier[bitmap1] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it1] operator[+] Other[1] operator[SEP] operator[&] identifier[bitmap2] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it2] operator[+] Other[1] operator[SEP] operator[SEP] operator[!=] Other[0] operator[SEP] { identifier[container] operator[SEP] identifier[add] operator[SEP] identifier[buff] , identifier[p1] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[SEP] identifier[it1] operator[+] Other[2] operator[>=] identifier[bitmap1] operator[SEP] identifier[buffer] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[it2] operator[+] Other[2] operator[>=] identifier[bitmap2] operator[SEP] identifier[buffer] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] identifier[it1] operator[+=] Other[2] operator[SEP] identifier[it2] operator[+=] Other[2] operator[SEP] identifier[p1] operator[+=] identifier[bitmap1] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it1] operator[SEP] operator[+] Other[1] operator[SEP] identifier[p2] operator[+=] identifier[bitmap2] operator[SEP] identifier[buffer] operator[SEP] identifier[get] operator[SEP] identifier[it2] operator[SEP] operator[+] Other[1] operator[SEP] } } }
public static File getExistingFileOrCache(String fileLocation) { File result = getDiskCache2().getExistingFileOrCache(fileLocation); if (result == null && Grib.debugGbxIndexOnly && fileLocation.endsWith(".gbx9.ncx4")) { // might create only from gbx9 for debugging int length = fileLocation.length(); String maybeIndexAlreadyExists = fileLocation.substring(0, length-10)+".ncx4"; result = getDiskCache2().getExistingFileOrCache(maybeIndexAlreadyExists); } return result; }
class class_name[name] begin[{] method[getExistingFileOrCache, return_type[type[File]], modifier[public static], parameter[fileLocation]] begin[{] local_variable[type[File], result] if[binary_operation[binary_operation[binary_operation[member[.result], ==, literal[null]], &&, member[Grib.debugGbxIndexOnly]], &&, call[fileLocation.endsWith, parameter[literal[".gbx9.ncx4"]]]]] begin[{] local_variable[type[int], length] local_variable[type[String], maybeIndexAlreadyExists] assign[member[.result], call[.getDiskCache2, parameter[]]] else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[File] identifier[getExistingFileOrCache] operator[SEP] identifier[String] identifier[fileLocation] operator[SEP] { identifier[File] identifier[result] operator[=] identifier[getDiskCache2] operator[SEP] operator[SEP] operator[SEP] identifier[getExistingFileOrCache] operator[SEP] identifier[fileLocation] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[==] Other[null] operator[&&] identifier[Grib] operator[SEP] identifier[debugGbxIndexOnly] operator[&&] identifier[fileLocation] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[int] identifier[length] operator[=] identifier[fileLocation] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[maybeIndexAlreadyExists] operator[=] identifier[fileLocation] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[length] operator[-] Other[10] operator[SEP] operator[+] literal[String] operator[SEP] identifier[result] operator[=] identifier[getDiskCache2] operator[SEP] operator[SEP] operator[SEP] identifier[getExistingFileOrCache] operator[SEP] identifier[maybeIndexAlreadyExists] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public void setUserGroupRoleService( com.liferay.portal.kernel.service.UserGroupRoleService userGroupRoleService) { this.userGroupRoleService = userGroupRoleService; }
class class_name[name] begin[{] method[setUserGroupRoleService, return_type[void], modifier[public], parameter[userGroupRoleService]] begin[{] assign[THIS[member[None.userGroupRoleService]], member[.userGroupRoleService]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setUserGroupRoleService] operator[SEP] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[portal] operator[SEP] identifier[kernel] operator[SEP] identifier[service] operator[SEP] identifier[UserGroupRoleService] identifier[userGroupRoleService] operator[SEP] { Keyword[this] operator[SEP] identifier[userGroupRoleService] operator[=] identifier[userGroupRoleService] operator[SEP] }
public String toJSONString(final boolean compact) { final StringBuilder builder = new StringBuilder(); formatAsJSON(builder, 0, !compact); return builder.toString(); }
class class_name[name] begin[{] method[toJSONString, return_type[type[String]], modifier[public], parameter[compact]] begin[{] local_variable[type[StringBuilder], builder] call[.formatAsJSON, parameter[member[.builder], literal[0], member[.compact]]] return[call[builder.toString, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[toJSONString] operator[SEP] Keyword[final] Keyword[boolean] identifier[compact] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[formatAsJSON] operator[SEP] identifier[builder] , Other[0] , operator[!] identifier[compact] operator[SEP] operator[SEP] Keyword[return] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
private void checkForPotentialFilenameConflict() throws JournalException { File[] journalFiles = MultiFileJournalHelper .getSortedArrayOfJournalFiles(journalDirectory, filenamePrefix); if (journalFiles.length == 0) { return; } String newestFilename = journalFiles[journalFiles.length - 1].getName(); String potentialFilename = JournalHelper.createTimestampedFilename(filenamePrefix, new Date()); if (newestFilename.compareTo(potentialFilename) > 0) { throw new JournalException("The name of one or more existing files in the journal " + "directory (e.g. '" + newestFilename + "') may conflict with new Journal " + "files. Has the system clock changed?"); } }
class class_name[name] begin[{] method[checkForPotentialFilenameConflict, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[File], journalFiles] if[binary_operation[member[journalFiles.length], ==, literal[0]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[String], newestFilename] local_variable[type[String], potentialFilename] if[binary_operation[call[newestFilename.compareTo, parameter[member[.potentialFilename]]], >, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The name of one or more existing files in the journal "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="directory (e.g. '"), operator=+), operandr=MemberReference(member=newestFilename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="') may conflict with new Journal "), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="files. Has the system clock changed?"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JournalException, sub_type=None)), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[checkForPotentialFilenameConflict] operator[SEP] operator[SEP] Keyword[throws] identifier[JournalException] { identifier[File] operator[SEP] operator[SEP] identifier[journalFiles] operator[=] identifier[MultiFileJournalHelper] operator[SEP] identifier[getSortedArrayOfJournalFiles] operator[SEP] identifier[journalDirectory] , identifier[filenamePrefix] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[journalFiles] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { Keyword[return] operator[SEP] } identifier[String] identifier[newestFilename] operator[=] identifier[journalFiles] operator[SEP] identifier[journalFiles] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[potentialFilename] operator[=] identifier[JournalHelper] operator[SEP] identifier[createTimestampedFilename] operator[SEP] identifier[filenamePrefix] , Keyword[new] identifier[Date] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[newestFilename] operator[SEP] identifier[compareTo] operator[SEP] identifier[potentialFilename] operator[SEP] operator[>] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[JournalException] operator[SEP] literal[String] operator[+] literal[String] operator[+] identifier[newestFilename] operator[+] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } }
@Override public void writeImport(Definition def, Writer out) throws IOException { out.write("package " + def.getRaPackage() + ";\n\n"); out.write("import javax.naming.NamingException;\n"); out.write("import javax.naming.Reference;\n\n"); out.write("import javax.resource.ResourceException;\n"); out.write("import javax.resource.cci.Connection;\n"); out.write("import javax.resource.cci.ConnectionFactory;\n"); out.write("import javax.resource.cci.ConnectionSpec;\n"); out.write("import javax.resource.cci.RecordFactory;\n"); out.write("import javax.resource.cci.ResourceAdapterMetaData;\n"); out.write("import javax.resource.spi.ConnectionManager;\n\n"); if (def.getMcfDefs().size() != 1) out.write("import " + def.getRaPackage() + ".*;\n\n"); }
class class_name[name] begin[{] method[writeImport, return_type[void], modifier[public], parameter[def, out]] begin[{] call[out.write, parameter[binary_operation[binary_operation[literal["package "], +, call[def.getRaPackage, parameter[]]], +, literal[";\n\n"]]]] call[out.write, parameter[literal["import javax.naming.NamingException;\n"]]] call[out.write, parameter[literal["import javax.naming.Reference;\n\n"]]] call[out.write, parameter[literal["import javax.resource.ResourceException;\n"]]] call[out.write, parameter[literal["import javax.resource.cci.Connection;\n"]]] call[out.write, parameter[literal["import javax.resource.cci.ConnectionFactory;\n"]]] call[out.write, parameter[literal["import javax.resource.cci.ConnectionSpec;\n"]]] call[out.write, parameter[literal["import javax.resource.cci.RecordFactory;\n"]]] call[out.write, parameter[literal["import javax.resource.cci.ResourceAdapterMetaData;\n"]]] call[out.write, parameter[literal["import javax.resource.spi.ConnectionManager;\n\n"]]] if[binary_operation[call[def.getMcfDefs, parameter[]], !=, literal[1]]] begin[{] call[out.write, parameter[binary_operation[binary_operation[literal["import "], +, call[def.getRaPackage, parameter[]]], +, literal[".*;\n\n"]]]] else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeImport] operator[SEP] identifier[Definition] identifier[def] , identifier[Writer] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[+] identifier[def] operator[SEP] identifier[getRaPackage] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[def] operator[SEP] identifier[getMcfDefs] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] Other[1] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String] operator[+] identifier[def] operator[SEP] identifier[getRaPackage] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] }
public static UnixUserGroupInformation login(Configuration conf, boolean save ) throws LoginException { UnixUserGroupInformation ugi = readFromConf(conf, UGI_PROPERTY_NAME); if (ugi == null) { ugi = login(); LOG.debug("Unix Login: " + ugi); if (save) { saveToConf(conf, UGI_PROPERTY_NAME, ugi); } } return ugi; }
class class_name[name] begin[{] method[login, return_type[type[UnixUserGroupInformation]], modifier[public static], parameter[conf, save]] begin[{] local_variable[type[UnixUserGroupInformation], ugi] if[binary_operation[member[.ugi], ==, literal[null]]] begin[{] assign[member[.ugi], call[.login, parameter[]]] call[LOG.debug, parameter[binary_operation[literal["Unix Login: "], +, member[.ugi]]]] if[member[.save]] begin[{] call[.saveToConf, parameter[member[.conf], member[.UGI_PROPERTY_NAME], member[.ugi]]] else begin[{] None end[}] else begin[{] None end[}] return[member[.ugi]] end[}] END[}]
Keyword[public] Keyword[static] identifier[UnixUserGroupInformation] identifier[login] operator[SEP] identifier[Configuration] identifier[conf] , Keyword[boolean] identifier[save] operator[SEP] Keyword[throws] identifier[LoginException] { identifier[UnixUserGroupInformation] identifier[ugi] operator[=] identifier[readFromConf] operator[SEP] identifier[conf] , identifier[UGI_PROPERTY_NAME] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ugi] operator[==] Other[null] operator[SEP] { identifier[ugi] operator[=] identifier[login] operator[SEP] operator[SEP] operator[SEP] identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[ugi] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[save] operator[SEP] { identifier[saveToConf] operator[SEP] identifier[conf] , identifier[UGI_PROPERTY_NAME] , identifier[ugi] operator[SEP] operator[SEP] } } Keyword[return] identifier[ugi] operator[SEP] }
public static Version from(int major, int minor, int patch) { return new Version(com.github.zafarkhaja.semver.Version.forIntegers(major, minor, patch)); }
class class_name[name] begin[{] method[from, return_type[type[Version]], modifier[public static], parameter[major, minor, patch]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=major, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=minor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=patch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=forIntegers, postfix_operators=[], prefix_operators=[], qualifier=com.github.zafarkhaja.semver.Version, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Version, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[Version] identifier[from] operator[SEP] Keyword[int] identifier[major] , Keyword[int] identifier[minor] , Keyword[int] identifier[patch] operator[SEP] { Keyword[return] Keyword[new] identifier[Version] operator[SEP] identifier[com] operator[SEP] identifier[github] operator[SEP] identifier[zafarkhaja] operator[SEP] identifier[semver] operator[SEP] identifier[Version] operator[SEP] identifier[forIntegers] operator[SEP] identifier[major] , identifier[minor] , identifier[patch] operator[SEP] operator[SEP] operator[SEP] }
public void setInHeader(boolean inHeader) { super.setInHeader(inHeader); for(int i = 0; i < this.chunks.size(); i++) { ((RtfBasicElement) this.chunks.get(i)).setInHeader(inHeader); } }
class class_name[name] begin[{] method[setInHeader, return_type[void], modifier[public], parameter[inHeader]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=inHeader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setInHeader, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=chunks, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), type=ReferenceType(arguments=None, dimensions=[], name=RtfBasicElement, sub_type=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=chunks, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[], member=size, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, 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) end[}] END[}]
Keyword[public] Keyword[void] identifier[setInHeader] operator[SEP] Keyword[boolean] identifier[inHeader] operator[SEP] { Keyword[super] operator[SEP] identifier[setInHeader] operator[SEP] identifier[inHeader] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Keyword[this] operator[SEP] identifier[chunks] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { operator[SEP] operator[SEP] identifier[RtfBasicElement] operator[SEP] Keyword[this] operator[SEP] identifier[chunks] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] identifier[setInHeader] operator[SEP] identifier[inHeader] operator[SEP] operator[SEP] } }
static BsonDocument executeCommand(final ReadBinding binding, final String database, final CommandCreator commandCreator, final boolean retryReads) { return executeCommand(binding, database, commandCreator, new BsonDocumentCodec(), retryReads); }
class class_name[name] begin[{] method[executeCommand, return_type[type[BsonDocument]], modifier[static], parameter[binding, database, commandCreator, retryReads]] begin[{] return[call[.executeCommand, parameter[member[.binding], member[.database], member[.commandCreator], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BsonDocumentCodec, sub_type=None)), member[.retryReads]]]] end[}] END[}]
Keyword[static] identifier[BsonDocument] identifier[executeCommand] operator[SEP] Keyword[final] identifier[ReadBinding] identifier[binding] , Keyword[final] identifier[String] identifier[database] , Keyword[final] identifier[CommandCreator] identifier[commandCreator] , Keyword[final] Keyword[boolean] identifier[retryReads] operator[SEP] { Keyword[return] identifier[executeCommand] operator[SEP] identifier[binding] , identifier[database] , identifier[commandCreator] , Keyword[new] identifier[BsonDocumentCodec] operator[SEP] operator[SEP] , identifier[retryReads] operator[SEP] operator[SEP] }
public void connectRtcp(SocketAddress remoteAddress) { this.rtcpChannel.setRemotePeer(remoteAddress); if(logger.isDebugEnabled()) { logger.debug(this.mediaType + " RTCP channel " + this.ssrc + " has connected to remote peer " + remoteAddress.toString()); } }
class class_name[name] begin[{] method[connectRtcp, return_type[void], modifier[public], parameter[remoteAddress]] begin[{] THIS[member[None.rtcpChannel]call[None.setRemotePeer, parameter[member[.remoteAddress]]]] if[call[logger.isDebugEnabled, parameter[]]] begin[{] call[logger.debug, parameter[binary_operation[binary_operation[binary_operation[binary_operation[THIS[member[None.mediaType]], +, literal[" RTCP channel "]], +, THIS[member[None.ssrc]]], +, literal[" has connected to remote peer "]], +, call[remoteAddress.toString, parameter[]]]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[connectRtcp] operator[SEP] identifier[SocketAddress] identifier[remoteAddress] operator[SEP] { Keyword[this] operator[SEP] identifier[rtcpChannel] operator[SEP] identifier[setRemotePeer] operator[SEP] identifier[remoteAddress] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] Keyword[this] operator[SEP] identifier[mediaType] operator[+] literal[String] operator[+] Keyword[this] operator[SEP] identifier[ssrc] operator[+] literal[String] operator[+] identifier[remoteAddress] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
public static MutableRoaringBitmap add(MutableRoaringBitmap rb, final long rangeStart, final long rangeEnd) { rangeSanityCheck(rangeStart,rangeEnd); if (rangeStart >= rangeEnd) { return rb.clone(); // empty range } final int hbStart = BufferUtil.toIntUnsigned(BufferUtil.highbits(rangeStart)); final int lbStart = BufferUtil.toIntUnsigned(BufferUtil.lowbits(rangeStart)); final int hbLast = BufferUtil.toIntUnsigned(BufferUtil.highbits(rangeEnd - 1)); final int lbLast = BufferUtil.toIntUnsigned(BufferUtil.lowbits(rangeEnd - 1)); MutableRoaringBitmap answer = new MutableRoaringBitmap(); ((MutableRoaringArray) answer.highLowContainer).appendCopiesUntil(rb.highLowContainer, (short) hbStart); if (hbStart == hbLast) { final int i = rb.highLowContainer.getIndex((short) hbStart); final MappeableContainer c = i >= 0 ? rb.highLowContainer.getContainerAtIndex(i).add(lbStart, lbLast + 1) : MappeableContainer.rangeOfOnes(lbStart, lbLast + 1); ((MutableRoaringArray) answer.highLowContainer).append((short) hbStart, c); ((MutableRoaringArray) answer.highLowContainer).appendCopiesAfter(rb.highLowContainer, (short) hbLast); return answer; } int ifirst = rb.highLowContainer.getIndex((short) hbStart); int ilast = rb.highLowContainer.getIndex((short) hbLast); { final MappeableContainer c = ifirst >= 0 ? rb.highLowContainer.getContainerAtIndex(ifirst).add(lbStart, BufferUtil.maxLowBitAsInteger() + 1) : MappeableContainer.rangeOfOnes(lbStart, BufferUtil.maxLowBitAsInteger() + 1); ((MutableRoaringArray) answer.highLowContainer).append((short) hbStart, c); } for (int hb = hbStart + 1; hb < hbLast; ++hb) { MappeableContainer c = MappeableContainer.rangeOfOnes(0, BufferUtil.maxLowBitAsInteger() + 1); ((MutableRoaringArray) answer.highLowContainer).append((short) hb, c); } { final MappeableContainer c = ilast >= 0 ? rb.highLowContainer.getContainerAtIndex(ilast).add(0, lbLast + 1) : MappeableContainer.rangeOfOnes(0, lbLast + 1); ((MutableRoaringArray) answer.highLowContainer).append((short) hbLast, c); } ((MutableRoaringArray) answer.highLowContainer).appendCopiesAfter(rb.highLowContainer, (short) hbLast); return answer; }
class class_name[name] begin[{] method[add, return_type[type[MutableRoaringBitmap]], modifier[public static], parameter[rb, rangeStart, rangeEnd]] begin[{] call[.rangeSanityCheck, parameter[member[.rangeStart], member[.rangeEnd]]] if[binary_operation[member[.rangeStart], >=, member[.rangeEnd]]] begin[{] return[call[rb.clone, parameter[]]] else begin[{] None end[}] local_variable[type[int], hbStart] local_variable[type[int], lbStart] local_variable[type[int], hbLast] local_variable[type[int], lbLast] local_variable[type[MutableRoaringBitmap], answer] Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)) if[binary_operation[member[.hbStart], ==, member[.hbLast]]] begin[{] local_variable[type[int], i] local_variable[type[MappeableContainer], c] Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)) Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)) return[member[.answer]] else begin[{] None end[}] local_variable[type[int], ifirst] local_variable[type[int], ilast] local_variable[type[MappeableContainer], c] Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), BinaryOperation(operandl=MethodInvocation(arguments=[], member=maxLowBitAsInteger, postfix_operators=[], prefix_operators=[], qualifier=BufferUtil, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=rangeOfOnes, postfix_operators=[], prefix_operators=[], qualifier=MappeableContainer, selectors=[], type_arguments=None), name=c)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=MappeableContainer, sub_type=None)), StatementExpression(expression=Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=hb, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=hbLast, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=BinaryOperation(operandl=MemberReference(member=hbStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), name=hb)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=hb, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) local_variable[type[MappeableContainer], c] Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)) Cast(expression=MemberReference(member=highLowContainer, postfix_operators=[], prefix_operators=[], qualifier=answer, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=MutableRoaringArray, sub_type=None)) return[member[.answer]] end[}] END[}]
Keyword[public] Keyword[static] identifier[MutableRoaringBitmap] identifier[add] operator[SEP] identifier[MutableRoaringBitmap] identifier[rb] , Keyword[final] Keyword[long] identifier[rangeStart] , Keyword[final] Keyword[long] identifier[rangeEnd] operator[SEP] { identifier[rangeSanityCheck] operator[SEP] identifier[rangeStart] , identifier[rangeEnd] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rangeStart] operator[>=] identifier[rangeEnd] operator[SEP] { Keyword[return] identifier[rb] operator[SEP] identifier[clone] operator[SEP] operator[SEP] operator[SEP] } Keyword[final] Keyword[int] identifier[hbStart] operator[=] identifier[BufferUtil] operator[SEP] identifier[toIntUnsigned] operator[SEP] identifier[BufferUtil] operator[SEP] identifier[highbits] operator[SEP] identifier[rangeStart] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[lbStart] operator[=] identifier[BufferUtil] operator[SEP] identifier[toIntUnsigned] operator[SEP] identifier[BufferUtil] operator[SEP] identifier[lowbits] operator[SEP] identifier[rangeStart] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[hbLast] operator[=] identifier[BufferUtil] operator[SEP] identifier[toIntUnsigned] operator[SEP] identifier[BufferUtil] operator[SEP] identifier[highbits] operator[SEP] identifier[rangeEnd] operator[-] Other[1] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[lbLast] operator[=] identifier[BufferUtil] operator[SEP] identifier[toIntUnsigned] operator[SEP] identifier[BufferUtil] operator[SEP] identifier[lowbits] operator[SEP] identifier[rangeEnd] operator[-] Other[1] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringBitmap] identifier[answer] operator[=] Keyword[new] identifier[MutableRoaringBitmap] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[appendCopiesUntil] operator[SEP] identifier[rb] operator[SEP] identifier[highLowContainer] , operator[SEP] Keyword[short] operator[SEP] identifier[hbStart] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hbStart] operator[==] identifier[hbLast] operator[SEP] { Keyword[final] Keyword[int] identifier[i] operator[=] identifier[rb] operator[SEP] identifier[highLowContainer] operator[SEP] identifier[getIndex] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hbStart] operator[SEP] operator[SEP] Keyword[final] identifier[MappeableContainer] identifier[c] operator[=] identifier[i] operator[>=] Other[0] operator[?] identifier[rb] operator[SEP] identifier[highLowContainer] operator[SEP] identifier[getContainerAtIndex] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[lbStart] , identifier[lbLast] operator[+] Other[1] operator[SEP] operator[:] identifier[MappeableContainer] operator[SEP] identifier[rangeOfOnes] operator[SEP] identifier[lbStart] , identifier[lbLast] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[append] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hbStart] , identifier[c] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[appendCopiesAfter] operator[SEP] identifier[rb] operator[SEP] identifier[highLowContainer] , operator[SEP] Keyword[short] operator[SEP] identifier[hbLast] operator[SEP] operator[SEP] Keyword[return] identifier[answer] operator[SEP] } Keyword[int] identifier[ifirst] operator[=] identifier[rb] operator[SEP] identifier[highLowContainer] operator[SEP] identifier[getIndex] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hbStart] operator[SEP] operator[SEP] Keyword[int] identifier[ilast] operator[=] identifier[rb] operator[SEP] identifier[highLowContainer] operator[SEP] identifier[getIndex] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hbLast] operator[SEP] operator[SEP] { Keyword[final] identifier[MappeableContainer] identifier[c] operator[=] identifier[ifirst] operator[>=] Other[0] operator[?] identifier[rb] operator[SEP] identifier[highLowContainer] operator[SEP] identifier[getContainerAtIndex] operator[SEP] identifier[ifirst] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[lbStart] , identifier[BufferUtil] operator[SEP] identifier[maxLowBitAsInteger] operator[SEP] operator[SEP] operator[+] Other[1] operator[SEP] operator[:] identifier[MappeableContainer] operator[SEP] identifier[rangeOfOnes] operator[SEP] identifier[lbStart] , identifier[BufferUtil] operator[SEP] identifier[maxLowBitAsInteger] operator[SEP] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[append] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hbStart] , identifier[c] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[hb] operator[=] identifier[hbStart] operator[+] Other[1] operator[SEP] identifier[hb] operator[<] identifier[hbLast] operator[SEP] operator[++] identifier[hb] operator[SEP] { identifier[MappeableContainer] identifier[c] operator[=] identifier[MappeableContainer] operator[SEP] identifier[rangeOfOnes] operator[SEP] Other[0] , identifier[BufferUtil] operator[SEP] identifier[maxLowBitAsInteger] operator[SEP] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[append] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hb] , identifier[c] operator[SEP] operator[SEP] } { Keyword[final] identifier[MappeableContainer] identifier[c] operator[=] identifier[ilast] operator[>=] Other[0] operator[?] identifier[rb] operator[SEP] identifier[highLowContainer] operator[SEP] identifier[getContainerAtIndex] operator[SEP] identifier[ilast] operator[SEP] operator[SEP] identifier[add] operator[SEP] Other[0] , identifier[lbLast] operator[+] Other[1] operator[SEP] operator[:] identifier[MappeableContainer] operator[SEP] identifier[rangeOfOnes] operator[SEP] Other[0] , identifier[lbLast] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[append] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[hbLast] , identifier[c] operator[SEP] operator[SEP] } operator[SEP] operator[SEP] identifier[MutableRoaringArray] operator[SEP] identifier[answer] operator[SEP] identifier[highLowContainer] operator[SEP] operator[SEP] identifier[appendCopiesAfter] operator[SEP] identifier[rb] operator[SEP] identifier[highLowContainer] , operator[SEP] Keyword[short] operator[SEP] identifier[hbLast] operator[SEP] operator[SEP] Keyword[return] identifier[answer] operator[SEP] }
private Set<String> getOcspUrls(Certificate bcCert) { TBSCertificate bcTbsCert = bcCert.getTBSCertificate(); Extensions bcExts = bcTbsCert.getExtensions(); if (bcExts == null) { throw new RuntimeException("Failed to get Tbs Certificate."); } Set<String> ocsp = new HashSet<>(); for (Enumeration en = bcExts.oids(); en.hasMoreElements(); ) { ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) en.nextElement(); Extension bcExt = bcExts.getExtension(oid); if (bcExt.getExtnId() == Extension.authorityInfoAccess) { // OCSP URLS are included in authorityInfoAccess DLSequence seq = (DLSequence) bcExt.getParsedValue(); for (ASN1Encodable asn : seq) { ASN1Encodable[] pairOfAsn = ((DLSequence) asn).toArray(); if (pairOfAsn.length == 2) { ASN1ObjectIdentifier key = (ASN1ObjectIdentifier) pairOfAsn[0]; if (key == OIDocsp) { // ensure OCSP and not CRL GeneralName gn = GeneralName.getInstance(pairOfAsn[1]); ocsp.add(gn.getName().toString()); } } } } } return ocsp; }
class class_name[name] begin[{] method[getOcspUrls, return_type[type[Set]], modifier[private], parameter[bcCert]] begin[{] local_variable[type[TBSCertificate], bcTbsCert] local_variable[type[Extensions], bcExts] if[binary_operation[member[.bcExts], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed to get Tbs Certificate.")], 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) else begin[{] None end[}] local_variable[type[Set], ocsp] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[], member=nextElement, postfix_operators=[], prefix_operators=[], qualifier=en, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=ASN1ObjectIdentifier, sub_type=None)), name=oid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ASN1ObjectIdentifier, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=oid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExtension, postfix_operators=[], prefix_operators=[], qualifier=bcExts, selectors=[], type_arguments=None), name=bcExt)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Extension, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getExtnId, postfix_operators=[], prefix_operators=[], qualifier=bcExt, selectors=[], type_arguments=None), operandr=MemberReference(member=authorityInfoAccess, postfix_operators=[], prefix_operators=[], qualifier=Extension, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[], member=getParsedValue, postfix_operators=[], prefix_operators=[], qualifier=bcExt, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=DLSequence, sub_type=None)), name=seq)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=DLSequence, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=asn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=DLSequence, sub_type=None)), name=pairOfAsn)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=ASN1Encodable, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=pairOfAsn, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=pairOfAsn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type=ReferenceType(arguments=None, dimensions=[], name=ASN1ObjectIdentifier, sub_type=None)), name=key)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ASN1ObjectIdentifier, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=OIDocsp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=pairOfAsn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))])], member=getInstance, postfix_operators=[], prefix_operators=[], qualifier=GeneralName, selectors=[], type_arguments=None), name=gn)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=GeneralName, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=gn, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=ocsp, selectors=[], type_arguments=None), label=None)]))]))]), control=EnhancedForControl(iterable=MemberReference(member=seq, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=asn)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ASN1Encodable, sub_type=None))), label=None)]))]), control=ForControl(condition=MethodInvocation(arguments=[], member=hasMoreElements, postfix_operators=[], prefix_operators=[], qualifier=en, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=oids, postfix_operators=[], prefix_operators=[], qualifier=bcExts, selectors=[], type_arguments=None), name=en)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Enumeration, sub_type=None)), update=None), label=None) return[member[.ocsp]] end[}] END[}]
Keyword[private] identifier[Set] operator[<] identifier[String] operator[>] identifier[getOcspUrls] operator[SEP] identifier[Certificate] identifier[bcCert] operator[SEP] { identifier[TBSCertificate] identifier[bcTbsCert] operator[=] identifier[bcCert] operator[SEP] identifier[getTBSCertificate] operator[SEP] operator[SEP] operator[SEP] identifier[Extensions] identifier[bcExts] operator[=] identifier[bcTbsCert] operator[SEP] identifier[getExtensions] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bcExts] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[Set] operator[<] identifier[String] operator[>] identifier[ocsp] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Enumeration] identifier[en] operator[=] identifier[bcExts] operator[SEP] identifier[oids] operator[SEP] operator[SEP] operator[SEP] identifier[en] operator[SEP] identifier[hasMoreElements] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[ASN1ObjectIdentifier] identifier[oid] operator[=] operator[SEP] identifier[ASN1ObjectIdentifier] operator[SEP] identifier[en] operator[SEP] identifier[nextElement] operator[SEP] operator[SEP] operator[SEP] identifier[Extension] identifier[bcExt] operator[=] identifier[bcExts] operator[SEP] identifier[getExtension] operator[SEP] identifier[oid] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bcExt] operator[SEP] identifier[getExtnId] operator[SEP] operator[SEP] operator[==] identifier[Extension] operator[SEP] identifier[authorityInfoAccess] operator[SEP] { identifier[DLSequence] identifier[seq] operator[=] operator[SEP] identifier[DLSequence] operator[SEP] identifier[bcExt] operator[SEP] identifier[getParsedValue] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[ASN1Encodable] identifier[asn] operator[:] identifier[seq] operator[SEP] { identifier[ASN1Encodable] operator[SEP] operator[SEP] identifier[pairOfAsn] operator[=] operator[SEP] operator[SEP] identifier[DLSequence] operator[SEP] identifier[asn] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[pairOfAsn] operator[SEP] identifier[length] operator[==] Other[2] operator[SEP] { identifier[ASN1ObjectIdentifier] identifier[key] operator[=] operator[SEP] identifier[ASN1ObjectIdentifier] operator[SEP] identifier[pairOfAsn] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[key] operator[==] identifier[OIDocsp] operator[SEP] { identifier[GeneralName] identifier[gn] operator[=] identifier[GeneralName] operator[SEP] identifier[getInstance] operator[SEP] identifier[pairOfAsn] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] identifier[ocsp] operator[SEP] identifier[add] operator[SEP] identifier[gn] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } } } } Keyword[return] identifier[ocsp] operator[SEP] }
public final void retry(final ConnectionState state, final RetryHandler retryHandler, final ConnectionFailHandler failHandler) throws RetryCancelled { if (state.retryCount == 0) { state.msBeforeRetry = this.startRetryTime; } state.retryCount++; state.uriIndex = state.retryCount % state.uris.length; if (this.shouldRetry(state)) { if (logger.isDebugEnabled()) { logger.debug("Retry {} to send command", state.retryCount); } if(state.msBeforeRetry > 0) { try { state.loop.schedule(new Runnable() { @Override public void run() { try { retryHandler.doRetry(state); } catch (IOException e) { failHandler.catchException(e); } } }, state.msBeforeRetry, TimeUnit.MILLISECONDS); } catch (IllegalStateException e) { failHandler.catchException( new IOException(new CancellationException("Etcd client was closed")) ); } } else { try { retryHandler.doRetry(state); } catch (IOException e) { failHandler.catchException(e); } } } else { throw new RetryCancelled(); } }
class class_name[name] begin[{] method[retry, return_type[void], modifier[final public], parameter[state, retryHandler, failHandler]] begin[{] if[binary_operation[member[state.retryCount], ==, literal[0]]] begin[{] assign[member[state.msBeforeRetry], THIS[member[None.startRetryTime]]] else begin[{] None end[}] member[state.retryCount] assign[member[state.uriIndex], binary_operation[member[state.retryCount], %, member[state.uris.length]]] if[THIS[call[None.shouldRetry, parameter[member[.state]]]]] begin[{] if[call[logger.isDebugEnabled, parameter[]]] begin[{] call[logger.debug, parameter[literal["Retry {} to send command"], member[state.retryCount]]] else begin[{] None end[}] if[binary_operation[member[state.msBeforeRetry], >, literal[0]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doRetry, postfix_operators=[], prefix_operators=[], qualifier=retryHandler, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=catchException, postfix_operators=[], prefix_operators=[], qualifier=failHandler, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None)], documentation=None, modifiers={'public'}, name=run, parameters=[], 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=Runnable, sub_type=None)), MemberReference(member=msBeforeRetry, postfix_operators=[], prefix_operators=[], qualifier=state, selectors=[]), MemberReference(member=MILLISECONDS, postfix_operators=[], prefix_operators=[], qualifier=TimeUnit, selectors=[])], member=schedule, postfix_operators=[], prefix_operators=[], qualifier=state.loop, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Etcd client was closed")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CancellationException, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IOException, sub_type=None))], member=catchException, postfix_operators=[], prefix_operators=[], qualifier=failHandler, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalStateException']))], finally_block=None, label=None, resources=None) else begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doRetry, postfix_operators=[], prefix_operators=[], qualifier=retryHandler, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=catchException, postfix_operators=[], prefix_operators=[], qualifier=failHandler, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) end[}] else 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=RetryCancelled, sub_type=None)), label=None) end[}] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[retry] operator[SEP] Keyword[final] identifier[ConnectionState] identifier[state] , Keyword[final] identifier[RetryHandler] identifier[retryHandler] , Keyword[final] identifier[ConnectionFailHandler] identifier[failHandler] operator[SEP] Keyword[throws] identifier[RetryCancelled] { Keyword[if] operator[SEP] identifier[state] operator[SEP] identifier[retryCount] operator[==] Other[0] operator[SEP] { identifier[state] operator[SEP] identifier[msBeforeRetry] operator[=] Keyword[this] operator[SEP] identifier[startRetryTime] operator[SEP] } identifier[state] operator[SEP] identifier[retryCount] operator[++] operator[SEP] identifier[state] operator[SEP] identifier[uriIndex] operator[=] identifier[state] operator[SEP] identifier[retryCount] operator[%] identifier[state] operator[SEP] identifier[uris] operator[SEP] identifier[length] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[shouldRetry] operator[SEP] identifier[state] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[state] operator[SEP] identifier[retryCount] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[state] operator[SEP] identifier[msBeforeRetry] operator[>] Other[0] operator[SEP] { Keyword[try] { identifier[state] operator[SEP] identifier[loop] operator[SEP] identifier[schedule] operator[SEP] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[try] { identifier[retryHandler] operator[SEP] identifier[doRetry] operator[SEP] identifier[state] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[failHandler] operator[SEP] identifier[catchException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } } } , identifier[state] operator[SEP] identifier[msBeforeRetry] , identifier[TimeUnit] operator[SEP] identifier[MILLISECONDS] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalStateException] identifier[e] operator[SEP] { identifier[failHandler] operator[SEP] identifier[catchException] operator[SEP] Keyword[new] identifier[IOException] operator[SEP] Keyword[new] identifier[CancellationException] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[try] { identifier[retryHandler] operator[SEP] identifier[doRetry] operator[SEP] identifier[state] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[failHandler] operator[SEP] identifier[catchException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } } } Keyword[else] { Keyword[throw] Keyword[new] identifier[RetryCancelled] operator[SEP] operator[SEP] operator[SEP] } }
private static List<String> normalizeStarImports(List<String> starImports) { List<String> result = new ArrayList<String>(starImports.size()); for (String starImport : starImports) { if (starImport.endsWith(".*")) { result.add(starImport); } else if (starImport.endsWith(".")) { result.add(starImport + "*"); } else { result.add(starImport + ".*"); } } return Collections.unmodifiableList(result); }
class class_name[name] begin[{] method[normalizeStarImports, return_type[type[List]], modifier[private static], parameter[starImports]] begin[{] local_variable[type[List], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".*")], member=endsWith, postfix_operators=[], prefix_operators=[], qualifier=starImport, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".")], member=endsWith, postfix_operators=[], prefix_operators=[], qualifier=starImport, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=starImport, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".*"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=starImport, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=starImport, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=starImports, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=starImport)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) return[call[Collections.unmodifiableList, parameter[member[.result]]]] end[}] END[}]
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[normalizeStarImports] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[starImports] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[starImports] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[starImport] operator[:] identifier[starImports] operator[SEP] { Keyword[if] operator[SEP] identifier[starImport] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[starImport] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[starImport] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[starImport] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[starImport] operator[+] literal[String] operator[SEP] operator[SEP] } } Keyword[return] identifier[Collections] operator[SEP] identifier[unmodifiableList] operator[SEP] identifier[result] operator[SEP] operator[SEP] }
protected UserApiKey fetchApiKeyInternal(final ObjectId id) { final StitchAuthRequest.Builder reqBuilder = new StitchAuthRequest.Builder(); reqBuilder .withMethod(Method.GET) .withPath(routes.getApiKeyRouteForId(id.toHexString())) .withRefreshToken(); return getRequestClient().doAuthenticatedRequest( reqBuilder.build(), new UserApiKeyDecoder() ); }
class class_name[name] begin[{] method[fetchApiKeyInternal, return_type[type[UserApiKey]], modifier[protected], parameter[id]] begin[{] local_variable[type[StitchAuthRequest], reqBuilder] call[reqBuilder.withMethod, parameter[member[Method.GET]]] return[call[.getRequestClient, parameter[]]] end[}] END[}]
Keyword[protected] identifier[UserApiKey] identifier[fetchApiKeyInternal] operator[SEP] Keyword[final] identifier[ObjectId] identifier[id] operator[SEP] { Keyword[final] identifier[StitchAuthRequest] operator[SEP] identifier[Builder] identifier[reqBuilder] operator[=] Keyword[new] identifier[StitchAuthRequest] operator[SEP] identifier[Builder] operator[SEP] operator[SEP] operator[SEP] identifier[reqBuilder] operator[SEP] identifier[withMethod] operator[SEP] identifier[Method] operator[SEP] identifier[GET] operator[SEP] operator[SEP] identifier[withPath] operator[SEP] identifier[routes] operator[SEP] identifier[getApiKeyRouteForId] operator[SEP] identifier[id] operator[SEP] identifier[toHexString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[withRefreshToken] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[getRequestClient] operator[SEP] operator[SEP] operator[SEP] identifier[doAuthenticatedRequest] operator[SEP] identifier[reqBuilder] operator[SEP] identifier[build] operator[SEP] operator[SEP] , Keyword[new] identifier[UserApiKeyDecoder] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public void processPrerequisiteInjections(final SpecNodeWithRelationships specNode, final Document doc, final boolean useFixedUrls) { processPrerequisiteInjections(specNode, doc, doc.getDocumentElement(), useFixedUrls); }
class class_name[name] begin[{] method[processPrerequisiteInjections, return_type[void], modifier[public], parameter[specNode, doc, useFixedUrls]] begin[{] call[.processPrerequisiteInjections, parameter[member[.specNode], member[.doc], call[doc.getDocumentElement, parameter[]], member[.useFixedUrls]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[processPrerequisiteInjections] operator[SEP] Keyword[final] identifier[SpecNodeWithRelationships] identifier[specNode] , Keyword[final] identifier[Document] identifier[doc] , Keyword[final] Keyword[boolean] identifier[useFixedUrls] operator[SEP] { identifier[processPrerequisiteInjections] operator[SEP] identifier[specNode] , identifier[doc] , identifier[doc] operator[SEP] identifier[getDocumentElement] operator[SEP] operator[SEP] , identifier[useFixedUrls] operator[SEP] operator[SEP] }
public static String oxford(final Object[] items, final int limit, final String limitStr, final Locale locale) { return withinLocale(new Callable<String>() { @Override public String call() throws Exception { return oxford(items, limit, limitStr); } }, locale); }
class class_name[name] begin[{] method[oxford, return_type[type[String]], modifier[public static], parameter[items, limit, limitStr, locale]] begin[{] return[call[.withinLocale, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=items, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=limit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=limitStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=oxford, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=call, parameters=[], return_type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None), throws=['Exception'], type_parameters=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=String, sub_type=None))], dimensions=None, name=Callable, sub_type=None)), member[.locale]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[oxford] operator[SEP] Keyword[final] identifier[Object] operator[SEP] operator[SEP] identifier[items] , Keyword[final] Keyword[int] identifier[limit] , Keyword[final] identifier[String] identifier[limitStr] , Keyword[final] identifier[Locale] identifier[locale] operator[SEP] { Keyword[return] identifier[withinLocale] operator[SEP] Keyword[new] identifier[Callable] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[call] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[oxford] operator[SEP] identifier[items] , identifier[limit] , identifier[limitStr] operator[SEP] operator[SEP] } } , identifier[locale] operator[SEP] operator[SEP] }
@Override public Future<U> link(U current, BasicProfile to) { return toScala(doLink(current, to)); }
class class_name[name] begin[{] method[link, return_type[type[Future]], modifier[public], parameter[current, to]] begin[{] return[call[.toScala, parameter[call[.doLink, parameter[member[.current], member[.to]]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Future] operator[<] identifier[U] operator[>] identifier[link] operator[SEP] identifier[U] identifier[current] , identifier[BasicProfile] identifier[to] operator[SEP] { Keyword[return] identifier[toScala] operator[SEP] identifier[doLink] operator[SEP] identifier[current] , identifier[to] operator[SEP] operator[SEP] operator[SEP] }
public static <PS, SEG, S> ReadOnlyStyledDocument<PS, SEG, S> fromString(String str, PS paragraphStyle, S style, TextOps<SEG, S> segmentOps) { Matcher m = LINE_TERMINATOR.matcher(str); int n = 1; while(m.find()) ++n; List<Paragraph<PS, SEG, S>> res = new ArrayList<>(n); int start = 0; m.reset(); while(m.find()) { String s = str.substring(start, m.start()); res.add(new Paragraph<>(paragraphStyle, segmentOps, segmentOps.create(s), style)); start = m.end(); } String last = str.substring(start); res.add(new Paragraph<>(paragraphStyle, segmentOps, segmentOps.create(last), style)); return new ReadOnlyStyledDocument<>(res); }
class class_name[name] begin[{] method[fromString, return_type[type[ReadOnlyStyledDocument]], modifier[public static], parameter[str, paragraphStyle, style, segmentOps]] begin[{] local_variable[type[Matcher], m] local_variable[type[int], n] while[call[m.find, parameter[]]] begin[{] member[.n] end[}] local_variable[type[List], res] local_variable[type[int], start] call[m.reset, parameter[]] while[call[m.find, parameter[]]] begin[{] local_variable[type[String], s] call[res.add, parameter[ClassCreator(arguments=[MemberReference(member=paragraphStyle, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=segmentOps, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=segmentOps, selectors=[], type_arguments=None), MemberReference(member=style, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=Paragraph, sub_type=None))]] assign[member[.start], call[m.end, parameter[]]] end[}] local_variable[type[String], last] call[res.add, parameter[ClassCreator(arguments=[MemberReference(member=paragraphStyle, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=segmentOps, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=last, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=segmentOps, selectors=[], type_arguments=None), MemberReference(member=style, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=Paragraph, sub_type=None))]] return[ClassCreator(arguments=[MemberReference(member=res, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ReadOnlyStyledDocument, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[PS] , identifier[SEG] , identifier[S] operator[>] identifier[ReadOnlyStyledDocument] operator[<] identifier[PS] , identifier[SEG] , identifier[S] operator[>] identifier[fromString] operator[SEP] identifier[String] identifier[str] , identifier[PS] identifier[paragraphStyle] , identifier[S] identifier[style] , identifier[TextOps] operator[<] identifier[SEG] , identifier[S] operator[>] identifier[segmentOps] operator[SEP] { identifier[Matcher] identifier[m] operator[=] identifier[LINE_TERMINATOR] operator[SEP] identifier[matcher] operator[SEP] identifier[str] operator[SEP] operator[SEP] Keyword[int] identifier[n] operator[=] Other[1] operator[SEP] Keyword[while] operator[SEP] identifier[m] operator[SEP] identifier[find] operator[SEP] operator[SEP] operator[SEP] operator[++] identifier[n] operator[SEP] identifier[List] operator[<] identifier[Paragraph] operator[<] identifier[PS] , identifier[SEG] , identifier[S] operator[>] operator[>] identifier[res] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] identifier[n] operator[SEP] operator[SEP] Keyword[int] identifier[start] operator[=] Other[0] operator[SEP] identifier[m] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[m] operator[SEP] identifier[find] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[s] operator[=] identifier[str] operator[SEP] identifier[substring] operator[SEP] identifier[start] , identifier[m] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[res] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Paragraph] operator[<] operator[>] operator[SEP] identifier[paragraphStyle] , identifier[segmentOps] , identifier[segmentOps] operator[SEP] identifier[create] operator[SEP] identifier[s] operator[SEP] , identifier[style] operator[SEP] operator[SEP] operator[SEP] identifier[start] operator[=] identifier[m] operator[SEP] identifier[end] operator[SEP] operator[SEP] operator[SEP] } identifier[String] identifier[last] operator[=] identifier[str] operator[SEP] identifier[substring] operator[SEP] identifier[start] operator[SEP] operator[SEP] identifier[res] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Paragraph] operator[<] operator[>] operator[SEP] identifier[paragraphStyle] , identifier[segmentOps] , identifier[segmentOps] operator[SEP] identifier[create] operator[SEP] identifier[last] operator[SEP] , identifier[style] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[ReadOnlyStyledDocument] operator[<] operator[>] operator[SEP] identifier[res] operator[SEP] operator[SEP] }
@Override public void run() { Date actualExecutionTime = new Date(); super.run(); Date completionTime = new Date(); synchronized (this.triggerContextMonitor) { this.triggerContext.update(this.scheduledExecutionTime, actualExecutionTime, completionTime); if (!this.currentFuture.isCancelled()) { schedule(); } } }
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Date], actualExecutionTime] SuperMethodInvocation(arguments=[], member=run, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) local_variable[type[Date], completionTime] SYNCHRONIZED[THIS[member[None.triggerContextMonitor]]] BEGIN[{] THIS[member[None.triggerContext]call[None.update, parameter[THIS[member[None.scheduledExecutionTime]], member[.actualExecutionTime], member[.completionTime]]]] if[THIS[member[None.currentFuture]call[None.isCancelled, parameter[]]]] begin[{] call[.schedule, parameter[]] else begin[{] None end[}] END[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[Date] identifier[actualExecutionTime] operator[=] Keyword[new] identifier[Date] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[run] operator[SEP] operator[SEP] operator[SEP] identifier[Date] identifier[completionTime] operator[=] Keyword[new] identifier[Date] operator[SEP] operator[SEP] operator[SEP] Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] identifier[triggerContextMonitor] operator[SEP] { Keyword[this] operator[SEP] identifier[triggerContext] operator[SEP] identifier[update] operator[SEP] Keyword[this] operator[SEP] identifier[scheduledExecutionTime] , identifier[actualExecutionTime] , identifier[completionTime] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[currentFuture] operator[SEP] identifier[isCancelled] operator[SEP] operator[SEP] operator[SEP] { identifier[schedule] operator[SEP] operator[SEP] operator[SEP] } } }
public StackTraceElement getStackTraceElement(Throwable throwable, int n) { try { return (StackTraceElement) getElementMethod.invoke(javaLangAccess, throwable, n); } catch (InvocationTargetException e) { // The only case we should expect to see here normally is a wrapped IndexOutOfBoundsException. if (e.getCause() instanceof RuntimeException) { throw (RuntimeException) e.getCause(); } else if (e.getCause() instanceof Error) { throw (Error) e.getCause(); } // This should not be possible because the getStackTraceElement() method does not declare // any checked exceptions (though APIs may change over time). throw new RuntimeException(e.getCause()); } catch (IllegalAccessException e) { // This should never happen because the method has been successfully invoked once already. throw new AssertionError(e); } }
class class_name[name] begin[{] method[getStackTraceElement, return_type[type[StackTraceElement]], modifier[public], parameter[throwable, n]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=javaLangAccess, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=throwable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=invoke, postfix_operators=[], prefix_operators=[], qualifier=getElementMethod, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=StackTraceElement, sub_type=None)), label=None)], catches=[CatchClause(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getCause, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operandr=ReferenceType(arguments=None, dimensions=[], name=RuntimeException, sub_type=None), operator=instanceof), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getCause, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operandr=ReferenceType(arguments=None, dimensions=[], name=Error, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=Cast(expression=MethodInvocation(arguments=[], member=getCause, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Error, sub_type=None)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=Cast(expression=MethodInvocation(arguments=[], member=getCause, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=RuntimeException, sub_type=None)), label=None)])), ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getCause, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None)], 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=['InvocationTargetException'])), CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[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=AssertionError, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalAccessException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] identifier[StackTraceElement] identifier[getStackTraceElement] operator[SEP] identifier[Throwable] identifier[throwable] , Keyword[int] identifier[n] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[StackTraceElement] operator[SEP] identifier[getElementMethod] operator[SEP] identifier[invoke] operator[SEP] identifier[javaLangAccess] , identifier[throwable] , identifier[n] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[InvocationTargetException] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[getCause] operator[SEP] operator[SEP] Keyword[instanceof] identifier[RuntimeException] operator[SEP] { Keyword[throw] operator[SEP] identifier[RuntimeException] operator[SEP] identifier[e] operator[SEP] identifier[getCause] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[getCause] operator[SEP] operator[SEP] Keyword[instanceof] identifier[Error] operator[SEP] { Keyword[throw] operator[SEP] identifier[Error] operator[SEP] identifier[e] operator[SEP] identifier[getCause] operator[SEP] operator[SEP] operator[SEP] } Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[e] operator[SEP] identifier[getCause] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalAccessException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[AssertionError] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
private Stmt.Block parseBlock(EnclosingScope scope, boolean isLoop) { // First, determine the initial indentation of this block based on the // first statement (or null if there is no statement). Indent indent = getIndent(); // We must clone the environment here, in order to ensure variables // declared within this block are properly scoped. EnclosingScope blockScope = scope.newEnclosingScope(indent, isLoop); // Second, check that this is indeed the initial indentation for this // block (i.e. that it is strictly greater than parent indent). if (indent == null || indent.lessThanEq(scope.getIndent())) { // Initial indent either doesn't exist or is not strictly greater // than parent indent and,therefore, signals an empty block. // return new Stmt.Block(); } else { // Initial indent is valid, so we proceed parsing statements with // the appropriate level of indent. ArrayList<Stmt> stmts = new ArrayList<>(); Indent nextIndent; while ((nextIndent = getIndent()) != null && indent.lessThanEq(nextIndent)) { // At this point, nextIndent contains the indent of the current // statement. However, this still may not be equivalent to this // block's indentation level. // // First, check the indentation matches that for this block. if (!indent.equivalent(nextIndent)) { // No, it's not equivalent so signal an error. syntaxError("unexpected end-of-block", nextIndent); } // Second, parse the actual statement at this point! stmts.add(parseStatement(blockScope)); } // Finally, construct the block return new Stmt.Block(stmts.toArray(new Stmt[stmts.size()])); } }
class class_name[name] begin[{] method[parseBlock, return_type[type[Stmt]], modifier[private], parameter[scope, isLoop]] begin[{] local_variable[type[Indent], indent] local_variable[type[EnclosingScope], blockScope] if[binary_operation[binary_operation[member[.indent], ==, literal[null]], ||, call[indent.lessThanEq, parameter[call[scope.getIndent, parameter[]]]]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Stmt, sub_type=ReferenceType(arguments=None, dimensions=None, name=Block, sub_type=None)))] else begin[{] local_variable[type[ArrayList], stmts] local_variable[type[Indent], nextIndent] while[binary_operation[binary_operation[assign[member[.nextIndent], call[.getIndent, parameter[]]], !=, literal[null]], &&, call[indent.lessThanEq, parameter[member[.nextIndent]]]]] begin[{] if[call[indent.equivalent, parameter[member[.nextIndent]]]] begin[{] call[.syntaxError, parameter[literal["unexpected end-of-block"], member[.nextIndent]]] else begin[{] None end[}] call[stmts.add, parameter[call[.parseStatement, parameter[member[.blockScope]]]]] end[}] return[ClassCreator(arguments=[MethodInvocation(arguments=[ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=stmts, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Stmt, sub_type=None))], member=toArray, postfix_operators=[], prefix_operators=[], qualifier=stmts, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Stmt, sub_type=ReferenceType(arguments=None, dimensions=None, name=Block, sub_type=None)))] end[}] end[}] END[}]
Keyword[private] identifier[Stmt] operator[SEP] identifier[Block] identifier[parseBlock] operator[SEP] identifier[EnclosingScope] identifier[scope] , Keyword[boolean] identifier[isLoop] operator[SEP] { identifier[Indent] identifier[indent] operator[=] identifier[getIndent] operator[SEP] operator[SEP] operator[SEP] identifier[EnclosingScope] identifier[blockScope] operator[=] identifier[scope] operator[SEP] identifier[newEnclosingScope] operator[SEP] identifier[indent] , identifier[isLoop] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[indent] operator[==] Other[null] operator[||] identifier[indent] operator[SEP] identifier[lessThanEq] operator[SEP] identifier[scope] operator[SEP] identifier[getIndent] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Stmt] operator[SEP] identifier[Block] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[ArrayList] operator[<] identifier[Stmt] operator[>] identifier[stmts] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Indent] identifier[nextIndent] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[nextIndent] operator[=] identifier[getIndent] operator[SEP] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] identifier[indent] operator[SEP] identifier[lessThanEq] operator[SEP] identifier[nextIndent] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[indent] operator[SEP] identifier[equivalent] operator[SEP] identifier[nextIndent] operator[SEP] operator[SEP] { identifier[syntaxError] operator[SEP] literal[String] , identifier[nextIndent] operator[SEP] operator[SEP] } identifier[stmts] operator[SEP] identifier[add] operator[SEP] identifier[parseStatement] operator[SEP] identifier[blockScope] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[Stmt] operator[SEP] identifier[Block] operator[SEP] identifier[stmts] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[Stmt] operator[SEP] identifier[stmts] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
public void handleCandlestickCollection(final BitfinexCandlestickSymbol symbol, final Collection<BitfinexCandle> ticksBuffer) { candleCallbacks.handleEventsCollection(symbol, ticksBuffer); }
class class_name[name] begin[{] method[handleCandlestickCollection, return_type[void], modifier[public], parameter[symbol, ticksBuffer]] begin[{] call[candleCallbacks.handleEventsCollection, parameter[member[.symbol], member[.ticksBuffer]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[handleCandlestickCollection] operator[SEP] Keyword[final] identifier[BitfinexCandlestickSymbol] identifier[symbol] , Keyword[final] identifier[Collection] operator[<] identifier[BitfinexCandle] operator[>] identifier[ticksBuffer] operator[SEP] { identifier[candleCallbacks] operator[SEP] identifier[handleEventsCollection] operator[SEP] identifier[symbol] , identifier[ticksBuffer] operator[SEP] operator[SEP] }
public MemcachedBackupSession deserialize( final byte[] data, final SessionManager manager ) { if ( data == null ) { return null; } try { final DeserializationResult deserializationResult = deserializeSessionFields( data, manager ); final byte[] attributesData = deserializationResult.getAttributesData(); final ConcurrentMap<String, Object> attributes = deserializeAttributes( attributesData ); final MemcachedBackupSession session = deserializationResult.getSession(); session.setAttributesInternal( attributes ); session.setDataHashCode( Arrays.hashCode( attributesData ) ); session.setManager( manager ); session.doAfterDeserialization(); return session; } catch( final InvalidVersionException e ) { LOG.info( "Got session data from memcached with an unsupported version: " + e.getVersion() ); // for versioning probably there will be changes in the design, // with the first change and version 2 we'll see what we need return null; } }
class class_name[name] begin[{] method[deserialize, return_type[type[MemcachedBackupSession]], modifier[public], parameter[data, manager]] begin[{] if[binary_operation[member[.data], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=data, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=manager, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=deserializeSessionFields, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=deserializationResult)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=DeserializationResult, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getAttributesData, postfix_operators=[], prefix_operators=[], qualifier=deserializationResult, selectors=[], type_arguments=None), name=attributesData)], modifiers={'final'}, type=BasicType(dimensions=[None], name=byte)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=attributesData, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=deserializeAttributes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=attributes)], 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=None, dimensions=[], name=Object, sub_type=None))], dimensions=[], name=ConcurrentMap, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getSession, postfix_operators=[], prefix_operators=[], qualifier=deserializationResult, selectors=[], type_arguments=None), name=session)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=MemcachedBackupSession, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=attributes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setAttributesInternal, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=attributesData, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hashCode, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None)], member=setDataHashCode, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=manager, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setManager, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=doAfterDeserialization, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Got session data from memcached with an unsupported version: "), operandr=MethodInvocation(arguments=[], member=getVersion, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+)], member=info, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['InvalidVersionException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] identifier[MemcachedBackupSession] identifier[deserialize] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[final] identifier[SessionManager] identifier[manager] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[try] { Keyword[final] identifier[DeserializationResult] identifier[deserializationResult] operator[=] identifier[deserializeSessionFields] operator[SEP] identifier[data] , identifier[manager] operator[SEP] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[attributesData] operator[=] identifier[deserializationResult] operator[SEP] identifier[getAttributesData] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[ConcurrentMap] operator[<] identifier[String] , identifier[Object] operator[>] identifier[attributes] operator[=] identifier[deserializeAttributes] operator[SEP] identifier[attributesData] operator[SEP] operator[SEP] Keyword[final] identifier[MemcachedBackupSession] identifier[session] operator[=] identifier[deserializationResult] operator[SEP] identifier[getSession] operator[SEP] operator[SEP] operator[SEP] identifier[session] operator[SEP] identifier[setAttributesInternal] operator[SEP] identifier[attributes] operator[SEP] operator[SEP] identifier[session] operator[SEP] identifier[setDataHashCode] operator[SEP] identifier[Arrays] operator[SEP] identifier[hashCode] operator[SEP] identifier[attributesData] operator[SEP] operator[SEP] operator[SEP] identifier[session] operator[SEP] identifier[setManager] operator[SEP] identifier[manager] operator[SEP] operator[SEP] identifier[session] operator[SEP] identifier[doAfterDeserialization] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[session] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[InvalidVersionException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getVersion] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Other[null] operator[SEP] } }
public static long getLong(String pStr) { if (isEmpty(pStr)) { return 0; } long value = 0; try { value = Long.parseLong(pStr); } catch (NumberFormatException nm) { } return value; }
class class_name[name] begin[{] method[getLong, return_type[type[long]], modifier[public static], parameter[pStr]] begin[{] if[call[.isEmpty, parameter[member[.pStr]]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[long], value] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=pStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseLong, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=nm, types=['NumberFormatException']))], finally_block=None, label=None, resources=None) return[member[.value]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[long] identifier[getLong] operator[SEP] identifier[String] identifier[pStr] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[pStr] operator[SEP] operator[SEP] { Keyword[return] Other[0] operator[SEP] } Keyword[long] identifier[value] operator[=] Other[0] operator[SEP] Keyword[try] { identifier[value] operator[=] identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[pStr] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[NumberFormatException] identifier[nm] operator[SEP] { } Keyword[return] identifier[value] operator[SEP] }
public String getFor(String personalIdentificationNumber) { for (RedirectUrl redirectUrl : urls) { if (redirectUrl.signer.equals(personalIdentificationNumber)) { return redirectUrl.url; } } throw new IllegalArgumentException("Unable to find redirect URL for this signer"); }
class class_name[name] begin[{] method[getFor, return_type[type[String]], modifier[public], parameter[personalIdentificationNumber]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=personalIdentificationNumber, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=redirectUrl.signer, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=url, postfix_operators=[], prefix_operators=[], qualifier=redirectUrl, selectors=[]), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=urls, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=redirectUrl)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=RedirectUrl, sub_type=None))), label=None) ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to find redirect URL for this signer")], 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) end[}] END[}]
Keyword[public] identifier[String] identifier[getFor] operator[SEP] identifier[String] identifier[personalIdentificationNumber] operator[SEP] { Keyword[for] operator[SEP] identifier[RedirectUrl] identifier[redirectUrl] operator[:] identifier[urls] operator[SEP] { Keyword[if] operator[SEP] identifier[redirectUrl] operator[SEP] identifier[signer] operator[SEP] identifier[equals] operator[SEP] identifier[personalIdentificationNumber] operator[SEP] operator[SEP] { Keyword[return] identifier[redirectUrl] operator[SEP] identifier[url] operator[SEP] } } Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] }
@Search() public List<Patient> findPatientsByName(@RequiredParam(name = Patient.SP_FAMILY) StringDt theFamilyName) { LinkedList<Patient> retVal = new LinkedList<Patient>(); /* * Look for all patients matching the name */ for (Deque<Patient> nextPatientList : myIdToPatientVersions.values()) { Patient nextPatient = nextPatientList.getLast(); NAMELOOP: for (HumanNameDt nextName : nextPatient.getName()) { for (StringDt nextFamily : nextName.getFamily()) { if (theFamilyName.equals(nextFamily)) { retVal.add(nextPatient); break NAMELOOP; } } } } return retVal; }
class class_name[name] begin[{] method[findPatientsByName, return_type[type[List]], modifier[public], parameter[theFamilyName]] begin[{] local_variable[type[LinkedList], retVal] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getLast, postfix_operators=[], prefix_operators=[], qualifier=nextPatientList, selectors=[], type_arguments=None), name=nextPatient)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Patient, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=nextFamily, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=theFamilyName, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=nextPatient, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=retVal, selectors=[], type_arguments=None), label=None), BreakStatement(goto=NAMELOOP, label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getFamily, postfix_operators=[], prefix_operators=[], qualifier=nextName, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=nextFamily)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringDt, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=nextPatient, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=nextName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HumanNameDt, sub_type=None))), label=NAMELOOP)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=values, postfix_operators=[], prefix_operators=[], qualifier=myIdToPatientVersions, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=nextPatientList)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Patient, sub_type=None))], dimensions=[], name=Deque, sub_type=None))), label=None) return[member[.retVal]] end[}] END[}]
annotation[@] identifier[Search] operator[SEP] operator[SEP] Keyword[public] identifier[List] operator[<] identifier[Patient] operator[>] identifier[findPatientsByName] operator[SEP] annotation[@] identifier[RequiredParam] operator[SEP] identifier[name] operator[=] identifier[Patient] operator[SEP] identifier[SP_FAMILY] operator[SEP] identifier[StringDt] identifier[theFamilyName] operator[SEP] { identifier[LinkedList] operator[<] identifier[Patient] operator[>] identifier[retVal] operator[=] Keyword[new] identifier[LinkedList] operator[<] identifier[Patient] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Deque] operator[<] identifier[Patient] operator[>] identifier[nextPatientList] operator[:] identifier[myIdToPatientVersions] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] { identifier[Patient] identifier[nextPatient] operator[=] identifier[nextPatientList] operator[SEP] identifier[getLast] operator[SEP] operator[SEP] operator[SEP] identifier[NAMELOOP] operator[:] Keyword[for] operator[SEP] identifier[HumanNameDt] identifier[nextName] operator[:] identifier[nextPatient] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[StringDt] identifier[nextFamily] operator[:] identifier[nextName] operator[SEP] identifier[getFamily] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[theFamilyName] operator[SEP] identifier[equals] operator[SEP] identifier[nextFamily] operator[SEP] operator[SEP] { identifier[retVal] operator[SEP] identifier[add] operator[SEP] identifier[nextPatient] operator[SEP] operator[SEP] Keyword[break] identifier[NAMELOOP] operator[SEP] } } } } Keyword[return] identifier[retVal] operator[SEP] }
public void marshall(DeviceDefinitionVersion deviceDefinitionVersion, ProtocolMarshaller protocolMarshaller) { if (deviceDefinitionVersion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deviceDefinitionVersion.getDevices(), DEVICES_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[deviceDefinitionVersion, protocolMarshaller]] begin[{] if[binary_operation[member[.deviceDefinitionVersion], ==, 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=getDevices, postfix_operators=[], prefix_operators=[], qualifier=deviceDefinitionVersion, selectors=[], type_arguments=None), MemberReference(member=DEVICES_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[DeviceDefinitionVersion] identifier[deviceDefinitionVersion] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deviceDefinitionVersion] 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[deviceDefinitionVersion] operator[SEP] identifier[getDevices] operator[SEP] operator[SEP] , identifier[DEVICES_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] } }
void recomputeProgress() { if (isComplete()) { this.progress = 1; // update the counters and the state TaskStatus completedStatus = taskStatuses.get(getSuccessfulTaskid()); this.counters = completedStatus.getCounters(); this.state = completedStatus.getStateString(); } else if (failed) { this.progress = 0; // reset the counters and the state this.state = ""; this.counters = new Counters(); } else { double bestProgress = 0; String bestState = ""; Counters bestCounters = new Counters(); for (Iterator<TaskAttemptID> it = taskStatuses.keySet().iterator(); it.hasNext();) { TaskAttemptID taskid = it.next(); TaskStatus status = taskStatuses.get(taskid); if (status.getRunState() == TaskStatus.State.SUCCEEDED) { bestProgress = 1; bestState = status.getStateString(); bestCounters = status.getCounters(); break; } else if (status.getRunState() == TaskStatus.State.COMMIT_PENDING) { //for COMMIT_PENDING, we take the last state that we recorded //when the task was RUNNING bestProgress = this.progress; bestState = this.state; bestCounters = this.counters; } else if (status.getRunState() == TaskStatus.State.RUNNING) { if (status.getProgress() >= bestProgress) { bestProgress = status.getProgress(); bestState = status.getStateString(); if (status.getIncludeCounters()) { bestCounters = status.getCounters(); } else { bestCounters = this.counters; } } } } this.progress = bestProgress; this.state = bestState; this.counters = bestCounters; } }
class class_name[name] begin[{] method[recomputeProgress, return_type[void], modifier[default], parameter[]] begin[{] if[call[.isComplete, parameter[]]] begin[{] assign[THIS[member[None.progress]], literal[1]] local_variable[type[TaskStatus], completedStatus] assign[THIS[member[None.counters]], call[completedStatus.getCounters, parameter[]]] assign[THIS[member[None.state]], call[completedStatus.getStateString, parameter[]]] else begin[{] if[member[.failed]] begin[{] assign[THIS[member[None.progress]], literal[0]] assign[THIS[member[None.state]], literal[""]] assign[THIS[member[None.counters]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Counters, sub_type=None))] else begin[{] local_variable[type[double], bestProgress] local_variable[type[String], bestState] local_variable[type[Counters], bestCounters] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=it, selectors=[], type_arguments=None), name=taskid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TaskAttemptID, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=taskid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=taskStatuses, selectors=[], type_arguments=None), name=status)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TaskStatus, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getRunState, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None), operandr=MemberReference(member=SUCCEEDED, postfix_operators=[], prefix_operators=[], qualifier=TaskStatus.State, selectors=[]), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getRunState, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None), operandr=MemberReference(member=COMMIT_PENDING, postfix_operators=[], prefix_operators=[], qualifier=TaskStatus.State, selectors=[]), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getRunState, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None), operandr=MemberReference(member=RUNNING, postfix_operators=[], prefix_operators=[], qualifier=TaskStatus.State, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getProgress, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None), operandr=MemberReference(member=bestProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getProgress, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestState, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getStateString, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None)), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=getIncludeCounters, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestCounters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=counters, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestCounters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getCounters, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None)), label=None)]))]))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=progress, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestState, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=state, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestCounters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=counters, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestState, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getStateString, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bestCounters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getCounters, postfix_operators=[], prefix_operators=[], qualifier=status, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]))]), control=ForControl(condition=MethodInvocation(arguments=[], member=hasNext, postfix_operators=[], prefix_operators=[], qualifier=it, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=keySet, postfix_operators=[], prefix_operators=[], qualifier=taskStatuses, selectors=[MethodInvocation(arguments=[], member=iterator, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=it)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=TaskAttemptID, sub_type=None))], dimensions=[], name=Iterator, sub_type=None)), update=None), label=None) assign[THIS[member[None.progress]], member[.bestProgress]] assign[THIS[member[None.state]], member[.bestState]] assign[THIS[member[None.counters]], member[.bestCounters]] end[}] end[}] end[}] END[}]
Keyword[void] identifier[recomputeProgress] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isComplete] operator[SEP] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[progress] operator[=] Other[1] operator[SEP] identifier[TaskStatus] identifier[completedStatus] operator[=] identifier[taskStatuses] operator[SEP] identifier[get] operator[SEP] identifier[getSuccessfulTaskid] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[counters] operator[=] identifier[completedStatus] operator[SEP] identifier[getCounters] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[state] operator[=] identifier[completedStatus] operator[SEP] identifier[getStateString] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[failed] operator[SEP] { Keyword[this] operator[SEP] identifier[progress] operator[=] Other[0] operator[SEP] Keyword[this] operator[SEP] identifier[state] operator[=] literal[String] operator[SEP] Keyword[this] operator[SEP] identifier[counters] operator[=] Keyword[new] identifier[Counters] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[double] identifier[bestProgress] operator[=] Other[0] operator[SEP] identifier[String] identifier[bestState] operator[=] literal[String] operator[SEP] identifier[Counters] identifier[bestCounters] operator[=] Keyword[new] identifier[Counters] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Iterator] operator[<] identifier[TaskAttemptID] operator[>] identifier[it] operator[=] identifier[taskStatuses] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] identifier[it] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[TaskAttemptID] identifier[taskid] operator[=] identifier[it] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[TaskStatus] identifier[status] operator[=] identifier[taskStatuses] operator[SEP] identifier[get] operator[SEP] identifier[taskid] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[status] operator[SEP] identifier[getRunState] operator[SEP] operator[SEP] operator[==] identifier[TaskStatus] operator[SEP] identifier[State] operator[SEP] identifier[SUCCEEDED] operator[SEP] { identifier[bestProgress] operator[=] Other[1] operator[SEP] identifier[bestState] operator[=] identifier[status] operator[SEP] identifier[getStateString] operator[SEP] operator[SEP] operator[SEP] identifier[bestCounters] operator[=] identifier[status] operator[SEP] identifier[getCounters] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[status] operator[SEP] identifier[getRunState] operator[SEP] operator[SEP] operator[==] identifier[TaskStatus] operator[SEP] identifier[State] operator[SEP] identifier[COMMIT_PENDING] operator[SEP] { identifier[bestProgress] operator[=] Keyword[this] operator[SEP] identifier[progress] operator[SEP] identifier[bestState] operator[=] Keyword[this] operator[SEP] identifier[state] operator[SEP] identifier[bestCounters] operator[=] Keyword[this] operator[SEP] identifier[counters] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[status] operator[SEP] identifier[getRunState] operator[SEP] operator[SEP] operator[==] identifier[TaskStatus] operator[SEP] identifier[State] operator[SEP] identifier[RUNNING] operator[SEP] { Keyword[if] operator[SEP] identifier[status] operator[SEP] identifier[getProgress] operator[SEP] operator[SEP] operator[>=] identifier[bestProgress] operator[SEP] { identifier[bestProgress] operator[=] identifier[status] operator[SEP] identifier[getProgress] operator[SEP] operator[SEP] operator[SEP] identifier[bestState] operator[=] identifier[status] operator[SEP] identifier[getStateString] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[status] operator[SEP] identifier[getIncludeCounters] operator[SEP] operator[SEP] operator[SEP] { identifier[bestCounters] operator[=] identifier[status] operator[SEP] identifier[getCounters] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[bestCounters] operator[=] Keyword[this] operator[SEP] identifier[counters] operator[SEP] } } } } Keyword[this] operator[SEP] identifier[progress] operator[=] identifier[bestProgress] operator[SEP] Keyword[this] operator[SEP] identifier[state] operator[=] identifier[bestState] operator[SEP] Keyword[this] operator[SEP] identifier[counters] operator[=] identifier[bestCounters] operator[SEP] } }
@Override public T transformElement(Tuple2<Object, LinkedMapWritable> tuple, DeepJobConfig<T, ? extends DeepJobConfig> config) { try { return (T) UtilES.getObjectFromJson(config.getEntityClass(), tuple._2()); } catch (Exception e) { LOG.error("Cannot convert JSON: ", e); throw new DeepTransformException("Could not transform from Json to Entity " + e.getMessage()); } }
class class_name[name] begin[{] method[transformElement, return_type[type[T]], modifier[public], parameter[tuple, config]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEntityClass, postfix_operators=[], prefix_operators=[], qualifier=config, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=_2, postfix_operators=[], prefix_operators=[], qualifier=tuple, selectors=[], type_arguments=None)], member=getObjectFromJson, postfix_operators=[], prefix_operators=[], qualifier=UtilES, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Cannot convert JSON: "), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Could not transform from Json to Entity "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DeepTransformException, 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] identifier[T] identifier[transformElement] operator[SEP] identifier[Tuple2] operator[<] identifier[Object] , identifier[LinkedMapWritable] operator[>] identifier[tuple] , identifier[DeepJobConfig] operator[<] identifier[T] , operator[?] Keyword[extends] identifier[DeepJobConfig] operator[>] identifier[config] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[T] operator[SEP] identifier[UtilES] operator[SEP] identifier[getObjectFromJson] operator[SEP] identifier[config] operator[SEP] identifier[getEntityClass] operator[SEP] operator[SEP] , identifier[tuple] operator[SEP] identifier[_2] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[DeepTransformException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
public ValueVo getConfItemByParameter(Long appId, Long envId, String version, String key) { Config config = configDao.getByParameter(appId, envId, version, key, DisConfigTypeEnum.ITEM); if (config == null) { return ConfigUtils.getErrorVo("cannot find this config"); } ValueVo valueVo = new ValueVo(); valueVo.setValue(config.getValue()); valueVo.setStatus(Constants.OK); return valueVo; }
class class_name[name] begin[{] method[getConfItemByParameter, return_type[type[ValueVo]], modifier[public], parameter[appId, envId, version, key]] begin[{] local_variable[type[Config], config] if[binary_operation[member[.config], ==, literal[null]]] begin[{] return[call[ConfigUtils.getErrorVo, parameter[literal["cannot find this config"]]]] else begin[{] None end[}] local_variable[type[ValueVo], valueVo] call[valueVo.setValue, parameter[call[config.getValue, parameter[]]]] call[valueVo.setStatus, parameter[member[Constants.OK]]] return[member[.valueVo]] end[}] END[}]
Keyword[public] identifier[ValueVo] identifier[getConfItemByParameter] operator[SEP] identifier[Long] identifier[appId] , identifier[Long] identifier[envId] , identifier[String] identifier[version] , identifier[String] identifier[key] operator[SEP] { identifier[Config] identifier[config] operator[=] identifier[configDao] operator[SEP] identifier[getByParameter] operator[SEP] identifier[appId] , identifier[envId] , identifier[version] , identifier[key] , identifier[DisConfigTypeEnum] operator[SEP] identifier[ITEM] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[config] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[ConfigUtils] operator[SEP] identifier[getErrorVo] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[ValueVo] identifier[valueVo] operator[=] Keyword[new] identifier[ValueVo] operator[SEP] operator[SEP] operator[SEP] identifier[valueVo] operator[SEP] identifier[setValue] operator[SEP] identifier[config] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[valueVo] operator[SEP] identifier[setStatus] operator[SEP] identifier[Constants] operator[SEP] identifier[OK] operator[SEP] operator[SEP] Keyword[return] identifier[valueVo] operator[SEP] }
public static RedissonReactiveClient createReactive(Config config) { RedissonReactive react = new RedissonReactive(config); if (config.isReferenceEnabled()) { react.enableRedissonReferenceSupport(); } return react; }
class class_name[name] begin[{] method[createReactive, return_type[type[RedissonReactiveClient]], modifier[public static], parameter[config]] begin[{] local_variable[type[RedissonReactive], react] if[call[config.isReferenceEnabled, parameter[]]] begin[{] call[react.enableRedissonReferenceSupport, parameter[]] else begin[{] None end[}] return[member[.react]] end[}] END[}]
Keyword[public] Keyword[static] identifier[RedissonReactiveClient] identifier[createReactive] operator[SEP] identifier[Config] identifier[config] operator[SEP] { identifier[RedissonReactive] identifier[react] operator[=] Keyword[new] identifier[RedissonReactive] operator[SEP] identifier[config] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[isReferenceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[react] operator[SEP] identifier[enableRedissonReferenceSupport] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[react] operator[SEP] }
public List<String> createReviews(String teamName, String urlContentType, List<CreateReviewBodyItem> createReviewBody, CreateReviewsOptionalParameter createReviewsOptionalParameter) { return createReviewsWithServiceResponseAsync(teamName, urlContentType, createReviewBody, createReviewsOptionalParameter).toBlocking().single().body(); }
class class_name[name] begin[{] method[createReviews, return_type[type[List]], modifier[public], parameter[teamName, urlContentType, createReviewBody, createReviewsOptionalParameter]] begin[{] return[call[.createReviewsWithServiceResponseAsync, parameter[member[.teamName], member[.urlContentType], member[.createReviewBody], member[.createReviewsOptionalParameter]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[createReviews] operator[SEP] identifier[String] identifier[teamName] , identifier[String] identifier[urlContentType] , identifier[List] operator[<] identifier[CreateReviewBodyItem] operator[>] identifier[createReviewBody] , identifier[CreateReviewsOptionalParameter] identifier[createReviewsOptionalParameter] operator[SEP] { Keyword[return] identifier[createReviewsWithServiceResponseAsync] operator[SEP] identifier[teamName] , identifier[urlContentType] , identifier[createReviewBody] , identifier[createReviewsOptionalParameter] operator[SEP] operator[SEP] identifier[toBlocking] operator[SEP] operator[SEP] operator[SEP] identifier[single] operator[SEP] operator[SEP] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] }
public static String identityToString(Object o) { return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o)); }
class class_name[name] begin[{] method[identityToString, return_type[type[String]], modifier[public static], parameter[o]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=o, selectors=[MethodInvocation(arguments=[], member=getName, 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='@'), operator=+), operandr=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=identityHashCode, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None)], member=toHexString, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), operator=+), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null))] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[identityToString] operator[SEP] identifier[Object] identifier[o] operator[SEP] { Keyword[return] identifier[o] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[o] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[Integer] operator[SEP] identifier[toHexString] operator[SEP] identifier[System] operator[SEP] identifier[identityHashCode] operator[SEP] identifier[o] operator[SEP] operator[SEP] operator[SEP] }
public Pair<RangeBigInteger,RangeBigInteger> removeIntersect(RangeBigInteger o) { if (o.max.compareTo(min) < 0 || o.min.compareTo(max) > 0) // o is outside: no intersection return new Pair<>(copy(), null); if (o.min.compareTo(min) <= 0) { // nothing before if (o.max.compareTo(max) >= 0) return new Pair<>(null, null); // o is fully overlapping this return new Pair<>(null, new RangeBigInteger(o.max.add(BigInteger.ONE), max)); } if (o.max.compareTo(max) >= 0) { // nothing after return new Pair<>(new RangeBigInteger(min, o.min.subtract(BigInteger.ONE)), null); } // in the middle return new Pair<>(new RangeBigInteger(min, o.min.subtract(BigInteger.ONE)), new RangeBigInteger(o.max.add(BigInteger.ONE), max)); }
class class_name[name] begin[{] method[removeIntersect, return_type[type[Pair]], modifier[public], parameter[o]] begin[{] if[binary_operation[binary_operation[call[o.max.compareTo, parameter[member[.min]]], <, literal[0]], ||, binary_operation[call[o.min.compareTo, parameter[member[.max]]], >, literal[0]]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=copy, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), 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=[], dimensions=None, name=Pair, sub_type=None))] else begin[{] None end[}] if[binary_operation[call[o.min.compareTo, parameter[member[.min]]], <=, literal[0]]] begin[{] if[binary_operation[call[o.max.compareTo, parameter[member[.max]]], >=, literal[0]]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), 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=[], dimensions=None, name=Pair, sub_type=None))] else begin[{] None end[}] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=ONE, postfix_operators=[], prefix_operators=[], qualifier=BigInteger, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=o.max, selectors=[], type_arguments=None), MemberReference(member=max, 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=RangeBigInteger, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=Pair, sub_type=None))] else begin[{] None end[}] if[binary_operation[call[o.max.compareTo, parameter[member[.max]]], >=, literal[0]]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=min, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=ONE, postfix_operators=[], prefix_operators=[], qualifier=BigInteger, selectors=[])], member=subtract, postfix_operators=[], prefix_operators=[], qualifier=o.min, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RangeBigInteger, sub_type=None)), 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=[], dimensions=None, name=Pair, sub_type=None))] else begin[{] None end[}] return[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=min, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=ONE, postfix_operators=[], prefix_operators=[], qualifier=BigInteger, selectors=[])], member=subtract, postfix_operators=[], prefix_operators=[], qualifier=o.min, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RangeBigInteger, sub_type=None)), ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=ONE, postfix_operators=[], prefix_operators=[], qualifier=BigInteger, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=o.max, selectors=[], type_arguments=None), MemberReference(member=max, 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=RangeBigInteger, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=Pair, sub_type=None))] end[}] END[}]
Keyword[public] identifier[Pair] operator[<] identifier[RangeBigInteger] , identifier[RangeBigInteger] operator[>] identifier[removeIntersect] operator[SEP] identifier[RangeBigInteger] identifier[o] operator[SEP] { Keyword[if] operator[SEP] identifier[o] operator[SEP] identifier[max] operator[SEP] identifier[compareTo] operator[SEP] identifier[min] operator[SEP] operator[<] Other[0] operator[||] identifier[o] operator[SEP] identifier[min] operator[SEP] identifier[compareTo] operator[SEP] identifier[max] operator[SEP] operator[>] Other[0] operator[SEP] Keyword[return] Keyword[new] identifier[Pair] operator[<] operator[>] operator[SEP] identifier[copy] operator[SEP] operator[SEP] , Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[o] operator[SEP] identifier[min] operator[SEP] identifier[compareTo] operator[SEP] identifier[min] operator[SEP] operator[<=] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[o] operator[SEP] identifier[max] operator[SEP] identifier[compareTo] operator[SEP] identifier[max] operator[SEP] operator[>=] Other[0] operator[SEP] Keyword[return] Keyword[new] identifier[Pair] operator[<] operator[>] operator[SEP] Other[null] , Other[null] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[Pair] operator[<] operator[>] operator[SEP] Other[null] , Keyword[new] identifier[RangeBigInteger] operator[SEP] identifier[o] operator[SEP] identifier[max] operator[SEP] identifier[add] operator[SEP] identifier[BigInteger] operator[SEP] identifier[ONE] operator[SEP] , identifier[max] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[o] operator[SEP] identifier[max] operator[SEP] identifier[compareTo] operator[SEP] identifier[max] operator[SEP] operator[>=] Other[0] operator[SEP] { Keyword[return] Keyword[new] identifier[Pair] operator[<] operator[>] operator[SEP] Keyword[new] identifier[RangeBigInteger] operator[SEP] identifier[min] , identifier[o] operator[SEP] identifier[min] operator[SEP] identifier[subtract] operator[SEP] identifier[BigInteger] operator[SEP] identifier[ONE] operator[SEP] operator[SEP] , Other[null] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[Pair] operator[<] operator[>] operator[SEP] Keyword[new] identifier[RangeBigInteger] operator[SEP] identifier[min] , identifier[o] operator[SEP] identifier[min] operator[SEP] identifier[subtract] operator[SEP] identifier[BigInteger] operator[SEP] identifier[ONE] operator[SEP] operator[SEP] , Keyword[new] identifier[RangeBigInteger] operator[SEP] identifier[o] operator[SEP] identifier[max] operator[SEP] identifier[add] operator[SEP] identifier[BigInteger] operator[SEP] identifier[ONE] operator[SEP] , identifier[max] operator[SEP] operator[SEP] operator[SEP] }