code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void write(final PrintWriter writer, final UicStats stats) { writer.println("<dl>"); writer.print("<dt>Total root wcomponents found in UIC</dt>"); writer.println("<dd>" + stats.getRootWCs().size() + "</dd>"); writer.print("<dt>Size of UIC (by serialization)</dt>"); writer.println("<dd>" + stats.getOverallSerializedSize() + "</dd>"); writer.print("<dt>UI</dt>"); writer.println("<dd>" + stats.getUI().getClass().getName() + "</dd>"); writer.println("</dl>"); for (Iterator<WComponent> it = stats.getWCsAnalysed(); it.hasNext();) { WComponent comp = it.next(); Map<WComponent, UicStats.Stat> treeStats = stats.getWCTreeStats(comp); writer.println("<br /><strong>Analysed component:</strong> " + comp); writer.println("<br /><strong>Number of components in tree:</strong> " + treeStats.size()); writeHeader(writer); writeProfileForTree(writer, treeStats); writeFooter(writer); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[writer, stats]] begin[{] call[writer.println, parameter[literal["<dl>"]]] call[writer.print, parameter[literal["<dt>Total root wcomponents found in UIC</dt>"]]] call[writer.println, parameter[binary_operation[binary_operation[literal["<dd>"], +, call[stats.getRootWCs, parameter[]]], +, literal["</dd>"]]]] call[writer.print, parameter[literal["<dt>Size of UIC (by serialization)</dt>"]]] call[writer.println, parameter[binary_operation[binary_operation[literal["<dd>"], +, call[stats.getOverallSerializedSize, parameter[]]], +, literal["</dd>"]]]] call[writer.print, parameter[literal["<dt>UI</dt>"]]] call[writer.println, parameter[binary_operation[binary_operation[literal["<dd>"], +, call[stats.getUI, parameter[]]], +, literal["</dd>"]]]] call[writer.println, parameter[literal["</dl>"]]] 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=comp)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=WComponent, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=comp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getWCTreeStats, postfix_operators=[], prefix_operators=[], qualifier=stats, selectors=[], type_arguments=None), name=treeStats)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=WComponent, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=UicStats, sub_type=ReferenceType(arguments=None, dimensions=None, name=Stat, sub_type=None)))], dimensions=[], name=Map, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="<br /><strong>Analysed component:</strong> "), operandr=MemberReference(member=comp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=println, postfix_operators=[], prefix_operators=[], qualifier=writer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="<br /><strong>Number of components in tree:</strong> "), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=treeStats, selectors=[], type_arguments=None), operator=+)], member=println, postfix_operators=[], prefix_operators=[], qualifier=writer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=writer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=writeHeader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=writer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=treeStats, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=writeProfileForTree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=writer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=writeFooter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=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=getWCsAnalysed, postfix_operators=[], prefix_operators=[], qualifier=stats, selectors=[], type_arguments=None), name=it)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=WComponent, sub_type=None))], dimensions=[], name=Iterator, sub_type=None)), update=None), label=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[PrintWriter] identifier[writer] , Keyword[final] identifier[UicStats] identifier[stats] operator[SEP] { identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[print] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[stats] operator[SEP] identifier[getRootWCs] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[print] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[stats] operator[SEP] identifier[getOverallSerializedSize] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[print] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[stats] operator[SEP] identifier[getUI] operator[SEP] operator[SEP] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Iterator] operator[<] identifier[WComponent] operator[>] identifier[it] operator[=] identifier[stats] operator[SEP] identifier[getWCsAnalysed] operator[SEP] operator[SEP] operator[SEP] identifier[it] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[WComponent] identifier[comp] operator[=] identifier[it] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[WComponent] , identifier[UicStats] operator[SEP] identifier[Stat] operator[>] identifier[treeStats] operator[=] identifier[stats] operator[SEP] identifier[getWCTreeStats] operator[SEP] identifier[comp] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[comp] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[treeStats] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[writeHeader] operator[SEP] identifier[writer] operator[SEP] operator[SEP] identifier[writeProfileForTree] operator[SEP] identifier[writer] , identifier[treeStats] operator[SEP] operator[SEP] identifier[writeFooter] operator[SEP] identifier[writer] operator[SEP] operator[SEP] } }
public VPackSlice serialize(final Object entity) throws VPackParserException { return serialize(entity, new SerializeOptions().type(entity.getClass())); }
class class_name[name] begin[{] method[serialize, return_type[type[VPackSlice]], modifier[public], parameter[entity]] begin[{] return[call[.serialize, parameter[member[.entity], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=entity, selectors=[], type_arguments=None)], member=type, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=SerializeOptions, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[VPackSlice] identifier[serialize] operator[SEP] Keyword[final] identifier[Object] identifier[entity] operator[SEP] Keyword[throws] identifier[VPackParserException] { Keyword[return] identifier[serialize] operator[SEP] identifier[entity] , Keyword[new] identifier[SerializeOptions] operator[SEP] operator[SEP] operator[SEP] identifier[type] operator[SEP] identifier[entity] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public Matrix4d rotateLocalZ(double ang, Matrix4d dest) { double sin = Math.sin(ang); double cos = Math.cosFromSin(sin, ang); double nm00 = cos * m00 - sin * m01; double nm01 = sin * m00 + cos * m01; double nm10 = cos * m10 - sin * m11; double nm11 = sin * m10 + cos * m11; double nm20 = cos * m20 - sin * m21; double nm21 = sin * m20 + cos * m21; double nm30 = cos * m30 - sin * m31; double nm31 = sin * m30 + cos * m31; dest.m00 = nm00; dest.m01 = nm01; dest.m02 = m02; dest.m03 = m03; dest.m10 = nm10; dest.m11 = nm11; dest.m12 = m12; dest.m13 = m13; dest.m20 = nm20; dest.m21 = nm21; dest.m22 = m22; dest.m23 = m23; dest.m30 = nm30; dest.m31 = nm31; dest.m32 = m32; dest.m33 = m33; dest.properties = properties & ~(PROPERTY_PERSPECTIVE | PROPERTY_IDENTITY | PROPERTY_TRANSLATION); return dest; }
class class_name[name] begin[{] method[rotateLocalZ, return_type[type[Matrix4d]], modifier[public], parameter[ang, dest]] begin[{] local_variable[type[double], sin] local_variable[type[double], cos] local_variable[type[double], nm00] local_variable[type[double], nm01] local_variable[type[double], nm10] local_variable[type[double], nm11] local_variable[type[double], nm20] local_variable[type[double], nm21] local_variable[type[double], nm30] local_variable[type[double], nm31] assign[member[dest.m00], member[.nm00]] assign[member[dest.m01], member[.nm01]] assign[member[dest.m02], member[.m02]] assign[member[dest.m03], member[.m03]] assign[member[dest.m10], member[.nm10]] assign[member[dest.m11], member[.nm11]] assign[member[dest.m12], member[.m12]] assign[member[dest.m13], member[.m13]] assign[member[dest.m20], member[.nm20]] assign[member[dest.m21], member[.nm21]] assign[member[dest.m22], member[.m22]] assign[member[dest.m23], member[.m23]] assign[member[dest.m30], member[.nm30]] assign[member[dest.m31], member[.nm31]] assign[member[dest.m32], member[.m32]] assign[member[dest.m33], member[.m33]] assign[member[dest.properties], binary_operation[member[.properties], &, binary_operation[binary_operation[member[.PROPERTY_PERSPECTIVE], |, member[.PROPERTY_IDENTITY]], |, member[.PROPERTY_TRANSLATION]]]] return[member[.dest]] end[}] END[}]
Keyword[public] identifier[Matrix4d] identifier[rotateLocalZ] operator[SEP] Keyword[double] identifier[ang] , identifier[Matrix4d] identifier[dest] operator[SEP] { Keyword[double] identifier[sin] operator[=] identifier[Math] operator[SEP] identifier[sin] operator[SEP] identifier[ang] operator[SEP] operator[SEP] Keyword[double] identifier[cos] operator[=] identifier[Math] operator[SEP] identifier[cosFromSin] operator[SEP] identifier[sin] , identifier[ang] operator[SEP] operator[SEP] Keyword[double] identifier[nm00] operator[=] identifier[cos] operator[*] identifier[m00] operator[-] identifier[sin] operator[*] identifier[m01] operator[SEP] Keyword[double] identifier[nm01] operator[=] identifier[sin] operator[*] identifier[m00] operator[+] identifier[cos] operator[*] identifier[m01] operator[SEP] Keyword[double] identifier[nm10] operator[=] identifier[cos] operator[*] identifier[m10] operator[-] identifier[sin] operator[*] identifier[m11] operator[SEP] Keyword[double] identifier[nm11] operator[=] identifier[sin] operator[*] identifier[m10] operator[+] identifier[cos] operator[*] identifier[m11] operator[SEP] Keyword[double] identifier[nm20] operator[=] identifier[cos] operator[*] identifier[m20] operator[-] identifier[sin] operator[*] identifier[m21] operator[SEP] Keyword[double] identifier[nm21] operator[=] identifier[sin] operator[*] identifier[m20] operator[+] identifier[cos] operator[*] identifier[m21] operator[SEP] Keyword[double] identifier[nm30] operator[=] identifier[cos] operator[*] identifier[m30] operator[-] identifier[sin] operator[*] identifier[m31] operator[SEP] Keyword[double] identifier[nm31] operator[=] identifier[sin] operator[*] identifier[m30] operator[+] identifier[cos] operator[*] identifier[m31] operator[SEP] identifier[dest] operator[SEP] identifier[m00] operator[=] identifier[nm00] operator[SEP] identifier[dest] operator[SEP] identifier[m01] operator[=] identifier[nm01] operator[SEP] identifier[dest] operator[SEP] identifier[m02] operator[=] identifier[m02] operator[SEP] identifier[dest] operator[SEP] identifier[m03] operator[=] identifier[m03] operator[SEP] identifier[dest] operator[SEP] identifier[m10] operator[=] identifier[nm10] operator[SEP] identifier[dest] operator[SEP] identifier[m11] operator[=] identifier[nm11] operator[SEP] identifier[dest] operator[SEP] identifier[m12] operator[=] identifier[m12] operator[SEP] identifier[dest] operator[SEP] identifier[m13] operator[=] identifier[m13] operator[SEP] identifier[dest] operator[SEP] identifier[m20] operator[=] identifier[nm20] operator[SEP] identifier[dest] operator[SEP] identifier[m21] operator[=] identifier[nm21] operator[SEP] identifier[dest] operator[SEP] identifier[m22] operator[=] identifier[m22] operator[SEP] identifier[dest] operator[SEP] identifier[m23] operator[=] identifier[m23] operator[SEP] identifier[dest] operator[SEP] identifier[m30] operator[=] identifier[nm30] operator[SEP] identifier[dest] operator[SEP] identifier[m31] operator[=] identifier[nm31] operator[SEP] identifier[dest] operator[SEP] identifier[m32] operator[=] identifier[m32] operator[SEP] identifier[dest] operator[SEP] identifier[m33] operator[=] identifier[m33] operator[SEP] identifier[dest] operator[SEP] identifier[properties] operator[=] identifier[properties] operator[&] operator[~] operator[SEP] identifier[PROPERTY_PERSPECTIVE] operator[|] identifier[PROPERTY_IDENTITY] operator[|] identifier[PROPERTY_TRANSLATION] operator[SEP] operator[SEP] Keyword[return] identifier[dest] operator[SEP] }
public static String stringToString(String dateString, String desfmt) { // ISO_DATE_FORMAT = "yyyyMMdd"; if (dateString.trim().length() == 8) { return stringToString(dateString, ISO_DATE_FORMAT, desfmt); } else if (dateString.trim().length() == 10) { // ISO_EXPANDED_DATE_FORMAT = "yyyy-MM-dd"; return stringToString(dateString, ISO_EXPANDED_DATE_FORMAT, desfmt); } else if (dateString.trim().length() == 19) { // DATETIME_PATTERN = "yyyy-MM-dd hh:mm:ss"; return stringToString(dateString.substring(0, 10), ISO_EXPANDED_DATE_FORMAT, desfmt); } else if (dateString.trim().length() == 11) { // CHINESE_EXPANDED_DATE_FORMAT = "yyyy年MM月dd日"; return stringToString(dateString, CHINESE_EXPANDED_DATE_FORMAT, desfmt); } return null; }
class class_name[name] begin[{] method[stringToString, return_type[type[String]], modifier[public static], parameter[dateString, desfmt]] begin[{] if[binary_operation[call[dateString.trim, parameter[]], ==, literal[8]]] begin[{] return[call[.stringToString, parameter[member[.dateString], member[.ISO_DATE_FORMAT], member[.desfmt]]]] else begin[{] if[binary_operation[call[dateString.trim, parameter[]], ==, literal[10]]] begin[{] return[call[.stringToString, parameter[member[.dateString], member[.ISO_EXPANDED_DATE_FORMAT], member[.desfmt]]]] else begin[{] if[binary_operation[call[dateString.trim, parameter[]], ==, literal[19]]] begin[{] return[call[.stringToString, parameter[call[dateString.substring, parameter[literal[0], literal[10]]], member[.ISO_EXPANDED_DATE_FORMAT], member[.desfmt]]]] else begin[{] if[binary_operation[call[dateString.trim, parameter[]], ==, literal[11]]] begin[{] return[call[.stringToString, parameter[member[.dateString], member[.CHINESE_EXPANDED_DATE_FORMAT], member[.desfmt]]]] else begin[{] None end[}] end[}] end[}] end[}] return[literal[null]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[stringToString] operator[SEP] identifier[String] identifier[dateString] , identifier[String] identifier[desfmt] operator[SEP] { Keyword[if] operator[SEP] identifier[dateString] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[8] operator[SEP] { Keyword[return] identifier[stringToString] operator[SEP] identifier[dateString] , identifier[ISO_DATE_FORMAT] , identifier[desfmt] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[dateString] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[10] operator[SEP] { Keyword[return] identifier[stringToString] operator[SEP] identifier[dateString] , identifier[ISO_EXPANDED_DATE_FORMAT] , identifier[desfmt] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[dateString] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[19] operator[SEP] { Keyword[return] identifier[stringToString] operator[SEP] identifier[dateString] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[10] operator[SEP] , identifier[ISO_EXPANDED_DATE_FORMAT] , identifier[desfmt] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[dateString] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[11] operator[SEP] { Keyword[return] identifier[stringToString] operator[SEP] identifier[dateString] , identifier[CHINESE_EXPANDED_DATE_FORMAT] , identifier[desfmt] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
public void marshall(DeleteDirectConnectGatewayRequest deleteDirectConnectGatewayRequest, ProtocolMarshaller protocolMarshaller) { if (deleteDirectConnectGatewayRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteDirectConnectGatewayRequest.getDirectConnectGatewayId(), DIRECTCONNECTGATEWAYID_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[deleteDirectConnectGatewayRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteDirectConnectGatewayRequest], ==, 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=getDirectConnectGatewayId, postfix_operators=[], prefix_operators=[], qualifier=deleteDirectConnectGatewayRequest, selectors=[], type_arguments=None), MemberReference(member=DIRECTCONNECTGATEWAYID_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[DeleteDirectConnectGatewayRequest] identifier[deleteDirectConnectGatewayRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteDirectConnectGatewayRequest] 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[deleteDirectConnectGatewayRequest] operator[SEP] identifier[getDirectConnectGatewayId] operator[SEP] operator[SEP] , identifier[DIRECTCONNECTGATEWAYID_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public static File findInstanceResourcesDirectory( File applicationFilesDirectory, Instance instance ) { return findInstanceResourcesDirectory( applicationFilesDirectory, instance.getComponent()); }
class class_name[name] begin[{] method[findInstanceResourcesDirectory, return_type[type[File]], modifier[public static], parameter[applicationFilesDirectory, instance]] begin[{] return[call[.findInstanceResourcesDirectory, parameter[member[.applicationFilesDirectory], call[instance.getComponent, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[File] identifier[findInstanceResourcesDirectory] operator[SEP] identifier[File] identifier[applicationFilesDirectory] , identifier[Instance] identifier[instance] operator[SEP] { Keyword[return] identifier[findInstanceResourcesDirectory] operator[SEP] identifier[applicationFilesDirectory] , identifier[instance] operator[SEP] identifier[getComponent] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static <T> AbstractSequentialListJsonDeserializer<T> newInstance( JsonDeserializer<T> deserializer ) { return new AbstractSequentialListJsonDeserializer<T>( deserializer ); }
class class_name[name] begin[{] method[newInstance, return_type[type[AbstractSequentialListJsonDeserializer]], modifier[public static], parameter[deserializer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=deserializer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=None, name=AbstractSequentialListJsonDeserializer, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[AbstractSequentialListJsonDeserializer] operator[<] identifier[T] operator[>] identifier[newInstance] operator[SEP] identifier[JsonDeserializer] operator[<] identifier[T] operator[>] identifier[deserializer] operator[SEP] { Keyword[return] Keyword[new] identifier[AbstractSequentialListJsonDeserializer] operator[<] identifier[T] operator[>] operator[SEP] identifier[deserializer] operator[SEP] operator[SEP] }
private double getHalfLogDeterminant(CholeskyDecomposition chol) { double[][] l = chol.getL(); double logdet = FastMath.log(l[0][0]); for(int i = 1; i < l.length; i++) { // We get half the log(det), because we did not square values here. logdet += FastMath.log(l[i][i]); } return logdet; }
class class_name[name] begin[{] method[getHalfLogDeterminant, return_type[type[double]], modifier[private], parameter[chol]] begin[{] local_variable[type[double], l] local_variable[type[double], logdet] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=logdet, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=log, postfix_operators=[], prefix_operators=[], qualifier=FastMath, selectors=[], type_arguments=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=l, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.logdet]] end[}] END[}]
Keyword[private] Keyword[double] identifier[getHalfLogDeterminant] operator[SEP] identifier[CholeskyDecomposition] identifier[chol] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[l] operator[=] identifier[chol] operator[SEP] identifier[getL] operator[SEP] operator[SEP] operator[SEP] Keyword[double] identifier[logdet] operator[=] identifier[FastMath] operator[SEP] identifier[log] operator[SEP] identifier[l] operator[SEP] Other[0] operator[SEP] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] identifier[i] operator[<] identifier[l] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[logdet] operator[+=] identifier[FastMath] operator[SEP] identifier[log] operator[SEP] identifier[l] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[logdet] operator[SEP] }
private static void startNetworkServices() { // We've rebooted the JVM recently. Tell other Nodes they can ignore task // prior tasks by us. Do this before we receive any packets UDPRebooted.T.reboot.broadcast(); // Start the MultiReceiverThread, to listen for multi-cast requests from // other Cloud Nodes. There should be only 1 of these, and it never shuts // down. Started soon, so we can start parsing multi-cast UDP packets new MultiReceiverThread().start(); // Start the Persistent meta-data cleaner thread, which updates the K/V // mappings periodically to disk. There should be only 1 of these, and it // never shuts down. Needs to start BEFORE the HeartBeatThread to build // an initial histogram state. Cleaner.THE_CLEANER.start(); // Start the TCPReceiverThread, to listen for TCP requests from other Cloud // Nodes. There should be only 1 of these, and it never shuts down. new TCPReceiverThread(NetworkInit._tcpSocket).start(); }
class class_name[name] begin[{] method[startNetworkServices, return_type[void], modifier[private static], parameter[]] begin[{] call[UDPRebooted.T.reboot.broadcast, parameter[]] ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=start, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=MultiReceiverThread, sub_type=None)) call[Cleaner.THE_CLEANER.start, parameter[]] ClassCreator(arguments=[MemberReference(member=_tcpSocket, postfix_operators=[], prefix_operators=[], qualifier=NetworkInit, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=start, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=TCPReceiverThread, sub_type=None)) end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[startNetworkServices] operator[SEP] operator[SEP] { identifier[UDPRebooted] operator[SEP] identifier[T] operator[SEP] identifier[reboot] operator[SEP] identifier[broadcast] operator[SEP] operator[SEP] operator[SEP] Keyword[new] identifier[MultiReceiverThread] operator[SEP] operator[SEP] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] identifier[Cleaner] operator[SEP] identifier[THE_CLEANER] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] Keyword[new] identifier[TCPReceiverThread] operator[SEP] identifier[NetworkInit] operator[SEP] identifier[_tcpSocket] operator[SEP] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] }
public ServicePoolBuilder<S> withPartitionContextAnnotationsFrom(Class<? extends S> annotatedServiceClass) { checkNotNull(annotatedServiceClass); _partitionContextSupplier = new AnnotationPartitionContextSupplier(_serviceType, annotatedServiceClass); return this; }
class class_name[name] begin[{] method[withPartitionContextAnnotationsFrom, return_type[type[ServicePoolBuilder]], modifier[public], parameter[annotatedServiceClass]] begin[{] call[.checkNotNull, parameter[member[.annotatedServiceClass]]] assign[member[._partitionContextSupplier], ClassCreator(arguments=[MemberReference(member=_serviceType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=annotatedServiceClass, 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=AnnotationPartitionContextSupplier, sub_type=None))] return[THIS[]] end[}] END[}]
Keyword[public] identifier[ServicePoolBuilder] operator[<] identifier[S] operator[>] identifier[withPartitionContextAnnotationsFrom] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[S] operator[>] identifier[annotatedServiceClass] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[annotatedServiceClass] operator[SEP] operator[SEP] identifier[_partitionContextSupplier] operator[=] Keyword[new] identifier[AnnotationPartitionContextSupplier] operator[SEP] identifier[_serviceType] , identifier[annotatedServiceClass] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public SearchSkillGroupsResult withSkillGroups(SkillGroupData... skillGroups) { if (this.skillGroups == null) { setSkillGroups(new java.util.ArrayList<SkillGroupData>(skillGroups.length)); } for (SkillGroupData ele : skillGroups) { this.skillGroups.add(ele); } return this; }
class class_name[name] begin[{] method[withSkillGroups, return_type[type[SearchSkillGroupsResult]], modifier[public], parameter[skillGroups]] begin[{] if[binary_operation[THIS[member[None.skillGroups]], ==, literal[null]]] begin[{] call[.setSkillGroups, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=skillGroups, selectors=[])], body=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=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=SkillGroupData, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=skillGroups, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=ele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=skillGroups, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ele)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=SkillGroupData, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[SearchSkillGroupsResult] identifier[withSkillGroups] operator[SEP] identifier[SkillGroupData] operator[...] identifier[skillGroups] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[skillGroups] operator[==] Other[null] operator[SEP] { identifier[setSkillGroups] operator[SEP] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[SkillGroupData] operator[>] operator[SEP] identifier[skillGroups] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[SkillGroupData] identifier[ele] operator[:] identifier[skillGroups] operator[SEP] { Keyword[this] operator[SEP] identifier[skillGroups] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
static public long getDateTime(String s, String format) { return getDateTime(s, format, true, false); }
class class_name[name] begin[{] method[getDateTime, return_type[type[long]], modifier[public static], parameter[s, format]] begin[{] return[call[.getDateTime, parameter[member[.s], member[.format], literal[true], literal[false]]]] end[}] END[}]
Keyword[static] Keyword[public] Keyword[long] identifier[getDateTime] operator[SEP] identifier[String] identifier[s] , identifier[String] identifier[format] operator[SEP] { Keyword[return] identifier[getDateTime] operator[SEP] identifier[s] , identifier[format] , literal[boolean] , literal[boolean] operator[SEP] operator[SEP] }
@Override protected void checkParameters() { super.checkParameters(); if (projectFile == null && classLocations.size() == 0 && filesets.size() == 0 && dirsets.size() == 0 && auxAnalyzepath == null) { throw new BuildException("either projectfile, <class/>, <fileset/> or <auxAnalyzepath/> child " + "elements must be defined for task <" + getTaskName() + "/>", getLocation()); } if (outputFormat != null && !("xml".equalsIgnoreCase(outputFormat.trim()) || "xml:withMessages".equalsIgnoreCase(outputFormat.trim()) || "html".equalsIgnoreCase(outputFormat.trim()) || "text".equalsIgnoreCase(outputFormat.trim()) || "xdocs".equalsIgnoreCase(outputFormat.trim()) || "emacs".equalsIgnoreCase(outputFormat.trim()))) { throw new BuildException("output attribute must be either " + "'text', 'xml', 'html', 'xdocs' or 'emacs' for task <" + getTaskName() + "/>", getLocation()); } if (reportLevel != null && !("experimental".equalsIgnoreCase(reportLevel.trim()) || "low".equalsIgnoreCase(reportLevel.trim()) || "medium".equalsIgnoreCase(reportLevel.trim()) || "high".equalsIgnoreCase(reportLevel.trim()))) { throw new BuildException("reportlevel attribute must be either " + "'experimental' or 'low' or 'medium' or 'high' for task <" + getTaskName() + "/>", getLocation()); } // FindBugs allows both, so there's no apparent reason for this check // if ( excludeFile != null && includeFile != null ) { // throw new BuildException("only one of excludeFile and includeFile " + // " attributes may be used in task <" + getTaskName() + "/>", // getLocation()); // } List<String> efforts = Arrays.asList( "min", "less", "default", "more", "max"); if (effort != null && !efforts.contains(effort)) { throw new BuildException("effort attribute must be one of " + efforts); } }
class class_name[name] begin[{] method[checkParameters, return_type[void], modifier[protected], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=checkParameters, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.projectFile], ==, literal[null]], &&, binary_operation[call[classLocations.size, parameter[]], ==, literal[0]]], &&, binary_operation[call[filesets.size, parameter[]], ==, literal[0]]], &&, binary_operation[call[dirsets.size, parameter[]], ==, literal[0]]], &&, binary_operation[member[.auxAnalyzepath], ==, literal[null]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="either projectfile, <class/>, <fileset/> or <auxAnalyzepath/> child "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="elements must be defined for task <"), operator=+), operandr=MethodInvocation(arguments=[], member=getTaskName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/>"), operator=+), MethodInvocation(arguments=[], member=getLocation, 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=BuildException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[binary_operation[member[.outputFormat], !=, literal[null]], &&, binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["xml"], ||, literal["xml:withMessages"]], ||, literal["html"]], ||, literal["text"]], ||, literal["xdocs"]], ||, literal["emacs"]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="output attribute must be either "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'text', 'xml', 'html', 'xdocs' or 'emacs' for task <"), operator=+), operandr=MethodInvocation(arguments=[], member=getTaskName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/>"), operator=+), MethodInvocation(arguments=[], member=getLocation, 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=BuildException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[binary_operation[member[.reportLevel], !=, literal[null]], &&, binary_operation[binary_operation[binary_operation[literal["experimental"], ||, literal["low"]], ||, literal["medium"]], ||, literal["high"]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="reportlevel attribute must be either "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'experimental' or 'low' or 'medium' or 'high' for task <"), operator=+), operandr=MethodInvocation(arguments=[], member=getTaskName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/>"), operator=+), MethodInvocation(arguments=[], member=getLocation, 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=BuildException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[List], efforts] if[binary_operation[binary_operation[member[.effort], !=, literal[null]], &&, call[efforts.contains, parameter[member[.effort]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="effort attribute must be one of "), operandr=MemberReference(member=efforts, 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=BuildException, sub_type=None)), label=None) else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[checkParameters] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[checkParameters] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[projectFile] operator[==] Other[null] operator[&&] identifier[classLocations] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[&&] identifier[filesets] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[&&] identifier[dirsets] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[&&] identifier[auxAnalyzepath] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[BuildException] operator[SEP] literal[String] operator[+] literal[String] operator[+] identifier[getTaskName] operator[SEP] operator[SEP] operator[+] literal[String] , identifier[getLocation] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[outputFormat] operator[!=] Other[null] operator[&&] operator[!] operator[SEP] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[outputFormat] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[outputFormat] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[outputFormat] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[outputFormat] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[outputFormat] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[outputFormat] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[BuildException] operator[SEP] literal[String] operator[+] literal[String] operator[+] identifier[getTaskName] operator[SEP] operator[SEP] operator[+] literal[String] , identifier[getLocation] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[reportLevel] operator[!=] Other[null] operator[&&] operator[!] operator[SEP] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[reportLevel] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[reportLevel] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[reportLevel] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[reportLevel] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[BuildException] operator[SEP] literal[String] operator[+] literal[String] operator[+] identifier[getTaskName] operator[SEP] operator[SEP] operator[+] literal[String] , identifier[getLocation] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[List] operator[<] identifier[String] operator[>] identifier[efforts] operator[=] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] literal[String] , literal[String] , literal[String] , literal[String] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[effort] operator[!=] Other[null] operator[&&] operator[!] identifier[efforts] operator[SEP] identifier[contains] operator[SEP] identifier[effort] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[BuildException] operator[SEP] literal[String] operator[+] identifier[efforts] operator[SEP] operator[SEP] } }
public static double Bhattacharyya(double[] histogram1, double[] histogram2) { int bins = histogram1.length; // histogram bins double b = 0; // Bhattacharyya's coefficient for (int i = 0; i < bins; i++) b += Math.sqrt(histogram1[i]) * Math.sqrt(histogram2[i]); // Bhattacharyya distance between the two distributions return Math.sqrt(1.0 - b); }
class class_name[name] begin[{] method[Bhattacharyya, return_type[type[double]], modifier[public static], parameter[histogram1, histogram2]] begin[{] local_variable[type[int], bins] local_variable[type[double], b] ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=histogram1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=sqrt, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=histogram2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=sqrt, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), operator=*)), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=bins, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[call[Math.sqrt, parameter[binary_operation[literal[1.0], -, member[.b]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[Bhattacharyya] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[histogram1] , Keyword[double] operator[SEP] operator[SEP] identifier[histogram2] operator[SEP] { Keyword[int] identifier[bins] operator[=] identifier[histogram1] operator[SEP] identifier[length] operator[SEP] Keyword[double] identifier[b] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[bins] operator[SEP] identifier[i] operator[++] operator[SEP] identifier[b] operator[+=] identifier[Math] operator[SEP] identifier[sqrt] operator[SEP] identifier[histogram1] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[*] identifier[Math] operator[SEP] identifier[sqrt] operator[SEP] identifier[histogram2] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Math] operator[SEP] identifier[sqrt] operator[SEP] literal[Float] operator[-] identifier[b] operator[SEP] operator[SEP] }
public static WebhookCreator creator(final String pathSessionSid, final Webhook.Target target) { return new WebhookCreator(pathSessionSid, target); }
class class_name[name] begin[{] method[creator, return_type[type[WebhookCreator]], modifier[public static], parameter[pathSessionSid, target]] begin[{] return[ClassCreator(arguments=[MemberReference(member=pathSessionSid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=WebhookCreator, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[WebhookCreator] identifier[creator] operator[SEP] Keyword[final] identifier[String] identifier[pathSessionSid] , Keyword[final] identifier[Webhook] operator[SEP] identifier[Target] identifier[target] operator[SEP] { Keyword[return] Keyword[new] identifier[WebhookCreator] operator[SEP] identifier[pathSessionSid] , identifier[target] operator[SEP] operator[SEP] }
private boolean okayToSendServerStarted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "okayToSendServerStarted", this); synchronized (lockObject) { if (!_sentServerStarted) { if ((_state == STATE_STARTED) && _mainImpl.isServerStarted()) { _sentServerStarted = true; } } } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "okayToSendServerStarted", new Boolean(_sentServerStarted)); return _sentServerStarted; }
class class_name[name] begin[{] method[okayToSendServerStarted, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["okayToSendServerStarted"], THIS[]]] else begin[{] None end[}] SYNCHRONIZED[member[.lockObject]] BEGIN[{] if[member[._sentServerStarted]] begin[{] if[binary_operation[binary_operation[member[._state], ==, member[.STATE_STARTED]], &&, call[_mainImpl.isServerStarted, parameter[]]]] begin[{] assign[member[._sentServerStarted], literal[true]] else begin[{] None end[}] else begin[{] None end[}] END[}] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.exit, parameter[member[.tc], literal["okayToSendServerStarted"], ClassCreator(arguments=[MemberReference(member=_sentServerStarted, 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=Boolean, sub_type=None))]] else begin[{] None end[}] return[member[._sentServerStarted]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[okayToSendServerStarted] operator[SEP] 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[entry] operator[SEP] identifier[tc] , literal[String] , Keyword[this] operator[SEP] operator[SEP] Keyword[synchronized] operator[SEP] identifier[lockObject] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[_sentServerStarted] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[_state] operator[==] identifier[STATE_STARTED] operator[SEP] operator[&&] identifier[_mainImpl] operator[SEP] identifier[isServerStarted] operator[SEP] operator[SEP] operator[SEP] { identifier[_sentServerStarted] operator[=] literal[boolean] 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] , Keyword[new] identifier[Boolean] operator[SEP] identifier[_sentServerStarted] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[_sentServerStarted] operator[SEP] }
public static <E extends Comparable> int binarySearch( List<? extends E> list, E e, KeyPresentBehavior presentBehavior, KeyAbsentBehavior absentBehavior) { checkNotNull(e); return binarySearch(list, e, Ordering.natural(), presentBehavior, absentBehavior); }
class class_name[name] begin[{] method[binarySearch, return_type[type[int]], modifier[public static], parameter[list, e, presentBehavior, absentBehavior]] begin[{] call[.checkNotNull, parameter[member[.e]]] return[call[.binarySearch, parameter[member[.list], member[.e], call[Ordering.natural, parameter[]], member[.presentBehavior], member[.absentBehavior]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Comparable] operator[>] Keyword[int] identifier[binarySearch] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[E] operator[>] identifier[list] , identifier[E] identifier[e] , identifier[KeyPresentBehavior] identifier[presentBehavior] , identifier[KeyAbsentBehavior] identifier[absentBehavior] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[return] identifier[binarySearch] operator[SEP] identifier[list] , identifier[e] , identifier[Ordering] operator[SEP] identifier[natural] operator[SEP] operator[SEP] , identifier[presentBehavior] , identifier[absentBehavior] operator[SEP] operator[SEP] }
protected void adjustServerPrefix() { CmsSSLMode mode = (CmsSSLMode)m_encryption.getValue(); if (simpleReturn(mode)) { return; } String toBeReplaced = "http:"; String newString = "https:"; if (mode.equals(CmsSSLMode.NO) | mode.equals(CmsSSLMode.SECURE_SERVER)) { toBeReplaced = "https:"; newString = "http:"; } if (((CmsSite)m_server.getValue()).getUrl().contains(toBeReplaced)) { String newURL = ((CmsSite)m_server.getValue()).getUrl().replaceAll(toBeReplaced, newString); CmsSite newSite = new CmsSite("dummy", newURL); if (!m_serverContainer.containsId(newSite)) { m_serverContainer.addItem(newSite); } m_server.select(newSite); } }
class class_name[name] begin[{] method[adjustServerPrefix, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[CmsSSLMode], mode] if[call[.simpleReturn, parameter[member[.mode]]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[String], toBeReplaced] local_variable[type[String], newString] if[binary_operation[call[mode.equals, parameter[member[CmsSSLMode.NO]]], |, call[mode.equals, parameter[member[CmsSSLMode.SECURE_SERVER]]]]] begin[{] assign[member[.toBeReplaced], literal["https:"]] assign[member[.newString], literal["http:"]] else begin[{] None end[}] if[Cast(expression=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=m_server, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CmsSite, sub_type=None))] begin[{] local_variable[type[String], newURL] local_variable[type[CmsSite], newSite] if[call[m_serverContainer.containsId, parameter[member[.newSite]]]] begin[{] call[m_serverContainer.addItem, parameter[member[.newSite]]] else begin[{] None end[}] call[m_server.select, parameter[member[.newSite]]] else begin[{] None end[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[adjustServerPrefix] operator[SEP] operator[SEP] { identifier[CmsSSLMode] identifier[mode] operator[=] operator[SEP] identifier[CmsSSLMode] operator[SEP] identifier[m_encryption] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[simpleReturn] operator[SEP] identifier[mode] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] } identifier[String] identifier[toBeReplaced] operator[=] literal[String] operator[SEP] identifier[String] identifier[newString] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[mode] operator[SEP] identifier[equals] operator[SEP] identifier[CmsSSLMode] operator[SEP] identifier[NO] operator[SEP] operator[|] identifier[mode] operator[SEP] identifier[equals] operator[SEP] identifier[CmsSSLMode] operator[SEP] identifier[SECURE_SERVER] operator[SEP] operator[SEP] { identifier[toBeReplaced] operator[=] literal[String] operator[SEP] identifier[newString] operator[=] literal[String] operator[SEP] } Keyword[if] operator[SEP] operator[SEP] operator[SEP] identifier[CmsSite] operator[SEP] identifier[m_server] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getUrl] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[toBeReplaced] operator[SEP] operator[SEP] { identifier[String] identifier[newURL] operator[=] operator[SEP] operator[SEP] identifier[CmsSite] operator[SEP] identifier[m_server] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getUrl] operator[SEP] operator[SEP] operator[SEP] identifier[replaceAll] operator[SEP] identifier[toBeReplaced] , identifier[newString] operator[SEP] operator[SEP] identifier[CmsSite] identifier[newSite] operator[=] Keyword[new] identifier[CmsSite] operator[SEP] literal[String] , identifier[newURL] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[m_serverContainer] operator[SEP] identifier[containsId] operator[SEP] identifier[newSite] operator[SEP] operator[SEP] { identifier[m_serverContainer] operator[SEP] identifier[addItem] operator[SEP] identifier[newSite] operator[SEP] operator[SEP] } identifier[m_server] operator[SEP] identifier[select] operator[SEP] identifier[newSite] operator[SEP] operator[SEP] } }
public static void horizontalInverse(BorderIndex1D border , WlBorderCoef<WlCoef_I32> inverseCoef , GrayI input , GrayI output ) { UtilWavelet.checkShape(output,input); int []trends = new int[ output.width ]; int []details = new int[ output.width ]; boolean isLarger = input.width >= output.width; int paddedWidth = output.width + output.width%2; final int lowerBorder = inverseCoef.getLowerLength()*2; final int upperBorder = output.width - inverseCoef.getUpperLength()*2; border.setLength(output.width+output.width%2); WlCoef_I32 coefficients = inverseCoef.getInnerCoefficients(); final int e = coefficients.denominatorScaling*2; final int f = coefficients.denominatorWavelet*2; final int ef = e*f; final int ef2 = ef/2; for( int y = 0; y < output.height; y++ ) { for( int i = 0; i < details.length; i++ ) { details[i] = 0; trends[i] = 0; } for( int x = 0; x < output.width; x += 2 ) { int a = input.get(x/2,y); int d = input.get(input.width/2+x/2,y); if( x < lowerBorder ) { coefficients = inverseCoef.getBorderCoefficients(x); } else if( x >= upperBorder ) { coefficients = inverseCoef.getBorderCoefficients(x-paddedWidth); } else { coefficients = inverseCoef.getInnerCoefficients(); } final int offsetA = coefficients.offsetScaling; final int offsetB = coefficients.offsetWavelet; final int[] alpha = coefficients.scaling; final int[] beta = coefficients.wavelet; // add the trend for( int i = 0; i < alpha.length; i++ ) { // if an odd image don't update the outer edge int xx = border.getIndex(x+offsetA+i); if( isLarger && xx >= output.width ) continue; trends[xx] += a*alpha[i]; } // add the detail signal for( int i = 0; i < beta.length; i++ ) { int xx = border.getIndex(x+offsetB+i); if( isLarger && xx >= output.width ) continue; details[xx] += d*beta[i]; } } for( int x = 0; x < output.width; x++ ) { output.set(x,y, UtilWavelet.round(trends[x]*f + details[x]*e ,ef2,ef)); } } }
class class_name[name] begin[{] method[horizontalInverse, return_type[void], modifier[public static], parameter[border, inverseCoef, input, output]] begin[{] call[UtilWavelet.checkShape, parameter[member[.output], member[.input]]] local_variable[type[int], trends] local_variable[type[int], details] local_variable[type[boolean], isLarger] local_variable[type[int], paddedWidth] local_variable[type[int], lowerBorder] local_variable[type[int], upperBorder] call[border.setLength, parameter[binary_operation[member[output.width], +, binary_operation[member[output.width], %, literal[2]]]]] local_variable[type[WlCoef_I32], coefficients] local_variable[type[int], e] local_variable[type[int], f] local_variable[type[int], ef] local_variable[type[int], ef2] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=details, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=trends, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), 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=details, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=/), MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=a)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=/), operandr=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=/), operator=+), MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=d)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=lowerBorder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=upperBorder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=coefficients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getInnerCoefficients, postfix_operators=[], prefix_operators=[], qualifier=inverseCoef, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=coefficients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=paddedWidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)], member=getBorderCoefficients, postfix_operators=[], prefix_operators=[], qualifier=inverseCoef, selectors=[], type_arguments=None)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=coefficients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getBorderCoefficients, postfix_operators=[], prefix_operators=[], qualifier=inverseCoef, selectors=[], type_arguments=None)), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=offsetScaling, postfix_operators=[], prefix_operators=[], qualifier=coefficients, selectors=[]), name=offsetA)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=offsetWavelet, postfix_operators=[], prefix_operators=[], qualifier=coefficients, selectors=[]), name=offsetB)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=scaling, postfix_operators=[], prefix_operators=[], qualifier=coefficients, selectors=[]), name=alpha)], modifiers={'final'}, type=BasicType(dimensions=[None], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=wavelet, postfix_operators=[], prefix_operators=[], qualifier=coefficients, selectors=[]), name=beta)], modifiers={'final'}, type=BasicType(dimensions=[None], name=int)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=offsetA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=getIndex, postfix_operators=[], prefix_operators=[], qualifier=border, selectors=[], type_arguments=None), name=xx)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=isLarger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=xx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=output, selectors=[]), operator=>=), operator=&&), else_statement=None, label=None, then_statement=ContinueStatement(goto=None, label=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=trends, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=xx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=+=, value=BinaryOperation(operandl=MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=alpha, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=*)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=alpha, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=offsetB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=getIndex, postfix_operators=[], prefix_operators=[], qualifier=border, selectors=[], type_arguments=None), name=xx)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=isLarger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=xx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=output, selectors=[]), operator=>=), operator=&&), else_statement=None, label=None, then_statement=ContinueStatement(goto=None, label=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=details, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=xx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=+=, value=BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=beta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=*)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=beta, 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)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=output, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=x)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2))]), label=None), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=trends, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=f, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operandr=BinaryOperation(operandl=MemberReference(member=details, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+), MemberReference(member=ef2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=round, postfix_operators=[], prefix_operators=[], qualifier=UtilWavelet, selectors=[], type_arguments=None)], member=set, postfix_operators=[], prefix_operators=[], qualifier=output, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=output, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=x)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=x, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=height, postfix_operators=[], prefix_operators=[], qualifier=output, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=y)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=y, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[horizontalInverse] operator[SEP] identifier[BorderIndex1D] identifier[border] , identifier[WlBorderCoef] operator[<] identifier[WlCoef_I32] operator[>] identifier[inverseCoef] , identifier[GrayI] identifier[input] , identifier[GrayI] identifier[output] operator[SEP] { identifier[UtilWavelet] operator[SEP] identifier[checkShape] operator[SEP] identifier[output] , identifier[input] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[trends] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[output] operator[SEP] identifier[width] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[details] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[output] operator[SEP] identifier[width] operator[SEP] operator[SEP] Keyword[boolean] identifier[isLarger] operator[=] identifier[input] operator[SEP] identifier[width] operator[>=] identifier[output] operator[SEP] identifier[width] operator[SEP] Keyword[int] identifier[paddedWidth] operator[=] identifier[output] operator[SEP] identifier[width] operator[+] identifier[output] operator[SEP] identifier[width] operator[%] Other[2] operator[SEP] Keyword[final] Keyword[int] identifier[lowerBorder] operator[=] identifier[inverseCoef] operator[SEP] identifier[getLowerLength] operator[SEP] operator[SEP] operator[*] Other[2] operator[SEP] Keyword[final] Keyword[int] identifier[upperBorder] operator[=] identifier[output] operator[SEP] identifier[width] operator[-] identifier[inverseCoef] operator[SEP] identifier[getUpperLength] operator[SEP] operator[SEP] operator[*] Other[2] operator[SEP] identifier[border] operator[SEP] identifier[setLength] operator[SEP] identifier[output] operator[SEP] identifier[width] operator[+] identifier[output] operator[SEP] identifier[width] operator[%] Other[2] operator[SEP] operator[SEP] identifier[WlCoef_I32] identifier[coefficients] operator[=] identifier[inverseCoef] operator[SEP] identifier[getInnerCoefficients] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[e] operator[=] identifier[coefficients] operator[SEP] identifier[denominatorScaling] operator[*] Other[2] operator[SEP] Keyword[final] Keyword[int] identifier[f] operator[=] identifier[coefficients] operator[SEP] identifier[denominatorWavelet] operator[*] Other[2] operator[SEP] Keyword[final] Keyword[int] identifier[ef] operator[=] identifier[e] operator[*] identifier[f] operator[SEP] Keyword[final] Keyword[int] identifier[ef2] operator[=] identifier[ef] operator[/] Other[2] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[y] operator[=] Other[0] operator[SEP] identifier[y] operator[<] identifier[output] operator[SEP] identifier[height] operator[SEP] identifier[y] operator[++] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[details] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[details] operator[SEP] identifier[i] operator[SEP] operator[=] Other[0] operator[SEP] identifier[trends] operator[SEP] identifier[i] operator[SEP] operator[=] Other[0] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[x] operator[=] Other[0] operator[SEP] identifier[x] operator[<] identifier[output] operator[SEP] identifier[width] operator[SEP] identifier[x] operator[+=] Other[2] operator[SEP] { Keyword[int] identifier[a] operator[=] identifier[input] operator[SEP] identifier[get] operator[SEP] identifier[x] operator[/] Other[2] , identifier[y] operator[SEP] operator[SEP] Keyword[int] identifier[d] operator[=] identifier[input] operator[SEP] identifier[get] operator[SEP] identifier[input] operator[SEP] identifier[width] operator[/] Other[2] operator[+] identifier[x] operator[/] Other[2] , identifier[y] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[x] operator[<] identifier[lowerBorder] operator[SEP] { identifier[coefficients] operator[=] identifier[inverseCoef] operator[SEP] identifier[getBorderCoefficients] operator[SEP] identifier[x] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[x] operator[>=] identifier[upperBorder] operator[SEP] { identifier[coefficients] operator[=] identifier[inverseCoef] operator[SEP] identifier[getBorderCoefficients] operator[SEP] identifier[x] operator[-] identifier[paddedWidth] operator[SEP] operator[SEP] } Keyword[else] { identifier[coefficients] operator[=] identifier[inverseCoef] operator[SEP] identifier[getInnerCoefficients] operator[SEP] operator[SEP] operator[SEP] } Keyword[final] Keyword[int] identifier[offsetA] operator[=] identifier[coefficients] operator[SEP] identifier[offsetScaling] operator[SEP] Keyword[final] Keyword[int] identifier[offsetB] operator[=] identifier[coefficients] operator[SEP] identifier[offsetWavelet] operator[SEP] Keyword[final] Keyword[int] operator[SEP] operator[SEP] identifier[alpha] operator[=] identifier[coefficients] operator[SEP] identifier[scaling] operator[SEP] Keyword[final] Keyword[int] operator[SEP] operator[SEP] identifier[beta] operator[=] identifier[coefficients] operator[SEP] identifier[wavelet] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[alpha] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[int] identifier[xx] operator[=] identifier[border] operator[SEP] identifier[getIndex] operator[SEP] identifier[x] operator[+] identifier[offsetA] operator[+] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isLarger] operator[&&] identifier[xx] operator[>=] identifier[output] operator[SEP] identifier[width] operator[SEP] Keyword[continue] operator[SEP] identifier[trends] operator[SEP] identifier[xx] operator[SEP] operator[+=] identifier[a] operator[*] identifier[alpha] operator[SEP] identifier[i] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[beta] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[int] identifier[xx] operator[=] identifier[border] operator[SEP] identifier[getIndex] operator[SEP] identifier[x] operator[+] identifier[offsetB] operator[+] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isLarger] operator[&&] identifier[xx] operator[>=] identifier[output] operator[SEP] identifier[width] operator[SEP] Keyword[continue] operator[SEP] identifier[details] operator[SEP] identifier[xx] operator[SEP] operator[+=] identifier[d] operator[*] identifier[beta] operator[SEP] identifier[i] operator[SEP] operator[SEP] } } Keyword[for] operator[SEP] Keyword[int] identifier[x] operator[=] Other[0] operator[SEP] identifier[x] operator[<] identifier[output] operator[SEP] identifier[width] operator[SEP] identifier[x] operator[++] operator[SEP] { identifier[output] operator[SEP] identifier[set] operator[SEP] identifier[x] , identifier[y] , identifier[UtilWavelet] operator[SEP] identifier[round] operator[SEP] identifier[trends] operator[SEP] identifier[x] operator[SEP] operator[*] identifier[f] operator[+] identifier[details] operator[SEP] identifier[x] operator[SEP] operator[*] identifier[e] , identifier[ef2] , identifier[ef] operator[SEP] operator[SEP] operator[SEP] } } }
private boolean isFilledDependency(long depLong) { int objectNum = (int) ((depLong >> OBJECT_OFFSET) & PREDICATE_MASK); int subjectNum = (int) ((depLong >> SUBJECT_OFFSET) & PREDICATE_MASK); return objectNum >= MAX_ARG_NUM && subjectNum >= MAX_ARG_NUM; }
class class_name[name] begin[{] method[isFilledDependency, return_type[type[boolean]], modifier[private], parameter[depLong]] begin[{] local_variable[type[int], objectNum] local_variable[type[int], subjectNum] return[binary_operation[binary_operation[member[.objectNum], >=, member[.MAX_ARG_NUM]], &&, binary_operation[member[.subjectNum], >=, member[.MAX_ARG_NUM]]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[isFilledDependency] operator[SEP] Keyword[long] identifier[depLong] operator[SEP] { Keyword[int] identifier[objectNum] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] identifier[depLong] operator[>] operator[>] identifier[OBJECT_OFFSET] operator[SEP] operator[&] identifier[PREDICATE_MASK] operator[SEP] operator[SEP] Keyword[int] identifier[subjectNum] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] identifier[depLong] operator[>] operator[>] identifier[SUBJECT_OFFSET] operator[SEP] operator[&] identifier[PREDICATE_MASK] operator[SEP] operator[SEP] Keyword[return] identifier[objectNum] operator[>=] identifier[MAX_ARG_NUM] operator[&&] identifier[subjectNum] operator[>=] identifier[MAX_ARG_NUM] operator[SEP] }
@Override public ManagedChannel shutdownNow() { for (ManagedChannel channel : channels) { if (!channel.isTerminated()) { channel.shutdownNow(); } } return this; }
class class_name[name] begin[{] method[shutdownNow, return_type[type[ManagedChannel]], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=isTerminated, postfix_operators=[], prefix_operators=['!'], qualifier=channel, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=shutdownNow, postfix_operators=[], prefix_operators=[], qualifier=channel, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=channels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=channel)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ManagedChannel, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[ManagedChannel] identifier[shutdownNow] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[ManagedChannel] identifier[channel] operator[:] identifier[channels] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[channel] operator[SEP] identifier[isTerminated] operator[SEP] operator[SEP] operator[SEP] { identifier[channel] operator[SEP] identifier[shutdownNow] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] Keyword[this] operator[SEP] }
public void closeFlow(ClientConnection clientConnection) { final ClientConnectionImpl clientConnectionImpl = (ClientConnectionImpl) clientConnection; int flow = clientConnectionImpl.getFlowId(); log.info("Closing Flow {} for endpoint {}", flow, clientConnectionImpl.getConnectionName()); flowIdReplyProcessorMap.remove(flow); }
class class_name[name] begin[{] method[closeFlow, return_type[void], modifier[public], parameter[clientConnection]] begin[{] local_variable[type[ClientConnectionImpl], clientConnectionImpl] local_variable[type[int], flow] call[log.info, parameter[literal["Closing Flow {} for endpoint {}"], member[.flow], call[clientConnectionImpl.getConnectionName, parameter[]]]] call[flowIdReplyProcessorMap.remove, parameter[member[.flow]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[closeFlow] operator[SEP] identifier[ClientConnection] identifier[clientConnection] operator[SEP] { Keyword[final] identifier[ClientConnectionImpl] identifier[clientConnectionImpl] operator[=] operator[SEP] identifier[ClientConnectionImpl] operator[SEP] identifier[clientConnection] operator[SEP] Keyword[int] identifier[flow] operator[=] identifier[clientConnectionImpl] operator[SEP] identifier[getFlowId] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[flow] , identifier[clientConnectionImpl] operator[SEP] identifier[getConnectionName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[flowIdReplyProcessorMap] operator[SEP] identifier[remove] operator[SEP] identifier[flow] operator[SEP] operator[SEP] }
protected <P> O defaultVisit(Rule<P> rule, P premise, ContextPremises premises, ClassInferenceProducer producer) { if (LOGGER_.isTraceEnabled()) { LOGGER_.trace("ignore {} by {} in {}", premise, rule, premises); } return null; }
class class_name[name] begin[{] method[defaultVisit, return_type[type[O]], modifier[protected], parameter[rule, premise, premises, producer]] begin[{] if[call[LOGGER_.isTraceEnabled, parameter[]]] begin[{] call[LOGGER_.trace, parameter[literal["ignore {} by {} in {}"], member[.premise], member[.rule], member[.premises]]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[protected] operator[<] identifier[P] operator[>] identifier[O] identifier[defaultVisit] operator[SEP] identifier[Rule] operator[<] identifier[P] operator[>] identifier[rule] , identifier[P] identifier[premise] , identifier[ContextPremises] identifier[premises] , identifier[ClassInferenceProducer] identifier[producer] operator[SEP] { Keyword[if] operator[SEP] identifier[LOGGER_] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[LOGGER_] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[premise] , identifier[rule] , identifier[premises] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
@Override protected String doBuildColumnString(String dm) { StringBuilder sb = new StringBuilder(); sb.append(dm).append(accessType); sb.append(dm).append(clientIp); sb.append(dm).append(hitCount); sb.append(dm).append(hitCountRelation); sb.append(dm).append(languages); sb.append(dm).append(queryId); sb.append(dm).append(queryOffset); sb.append(dm).append(queryPageSize); sb.append(dm).append(queryTime); sb.append(dm).append(referer); sb.append(dm).append(requestedAt); sb.append(dm).append(responseTime); sb.append(dm).append(roles); sb.append(dm).append(searchWord); sb.append(dm).append(user); sb.append(dm).append(userAgent); sb.append(dm).append(userInfoId); sb.append(dm).append(userSessionId); sb.append(dm).append(virtualHost); if (sb.length() > dm.length()) { sb.delete(0, dm.length()); } sb.insert(0, "{").append("}"); return sb.toString(); }
class class_name[name] begin[{] method[doBuildColumnString, return_type[type[String]], modifier[protected], parameter[dm]] begin[{] local_variable[type[StringBuilder], sb] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] if[binary_operation[call[sb.length, parameter[]], >, call[dm.length, parameter[]]]] begin[{] call[sb.delete, parameter[literal[0], call[dm.length, parameter[]]]] else begin[{] None end[}] call[sb.insert, parameter[literal[0], literal["{"]]] return[call[sb.toString, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[doBuildColumnString] operator[SEP] identifier[String] identifier[dm] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[accessType] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[clientIp] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[hitCount] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[hitCountRelation] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[languages] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[queryId] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[queryOffset] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[queryPageSize] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[queryTime] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[referer] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[requestedAt] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[responseTime] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[roles] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[searchWord] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[user] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[userAgent] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[userInfoId] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[userSessionId] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[dm] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[virtualHost] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sb] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] identifier[dm] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] { identifier[sb] operator[SEP] identifier[delete] operator[SEP] Other[0] , identifier[dm] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[sb] operator[SEP] identifier[insert] operator[SEP] Other[0] , literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public void setIgnoredEnvVars (final Set <String> aCollection) { ignoredEnvVars = new HashSet <> (); if (aCollection != null) { for (final String sName : aCollection) if (StringHelper.hasText (sName)) if (!ignoredEnvVars.add (sName)) getLog ().warn ("The ignored environment variable '" + sName + "' is contained more than once"); } }
class class_name[name] begin[{] method[setIgnoredEnvVars, return_type[void], modifier[public], parameter[aCollection]] begin[{] assign[member[.ignoredEnvVars], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=HashSet, sub_type=None))] if[binary_operation[member[.aCollection], !=, literal[null]]] begin[{] ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=sName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasText, postfix_operators=[], prefix_operators=[], qualifier=StringHelper, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=sName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=['!'], qualifier=ignoredEnvVars, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[], member=getLog, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The ignored environment variable '"), operandr=MemberReference(member=sName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="' is contained more than once"), operator=+)], member=warn, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None))), control=EnhancedForControl(iterable=MemberReference(member=aCollection, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=sName)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setIgnoredEnvVars] operator[SEP] Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[aCollection] operator[SEP] { identifier[ignoredEnvVars] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aCollection] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[String] identifier[sName] operator[:] identifier[aCollection] operator[SEP] Keyword[if] operator[SEP] identifier[StringHelper] operator[SEP] identifier[hasText] operator[SEP] identifier[sName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[ignoredEnvVars] operator[SEP] identifier[add] operator[SEP] identifier[sName] operator[SEP] operator[SEP] identifier[getLog] operator[SEP] operator[SEP] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] identifier[sName] operator[+] literal[String] operator[SEP] operator[SEP] } }
@Nonnull @Override public Seq<E> distinct() { final HashSet<E> elements = new HashSet<>(); final SeqBuilder<E> builder = Seq.builder(size()); forEach(element -> { if (!elements.contains(element)) { builder.add(element); elements.add(element); } }); return builder.result(); }
class class_name[name] begin[{] method[distinct, return_type[type[Seq]], modifier[public], parameter[]] begin[{] local_variable[type[HashSet], elements] local_variable[type[SeqBuilder], builder] call[.forEach, parameter[LambdaExpression(body=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=element, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=['!'], qualifier=elements, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=element, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=element, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=elements, selectors=[], type_arguments=None), label=None)]))], parameters=[MemberReference(member=element, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])])]] return[call[builder.result, parameter[]]] end[}] END[}]
annotation[@] identifier[Nonnull] annotation[@] identifier[Override] Keyword[public] identifier[Seq] operator[<] identifier[E] operator[>] identifier[distinct] operator[SEP] operator[SEP] { Keyword[final] identifier[HashSet] operator[<] identifier[E] operator[>] identifier[elements] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[SeqBuilder] operator[<] identifier[E] operator[>] identifier[builder] operator[=] identifier[Seq] operator[SEP] identifier[builder] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[forEach] operator[SEP] identifier[element] operator[->] { Keyword[if] operator[SEP] operator[!] identifier[elements] operator[SEP] identifier[contains] operator[SEP] identifier[element] operator[SEP] operator[SEP] { identifier[builder] operator[SEP] identifier[add] operator[SEP] identifier[element] operator[SEP] operator[SEP] identifier[elements] operator[SEP] identifier[add] operator[SEP] identifier[element] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] Keyword[return] identifier[builder] operator[SEP] identifier[result] operator[SEP] operator[SEP] operator[SEP] }
private void shutdownInitiators() { if (m_iv2Initiators == null) { return; } m_iv2Initiators.descendingMap().values().stream().forEach(p->p.shutdown()); }
class class_name[name] begin[{] method[shutdownInitiators, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.m_iv2Initiators], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] call[m_iv2Initiators.descendingMap, parameter[]] end[}] END[}]
Keyword[private] Keyword[void] identifier[shutdownInitiators] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_iv2Initiators] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } identifier[m_iv2Initiators] operator[SEP] identifier[descendingMap] operator[SEP] operator[SEP] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[forEach] operator[SEP] identifier[p] operator[->] identifier[p] operator[SEP] identifier[shutdown] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public void setProvisionedIops(java.util.Collection<Range> provisionedIops) { if (provisionedIops == null) { this.provisionedIops = null; return; } this.provisionedIops = new com.amazonaws.internal.SdkInternalList<Range>(provisionedIops); }
class class_name[name] begin[{] method[setProvisionedIops, return_type[void], modifier[public], parameter[provisionedIops]] begin[{] if[binary_operation[member[.provisionedIops], ==, literal[null]]] begin[{] assign[THIS[member[None.provisionedIops]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.provisionedIops]], ClassCreator(arguments=[MemberReference(member=provisionedIops, 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=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=amazonaws, sub_type=ReferenceType(arguments=None, dimensions=None, name=internal, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Range, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setProvisionedIops] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[Range] operator[>] identifier[provisionedIops] operator[SEP] { Keyword[if] operator[SEP] identifier[provisionedIops] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[provisionedIops] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[provisionedIops] operator[=] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[Range] operator[>] operator[SEP] identifier[provisionedIops] operator[SEP] operator[SEP] }
public static String[] toStringArrayTrim(Array array) throws PageException { String[] arr = new String[array.size()]; for (int i = 0; i < arr.length; i++) { arr[i] = Caster.toString(array.get(i + 1, "")).trim(); } return arr; }
class class_name[name] begin[{] method[toStringArrayTrim, return_type[type[String]], modifier[public static], parameter[array]] begin[{] local_variable[type[String], arr] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=arr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MethodInvocation(arguments=[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=+), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="")], member=get, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[], type_arguments=None)], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Caster, selectors=[MethodInvocation(arguments=[], member=trim, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=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=arr, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.arr]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[toStringArrayTrim] operator[SEP] identifier[Array] identifier[array] operator[SEP] Keyword[throws] identifier[PageException] { identifier[String] operator[SEP] operator[SEP] identifier[arr] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[array] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[arr] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[arr] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[Caster] operator[SEP] identifier[toString] operator[SEP] identifier[array] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[+] Other[1] , literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[arr] operator[SEP] }
public static List<Object> getRowKeys(List<KeySlice> keySlices, EntityMetadata metadata) { PropertyAccessor<?> accessor = PropertyAccessorFactory.getPropertyAccessor((Field) metadata.getIdAttribute() .getJavaMember()); List<Object> rowKeys = new ArrayList<Object>(); for (KeySlice keySlice : keySlices) { byte[] key = keySlice.getKey(); Object rowKey = accessor.fromBytes(metadata.getIdAttribute().getJavaType(), key); rowKeys.add(rowKey); } return rowKeys; }
class class_name[name] begin[{] method[getRowKeys, return_type[type[List]], modifier[public static], parameter[keySlices, metadata]] begin[{] local_variable[type[PropertyAccessor], accessor] local_variable[type[List], rowKeys] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=keySlice, selectors=[], type_arguments=None), name=key)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getIdAttribute, postfix_operators=[], prefix_operators=[], qualifier=metadata, selectors=[MethodInvocation(arguments=[], member=getJavaType, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fromBytes, postfix_operators=[], prefix_operators=[], qualifier=accessor, selectors=[], type_arguments=None), name=rowKey)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=rowKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=rowKeys, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=keySlices, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=keySlice)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=KeySlice, sub_type=None))), label=None) return[member[.rowKeys]] end[}] END[}]
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Object] operator[>] identifier[getRowKeys] operator[SEP] identifier[List] operator[<] identifier[KeySlice] operator[>] identifier[keySlices] , identifier[EntityMetadata] identifier[metadata] operator[SEP] { identifier[PropertyAccessor] operator[<] operator[?] operator[>] identifier[accessor] operator[=] identifier[PropertyAccessorFactory] operator[SEP] identifier[getPropertyAccessor] operator[SEP] operator[SEP] identifier[Field] operator[SEP] identifier[metadata] operator[SEP] identifier[getIdAttribute] operator[SEP] operator[SEP] operator[SEP] identifier[getJavaMember] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[rowKeys] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Object] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[KeySlice] identifier[keySlice] operator[:] identifier[keySlices] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[=] identifier[keySlice] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[Object] identifier[rowKey] operator[=] identifier[accessor] operator[SEP] identifier[fromBytes] operator[SEP] identifier[metadata] operator[SEP] identifier[getIdAttribute] operator[SEP] operator[SEP] operator[SEP] identifier[getJavaType] operator[SEP] operator[SEP] , identifier[key] operator[SEP] operator[SEP] identifier[rowKeys] operator[SEP] identifier[add] operator[SEP] identifier[rowKey] operator[SEP] operator[SEP] } Keyword[return] identifier[rowKeys] operator[SEP] }
public V get(ResourceType type, PoolInfo poolInfo) { Map<PoolInfo, V> poolInfoMap = typePoolInfoMap.get(type); if (poolInfoMap == null) { return null; } return poolInfoMap.get(poolInfo); }
class class_name[name] begin[{] method[get, return_type[type[V]], modifier[public], parameter[type, poolInfo]] begin[{] local_variable[type[Map], poolInfoMap] if[binary_operation[member[.poolInfoMap], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[poolInfoMap.get, parameter[member[.poolInfo]]]] end[}] END[}]
Keyword[public] identifier[V] identifier[get] operator[SEP] identifier[ResourceType] identifier[type] , identifier[PoolInfo] identifier[poolInfo] operator[SEP] { identifier[Map] operator[<] identifier[PoolInfo] , identifier[V] operator[>] identifier[poolInfoMap] operator[=] identifier[typePoolInfoMap] operator[SEP] identifier[get] operator[SEP] identifier[type] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[poolInfoMap] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[poolInfoMap] operator[SEP] identifier[get] operator[SEP] identifier[poolInfo] operator[SEP] operator[SEP] }
public void clearTextInWebElement(By by){ if(config.commandLogging){ Log.d(config.commandLoggingTag, "clearTextInWebElement("+by+")"); } webUtils.enterTextIntoWebElement(by, ""); }
class class_name[name] begin[{] method[clearTextInWebElement, return_type[void], modifier[public], parameter[by]] begin[{] if[member[config.commandLogging]] begin[{] call[Log.d, parameter[member[config.commandLoggingTag], binary_operation[binary_operation[literal["clearTextInWebElement("], +, member[.by]], +, literal[")"]]]] else begin[{] None end[}] call[webUtils.enterTextIntoWebElement, parameter[member[.by], literal[""]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[clearTextInWebElement] operator[SEP] identifier[By] identifier[by] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[commandLogging] operator[SEP] { identifier[Log] operator[SEP] identifier[d] operator[SEP] identifier[config] operator[SEP] identifier[commandLoggingTag] , literal[String] operator[+] identifier[by] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[webUtils] operator[SEP] identifier[enterTextIntoWebElement] operator[SEP] identifier[by] , literal[String] operator[SEP] operator[SEP] }
protected List<String> getTopicIds() { LinkedList<String> topicIds = new LinkedList<String>(); for (final Entry<String, SpecTopic> specTopicEntry : topics.entrySet()) { topicIds.add(specTopicEntry.getKey()); } return topicIds; }
class class_name[name] begin[{] method[getTopicIds, return_type[type[List]], modifier[protected], parameter[]] begin[{] local_variable[type[LinkedList], topicIds] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=specTopicEntry, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=topicIds, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=topics, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=specTopicEntry)], 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=SpecTopic, sub_type=None))], dimensions=[], name=Entry, sub_type=None))), label=None) return[member[.topicIds]] end[}] END[}]
Keyword[protected] identifier[List] operator[<] identifier[String] operator[>] identifier[getTopicIds] operator[SEP] operator[SEP] { identifier[LinkedList] operator[<] identifier[String] operator[>] identifier[topicIds] operator[=] Keyword[new] identifier[LinkedList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Entry] operator[<] identifier[String] , identifier[SpecTopic] operator[>] identifier[specTopicEntry] operator[:] identifier[topics] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { identifier[topicIds] operator[SEP] identifier[add] operator[SEP] identifier[specTopicEntry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[topicIds] operator[SEP] }
@Override public int doEndTag() throws JspException { String formatted = null; Object input = null; // determine the input by... if (valueSpecified) { // ... reading 'value' attribute input = value; } else { // ... retrieving and trimming our body if (bodyContent != null && bodyContent.getString() != null) { input = bodyContent.getString().trim(); } } if ((input == null) || input.equals("")) { // Spec says: // If value is null or empty, remove the scoped variable // if it is specified (see attributes var and scope). if (var != null) { pageContext.removeAttribute(var, scope); } return EVAL_PAGE; } /* * If 'value' is a String, it is first parsed into an instance of * java.lang.Number */ if (input instanceof String) { try { if (((String) input).indexOf('.') != -1) { input = Double.valueOf((String) input); } else { input = Long.valueOf((String) input); } } catch (NumberFormatException nfe) { throw new JspException( Resources.getMessage("FORMAT_NUMBER_PARSE_ERROR", input), nfe); } } // Determine formatting locale Locale loc = SetLocaleSupport.getFormattingLocale( pageContext, this, true, NumberFormat.getAvailableLocales()); if (loc != null) { // Create formatter NumberFormat formatter = null; if ((pattern != null) && !pattern.equals("")) { // if 'pattern' is specified, 'type' is ignored DecimalFormatSymbols symbols = new DecimalFormatSymbols(loc); formatter = new DecimalFormat(pattern, symbols); } else { formatter = createFormatter(loc); } if (((pattern != null) && !pattern.equals("")) || CURRENCY.equalsIgnoreCase(type)) { try { setCurrency(formatter); } catch (Exception e) { throw new JspException( Resources.getMessage("FORMAT_NUMBER_CURRENCY_ERROR"), e); } } configureFormatter(formatter); formatted = formatter.format(input); } else { // no formatting locale available, use toString() formatted = input.toString(); } if (var != null) { pageContext.setAttribute(var, formatted, scope); } else { try { pageContext.getOut().print(formatted); } catch (IOException ioe) { throw new JspTagException(ioe.toString(), ioe); } } return EVAL_PAGE; }
class class_name[name] begin[{] method[doEndTag, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[String], formatted] local_variable[type[Object], input] if[member[.valueSpecified]] begin[{] assign[member[.input], member[.value]] else begin[{] if[binary_operation[binary_operation[member[.bodyContent], !=, literal[null]], &&, binary_operation[call[bodyContent.getString, parameter[]], !=, literal[null]]]] begin[{] assign[member[.input], call[bodyContent.getString, parameter[]]] else begin[{] None end[}] end[}] if[binary_operation[binary_operation[member[.input], ==, literal[null]], ||, call[input.equals, parameter[literal[""]]]]] begin[{] if[binary_operation[member[.var], !=, literal[null]]] begin[{] call[pageContext.removeAttribute, parameter[member[.var], member[.scope]]] else begin[{] None end[}] return[member[.EVAL_PAGE]] else begin[{] None end[}] if[binary_operation[member[.input], instanceof, type[String]]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=Cast(expression=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), operandr=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), operator=!=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Cast(expression=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Cast(expression=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)), label=None)]))], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="FORMAT_NUMBER_PARSE_ERROR"), MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=Resources, selectors=[], type_arguments=None), MemberReference(member=nfe, 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=JspException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=nfe, types=['NumberFormatException']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] local_variable[type[Locale], loc] if[binary_operation[member[.loc], !=, literal[null]]] begin[{] local_variable[type[NumberFormat], formatter] if[binary_operation[binary_operation[member[.pattern], !=, literal[null]], &&, call[pattern.equals, parameter[literal[""]]]]] begin[{] local_variable[type[DecimalFormatSymbols], symbols] assign[member[.formatter], ClassCreator(arguments=[MemberReference(member=pattern, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=symbols, 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=DecimalFormat, sub_type=None))] else begin[{] assign[member[.formatter], call[.createFormatter, parameter[member[.loc]]]] end[}] if[binary_operation[binary_operation[binary_operation[member[.pattern], !=, literal[null]], &&, call[pattern.equals, parameter[literal[""]]]], ||, call[CURRENCY.equalsIgnoreCase, parameter[member[.type]]]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=formatter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setCurrency, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="FORMAT_NUMBER_CURRENCY_ERROR")], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=Resources, selectors=[], type_arguments=None), 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=JspException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] call[.configureFormatter, parameter[member[.formatter]]] assign[member[.formatted], call[formatter.format, parameter[member[.input]]]] else begin[{] assign[member[.formatted], call[input.toString, parameter[]]] end[}] if[binary_operation[member[.var], !=, literal[null]]] begin[{] call[pageContext.setAttribute, parameter[member[.var], member[.formatted], member[.scope]]] else begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getOut, postfix_operators=[], prefix_operators=[], qualifier=pageContext, selectors=[MethodInvocation(arguments=[MemberReference(member=formatted, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=print, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=ioe, selectors=[], type_arguments=None), MemberReference(member=ioe, 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=JspTagException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ioe, types=['IOException']))], finally_block=None, label=None, resources=None) end[}] return[member[.EVAL_PAGE]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[doEndTag] operator[SEP] operator[SEP] Keyword[throws] identifier[JspException] { identifier[String] identifier[formatted] operator[=] Other[null] operator[SEP] identifier[Object] identifier[input] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[valueSpecified] operator[SEP] { identifier[input] operator[=] identifier[value] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[bodyContent] operator[!=] Other[null] operator[&&] identifier[bodyContent] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[input] operator[=] identifier[bodyContent] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] operator[||] identifier[input] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[var] operator[!=] Other[null] operator[SEP] { identifier[pageContext] operator[SEP] identifier[removeAttribute] operator[SEP] identifier[var] , identifier[scope] operator[SEP] operator[SEP] } Keyword[return] identifier[EVAL_PAGE] operator[SEP] } Keyword[if] operator[SEP] identifier[input] Keyword[instanceof] identifier[String] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[input] operator[SEP] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[!=] operator[-] Other[1] operator[SEP] { identifier[input] operator[=] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[input] operator[SEP] operator[SEP] } Keyword[else] { identifier[input] operator[=] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[input] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[NumberFormatException] identifier[nfe] operator[SEP] { Keyword[throw] Keyword[new] identifier[JspException] operator[SEP] identifier[Resources] operator[SEP] identifier[getMessage] operator[SEP] literal[String] , identifier[input] operator[SEP] , identifier[nfe] operator[SEP] operator[SEP] } } identifier[Locale] identifier[loc] operator[=] identifier[SetLocaleSupport] operator[SEP] identifier[getFormattingLocale] operator[SEP] identifier[pageContext] , Keyword[this] , literal[boolean] , identifier[NumberFormat] operator[SEP] identifier[getAvailableLocales] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[loc] operator[!=] Other[null] operator[SEP] { identifier[NumberFormat] identifier[formatter] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[pattern] operator[!=] Other[null] operator[SEP] operator[&&] operator[!] identifier[pattern] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[DecimalFormatSymbols] identifier[symbols] operator[=] Keyword[new] identifier[DecimalFormatSymbols] operator[SEP] identifier[loc] operator[SEP] operator[SEP] identifier[formatter] operator[=] Keyword[new] identifier[DecimalFormat] operator[SEP] identifier[pattern] , identifier[symbols] operator[SEP] operator[SEP] } Keyword[else] { identifier[formatter] operator[=] identifier[createFormatter] operator[SEP] identifier[loc] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[SEP] operator[SEP] identifier[pattern] operator[!=] Other[null] operator[SEP] operator[&&] operator[!] identifier[pattern] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[||] identifier[CURRENCY] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[type] operator[SEP] operator[SEP] { Keyword[try] { identifier[setCurrency] operator[SEP] identifier[formatter] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[JspException] operator[SEP] identifier[Resources] operator[SEP] identifier[getMessage] operator[SEP] literal[String] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } } identifier[configureFormatter] operator[SEP] identifier[formatter] operator[SEP] operator[SEP] identifier[formatted] operator[=] identifier[formatter] operator[SEP] identifier[format] operator[SEP] identifier[input] operator[SEP] operator[SEP] } Keyword[else] { identifier[formatted] operator[=] identifier[input] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[var] operator[!=] Other[null] operator[SEP] { identifier[pageContext] operator[SEP] identifier[setAttribute] operator[SEP] identifier[var] , identifier[formatted] , identifier[scope] operator[SEP] operator[SEP] } Keyword[else] { Keyword[try] { identifier[pageContext] operator[SEP] identifier[getOut] operator[SEP] operator[SEP] operator[SEP] identifier[print] operator[SEP] identifier[formatted] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[ioe] operator[SEP] { Keyword[throw] Keyword[new] identifier[JspTagException] operator[SEP] identifier[ioe] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[ioe] operator[SEP] operator[SEP] } } Keyword[return] identifier[EVAL_PAGE] operator[SEP] }
public Object invoke(Object target, String... args) throws Exception { if (getter || method.getParameterTypes().length == 0) { return method.invoke(target); } else { Object[] values = TypeConversion.convert(args, method.getParameterTypes()); return method.invoke(target, values); } }
class class_name[name] begin[{] method[invoke, return_type[type[Object]], modifier[public], parameter[target, args]] begin[{] if[binary_operation[member[.getter], ||, binary_operation[call[method.getParameterTypes, parameter[]], ==, literal[0]]]] begin[{] return[call[method.invoke, parameter[member[.target]]]] else begin[{] local_variable[type[Object], values] return[call[method.invoke, parameter[member[.target], member[.values]]]] end[}] end[}] END[}]
Keyword[public] identifier[Object] identifier[invoke] operator[SEP] identifier[Object] identifier[target] , identifier[String] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[getter] operator[||] identifier[method] operator[SEP] identifier[getParameterTypes] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { Keyword[return] identifier[method] operator[SEP] identifier[invoke] operator[SEP] identifier[target] operator[SEP] operator[SEP] } Keyword[else] { identifier[Object] operator[SEP] operator[SEP] identifier[values] operator[=] identifier[TypeConversion] operator[SEP] identifier[convert] operator[SEP] identifier[args] , identifier[method] operator[SEP] identifier[getParameterTypes] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[method] operator[SEP] identifier[invoke] operator[SEP] identifier[target] , identifier[values] operator[SEP] operator[SEP] } }
private final void statement(Data data, Body parent) throws TemplateException { statement(data, parent, data.context); }
class class_name[name] begin[{] method[statement, return_type[void], modifier[final private], parameter[data, parent]] begin[{] call[.statement, parameter[member[.data], member[.parent], member[data.context]]] end[}] END[}]
Keyword[private] Keyword[final] Keyword[void] identifier[statement] operator[SEP] identifier[Data] identifier[data] , identifier[Body] identifier[parent] operator[SEP] Keyword[throws] identifier[TemplateException] { identifier[statement] operator[SEP] identifier[data] , identifier[parent] , identifier[data] operator[SEP] identifier[context] operator[SEP] operator[SEP] }
public ExchangeRate getReversed(ExchangeRate rate){ ConversionQuery reverseQuery = rate.getContext().toQueryBuilder().setBaseCurrency(rate.getCurrency()) .setTermCurrency(rate.getBaseCurrency()).build(); if(isAvailable(reverseQuery)){ return getExchangeRate(reverseQuery); } return null; }
class class_name[name] begin[{] method[getReversed, return_type[type[ExchangeRate]], modifier[public], parameter[rate]] begin[{] local_variable[type[ConversionQuery], reverseQuery] if[call[.isAvailable, parameter[member[.reverseQuery]]]] begin[{] return[call[.getExchangeRate, parameter[member[.reverseQuery]]]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] identifier[ExchangeRate] identifier[getReversed] operator[SEP] identifier[ExchangeRate] identifier[rate] operator[SEP] { identifier[ConversionQuery] identifier[reverseQuery] operator[=] identifier[rate] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] identifier[toQueryBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[setBaseCurrency] operator[SEP] identifier[rate] operator[SEP] identifier[getCurrency] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[setTermCurrency] operator[SEP] identifier[rate] operator[SEP] identifier[getBaseCurrency] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isAvailable] operator[SEP] identifier[reverseQuery] operator[SEP] operator[SEP] { Keyword[return] identifier[getExchangeRate] operator[SEP] identifier[reverseQuery] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
@OnClick(R.id.iv_fan_art) void onFanArtClicked() { Toast.makeText(this, tvShowSelected.getTitle(), Toast.LENGTH_LONG).show(); }
class class_name[name] begin[{] method[onFanArtClicked, return_type[void], modifier[default], parameter[]] begin[{] call[Toast.makeText, parameter[THIS[], call[tvShowSelected.getTitle, parameter[]], member[Toast.LENGTH_LONG]]] end[}] END[}]
annotation[@] identifier[OnClick] operator[SEP] identifier[R] operator[SEP] identifier[id] operator[SEP] identifier[iv_fan_art] operator[SEP] Keyword[void] identifier[onFanArtClicked] operator[SEP] operator[SEP] { identifier[Toast] operator[SEP] identifier[makeText] operator[SEP] Keyword[this] , identifier[tvShowSelected] operator[SEP] identifier[getTitle] operator[SEP] operator[SEP] , identifier[Toast] operator[SEP] identifier[LENGTH_LONG] operator[SEP] operator[SEP] identifier[show] operator[SEP] operator[SEP] operator[SEP] }
public static <T> String marshal(JAXBContext self, T jaxbElement) throws JAXBException { return marshal(self.createMarshaller(), jaxbElement); }
class class_name[name] begin[{] method[marshal, return_type[type[String]], modifier[public static], parameter[self, jaxbElement]] begin[{] return[call[.marshal, parameter[call[self.createMarshaller, parameter[]], member[.jaxbElement]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[String] identifier[marshal] operator[SEP] identifier[JAXBContext] identifier[self] , identifier[T] identifier[jaxbElement] operator[SEP] Keyword[throws] identifier[JAXBException] { Keyword[return] identifier[marshal] operator[SEP] identifier[self] operator[SEP] identifier[createMarshaller] operator[SEP] operator[SEP] , identifier[jaxbElement] operator[SEP] operator[SEP] }
public DistrictList getByOfficeState( String officeId, String stateId) throws VoteSmartException, VoteSmartErrorException { return api.query("District.getByOfficeState", new ArgMap("officeId", officeId, "stateId", stateId), DistrictList.class ); }
class class_name[name] begin[{] method[getByOfficeState, return_type[type[DistrictList]], modifier[public], parameter[officeId, stateId]] begin[{] return[call[api.query, parameter[literal["District.getByOfficeState"], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="officeId"), MemberReference(member=officeId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="stateId"), MemberReference(member=stateId, 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=ArgMap, sub_type=None)), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DistrictList, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[DistrictList] identifier[getByOfficeState] operator[SEP] identifier[String] identifier[officeId] , identifier[String] identifier[stateId] operator[SEP] Keyword[throws] identifier[VoteSmartException] , identifier[VoteSmartErrorException] { Keyword[return] identifier[api] operator[SEP] identifier[query] operator[SEP] literal[String] , Keyword[new] identifier[ArgMap] operator[SEP] literal[String] , identifier[officeId] , literal[String] , identifier[stateId] operator[SEP] , identifier[DistrictList] operator[SEP] Keyword[class] operator[SEP] operator[SEP] }
public static Mapping<Boolean> bool(Constraint... constraints) { return new FieldMapping( InputMode.SINGLE, mkSimpleConverter(s -> isEmptyStr(s) ? false : Boolean.parseBoolean(s) ), new MappingMeta(MAPPING_BOOLEAN, Boolean.class) ).constraint(checking(Boolean::parseBoolean, "error.boolean", true)) .constraint(constraints); }
class class_name[name] begin[{] method[bool, return_type[type[Mapping]], modifier[public static], parameter[constraints]] begin[{] return[ClassCreator(arguments=[MemberReference(member=SINGLE, postfix_operators=[], prefix_operators=[], qualifier=InputMode, selectors=[]), MethodInvocation(arguments=[LambdaExpression(body=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isEmptyStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), if_false=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseBoolean, postfix_operators=[], prefix_operators=[], qualifier=Boolean, selectors=[], type_arguments=None), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)), parameters=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])])], member=mkSimpleConverter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), ClassCreator(arguments=[MemberReference(member=MAPPING_BOOLEAN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Boolean, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MappingMeta, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[MethodReference(expression=MemberReference(member=Boolean, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReference(member=parseBoolean, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type_arguments=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="error.boolean"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=checking, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constraint, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=constraints, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constraint, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=FieldMapping, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[Mapping] operator[<] identifier[Boolean] operator[>] identifier[bool] operator[SEP] identifier[Constraint] operator[...] identifier[constraints] operator[SEP] { Keyword[return] Keyword[new] identifier[FieldMapping] operator[SEP] identifier[InputMode] operator[SEP] identifier[SINGLE] , identifier[mkSimpleConverter] operator[SEP] identifier[s] operator[->] identifier[isEmptyStr] operator[SEP] identifier[s] operator[SEP] operator[?] literal[boolean] operator[:] identifier[Boolean] operator[SEP] identifier[parseBoolean] operator[SEP] identifier[s] operator[SEP] operator[SEP] , Keyword[new] identifier[MappingMeta] operator[SEP] identifier[MAPPING_BOOLEAN] , identifier[Boolean] operator[SEP] Keyword[class] operator[SEP] operator[SEP] operator[SEP] identifier[constraint] operator[SEP] identifier[checking] operator[SEP] identifier[Boolean] operator[::] identifier[parseBoolean] , literal[String] , literal[boolean] operator[SEP] operator[SEP] operator[SEP] identifier[constraint] operator[SEP] identifier[constraints] operator[SEP] operator[SEP] }
public Point2D geoToPixel(GeoPosition c, int zoomLevel) { return GeoUtil.getBitmapCoordinate(c, zoomLevel, getInfo()); }
class class_name[name] begin[{] method[geoToPixel, return_type[type[Point2D]], modifier[public], parameter[c, zoomLevel]] begin[{] return[call[GeoUtil.getBitmapCoordinate, parameter[member[.c], member[.zoomLevel], call[.getInfo, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[Point2D] identifier[geoToPixel] operator[SEP] identifier[GeoPosition] identifier[c] , Keyword[int] identifier[zoomLevel] operator[SEP] { Keyword[return] identifier[GeoUtil] operator[SEP] identifier[getBitmapCoordinate] operator[SEP] identifier[c] , identifier[zoomLevel] , identifier[getInfo] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@Override public String getTermsOfUseContent(java.util.Locale locale) { return _cpDefinitionVirtualSetting.getTermsOfUseContent(locale); }
class class_name[name] begin[{] method[getTermsOfUseContent, return_type[type[String]], modifier[public], parameter[locale]] begin[{] return[call[_cpDefinitionVirtualSetting.getTermsOfUseContent, parameter[member[.locale]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getTermsOfUseContent] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Locale] identifier[locale] operator[SEP] { Keyword[return] identifier[_cpDefinitionVirtualSetting] operator[SEP] identifier[getTermsOfUseContent] operator[SEP] identifier[locale] operator[SEP] operator[SEP] }
public String stringAt(String srcStr, int index) { if (0 <= index && index < srcStr.length()) { return String.valueOf(srcStr.charAt(index)); } else { return ""; } }
class class_name[name] begin[{] method[stringAt, return_type[type[String]], modifier[public], parameter[srcStr, index]] begin[{] if[binary_operation[binary_operation[literal[0], <=, member[.index]], &&, binary_operation[member[.index], <, call[srcStr.length, parameter[]]]]] begin[{] return[call[String.valueOf, parameter[call[srcStr.charAt, parameter[member[.index]]]]]] else begin[{] return[literal[""]] end[}] end[}] END[}]
Keyword[public] identifier[String] identifier[stringAt] operator[SEP] identifier[String] identifier[srcStr] , Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] Other[0] operator[<=] identifier[index] operator[&&] identifier[index] operator[<] identifier[srcStr] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[srcStr] operator[SEP] identifier[charAt] operator[SEP] identifier[index] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] literal[String] operator[SEP] } }
@Override public synchronized boolean offer(Runnable runnable) { int allWorkingThreads = this.executor.getActiveCount() + super.size(); return allWorkingThreads < this.executor.getPoolSize() && super.offer(runnable); }
class class_name[name] begin[{] method[offer, return_type[type[boolean]], modifier[synchronized public], parameter[runnable]] begin[{] local_variable[type[int], allWorkingThreads] return[binary_operation[binary_operation[member[.allWorkingThreads], <, THIS[member[None.executor]call[None.getPoolSize, parameter[]]]], &&, SuperMethodInvocation(arguments=[MemberReference(member=runnable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=offer, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[offer] operator[SEP] identifier[Runnable] identifier[runnable] operator[SEP] { Keyword[int] identifier[allWorkingThreads] operator[=] Keyword[this] operator[SEP] identifier[executor] operator[SEP] identifier[getActiveCount] operator[SEP] operator[SEP] operator[+] Keyword[super] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[allWorkingThreads] operator[<] Keyword[this] operator[SEP] identifier[executor] operator[SEP] identifier[getPoolSize] operator[SEP] operator[SEP] operator[&&] Keyword[super] operator[SEP] identifier[offer] operator[SEP] identifier[runnable] operator[SEP] operator[SEP] }
private void setRangePredicates(String watermarkColumn, WatermarkType watermarkType, long lwmValue, long hwmValue) { log.debug("Getting range predicates"); String lwmOperator = partition.isLowWatermarkInclusive() ? ">=" : ">"; String hwmOperator = (partition.isLastPartition() || partition.isHighWatermarkInclusive()) ? "<=" : "<"; WatermarkPredicate watermark = new WatermarkPredicate(watermarkColumn, watermarkType); this.addPredicates(watermark.getPredicate(this, lwmValue, lwmOperator, Predicate.PredicateType.LWM)); this.addPredicates(watermark.getPredicate(this, hwmValue, hwmOperator, Predicate.PredicateType.HWM)); if (Boolean.valueOf(this.workUnitState.getProp(ConfigurationKeys.SOURCE_QUERYBASED_IS_HOURLY_EXTRACT))) { String hourColumn = this.workUnitState.getProp(ConfigurationKeys.SOURCE_QUERYBASED_HOUR_COLUMN); if (StringUtils.isNotBlank(hourColumn)) { WatermarkPredicate hourlyWatermark = new WatermarkPredicate(hourColumn, WatermarkType.HOUR); this.addPredicates(hourlyWatermark.getPredicate(this, lwmValue, lwmOperator, Predicate.PredicateType.LWM)); this.addPredicates(hourlyWatermark.getPredicate(this, hwmValue, hwmOperator, Predicate.PredicateType.HWM)); } } }
class class_name[name] begin[{] method[setRangePredicates, return_type[void], modifier[private], parameter[watermarkColumn, watermarkType, lwmValue, hwmValue]] begin[{] call[log.debug, parameter[literal["Getting range predicates"]]] local_variable[type[String], lwmOperator] local_variable[type[String], hwmOperator] local_variable[type[WatermarkPredicate], watermark] THIS[call[None.addPredicates, parameter[call[watermark.getPredicate, parameter[THIS[], member[.lwmValue], member[.lwmOperator], member[Predicate.PredicateType.LWM]]]]]] THIS[call[None.addPredicates, parameter[call[watermark.getPredicate, parameter[THIS[], member[.hwmValue], member[.hwmOperator], member[Predicate.PredicateType.HWM]]]]]] if[call[Boolean.valueOf, parameter[THIS[member[None.workUnitState]call[None.getProp, parameter[member[ConfigurationKeys.SOURCE_QUERYBASED_IS_HOURLY_EXTRACT]]]]]]] begin[{] local_variable[type[String], hourColumn] if[call[StringUtils.isNotBlank, parameter[member[.hourColumn]]]] begin[{] local_variable[type[WatermarkPredicate], hourlyWatermark] THIS[call[None.addPredicates, parameter[call[hourlyWatermark.getPredicate, parameter[THIS[], member[.lwmValue], member[.lwmOperator], member[Predicate.PredicateType.LWM]]]]]] THIS[call[None.addPredicates, parameter[call[hourlyWatermark.getPredicate, parameter[THIS[], member[.hwmValue], member[.hwmOperator], member[Predicate.PredicateType.HWM]]]]]] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[setRangePredicates] operator[SEP] identifier[String] identifier[watermarkColumn] , identifier[WatermarkType] identifier[watermarkType] , Keyword[long] identifier[lwmValue] , Keyword[long] identifier[hwmValue] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] identifier[lwmOperator] operator[=] identifier[partition] operator[SEP] identifier[isLowWatermarkInclusive] operator[SEP] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] identifier[String] identifier[hwmOperator] operator[=] operator[SEP] identifier[partition] operator[SEP] identifier[isLastPartition] operator[SEP] operator[SEP] operator[||] identifier[partition] operator[SEP] identifier[isHighWatermarkInclusive] operator[SEP] operator[SEP] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] identifier[WatermarkPredicate] identifier[watermark] operator[=] Keyword[new] identifier[WatermarkPredicate] operator[SEP] identifier[watermarkColumn] , identifier[watermarkType] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[addPredicates] operator[SEP] identifier[watermark] operator[SEP] identifier[getPredicate] operator[SEP] Keyword[this] , identifier[lwmValue] , identifier[lwmOperator] , identifier[Predicate] operator[SEP] identifier[PredicateType] operator[SEP] identifier[LWM] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[addPredicates] operator[SEP] identifier[watermark] operator[SEP] identifier[getPredicate] operator[SEP] Keyword[this] , identifier[hwmValue] , identifier[hwmOperator] , identifier[Predicate] operator[SEP] identifier[PredicateType] operator[SEP] identifier[HWM] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Boolean] operator[SEP] identifier[valueOf] operator[SEP] Keyword[this] operator[SEP] identifier[workUnitState] operator[SEP] identifier[getProp] operator[SEP] identifier[ConfigurationKeys] operator[SEP] identifier[SOURCE_QUERYBASED_IS_HOURLY_EXTRACT] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[hourColumn] operator[=] Keyword[this] operator[SEP] identifier[workUnitState] operator[SEP] identifier[getProp] operator[SEP] identifier[ConfigurationKeys] operator[SEP] identifier[SOURCE_QUERYBASED_HOUR_COLUMN] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isNotBlank] operator[SEP] identifier[hourColumn] operator[SEP] operator[SEP] { identifier[WatermarkPredicate] identifier[hourlyWatermark] operator[=] Keyword[new] identifier[WatermarkPredicate] operator[SEP] identifier[hourColumn] , identifier[WatermarkType] operator[SEP] identifier[HOUR] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[addPredicates] operator[SEP] identifier[hourlyWatermark] operator[SEP] identifier[getPredicate] operator[SEP] Keyword[this] , identifier[lwmValue] , identifier[lwmOperator] , identifier[Predicate] operator[SEP] identifier[PredicateType] operator[SEP] identifier[LWM] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[addPredicates] operator[SEP] identifier[hourlyWatermark] operator[SEP] identifier[getPredicate] operator[SEP] Keyword[this] , identifier[hwmValue] , identifier[hwmOperator] , identifier[Predicate] operator[SEP] identifier[PredicateType] operator[SEP] identifier[HWM] operator[SEP] operator[SEP] operator[SEP] } } }
static boolean isItemInArray(Object item, Object[] arrayOfValues) { if (arrayOfValues == null) { return false; } for (Object value : arrayOfValues) { if (Objects.equals(value, item)) { return true; } } return false; }
class class_name[name] begin[{] method[isItemInArray, return_type[type[boolean]], modifier[static], parameter[item, arrayOfValues]] begin[{] if[binary_operation[member[.arrayOfValues], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=item, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=Objects, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=arrayOfValues, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None) return[literal[false]] end[}] END[}]
Keyword[static] Keyword[boolean] identifier[isItemInArray] operator[SEP] identifier[Object] identifier[item] , identifier[Object] operator[SEP] operator[SEP] identifier[arrayOfValues] operator[SEP] { Keyword[if] operator[SEP] identifier[arrayOfValues] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[for] operator[SEP] identifier[Object] identifier[value] operator[:] identifier[arrayOfValues] operator[SEP] { Keyword[if] operator[SEP] identifier[Objects] operator[SEP] identifier[equals] operator[SEP] identifier[value] , identifier[item] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public double getPartialMinDist(int dimension, int vp) { final int qp = queryApprox.getApproximation(dimension); if(vp < qp) { return lookup[dimension][vp + 1]; } else if(vp > qp) { return lookup[dimension][vp]; } else { return 0.0; } }
class class_name[name] begin[{] method[getPartialMinDist, return_type[type[double]], modifier[public], parameter[dimension, vp]] begin[{] local_variable[type[int], qp] if[binary_operation[member[.vp], <, member[.qp]]] begin[{] return[member[.lookup]] else begin[{] if[binary_operation[member[.vp], >, member[.qp]]] begin[{] return[member[.lookup]] else begin[{] return[literal[0.0]] end[}] end[}] end[}] END[}]
Keyword[public] Keyword[double] identifier[getPartialMinDist] operator[SEP] Keyword[int] identifier[dimension] , Keyword[int] identifier[vp] operator[SEP] { Keyword[final] Keyword[int] identifier[qp] operator[=] identifier[queryApprox] operator[SEP] identifier[getApproximation] operator[SEP] identifier[dimension] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[vp] operator[<] identifier[qp] operator[SEP] { Keyword[return] identifier[lookup] operator[SEP] identifier[dimension] operator[SEP] operator[SEP] identifier[vp] operator[+] Other[1] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[vp] operator[>] identifier[qp] operator[SEP] { Keyword[return] identifier[lookup] operator[SEP] identifier[dimension] operator[SEP] operator[SEP] identifier[vp] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] literal[Float] operator[SEP] } }
@Override public void processConnect(WebSocketChannel channel, WSURI location, String[] protocols) { LOG.entering(CLASS_NAME, "connect", channel); nextHandler.processConnect(channel, location, protocols); }
class class_name[name] begin[{] method[processConnect, return_type[void], modifier[public], parameter[channel, location, protocols]] begin[{] call[LOG.entering, parameter[member[.CLASS_NAME], literal["connect"], member[.channel]]] call[nextHandler.processConnect, parameter[member[.channel], member[.location], member[.protocols]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[processConnect] operator[SEP] identifier[WebSocketChannel] identifier[channel] , identifier[WSURI] identifier[location] , identifier[String] operator[SEP] operator[SEP] identifier[protocols] operator[SEP] { identifier[LOG] operator[SEP] identifier[entering] operator[SEP] identifier[CLASS_NAME] , literal[String] , identifier[channel] operator[SEP] operator[SEP] identifier[nextHandler] operator[SEP] identifier[processConnect] operator[SEP] identifier[channel] , identifier[location] , identifier[protocols] operator[SEP] operator[SEP] }
private static byte[] consumeRenewToken(ExtendedGSSContext c, byte[] wrappedToken) throws GSSException { if (!GSIConstants.MODE_SSL.equals(c.getOption(GSSConstants.GSS_MODE))) { throw new GSSException(GSSException.NO_CONTEXT); } byte[] framedToken = c.unwrap(wrappedToken, 0, wrappedToken.length, null); byte[] token = new byte[framedToken.length - 4]; System.arraycopy(framedToken, 4, token, 0, framedToken.length - 4); return token; }
class class_name[name] begin[{] method[consumeRenewToken, return_type[type[byte]], modifier[private static], parameter[c, wrappedToken]] begin[{] if[call[GSIConstants.MODE_SSL.equals, parameter[call[c.getOption, parameter[member[GSSConstants.GSS_MODE]]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=NO_CONTEXT, postfix_operators=[], prefix_operators=[], qualifier=GSSException, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GSSException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[byte], framedToken] local_variable[type[byte], token] call[System.arraycopy, parameter[member[.framedToken], literal[4], member[.token], literal[0], binary_operation[member[framedToken.length], -, literal[4]]]] return[member[.token]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[consumeRenewToken] operator[SEP] identifier[ExtendedGSSContext] identifier[c] , Keyword[byte] operator[SEP] operator[SEP] identifier[wrappedToken] operator[SEP] Keyword[throws] identifier[GSSException] { Keyword[if] operator[SEP] operator[!] identifier[GSIConstants] operator[SEP] identifier[MODE_SSL] operator[SEP] identifier[equals] operator[SEP] identifier[c] operator[SEP] identifier[getOption] operator[SEP] identifier[GSSConstants] operator[SEP] identifier[GSS_MODE] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[GSSException] operator[SEP] identifier[GSSException] operator[SEP] identifier[NO_CONTEXT] operator[SEP] operator[SEP] } Keyword[byte] operator[SEP] operator[SEP] identifier[framedToken] operator[=] identifier[c] operator[SEP] identifier[unwrap] operator[SEP] identifier[wrappedToken] , Other[0] , identifier[wrappedToken] operator[SEP] identifier[length] , Other[null] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[token] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[framedToken] operator[SEP] identifier[length] operator[-] Other[4] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[framedToken] , Other[4] , identifier[token] , Other[0] , identifier[framedToken] operator[SEP] identifier[length] operator[-] Other[4] operator[SEP] operator[SEP] Keyword[return] identifier[token] operator[SEP] }
@Override public void setLayerInfo(VectorLayerInfo layerInfo) throws LayerException { super.setLayerInfo(layerInfo); srid = geoService.getSridFromCrs(layerInfo.getCrs()); entityMapper = new HibernateEntityMapper(getSessionFactory()); }
class class_name[name] begin[{] method[setLayerInfo, return_type[void], modifier[public], parameter[layerInfo]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=layerInfo, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setLayerInfo, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) assign[member[.srid], call[geoService.getSridFromCrs, parameter[call[layerInfo.getCrs, parameter[]]]]] assign[member[.entityMapper], ClassCreator(arguments=[MethodInvocation(arguments=[], member=getSessionFactory, 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=HibernateEntityMapper, sub_type=None))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setLayerInfo] operator[SEP] identifier[VectorLayerInfo] identifier[layerInfo] operator[SEP] Keyword[throws] identifier[LayerException] { Keyword[super] operator[SEP] identifier[setLayerInfo] operator[SEP] identifier[layerInfo] operator[SEP] operator[SEP] identifier[srid] operator[=] identifier[geoService] operator[SEP] identifier[getSridFromCrs] operator[SEP] identifier[layerInfo] operator[SEP] identifier[getCrs] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[entityMapper] operator[=] Keyword[new] identifier[HibernateEntityMapper] operator[SEP] identifier[getSessionFactory] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static KriptonTaskExecutor getInstance() { if (sInstance != null) { return sInstance; } synchronized (KriptonTaskExecutor.class) { if (sInstance == null) { sInstance = new KriptonTaskExecutor(); } } return sInstance; }
class class_name[name] begin[{] method[getInstance, return_type[type[KriptonTaskExecutor]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.sInstance], !=, literal[null]]] begin[{] return[member[.sInstance]] else begin[{] None end[}] SYNCHRONIZED[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KriptonTaskExecutor, sub_type=None))] BEGIN[{] if[binary_operation[member[.sInstance], ==, literal[null]]] begin[{] assign[member[.sInstance], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KriptonTaskExecutor, sub_type=None))] else begin[{] None end[}] END[}] return[member[.sInstance]] end[}] END[}]
Keyword[public] Keyword[static] identifier[KriptonTaskExecutor] identifier[getInstance] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[sInstance] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[sInstance] operator[SEP] } Keyword[synchronized] operator[SEP] identifier[KriptonTaskExecutor] operator[SEP] Keyword[class] operator[SEP] { Keyword[if] operator[SEP] identifier[sInstance] operator[==] Other[null] operator[SEP] { identifier[sInstance] operator[=] Keyword[new] identifier[KriptonTaskExecutor] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] identifier[sInstance] operator[SEP] }
@Override public EClass getIfcStructuralLoadPlanarForce() { if (ifcStructuralLoadPlanarForceEClass == null) { ifcStructuralLoadPlanarForceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(646); } return ifcStructuralLoadPlanarForceEClass; }
class class_name[name] begin[{] method[getIfcStructuralLoadPlanarForce, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcStructuralLoadPlanarForceEClass], ==, literal[null]]] begin[{] assign[member[.ifcStructuralLoadPlanarForceEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(member=eNS_URI, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package, 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=646)], 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[.ifcStructuralLoadPlanarForceEClass]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcStructuralLoadPlanarForce] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcStructuralLoadPlanarForceEClass] operator[==] Other[null] operator[SEP] { identifier[ifcStructuralLoadPlanarForceEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[getEPackage] operator[SEP] identifier[Ifc4Package] operator[SEP] identifier[eNS_URI] operator[SEP] operator[SEP] identifier[getEClassifiers] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[646] operator[SEP] operator[SEP] } Keyword[return] identifier[ifcStructuralLoadPlanarForceEClass] operator[SEP] }
public void classifyTree(Area root, FeatureExtractor features) { if (classifier != null) { System.out.print("tree visual classification..."); testRoot = root; this.features = features; //create a new empty set with the same header as the training set testset = new Instances(trainset, 0); //create an empty mapping mapping = new HashMap<Area, Instance>(); //fill the set with the data recursivelyExtractAreaData(testRoot); System.out.println("done"); } }
class class_name[name] begin[{] method[classifyTree, return_type[void], modifier[public], parameter[root, features]] begin[{] if[binary_operation[member[.classifier], !=, literal[null]]] begin[{] call[System.out.print, parameter[literal["tree visual classification..."]]] assign[member[.testRoot], member[.root]] assign[THIS[member[None.features]], member[.features]] assign[member[.testset], ClassCreator(arguments=[MemberReference(member=trainset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Instances, sub_type=None))] assign[member[.mapping], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Area, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Instance, sub_type=None))], dimensions=None, name=HashMap, sub_type=None))] call[.recursivelyExtractAreaData, parameter[member[.testRoot]]] call[System.out.println, parameter[literal["done"]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[classifyTree] operator[SEP] identifier[Area] identifier[root] , identifier[FeatureExtractor] identifier[features] operator[SEP] { Keyword[if] operator[SEP] identifier[classifier] operator[!=] Other[null] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[print] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[testRoot] operator[=] identifier[root] operator[SEP] Keyword[this] operator[SEP] identifier[features] operator[=] identifier[features] operator[SEP] identifier[testset] operator[=] Keyword[new] identifier[Instances] operator[SEP] identifier[trainset] , Other[0] operator[SEP] operator[SEP] identifier[mapping] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[Area] , identifier[Instance] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[recursivelyExtractAreaData] operator[SEP] identifier[testRoot] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } }
public static String removeWhitespace(String input) { StringBuilder result = new StringBuilder(); if (input != null) { StringTokenizer st = new StringTokenizer(input); while (st.hasMoreTokens()) { result.append(st.nextToken()); } } return result.toString(); }
class class_name[name] begin[{] method[removeWhitespace, return_type[type[String]], modifier[public static], parameter[input]] begin[{] local_variable[type[StringBuilder], result] if[binary_operation[member[.input], !=, literal[null]]] begin[{] local_variable[type[StringTokenizer], st] while[call[st.hasMoreTokens, parameter[]]] begin[{] call[result.append, parameter[call[st.nextToken, parameter[]]]] end[}] else begin[{] None end[}] return[call[result.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[removeWhitespace] operator[SEP] identifier[String] identifier[input] operator[SEP] { identifier[StringBuilder] identifier[result] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[input] operator[!=] Other[null] operator[SEP] { identifier[StringTokenizer] identifier[st] operator[=] Keyword[new] identifier[StringTokenizer] operator[SEP] identifier[input] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[st] operator[SEP] identifier[hasMoreTokens] operator[SEP] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[append] operator[SEP] identifier[st] operator[SEP] identifier[nextToken] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
@Override public CreateLabelingJobResult createLabelingJob(CreateLabelingJobRequest request) { request = beforeClientExecution(request); return executeCreateLabelingJob(request); }
class class_name[name] begin[{] method[createLabelingJob, return_type[type[CreateLabelingJobResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateLabelingJob, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CreateLabelingJobResult] identifier[createLabelingJob] operator[SEP] identifier[CreateLabelingJobRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeCreateLabelingJob] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public UnicodeSet removeAll(UnicodeSet c) { checkFrozen(); retain(c.list, c.len, 2); strings.removeAll(c.strings); return this; }
class class_name[name] begin[{] method[removeAll, return_type[type[UnicodeSet]], modifier[public], parameter[c]] begin[{] call[.checkFrozen, parameter[]] call[.retain, parameter[member[c.list], member[c.len], literal[2]]] call[strings.removeAll, parameter[member[c.strings]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[UnicodeSet] identifier[removeAll] operator[SEP] identifier[UnicodeSet] identifier[c] operator[SEP] { identifier[checkFrozen] operator[SEP] operator[SEP] operator[SEP] identifier[retain] operator[SEP] identifier[c] operator[SEP] identifier[list] , identifier[c] operator[SEP] identifier[len] , Other[2] operator[SEP] operator[SEP] identifier[strings] operator[SEP] identifier[removeAll] operator[SEP] identifier[c] operator[SEP] identifier[strings] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public static void doAuthorization(UserSession session,String uri) throws UnauthorizedException,ForbiddenAccessException{ boolean isSuperAdmin = getInstance().decisionProvider.superAdminName().equals(session.getUserName()); if(!isSuperAdmin && !getInstance().resourceManager.isAnonymous(uri)){ if(session == null || session.isAnonymous()){ throw new UnauthorizedException(); } String permssionCode = getInstance().resourceManager.getPermssionCode(uri); if(StringUtils.isNotBlank(permssionCode) && !getInstance().resourceManager.getUserPermissionCodes(session.getUserId()).contains(permssionCode)){ throw new ForbiddenAccessException(); } } // if(session != null && !session.isAnonymous()){ getInstance().decisionProvider.authorizedPostHandle(session); } }
class class_name[name] begin[{] method[doAuthorization, return_type[void], modifier[public static], parameter[session, uri]] begin[{] local_variable[type[boolean], isSuperAdmin] if[binary_operation[member[.isSuperAdmin], &&, call[.getInstance, parameter[]]]] begin[{] if[binary_operation[binary_operation[member[.session], ==, literal[null]], ||, call[session.isAnonymous, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=UnauthorizedException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[String], permssionCode] if[binary_operation[call[StringUtils.isNotBlank, parameter[member[.permssionCode]]], &&, call[.getInstance, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ForbiddenAccessException, sub_type=None)), label=None) else begin[{] None end[}] else begin[{] None end[}] if[binary_operation[binary_operation[member[.session], !=, literal[null]], &&, call[session.isAnonymous, parameter[]]]] begin[{] call[.getInstance, parameter[]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[doAuthorization] operator[SEP] identifier[UserSession] identifier[session] , identifier[String] identifier[uri] operator[SEP] Keyword[throws] identifier[UnauthorizedException] , identifier[ForbiddenAccessException] { Keyword[boolean] identifier[isSuperAdmin] operator[=] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[decisionProvider] operator[SEP] identifier[superAdminName] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[session] operator[SEP] identifier[getUserName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[isSuperAdmin] operator[&&] operator[!] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[resourceManager] operator[SEP] identifier[isAnonymous] operator[SEP] identifier[uri] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[session] operator[==] Other[null] operator[||] identifier[session] operator[SEP] identifier[isAnonymous] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[UnauthorizedException] operator[SEP] operator[SEP] operator[SEP] } identifier[String] identifier[permssionCode] operator[=] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[resourceManager] operator[SEP] identifier[getPermssionCode] operator[SEP] identifier[uri] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isNotBlank] operator[SEP] identifier[permssionCode] operator[SEP] operator[&&] operator[!] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[resourceManager] operator[SEP] identifier[getUserPermissionCodes] operator[SEP] identifier[session] operator[SEP] identifier[getUserId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[permssionCode] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[ForbiddenAccessException] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[session] operator[!=] Other[null] operator[&&] operator[!] identifier[session] operator[SEP] identifier[isAnonymous] operator[SEP] operator[SEP] operator[SEP] { identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[decisionProvider] operator[SEP] identifier[authorizedPostHandle] operator[SEP] identifier[session] operator[SEP] operator[SEP] } }
private CacheReadResultEntry getSingleMemoryReadResultEntry(long resultStartOffset, int maxLength) { Exceptions.checkNotClosed(this.closed, this); if (maxLength > 0 && checkReadAvailability(resultStartOffset, false) == ReadAvailability.Available) { // Look up an entry in the index that contains our requested start offset. synchronized (this.lock) { ReadIndexEntry indexEntry = this.indexEntries.get(resultStartOffset); if (indexEntry != null && indexEntry.isDataEntry()) { // We found an entry; return a result for it. return createMemoryRead(indexEntry, resultStartOffset, maxLength, true); } } } // Nothing could be found in the cache at the given offset. return null; }
class class_name[name] begin[{] method[getSingleMemoryReadResultEntry, return_type[type[CacheReadResultEntry]], modifier[private], parameter[resultStartOffset, maxLength]] begin[{] call[Exceptions.checkNotClosed, parameter[THIS[member[None.closed]], THIS[]]] if[binary_operation[binary_operation[member[.maxLength], >, literal[0]], &&, binary_operation[call[.checkReadAvailability, parameter[member[.resultStartOffset], literal[false]]], ==, member[ReadAvailability.Available]]]] begin[{] SYNCHRONIZED[THIS[member[None.lock]]] BEGIN[{] local_variable[type[ReadIndexEntry], indexEntry] if[binary_operation[binary_operation[member[.indexEntry], !=, literal[null]], &&, call[indexEntry.isDataEntry, parameter[]]]] begin[{] return[call[.createMemoryRead, parameter[member[.indexEntry], member[.resultStartOffset], member[.maxLength], literal[true]]]] else begin[{] None end[}] END[}] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[private] identifier[CacheReadResultEntry] identifier[getSingleMemoryReadResultEntry] operator[SEP] Keyword[long] identifier[resultStartOffset] , Keyword[int] identifier[maxLength] operator[SEP] { identifier[Exceptions] operator[SEP] identifier[checkNotClosed] operator[SEP] Keyword[this] operator[SEP] identifier[closed] , Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[maxLength] operator[>] Other[0] operator[&&] identifier[checkReadAvailability] operator[SEP] identifier[resultStartOffset] , literal[boolean] operator[SEP] operator[==] identifier[ReadAvailability] operator[SEP] identifier[Available] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] identifier[lock] operator[SEP] { identifier[ReadIndexEntry] identifier[indexEntry] operator[=] Keyword[this] operator[SEP] identifier[indexEntries] operator[SEP] identifier[get] operator[SEP] identifier[resultStartOffset] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[indexEntry] operator[!=] Other[null] operator[&&] identifier[indexEntry] operator[SEP] identifier[isDataEntry] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[createMemoryRead] operator[SEP] identifier[indexEntry] , identifier[resultStartOffset] , identifier[maxLength] , literal[boolean] operator[SEP] operator[SEP] } } } Keyword[return] Other[null] operator[SEP] }
public static int encodeOctetString(short[] octets, ByteBuffer buf) { if (octets == null) { octets = new short[0]; } int pos = buf.position(); for (int i = octets.length - 1; i >= 0; i--) { pos--; buf.put(pos, (byte) octets[i]); } buf.position(buf.position() - octets.length); int headerLength = DerUtils.encodeIdAndLength(DerId.TagClass.UNIVERSAL, DerId.EncodingType.PRIMITIVE, ASN1_OCTET_STRING_TAG_NUM, octets.length, buf); return headerLength + octets.length; }
class class_name[name] begin[{] method[encodeOctetString, return_type[type[int]], modifier[public static], parameter[octets, buf]] begin[{] if[binary_operation[member[.octets], ==, literal[null]]] begin[{] assign[member[.octets], ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=short))] else begin[{] None end[}] local_variable[type[int], pos] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=pos, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MemberReference(member=octets, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=BasicType(dimensions=[], name=byte))], member=put, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=octets, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[])]), label=None) call[buf.position, parameter[binary_operation[call[buf.position, parameter[]], -, member[octets.length]]]] local_variable[type[int], headerLength] return[binary_operation[member[.headerLength], +, member[octets.length]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[encodeOctetString] operator[SEP] Keyword[short] operator[SEP] operator[SEP] identifier[octets] , identifier[ByteBuffer] identifier[buf] operator[SEP] { Keyword[if] operator[SEP] identifier[octets] operator[==] Other[null] operator[SEP] { identifier[octets] operator[=] Keyword[new] Keyword[short] operator[SEP] Other[0] operator[SEP] operator[SEP] } Keyword[int] identifier[pos] operator[=] identifier[buf] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[octets] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] identifier[i] operator[>=] Other[0] operator[SEP] identifier[i] operator[--] operator[SEP] { identifier[pos] operator[--] operator[SEP] identifier[buf] operator[SEP] identifier[put] operator[SEP] identifier[pos] , operator[SEP] Keyword[byte] operator[SEP] identifier[octets] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } identifier[buf] operator[SEP] identifier[position] operator[SEP] identifier[buf] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[-] identifier[octets] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[int] identifier[headerLength] operator[=] identifier[DerUtils] operator[SEP] identifier[encodeIdAndLength] operator[SEP] identifier[DerId] operator[SEP] identifier[TagClass] operator[SEP] identifier[UNIVERSAL] , identifier[DerId] operator[SEP] identifier[EncodingType] operator[SEP] identifier[PRIMITIVE] , identifier[ASN1_OCTET_STRING_TAG_NUM] , identifier[octets] operator[SEP] identifier[length] , identifier[buf] operator[SEP] operator[SEP] Keyword[return] identifier[headerLength] operator[+] identifier[octets] operator[SEP] identifier[length] operator[SEP] }
private void maybeRotateLog() throws IOException { if (!mRotateLogForNextWrite) { return; } if (mJournalOutputStream != null) { mJournalOutputStream.close(); mJournalOutputStream = null; } createNewLogFile(mNextSequenceNumber); mRotateLogForNextWrite = false; }
class class_name[name] begin[{] method[maybeRotateLog, return_type[void], modifier[private], parameter[]] begin[{] if[member[.mRotateLogForNextWrite]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[member[.mJournalOutputStream], !=, literal[null]]] begin[{] call[mJournalOutputStream.close, parameter[]] assign[member[.mJournalOutputStream], literal[null]] else begin[{] None end[}] call[.createNewLogFile, parameter[member[.mNextSequenceNumber]]] assign[member[.mRotateLogForNextWrite], literal[false]] end[}] END[}]
Keyword[private] Keyword[void] identifier[maybeRotateLog] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[mRotateLogForNextWrite] operator[SEP] { Keyword[return] operator[SEP] } Keyword[if] operator[SEP] identifier[mJournalOutputStream] operator[!=] Other[null] operator[SEP] { identifier[mJournalOutputStream] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] identifier[mJournalOutputStream] operator[=] Other[null] operator[SEP] } identifier[createNewLogFile] operator[SEP] identifier[mNextSequenceNumber] operator[SEP] operator[SEP] identifier[mRotateLogForNextWrite] operator[=] literal[boolean] operator[SEP] }
@Override public void acquire() throws Exception { Preconditions.checkArgument(ttl == null || TimeUnit.SECONDS.convert(timeout, timeoutUnits) < ttl, "Timeout " + timeout + " must be less than TTL " + ttl); RetryPolicy retry = backoffPolicy.duplicate(); retryCount = 0; while (true) { try { long curTimeMicros = getCurrentTimeMicros(); MutationBatch m = keyspace.prepareMutationBatch().setConsistencyLevel(consistencyLevel); fillLockMutation(m, curTimeMicros, ttl); m.execute(); verifyLock(curTimeMicros); acquireTime = System.nanoTime(); return; } catch (BusyLockException e) { release(); if(!retry.allowRetry()) throw e; retryCount++; } } }
class class_name[name] begin[{] method[acquire, return_type[void], modifier[public], parameter[]] begin[{] call[Preconditions.checkArgument, parameter[binary_operation[binary_operation[member[.ttl], ==, literal[null]], ||, binary_operation[call[TimeUnit.SECONDS.convert, parameter[member[.timeout], member[.timeoutUnits]]], <, member[.ttl]]], binary_operation[binary_operation[binary_operation[literal["Timeout "], +, member[.timeout]], +, literal[" must be less than TTL "]], +, member[.ttl]]]] local_variable[type[RetryPolicy], retry] assign[member[.retryCount], literal[0]] while[literal[true]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getCurrentTimeMicros, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=curTimeMicros)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=prepareMutationBatch, postfix_operators=[], prefix_operators=[], qualifier=keyspace, selectors=[MethodInvocation(arguments=[MemberReference(member=consistencyLevel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setConsistencyLevel, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=m)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=MutationBatch, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=curTimeMicros, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ttl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillLockMutation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=execute, postfix_operators=[], prefix_operators=[], qualifier=m, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=curTimeMicros, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=verifyLock, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=acquireTime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=nanoTime, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None)), label=None), ReturnStatement(expression=None, label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=release, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=allowRetry, postfix_operators=[], prefix_operators=['!'], qualifier=retry, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=ThrowStatement(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)), StatementExpression(expression=MemberReference(member=retryCount, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['BusyLockException']))], finally_block=None, label=None, resources=None) end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[acquire] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Preconditions] operator[SEP] identifier[checkArgument] operator[SEP] identifier[ttl] operator[==] Other[null] operator[||] identifier[TimeUnit] operator[SEP] identifier[SECONDS] operator[SEP] identifier[convert] operator[SEP] identifier[timeout] , identifier[timeoutUnits] operator[SEP] operator[<] identifier[ttl] , literal[String] operator[+] identifier[timeout] operator[+] literal[String] operator[+] identifier[ttl] operator[SEP] operator[SEP] identifier[RetryPolicy] identifier[retry] operator[=] identifier[backoffPolicy] operator[SEP] identifier[duplicate] operator[SEP] operator[SEP] operator[SEP] identifier[retryCount] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { Keyword[try] { Keyword[long] identifier[curTimeMicros] operator[=] identifier[getCurrentTimeMicros] operator[SEP] operator[SEP] operator[SEP] identifier[MutationBatch] identifier[m] operator[=] identifier[keyspace] operator[SEP] identifier[prepareMutationBatch] operator[SEP] operator[SEP] operator[SEP] identifier[setConsistencyLevel] operator[SEP] identifier[consistencyLevel] operator[SEP] operator[SEP] identifier[fillLockMutation] operator[SEP] identifier[m] , identifier[curTimeMicros] , identifier[ttl] operator[SEP] operator[SEP] identifier[m] operator[SEP] identifier[execute] operator[SEP] operator[SEP] operator[SEP] identifier[verifyLock] operator[SEP] identifier[curTimeMicros] operator[SEP] operator[SEP] identifier[acquireTime] operator[=] identifier[System] operator[SEP] identifier[nanoTime] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } Keyword[catch] operator[SEP] identifier[BusyLockException] identifier[e] operator[SEP] { identifier[release] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[retry] operator[SEP] identifier[allowRetry] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] identifier[e] operator[SEP] identifier[retryCount] operator[++] operator[SEP] } } }
private void parseIndexColumnExpressionList( final String columnExpressionList, final AstNode indexNode ) { final DdlTokenStream tokens = new DdlTokenStream(columnExpressionList, DdlTokenStream.ddlTokenizer(false), false); tokens.start(); tokens.consume(L_PAREN); // must have opening paren int numLeft = 1; int numRight = 0; // must have content between the parens if (!tokens.matches(R_PAREN)) { final List<String> possibleColumns = new ArrayList<String>(); // dimension table columns final List<String> functions = new ArrayList<String>(); // functions, constants final StringBuilder text = new StringBuilder(); boolean isFunction = false; while (tokens.hasNext()) { if (tokens.canConsume(COMMA)) { if (isFunction) { functions.add(text.toString()); } else { possibleColumns.add(text.toString()); } text.setLength(0); // clear out isFunction = false; continue; } if (tokens.matches(L_PAREN)) { isFunction = true; ++numLeft; } else if (tokens.matches("ASC") || tokens.matches("DESC")) { text.append(SPACE); } else if (tokens.matches(R_PAREN)) { if (numLeft == ++numRight) { if (isFunction) { functions.add(text.toString()); } else { possibleColumns.add(text.toString()); } break; } } text.append(tokens.consume()); } if (!possibleColumns.isEmpty()) { List<AstNode> tableNodes = null; final boolean tableIndex = indexNode.hasMixin(OracleDdlLexicon.TYPE_CREATE_TABLE_INDEX_STATEMENT); // find appropriate table nodes if (tableIndex) { // table index so find table node final String tableName = (String)indexNode.getProperty(OracleDdlLexicon.TABLE_NAME); final AstNode parent = indexNode.getParent(); final List<AstNode> nodes = parent.childrenWithName(tableName); if (!nodes.isEmpty()) { if (nodes.size() == 1) { tableNodes = nodes; } else { // this should not be possible but check none the less for (final AstNode node : nodes) { if (node.hasMixin(StandardDdlLexicon.TYPE_CREATE_TABLE_STATEMENT)) { tableNodes = new ArrayList<AstNode>(1); tableNodes.add(node); break; } } } } } else { // must be bitmap-join tableNodes = indexNode.getChildren(StandardDdlLexicon.TYPE_TABLE_REFERENCE); } if ((tableNodes != null) && !tableNodes.isEmpty()) { boolean processed = false; for (String possibleColumn : possibleColumns) { // first determine any ordering final int ascIndex = possibleColumn.toUpperCase().indexOf(" ASC"); final boolean asc = (ascIndex != -1); final int descIndex = possibleColumn.toUpperCase().indexOf(" DESC"); boolean desc = (descIndex != -1); // adjust column name if there is ordering if (asc) { possibleColumn = possibleColumn.substring(0, ascIndex); } else if (desc) { possibleColumn = possibleColumn.substring(0, descIndex); } if (tableIndex) { if (tableNodes.isEmpty()) { if (asc) { functions.add(possibleColumn + SPACE + "ASC"); } else if (desc) { functions.add(possibleColumn + SPACE + "DESC"); } else { functions.add(possibleColumn); } } else { // only one table reference. need to find column. final AstNode tableNode = tableNodes.get(0); final List<AstNode> columnNodes = tableNode.getChildren(StandardDdlLexicon.TYPE_COLUMN_DEFINITION); if (!columnNodes.isEmpty()) { // find column for (final AstNode colNode : columnNodes) { if (colNode.getName().equalsIgnoreCase(possibleColumn)) { final AstNode colRef = nodeFactory().node(possibleColumn, indexNode, TYPE_COLUMN_REFERENCE); if (asc || desc) { colRef.addMixin(OracleDdlLexicon.TYPE_INDEX_ORDERABLE); if (asc) { colRef.setProperty(OracleDdlLexicon.INDEX_ORDER, "ASC"); } else { colRef.setProperty(OracleDdlLexicon.INDEX_ORDER, "DESC"); } } processed = true; break; } } } if (!processed) { if (asc) { functions.add(possibleColumn + SPACE + "ASC"); } else if (desc) { functions.add(possibleColumn + SPACE + "DESC"); } else { functions.add(possibleColumn); } processed = true; } } } else { // bitmap-join for (final AstNode dimensionTableNode : tableNodes) { if (possibleColumn.toUpperCase(Locale.ROOT).startsWith(dimensionTableNode.getName().toUpperCase(Locale.ROOT) + PERIOD)) { final AstNode colRef = nodeFactory().node(possibleColumn, indexNode, TYPE_COLUMN_REFERENCE); if (asc || desc) { colRef.addMixin(OracleDdlLexicon.TYPE_INDEX_ORDERABLE); if (asc) { colRef.setProperty(OracleDdlLexicon.INDEX_ORDER, "ASC"); } else { colRef.setProperty(OracleDdlLexicon.INDEX_ORDER, "DESC"); } } processed = true; break; } } // probably a constant or function if (!processed) { if (asc) { functions.add(possibleColumn + SPACE + "ASC"); } else if (desc) { functions.add(possibleColumn + SPACE + "DESC"); } else { functions.add(possibleColumn); } processed = true; } } } } } if (!functions.isEmpty()) { indexNode.setProperty(OracleDdlLexicon.OTHER_INDEX_REFS, functions); } } if (numLeft != numRight) { throw new ParsingException(tokens.nextPosition()); } tokens.consume(R_PAREN); // must have closing paren }
class class_name[name] begin[{] method[parseIndexColumnExpressionList, return_type[void], modifier[private], parameter[columnExpressionList, indexNode]] begin[{] local_variable[type[DdlTokenStream], tokens] call[tokens.start, parameter[]] call[tokens.consume, parameter[member[.L_PAREN]]] local_variable[type[int], numLeft] local_variable[type[int], numRight] if[call[tokens.matches, parameter[member[.R_PAREN]]]] begin[{] local_variable[type[List], possibleColumns] local_variable[type[List], functions] local_variable[type[StringBuilder], text] local_variable[type[boolean], isFunction] while[call[tokens.hasNext, parameter[]]] begin[{] if[call[tokens.canConsume, parameter[member[.COMMA]]]] begin[{] if[member[.isFunction]] begin[{] call[functions.add, parameter[call[text.toString, parameter[]]]] else begin[{] call[possibleColumns.add, parameter[call[text.toString, parameter[]]]] end[}] call[text.setLength, parameter[literal[0]]] assign[member[.isFunction], literal[false]] ContinueStatement(goto=None, label=None) else begin[{] None end[}] if[call[tokens.matches, parameter[member[.L_PAREN]]]] begin[{] assign[member[.isFunction], literal[true]] member[.numLeft] else begin[{] if[binary_operation[call[tokens.matches, parameter[literal["ASC"]]], ||, call[tokens.matches, parameter[literal["DESC"]]]]] begin[{] call[text.append, parameter[member[.SPACE]]] else begin[{] if[call[tokens.matches, parameter[member[.R_PAREN]]]] begin[{] if[binary_operation[member[.numLeft], ==, member[.numRight]]] begin[{] if[member[.isFunction]] begin[{] call[functions.add, parameter[call[text.toString, parameter[]]]] else begin[{] call[possibleColumns.add, parameter[call[text.toString, parameter[]]]] end[}] BreakStatement(goto=None, label=None) else begin[{] None end[}] else begin[{] None end[}] end[}] end[}] call[text.append, parameter[call[tokens.consume, parameter[]]]] end[}] if[call[possibleColumns.isEmpty, parameter[]]] begin[{] local_variable[type[List], tableNodes] local_variable[type[boolean], tableIndex] if[member[.tableIndex]] begin[{] local_variable[type[String], tableName] local_variable[type[AstNode], parent] local_variable[type[List], nodes] if[call[nodes.isEmpty, parameter[]]] begin[{] if[binary_operation[call[nodes.size, parameter[]], ==, literal[1]]] begin[{] assign[member[.tableNodes], member[.nodes]] else begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=TYPE_CREATE_TABLE_STATEMENT, postfix_operators=[], prefix_operators=[], qualifier=StandardDdlLexicon, selectors=[])], member=hasMixin, postfix_operators=[], prefix_operators=[], qualifier=node, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tableNodes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=tableNodes, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=nodes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=node)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None))), label=None) end[}] else begin[{] None end[}] else begin[{] assign[member[.tableNodes], call[indexNode.getChildren, parameter[member[StandardDdlLexicon.TYPE_TABLE_REFERENCE]]]] end[}] if[binary_operation[binary_operation[member[.tableNodes], !=, literal[null]], &&, call[tableNodes.isEmpty, parameter[]]]] begin[{] local_variable[type[boolean], processed] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=toUpperCase, postfix_operators=[], prefix_operators=[], qualifier=possibleColumn, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" ASC")], member=indexOf, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=ascIndex)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=ascIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), operator=!=), name=asc)], modifiers={'final'}, type=BasicType(dimensions=[], name=boolean)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=toUpperCase, postfix_operators=[], prefix_operators=[], qualifier=possibleColumn, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" DESC")], member=indexOf, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=descIndex)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=descIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), operator=!=), name=desc)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), IfStatement(condition=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=IfStatement(condition=MemberReference(member=desc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=descIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=possibleColumn, selectors=[], type_arguments=None)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=ascIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=possibleColumn, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=MemberReference(member=tableIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ROOT, postfix_operators=[], prefix_operators=[], qualifier=Locale, selectors=[])], member=toUpperCase, postfix_operators=[], prefix_operators=[], qualifier=possibleColumn, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=dimensionTableNode, selectors=[MethodInvocation(arguments=[MemberReference(member=ROOT, postfix_operators=[], prefix_operators=[], qualifier=Locale, selectors=[])], member=toUpperCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=MemberReference(member=PERIOD, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=startsWith, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=nodeFactory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=indexNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=TYPE_COLUMN_REFERENCE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=node, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=colRef)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=desc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=TYPE_INDEX_ORDERABLE, postfix_operators=[], prefix_operators=[], qualifier=OracleDdlLexicon, selectors=[])], member=addMixin, postfix_operators=[], prefix_operators=[], qualifier=colRef, selectors=[], type_arguments=None), label=None), IfStatement(condition=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INDEX_ORDER, postfix_operators=[], prefix_operators=[], qualifier=OracleDdlLexicon, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DESC")], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=colRef, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INDEX_ORDER, postfix_operators=[], prefix_operators=[], qualifier=OracleDdlLexicon, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ASC")], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=colRef, selectors=[], type_arguments=None), label=None)]))])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=processed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), BreakStatement(goto=None, label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=tableNodes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=dimensionTableNode)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None))), label=None), IfStatement(condition=MemberReference(member=processed, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=IfStatement(condition=MemberReference(member=desc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SPACE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DESC"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SPACE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ASC"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=processed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)]))]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=[], qualifier=tableNodes, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=get, postfix_operators=[], prefix_operators=[], qualifier=tableNodes, selectors=[], type_arguments=None), name=tableNode)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=TYPE_COLUMN_DEFINITION, postfix_operators=[], prefix_operators=[], qualifier=StandardDdlLexicon, selectors=[])], member=getChildren, postfix_operators=[], prefix_operators=[], qualifier=tableNode, selectors=[], type_arguments=None), name=columnNodes)], modifiers={'final'}, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None))], dimensions=[], name=List, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=columnNodes, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=colNode, selectors=[MethodInvocation(arguments=[MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equalsIgnoreCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=nodeFactory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=indexNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=TYPE_COLUMN_REFERENCE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=node, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=colRef)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=desc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=TYPE_INDEX_ORDERABLE, postfix_operators=[], prefix_operators=[], qualifier=OracleDdlLexicon, selectors=[])], member=addMixin, postfix_operators=[], prefix_operators=[], qualifier=colRef, selectors=[], type_arguments=None), label=None), IfStatement(condition=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INDEX_ORDER, postfix_operators=[], prefix_operators=[], qualifier=OracleDdlLexicon, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DESC")], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=colRef, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INDEX_ORDER, postfix_operators=[], prefix_operators=[], qualifier=OracleDdlLexicon, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ASC")], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=colRef, selectors=[], type_arguments=None), label=None)]))])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=processed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), BreakStatement(goto=None, label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=columnNodes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=colNode)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=AstNode, sub_type=None))), label=None)])), IfStatement(condition=MemberReference(member=processed, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=IfStatement(condition=MemberReference(member=desc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SPACE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DESC"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SPACE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ASC"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=processed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)]))]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=asc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=IfStatement(condition=MemberReference(member=desc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SPACE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DESC"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=possibleColumn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SPACE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ASC"), operator=+)], member=add, postfix_operators=[], prefix_operators=[], qualifier=functions, selectors=[], type_arguments=None), label=None)]))]))]))]), control=EnhancedForControl(iterable=MemberReference(member=possibleColumns, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=possibleColumn)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] else begin[{] None end[}] if[call[functions.isEmpty, parameter[]]] begin[{] call[indexNode.setProperty, parameter[member[OracleDdlLexicon.OTHER_INDEX_REFS], member[.functions]]] else begin[{] None end[}] else begin[{] None end[}] if[binary_operation[member[.numLeft], !=, member[.numRight]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=nextPosition, postfix_operators=[], prefix_operators=[], qualifier=tokens, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ParsingException, sub_type=None)), label=None) else begin[{] None end[}] call[tokens.consume, parameter[member[.R_PAREN]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[parseIndexColumnExpressionList] operator[SEP] Keyword[final] identifier[String] identifier[columnExpressionList] , Keyword[final] identifier[AstNode] identifier[indexNode] operator[SEP] { Keyword[final] identifier[DdlTokenStream] identifier[tokens] operator[=] Keyword[new] identifier[DdlTokenStream] operator[SEP] identifier[columnExpressionList] , identifier[DdlTokenStream] operator[SEP] identifier[ddlTokenizer] operator[SEP] literal[boolean] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] identifier[tokens] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] identifier[tokens] operator[SEP] identifier[consume] operator[SEP] identifier[L_PAREN] operator[SEP] operator[SEP] Keyword[int] identifier[numLeft] operator[=] Other[1] operator[SEP] Keyword[int] identifier[numRight] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[tokens] operator[SEP] identifier[matches] operator[SEP] identifier[R_PAREN] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[possibleColumns] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[functions] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[text] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[isFunction] operator[=] literal[boolean] operator[SEP] Keyword[while] operator[SEP] identifier[tokens] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tokens] operator[SEP] identifier[canConsume] operator[SEP] identifier[COMMA] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isFunction] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[text] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[possibleColumns] operator[SEP] identifier[add] operator[SEP] identifier[text] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[text] operator[SEP] identifier[setLength] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[isFunction] operator[=] literal[boolean] operator[SEP] Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[tokens] operator[SEP] identifier[matches] operator[SEP] identifier[L_PAREN] operator[SEP] operator[SEP] { identifier[isFunction] operator[=] literal[boolean] operator[SEP] operator[++] identifier[numLeft] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[tokens] operator[SEP] identifier[matches] operator[SEP] literal[String] operator[SEP] operator[||] identifier[tokens] operator[SEP] identifier[matches] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[text] operator[SEP] identifier[append] operator[SEP] identifier[SPACE] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[tokens] operator[SEP] identifier[matches] operator[SEP] identifier[R_PAREN] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[numLeft] operator[==] operator[++] identifier[numRight] operator[SEP] { Keyword[if] operator[SEP] identifier[isFunction] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[text] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[possibleColumns] operator[SEP] identifier[add] operator[SEP] identifier[text] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] } } identifier[text] operator[SEP] identifier[append] operator[SEP] identifier[tokens] operator[SEP] identifier[consume] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[possibleColumns] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[AstNode] operator[>] identifier[tableNodes] operator[=] Other[null] operator[SEP] Keyword[final] Keyword[boolean] identifier[tableIndex] operator[=] identifier[indexNode] operator[SEP] identifier[hasMixin] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[TYPE_CREATE_TABLE_INDEX_STATEMENT] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tableIndex] operator[SEP] { Keyword[final] identifier[String] identifier[tableName] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[indexNode] operator[SEP] identifier[getProperty] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[TABLE_NAME] operator[SEP] operator[SEP] Keyword[final] identifier[AstNode] identifier[parent] operator[=] identifier[indexNode] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[AstNode] operator[>] identifier[nodes] operator[=] identifier[parent] operator[SEP] identifier[childrenWithName] operator[SEP] identifier[tableName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[nodes] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[nodes] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[1] operator[SEP] { identifier[tableNodes] operator[=] identifier[nodes] operator[SEP] } Keyword[else] { Keyword[for] operator[SEP] Keyword[final] identifier[AstNode] identifier[node] operator[:] identifier[nodes] operator[SEP] { Keyword[if] operator[SEP] identifier[node] operator[SEP] identifier[hasMixin] operator[SEP] identifier[StandardDdlLexicon] operator[SEP] identifier[TYPE_CREATE_TABLE_STATEMENT] operator[SEP] operator[SEP] { identifier[tableNodes] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[AstNode] operator[>] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[tableNodes] operator[SEP] identifier[add] operator[SEP] identifier[node] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } } } } } Keyword[else] { identifier[tableNodes] operator[=] identifier[indexNode] operator[SEP] identifier[getChildren] operator[SEP] identifier[StandardDdlLexicon] operator[SEP] identifier[TYPE_TABLE_REFERENCE] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[SEP] identifier[tableNodes] operator[!=] Other[null] operator[SEP] operator[&&] operator[!] identifier[tableNodes] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[boolean] identifier[processed] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[possibleColumn] operator[:] identifier[possibleColumns] operator[SEP] { Keyword[final] Keyword[int] identifier[ascIndex] operator[=] identifier[possibleColumn] operator[SEP] identifier[toUpperCase] operator[SEP] operator[SEP] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[final] Keyword[boolean] identifier[asc] operator[=] operator[SEP] identifier[ascIndex] operator[!=] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[descIndex] operator[=] identifier[possibleColumn] operator[SEP] identifier[toUpperCase] operator[SEP] operator[SEP] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[boolean] identifier[desc] operator[=] operator[SEP] identifier[descIndex] operator[!=] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[asc] operator[SEP] { identifier[possibleColumn] operator[=] identifier[possibleColumn] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[ascIndex] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[desc] operator[SEP] { identifier[possibleColumn] operator[=] identifier[possibleColumn] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[descIndex] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[tableIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[tableNodes] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[asc] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[+] identifier[SPACE] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[desc] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[+] identifier[SPACE] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[final] identifier[AstNode] identifier[tableNode] operator[=] identifier[tableNodes] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[AstNode] operator[>] identifier[columnNodes] operator[=] identifier[tableNode] operator[SEP] identifier[getChildren] operator[SEP] identifier[StandardDdlLexicon] operator[SEP] identifier[TYPE_COLUMN_DEFINITION] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[columnNodes] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[AstNode] identifier[colNode] operator[:] identifier[columnNodes] operator[SEP] { Keyword[if] operator[SEP] identifier[colNode] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[possibleColumn] operator[SEP] operator[SEP] { Keyword[final] identifier[AstNode] identifier[colRef] operator[=] identifier[nodeFactory] operator[SEP] operator[SEP] operator[SEP] identifier[node] operator[SEP] identifier[possibleColumn] , identifier[indexNode] , identifier[TYPE_COLUMN_REFERENCE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[asc] operator[||] identifier[desc] operator[SEP] { identifier[colRef] operator[SEP] identifier[addMixin] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[TYPE_INDEX_ORDERABLE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[asc] operator[SEP] { identifier[colRef] operator[SEP] identifier[setProperty] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[INDEX_ORDER] , literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[colRef] operator[SEP] identifier[setProperty] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[INDEX_ORDER] , literal[String] operator[SEP] operator[SEP] } } identifier[processed] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] } } } Keyword[if] operator[SEP] operator[!] identifier[processed] operator[SEP] { Keyword[if] operator[SEP] identifier[asc] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[+] identifier[SPACE] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[desc] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[+] identifier[SPACE] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[SEP] operator[SEP] } identifier[processed] operator[=] literal[boolean] operator[SEP] } } } Keyword[else] { Keyword[for] operator[SEP] Keyword[final] identifier[AstNode] identifier[dimensionTableNode] operator[:] identifier[tableNodes] operator[SEP] { Keyword[if] operator[SEP] identifier[possibleColumn] operator[SEP] identifier[toUpperCase] operator[SEP] identifier[Locale] operator[SEP] identifier[ROOT] operator[SEP] operator[SEP] identifier[startsWith] operator[SEP] identifier[dimensionTableNode] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[toUpperCase] operator[SEP] identifier[Locale] operator[SEP] identifier[ROOT] operator[SEP] operator[+] identifier[PERIOD] operator[SEP] operator[SEP] { Keyword[final] identifier[AstNode] identifier[colRef] operator[=] identifier[nodeFactory] operator[SEP] operator[SEP] operator[SEP] identifier[node] operator[SEP] identifier[possibleColumn] , identifier[indexNode] , identifier[TYPE_COLUMN_REFERENCE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[asc] operator[||] identifier[desc] operator[SEP] { identifier[colRef] operator[SEP] identifier[addMixin] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[TYPE_INDEX_ORDERABLE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[asc] operator[SEP] { identifier[colRef] operator[SEP] identifier[setProperty] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[INDEX_ORDER] , literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[colRef] operator[SEP] identifier[setProperty] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[INDEX_ORDER] , literal[String] operator[SEP] operator[SEP] } } identifier[processed] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] } } Keyword[if] operator[SEP] operator[!] identifier[processed] operator[SEP] { Keyword[if] operator[SEP] identifier[asc] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[+] identifier[SPACE] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[desc] operator[SEP] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[+] identifier[SPACE] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[functions] operator[SEP] identifier[add] operator[SEP] identifier[possibleColumn] operator[SEP] operator[SEP] } identifier[processed] operator[=] literal[boolean] operator[SEP] } } } } } Keyword[if] operator[SEP] operator[!] identifier[functions] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[indexNode] operator[SEP] identifier[setProperty] operator[SEP] identifier[OracleDdlLexicon] operator[SEP] identifier[OTHER_INDEX_REFS] , identifier[functions] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[numLeft] operator[!=] identifier[numRight] operator[SEP] { Keyword[throw] Keyword[new] identifier[ParsingException] operator[SEP] identifier[tokens] operator[SEP] identifier[nextPosition] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[tokens] operator[SEP] identifier[consume] operator[SEP] identifier[R_PAREN] operator[SEP] operator[SEP] }
public void convertFromJsonld(InputStream in, OutputStream out) { Model modelJena = ModelFactory.createDefaultModel(); if (in == null) { throw new IllegalArgumentException("Input File: " + " not found"); } if (out == null) { throw new IllegalArgumentException("Output File: " + " not found"); } // read the JSONLD file modelJena.read(in, null, "JSONLD"); RDFDataMgr.write(out, modelJena, Lang.RDFXML); LOG.info(" RDF file " + " is written successfully."); }
class class_name[name] begin[{] method[convertFromJsonld, return_type[void], modifier[public], parameter[in, out]] begin[{] local_variable[type[Model], modelJena] if[binary_operation[member[.in], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Input File: "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" not found"), 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[}] if[binary_operation[member[.out], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Output File: "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" not found"), 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[}] call[modelJena.read, parameter[member[.in], literal[null], literal["JSONLD"]]] call[RDFDataMgr.write, parameter[member[.out], member[.modelJena], member[Lang.RDFXML]]] call[LOG.info, parameter[binary_operation[literal[" RDF file "], +, literal[" is written successfully."]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[convertFromJsonld] operator[SEP] identifier[InputStream] identifier[in] , identifier[OutputStream] identifier[out] operator[SEP] { identifier[Model] identifier[modelJena] operator[=] identifier[ModelFactory] operator[SEP] identifier[createDefaultModel] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[in] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[out] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[modelJena] operator[SEP] identifier[read] operator[SEP] identifier[in] , Other[null] , literal[String] operator[SEP] operator[SEP] identifier[RDFDataMgr] operator[SEP] identifier[write] operator[SEP] identifier[out] , identifier[modelJena] , identifier[Lang] operator[SEP] identifier[RDFXML] operator[SEP] operator[SEP] identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] }
private void configureServer(ServerBartender server) { // XXX: mixing server/client ServerNetwork serverNet = _serverMap.get(server.getId()); if (serverNet == null) { serverNet = new ServerNetwork(_system, server); configServer(serverNet, server); serverNet.init(); _serverMap.put(server.getId(), serverNet); } }
class class_name[name] begin[{] method[configureServer, return_type[void], modifier[private], parameter[server]] begin[{] local_variable[type[ServerNetwork], serverNet] if[binary_operation[member[.serverNet], ==, literal[null]]] begin[{] assign[member[.serverNet], ClassCreator(arguments=[MemberReference(member=_system, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=server, 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=ServerNetwork, sub_type=None))] call[.configServer, parameter[member[.serverNet], member[.server]]] call[serverNet.init, parameter[]] call[_serverMap.put, parameter[call[server.getId, parameter[]], member[.serverNet]]] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[configureServer] operator[SEP] identifier[ServerBartender] identifier[server] operator[SEP] { identifier[ServerNetwork] identifier[serverNet] operator[=] identifier[_serverMap] operator[SEP] identifier[get] operator[SEP] identifier[server] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[serverNet] operator[==] Other[null] operator[SEP] { identifier[serverNet] operator[=] Keyword[new] identifier[ServerNetwork] operator[SEP] identifier[_system] , identifier[server] operator[SEP] operator[SEP] identifier[configServer] operator[SEP] identifier[serverNet] , identifier[server] operator[SEP] operator[SEP] identifier[serverNet] operator[SEP] identifier[init] operator[SEP] operator[SEP] operator[SEP] identifier[_serverMap] operator[SEP] identifier[put] operator[SEP] identifier[server] operator[SEP] identifier[getId] operator[SEP] operator[SEP] , identifier[serverNet] operator[SEP] operator[SEP] } }
public EClass getResourceSectionNumber() { if (resourceSectionNumberEClass == null) { resourceSectionNumberEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(375); } return resourceSectionNumberEClass; }
class class_name[name] begin[{] method[getResourceSectionNumber, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.resourceSectionNumberEClass], ==, literal[null]]] begin[{] assign[member[.resourceSectionNumberEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(member=eNS_URI, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, 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=375)], 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[.resourceSectionNumberEClass]] end[}] END[}]
Keyword[public] identifier[EClass] identifier[getResourceSectionNumber] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[resourceSectionNumberEClass] operator[==] Other[null] operator[SEP] { identifier[resourceSectionNumberEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[getEPackage] operator[SEP] identifier[AfplibPackage] operator[SEP] identifier[eNS_URI] operator[SEP] operator[SEP] identifier[getEClassifiers] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[375] operator[SEP] operator[SEP] } Keyword[return] identifier[resourceSectionNumberEClass] operator[SEP] }
private boolean printRelationshipsWithLongSyntax(final List<Relationship> relationships) { for (final Relationship relationship : relationships) { if (relationship.getRelationshipTitle() != null && !relationship.getRelationshipTitle().trim().isEmpty()) { return true; } } return false; }
class class_name[name] begin[{] method[printRelationshipsWithLongSyntax, return_type[type[boolean]], modifier[private], parameter[relationships]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getRelationshipTitle, postfix_operators=[], prefix_operators=[], qualifier=relationship, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[], member=getRelationshipTitle, postfix_operators=[], prefix_operators=['!'], qualifier=relationship, selectors=[MethodInvocation(arguments=[], member=trim, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=isEmpty, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=relationships, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=relationship)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Relationship, sub_type=None))), label=None) return[literal[false]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[printRelationshipsWithLongSyntax] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Relationship] operator[>] identifier[relationships] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[Relationship] identifier[relationship] operator[:] identifier[relationships] operator[SEP] { Keyword[if] operator[SEP] identifier[relationship] operator[SEP] identifier[getRelationshipTitle] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] operator[!] identifier[relationship] operator[SEP] identifier[getRelationshipTitle] operator[SEP] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public static Element createElement(String localPart) { Document doc = getOwnerDocument(); if (ROOT_LOGGER.isTraceEnabled()) ROOT_LOGGER.trace("createElement {}" + localPart); return doc.createElement(localPart); }
class class_name[name] begin[{] method[createElement, return_type[type[Element]], modifier[public static], parameter[localPart]] begin[{] local_variable[type[Document], doc] if[call[ROOT_LOGGER.isTraceEnabled, parameter[]]] begin[{] call[ROOT_LOGGER.trace, parameter[binary_operation[literal["createElement {}"], +, member[.localPart]]]] else begin[{] None end[}] return[call[doc.createElement, parameter[member[.localPart]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Element] identifier[createElement] operator[SEP] identifier[String] identifier[localPart] operator[SEP] { identifier[Document] identifier[doc] operator[=] identifier[getOwnerDocument] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ROOT_LOGGER] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[ROOT_LOGGER] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[+] identifier[localPart] operator[SEP] operator[SEP] Keyword[return] identifier[doc] operator[SEP] identifier[createElement] operator[SEP] identifier[localPart] operator[SEP] operator[SEP] }
private static void setOffsetHeight(final Widget widget, int height) { widget.setHeight(height + "px"); final int offset = widget.getOffsetHeight(); if (offset > 0) { height -= offset - height; if (height > 0) { widget.setHeight(height + "px"); } } }
class class_name[name] begin[{] method[setOffsetHeight, return_type[void], modifier[private static], parameter[widget, height]] begin[{] call[widget.setHeight, parameter[binary_operation[member[.height], +, literal["px"]]]] local_variable[type[int], offset] if[binary_operation[member[.offset], >, literal[0]]] begin[{] assign[member[.height], binary_operation[member[.offset], -, member[.height]]] if[binary_operation[member[.height], >, literal[0]]] begin[{] call[widget.setHeight, parameter[binary_operation[member[.height], +, literal["px"]]]] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[setOffsetHeight] operator[SEP] Keyword[final] identifier[Widget] identifier[widget] , Keyword[int] identifier[height] operator[SEP] { identifier[widget] operator[SEP] identifier[setHeight] operator[SEP] identifier[height] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[offset] operator[=] identifier[widget] operator[SEP] identifier[getOffsetHeight] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[offset] operator[>] Other[0] operator[SEP] { identifier[height] operator[-=] identifier[offset] operator[-] identifier[height] operator[SEP] Keyword[if] operator[SEP] identifier[height] operator[>] Other[0] operator[SEP] { identifier[widget] operator[SEP] identifier[setHeight] operator[SEP] identifier[height] operator[+] literal[String] operator[SEP] operator[SEP] } } }
private synchronized final UsageAwareDatastoreConnection<E> getDatastoreConnection() { if (_datastoreConnection != null) { return _datastoreConnection; } UsageAwareDatastoreConnection<E> datastoreConnection; if (_datastoreConnectionRef != null) { datastoreConnection = _datastoreConnectionRef.get(); if (datastoreConnection != null && datastoreConnection.requestUsage()) { // reuse existing data context provider logger.debug("Reusing existing DatastoreConnection: {}", datastoreConnection); return datastoreConnection; } } datastoreConnection = createDatastoreConnection(); if (datastoreConnection == null) { throw new IllegalStateException("createDatastoreConnection() returned null"); } _datastoreConnectionRef = new WeakReference<UsageAwareDatastoreConnection<E>>(datastoreConnection); return datastoreConnection; }
class class_name[name] begin[{] method[getDatastoreConnection, return_type[type[UsageAwareDatastoreConnection]], modifier[synchronized final private], parameter[]] begin[{] if[binary_operation[member[._datastoreConnection], !=, literal[null]]] begin[{] return[member[._datastoreConnection]] else begin[{] None end[}] local_variable[type[UsageAwareDatastoreConnection], datastoreConnection] if[binary_operation[member[._datastoreConnectionRef], !=, literal[null]]] begin[{] assign[member[.datastoreConnection], call[_datastoreConnectionRef.get, parameter[]]] if[binary_operation[binary_operation[member[.datastoreConnection], !=, literal[null]], &&, call[datastoreConnection.requestUsage, parameter[]]]] begin[{] call[logger.debug, parameter[literal["Reusing existing DatastoreConnection: {}"], member[.datastoreConnection]]] return[member[.datastoreConnection]] else begin[{] None end[}] else begin[{] None end[}] assign[member[.datastoreConnection], call[.createDatastoreConnection, parameter[]]] if[binary_operation[member[.datastoreConnection], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="createDatastoreConnection() returned null")], 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) else begin[{] None end[}] assign[member[._datastoreConnectionRef], ClassCreator(arguments=[MemberReference(member=datastoreConnection, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=E, sub_type=None))], dimensions=[], name=UsageAwareDatastoreConnection, sub_type=None))], dimensions=None, name=WeakReference, sub_type=None))] return[member[.datastoreConnection]] end[}] END[}]
Keyword[private] Keyword[synchronized] Keyword[final] identifier[UsageAwareDatastoreConnection] operator[<] identifier[E] operator[>] identifier[getDatastoreConnection] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_datastoreConnection] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[_datastoreConnection] operator[SEP] } identifier[UsageAwareDatastoreConnection] operator[<] identifier[E] operator[>] identifier[datastoreConnection] operator[SEP] Keyword[if] operator[SEP] identifier[_datastoreConnectionRef] operator[!=] Other[null] operator[SEP] { identifier[datastoreConnection] operator[=] identifier[_datastoreConnectionRef] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[datastoreConnection] operator[!=] Other[null] operator[&&] identifier[datastoreConnection] operator[SEP] identifier[requestUsage] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[datastoreConnection] operator[SEP] operator[SEP] Keyword[return] identifier[datastoreConnection] operator[SEP] } } identifier[datastoreConnection] operator[=] identifier[createDatastoreConnection] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[datastoreConnection] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[_datastoreConnectionRef] operator[=] Keyword[new] identifier[WeakReference] operator[<] identifier[UsageAwareDatastoreConnection] operator[<] identifier[E] operator[>] operator[>] operator[SEP] identifier[datastoreConnection] operator[SEP] operator[SEP] Keyword[return] identifier[datastoreConnection] operator[SEP] }
@Override @Implementation(minSdk = LOLLIPOP) public void recycleUnchecked() { if (Build.VERSION.SDK_INT >= LOLLIPOP) { directlyOn(realObject, Message.class, "recycleUnchecked"); } else { directlyOn(realObject, Message.class).recycle(); } }
class class_name[name] begin[{] method[recycleUnchecked, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[.LOLLIPOP]]] begin[{] call[.directlyOn, parameter[member[.realObject], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Message, sub_type=None)), literal["recycleUnchecked"]]] else begin[{] call[.directlyOn, parameter[member[.realObject], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Message, sub_type=None))]] end[}] end[}] END[}]
annotation[@] identifier[Override] annotation[@] identifier[Implementation] operator[SEP] identifier[minSdk] operator[=] identifier[LOLLIPOP] operator[SEP] Keyword[public] Keyword[void] identifier[recycleUnchecked] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION] operator[SEP] identifier[SDK_INT] operator[>=] identifier[LOLLIPOP] operator[SEP] { identifier[directlyOn] operator[SEP] identifier[realObject] , identifier[Message] operator[SEP] Keyword[class] , literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[directlyOn] operator[SEP] identifier[realObject] , identifier[Message] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[recycle] operator[SEP] operator[SEP] operator[SEP] } }
@Override public RegisterPatchBaselineForPatchGroupResult registerPatchBaselineForPatchGroup(RegisterPatchBaselineForPatchGroupRequest request) { request = beforeClientExecution(request); return executeRegisterPatchBaselineForPatchGroup(request); }
class class_name[name] begin[{] method[registerPatchBaselineForPatchGroup, return_type[type[RegisterPatchBaselineForPatchGroupResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeRegisterPatchBaselineForPatchGroup, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[RegisterPatchBaselineForPatchGroupResult] identifier[registerPatchBaselineForPatchGroup] operator[SEP] identifier[RegisterPatchBaselineForPatchGroupRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeRegisterPatchBaselineForPatchGroup] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
@Override public CreateFlowResult createFlow(CreateFlowRequest request) { request = beforeClientExecution(request); return executeCreateFlow(request); }
class class_name[name] begin[{] method[createFlow, return_type[type[CreateFlowResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateFlow, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CreateFlowResult] identifier[createFlow] operator[SEP] identifier[CreateFlowRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeCreateFlow] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public ServiceFuture<List<CapabilityInner>> listCapabilitiesAsync(String resourceGroupName, String name, final ServiceCallback<List<CapabilityInner>> serviceCallback) { return ServiceFuture.fromResponse(listCapabilitiesWithServiceResponseAsync(resourceGroupName, name), serviceCallback); }
class class_name[name] begin[{] method[listCapabilitiesAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, name, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listCapabilitiesWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.name]]], member[.serviceCallback]]]] end[}] END[}]
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[CapabilityInner] operator[>] operator[>] identifier[listCapabilitiesAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[name] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[List] operator[<] identifier[CapabilityInner] operator[>] operator[>] identifier[serviceCallback] operator[SEP] { Keyword[return] identifier[ServiceFuture] operator[SEP] identifier[fromResponse] operator[SEP] identifier[listCapabilitiesWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[name] operator[SEP] , identifier[serviceCallback] operator[SEP] operator[SEP] }
public static Set<Field> getFieldsAnnotatedWith(Object object, Class<? extends Annotation>[] annotationTypes) { return WhiteboxImpl.getFieldsAnnotatedWith(object, annotationTypes); }
class class_name[name] begin[{] method[getFieldsAnnotatedWith, return_type[type[Set]], modifier[public static], parameter[object, annotationTypes]] begin[{] return[call[WhiteboxImpl.getFieldsAnnotatedWith, parameter[member[.object], member[.annotationTypes]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[Field] operator[>] identifier[getFieldsAnnotatedWith] operator[SEP] identifier[Object] identifier[object] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Annotation] operator[>] operator[SEP] operator[SEP] identifier[annotationTypes] operator[SEP] { Keyword[return] identifier[WhiteboxImpl] operator[SEP] identifier[getFieldsAnnotatedWith] operator[SEP] identifier[object] , identifier[annotationTypes] operator[SEP] operator[SEP] }
public static QueryAtomContainer create(IAtomContainer mol, Expr.Type... opts) { Set<Expr.Type> optset = EnumSet.noneOf(Expr.Type.class); optset.addAll(Arrays.asList(opts)); QueryAtomContainer query = new QueryAtomContainer(mol.getBuilder()); Map<IChemObject, IChemObject> mapping = new HashMap<>(); Map<IChemObject, IStereoElement> stereos = new HashMap<>(); for (IStereoElement se : mol.stereoElements()) stereos.put(se.getFocus(), se); List<IStereoElement> qstereo = new ArrayList<>(); for (IAtom atom : mol.atoms()) { Expr expr = new Expr(); // isotope first if (optset.contains(ISOTOPE) && atom.getMassNumber() != null) expr.and(new Expr(ISOTOPE, atom.getMassNumber())); if (atom.getAtomicNumber() != null && atom.getAtomicNumber() != 0) { if (atom.isAromatic()) { if (optset.contains(AROMATIC_ELEMENT)) { expr.and(new Expr(AROMATIC_ELEMENT, atom.getAtomicNumber())); } else { if (optset.contains(IS_AROMATIC)) { if (optset.contains(ELEMENT)) expr.and(new Expr(AROMATIC_ELEMENT, atom.getAtomicNumber())); else expr.and(new Expr(Expr.Type.IS_AROMATIC)); } else if (optset.contains(ELEMENT)) { expr.and(new Expr(ELEMENT, atom.getAtomicNumber())); } } } else { if (optset.contains(ALIPHATIC_ELEMENT)) { expr.and(new Expr(ALIPHATIC_ELEMENT, atom.getAtomicNumber())); } else { if (optset.contains(IS_ALIPHATIC)) { if (optset.contains(ELEMENT)) expr.and(new Expr(ALIPHATIC_ELEMENT, atom.getAtomicNumber())); else expr.and(new Expr(Expr.Type.IS_ALIPHATIC)); } else if (optset.contains(ELEMENT)) { expr.and(new Expr(ELEMENT, atom.getAtomicNumber())); } } } } if (optset.contains(DEGREE)) expr.and(new Expr(DEGREE, atom.getBondCount())); if (optset.contains(TOTAL_DEGREE)) expr.and(new Expr(DEGREE, atom.getBondCount() + atom.getImplicitHydrogenCount())); if (optset.contains(IS_IN_RING) || optset.contains(IS_IN_CHAIN)) expr.and(new Expr(atom.isInRing() ? IS_IN_RING : IS_IN_CHAIN)); if (optset.contains(IMPL_H_COUNT)) expr.and(new Expr(IMPL_H_COUNT)); if (optset.contains(RING_BOND_COUNT)) { int rbonds = 0; for (IBond bond : mol.getConnectedBondsList(atom)) if (bond.isInRing()) rbonds++; expr.and(new Expr(RING_BOND_COUNT, rbonds)); } if (optset.contains(FORMAL_CHARGE) && atom.getFormalCharge() != null) expr.and(new Expr(FORMAL_CHARGE, atom.getFormalCharge())); IStereoElement se = stereos.get(atom); if (se != null && se.getConfigClass() == IStereoElement.TH && optset.contains(STEREOCHEMISTRY)) { expr.and(new Expr(STEREOCHEMISTRY, se.getConfigOrder())); qstereo.add(se); } QueryAtom qatom = new QueryAtom(expr); // backward compatibility for naughty methods that are expecting // these to be set for a query! if (optset.contains(Expr.Type.ELEMENT) || optset.contains(Expr.Type.AROMATIC_ELEMENT) || optset.contains(Expr.Type.ALIPHATIC_ELEMENT)) qatom.setSymbol(atom.getSymbol()); if (optset.contains(Expr.Type.AROMATIC_ELEMENT) || optset.contains(Expr.Type.IS_AROMATIC)) qatom.setIsAromatic(atom.isAromatic()); mapping.put(atom, qatom); query.addAtom(qatom); } for (IBond bond : mol.bonds()) { Expr expr = new Expr(); if (bond.isAromatic() && (optset.contains(SINGLE_OR_AROMATIC) || optset.contains(DOUBLE_OR_AROMATIC) || optset.contains(IS_AROMATIC))) expr.and(new Expr(Expr.Type.IS_AROMATIC)); else if ((optset.contains(SINGLE_OR_AROMATIC) || optset.contains(DOUBLE_OR_AROMATIC) || optset.contains(ALIPHATIC_ORDER)) && !bond.isAromatic()) expr.and(new Expr(ALIPHATIC_ORDER, bond.getOrder().numeric())); else if (bond.isAromatic() && optset.contains(IS_ALIPHATIC)) expr.and(new Expr(IS_ALIPHATIC)); else if (optset.contains(ORDER)) expr.and(new Expr(ORDER, bond.getOrder().numeric())); if (optset.contains(IS_IN_RING) && bond.isInRing()) expr.and(new Expr(IS_IN_RING)); else if (optset.contains(IS_IN_CHAIN) && !bond.isInRing()) expr.and(new Expr(IS_IN_CHAIN)); IStereoElement se = stereos.get(bond); if (se != null && optset.contains(STEREOCHEMISTRY)) { expr.and(new Expr(STEREOCHEMISTRY, se.getConfigOrder())); qstereo.add(se); } QueryBond qbond = new QueryBond((IAtom) mapping.get(bond.getBegin()), (IAtom) mapping.get(bond.getEnd()), expr); // backward compatibility for naughty methods that are expecting // these to be set for a query! if (optset.contains(Expr.Type.ALIPHATIC_ORDER) || optset.contains(Expr.Type.ORDER)) qbond.setOrder(bond.getOrder()); if (optset.contains(Expr.Type.SINGLE_OR_AROMATIC) || optset.contains(Expr.Type.DOUBLE_OR_AROMATIC) || optset.contains(Expr.Type.IS_AROMATIC)) qbond.setIsAromatic(bond.isAromatic()); mapping.put(bond, qbond); query.addBond(qbond); } for (IStereoElement se : qstereo) query.addStereoElement(se.map(mapping)); return query; }
class class_name[name] begin[{] method[create, return_type[type[QueryAtomContainer]], modifier[public static], parameter[mol, opts]] begin[{] local_variable[type[Set], optset] call[optset.addAll, parameter[call[Arrays.asList, parameter[member[.opts]]]]] local_variable[type[QueryAtomContainer], query] local_variable[type[Map], mapping] local_variable[type[Map], stereos] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFocus, postfix_operators=[], prefix_operators=[], qualifier=se, selectors=[], type_arguments=None), MemberReference(member=se, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=stereos, selectors=[], type_arguments=None), label=None), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=stereoElements, postfix_operators=[], prefix_operators=[], qualifier=mol, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=se)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IStereoElement, sub_type=None))), label=None) local_variable[type[List], qstereo] ForStatement(body=BlockStatement(label=None, statements=[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=Expr, sub_type=None)), name=expr)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Expr, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=ISOTOPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getMassNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ISOTOPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getMassNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=isAromatic, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ALIPHATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=IS_ALIPHATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IS_ALIPHATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ALIPHATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None))]))]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ALIPHATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)]))]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=AROMATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=IS_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IS_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=AROMATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None))]))]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=AROMATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAtomicNumber, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)]))]))])), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=DEGREE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=DEGREE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getBondCount, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=TOTAL_DEGREE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=DEGREE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBondCount, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=getImplicitHydrogenCount, postfix_operators=[], prefix_operators=[], qualifier=atom, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=IS_IN_RING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=IS_IN_CHAIN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[TernaryExpression(condition=MethodInvocation(arguments=[], member=isInRing, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), if_false=MemberReference(member=IS_IN_CHAIN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=IS_IN_RING, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=IMPL_H_COUNT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IMPL_H_COUNT, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=RING_BOND_COUNT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=rbonds)], modifiers=set(), type=BasicType(dimensions=[], name=int)), ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[], member=isInRing, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MemberReference(member=rbonds, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)), control=EnhancedForControl(iterable=MethodInvocation(arguments=[MemberReference(member=atom, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getConnectedBondsList, postfix_operators=[], prefix_operators=[], qualifier=mol, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=bond)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IBond, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=RING_BOND_COUNT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rbonds, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=FORMAL_CHARGE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getFormalCharge, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=FORMAL_CHARGE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getFormalCharge, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=atom, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=stereos, selectors=[], type_arguments=None), name=se)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IStereoElement, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=se, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getConfigClass, postfix_operators=[], prefix_operators=[], qualifier=se, selectors=[], type_arguments=None), operandr=MemberReference(member=TH, postfix_operators=[], prefix_operators=[], qualifier=IStereoElement, selectors=[]), operator===), operator=&&), operandr=MethodInvocation(arguments=[MemberReference(member=STEREOCHEMISTRY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=STEREOCHEMISTRY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getConfigOrder, postfix_operators=[], prefix_operators=[], qualifier=se, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=se, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=qstereo, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=expr, 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=QueryAtom, sub_type=None)), name=qatom)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=QueryAtom, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=AROMATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), operandr=MethodInvocation(arguments=[MemberReference(member=ALIPHATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getSymbol, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], member=setSymbol, postfix_operators=[], prefix_operators=[], qualifier=qatom, selectors=[], type_arguments=None), label=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=AROMATIC_ELEMENT, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=IS_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=isAromatic, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None)], member=setIsAromatic, postfix_operators=[], prefix_operators=[], qualifier=qatom, selectors=[], type_arguments=None), label=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=atom, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=qatom, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=qatom, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addAtom, postfix_operators=[], prefix_operators=[], qualifier=query, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=atoms, postfix_operators=[], prefix_operators=[], qualifier=mol, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=atom)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IAtom, sub_type=None))), label=None) ForStatement(body=BlockStatement(label=None, statements=[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=Expr, sub_type=None)), name=expr)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Expr, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=isAromatic, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=SINGLE_OR_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=DOUBLE_OR_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), operandr=MethodInvocation(arguments=[MemberReference(member=IS_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=SINGLE_OR_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=DOUBLE_OR_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), operandr=MethodInvocation(arguments=[MemberReference(member=ALIPHATIC_ORDER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), operandr=MethodInvocation(arguments=[], member=isAromatic, postfix_operators=[], prefix_operators=['!'], qualifier=bond, selectors=[], type_arguments=None), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=isAromatic, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=IS_ALIPHATIC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=&&), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ORDER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ORDER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getOrder, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[MethodInvocation(arguments=[], member=numeric, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IS_ALIPHATIC, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=ALIPHATIC_ORDER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getOrder, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[MethodInvocation(arguments=[], member=numeric, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IS_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=IS_IN_RING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=isInRing, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=IS_IN_CHAIN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=isInRing, postfix_operators=[], prefix_operators=['!'], qualifier=bond, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IS_IN_CHAIN, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=IS_IN_RING, 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=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=stereos, selectors=[], type_arguments=None), name=se)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IStereoElement, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=se, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[MemberReference(member=STEREOCHEMISTRY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=STEREOCHEMISTRY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getConfigOrder, postfix_operators=[], prefix_operators=[], qualifier=se, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expr, sub_type=None))], member=and, postfix_operators=[], prefix_operators=[], qualifier=expr, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=se, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=qstereo, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getBegin, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None)], member=get, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=IAtom, sub_type=None)), Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEnd, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None)], member=get, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=IAtom, sub_type=None)), MemberReference(member=expr, 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=QueryBond, sub_type=None)), name=qbond)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=QueryBond, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=ALIPHATIC_ORDER, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=ORDER, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getOrder, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None)], member=setOrder, postfix_operators=[], prefix_operators=[], qualifier=qbond, selectors=[], type_arguments=None), label=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=SINGLE_OR_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=DOUBLE_OR_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), operandr=MethodInvocation(arguments=[MemberReference(member=IS_AROMATIC, postfix_operators=[], prefix_operators=[], qualifier=Expr.Type, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=optset, selectors=[], type_arguments=None), operator=||), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=isAromatic, postfix_operators=[], prefix_operators=[], qualifier=bond, selectors=[], type_arguments=None)], member=setIsAromatic, postfix_operators=[], prefix_operators=[], qualifier=qbond, selectors=[], type_arguments=None), label=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=bond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=qbond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=qbond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addBond, postfix_operators=[], prefix_operators=[], qualifier=query, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=bonds, postfix_operators=[], prefix_operators=[], qualifier=mol, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=bond)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IBond, sub_type=None))), label=None) ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=map, postfix_operators=[], prefix_operators=[], qualifier=se, selectors=[], type_arguments=None)], member=addStereoElement, postfix_operators=[], prefix_operators=[], qualifier=query, selectors=[], type_arguments=None), label=None), control=EnhancedForControl(iterable=MemberReference(member=qstereo, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=se)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IStereoElement, sub_type=None))), label=None) return[member[.query]] end[}] END[}]
Keyword[public] Keyword[static] identifier[QueryAtomContainer] identifier[create] operator[SEP] identifier[IAtomContainer] identifier[mol] , identifier[Expr] operator[SEP] identifier[Type] operator[...] identifier[opts] operator[SEP] { identifier[Set] operator[<] identifier[Expr] operator[SEP] identifier[Type] operator[>] identifier[optset] operator[=] identifier[EnumSet] operator[SEP] identifier[noneOf] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[optset] operator[SEP] identifier[addAll] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[opts] operator[SEP] operator[SEP] operator[SEP] identifier[QueryAtomContainer] identifier[query] operator[=] Keyword[new] identifier[QueryAtomContainer] operator[SEP] identifier[mol] operator[SEP] identifier[getBuilder] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[IChemObject] , identifier[IChemObject] operator[>] identifier[mapping] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[IChemObject] , identifier[IStereoElement] operator[>] identifier[stereos] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[IStereoElement] identifier[se] operator[:] identifier[mol] operator[SEP] identifier[stereoElements] operator[SEP] operator[SEP] operator[SEP] identifier[stereos] operator[SEP] identifier[put] operator[SEP] identifier[se] operator[SEP] identifier[getFocus] operator[SEP] operator[SEP] , identifier[se] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[IStereoElement] operator[>] identifier[qstereo] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[IAtom] identifier[atom] operator[:] identifier[mol] operator[SEP] identifier[atoms] operator[SEP] operator[SEP] operator[SEP] { identifier[Expr] identifier[expr] operator[=] Keyword[new] identifier[Expr] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ISOTOPE] operator[SEP] operator[&&] identifier[atom] operator[SEP] identifier[getMassNumber] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ISOTOPE] , identifier[atom] operator[SEP] identifier[getMassNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[!=] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[atom] operator[SEP] identifier[isAromatic] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[AROMATIC_ELEMENT] operator[SEP] operator[SEP] { identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[AROMATIC_ELEMENT] , identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_AROMATIC] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ELEMENT] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[AROMATIC_ELEMENT] , identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[else] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[IS_AROMATIC] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ELEMENT] operator[SEP] operator[SEP] { identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ELEMENT] , identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[else] { Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ALIPHATIC_ELEMENT] operator[SEP] operator[SEP] { identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ALIPHATIC_ELEMENT] , identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_ALIPHATIC] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ELEMENT] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ALIPHATIC_ELEMENT] , identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[else] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[IS_ALIPHATIC] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ELEMENT] operator[SEP] operator[SEP] { identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ELEMENT] , identifier[atom] operator[SEP] identifier[getAtomicNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } } } Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[DEGREE] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[DEGREE] , identifier[atom] operator[SEP] identifier[getBondCount] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[TOTAL_DEGREE] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[DEGREE] , identifier[atom] operator[SEP] identifier[getBondCount] operator[SEP] operator[SEP] operator[+] identifier[atom] operator[SEP] identifier[getImplicitHydrogenCount] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_IN_RING] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_IN_CHAIN] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[atom] operator[SEP] identifier[isInRing] operator[SEP] operator[SEP] operator[?] identifier[IS_IN_RING] operator[:] identifier[IS_IN_CHAIN] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IMPL_H_COUNT] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[IMPL_H_COUNT] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[RING_BOND_COUNT] operator[SEP] operator[SEP] { Keyword[int] identifier[rbonds] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[IBond] identifier[bond] operator[:] identifier[mol] operator[SEP] identifier[getConnectedBondsList] operator[SEP] identifier[atom] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bond] operator[SEP] identifier[isInRing] operator[SEP] operator[SEP] operator[SEP] identifier[rbonds] operator[++] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[RING_BOND_COUNT] , identifier[rbonds] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[FORMAL_CHARGE] operator[SEP] operator[&&] identifier[atom] operator[SEP] identifier[getFormalCharge] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[FORMAL_CHARGE] , identifier[atom] operator[SEP] identifier[getFormalCharge] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[IStereoElement] identifier[se] operator[=] identifier[stereos] operator[SEP] identifier[get] operator[SEP] identifier[atom] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[se] operator[!=] Other[null] operator[&&] identifier[se] operator[SEP] identifier[getConfigClass] operator[SEP] operator[SEP] operator[==] identifier[IStereoElement] operator[SEP] identifier[TH] operator[&&] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[STEREOCHEMISTRY] operator[SEP] operator[SEP] { identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[STEREOCHEMISTRY] , identifier[se] operator[SEP] identifier[getConfigOrder] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[qstereo] operator[SEP] identifier[add] operator[SEP] identifier[se] operator[SEP] operator[SEP] } identifier[QueryAtom] identifier[qatom] operator[=] Keyword[new] identifier[QueryAtom] operator[SEP] identifier[expr] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[ELEMENT] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[AROMATIC_ELEMENT] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[ALIPHATIC_ELEMENT] operator[SEP] operator[SEP] identifier[qatom] operator[SEP] identifier[setSymbol] operator[SEP] identifier[atom] operator[SEP] identifier[getSymbol] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[AROMATIC_ELEMENT] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[IS_AROMATIC] operator[SEP] operator[SEP] identifier[qatom] operator[SEP] identifier[setIsAromatic] operator[SEP] identifier[atom] operator[SEP] identifier[isAromatic] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[mapping] operator[SEP] identifier[put] operator[SEP] identifier[atom] , identifier[qatom] operator[SEP] operator[SEP] identifier[query] operator[SEP] identifier[addAtom] operator[SEP] identifier[qatom] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[IBond] identifier[bond] operator[:] identifier[mol] operator[SEP] identifier[bonds] operator[SEP] operator[SEP] operator[SEP] { identifier[Expr] identifier[expr] operator[=] Keyword[new] identifier[Expr] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bond] operator[SEP] identifier[isAromatic] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[SINGLE_OR_AROMATIC] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[DOUBLE_OR_AROMATIC] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_AROMATIC] operator[SEP] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[IS_AROMATIC] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[SINGLE_OR_AROMATIC] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[DOUBLE_OR_AROMATIC] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ALIPHATIC_ORDER] operator[SEP] operator[SEP] operator[&&] operator[!] identifier[bond] operator[SEP] identifier[isAromatic] operator[SEP] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ALIPHATIC_ORDER] , identifier[bond] operator[SEP] identifier[getOrder] operator[SEP] operator[SEP] operator[SEP] identifier[numeric] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[bond] operator[SEP] identifier[isAromatic] operator[SEP] operator[SEP] operator[&&] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_ALIPHATIC] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[IS_ALIPHATIC] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[ORDER] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[ORDER] , identifier[bond] operator[SEP] identifier[getOrder] operator[SEP] operator[SEP] operator[SEP] identifier[numeric] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_IN_RING] operator[SEP] operator[&&] identifier[bond] operator[SEP] identifier[isInRing] operator[SEP] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[IS_IN_RING] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[IS_IN_CHAIN] operator[SEP] operator[&&] operator[!] identifier[bond] operator[SEP] identifier[isInRing] operator[SEP] operator[SEP] operator[SEP] identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[IS_IN_CHAIN] operator[SEP] operator[SEP] operator[SEP] identifier[IStereoElement] identifier[se] operator[=] identifier[stereos] operator[SEP] identifier[get] operator[SEP] identifier[bond] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[se] operator[!=] Other[null] operator[&&] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[STEREOCHEMISTRY] operator[SEP] operator[SEP] { identifier[expr] operator[SEP] identifier[and] operator[SEP] Keyword[new] identifier[Expr] operator[SEP] identifier[STEREOCHEMISTRY] , identifier[se] operator[SEP] identifier[getConfigOrder] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[qstereo] operator[SEP] identifier[add] operator[SEP] identifier[se] operator[SEP] operator[SEP] } identifier[QueryBond] identifier[qbond] operator[=] Keyword[new] identifier[QueryBond] operator[SEP] operator[SEP] identifier[IAtom] operator[SEP] identifier[mapping] operator[SEP] identifier[get] operator[SEP] identifier[bond] operator[SEP] identifier[getBegin] operator[SEP] operator[SEP] operator[SEP] , operator[SEP] identifier[IAtom] operator[SEP] identifier[mapping] operator[SEP] identifier[get] operator[SEP] identifier[bond] operator[SEP] identifier[getEnd] operator[SEP] operator[SEP] operator[SEP] , identifier[expr] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[ALIPHATIC_ORDER] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[ORDER] operator[SEP] operator[SEP] identifier[qbond] operator[SEP] identifier[setOrder] operator[SEP] identifier[bond] operator[SEP] identifier[getOrder] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[SINGLE_OR_AROMATIC] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[DOUBLE_OR_AROMATIC] operator[SEP] operator[||] identifier[optset] operator[SEP] identifier[contains] operator[SEP] identifier[Expr] operator[SEP] identifier[Type] operator[SEP] identifier[IS_AROMATIC] operator[SEP] operator[SEP] identifier[qbond] operator[SEP] identifier[setIsAromatic] operator[SEP] identifier[bond] operator[SEP] identifier[isAromatic] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[mapping] operator[SEP] identifier[put] operator[SEP] identifier[bond] , identifier[qbond] operator[SEP] operator[SEP] identifier[query] operator[SEP] identifier[addBond] operator[SEP] identifier[qbond] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[IStereoElement] identifier[se] operator[:] identifier[qstereo] operator[SEP] identifier[query] operator[SEP] identifier[addStereoElement] operator[SEP] identifier[se] operator[SEP] identifier[map] operator[SEP] identifier[mapping] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[query] operator[SEP] }
public static final boolean deleteTableIfExists(final AmazonDynamoDB dynamo, final DeleteTableRequest deleteTableRequest) { try { dynamo.deleteTable(deleteTableRequest); return true; } catch (final ResourceNotFoundException e) { if (LOG.isTraceEnabled()) { LOG.trace("Table " + deleteTableRequest.getTableName() + " does not exist", e); } } return false; }
class class_name[name] begin[{] method[deleteTableIfExists, return_type[type[boolean]], modifier[final public static], parameter[dynamo, deleteTableRequest]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=deleteTableRequest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=deleteTable, postfix_operators=[], prefix_operators=[], qualifier=dynamo, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)], catches=[CatchClause(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isTraceEnabled, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Table "), operandr=MethodInvocation(arguments=[], member=getTableName, postfix_operators=[], prefix_operators=[], qualifier=deleteTableRequest, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" does not exist"), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=trace, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)]))], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['ResourceNotFoundException']))], finally_block=None, label=None, resources=None) return[literal[false]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] Keyword[boolean] identifier[deleteTableIfExists] operator[SEP] Keyword[final] identifier[AmazonDynamoDB] identifier[dynamo] , Keyword[final] identifier[DeleteTableRequest] identifier[deleteTableRequest] operator[SEP] { Keyword[try] { identifier[dynamo] operator[SEP] identifier[deleteTable] operator[SEP] identifier[deleteTableRequest] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[ResourceNotFoundException] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[LOG] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[+] identifier[deleteTableRequest] operator[SEP] identifier[getTableName] operator[SEP] operator[SEP] operator[+] literal[String] , identifier[e] operator[SEP] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public void updateTable(boolean dedup, long timestamp, String procedure, long partition, long invocations, long min, long max, long avg, long failures, long aborts) { ProcProfRow in = new ProcProfRow(timestamp, procedure, partition, invocations, min, max, avg, failures, aborts); ProcProfRow exists = m_table.ceiling(in); if (exists != null && in.procedure.equals(exists.procedure)) { exists.updateWith(dedup, in); } else { m_table.add(in); } }
class class_name[name] begin[{] method[updateTable, return_type[void], modifier[public], parameter[dedup, timestamp, procedure, partition, invocations, min, max, avg, failures, aborts]] begin[{] local_variable[type[ProcProfRow], in] local_variable[type[ProcProfRow], exists] if[binary_operation[binary_operation[member[.exists], !=, literal[null]], &&, call[in.procedure.equals, parameter[member[exists.procedure]]]]] begin[{] call[exists.updateWith, parameter[member[.dedup], member[.in]]] else begin[{] call[m_table.add, parameter[member[.in]]] end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[updateTable] operator[SEP] Keyword[boolean] identifier[dedup] , Keyword[long] identifier[timestamp] , identifier[String] identifier[procedure] , Keyword[long] identifier[partition] , Keyword[long] identifier[invocations] , Keyword[long] identifier[min] , Keyword[long] identifier[max] , Keyword[long] identifier[avg] , Keyword[long] identifier[failures] , Keyword[long] identifier[aborts] operator[SEP] { identifier[ProcProfRow] identifier[in] operator[=] Keyword[new] identifier[ProcProfRow] operator[SEP] identifier[timestamp] , identifier[procedure] , identifier[partition] , identifier[invocations] , identifier[min] , identifier[max] , identifier[avg] , identifier[failures] , identifier[aborts] operator[SEP] operator[SEP] identifier[ProcProfRow] identifier[exists] operator[=] identifier[m_table] operator[SEP] identifier[ceiling] operator[SEP] identifier[in] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[exists] operator[!=] Other[null] operator[&&] identifier[in] operator[SEP] identifier[procedure] operator[SEP] identifier[equals] operator[SEP] identifier[exists] operator[SEP] identifier[procedure] operator[SEP] operator[SEP] { identifier[exists] operator[SEP] identifier[updateWith] operator[SEP] identifier[dedup] , identifier[in] operator[SEP] operator[SEP] } Keyword[else] { identifier[m_table] operator[SEP] identifier[add] operator[SEP] identifier[in] operator[SEP] operator[SEP] } }
protected void decodeMessage(byte type, byte from, byte dest, DataInputStream buffer) throws IOException { final NetworkMessage message = decoder.getNetworkMessageFromType(type); if (message != null) { final int skip = 3; if (buffer.skipBytes(skip) == skip) { message.decode(type, from, dest, buffer); messagesIn.add(message); } } }
class class_name[name] begin[{] method[decodeMessage, return_type[void], modifier[protected], parameter[type, from, dest, buffer]] begin[{] local_variable[type[NetworkMessage], message] if[binary_operation[member[.message], !=, literal[null]]] begin[{] local_variable[type[int], skip] if[binary_operation[call[buffer.skipBytes, parameter[member[.skip]]], ==, member[.skip]]] begin[{] call[message.decode, parameter[member[.type], member[.from], member[.dest], member[.buffer]]] call[messagesIn.add, parameter[member[.message]]] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[decodeMessage] operator[SEP] Keyword[byte] identifier[type] , Keyword[byte] identifier[from] , Keyword[byte] identifier[dest] , identifier[DataInputStream] identifier[buffer] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[NetworkMessage] identifier[message] operator[=] identifier[decoder] operator[SEP] identifier[getNetworkMessageFromType] operator[SEP] identifier[type] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[message] operator[!=] Other[null] operator[SEP] { Keyword[final] Keyword[int] identifier[skip] operator[=] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[buffer] operator[SEP] identifier[skipBytes] operator[SEP] identifier[skip] operator[SEP] operator[==] identifier[skip] operator[SEP] { identifier[message] operator[SEP] identifier[decode] operator[SEP] identifier[type] , identifier[from] , identifier[dest] , identifier[buffer] operator[SEP] operator[SEP] identifier[messagesIn] operator[SEP] identifier[add] operator[SEP] identifier[message] operator[SEP] operator[SEP] } } }
public WeldEvent<Object> event() { checkIsRunning(); if (event == null) { synchronized (this) { if (event == null) { event = beanManager().event(); } } } return event; }
class class_name[name] begin[{] method[event, return_type[type[WeldEvent]], modifier[public], parameter[]] begin[{] call[.checkIsRunning, parameter[]] if[binary_operation[member[.event], ==, literal[null]]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] if[binary_operation[member[.event], ==, literal[null]]] begin[{] assign[member[.event], call[.beanManager, parameter[]]] else begin[{] None end[}] END[}] else begin[{] None end[}] return[member[.event]] end[}] END[}]
Keyword[public] identifier[WeldEvent] operator[<] identifier[Object] operator[>] identifier[event] operator[SEP] operator[SEP] { identifier[checkIsRunning] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[event] operator[==] Other[null] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { Keyword[if] operator[SEP] identifier[event] operator[==] Other[null] operator[SEP] { identifier[event] operator[=] identifier[beanManager] operator[SEP] operator[SEP] operator[SEP] identifier[event] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[return] identifier[event] operator[SEP] }
@Nonnull public static <T> LObjIntSrtPredicate<T> objIntSrtPredicateFrom(Consumer<LObjIntSrtPredicateBuilder<T>> buildingFunction) { LObjIntSrtPredicateBuilder builder = new LObjIntSrtPredicateBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[objIntSrtPredicateFrom, return_type[type[LObjIntSrtPredicate]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[LObjIntSrtPredicateBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] return[call[builder.build, parameter[]]] end[}] END[}]
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[LObjIntSrtPredicate] operator[<] identifier[T] operator[>] identifier[objIntSrtPredicateFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LObjIntSrtPredicateBuilder] operator[<] identifier[T] operator[>] operator[>] identifier[buildingFunction] operator[SEP] { identifier[LObjIntSrtPredicateBuilder] identifier[builder] operator[=] Keyword[new] identifier[LObjIntSrtPredicateBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buildingFunction] operator[SEP] identifier[accept] operator[SEP] identifier[builder] operator[SEP] operator[SEP] Keyword[return] identifier[builder] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] }
private boolean scanHeaders() throws IOException { int ch = read(); long length = 0; _headers.clear(); while (ch > 0 && ch != '\n' && ch != '\r') { _line.clear(); _line.append((char) ch); for (ch = read(); ch >= 0 && ch != '\n' && ch != '\r'; ch = read()) { _line.append((char) ch); if (_maxLength < length++) throw new IOException(L.l("header length {0} exceeded.", _maxLength)); } if (ch == '\r') { if ((ch = read()) == '\n') ch = read(); } else if (ch == '\n') ch = read(); int i = 0; for (; i < _line.length() && _line.charAt(i) != ':'; i++) { } String key = null; String value = null; if (i < _line.length()) { key = _line.substring(0, i).trim().toLowerCase(Locale.ENGLISH); value = _line.substring(i + 1).trim(); List<String> values = _headers.get(key); if (values == null) { values = new ArrayList<>(); } values.add(value); _headers.put(key, values); } } if (ch == '\r') { if ((ch = read()) != '\n') { _peek[0] = (byte) ch; _peekOffset = 0; _peekLength = 1; } } return true; }
class class_name[name] begin[{] method[scanHeaders, return_type[type[boolean]], modifier[private], parameter[]] begin[{] local_variable[type[int], ch] local_variable[type[long], length] call[_headers.clear, parameter[]] while[binary_operation[binary_operation[binary_operation[member[.ch], >, literal[0]], &&, binary_operation[member[.ch], !=, literal['\n']]], &&, binary_operation[member[.ch], !=, literal['\r']]]] begin[{] call[_line.clear, parameter[]] call[_line.append, parameter[Cast(expression=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=char))]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Cast(expression=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=char))], member=append, postfix_operators=[], prefix_operators=[], qualifier=_line, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=_maxLength, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=None, label=None, then_statement=ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="header length {0} exceeded."), MemberReference(member=_maxLength, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=l, postfix_operators=[], prefix_operators=[], qualifier=L, selectors=[], type_arguments=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)), label=None))]), control=ForControl(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='\n'), operator=!=), operator=&&), operandr=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='\r'), operator=!=), operator=&&), init=[Assignment(expressionl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=read, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None))], update=[Assignment(expressionl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=read, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None))]), label=None) if[binary_operation[member[.ch], ==, literal['\r']]] begin[{] if[binary_operation[assign[member[.ch], call[.read, parameter[]]], ==, literal['\n']]] begin[{] assign[member[.ch], call[.read, parameter[]]] else begin[{] None end[}] else begin[{] if[binary_operation[member[.ch], ==, literal['\n']]] begin[{] assign[member[.ch], call[.read, parameter[]]] else begin[{] None end[}] end[}] local_variable[type[int], i] ForStatement(body=BlockStatement(label=None, statements=[]), control=ForControl(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=_line, selectors=[], type_arguments=None), operator=<), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=_line, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':'), operator=!=), operator=&&), init=None, update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[String], key] local_variable[type[String], value] if[binary_operation[member[.i], <, call[_line.length, parameter[]]]] begin[{] assign[member[.key], call[_line.substring, parameter[literal[0], member[.i]]]] assign[member[.value], call[_line.substring, parameter[binary_operation[member[.i], +, literal[1]]]]] local_variable[type[List], values] if[binary_operation[member[.values], ==, literal[null]]] begin[{] assign[member[.values], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ArrayList, sub_type=None))] else begin[{] None end[}] call[values.add, parameter[member[.value]]] call[_headers.put, parameter[member[.key], member[.values]]] else begin[{] None end[}] end[}] if[binary_operation[member[.ch], ==, literal['\r']]] begin[{] if[binary_operation[assign[member[.ch], call[.read, parameter[]]], !=, literal['\n']]] begin[{] assign[member[._peek], Cast(expression=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=byte))] assign[member[._peekOffset], literal[0]] assign[member[._peekLength], literal[1]] else begin[{] None end[}] else begin[{] None end[}] return[literal[true]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[scanHeaders] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[length] operator[=] Other[0] operator[SEP] identifier[_headers] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[ch] operator[>] Other[0] operator[&&] identifier[ch] operator[!=] literal[String] operator[&&] identifier[ch] operator[!=] literal[String] operator[SEP] { identifier[_line] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[_line] operator[SEP] identifier[append] operator[SEP] operator[SEP] Keyword[char] operator[SEP] identifier[ch] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] identifier[ch] operator[>=] Other[0] operator[&&] identifier[ch] operator[!=] literal[String] operator[&&] identifier[ch] operator[!=] literal[String] operator[SEP] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] { identifier[_line] operator[SEP] identifier[append] operator[SEP] operator[SEP] Keyword[char] operator[SEP] identifier[ch] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_maxLength] operator[<] identifier[length] operator[++] operator[SEP] Keyword[throw] Keyword[new] identifier[IOException] operator[SEP] identifier[L] operator[SEP] identifier[l] operator[SEP] literal[String] , identifier[_maxLength] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[ch] operator[==] literal[String] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] operator[==] literal[String] operator[SEP] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[ch] operator[==] literal[String] operator[SEP] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] operator[SEP] identifier[i] operator[<] identifier[_line] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[&&] identifier[_line] operator[SEP] identifier[charAt] operator[SEP] identifier[i] operator[SEP] operator[!=] literal[String] operator[SEP] identifier[i] operator[++] operator[SEP] { } identifier[String] identifier[key] operator[=] Other[null] operator[SEP] identifier[String] identifier[value] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[i] operator[<] identifier[_line] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] { identifier[key] operator[=] identifier[_line] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[i] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] identifier[Locale] operator[SEP] identifier[ENGLISH] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[_line] operator[SEP] identifier[substring] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[=] identifier[_headers] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[values] operator[==] Other[null] operator[SEP] { identifier[values] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] } identifier[values] operator[SEP] identifier[add] operator[SEP] identifier[value] operator[SEP] operator[SEP] identifier[_headers] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[values] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[ch] operator[==] literal[String] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[ch] operator[=] identifier[read] operator[SEP] operator[SEP] operator[SEP] operator[!=] literal[String] operator[SEP] { identifier[_peek] operator[SEP] Other[0] operator[SEP] operator[=] operator[SEP] Keyword[byte] operator[SEP] identifier[ch] operator[SEP] identifier[_peekOffset] operator[=] Other[0] operator[SEP] identifier[_peekLength] operator[=] Other[1] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
@Override protected void sendStatusFromPartitionToAnalyzerIfPresent() { if (analyzerStatusQueue != null) { logger.fine("Send status from partition for analyzeStatus with batchStatus = " + stepStatus.getBatchStatus() + ", exitStatus = " + stepStatus.getExitStatus()); PartitionDataWrapper dataWrapper = new PartitionDataWrapper(); dataWrapper.setBatchStatus(stepStatus.getBatchStatus()); dataWrapper.setExitStatus(stepStatus.getExitStatus()); dataWrapper.setEventType(PartitionEventType.ANALYZE_STATUS); analyzerStatusQueue.add(dataWrapper); } else { logger.fine("Analyzer not configured."); } }
class class_name[name] begin[{] method[sendStatusFromPartitionToAnalyzerIfPresent, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[member[.analyzerStatusQueue], !=, literal[null]]] begin[{] call[logger.fine, parameter[binary_operation[binary_operation[binary_operation[literal["Send status from partition for analyzeStatus with batchStatus = "], +, call[stepStatus.getBatchStatus, parameter[]]], +, literal[", exitStatus = "]], +, call[stepStatus.getExitStatus, parameter[]]]]] local_variable[type[PartitionDataWrapper], dataWrapper] call[dataWrapper.setBatchStatus, parameter[call[stepStatus.getBatchStatus, parameter[]]]] call[dataWrapper.setExitStatus, parameter[call[stepStatus.getExitStatus, parameter[]]]] call[dataWrapper.setEventType, parameter[member[PartitionEventType.ANALYZE_STATUS]]] call[analyzerStatusQueue.add, parameter[member[.dataWrapper]]] else begin[{] call[logger.fine, parameter[literal["Analyzer not configured."]]] end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[sendStatusFromPartitionToAnalyzerIfPresent] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[analyzerStatusQueue] operator[!=] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[fine] operator[SEP] literal[String] operator[+] identifier[stepStatus] operator[SEP] identifier[getBatchStatus] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[stepStatus] operator[SEP] identifier[getExitStatus] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[PartitionDataWrapper] identifier[dataWrapper] operator[=] Keyword[new] identifier[PartitionDataWrapper] operator[SEP] operator[SEP] operator[SEP] identifier[dataWrapper] operator[SEP] identifier[setBatchStatus] operator[SEP] identifier[stepStatus] operator[SEP] identifier[getBatchStatus] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[dataWrapper] operator[SEP] identifier[setExitStatus] operator[SEP] identifier[stepStatus] operator[SEP] identifier[getExitStatus] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[dataWrapper] operator[SEP] identifier[setEventType] operator[SEP] identifier[PartitionEventType] operator[SEP] identifier[ANALYZE_STATUS] operator[SEP] operator[SEP] identifier[analyzerStatusQueue] operator[SEP] identifier[add] operator[SEP] identifier[dataWrapper] operator[SEP] operator[SEP] } Keyword[else] { identifier[logger] operator[SEP] identifier[fine] operator[SEP] literal[String] operator[SEP] operator[SEP] } }
private boolean isSynthetic(FieldOrMethod member) { if (BCELUtil.isSynthetic(member)) { return true; } String name = member.getName(); return name.startsWith("class$") || name.startsWith("access$"); }
class class_name[name] begin[{] method[isSynthetic, return_type[type[boolean]], modifier[private], parameter[member]] begin[{] if[call[BCELUtil.isSynthetic, parameter[member[.member]]]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable[type[String], name] return[binary_operation[call[name.startsWith, parameter[literal["class$"]]], ||, call[name.startsWith, parameter[literal["access$"]]]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[isSynthetic] operator[SEP] identifier[FieldOrMethod] identifier[member] operator[SEP] { Keyword[if] operator[SEP] identifier[BCELUtil] operator[SEP] identifier[isSynthetic] operator[SEP] identifier[member] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[String] identifier[name] operator[=] identifier[member] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[name] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[||] identifier[name] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] }
public static Map<String, String> mergeDefaults( CmsObject cms, Map<String, CmsXmlContentProperty> propertyConfig, Map<String, String> properties) { Map<String, String> result = new HashMap<String, String>(); if (propertyConfig != null) { for (Map.Entry<String, CmsXmlContentProperty> entry : propertyConfig.entrySet()) { CmsXmlContentProperty prop = entry.getValue(); String value = getPropValueIds(cms, prop.getType(), prop.getDefault()); if (value != null) { result.put(entry.getKey(), value); } } } result.putAll(properties); return result; }
class class_name[name] begin[{] method[mergeDefaults, return_type[type[Map]], modifier[public static], parameter[cms, propertyConfig, properties]] begin[{] local_variable[type[Map], result] if[binary_operation[member[.propertyConfig], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), name=prop)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CmsXmlContentProperty, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=cms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getType, postfix_operators=[], prefix_operators=[], qualifier=prop, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getDefault, postfix_operators=[], prefix_operators=[], qualifier=prop, selectors=[], type_arguments=None)], member=getPropValueIds, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, 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=[MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=propertyConfig, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_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=CmsXmlContentProperty, sub_type=None))], dimensions=None, name=Entry, sub_type=None)))), label=None) else begin[{] None end[}] call[result.putAll, parameter[member[.properties]]] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[mergeDefaults] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[Map] operator[<] identifier[String] , identifier[CmsXmlContentProperty] operator[>] identifier[propertyConfig] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[properties] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[propertyConfig] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[CmsXmlContentProperty] operator[>] identifier[entry] operator[:] identifier[propertyConfig] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { identifier[CmsXmlContentProperty] identifier[prop] operator[=] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[value] operator[=] identifier[getPropValueIds] operator[SEP] identifier[cms] , identifier[prop] operator[SEP] identifier[getType] operator[SEP] operator[SEP] , identifier[prop] operator[SEP] identifier[getDefault] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] { identifier[result] operator[SEP] identifier[put] operator[SEP] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] , identifier[value] operator[SEP] operator[SEP] } } } identifier[result] operator[SEP] identifier[putAll] operator[SEP] identifier[properties] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[SEP] }
public void startSpanWithParent(SpanBuilder spanBuilder, Span parent, String id) { if (parent != null) { spanBuilder.asChildOf(parent.context()); } doStartSpan(spanBuilder, id); }
class class_name[name] begin[{] method[startSpanWithParent, return_type[void], modifier[public], parameter[spanBuilder, parent, id]] begin[{] if[binary_operation[member[.parent], !=, literal[null]]] begin[{] call[spanBuilder.asChildOf, parameter[call[parent.context, parameter[]]]] else begin[{] None end[}] call[.doStartSpan, parameter[member[.spanBuilder], member[.id]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[startSpanWithParent] operator[SEP] identifier[SpanBuilder] identifier[spanBuilder] , identifier[Span] identifier[parent] , identifier[String] identifier[id] operator[SEP] { Keyword[if] operator[SEP] identifier[parent] operator[!=] Other[null] operator[SEP] { identifier[spanBuilder] operator[SEP] identifier[asChildOf] operator[SEP] identifier[parent] operator[SEP] identifier[context] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[doStartSpan] operator[SEP] identifier[spanBuilder] , identifier[id] operator[SEP] operator[SEP] }
private void buildDecoding(Mode mode, CodeAssembler a, StorableProperty<S>[] properties, Direction[] directions, LocalVariable instanceVar, Class<?> adapterInstanceClass, boolean useWriteMethods, int generation, Label altGenerationHandler, LocalVariable encodedVar) throws SupportException { if (a == null) { throw new IllegalArgumentException(); } if (encodedVar == null || encodedVar.getType() != TypeDesc.forClass(byte[].class)) { throw new IllegalArgumentException(); } // Decoding order is: // // 1. Prefix // 2. Generation prefix // 3. Property states (if Mode.SERIAL) // 4. Properties // 5. Suffix final int prefix; switch (mode) { default: prefix = 0; break; case KEY: prefix = mKeyPrefixPadding; break; case DATA: prefix = mDataPrefixPadding; break; } decodeGeneration(a, encodedVar, prefix, generation, altGenerationHandler); final int generationPrefix; if (generation < 0) { generationPrefix = 0; } else if (generation < 128) { generationPrefix = 1; } else { generationPrefix = 4; } final int suffix; switch (mode) { default: suffix = 0; break; case KEY: suffix = mKeySuffixPadding; break; case DATA: suffix = mDataSuffixPadding; extraDataDecoding(a, encodedVar, prefix + generationPrefix, suffix); break; } final TypeDesc byteArrayType = TypeDesc.forClass(byte[].class); StorablePropertyInfo[] infos = checkSupport(properties); if (properties.length == 1) { StorableProperty<S> property = properties[0]; StorablePropertyInfo info = infos[0]; if (mode != Mode.SERIAL && info.getStorageType().toClass() == byte[].class) { // Since there is only one property, and it is just a byte // array, it doesn't have any fancy encoding. // Push to stack in preparation for storing a property. pushDecodingInstanceVar(a, 0, instanceVar); a.loadLocal(encodedVar); boolean descending = mode == Mode.KEY && directions != null && directions[0] == Direction.DESCENDING; TypeDesc[] params; if (prefix > 0 || generationPrefix > 0 || suffix > 0) { a.loadConstant(prefix + generationPrefix); a.loadConstant(suffix); params = new TypeDesc[] {byteArrayType, TypeDesc.INT, TypeDesc.INT}; } else { params = new TypeDesc[] {byteArrayType}; } if (property.isNullable()) { if (descending) { a.invokeStatic(KeyDecoder.class.getName(), "decodeSingleNullableDesc", byteArrayType, params); } else { a.invokeStatic(DataDecoder.class.getName(), "decodeSingleNullable", byteArrayType, params); } } else if (descending) { a.invokeStatic(KeyDecoder.class.getName(), "decodeSingleDesc", byteArrayType, params); } else if (prefix > 0 || generationPrefix > 0 || suffix > 0) { a.invokeStatic(DataDecoder.class.getName(), "decodeSingle", byteArrayType, params); } else { // Always clone the byte array as some implementations // reuse the byte array (e.g. iterating using a cursor). a.invokeVirtual(TypeDesc.OBJECT, "clone", TypeDesc.OBJECT, null); a.checkCast(byteArrayType); } storePropertyValue(a, info, useWriteMethods, instanceVar, adapterInstanceClass); return; } } // Now decode properties from the byte array. int constantOffset = prefix + generationPrefix; LocalVariable offsetVar = null; // References to local variables which will hold references. LocalVariable[] stringRefRef = new LocalVariable[1]; LocalVariable[] byteArrayRefRef = new LocalVariable[1]; LocalVariable[] bigIntegerRefRef = new LocalVariable[1]; LocalVariable[] bigDecimalRefRef = new LocalVariable[1]; LocalVariable[] valueRefRef = new LocalVariable[1]; // Used by SERIAL mode. List<LocalVariable> stateVars = null; if (mode == Mode.SERIAL) { stateVars = decodePropertyStates(a, encodedVar, constantOffset, properties); constantOffset += (properties.length + 3) / 4; // Some properties are skipped at runtime, so offset variable is required. offsetVar = a.createLocalVariable(null, TypeDesc.INT); a.loadConstant(constantOffset); a.storeLocal(offsetVar); // References need to be initialized early because some properties // are skipped at runtime. for (int i=0; i<properties.length; i++) { TypeDesc storageType = infos[i].getStorageType(); if (storageType == TypeDesc.STRING) { if (stringRefRef[0] == null) { TypeDesc refType = TypeDesc.forClass(String[].class); stringRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(stringRefRef[0]); } } else if (storageType.toClass() == byte[].class) { if (byteArrayRefRef[0] == null) { TypeDesc refType = TypeDesc.forClass(byte[][].class); byteArrayRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(byteArrayRefRef[0]); } } else if (storageType.toClass() == BigInteger.class) { if (bigIntegerRefRef[0] == null) { TypeDesc refType = TypeDesc.forClass(BigInteger[].class); bigIntegerRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigIntegerRefRef[0]); } } else if (storageType.toClass() == BigDecimal.class) { if (bigDecimalRefRef[0] == null) { TypeDesc refType = TypeDesc.forClass(BigDecimal[].class); bigDecimalRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigDecimalRefRef[0]); } } } } for (int i=0; i<properties.length; i++) { StorableProperty<S> property = properties[i]; StorablePropertyInfo info = infos[i]; Label storePropertyLocation = a.createLabel(); Label nextPropertyLocation = a.createLabel(); // Push to stack in preparation for storing a property. pushDecodingInstanceVar(a, i, instanceVar); if (mode == Mode.SERIAL) { // Load property if initialized, else reset it. a.loadLocal(stateVars.get(property.getNumber() >> 4)); a.loadConstant(PROPERTY_STATE_MASK << ((property.getNumber() & 0xf) * 2)); a.math(Opcode.IAND); Label isInitialized = a.createLabel(); a.ifZeroComparisonBranch(isInitialized, "!="); // Reset property value to zero, false, or null. loadBlankValue(a, TypeDesc.forClass(property.getType())); if (info.getToStorageAdapter() != null) { // Bypass adapter. a.storeField(info.getPropertyName(), info.getPropertyType()); a.branch(nextPropertyLocation); } else { a.branch(storePropertyLocation); } isInitialized.setLocation(); } TypeDesc storageType = info.getStorageType(); if (info.isLob()) { // Need RawSupport instance for getting Lob from locator. pushRawSupport(a, instanceVar); // Also need to pass this stuff along when getting Lob. a.loadThis(); a.loadConstant(info.getPropertyName()); // Locator is encoded as a long. storageType = TypeDesc.LONG; } a.loadLocal(encodedVar); if (offsetVar == null) { a.loadConstant(constantOffset); } else { a.loadLocal(offsetVar); } boolean descending = mode == Mode.KEY && directions != null && directions[i] == Direction.DESCENDING; int amt = decodeProperty(a, info, storageType, mode, descending, // TODO: do something better for passing these refs stringRefRef, byteArrayRefRef, bigIntegerRefRef, bigDecimalRefRef, valueRefRef); if (info.isLob()) { getLobFromLocator(a, info); } if (amt != 0) { if (i + 1 < properties.length) { // Only adjust offset if there are more properties. if (amt > 0) { if (offsetVar == null) { constantOffset += amt; } else { a.loadConstant(amt); a.loadLocal(offsetVar); a.math(Opcode.IADD); a.storeLocal(offsetVar); } } else { // Offset adjust is one if returned object is null. a.dup(); Label notNull = a.createLabel(); a.ifNullBranch(notNull, false); a.loadConstant(1 + (offsetVar == null ? constantOffset : 0)); Label cont = a.createLabel(); a.branch(cont); notNull.setLocation(); a.loadConstant(~amt + (offsetVar == null ? constantOffset : 0)); cont.setLocation(); if (offsetVar == null) { offsetVar = a.createLocalVariable(null, TypeDesc.INT); } else { a.loadLocal(offsetVar); a.math(Opcode.IADD); } a.storeLocal(offsetVar); } } } else { if (i + 1 >= properties.length) { // Don't need to keep track of offset anymore. a.pop(); } else { // Only adjust offset if there are more properties. if (offsetVar == null) { if (constantOffset > 0) { a.loadConstant(constantOffset); a.math(Opcode.IADD); } offsetVar = a.createLocalVariable(null, TypeDesc.INT); } else { a.loadLocal(offsetVar); a.math(Opcode.IADD); } a.storeLocal(offsetVar); } // Get the value out of the ref array so that it can be stored. a.loadLocal(valueRefRef[0]); a.loadConstant(0); a.loadFromArray(valueRefRef[0].getType()); } storePropertyLocation.setLocation(); storePropertyValue(a, info, useWriteMethods, instanceVar, adapterInstanceClass); nextPropertyLocation.setLocation(); } if (stateVars != null) { for (int i=0; i<stateVars.size(); i++) { LocalVariable stateVar = stateVars.get(i); if (stateVar != null) { a.loadThis(); a.loadLocal(stateVar); a.storeField(PROPERTY_STATE_FIELD_NAME + i, TypeDesc.INT); } } } }
class class_name[name] begin[{] method[buildDecoding, return_type[void], modifier[private], parameter[mode, a, properties, directions, instanceVar, adapterInstanceClass, useWriteMethods, generation, altGenerationHandler, encodedVar]] begin[{] if[binary_operation[member[.a], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[binary_operation[member[.encodedVar], ==, literal[null]], ||, binary_operation[call[encodedVar.getType, parameter[]], !=, call[TypeDesc.forClass, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[None], name=byte))]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[int], prefix] SwitchStatement(cases=[SwitchStatementCase(case=[], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['KEY'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=mKeyPrefixPadding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['DATA'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=mDataPrefixPadding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=mode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) call[.decodeGeneration, parameter[member[.a], member[.encodedVar], member[.prefix], member[.generation], member[.altGenerationHandler]]] local_variable[type[int], generationPrefix] if[binary_operation[member[.generation], <, literal[0]]] begin[{] assign[member[.generationPrefix], literal[0]] else begin[{] if[binary_operation[member[.generation], <, literal[128]]] begin[{] assign[member[.generationPrefix], literal[1]] else begin[{] assign[member[.generationPrefix], literal[4]] end[}] end[}] local_variable[type[int], suffix] SwitchStatement(cases=[SwitchStatementCase(case=[], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['KEY'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=mKeySuffixPadding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['DATA'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=mDataSuffixPadding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=encodedVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=generationPrefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=extraDataDecoding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=mode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) local_variable[type[TypeDesc], byteArrayType] local_variable[type[StorablePropertyInfo], infos] if[binary_operation[member[properties.length], ==, literal[1]]] begin[{] local_variable[type[StorableProperty], property] local_variable[type[StorablePropertyInfo], info] if[binary_operation[binary_operation[member[.mode], !=, member[Mode.SERIAL]], &&, binary_operation[call[info.getStorageType, parameter[]], ==, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[None], name=byte))]]] begin[{] call[.pushDecodingInstanceVar, parameter[member[.a], literal[0], member[.instanceVar]]] call[a.loadLocal, parameter[member[.encodedVar]]] local_variable[type[boolean], descending] local_variable[type[TypeDesc], params] if[binary_operation[binary_operation[binary_operation[member[.prefix], >, literal[0]], ||, binary_operation[member[.generationPrefix], >, literal[0]]], ||, binary_operation[member[.suffix], >, literal[0]]]] begin[{] call[a.loadConstant, parameter[binary_operation[member[.prefix], +, member[.generationPrefix]]]] call[a.loadConstant, parameter[member[.suffix]]] assign[member[.params], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=byteArrayType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=INT, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[]), MemberReference(member=INT, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TypeDesc, sub_type=None))] else begin[{] assign[member[.params], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=byteArrayType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TypeDesc, sub_type=None))] end[}] if[call[property.isNullable, parameter[]]] begin[{] if[member[.descending]] begin[{] call[a.invokeStatic, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=KeyDecoder, sub_type=None)), literal["decodeSingleNullableDesc"], member[.byteArrayType], member[.params]]] else begin[{] call[a.invokeStatic, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=DataDecoder, sub_type=None)), literal["decodeSingleNullable"], member[.byteArrayType], member[.params]]] end[}] else begin[{] if[member[.descending]] begin[{] call[a.invokeStatic, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=KeyDecoder, sub_type=None)), literal["decodeSingleDesc"], member[.byteArrayType], member[.params]]] else begin[{] if[binary_operation[binary_operation[binary_operation[member[.prefix], >, literal[0]], ||, binary_operation[member[.generationPrefix], >, literal[0]]], ||, binary_operation[member[.suffix], >, literal[0]]]] begin[{] call[a.invokeStatic, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=DataDecoder, sub_type=None)), literal["decodeSingle"], member[.byteArrayType], member[.params]]] else begin[{] call[a.invokeVirtual, parameter[member[TypeDesc.OBJECT], literal["clone"], member[TypeDesc.OBJECT], literal[null]]] call[a.checkCast, parameter[member[.byteArrayType]]] end[}] end[}] end[}] call[.storePropertyValue, parameter[member[.a], member[.info], member[.useWriteMethods], member[.instanceVar], member[.adapterInstanceClass]]] return[None] else begin[{] None end[}] else begin[{] None end[}] local_variable[type[int], constantOffset] local_variable[type[LocalVariable], offsetVar] local_variable[type[LocalVariable], stringRefRef] local_variable[type[LocalVariable], byteArrayRefRef] local_variable[type[LocalVariable], bigIntegerRefRef] local_variable[type[LocalVariable], bigDecimalRefRef] local_variable[type[LocalVariable], valueRefRef] local_variable[type[List], stateVars] if[binary_operation[member[.mode], ==, member[Mode.SERIAL]]] begin[{] assign[member[.stateVars], call[.decodePropertyStates, parameter[member[.a], member[.encodedVar], member[.constantOffset], member[.properties]]]] assign[member[.constantOffset], binary_operation[binary_operation[member[properties.length], +, literal[3]], /, literal[4]]] assign[member[.offsetVar], call[a.createLocalVariable, parameter[literal[null], member[TypeDesc.INT]]]] call[a.loadConstant, parameter[member[.constantOffset]]] call[a.storeLocal, parameter[member[.offsetVar]]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=infos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[], member=getStorageType, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), name=storageType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TypeDesc, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=storageType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=STRING, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[]), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=toClass, postfix_operators=[], prefix_operators=[], qualifier=storageType, selectors=[], type_arguments=None), operandr=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[None], name=byte)), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=toClass, postfix_operators=[], prefix_operators=[], qualifier=storageType, selectors=[], type_arguments=None), operandr=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BigInteger, sub_type=None)), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=toClass, postfix_operators=[], prefix_operators=[], qualifier=storageType, selectors=[], type_arguments=None), operandr=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BigDecimal, sub_type=None)), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bigDecimalRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), 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=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BigDecimal, sub_type=None))], member=forClass, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[], type_arguments=None), name=refType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TypeDesc, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bigDecimalRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createLocalVariable, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=newObject, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=bigDecimalRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bigIntegerRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), 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=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BigInteger, sub_type=None))], member=forClass, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[], type_arguments=None), name=refType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TypeDesc, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bigIntegerRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createLocalVariable, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=newObject, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=bigIntegerRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=byteArrayRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), 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=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[None, None], name=byte))], member=forClass, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[], type_arguments=None), name=refType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TypeDesc, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=byteArrayRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createLocalVariable, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=newObject, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=byteArrayRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=stringRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), 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=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))], member=forClass, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[], type_arguments=None), name=refType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TypeDesc, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=stringRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createLocalVariable, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=refType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=newObject, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=stringRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=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=properties, 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) else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=properties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=property)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=S, sub_type=None))], dimensions=[], name=StorableProperty, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=infos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=info)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StorablePropertyInfo, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=createLabel, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), name=storePropertyLocation)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Label, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=createLabel, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), name=nextPropertyLocation)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Label, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=instanceVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushDecodingInstanceVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=mode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SERIAL, postfix_operators=[], prefix_operators=[], qualifier=Mode, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=getNumber, postfix_operators=[], prefix_operators=[], qualifier=property, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=>>)], member=get, postfix_operators=[], prefix_operators=[], qualifier=stateVars, selectors=[], type_arguments=None)], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=PROPERTY_STATE_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getNumber, postfix_operators=[], prefix_operators=[], qualifier=property, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0xf), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=*), operator=<<)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=IAND, postfix_operators=[], prefix_operators=[], qualifier=Opcode, selectors=[])], member=math, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=createLabel, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), name=isInitialized)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Label, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=isInitialized, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!=")], member=ifZeroComparisonBranch, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getType, postfix_operators=[], prefix_operators=[], qualifier=property, selectors=[], type_arguments=None)], member=forClass, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[], type_arguments=None)], member=loadBlankValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getToStorageAdapter, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=storePropertyLocation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=branch, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getPropertyName, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getPropertyType, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None)], member=storeField, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=nextPropertyLocation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=branch, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[], member=setLocation, postfix_operators=[], prefix_operators=[], qualifier=isInitialized, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getStorageType, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None), name=storageType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TypeDesc, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=isLob, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=instanceVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushRawSupport, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=loadThis, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getPropertyName, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=storageType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=LONG, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[])), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=encodedVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=constantOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=mode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=KEY, postfix_operators=[], prefix_operators=[], qualifier=Mode, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=directions, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operator=&&), operandr=BinaryOperation(operandl=MemberReference(member=directions, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=DESCENDING, postfix_operators=[], prefix_operators=[], qualifier=Direction, selectors=[]), operator===), operator=&&), name=descending)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=info, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=storageType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=mode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=descending, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=stringRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=byteArrayRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bigIntegerRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bigDecimalRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=valueRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=decodeProperty, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=amt)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=MethodInvocation(arguments=[], member=isLob, postfix_operators=[], prefix_operators=[], qualifier=info, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=info, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getLobFromLocator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=amt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=properties, selectors=[]), operator=>=), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=IADD, postfix_operators=[], prefix_operators=[], qualifier=Opcode, selectors=[])], member=math, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=constantOffset, 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=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=constantOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=IADD, postfix_operators=[], prefix_operators=[], qualifier=Opcode, selectors=[])], member=math, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=INT, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[])], member=createLocalVariable, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=pop, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=valueRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=valueRefRef, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), MethodInvocation(arguments=[], member=getType, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])], member=loadFromArray, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=properties, selectors=[]), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=amt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=dup, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=createLabel, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), name=notNull)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Label, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=notNull, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=ifNullBranch, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), if_true=MemberReference(member=constantOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), operator=+)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=createLabel, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), name=cont)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Label, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cont, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=branch, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=setLocation, postfix_operators=[], prefix_operators=[], qualifier=notNull, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=amt, postfix_operators=[], prefix_operators=['~'], qualifier=, selectors=[]), operandr=TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), if_true=MemberReference(member=constantOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), operator=+)], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=setLocation, postfix_operators=[], prefix_operators=[], qualifier=cont, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=IADD, postfix_operators=[], prefix_operators=[], qualifier=Opcode, selectors=[])], member=math, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=INT, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[])], member=createLocalVariable, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=amt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadConstant, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=IADD, postfix_operators=[], prefix_operators=[], qualifier=Opcode, selectors=[])], member=math, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offsetVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=storeLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=constantOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=amt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))]))]))])), StatementExpression(expression=MethodInvocation(arguments=[], member=setLocation, postfix_operators=[], prefix_operators=[], qualifier=storePropertyLocation, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=info, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=useWriteMethods, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=instanceVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=adapterInstanceClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=storePropertyValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=setLocation, postfix_operators=[], prefix_operators=[], qualifier=nextPropertyLocation, selectors=[], type_arguments=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=properties, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) if[binary_operation[member[.stateVars], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=stateVars, selectors=[], type_arguments=None), name=stateVar)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=LocalVariable, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=stateVar, 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=[], member=loadThis, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=stateVar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=loadLocal, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=PROPERTY_STATE_FIELD_NAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=INT, postfix_operators=[], prefix_operators=[], qualifier=TypeDesc, selectors=[])], member=storeField, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=stateVars, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[buildDecoding] operator[SEP] identifier[Mode] identifier[mode] , identifier[CodeAssembler] identifier[a] , identifier[StorableProperty] operator[<] identifier[S] operator[>] operator[SEP] operator[SEP] identifier[properties] , identifier[Direction] operator[SEP] operator[SEP] identifier[directions] , identifier[LocalVariable] identifier[instanceVar] , identifier[Class] operator[<] operator[?] operator[>] identifier[adapterInstanceClass] , Keyword[boolean] identifier[useWriteMethods] , Keyword[int] identifier[generation] , identifier[Label] identifier[altGenerationHandler] , identifier[LocalVariable] identifier[encodedVar] operator[SEP] Keyword[throws] identifier[SupportException] { Keyword[if] operator[SEP] identifier[a] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[encodedVar] operator[==] Other[null] operator[||] identifier[encodedVar] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[!=] identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] operator[SEP] } Keyword[final] Keyword[int] identifier[prefix] operator[SEP] Keyword[switch] operator[SEP] identifier[mode] operator[SEP] { Keyword[default] operator[:] identifier[prefix] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[KEY] operator[:] identifier[prefix] operator[=] identifier[mKeyPrefixPadding] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[DATA] operator[:] identifier[prefix] operator[=] identifier[mDataPrefixPadding] operator[SEP] Keyword[break] operator[SEP] } identifier[decodeGeneration] operator[SEP] identifier[a] , identifier[encodedVar] , identifier[prefix] , identifier[generation] , identifier[altGenerationHandler] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[generationPrefix] operator[SEP] Keyword[if] operator[SEP] identifier[generation] operator[<] Other[0] operator[SEP] { identifier[generationPrefix] operator[=] Other[0] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[generation] operator[<] Other[128] operator[SEP] { identifier[generationPrefix] operator[=] Other[1] operator[SEP] } Keyword[else] { identifier[generationPrefix] operator[=] Other[4] operator[SEP] } Keyword[final] Keyword[int] identifier[suffix] operator[SEP] Keyword[switch] operator[SEP] identifier[mode] operator[SEP] { Keyword[default] operator[:] identifier[suffix] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[KEY] operator[:] identifier[suffix] operator[=] identifier[mKeySuffixPadding] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[DATA] operator[:] identifier[suffix] operator[=] identifier[mDataSuffixPadding] operator[SEP] identifier[extraDataDecoding] operator[SEP] identifier[a] , identifier[encodedVar] , identifier[prefix] operator[+] identifier[generationPrefix] , identifier[suffix] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } Keyword[final] identifier[TypeDesc] identifier[byteArrayType] operator[=] identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[StorablePropertyInfo] operator[SEP] operator[SEP] identifier[infos] operator[=] identifier[checkSupport] operator[SEP] identifier[properties] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[properties] operator[SEP] identifier[length] operator[==] Other[1] operator[SEP] { identifier[StorableProperty] operator[<] identifier[S] operator[>] identifier[property] operator[=] identifier[properties] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[StorablePropertyInfo] identifier[info] operator[=] identifier[infos] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mode] operator[!=] identifier[Mode] operator[SEP] identifier[SERIAL] operator[&&] identifier[info] operator[SEP] identifier[getStorageType] operator[SEP] operator[SEP] operator[SEP] identifier[toClass] operator[SEP] operator[SEP] operator[==] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] { identifier[pushDecodingInstanceVar] operator[SEP] identifier[a] , Other[0] , identifier[instanceVar] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[encodedVar] operator[SEP] operator[SEP] Keyword[boolean] identifier[descending] operator[=] identifier[mode] operator[==] identifier[Mode] operator[SEP] identifier[KEY] operator[&&] identifier[directions] operator[!=] Other[null] operator[&&] identifier[directions] operator[SEP] Other[0] operator[SEP] operator[==] identifier[Direction] operator[SEP] identifier[DESCENDING] operator[SEP] identifier[TypeDesc] operator[SEP] operator[SEP] identifier[params] operator[SEP] Keyword[if] operator[SEP] identifier[prefix] operator[>] Other[0] operator[||] identifier[generationPrefix] operator[>] Other[0] operator[||] identifier[suffix] operator[>] Other[0] operator[SEP] { identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[prefix] operator[+] identifier[generationPrefix] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[suffix] operator[SEP] operator[SEP] identifier[params] operator[=] Keyword[new] identifier[TypeDesc] operator[SEP] operator[SEP] { identifier[byteArrayType] , identifier[TypeDesc] operator[SEP] identifier[INT] , identifier[TypeDesc] operator[SEP] identifier[INT] } operator[SEP] } Keyword[else] { identifier[params] operator[=] Keyword[new] identifier[TypeDesc] operator[SEP] operator[SEP] { identifier[byteArrayType] } operator[SEP] } Keyword[if] operator[SEP] identifier[property] operator[SEP] identifier[isNullable] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[descending] operator[SEP] { identifier[a] operator[SEP] identifier[invokeStatic] operator[SEP] identifier[KeyDecoder] operator[SEP] Keyword[class] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[String] , identifier[byteArrayType] , identifier[params] operator[SEP] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[invokeStatic] operator[SEP] identifier[DataDecoder] operator[SEP] Keyword[class] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[String] , identifier[byteArrayType] , identifier[params] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[descending] operator[SEP] { identifier[a] operator[SEP] identifier[invokeStatic] operator[SEP] identifier[KeyDecoder] operator[SEP] Keyword[class] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[String] , identifier[byteArrayType] , identifier[params] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[prefix] operator[>] Other[0] operator[||] identifier[generationPrefix] operator[>] Other[0] operator[||] identifier[suffix] operator[>] Other[0] operator[SEP] { identifier[a] operator[SEP] identifier[invokeStatic] operator[SEP] identifier[DataDecoder] operator[SEP] Keyword[class] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[String] , identifier[byteArrayType] , identifier[params] operator[SEP] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[invokeVirtual] operator[SEP] identifier[TypeDesc] operator[SEP] identifier[OBJECT] , literal[String] , identifier[TypeDesc] operator[SEP] identifier[OBJECT] , Other[null] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[checkCast] operator[SEP] identifier[byteArrayType] operator[SEP] operator[SEP] } identifier[storePropertyValue] operator[SEP] identifier[a] , identifier[info] , identifier[useWriteMethods] , identifier[instanceVar] , identifier[adapterInstanceClass] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } } Keyword[int] identifier[constantOffset] operator[=] identifier[prefix] operator[+] identifier[generationPrefix] operator[SEP] identifier[LocalVariable] identifier[offsetVar] operator[=] Other[null] operator[SEP] identifier[LocalVariable] operator[SEP] operator[SEP] identifier[stringRefRef] operator[=] Keyword[new] identifier[LocalVariable] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[LocalVariable] operator[SEP] operator[SEP] identifier[byteArrayRefRef] operator[=] Keyword[new] identifier[LocalVariable] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[LocalVariable] operator[SEP] operator[SEP] identifier[bigIntegerRefRef] operator[=] Keyword[new] identifier[LocalVariable] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[LocalVariable] operator[SEP] operator[SEP] identifier[bigDecimalRefRef] operator[=] Keyword[new] identifier[LocalVariable] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[LocalVariable] operator[SEP] operator[SEP] identifier[valueRefRef] operator[=] Keyword[new] identifier[LocalVariable] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[LocalVariable] operator[>] identifier[stateVars] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[mode] operator[==] identifier[Mode] operator[SEP] identifier[SERIAL] operator[SEP] { identifier[stateVars] operator[=] identifier[decodePropertyStates] operator[SEP] identifier[a] , identifier[encodedVar] , identifier[constantOffset] , identifier[properties] operator[SEP] operator[SEP] identifier[constantOffset] operator[+=] operator[SEP] identifier[properties] operator[SEP] identifier[length] operator[+] Other[3] operator[SEP] operator[/] Other[4] operator[SEP] identifier[offsetVar] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[TypeDesc] operator[SEP] identifier[INT] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[constantOffset] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[properties] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[TypeDesc] identifier[storageType] operator[=] identifier[infos] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getStorageType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[storageType] operator[==] identifier[TypeDesc] operator[SEP] identifier[STRING] operator[SEP] { Keyword[if] operator[SEP] identifier[stringRefRef] operator[SEP] Other[0] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[TypeDesc] identifier[refType] operator[=] identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] identifier[String] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[stringRefRef] operator[SEP] Other[0] operator[SEP] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[newObject] operator[SEP] identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[stringRefRef] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[storageType] operator[SEP] identifier[toClass] operator[SEP] operator[SEP] operator[==] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] { Keyword[if] operator[SEP] identifier[byteArrayRefRef] operator[SEP] Other[0] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[TypeDesc] identifier[refType] operator[=] identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[byteArrayRefRef] operator[SEP] Other[0] operator[SEP] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[newObject] operator[SEP] identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[byteArrayRefRef] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[storageType] operator[SEP] identifier[toClass] operator[SEP] operator[SEP] operator[==] identifier[BigInteger] operator[SEP] Keyword[class] operator[SEP] { Keyword[if] operator[SEP] identifier[bigIntegerRefRef] operator[SEP] Other[0] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[TypeDesc] identifier[refType] operator[=] identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] identifier[BigInteger] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[bigIntegerRefRef] operator[SEP] Other[0] operator[SEP] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[newObject] operator[SEP] identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[bigIntegerRefRef] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[storageType] operator[SEP] identifier[toClass] operator[SEP] operator[SEP] operator[==] identifier[BigDecimal] operator[SEP] Keyword[class] operator[SEP] { Keyword[if] operator[SEP] identifier[bigDecimalRefRef] operator[SEP] Other[0] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[TypeDesc] identifier[refType] operator[=] identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] identifier[BigDecimal] operator[SEP] operator[SEP] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[bigDecimalRefRef] operator[SEP] Other[0] operator[SEP] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[newObject] operator[SEP] identifier[refType] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[bigDecimalRefRef] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } } } } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[properties] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[StorableProperty] operator[<] identifier[S] operator[>] identifier[property] operator[=] identifier[properties] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[StorablePropertyInfo] identifier[info] operator[=] identifier[infos] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[Label] identifier[storePropertyLocation] operator[=] identifier[a] operator[SEP] identifier[createLabel] operator[SEP] operator[SEP] operator[SEP] identifier[Label] identifier[nextPropertyLocation] operator[=] identifier[a] operator[SEP] identifier[createLabel] operator[SEP] operator[SEP] operator[SEP] identifier[pushDecodingInstanceVar] operator[SEP] identifier[a] , identifier[i] , identifier[instanceVar] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mode] operator[==] identifier[Mode] operator[SEP] identifier[SERIAL] operator[SEP] { identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[stateVars] operator[SEP] identifier[get] operator[SEP] identifier[property] operator[SEP] identifier[getNumber] operator[SEP] operator[SEP] operator[>] operator[>] Other[4] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[PROPERTY_STATE_MASK] operator[<<] operator[SEP] operator[SEP] identifier[property] operator[SEP] identifier[getNumber] operator[SEP] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[*] Other[2] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[math] operator[SEP] identifier[Opcode] operator[SEP] identifier[IAND] operator[SEP] operator[SEP] identifier[Label] identifier[isInitialized] operator[=] identifier[a] operator[SEP] identifier[createLabel] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[ifZeroComparisonBranch] operator[SEP] identifier[isInitialized] , literal[String] operator[SEP] operator[SEP] identifier[loadBlankValue] operator[SEP] identifier[a] , identifier[TypeDesc] operator[SEP] identifier[forClass] operator[SEP] identifier[property] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[info] operator[SEP] identifier[getToStorageAdapter] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[a] operator[SEP] identifier[storeField] operator[SEP] identifier[info] operator[SEP] identifier[getPropertyName] operator[SEP] operator[SEP] , identifier[info] operator[SEP] identifier[getPropertyType] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[branch] operator[SEP] identifier[nextPropertyLocation] operator[SEP] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[branch] operator[SEP] identifier[storePropertyLocation] operator[SEP] operator[SEP] } identifier[isInitialized] operator[SEP] identifier[setLocation] operator[SEP] operator[SEP] operator[SEP] } identifier[TypeDesc] identifier[storageType] operator[=] identifier[info] operator[SEP] identifier[getStorageType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[info] operator[SEP] identifier[isLob] operator[SEP] operator[SEP] operator[SEP] { identifier[pushRawSupport] operator[SEP] identifier[a] , identifier[instanceVar] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadThis] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[info] operator[SEP] identifier[getPropertyName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[storageType] operator[=] identifier[TypeDesc] operator[SEP] identifier[LONG] operator[SEP] } identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[encodedVar] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[offsetVar] operator[==] Other[null] operator[SEP] { identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[constantOffset] operator[SEP] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] } Keyword[boolean] identifier[descending] operator[=] identifier[mode] operator[==] identifier[Mode] operator[SEP] identifier[KEY] operator[&&] identifier[directions] operator[!=] Other[null] operator[&&] identifier[directions] operator[SEP] identifier[i] operator[SEP] operator[==] identifier[Direction] operator[SEP] identifier[DESCENDING] operator[SEP] Keyword[int] identifier[amt] operator[=] identifier[decodeProperty] operator[SEP] identifier[a] , identifier[info] , identifier[storageType] , identifier[mode] , identifier[descending] , identifier[stringRefRef] , identifier[byteArrayRefRef] , identifier[bigIntegerRefRef] , identifier[bigDecimalRefRef] , identifier[valueRefRef] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[info] operator[SEP] identifier[isLob] operator[SEP] operator[SEP] operator[SEP] { identifier[getLobFromLocator] operator[SEP] identifier[a] , identifier[info] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[amt] operator[!=] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[i] operator[+] Other[1] operator[<] identifier[properties] operator[SEP] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[amt] operator[>] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[offsetVar] operator[==] Other[null] operator[SEP] { identifier[constantOffset] operator[+=] identifier[amt] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[amt] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[math] operator[SEP] identifier[Opcode] operator[SEP] identifier[IADD] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] } } Keyword[else] { identifier[a] operator[SEP] identifier[dup] operator[SEP] operator[SEP] operator[SEP] identifier[Label] identifier[notNull] operator[=] identifier[a] operator[SEP] identifier[createLabel] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[ifNullBranch] operator[SEP] identifier[notNull] , literal[boolean] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] Other[1] operator[+] operator[SEP] identifier[offsetVar] operator[==] Other[null] operator[?] identifier[constantOffset] operator[:] Other[0] operator[SEP] operator[SEP] operator[SEP] identifier[Label] identifier[cont] operator[=] identifier[a] operator[SEP] identifier[createLabel] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[branch] operator[SEP] identifier[cont] operator[SEP] operator[SEP] identifier[notNull] operator[SEP] identifier[setLocation] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] operator[~] identifier[amt] operator[+] operator[SEP] identifier[offsetVar] operator[==] Other[null] operator[?] identifier[constantOffset] operator[:] Other[0] operator[SEP] operator[SEP] operator[SEP] identifier[cont] operator[SEP] identifier[setLocation] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[offsetVar] operator[==] Other[null] operator[SEP] { identifier[offsetVar] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[TypeDesc] operator[SEP] identifier[INT] operator[SEP] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[math] operator[SEP] identifier[Opcode] operator[SEP] identifier[IADD] operator[SEP] operator[SEP] } identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] } } } Keyword[else] { Keyword[if] operator[SEP] identifier[i] operator[+] Other[1] operator[>=] identifier[properties] operator[SEP] identifier[length] operator[SEP] { identifier[a] operator[SEP] identifier[pop] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[offsetVar] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[constantOffset] operator[>] Other[0] operator[SEP] { identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] identifier[constantOffset] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[math] operator[SEP] identifier[Opcode] operator[SEP] identifier[IADD] operator[SEP] operator[SEP] } identifier[offsetVar] operator[=] identifier[a] operator[SEP] identifier[createLocalVariable] operator[SEP] Other[null] , identifier[TypeDesc] operator[SEP] identifier[INT] operator[SEP] operator[SEP] } Keyword[else] { identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[math] operator[SEP] identifier[Opcode] operator[SEP] identifier[IADD] operator[SEP] operator[SEP] } identifier[a] operator[SEP] identifier[storeLocal] operator[SEP] identifier[offsetVar] operator[SEP] operator[SEP] } identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[valueRefRef] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadConstant] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadFromArray] operator[SEP] identifier[valueRefRef] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[storePropertyLocation] operator[SEP] identifier[setLocation] operator[SEP] operator[SEP] operator[SEP] identifier[storePropertyValue] operator[SEP] identifier[a] , identifier[info] , identifier[useWriteMethods] , identifier[instanceVar] , identifier[adapterInstanceClass] operator[SEP] operator[SEP] identifier[nextPropertyLocation] operator[SEP] identifier[setLocation] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[stateVars] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[stateVars] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[LocalVariable] identifier[stateVar] operator[=] identifier[stateVars] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[stateVar] operator[!=] Other[null] operator[SEP] { identifier[a] operator[SEP] identifier[loadThis] operator[SEP] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[loadLocal] operator[SEP] identifier[stateVar] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[storeField] operator[SEP] identifier[PROPERTY_STATE_FIELD_NAME] operator[+] identifier[i] , identifier[TypeDesc] operator[SEP] identifier[INT] operator[SEP] operator[SEP] } } } }
public ItemReply getItemReply() { String value = getFieldValue(ConfigureNodeFields.itemreply); if (value == null) return null; else return ItemReply.valueOf(value); }
class class_name[name] begin[{] method[getItemReply, return_type[type[ItemReply]], modifier[public], parameter[]] begin[{] local_variable[type[String], value] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] return[call[ItemReply.valueOf, parameter[member[.value]]]] end[}] end[}] END[}]
Keyword[public] identifier[ItemReply] identifier[getItemReply] operator[SEP] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[getFieldValue] operator[SEP] identifier[ConfigureNodeFields] operator[SEP] identifier[itemreply] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[else] Keyword[return] identifier[ItemReply] operator[SEP] identifier[valueOf] operator[SEP] identifier[value] operator[SEP] operator[SEP] }
public static FileFilter getFileFilter() { return new FileFilter() { @Override public boolean accept(File pathname) { //Accept if input is a non-hidden file with registered extension //or if a non-hidden and not-ignored directory return !pathname.isHidden() && (pathname.isFile() && Engines.getRecognizedExtensions().contains(fileExt(pathname))) || (directoryOnlyIfNotIgnored(pathname)); } }; }
class class_name[name] begin[{] method[getFileFilter, return_type[type[FileFilter]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=isHidden, postfix_operators=[], prefix_operators=['!'], qualifier=pathname, selectors=[], type_arguments=None), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=isFile, postfix_operators=[], prefix_operators=[], qualifier=pathname, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=getRecognizedExtensions, postfix_operators=[], prefix_operators=[], qualifier=Engines, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=pathname, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fileExt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=contains, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), operator=&&), operandr=MethodInvocation(arguments=[MemberReference(member=pathname, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=directoryOnlyIfNotIgnored, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=||), label=None)], documentation=None, modifiers={'public'}, name=accept, parameters=[FormalParameter(annotations=[], modifiers=set(), name=pathname, type=ReferenceType(arguments=None, dimensions=[], name=File, sub_type=None), varargs=False)], return_type=BasicType(dimensions=[], name=boolean), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=FileFilter, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[FileFilter] identifier[getFileFilter] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[FileFilter] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[accept] operator[SEP] identifier[File] identifier[pathname] operator[SEP] { Keyword[return] operator[!] identifier[pathname] operator[SEP] identifier[isHidden] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[pathname] operator[SEP] identifier[isFile] operator[SEP] operator[SEP] operator[&&] identifier[Engines] operator[SEP] identifier[getRecognizedExtensions] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[fileExt] operator[SEP] identifier[pathname] operator[SEP] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[directoryOnlyIfNotIgnored] operator[SEP] identifier[pathname] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] }
public Object doRemoteAction(String strCommand, Map<String, Object> properties) throws DBException, RemoteException { BaseTransport transport = this.createProxyTransport(DO_REMOTE_ACTION); transport.addParam(NAME, strCommand); // Don't use COMMAND transport.addParam(PROPERTIES, properties); Object strReturn = transport.sendMessageAndGetReply(); if (strReturn instanceof String) { // Could be returning a session BaseSessionProxy session = this.checkForSession((String)strReturn); if (session != null) return session; } Object objReturn = transport.convertReturnObject(strReturn); return this.checkDBException(objReturn); }
class class_name[name] begin[{] method[doRemoteAction, return_type[type[Object]], modifier[public], parameter[strCommand, properties]] begin[{] local_variable[type[BaseTransport], transport] call[transport.addParam, parameter[member[.NAME], member[.strCommand]]] call[transport.addParam, parameter[member[.PROPERTIES], member[.properties]]] local_variable[type[Object], strReturn] if[binary_operation[member[.strReturn], instanceof, type[String]]] begin[{] local_variable[type[BaseSessionProxy], session] if[binary_operation[member[.session], !=, literal[null]]] begin[{] return[member[.session]] else begin[{] None end[}] else begin[{] None end[}] local_variable[type[Object], objReturn] return[THIS[call[None.checkDBException, parameter[member[.objReturn]]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[doRemoteAction] operator[SEP] identifier[String] identifier[strCommand] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[SEP] Keyword[throws] identifier[DBException] , identifier[RemoteException] { identifier[BaseTransport] identifier[transport] operator[=] Keyword[this] operator[SEP] identifier[createProxyTransport] operator[SEP] identifier[DO_REMOTE_ACTION] operator[SEP] operator[SEP] identifier[transport] operator[SEP] identifier[addParam] operator[SEP] identifier[NAME] , identifier[strCommand] operator[SEP] operator[SEP] identifier[transport] operator[SEP] identifier[addParam] operator[SEP] identifier[PROPERTIES] , identifier[properties] operator[SEP] operator[SEP] identifier[Object] identifier[strReturn] operator[=] identifier[transport] operator[SEP] identifier[sendMessageAndGetReply] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[strReturn] Keyword[instanceof] identifier[String] operator[SEP] { identifier[BaseSessionProxy] identifier[session] operator[=] Keyword[this] operator[SEP] identifier[checkForSession] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[strReturn] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[session] operator[!=] Other[null] operator[SEP] Keyword[return] identifier[session] operator[SEP] } identifier[Object] identifier[objReturn] operator[=] identifier[transport] operator[SEP] identifier[convertReturnObject] operator[SEP] identifier[strReturn] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] identifier[checkDBException] operator[SEP] identifier[objReturn] operator[SEP] operator[SEP] }
@Deprecated @NotNull public static <T> Collector<T, ?, Double> averaging(@NotNull final Function<? super T, Double> mapper) { return averagingDouble(new ToDoubleFunction<T>() { @Override public double applyAsDouble(T t) { return mapper.apply(t); } }); }
class class_name[name] begin[{] method[averaging, return_type[type[Collector]], modifier[public static], parameter[mapper]] begin[{] return[call[.averagingDouble, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=apply, postfix_operators=[], prefix_operators=[], qualifier=mapper, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=applyAsDouble, parameters=[FormalParameter(annotations=[], modifiers=set(), name=t, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None), varargs=False)], return_type=BasicType(dimensions=[], name=double), throws=None, 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=T, sub_type=None))], dimensions=None, name=ToDoubleFunction, sub_type=None))]]] end[}] END[}]
annotation[@] identifier[Deprecated] annotation[@] identifier[NotNull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Collector] operator[<] identifier[T] , operator[?] , identifier[Double] operator[>] identifier[averaging] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[Function] operator[<] operator[?] Keyword[super] identifier[T] , identifier[Double] operator[>] identifier[mapper] operator[SEP] { Keyword[return] identifier[averagingDouble] operator[SEP] Keyword[new] identifier[ToDoubleFunction] operator[<] identifier[T] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[double] identifier[applyAsDouble] operator[SEP] identifier[T] identifier[t] operator[SEP] { Keyword[return] identifier[mapper] operator[SEP] identifier[apply] operator[SEP] identifier[t] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public static Wallet adaptAccountInfo(List<BitflyerBalance> balances) { List<Balance> adaptedBalances = new ArrayList<>(balances.size()); for (BitflyerBalance balance : balances) { adaptedBalances.add( new Balance( Currency.getInstance(balance.getCurrencyCode()), balance.getAmount(), balance.getAvailable())); } return new Wallet(adaptedBalances); }
class class_name[name] begin[{] method[adaptAccountInfo, return_type[type[Wallet]], modifier[public static], parameter[balances]] begin[{] local_variable[type[List], adaptedBalances] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getCurrencyCode, postfix_operators=[], prefix_operators=[], qualifier=balance, selectors=[], type_arguments=None)], member=getInstance, postfix_operators=[], prefix_operators=[], qualifier=Currency, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getAmount, postfix_operators=[], prefix_operators=[], qualifier=balance, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getAvailable, postfix_operators=[], prefix_operators=[], qualifier=balance, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Balance, sub_type=None))], member=add, postfix_operators=[], prefix_operators=[], qualifier=adaptedBalances, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=balances, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=balance)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=BitflyerBalance, sub_type=None))), label=None) return[ClassCreator(arguments=[MemberReference(member=adaptedBalances, 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=Wallet, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[Wallet] identifier[adaptAccountInfo] operator[SEP] identifier[List] operator[<] identifier[BitflyerBalance] operator[>] identifier[balances] operator[SEP] { identifier[List] operator[<] identifier[Balance] operator[>] identifier[adaptedBalances] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] identifier[balances] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[BitflyerBalance] identifier[balance] operator[:] identifier[balances] operator[SEP] { identifier[adaptedBalances] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Balance] operator[SEP] identifier[Currency] operator[SEP] identifier[getInstance] operator[SEP] identifier[balance] operator[SEP] identifier[getCurrencyCode] operator[SEP] operator[SEP] operator[SEP] , identifier[balance] operator[SEP] identifier[getAmount] operator[SEP] operator[SEP] , identifier[balance] operator[SEP] identifier[getAvailable] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[Wallet] operator[SEP] identifier[adaptedBalances] operator[SEP] operator[SEP] }
public static String asString_ApiPlanBeans(Set<ApiPlanBean> plans) { TreeSet<ApiPlanBean> sortedPlans = new TreeSet<>(new Comparator<ApiPlanBean>() { @Override public int compare(ApiPlanBean o1, ApiPlanBean o2) { String p1 = o1.getPlanId() + ":" + o1.getVersion(); //$NON-NLS-1$ String p2 = o2.getPlanId() + ":" + o2.getVersion(); //$NON-NLS-1$ return p1.compareTo(p2); } }); sortedPlans.addAll(plans); StringBuilder builder = new StringBuilder(); boolean first = true; if (plans != null) { for (ApiPlanBean plan : sortedPlans) { if (!first) { builder.append(", "); //$NON-NLS-1$ } builder.append(plan.getPlanId()).append(":").append(plan.getVersion()); //$NON-NLS-1$ first = false; } } return builder.toString(); }
class class_name[name] begin[{] method[asString_ApiPlanBeans, return_type[type[String]], modifier[public static], parameter[plans]] begin[{] local_variable[type[TreeSet], sortedPlans] call[sortedPlans.addAll, parameter[member[.plans]]] local_variable[type[StringBuilder], builder] local_variable[type[boolean], first] if[binary_operation[member[.plans], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=first, 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=builder, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getPlanId, postfix_operators=[], prefix_operators=[], qualifier=plan, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=":")], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getVersion, postfix_operators=[], prefix_operators=[], qualifier=plan, selectors=[], type_arguments=None)], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=first, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=sortedPlans, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=plan)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ApiPlanBean, sub_type=None))), label=None) else begin[{] None end[}] return[call[builder.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[asString_ApiPlanBeans] operator[SEP] identifier[Set] operator[<] identifier[ApiPlanBean] operator[>] identifier[plans] operator[SEP] { identifier[TreeSet] operator[<] identifier[ApiPlanBean] operator[>] identifier[sortedPlans] operator[=] Keyword[new] identifier[TreeSet] operator[<] operator[>] operator[SEP] Keyword[new] identifier[Comparator] operator[<] identifier[ApiPlanBean] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compare] operator[SEP] identifier[ApiPlanBean] identifier[o1] , identifier[ApiPlanBean] identifier[o2] operator[SEP] { identifier[String] identifier[p1] operator[=] identifier[o1] operator[SEP] identifier[getPlanId] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[o1] operator[SEP] identifier[getVersion] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[p2] operator[=] identifier[o2] operator[SEP] identifier[getPlanId] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[o2] operator[SEP] identifier[getVersion] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[p1] operator[SEP] identifier[compareTo] operator[SEP] identifier[p2] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] identifier[sortedPlans] operator[SEP] identifier[addAll] operator[SEP] identifier[plans] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[first] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[plans] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[ApiPlanBean] identifier[plan] operator[:] identifier[sortedPlans] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[first] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[builder] operator[SEP] identifier[append] operator[SEP] identifier[plan] operator[SEP] identifier[getPlanId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[plan] operator[SEP] identifier[getVersion] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[first] operator[=] literal[boolean] operator[SEP] } } Keyword[return] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
protected String rewriteContentString(String originalContent) { Pattern uuidPattern = Pattern.compile(CmsUUID.UUID_REGEX); I_CmsRegexSubstitution substitution = new I_CmsRegexSubstitution() { public String substituteMatch(String text, Matcher matcher) { String uuidString = text.substring(matcher.start(), matcher.end()); CmsUUID uuid = new CmsUUID(uuidString); String result = uuidString; if (m_translationsById.containsKey(uuid)) { result = m_translationsById.get(uuid).getStructureId().toString(); } return result; } }; return CmsStringUtil.substitute(uuidPattern, originalContent, substitution); }
class class_name[name] begin[{] method[rewriteContentString, return_type[type[String]], modifier[protected], parameter[originalContent]] begin[{] local_variable[type[Pattern], uuidPattern] local_variable[type[I_CmsRegexSubstitution], substitution] return[call[CmsStringUtil.substitute, parameter[member[.uuidPattern], member[.originalContent], member[.substitution]]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[rewriteContentString] operator[SEP] identifier[String] identifier[originalContent] operator[SEP] { identifier[Pattern] identifier[uuidPattern] operator[=] identifier[Pattern] operator[SEP] identifier[compile] operator[SEP] identifier[CmsUUID] operator[SEP] identifier[UUID_REGEX] operator[SEP] operator[SEP] identifier[I_CmsRegexSubstitution] identifier[substitution] operator[=] Keyword[new] identifier[I_CmsRegexSubstitution] operator[SEP] operator[SEP] { Keyword[public] identifier[String] identifier[substituteMatch] operator[SEP] identifier[String] identifier[text] , identifier[Matcher] identifier[matcher] operator[SEP] { identifier[String] identifier[uuidString] operator[=] identifier[text] operator[SEP] identifier[substring] operator[SEP] identifier[matcher] operator[SEP] identifier[start] operator[SEP] operator[SEP] , identifier[matcher] operator[SEP] identifier[end] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[CmsUUID] identifier[uuid] operator[=] Keyword[new] identifier[CmsUUID] operator[SEP] identifier[uuidString] operator[SEP] operator[SEP] identifier[String] identifier[result] operator[=] identifier[uuidString] operator[SEP] Keyword[if] operator[SEP] identifier[m_translationsById] operator[SEP] identifier[containsKey] operator[SEP] identifier[uuid] operator[SEP] operator[SEP] { identifier[result] operator[=] identifier[m_translationsById] operator[SEP] identifier[get] operator[SEP] identifier[uuid] operator[SEP] operator[SEP] identifier[getStructureId] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] } } operator[SEP] Keyword[return] identifier[CmsStringUtil] operator[SEP] identifier[substitute] operator[SEP] identifier[uuidPattern] , identifier[originalContent] , identifier[substitution] operator[SEP] operator[SEP] }
@Override public void stop() throws JMSException { checkClosed(); if (!running) { return; } actionOnConnectionTaken = true; if (SQSSession.SESSION_THREAD_FACTORY.wasThreadCreatedWithThisThreadGroup(Thread.currentThread())) { throw new IllegalStateException( "MessageListener must not attempt to stop its own Connection to prevent potential deadlock issues"); } synchronized (stateLock) { checkClosing(); if (running) { try { for (Session session : sessions) { SQSSession sqsSession = (SQSSession) session; /** * Session stop call blocks until receives and/or * message listeners in progress have completed. */ sqsSession.stop(); } } finally { running = false; } } } }
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] call[.checkClosed, parameter[]] if[member[.running]] begin[{] return[None] else begin[{] None end[}] assign[member[.actionOnConnectionTaken], literal[true]] if[call[SQSSession.SESSION_THREAD_FACTORY.wasThreadCreatedWithThisThreadGroup, parameter[call[Thread.currentThread, parameter[]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MessageListener must not attempt to stop its own Connection to prevent potential deadlock issues")], 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) else begin[{] None end[}] SYNCHRONIZED[member[.stateLock]] BEGIN[{] call[.checkClosing, parameter[]] if[member[.running]] begin[{] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=SQSSession, sub_type=None)), name=sqsSession)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=SQSSession, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[], member=stop, postfix_operators=[], prefix_operators=[], qualifier=sqsSession, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=sessions, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=session)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Session, sub_type=None))), label=None)], catches=None, finally_block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=running, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)), label=None)], label=None, resources=None) else begin[{] None end[}] END[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] Keyword[throws] identifier[JMSException] { identifier[checkClosed] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[running] operator[SEP] { Keyword[return] operator[SEP] } identifier[actionOnConnectionTaken] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[SQSSession] operator[SEP] identifier[SESSION_THREAD_FACTORY] operator[SEP] identifier[wasThreadCreatedWithThisThreadGroup] operator[SEP] identifier[Thread] operator[SEP] identifier[currentThread] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[synchronized] operator[SEP] identifier[stateLock] operator[SEP] { identifier[checkClosing] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[running] operator[SEP] { Keyword[try] { Keyword[for] operator[SEP] identifier[Session] identifier[session] operator[:] identifier[sessions] operator[SEP] { identifier[SQSSession] identifier[sqsSession] operator[=] operator[SEP] identifier[SQSSession] operator[SEP] identifier[session] operator[SEP] identifier[sqsSession] operator[SEP] identifier[stop] operator[SEP] operator[SEP] operator[SEP] } } Keyword[finally] { identifier[running] operator[=] literal[boolean] operator[SEP] } } } }
public void flush() throws IOException { for (int i = curBit; i < 8; i++) { curByte[i] = 0; } curBit = 0; writeCurByte(); }
class class_name[name] begin[{] method[flush, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=curByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MemberReference(member=curBit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) assign[member[.curBit], literal[0]] call[.writeCurByte, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[flush] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[curBit] operator[SEP] identifier[i] operator[<] Other[8] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[curByte] operator[SEP] identifier[i] operator[SEP] operator[=] Other[0] operator[SEP] } identifier[curBit] operator[=] Other[0] operator[SEP] identifier[writeCurByte] operator[SEP] operator[SEP] operator[SEP] }
protected void createSREArgsBlock(Composite parent, Font font) { // Create the block for the SRE final Group group = new Group(parent, SWT.NONE); group.setFont(font); final GridLayout layout = new GridLayout(); group.setLayout(layout); group.setLayoutData(new GridData(GridData.FILL_BOTH)); // Move the SRE argument block before the JVM argument block group.moveAbove(this.fVMArgumentsBlock.getControl()); group.setText(Messages.SARLArgumentsTab_1); createSREArgsText(group, font); createSREArgsVariableButton(group); }
class class_name[name] begin[{] method[createSREArgsBlock, return_type[void], modifier[protected], parameter[parent, font]] begin[{] local_variable[type[Group], group] call[group.setFont, parameter[member[.font]]] local_variable[type[GridLayout], layout] call[group.setLayout, parameter[member[.layout]]] call[group.setLayoutData, parameter[ClassCreator(arguments=[MemberReference(member=FILL_BOTH, postfix_operators=[], prefix_operators=[], qualifier=GridData, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GridData, sub_type=None))]] call[group.moveAbove, parameter[THIS[member[None.fVMArgumentsBlock]call[None.getControl, parameter[]]]]] call[group.setText, parameter[member[Messages.SARLArgumentsTab_1]]] call[.createSREArgsText, parameter[member[.group], member[.font]]] call[.createSREArgsVariableButton, parameter[member[.group]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[createSREArgsBlock] operator[SEP] identifier[Composite] identifier[parent] , identifier[Font] identifier[font] operator[SEP] { Keyword[final] identifier[Group] identifier[group] operator[=] Keyword[new] identifier[Group] operator[SEP] identifier[parent] , identifier[SWT] operator[SEP] identifier[NONE] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setFont] operator[SEP] identifier[font] operator[SEP] operator[SEP] Keyword[final] identifier[GridLayout] identifier[layout] operator[=] Keyword[new] identifier[GridLayout] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setLayout] operator[SEP] identifier[layout] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setLayoutData] operator[SEP] Keyword[new] identifier[GridData] operator[SEP] identifier[GridData] operator[SEP] identifier[FILL_BOTH] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[moveAbove] operator[SEP] Keyword[this] operator[SEP] identifier[fVMArgumentsBlock] operator[SEP] identifier[getControl] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[group] operator[SEP] identifier[setText] operator[SEP] identifier[Messages] operator[SEP] identifier[SARLArgumentsTab_1] operator[SEP] operator[SEP] identifier[createSREArgsText] operator[SEP] identifier[group] , identifier[font] operator[SEP] operator[SEP] identifier[createSREArgsVariableButton] operator[SEP] identifier[group] operator[SEP] operator[SEP] }
public static boolean isVector(DMatrixSparseCSC a) { return (a.numCols == 1 && a.numRows > 1) || (a.numRows == 1 && a.numCols>1); }
class class_name[name] begin[{] method[isVector, return_type[type[boolean]], modifier[public static], parameter[a]] begin[{] return[binary_operation[binary_operation[binary_operation[member[a.numCols], ==, literal[1]], &&, binary_operation[member[a.numRows], >, literal[1]]], ||, binary_operation[binary_operation[member[a.numRows], ==, literal[1]], &&, binary_operation[member[a.numCols], >, literal[1]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isVector] operator[SEP] identifier[DMatrixSparseCSC] identifier[a] operator[SEP] { Keyword[return] operator[SEP] identifier[a] operator[SEP] identifier[numCols] operator[==] Other[1] operator[&&] identifier[a] operator[SEP] identifier[numRows] operator[>] Other[1] operator[SEP] operator[||] operator[SEP] identifier[a] operator[SEP] identifier[numRows] operator[==] Other[1] operator[&&] identifier[a] operator[SEP] identifier[numCols] operator[>] Other[1] operator[SEP] operator[SEP] }
public void marshall(KinesisStreamsOutput kinesisStreamsOutput, ProtocolMarshaller protocolMarshaller) { if (kinesisStreamsOutput == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(kinesisStreamsOutput.getResourceARN(), RESOURCEARN_BINDING); protocolMarshaller.marshall(kinesisStreamsOutput.getRoleARN(), ROLEARN_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[kinesisStreamsOutput, protocolMarshaller]] begin[{] if[binary_operation[member[.kinesisStreamsOutput], ==, 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=getResourceARN, postfix_operators=[], prefix_operators=[], qualifier=kinesisStreamsOutput, selectors=[], type_arguments=None), MemberReference(member=RESOURCEARN_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=getRoleARN, postfix_operators=[], prefix_operators=[], qualifier=kinesisStreamsOutput, selectors=[], type_arguments=None), MemberReference(member=ROLEARN_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[KinesisStreamsOutput] identifier[kinesisStreamsOutput] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[kinesisStreamsOutput] 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[kinesisStreamsOutput] operator[SEP] identifier[getResourceARN] operator[SEP] operator[SEP] , identifier[RESOURCEARN_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[kinesisStreamsOutput] operator[SEP] identifier[getRoleARN] operator[SEP] operator[SEP] , identifier[ROLEARN_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] } }
@GET @Path("{guid}/traitDefinitions") @Produces(Servlets.JSON_MEDIA_TYPE) public Response getTraitDefinitionsForEntity(@PathParam("guid") String guid){ if (LOG.isDebugEnabled()) { LOG.debug("==> EntityResource.getTraitDefinitionsForEntity({})", guid); } AtlasPerfTracer perf = null; try { if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "EntityResource.getTraitDefinitionsForEntity(" + guid + ")"); } if (LOG.isDebugEnabled()) { LOG.debug("Fetching all trait definitions for entity={}", guid); } final List<AtlasClassification> classifications = entitiesStore.getClassifications(guid); JSONArray traits = new JSONArray(); for (AtlasClassification classification : classifications) { IStruct trait = restAdapters.getTrait(classification); traits.put(new JSONObject(InstanceSerialization.toJson(trait, true))); } JSONObject response = new JSONObject(); response.put(AtlasClient.REQUEST_ID, Servlets.getRequestId()); response.put(AtlasClient.RESULTS, traits); response.put(AtlasClient.COUNT, traits.length()); return Response.ok(response).build(); } catch (AtlasBaseException e) { LOG.error("Unable to get trait definition for entity {}", guid, e); throw toWebApplicationException(e); } catch (IllegalArgumentException e) { LOG.error("Unable to get trait definition for entity {}", guid, e); throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.BAD_REQUEST)); } catch (WebApplicationException e) { LOG.error("Unable to get trait definitions for entity {}", guid, e); throw e; } catch (Throwable e) { LOG.error("Unable to get trait definitions for entity {}", guid, e); throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.INTERNAL_SERVER_ERROR)); } finally { AtlasPerfTracer.log(perf); if (LOG.isDebugEnabled()) { LOG.debug("<== EntityResource.getTraitDefinitionsForEntity({})", guid); } } }
class class_name[name] begin[{] method[getTraitDefinitionsForEntity, return_type[type[Response]], modifier[public], parameter[guid]] begin[{] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, parameter[literal["==> EntityResource.getTraitDefinitionsForEntity({})"], member[.guid]]] else begin[{] None end[}] local_variable[type[AtlasPerfTracer], perf] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=PERF_LOG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isPerfTraceEnabled, postfix_operators=[], prefix_operators=[], qualifier=AtlasPerfTracer, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=perf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=PERF_LOG, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="EntityResource.getTraitDefinitionsForEntity("), operandr=MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=")"), operator=+)], member=getPerfTracer, postfix_operators=[], prefix_operators=[], qualifier=AtlasPerfTracer, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=LOG, 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="Fetching all trait definitions for entity={}"), MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getClassifications, postfix_operators=[], prefix_operators=[], qualifier=entitiesStore, selectors=[], type_arguments=None), name=classifications)], modifiers={'final'}, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AtlasClassification, sub_type=None))], dimensions=[], name=List, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JSONArray, sub_type=None)), name=traits)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=JSONArray, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=classification, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getTrait, postfix_operators=[], prefix_operators=[], qualifier=restAdapters, selectors=[], type_arguments=None), name=trait)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IStruct, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=trait, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=toJson, postfix_operators=[], prefix_operators=[], qualifier=InstanceSerialization, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JSONObject, sub_type=None))], member=put, postfix_operators=[], prefix_operators=[], qualifier=traits, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=classifications, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=classification)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=AtlasClassification, sub_type=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=JSONObject, sub_type=None)), name=response)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=JSONObject, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=REQUEST_ID, postfix_operators=[], prefix_operators=[], qualifier=AtlasClient, selectors=[]), MethodInvocation(arguments=[], member=getRequestId, postfix_operators=[], prefix_operators=[], qualifier=Servlets, selectors=[], type_arguments=None)], member=put, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=RESULTS, postfix_operators=[], prefix_operators=[], qualifier=AtlasClient, selectors=[]), MemberReference(member=traits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=COUNT, postfix_operators=[], prefix_operators=[], qualifier=AtlasClient, selectors=[]), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=traits, selectors=[], type_arguments=None)], member=put, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=response, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=ok, postfix_operators=[], prefix_operators=[], qualifier=Response, selectors=[MethodInvocation(arguments=[], member=build, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to get trait definition for entity {}"), MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toWebApplicationException, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['AtlasBaseException'])), CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to get trait definition for entity {}"), MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=BAD_REQUEST, postfix_operators=[], prefix_operators=[], qualifier=Response.Status, selectors=[])], member=getErrorResponse, postfix_operators=[], prefix_operators=[], qualifier=Servlets, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=WebApplicationException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalArgumentException'])), CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to get trait definitions for entity {}"), MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['WebApplicationException'])), CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to get trait definitions for entity {}"), MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=INTERNAL_SERVER_ERROR, postfix_operators=[], prefix_operators=[], qualifier=Response.Status, selectors=[])], member=getErrorResponse, postfix_operators=[], prefix_operators=[], qualifier=Servlets, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=WebApplicationException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Throwable']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=perf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=log, postfix_operators=[], prefix_operators=[], qualifier=AtlasPerfTracer, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=LOG, 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="<== EntityResource.getTraitDefinitionsForEntity({})"), MemberReference(member=guid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)]))], label=None, resources=None) end[}] END[}]
annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Produces] operator[SEP] identifier[Servlets] operator[SEP] identifier[JSON_MEDIA_TYPE] operator[SEP] Keyword[public] identifier[Response] identifier[getTraitDefinitionsForEntity] operator[SEP] annotation[@] identifier[PathParam] operator[SEP] literal[String] operator[SEP] identifier[String] identifier[guid] 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] , identifier[guid] operator[SEP] operator[SEP] } identifier[AtlasPerfTracer] identifier[perf] operator[=] Other[null] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] identifier[AtlasPerfTracer] operator[SEP] identifier[isPerfTraceEnabled] operator[SEP] identifier[PERF_LOG] operator[SEP] operator[SEP] { identifier[perf] operator[=] identifier[AtlasPerfTracer] operator[SEP] identifier[getPerfTracer] operator[SEP] identifier[PERF_LOG] , literal[String] operator[+] identifier[guid] operator[+] literal[String] operator[SEP] 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] , identifier[guid] operator[SEP] operator[SEP] } Keyword[final] identifier[List] operator[<] identifier[AtlasClassification] operator[>] identifier[classifications] operator[=] identifier[entitiesStore] operator[SEP] identifier[getClassifications] operator[SEP] identifier[guid] operator[SEP] operator[SEP] identifier[JSONArray] identifier[traits] operator[=] Keyword[new] identifier[JSONArray] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[AtlasClassification] identifier[classification] operator[:] identifier[classifications] operator[SEP] { identifier[IStruct] identifier[trait] operator[=] identifier[restAdapters] operator[SEP] identifier[getTrait] operator[SEP] identifier[classification] operator[SEP] operator[SEP] identifier[traits] operator[SEP] identifier[put] operator[SEP] Keyword[new] identifier[JSONObject] operator[SEP] identifier[InstanceSerialization] operator[SEP] identifier[toJson] operator[SEP] identifier[trait] , literal[boolean] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[JSONObject] identifier[response] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] operator[SEP] operator[SEP] identifier[response] operator[SEP] identifier[put] operator[SEP] identifier[AtlasClient] operator[SEP] identifier[REQUEST_ID] , identifier[Servlets] operator[SEP] identifier[getRequestId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[response] operator[SEP] identifier[put] operator[SEP] identifier[AtlasClient] operator[SEP] identifier[RESULTS] , identifier[traits] operator[SEP] operator[SEP] identifier[response] operator[SEP] identifier[put] operator[SEP] identifier[AtlasClient] operator[SEP] identifier[COUNT] , identifier[traits] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Response] operator[SEP] identifier[ok] operator[SEP] identifier[response] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[AtlasBaseException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[guid] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] identifier[toWebApplicationException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalArgumentException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[guid] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[WebApplicationException] operator[SEP] identifier[Servlets] operator[SEP] identifier[getErrorResponse] operator[SEP] identifier[e] , identifier[Response] operator[SEP] identifier[Status] operator[SEP] identifier[BAD_REQUEST] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[WebApplicationException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[guid] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] identifier[e] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[guid] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[WebApplicationException] operator[SEP] identifier[Servlets] operator[SEP] identifier[getErrorResponse] operator[SEP] identifier[e] , identifier[Response] operator[SEP] identifier[Status] operator[SEP] identifier[INTERNAL_SERVER_ERROR] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { identifier[AtlasPerfTracer] operator[SEP] identifier[log] operator[SEP] identifier[perf] operator[SEP] 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] , identifier[guid] operator[SEP] operator[SEP] } } }