code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public int calculateDxToMakeVisible(View view, int snapPreference) { final RecyclerView.LayoutManager layoutManager = getLayoutManager(); if (!layoutManager.canScrollHorizontally()) { return 0; } final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) view.getLayoutParams(); final int left = layoutManager.getDecoratedLeft(view) - params.leftMargin; final int right = layoutManager.getDecoratedRight(view) + params.rightMargin; final int start = layoutManager.getPaddingLeft(); final int end = layoutManager.getWidth() - layoutManager.getPaddingRight(); return calculateDtToFit(left, right, start, end, snapPreference); }
class class_name[name] begin[{] method[calculateDxToMakeVisible, return_type[type[int]], modifier[public], parameter[view, snapPreference]] begin[{] local_variable[type[RecyclerView], layoutManager] if[call[layoutManager.canScrollHorizontally, parameter[]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[RecyclerView], params] local_variable[type[int], left] local_variable[type[int], right] local_variable[type[int], start] local_variable[type[int], end] return[call[.calculateDtToFit, parameter[member[.left], member[.right], member[.start], member[.end], member[.snapPreference]]]] end[}] END[}]
Keyword[public] Keyword[int] identifier[calculateDxToMakeVisible] operator[SEP] identifier[View] identifier[view] , Keyword[int] identifier[snapPreference] operator[SEP] { Keyword[final] identifier[RecyclerView] operator[SEP] identifier[LayoutManager] identifier[layoutManager] operator[=] identifier[getLayoutManager] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[layoutManager] operator[SEP] identifier[canScrollHorizontally] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[0] operator[SEP] } Keyword[final] identifier[RecyclerView] operator[SEP] identifier[LayoutParams] identifier[params] operator[=] operator[SEP] identifier[RecyclerView] operator[SEP] identifier[LayoutParams] operator[SEP] identifier[view] operator[SEP] identifier[getLayoutParams] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[left] operator[=] identifier[layoutManager] operator[SEP] identifier[getDecoratedLeft] operator[SEP] identifier[view] operator[SEP] operator[-] identifier[params] operator[SEP] identifier[leftMargin] operator[SEP] Keyword[final] Keyword[int] identifier[right] operator[=] identifier[layoutManager] operator[SEP] identifier[getDecoratedRight] operator[SEP] identifier[view] operator[SEP] operator[+] identifier[params] operator[SEP] identifier[rightMargin] operator[SEP] Keyword[final] Keyword[int] identifier[start] operator[=] identifier[layoutManager] operator[SEP] identifier[getPaddingLeft] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[end] operator[=] identifier[layoutManager] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[-] identifier[layoutManager] operator[SEP] identifier[getPaddingRight] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[calculateDtToFit] operator[SEP] identifier[left] , identifier[right] , identifier[start] , identifier[end] , identifier[snapPreference] operator[SEP] operator[SEP] }
public static boolean isH2Connection(Settings configuration) { final String connStr; try { connStr = configuration.getConnectionString( Settings.KEYS.DB_CONNECTION_STRING, Settings.KEYS.DB_FILE_NAME); } catch (IOException ex) { LOGGER.debug("Unable to get connectionn string", ex); return false; } return connStr.startsWith("jdbc:h2:file:"); }
class class_name[name] begin[{] method[isH2Connection, return_type[type[boolean]], modifier[public static], parameter[configuration]] begin[{] local_variable[type[String], connStr] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=connStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=DB_CONNECTION_STRING, postfix_operators=[], prefix_operators=[], qualifier=Settings.KEYS, selectors=[]), MemberReference(member=DB_FILE_NAME, postfix_operators=[], prefix_operators=[], qualifier=Settings.KEYS, selectors=[])], member=getConnectionString, postfix_operators=[], prefix_operators=[], qualifier=configuration, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to get connectionn string"), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOGGER, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['IOException']))], finally_block=None, label=None, resources=None) return[call[connStr.startsWith, parameter[literal["jdbc:h2:file:"]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isH2Connection] operator[SEP] identifier[Settings] identifier[configuration] operator[SEP] { Keyword[final] identifier[String] identifier[connStr] operator[SEP] Keyword[try] { identifier[connStr] operator[=] identifier[configuration] operator[SEP] identifier[getConnectionString] operator[SEP] identifier[Settings] operator[SEP] identifier[KEYS] operator[SEP] identifier[DB_CONNECTION_STRING] , identifier[Settings] operator[SEP] identifier[KEYS] operator[SEP] identifier[DB_FILE_NAME] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[ex] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[ex] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[return] identifier[connStr] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] }
public void assertAuthFail(byte[] expectedSignature, BuilderMode builderMode, String errorMessage) { if (isHashEquals(expectedSignature, builderMode)) { if (Validator.isEmpty(errorMessage)) { throw new IllegalArgumentException(); } else { throw new IllegalArgumentException(errorMessage); } } }
class class_name[name] begin[{] method[assertAuthFail, return_type[void], modifier[public], parameter[expectedSignature, builderMode, errorMessage]] begin[{] if[call[.isHashEquals, parameter[member[.expectedSignature], member[.builderMode]]]] begin[{] if[call[Validator.isEmpty, parameter[member[.errorMessage]]]] 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[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=errorMessage, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) end[}] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[assertAuthFail] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[expectedSignature] , identifier[BuilderMode] identifier[builderMode] , identifier[String] identifier[errorMessage] operator[SEP] { Keyword[if] operator[SEP] identifier[isHashEquals] operator[SEP] identifier[expectedSignature] , identifier[builderMode] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Validator] operator[SEP] identifier[isEmpty] operator[SEP] identifier[errorMessage] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] identifier[errorMessage] operator[SEP] operator[SEP] } } }
@Override public Destination getJMSReplyTo() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getJMSReplyTo"); // If we have not cached the replyTo destination. if (replyTo == null) { List<SIDestinationAddress> rrp = msg.getReverseRoutingPath(); SICoreConnection siConn = null; if (theSession != null) siConn = theSession.getCoreConnection(); // Use this utility method to obtain the full representation & store in the cache replyTo = JmsDestinationImpl.getJMSReplyToInternal(msg, rrp, siConn); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getJMSReplyTo", replyTo); return replyTo; }
class class_name[name] begin[{] method[getJMSReplyTo, return_type[type[Destination]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], literal["getJMSReplyTo"]]] else begin[{] None end[}] if[binary_operation[member[.replyTo], ==, literal[null]]] begin[{] local_variable[type[List], rrp] local_variable[type[SICoreConnection], siConn] if[binary_operation[member[.theSession], !=, literal[null]]] begin[{] assign[member[.siConn], call[theSession.getCoreConnection, parameter[]]] else begin[{] None end[}] assign[member[.replyTo], call[JmsDestinationImpl.getJMSReplyToInternal, parameter[member[.msg], member[.rrp], member[.siConn]]]] else begin[{] None end[}] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.exit, parameter[THIS[], member[.tc], literal["getJMSReplyTo"], member[.replyTo]]] else begin[{] None end[}] return[member[.replyTo]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Destination] identifier[getJMSReplyTo] operator[SEP] operator[SEP] Keyword[throws] identifier[JMSException] { 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] Keyword[this] , identifier[tc] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[replyTo] operator[==] Other[null] operator[SEP] { identifier[List] operator[<] identifier[SIDestinationAddress] operator[>] identifier[rrp] operator[=] identifier[msg] operator[SEP] identifier[getReverseRoutingPath] operator[SEP] operator[SEP] operator[SEP] identifier[SICoreConnection] identifier[siConn] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[theSession] operator[!=] Other[null] operator[SEP] identifier[siConn] operator[=] identifier[theSession] operator[SEP] identifier[getCoreConnection] operator[SEP] operator[SEP] operator[SEP] identifier[replyTo] operator[=] identifier[JmsDestinationImpl] operator[SEP] identifier[getJMSReplyToInternal] operator[SEP] identifier[msg] , identifier[rrp] , identifier[siConn] 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[exit] operator[SEP] Keyword[this] , identifier[tc] , literal[String] , identifier[replyTo] operator[SEP] operator[SEP] Keyword[return] identifier[replyTo] operator[SEP] }
public String convertBeginSegmentCommandFLAG2ToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
class class_name[name] begin[{] method[convertBeginSegmentCommandFLAG2ToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=instanceValue, selectors=[], type_arguments=None), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null))] end[}] END[}]
Keyword[public] identifier[String] identifier[convertBeginSegmentCommandFLAG2ToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] { Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[instanceValue] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.FNP__RG: return rg != null && !rg.isEmpty(); } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=FNP__RG, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=rg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=rg, selectors=[], type_arguments=None), operator=&&), label=None)])], expression=MemberReference(member=featureID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) return[SuperMethodInvocation(arguments=[MemberReference(member=featureID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=eIsSet, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[FNP__RG] operator[:] Keyword[return] identifier[rg] operator[!=] Other[null] operator[&&] operator[!] identifier[rg] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] Keyword[super] operator[SEP] identifier[eIsSet] operator[SEP] identifier[featureID] operator[SEP] operator[SEP] }
public @NonNull Query setAroundRadius(Integer radius) { if (radius == Query.RADIUS_ALL) { return set(KEY_AROUND_RADIUS, "all"); } return set(KEY_AROUND_RADIUS, radius); }
class class_name[name] begin[{] method[setAroundRadius, return_type[type[Query]], modifier[public], parameter[radius]] begin[{] if[binary_operation[member[.radius], ==, member[Query.RADIUS_ALL]]] begin[{] return[call[.set, parameter[member[.KEY_AROUND_RADIUS], literal["all"]]]] else begin[{] None end[}] return[call[.set, parameter[member[.KEY_AROUND_RADIUS], member[.radius]]]] end[}] END[}]
Keyword[public] annotation[@] identifier[NonNull] identifier[Query] identifier[setAroundRadius] operator[SEP] identifier[Integer] identifier[radius] operator[SEP] { Keyword[if] operator[SEP] identifier[radius] operator[==] identifier[Query] operator[SEP] identifier[RADIUS_ALL] operator[SEP] { Keyword[return] identifier[set] operator[SEP] identifier[KEY_AROUND_RADIUS] , literal[String] operator[SEP] operator[SEP] } Keyword[return] identifier[set] operator[SEP] identifier[KEY_AROUND_RADIUS] , identifier[radius] operator[SEP] operator[SEP] }
private void normalizeNodeTypes(Node n) { normalizeBlocks(n); for (Node child = n.getFirstChild(); child != null; child = child.getNext()) { // This pass is run during the CompilerTestCase validation, so this // parent pointer check serves as a more general check. checkState(child.getParent() == n); normalizeNodeTypes(child); } }
class class_name[name] begin[{] method[normalizeNodeTypes, return_type[void], modifier[private], parameter[n]] begin[{] call[.normalizeBlocks, parameter[member[.n]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=getParent, postfix_operators=[], prefix_operators=[], qualifier=child, selectors=[], type_arguments=None), operandr=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===)], member=checkState, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=child, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=normalizeNodeTypes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=child, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=getFirstChild, postfix_operators=[], prefix_operators=[], qualifier=n, selectors=[], type_arguments=None), name=child)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Node, sub_type=None)), update=[Assignment(expressionl=MemberReference(member=child, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getNext, postfix_operators=[], prefix_operators=[], qualifier=child, selectors=[], type_arguments=None))]), label=None) end[}] END[}]
Keyword[private] Keyword[void] identifier[normalizeNodeTypes] operator[SEP] identifier[Node] identifier[n] operator[SEP] { identifier[normalizeBlocks] operator[SEP] identifier[n] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Node] identifier[child] operator[=] identifier[n] operator[SEP] identifier[getFirstChild] operator[SEP] operator[SEP] operator[SEP] identifier[child] operator[!=] Other[null] operator[SEP] identifier[child] operator[=] identifier[child] operator[SEP] identifier[getNext] operator[SEP] operator[SEP] operator[SEP] { identifier[checkState] operator[SEP] identifier[child] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[==] identifier[n] operator[SEP] operator[SEP] identifier[normalizeNodeTypes] operator[SEP] identifier[child] operator[SEP] operator[SEP] } }
public ServiceFuture<OperationStatusResponseInner> reimageAllAsync(String resourceGroupName, String vmScaleSetName, final ServiceCallback<OperationStatusResponseInner> serviceCallback) { return ServiceFuture.fromResponse(reimageAllWithServiceResponseAsync(resourceGroupName, vmScaleSetName), serviceCallback); }
class class_name[name] begin[{] method[reimageAllAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, vmScaleSetName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.reimageAllWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.vmScaleSetName]]], member[.serviceCallback]]]] end[}] END[}]
Keyword[public] identifier[ServiceFuture] operator[<] identifier[OperationStatusResponseInner] operator[>] identifier[reimageAllAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[vmScaleSetName] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[OperationStatusResponseInner] operator[>] identifier[serviceCallback] operator[SEP] { Keyword[return] identifier[ServiceFuture] operator[SEP] identifier[fromResponse] operator[SEP] identifier[reimageAllWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[vmScaleSetName] operator[SEP] , identifier[serviceCallback] operator[SEP] operator[SEP] }
public static com.liferay.commerce.product.type.grouped.model.CPDefinitionGroupedEntry deleteCPDefinitionGroupedEntry( long CPDefinitionGroupedEntryId) throws com.liferay.portal.kernel.exception.PortalException { return getService() .deleteCPDefinitionGroupedEntry(CPDefinitionGroupedEntryId); }
class class_name[name] begin[{] method[deleteCPDefinitionGroupedEntry, return_type[type[com]], modifier[public static], parameter[CPDefinitionGroupedEntryId]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[type] operator[SEP] identifier[grouped] operator[SEP] identifier[model] operator[SEP] identifier[CPDefinitionGroupedEntry] identifier[deleteCPDefinitionGroupedEntry] operator[SEP] Keyword[long] identifier[CPDefinitionGroupedEntryId] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[portal] operator[SEP] identifier[kernel] operator[SEP] identifier[exception] operator[SEP] identifier[PortalException] { Keyword[return] identifier[getService] operator[SEP] operator[SEP] operator[SEP] identifier[deleteCPDefinitionGroupedEntry] operator[SEP] identifier[CPDefinitionGroupedEntryId] operator[SEP] operator[SEP] }
public Class<?> getSetterType(String name) throws NoSuchMethodException { Class<?> type = setterTypes.get(name); if (type == null) { throw new NoSuchMethodException("There is no WRITABLE property named '" + name + "' in class '" + className + "'"); } return type; }
class class_name[name] begin[{] method[getSetterType, return_type[type[Class]], modifier[public], parameter[name]] begin[{] local_variable[type[Class], type] if[binary_operation[member[.type], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="There is no WRITABLE property named '"), operandr=MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="' in class '"), operator=+), operandr=MemberReference(member=className, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NoSuchMethodException, sub_type=None)), label=None) else begin[{] None end[}] return[member[.type]] end[}] END[}]
Keyword[public] identifier[Class] operator[<] operator[?] operator[>] identifier[getSetterType] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[NoSuchMethodException] { identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[=] identifier[setterTypes] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NoSuchMethodException] operator[SEP] literal[String] operator[+] identifier[name] operator[+] literal[String] operator[+] identifier[className] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[return] identifier[type] operator[SEP] }
public void addAccountInfo(String field, String addInfoKey, String editable) { addAccountInfo(new CmsAccountInfo(field, addInfoKey, editable)); }
class class_name[name] begin[{] method[addAccountInfo, return_type[void], modifier[public], parameter[field, addInfoKey, editable]] begin[{] call[.addAccountInfo, parameter[ClassCreator(arguments=[MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=addInfoKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=editable, 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=CmsAccountInfo, sub_type=None))]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addAccountInfo] operator[SEP] identifier[String] identifier[field] , identifier[String] identifier[addInfoKey] , identifier[String] identifier[editable] operator[SEP] { identifier[addAccountInfo] operator[SEP] Keyword[new] identifier[CmsAccountInfo] operator[SEP] identifier[field] , identifier[addInfoKey] , identifier[editable] operator[SEP] operator[SEP] operator[SEP] }
@Requires("element != null") @Ensures("result != null") TypeName getGenericTypeName(TypeParameterElement element) { String name = element.getSimpleName().toString(); List<? extends TypeMirror> bounds = element.getBounds(); if (bounds.isEmpty() || (bounds.size() == 1 && bounds.get(0).toString().equals("java.lang.Object"))) { return new TypeName(name); } StringBuilder buffer = new StringBuilder(); buffer.append(name); buffer.append(" extends "); Iterator<? extends TypeMirror> iter = bounds.iterator(); for (;;) { buffer.append(iter.next().toString()); if (!iter.hasNext()) { break; } buffer.append(" & "); } return new TypeName(buffer.toString()); }
class class_name[name] begin[{] method[getGenericTypeName, return_type[type[TypeName]], modifier[default], parameter[element]] begin[{] local_variable[type[String], name] local_variable[type[List], bounds] if[binary_operation[call[bounds.isEmpty, parameter[]], ||, binary_operation[binary_operation[call[bounds.size, parameter[]], ==, literal[1]], &&, call[bounds.get, parameter[literal[0]]]]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=name, 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=TypeName, sub_type=None))] else begin[{] None end[}] local_variable[type[StringBuilder], buffer] call[buffer.append, parameter[member[.name]]] call[buffer.append, parameter[literal[" extends "]]] local_variable[type[Iterator], iter] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=iter, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=hasNext, postfix_operators=[], prefix_operators=['!'], qualifier=iter, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[BreakStatement(goto=None, label=None)])), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" & ")], member=append, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=None, init=None, update=None), label=None) return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TypeName, sub_type=None))] end[}] END[}]
annotation[@] identifier[Requires] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Ensures] operator[SEP] literal[String] operator[SEP] identifier[TypeName] identifier[getGenericTypeName] operator[SEP] identifier[TypeParameterElement] identifier[element] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[element] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[TypeMirror] operator[>] identifier[bounds] operator[=] identifier[element] operator[SEP] identifier[getBounds] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bounds] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[bounds] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[1] operator[&&] identifier[bounds] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[TypeName] operator[SEP] identifier[name] operator[SEP] operator[SEP] } identifier[StringBuilder] identifier[buffer] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Iterator] operator[<] operator[?] Keyword[extends] identifier[TypeMirror] operator[>] identifier[iter] operator[=] identifier[bounds] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[iter] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[iter] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { Keyword[break] operator[SEP] } identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[TypeName] operator[SEP] identifier[buffer] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static ByteBufToArray byteBufToByteArray(ByteBuf input) { byte[] inputBytes; int offset = 0; int length = input.readableBytes(); if (input.hasArray()) { inputBytes = input.array(); offset = input.arrayOffset() + input.readerIndex(); } else { inputBytes = new byte[length]; input.getBytes(input.readerIndex(), inputBytes); } return new ByteBufToArray(inputBytes, offset, length); }
class class_name[name] begin[{] method[byteBufToByteArray, return_type[type[ByteBufToArray]], modifier[public static], parameter[input]] begin[{] local_variable[type[byte], inputBytes] local_variable[type[int], offset] local_variable[type[int], length] if[call[input.hasArray, parameter[]]] begin[{] assign[member[.inputBytes], call[input.array, parameter[]]] assign[member[.offset], binary_operation[call[input.arrayOffset, parameter[]], +, call[input.readerIndex, parameter[]]]] else begin[{] assign[member[.inputBytes], ArrayCreator(dimensions=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte))] call[input.getBytes, parameter[call[input.readerIndex, parameter[]], member[.inputBytes]]] end[}] return[ClassCreator(arguments=[MemberReference(member=inputBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=length, 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=ByteBufToArray, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[ByteBufToArray] identifier[byteBufToByteArray] operator[SEP] identifier[ByteBuf] identifier[input] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[inputBytes] operator[SEP] Keyword[int] identifier[offset] operator[=] Other[0] operator[SEP] Keyword[int] identifier[length] operator[=] identifier[input] operator[SEP] identifier[readableBytes] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[input] operator[SEP] identifier[hasArray] operator[SEP] operator[SEP] operator[SEP] { identifier[inputBytes] operator[=] identifier[input] operator[SEP] identifier[array] operator[SEP] operator[SEP] operator[SEP] identifier[offset] operator[=] identifier[input] operator[SEP] identifier[arrayOffset] operator[SEP] operator[SEP] operator[+] identifier[input] operator[SEP] identifier[readerIndex] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[inputBytes] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[input] operator[SEP] identifier[getBytes] operator[SEP] identifier[input] operator[SEP] identifier[readerIndex] operator[SEP] operator[SEP] , identifier[inputBytes] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[ByteBufToArray] operator[SEP] identifier[inputBytes] , identifier[offset] , identifier[length] operator[SEP] operator[SEP] }
private List<String> getRotatedList(List<String> strings) { int index = RANDOM.nextInt(strings.size()); List<String> rotated = new ArrayList<String>(); for (int i = 0; i < strings.size(); i++) { rotated.add(strings.get(index)); index = (index + 1) % strings.size(); } return rotated; }
class class_name[name] begin[{] method[getRotatedList, return_type[type[List]], modifier[private], parameter[strings]] begin[{] local_variable[type[int], index] local_variable[type[List], rotated] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=strings, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=rotated, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=strings, selectors=[], type_arguments=None), operator=%)), 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=strings, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.rotated]] end[}] END[}]
Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[getRotatedList] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[strings] operator[SEP] { Keyword[int] identifier[index] operator[=] identifier[RANDOM] operator[SEP] identifier[nextInt] operator[SEP] identifier[strings] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[rotated] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[strings] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[rotated] operator[SEP] identifier[add] operator[SEP] identifier[strings] operator[SEP] identifier[get] operator[SEP] identifier[index] operator[SEP] operator[SEP] operator[SEP] identifier[index] operator[=] operator[SEP] identifier[index] operator[+] Other[1] operator[SEP] operator[%] identifier[strings] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[rotated] operator[SEP] }
<RequestT, ResponseT> void streamRequest( RequestT requestT, ApiStreamObserver<ResponseT> responseObserverT, ServerStreamingCallable<RequestT, ResponseT> callable) { Preconditions.checkState(!closed, "Firestore client has already been closed"); callable.serverStreamingCall(requestT, responseObserverT); }
class class_name[name] begin[{] method[streamRequest, return_type[void], modifier[default], parameter[requestT, responseObserverT, callable]] begin[{] call[Preconditions.checkState, parameter[member[.closed], literal["Firestore client has already been closed"]]] call[callable.serverStreamingCall, parameter[member[.requestT], member[.responseObserverT]]] end[}] END[}]
operator[<] identifier[RequestT] , identifier[ResponseT] operator[>] Keyword[void] identifier[streamRequest] operator[SEP] identifier[RequestT] identifier[requestT] , identifier[ApiStreamObserver] operator[<] identifier[ResponseT] operator[>] identifier[responseObserverT] , identifier[ServerStreamingCallable] operator[<] identifier[RequestT] , identifier[ResponseT] operator[>] identifier[callable] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] operator[!] identifier[closed] , literal[String] operator[SEP] operator[SEP] identifier[callable] operator[SEP] identifier[serverStreamingCall] operator[SEP] identifier[requestT] , identifier[responseObserverT] operator[SEP] operator[SEP] }
public static CPOptionCategory fetchByGroupId_Last(long groupId, OrderByComparator<CPOptionCategory> orderByComparator) { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); }
class class_name[name] begin[{] method[fetchByGroupId_Last, return_type[type[CPOptionCategory]], modifier[public static], parameter[groupId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPOptionCategory] identifier[fetchByGroupId_Last] operator[SEP] Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CPOptionCategory] operator[>] identifier[orderByComparator] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] operator[SEP] identifier[fetchByGroupId_Last] operator[SEP] identifier[groupId] , identifier[orderByComparator] operator[SEP] operator[SEP] }
public HandlerType<HandlerChainType<T>> getOrCreateHandler() { List<Node> nodeList = childNode.get("handler"); if (nodeList != null && nodeList.size() > 0) { return new HandlerTypeImpl<HandlerChainType<T>>(this, "handler", childNode, nodeList.get(0)); } return createHandler(); }
class class_name[name] begin[{] method[getOrCreateHandler, return_type[type[HandlerType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList.size, parameter[]], >, literal[0]]]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="handler"), MemberReference(member=childNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=get, postfix_operators=[], prefix_operators=[], qualifier=nodeList, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=[], name=HandlerChainType, sub_type=None))], dimensions=None, name=HandlerTypeImpl, sub_type=None))] else begin[{] None end[}] return[call[.createHandler, parameter[]]] end[}] END[}]
Keyword[public] identifier[HandlerType] operator[<] identifier[HandlerChainType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateHandler] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childNode] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[nodeList] operator[!=] Other[null] operator[&&] identifier[nodeList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { Keyword[return] Keyword[new] identifier[HandlerTypeImpl] operator[<] identifier[HandlerChainType] operator[<] identifier[T] operator[>] operator[>] operator[SEP] Keyword[this] , literal[String] , identifier[childNode] , identifier[nodeList] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[createHandler] operator[SEP] operator[SEP] operator[SEP] }
public void insert(String firstName, String lastName, String number) { entries.add(new PhoneBookEntry(this, firstName, lastName, number)); }
class class_name[name] begin[{] method[insert, return_type[void], modifier[public], parameter[firstName, lastName, number]] begin[{] call[entries.add, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=firstName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=lastName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=number, 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=PhoneBookEntry, sub_type=None))]] end[}] END[}]
Keyword[public] Keyword[void] identifier[insert] operator[SEP] identifier[String] identifier[firstName] , identifier[String] identifier[lastName] , identifier[String] identifier[number] operator[SEP] { identifier[entries] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[PhoneBookEntry] operator[SEP] Keyword[this] , identifier[firstName] , identifier[lastName] , identifier[number] operator[SEP] operator[SEP] operator[SEP] }
protected void sendEmail(TaskRuntimeContext context, String outcome) throws ObserverException { TaskInstance taskInstance = context.getTaskInstance(); TemplatedEmail templatedEmail = new TemplatedEmail(); templatedEmail.setFromAddress(getFromAddress()); templatedEmail.setSubject(getSubject(taskInstance, outcome)); templatedEmail.setHtml(true); templatedEmail.setTemplateAssetVerSpec(getTemplateSpec()); templatedEmail.setRuntimeContext(context); try { List<Address> recipients = getRecipientAddresses(outcome); List<Address> ccRecipients = getCcRecipientAddresses(outcome); if (templatedEmail.getTemplateBody().contains("${taskActionUrl}")) { // send individual e-mails for (Address recip : recipients) { String cuid = recip.toString().substring(0, recip.toString().indexOf('@')); String userIdentifier = MiniCrypter.encrypt(cuid); taskInstance.setUserIdentifier(userIdentifier); templatedEmail.setRecipients(new Address[]{recip}); templatedEmail.setCcRecipients(new Address[0]); try { templatedEmail.sendEmail(); } catch (MessagingException ex) { logger.severeException(ex.getMessage(), ex); // do not rethrow } } if (ccRecipients != null) { for (Address ccRecip : ccRecipients) { String cuid = ccRecip.toString().substring(0, ccRecip.toString().indexOf('@')); String userIdentifier = MiniCrypter.encrypt(cuid); taskInstance.setUserIdentifier(userIdentifier); templatedEmail.setRecipients(new Address[0]); templatedEmail.setCcRecipients(new Address[]{ccRecip}); try { templatedEmail.sendEmail(); } catch (MessagingException ex) { logger.severeException(ex.getMessage(), ex); // do not rethrow } } } } else { if ((recipients != null && !recipients.isEmpty()) || (ccRecipients != null && !ccRecipients.isEmpty())) { if (recipients != null) templatedEmail.setRecipients(recipients.toArray(new Address[0])); if (ccRecipients != null) templatedEmail.setCcRecipients(ccRecipients.toArray(new Address[0])); try { templatedEmail.sendEmail(); } catch (MessagingException ex) { logger.severeException(ex.getMessage(), ex); // do not rethrow } } else { logger.warn("WARNING: No email recipients for task " + context.getTaskInstanceId() + " " + outcome); } } } catch (Exception ex) { logger.severeException(ex.getMessage(), ex); throw new ObserverException(-1, ex.getMessage(), ex); } }
class class_name[name] begin[{] method[sendEmail, return_type[void], modifier[protected], parameter[context, outcome]] begin[{] local_variable[type[TaskInstance], taskInstance] local_variable[type[TemplatedEmail], templatedEmail] call[templatedEmail.setFromAddress, parameter[call[.getFromAddress, parameter[]]]] call[templatedEmail.setSubject, parameter[call[.getSubject, parameter[member[.taskInstance], member[.outcome]]]]] call[templatedEmail.setHtml, parameter[literal[true]]] call[templatedEmail.setTemplateAssetVerSpec, parameter[call[.getTemplateSpec, parameter[]]]] call[templatedEmail.setRuntimeContext, parameter[member[.context]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=outcome, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getRecipientAddresses, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=recipients)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Address, sub_type=None))], dimensions=[], name=List, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=outcome, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getCcRecipientAddresses, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=ccRecipients)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Address, sub_type=None))], dimensions=[], name=List, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=getTemplateBody, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="${taskActionUrl}")], member=contains, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=recipients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=recipients, selectors=[], type_arguments=None), operator=&&), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=ccRecipients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=ccRecipients, selectors=[], type_arguments=None), operator=&&), operator=||), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="WARNING: No email recipients for task "), operandr=MethodInvocation(arguments=[], member=getTaskInstanceId, postfix_operators=[], prefix_operators=[], qualifier=context, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" "), operator=+), operandr=MemberReference(member=outcome, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=recipients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Address, sub_type=None))], member=toArray, postfix_operators=[], prefix_operators=[], qualifier=recipients, selectors=[], type_arguments=None)], member=setRecipients, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ccRecipients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Address, sub_type=None))], member=toArray, postfix_operators=[], prefix_operators=[], qualifier=ccRecipients, selectors=[], type_arguments=None)], member=setCcRecipients, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None)), TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=sendEmail, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ex, selectors=[], type_arguments=None), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=severeException, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['MessagingException']))], finally_block=None, label=None, resources=None)]))]), label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=recip, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=recip, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='@')], member=indexOf, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=substring, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=cuid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=cuid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=encrypt, postfix_operators=[], prefix_operators=[], qualifier=MiniCrypter, selectors=[], type_arguments=None), name=userIdentifier)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=userIdentifier, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setUserIdentifier, postfix_operators=[], prefix_operators=[], qualifier=taskInstance, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=recip, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Address, sub_type=None))], member=setRecipients, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Address, sub_type=None))], member=setCcRecipients, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None), TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=sendEmail, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ex, selectors=[], type_arguments=None), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=severeException, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['MessagingException']))], finally_block=None, label=None, resources=None)]), control=EnhancedForControl(iterable=MemberReference(member=recipients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=recip)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Address, sub_type=None))), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ccRecipients, 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=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=ccRecip, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=ccRecip, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='@')], member=indexOf, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=substring, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=cuid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=cuid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=encrypt, postfix_operators=[], prefix_operators=[], qualifier=MiniCrypter, selectors=[], type_arguments=None), name=userIdentifier)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=userIdentifier, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setUserIdentifier, postfix_operators=[], prefix_operators=[], qualifier=taskInstance, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Address, sub_type=None))], member=setRecipients, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=ccRecip, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Address, sub_type=None))], member=setCcRecipients, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None), TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=sendEmail, postfix_operators=[], prefix_operators=[], qualifier=templatedEmail, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ex, selectors=[], type_arguments=None), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=severeException, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['MessagingException']))], finally_block=None, label=None, resources=None)]), control=EnhancedForControl(iterable=MemberReference(member=ccRecipients, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ccRecip)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Address, sub_type=None))), label=None)]))]))], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ex, selectors=[], type_arguments=None), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=severeException, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ex, selectors=[], type_arguments=None), MemberReference(member=ex, 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=ObserverException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[protected] Keyword[void] identifier[sendEmail] operator[SEP] identifier[TaskRuntimeContext] identifier[context] , identifier[String] identifier[outcome] operator[SEP] Keyword[throws] identifier[ObserverException] { identifier[TaskInstance] identifier[taskInstance] operator[=] identifier[context] operator[SEP] identifier[getTaskInstance] operator[SEP] operator[SEP] operator[SEP] identifier[TemplatedEmail] identifier[templatedEmail] operator[=] Keyword[new] identifier[TemplatedEmail] operator[SEP] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setFromAddress] operator[SEP] identifier[getFromAddress] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setSubject] operator[SEP] identifier[getSubject] operator[SEP] identifier[taskInstance] , identifier[outcome] operator[SEP] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setHtml] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setTemplateAssetVerSpec] operator[SEP] identifier[getTemplateSpec] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setRuntimeContext] operator[SEP] identifier[context] operator[SEP] operator[SEP] Keyword[try] { identifier[List] operator[<] identifier[Address] operator[>] identifier[recipients] operator[=] identifier[getRecipientAddresses] operator[SEP] identifier[outcome] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Address] operator[>] identifier[ccRecipients] operator[=] identifier[getCcRecipientAddresses] operator[SEP] identifier[outcome] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[getTemplateBody] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Address] identifier[recip] operator[:] identifier[recipients] operator[SEP] { identifier[String] identifier[cuid] operator[=] identifier[recip] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[recip] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[userIdentifier] operator[=] identifier[MiniCrypter] operator[SEP] identifier[encrypt] operator[SEP] identifier[cuid] operator[SEP] operator[SEP] identifier[taskInstance] operator[SEP] identifier[setUserIdentifier] operator[SEP] identifier[userIdentifier] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setRecipients] operator[SEP] Keyword[new] identifier[Address] operator[SEP] operator[SEP] { identifier[recip] } operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setCcRecipients] operator[SEP] Keyword[new] identifier[Address] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[templatedEmail] operator[SEP] identifier[sendEmail] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[MessagingException] identifier[ex] operator[SEP] { identifier[logger] operator[SEP] identifier[severeException] operator[SEP] identifier[ex] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[ex] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[ccRecipients] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[Address] identifier[ccRecip] operator[:] identifier[ccRecipients] operator[SEP] { identifier[String] identifier[cuid] operator[=] identifier[ccRecip] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[ccRecip] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[userIdentifier] operator[=] identifier[MiniCrypter] operator[SEP] identifier[encrypt] operator[SEP] identifier[cuid] operator[SEP] operator[SEP] identifier[taskInstance] operator[SEP] identifier[setUserIdentifier] operator[SEP] identifier[userIdentifier] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setRecipients] operator[SEP] Keyword[new] identifier[Address] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setCcRecipients] operator[SEP] Keyword[new] identifier[Address] operator[SEP] operator[SEP] { identifier[ccRecip] } operator[SEP] operator[SEP] Keyword[try] { identifier[templatedEmail] operator[SEP] identifier[sendEmail] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[MessagingException] identifier[ex] operator[SEP] { identifier[logger] operator[SEP] identifier[severeException] operator[SEP] identifier[ex] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[ex] operator[SEP] operator[SEP] } } } } Keyword[else] { Keyword[if] operator[SEP] operator[SEP] identifier[recipients] operator[!=] Other[null] operator[&&] operator[!] identifier[recipients] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[ccRecipients] operator[!=] Other[null] operator[&&] operator[!] identifier[ccRecipients] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[recipients] operator[!=] Other[null] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setRecipients] operator[SEP] identifier[recipients] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[Address] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ccRecipients] operator[!=] Other[null] operator[SEP] identifier[templatedEmail] operator[SEP] identifier[setCcRecipients] operator[SEP] identifier[ccRecipients] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[Address] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[templatedEmail] operator[SEP] identifier[sendEmail] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[MessagingException] identifier[ex] operator[SEP] { identifier[logger] operator[SEP] identifier[severeException] operator[SEP] identifier[ex] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[ex] operator[SEP] operator[SEP] } } Keyword[else] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] identifier[context] operator[SEP] identifier[getTaskInstanceId] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[outcome] operator[SEP] operator[SEP] } } } Keyword[catch] operator[SEP] identifier[Exception] identifier[ex] operator[SEP] { identifier[logger] operator[SEP] identifier[severeException] operator[SEP] identifier[ex] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[ex] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[ObserverException] operator[SEP] operator[-] Other[1] , identifier[ex] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[ex] operator[SEP] operator[SEP] } }
protected Operation getOperation(KuduTable table, int op) throws UnsupportedOperationException { Operation operation = null; switch (op) { case OperationType.INSERT_CODE: operation = table.newInsert(); break; case OperationType.UPSERT_CODE: operation = table.newUpsert(); break; case OperationType.UPDATE_CODE: operation = table.newUpdate(); break; case OperationType.DELETE_CODE: operation = table.newDelete(); break; default: LOG.error("Operation {} not supported", op); throw new UnsupportedOperationException(String.format("Unsupported Operation: %s", op)); } return operation; }
class class_name[name] begin[{] method[getOperation, return_type[type[Operation]], modifier[protected], parameter[table, op]] begin[{] local_variable[type[Operation], operation] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=INSERT_CODE, postfix_operators=[], prefix_operators=[], qualifier=OperationType, selectors=[])], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=operation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=newInsert, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=UPSERT_CODE, postfix_operators=[], prefix_operators=[], qualifier=OperationType, selectors=[])], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=operation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=newUpsert, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=UPDATE_CODE, postfix_operators=[], prefix_operators=[], qualifier=OperationType, selectors=[])], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=operation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=newUpdate, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=DELETE_CODE, postfix_operators=[], prefix_operators=[], qualifier=OperationType, selectors=[])], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=operation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=newDelete, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Operation {} not supported"), MemberReference(member=op, 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=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unsupported Operation: %s"), MemberReference(member=op, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=UnsupportedOperationException, sub_type=None)), label=None)])], expression=MemberReference(member=op, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) return[member[.operation]] end[}] END[}]
Keyword[protected] identifier[Operation] identifier[getOperation] operator[SEP] identifier[KuduTable] identifier[table] , Keyword[int] identifier[op] operator[SEP] Keyword[throws] identifier[UnsupportedOperationException] { identifier[Operation] identifier[operation] operator[=] Other[null] operator[SEP] Keyword[switch] operator[SEP] identifier[op] operator[SEP] { Keyword[case] identifier[OperationType] operator[SEP] identifier[INSERT_CODE] operator[:] identifier[operation] operator[=] identifier[table] operator[SEP] identifier[newInsert] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[OperationType] operator[SEP] identifier[UPSERT_CODE] operator[:] identifier[operation] operator[=] identifier[table] operator[SEP] identifier[newUpsert] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[OperationType] operator[SEP] identifier[UPDATE_CODE] operator[:] identifier[operation] operator[=] identifier[table] operator[SEP] identifier[newUpdate] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[OperationType] operator[SEP] identifier[DELETE_CODE] operator[:] identifier[operation] operator[=] identifier[table] operator[SEP] identifier[newDelete] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[op] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[op] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[operation] operator[SEP] }
public ProxyDataSourceBuilder logSlowQueryByJUL(long thresholdTime, TimeUnit timeUnit, Level logLevel, String loggerName) { this.createJulSlowQueryListener = true; this.slowQueryThreshold = thresholdTime; this.slowQueryTimeUnit = timeUnit; this.julSlowQueryLogLevel = logLevel; this.julSlowQueryLoggerName = loggerName; return this; }
class class_name[name] begin[{] method[logSlowQueryByJUL, return_type[type[ProxyDataSourceBuilder]], modifier[public], parameter[thresholdTime, timeUnit, logLevel, loggerName]] begin[{] assign[THIS[member[None.createJulSlowQueryListener]], literal[true]] assign[THIS[member[None.slowQueryThreshold]], member[.thresholdTime]] assign[THIS[member[None.slowQueryTimeUnit]], member[.timeUnit]] assign[THIS[member[None.julSlowQueryLogLevel]], member[.logLevel]] assign[THIS[member[None.julSlowQueryLoggerName]], member[.loggerName]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[ProxyDataSourceBuilder] identifier[logSlowQueryByJUL] operator[SEP] Keyword[long] identifier[thresholdTime] , identifier[TimeUnit] identifier[timeUnit] , identifier[Level] identifier[logLevel] , identifier[String] identifier[loggerName] operator[SEP] { Keyword[this] operator[SEP] identifier[createJulSlowQueryListener] operator[=] literal[boolean] operator[SEP] Keyword[this] operator[SEP] identifier[slowQueryThreshold] operator[=] identifier[thresholdTime] operator[SEP] Keyword[this] operator[SEP] identifier[slowQueryTimeUnit] operator[=] identifier[timeUnit] operator[SEP] Keyword[this] operator[SEP] identifier[julSlowQueryLogLevel] operator[=] identifier[logLevel] operator[SEP] Keyword[this] operator[SEP] identifier[julSlowQueryLoggerName] operator[=] identifier[loggerName] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
@Override public CreateOpenIDConnectProviderResult createOpenIDConnectProvider(CreateOpenIDConnectProviderRequest request) { request = beforeClientExecution(request); return executeCreateOpenIDConnectProvider(request); }
class class_name[name] begin[{] method[createOpenIDConnectProvider, return_type[type[CreateOpenIDConnectProviderResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateOpenIDConnectProvider, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CreateOpenIDConnectProviderResult] identifier[createOpenIDConnectProvider] operator[SEP] identifier[CreateOpenIDConnectProviderRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeCreateOpenIDConnectProvider] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
private void addDirectory(File root, File directory, String targetPath, ZipOutputStream zos) throws IOException { String prefix = targetPath; if (!prefix.isEmpty() && !prefix.endsWith("/")) { prefix += "/"; } // directory entries are required, or else bundle classpath may be // broken if (!directory.equals(root)) { String path = normalizePath(root, directory); ZipEntry jarEntry = new ZipEntry(prefix + path + "/"); jarOutputStream.putNextEntry(jarEntry); } File[] children = directory.listFiles(); // loop through dirList, and zip the files for (File child : children) { if (child.isDirectory()) { addDirectory(root, child, prefix, jarOutputStream); } else { addFile(root, child, prefix, jarOutputStream); } } }
class class_name[name] begin[{] method[addDirectory, return_type[void], modifier[private], parameter[root, directory, targetPath, zos]] begin[{] local_variable[type[String], prefix] if[binary_operation[call[prefix.isEmpty, parameter[]], &&, call[prefix.endsWith, parameter[literal["/"]]]]] begin[{] assign[member[.prefix], literal["/"]] else begin[{] None end[}] if[call[directory.equals, parameter[member[.root]]]] begin[{] local_variable[type[String], path] local_variable[type[ZipEntry], jarEntry] call[jarOutputStream.putNextEntry, parameter[member[.jarEntry]]] else begin[{] None end[}] local_variable[type[File], children] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=isDirectory, postfix_operators=[], prefix_operators=[], qualifier=child, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=child, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=jarOutputStream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addFile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=child, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=jarOutputStream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addDirectory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=children, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=child)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=File, sub_type=None))), label=None) end[}] END[}]
Keyword[private] Keyword[void] identifier[addDirectory] operator[SEP] identifier[File] identifier[root] , identifier[File] identifier[directory] , identifier[String] identifier[targetPath] , identifier[ZipOutputStream] identifier[zos] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[prefix] operator[=] identifier[targetPath] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[prefix] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[&&] operator[!] identifier[prefix] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[prefix] operator[+=] literal[String] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[directory] operator[SEP] identifier[equals] operator[SEP] identifier[root] operator[SEP] operator[SEP] { identifier[String] identifier[path] operator[=] identifier[normalizePath] operator[SEP] identifier[root] , identifier[directory] operator[SEP] operator[SEP] identifier[ZipEntry] identifier[jarEntry] operator[=] Keyword[new] identifier[ZipEntry] operator[SEP] identifier[prefix] operator[+] identifier[path] operator[+] literal[String] operator[SEP] operator[SEP] identifier[jarOutputStream] operator[SEP] identifier[putNextEntry] operator[SEP] identifier[jarEntry] operator[SEP] operator[SEP] } identifier[File] operator[SEP] operator[SEP] identifier[children] operator[=] identifier[directory] operator[SEP] identifier[listFiles] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[File] identifier[child] operator[:] identifier[children] operator[SEP] { Keyword[if] operator[SEP] identifier[child] operator[SEP] identifier[isDirectory] operator[SEP] operator[SEP] operator[SEP] { identifier[addDirectory] operator[SEP] identifier[root] , identifier[child] , identifier[prefix] , identifier[jarOutputStream] operator[SEP] operator[SEP] } Keyword[else] { identifier[addFile] operator[SEP] identifier[root] , identifier[child] , identifier[prefix] , identifier[jarOutputStream] operator[SEP] operator[SEP] } } }
public final void setCancelable(final Cancelable cancelable) { if (SwingUtilities.isEventDispatchThread()) { setCancelableIntern(cancelable); } else { try { SwingUtilities.invokeLater(new Runnable() { public void run() { setCancelableIntern(cancelable); } }); } catch (final Exception ex) { ignore(); } } }
class class_name[name] begin[{] method[setCancelable, return_type[void], modifier[final public], parameter[cancelable]] begin[{] if[call[SwingUtilities.isEventDispatchThread, parameter[]]] begin[{] call[.setCancelableIntern, parameter[member[.cancelable]]] else begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cancelable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setCancelableIntern, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=run, parameters=[], return_type=None, throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Runnable, sub_type=None))], member=invokeLater, postfix_operators=[], prefix_operators=[], qualifier=SwingUtilities, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=ignore, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[setCancelable] operator[SEP] Keyword[final] identifier[Cancelable] identifier[cancelable] operator[SEP] { Keyword[if] operator[SEP] identifier[SwingUtilities] operator[SEP] identifier[isEventDispatchThread] operator[SEP] operator[SEP] operator[SEP] { identifier[setCancelableIntern] operator[SEP] identifier[cancelable] operator[SEP] operator[SEP] } Keyword[else] { Keyword[try] { identifier[SwingUtilities] operator[SEP] identifier[invokeLater] operator[SEP] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] { Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[setCancelableIntern] operator[SEP] identifier[cancelable] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[Exception] identifier[ex] operator[SEP] { identifier[ignore] operator[SEP] operator[SEP] operator[SEP] } } }
public static DZcs cs_multiply(DZcs A, DZcs B) { int p, j, nz = 0, anz, Cp[], Ci[], Bp[], m, n, bnz, w[], Bi[] ; DZcsa x, Bx = new DZcsa(), Cx = new DZcsa() ; boolean values ; DZcs C ; if (!CS_CSC (A) || !CS_CSC (B)) return (null) ; /* check inputs */ if (A.n != B.m) return (null) ; m = A.m ; anz = A.p [A.n] ; n = B.n ; Bp = B.p ; Bi = B.i ; Bx.x = B.x ; bnz = Bp [n] ; w = new int [m] ; /* get workspace */ values = (A.x != null) && (Bx.x != null) ; x = values ? new DZcsa (m) : null ; /* get workspace */ C = cs_spalloc (m, n, anz + bnz, values, false); /* allocate result */ if (C == null || w == null || (values && x == null)) return (cs_done (C, w, x, false)) ; Cp = C.p ; for (j = 0 ; j < n ; j++) { if (nz + m > C.nzmax && !cs_sprealloc (C, 2 * (C.nzmax) + m)) { return (cs_done (C, w, x, false)) ; /* out of memory */ } Ci = C.i ; Cx.x = C.x ; /* C.i and C.x may be reallocated */ Cp [j] = nz ; /* column j of C starts here */ for (p = Bp [j]; p < Bp [j+1] ; p++) { nz = cs_scatter (A, Bi[p], (Bx.x != null) ? Bx.get(p) : cs_cone(), w, x, j+1, C, nz) ; } if (values) for (p = Cp [j]; p < nz; p++) Cx.set(p, x.get(Ci [p])) ; } Cp [n] = nz ; /* finalize the last column of C */ cs_sprealloc (C, 0); /* remove extra space from C */ return (cs_done (C, w, x, true)) ; /* success; free workspace, return C */ }
class class_name[name] begin[{] method[cs_multiply, return_type[type[DZcs]], modifier[public static], parameter[A, B]] begin[{] local_variable[type[int], p] local_variable[type[DZcsa], x] local_variable[type[boolean], values] local_variable[type[DZcs], C] if[binary_operation[call[.CS_CSC, parameter[member[.A]]], ||, call[.CS_CSC, parameter[member[.B]]]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[member[A.n], !=, member[B.m]]] begin[{] return[literal[null]] else begin[{] None end[}] assign[member[.m], member[A.m]] assign[member[.anz], member[A.p]] assign[member[.n], member[B.n]] assign[member[.Bp], member[B.p]] assign[member[.Bi], member[B.i]] assign[member[Bx.x], member[B.x]] assign[member[.bnz], member[.Bp]] assign[member[.w], ArrayCreator(dimensions=[MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] assign[member[.values], binary_operation[binary_operation[member[A.x], !=, literal[null]], &&, binary_operation[member[Bx.x], !=, literal[null]]]] assign[member[.x], TernaryExpression(condition=MemberReference(member=values, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=ClassCreator(arguments=[MemberReference(member=m, 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=DZcsa, sub_type=None)))] assign[member[.C], call[.cs_spalloc, parameter[member[.m], member[.n], binary_operation[member[.anz], +, member[.bnz]], member[.values], literal[false]]]] if[binary_operation[binary_operation[binary_operation[member[.C], ==, literal[null]], ||, binary_operation[member[.w], ==, literal[null]]], ||, binary_operation[member[.values], &&, binary_operation[member[.x], ==, literal[null]]]]] begin[{] return[call[.cs_done, parameter[member[.C], member[.w], member[.x], literal[false]]]] else begin[{] None end[}] assign[member[.Cp], member[C.p]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=nz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=MemberReference(member=nzmax, postfix_operators=[], prefix_operators=[], qualifier=C, selectors=[]), operator=>), operandr=MethodInvocation(arguments=[MemberReference(member=C, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operandr=Cast(expression=MemberReference(member=m, postfix_operators=[], prefix_operators=['+'], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=C, sub_type=ReferenceType(arguments=None, dimensions=None, name=nzmax, sub_type=None))), operator=*)], member=cs_sprealloc, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=C, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=cs_done, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Ci, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=C, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=Cx, selectors=[]), type==, value=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=C, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Cp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=nz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=nz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=A, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Bi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=Bx, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=MethodInvocation(arguments=[], member=cs_cone, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), if_true=MethodInvocation(arguments=[MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=Bx, selectors=[], type_arguments=None)), MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), MemberReference(member=C, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=nz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=cs_scatter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Bp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=Bp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]))], update=[MemberReference(member=p, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), IfStatement(condition=MemberReference(member=values, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=Ci, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=get, postfix_operators=[], prefix_operators=[], qualifier=x, selectors=[], type_arguments=None)], member=set, postfix_operators=[], prefix_operators=[], qualifier=Cx, selectors=[], type_arguments=None), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=nz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=[Assignment(expressionl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=Cp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]))], update=[MemberReference(member=p, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=[Assignment(expressionl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) assign[member[.Cp], member[.nz]] call[.cs_sprealloc, parameter[member[.C], literal[0]]] return[call[.cs_done, parameter[member[.C], member[.w], member[.x], literal[true]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DZcs] identifier[cs_multiply] operator[SEP] identifier[DZcs] identifier[A] , identifier[DZcs] identifier[B] operator[SEP] { Keyword[int] identifier[p] , identifier[j] , identifier[nz] operator[=] Other[0] , identifier[anz] , identifier[Cp] operator[SEP] operator[SEP] , identifier[Ci] operator[SEP] operator[SEP] , identifier[Bp] operator[SEP] operator[SEP] , identifier[m] , identifier[n] , identifier[bnz] , identifier[w] operator[SEP] operator[SEP] , identifier[Bi] operator[SEP] operator[SEP] operator[SEP] identifier[DZcsa] identifier[x] , identifier[Bx] operator[=] Keyword[new] identifier[DZcsa] operator[SEP] operator[SEP] , identifier[Cx] operator[=] Keyword[new] identifier[DZcsa] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[values] operator[SEP] identifier[DZcs] identifier[C] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[CS_CSC] operator[SEP] identifier[A] operator[SEP] operator[||] operator[!] identifier[CS_CSC] operator[SEP] identifier[B] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[A] operator[SEP] identifier[n] operator[!=] identifier[B] operator[SEP] identifier[m] operator[SEP] Keyword[return] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[m] operator[=] identifier[A] operator[SEP] identifier[m] operator[SEP] identifier[anz] operator[=] identifier[A] operator[SEP] identifier[p] operator[SEP] identifier[A] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[n] operator[=] identifier[B] operator[SEP] identifier[n] operator[SEP] identifier[Bp] operator[=] identifier[B] operator[SEP] identifier[p] operator[SEP] identifier[Bi] operator[=] identifier[B] operator[SEP] identifier[i] operator[SEP] identifier[Bx] operator[SEP] identifier[x] operator[=] identifier[B] operator[SEP] identifier[x] operator[SEP] identifier[bnz] operator[=] identifier[Bp] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[w] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[values] operator[=] operator[SEP] identifier[A] operator[SEP] identifier[x] operator[!=] Other[null] operator[SEP] operator[&&] operator[SEP] identifier[Bx] operator[SEP] identifier[x] operator[!=] Other[null] operator[SEP] operator[SEP] identifier[x] operator[=] identifier[values] operator[?] Keyword[new] identifier[DZcsa] operator[SEP] identifier[m] operator[SEP] operator[:] Other[null] operator[SEP] identifier[C] operator[=] identifier[cs_spalloc] operator[SEP] identifier[m] , identifier[n] , identifier[anz] operator[+] identifier[bnz] , identifier[values] , literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[C] operator[==] Other[null] operator[||] identifier[w] operator[==] Other[null] operator[||] operator[SEP] identifier[values] operator[&&] identifier[x] operator[==] Other[null] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[cs_done] operator[SEP] identifier[C] , identifier[w] , identifier[x] , literal[boolean] operator[SEP] operator[SEP] operator[SEP] identifier[Cp] operator[=] identifier[C] operator[SEP] identifier[p] operator[SEP] Keyword[for] operator[SEP] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[n] operator[SEP] identifier[j] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[nz] operator[+] identifier[m] operator[>] identifier[C] operator[SEP] identifier[nzmax] operator[&&] operator[!] identifier[cs_sprealloc] operator[SEP] identifier[C] , Other[2] operator[*] operator[SEP] identifier[C] operator[SEP] identifier[nzmax] operator[SEP] operator[+] identifier[m] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[cs_done] operator[SEP] identifier[C] , identifier[w] , identifier[x] , literal[boolean] operator[SEP] operator[SEP] operator[SEP] } identifier[Ci] operator[=] identifier[C] operator[SEP] identifier[i] operator[SEP] identifier[Cx] operator[SEP] identifier[x] operator[=] identifier[C] operator[SEP] identifier[x] operator[SEP] identifier[Cp] operator[SEP] identifier[j] operator[SEP] operator[=] identifier[nz] operator[SEP] Keyword[for] operator[SEP] identifier[p] operator[=] identifier[Bp] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[p] operator[<] identifier[Bp] operator[SEP] identifier[j] operator[+] Other[1] operator[SEP] operator[SEP] identifier[p] operator[++] operator[SEP] { identifier[nz] operator[=] identifier[cs_scatter] operator[SEP] identifier[A] , identifier[Bi] operator[SEP] identifier[p] operator[SEP] , operator[SEP] identifier[Bx] operator[SEP] identifier[x] operator[!=] Other[null] operator[SEP] operator[?] identifier[Bx] operator[SEP] identifier[get] operator[SEP] identifier[p] operator[SEP] operator[:] identifier[cs_cone] operator[SEP] operator[SEP] , identifier[w] , identifier[x] , identifier[j] operator[+] Other[1] , identifier[C] , identifier[nz] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[values] operator[SEP] Keyword[for] operator[SEP] identifier[p] operator[=] identifier[Cp] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[p] operator[<] identifier[nz] operator[SEP] identifier[p] operator[++] operator[SEP] identifier[Cx] operator[SEP] identifier[set] operator[SEP] identifier[p] , identifier[x] operator[SEP] identifier[get] operator[SEP] identifier[Ci] operator[SEP] identifier[p] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[Cp] operator[SEP] identifier[n] operator[SEP] operator[=] identifier[nz] operator[SEP] identifier[cs_sprealloc] operator[SEP] identifier[C] , Other[0] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[cs_done] operator[SEP] identifier[C] , identifier[w] , identifier[x] , literal[boolean] operator[SEP] operator[SEP] operator[SEP] }
private String readAnnotationValue(final PetiteInject annotation) { String value = annotation.value().trim(); if (value.isEmpty()) { return null; } return value; }
class class_name[name] begin[{] method[readAnnotationValue, return_type[type[String]], modifier[private], parameter[annotation]] begin[{] local_variable[type[String], value] if[call[value.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] return[member[.value]] end[}] END[}]
Keyword[private] identifier[String] identifier[readAnnotationValue] operator[SEP] Keyword[final] identifier[PetiteInject] identifier[annotation] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[annotation] operator[SEP] identifier[value] operator[SEP] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[value] operator[SEP] }
protected void exportGroups(Element parent, CmsOrganizationalUnit orgunit) throws CmsImportExportException, SAXException { try { I_CmsReport report = getReport(); List<CmsGroup> allGroups = OpenCms.getOrgUnitManager().getGroups(getCms(), orgunit.getName(), false); for (int i = 0, l = allGroups.size(); i < l; i++) { CmsGroup group = allGroups.get(i); report.print( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(i + 1), String.valueOf(l)), I_CmsReport.FORMAT_NOTE); report.print(Messages.get().container(Messages.RPT_EXPORT_GROUP_0), I_CmsReport.FORMAT_NOTE); report.print( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, group.getName())); report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); exportGroup(parent, group); report.println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); } } catch (CmsImportExportException e) { throw e; } catch (CmsException e) { if (LOG.isDebugEnabled()) { LOG.debug(e.getLocalizedMessage(), e); } throw new CmsImportExportException(e.getMessageContainer(), e); } }
class class_name[name] begin[{] method[exportGroups, return_type[void], modifier[protected], parameter[parent, orgunit]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getReport, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=report)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=I_CmsReport, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getOrgUnitManager, postfix_operators=[], prefix_operators=[], qualifier=OpenCms, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getCms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=orgunit, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=getGroups, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=allGroups)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=CmsGroup, sub_type=None))], dimensions=[], name=List, sub_type=None)), 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=allGroups, selectors=[], type_arguments=None), name=group)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CmsGroup, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=RPT_SUCCESSION_2, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[]), MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=container, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=FORMAT_NOTE, postfix_operators=[], prefix_operators=[], qualifier=I_CmsReport, selectors=[])], member=print, postfix_operators=[], prefix_operators=[], qualifier=report, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=RPT_EXPORT_GROUP_0, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[])], member=container, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=FORMAT_NOTE, postfix_operators=[], prefix_operators=[], qualifier=I_CmsReport, selectors=[])], member=print, postfix_operators=[], prefix_operators=[], qualifier=report, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=RPT_ARGUMENT_1, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[]), MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=group, selectors=[], type_arguments=None)], member=container, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=print, postfix_operators=[], prefix_operators=[], qualifier=report, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=RPT_DOTS_0, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[])], member=container, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=print, postfix_operators=[], prefix_operators=[], qualifier=report, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=parent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=group, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=exportGroup, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=RPT_OK_0, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.report.Messages, selectors=[])], member=container, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=FORMAT_OK, postfix_operators=[], prefix_operators=[], qualifier=I_CmsReport, selectors=[])], member=println, postfix_operators=[], prefix_operators=[], qualifier=report, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=l, 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), VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=allGroups, selectors=[], type_arguments=None), name=l)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['CmsImportExportException'])), CatchClause(block=[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=[MethodInvocation(arguments=[], member=getLocalizedMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)])), ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getMessageContainer, postfix_operators=[], prefix_operators=[], qualifier=e, 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=CmsImportExportException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['CmsException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[protected] Keyword[void] identifier[exportGroups] operator[SEP] identifier[Element] identifier[parent] , identifier[CmsOrganizationalUnit] identifier[orgunit] operator[SEP] Keyword[throws] identifier[CmsImportExportException] , identifier[SAXException] { Keyword[try] { identifier[I_CmsReport] identifier[report] operator[=] identifier[getReport] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[CmsGroup] operator[>] identifier[allGroups] operator[=] identifier[OpenCms] operator[SEP] identifier[getOrgUnitManager] operator[SEP] operator[SEP] operator[SEP] identifier[getGroups] operator[SEP] identifier[getCms] operator[SEP] operator[SEP] , identifier[orgunit] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[boolean] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] , identifier[l] operator[=] identifier[allGroups] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[<] identifier[l] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[CmsGroup] identifier[group] operator[=] identifier[allGroups] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[report] operator[SEP] identifier[print] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[RPT_SUCCESSION_2] , identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] , identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[l] operator[SEP] operator[SEP] , identifier[I_CmsReport] operator[SEP] identifier[FORMAT_NOTE] operator[SEP] operator[SEP] identifier[report] operator[SEP] identifier[print] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[Messages] operator[SEP] identifier[RPT_EXPORT_GROUP_0] operator[SEP] , identifier[I_CmsReport] operator[SEP] identifier[FORMAT_NOTE] operator[SEP] operator[SEP] identifier[report] operator[SEP] identifier[print] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[RPT_ARGUMENT_1] , identifier[group] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[report] operator[SEP] identifier[print] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[RPT_DOTS_0] operator[SEP] operator[SEP] operator[SEP] identifier[exportGroup] operator[SEP] identifier[parent] , identifier[group] operator[SEP] operator[SEP] identifier[report] operator[SEP] identifier[println] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[report] operator[SEP] identifier[Messages] operator[SEP] identifier[RPT_OK_0] operator[SEP] , identifier[I_CmsReport] operator[SEP] identifier[FORMAT_OK] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[CmsImportExportException] identifier[e] operator[SEP] { Keyword[throw] identifier[e] operator[SEP] } Keyword[catch] operator[SEP] identifier[CmsException] identifier[e] 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] identifier[e] operator[SEP] identifier[getLocalizedMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } Keyword[throw] Keyword[new] identifier[CmsImportExportException] operator[SEP] identifier[e] operator[SEP] identifier[getMessageContainer] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public String getFirstValue() { CharSequence firstValue; synchronized (values) { if (values.isEmpty()) { return null; } firstValue = values.get(0); } return firstValue.toString(); }
class class_name[name] begin[{] method[getFirstValue, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[CharSequence], firstValue] SYNCHRONIZED[member[.values]] BEGIN[{] if[call[values.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] assign[member[.firstValue], call[values.get, parameter[literal[0]]]] END[}] return[call[firstValue.toString, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[getFirstValue] operator[SEP] operator[SEP] { identifier[CharSequence] identifier[firstValue] operator[SEP] Keyword[synchronized] operator[SEP] identifier[values] operator[SEP] { Keyword[if] operator[SEP] identifier[values] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[firstValue] operator[=] identifier[values] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] } Keyword[return] identifier[firstValue] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public static void handleSetPropertyExpression(Object bean, String prop, String expression, PageContext pageContext, ProtectedFunctionMapper functionMapper ) throws JasperException { try { Method method = getWriteMethod(bean.getClass(), prop); method.invoke(bean, new Object[] { PageContextImpl.evaluateExpression( expression, method.getParameterTypes()[0], pageContext, functionMapper) }); } catch (Exception ex) { throw new JasperException(ex); } }
class class_name[name] begin[{] method[handleSetPropertyExpression, return_type[void], modifier[public static], parameter[bean, prop, expression, pageContext, functionMapper]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=bean, selectors=[], type_arguments=None), MemberReference(member=prop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getWriteMethod, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=method)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Method, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=bean, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MethodInvocation(arguments=[MemberReference(member=expression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getParameterTypes, postfix_operators=[], prefix_operators=[], qualifier=method, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], type_arguments=None), MemberReference(member=pageContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=functionMapper, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=evaluateExpression, postfix_operators=[], prefix_operators=[], qualifier=PageContextImpl, selectors=[], type_arguments=None)]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Object, sub_type=None))], member=invoke, postfix_operators=[], prefix_operators=[], qualifier=method, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=ex, 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=JasperException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[handleSetPropertyExpression] operator[SEP] identifier[Object] identifier[bean] , identifier[String] identifier[prop] , identifier[String] identifier[expression] , identifier[PageContext] identifier[pageContext] , identifier[ProtectedFunctionMapper] identifier[functionMapper] operator[SEP] Keyword[throws] identifier[JasperException] { Keyword[try] { identifier[Method] identifier[method] operator[=] identifier[getWriteMethod] operator[SEP] identifier[bean] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] , identifier[prop] operator[SEP] operator[SEP] identifier[method] operator[SEP] identifier[invoke] operator[SEP] identifier[bean] , Keyword[new] identifier[Object] operator[SEP] operator[SEP] { identifier[PageContextImpl] operator[SEP] identifier[evaluateExpression] operator[SEP] identifier[expression] , identifier[method] operator[SEP] identifier[getParameterTypes] operator[SEP] operator[SEP] operator[SEP] Other[0] operator[SEP] , identifier[pageContext] , identifier[functionMapper] operator[SEP] } operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ex] operator[SEP] { Keyword[throw] Keyword[new] identifier[JasperException] operator[SEP] identifier[ex] operator[SEP] operator[SEP] } }
public String getString(int index, String otherwise) { Object o = list.get(index); if (o == null) return otherwise; if (o instanceof String) return (String) o; if (o instanceof byte[]) return encodeBinary((byte[])o); throw new JsonException("not a string"); }
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[public], parameter[index, otherwise]] begin[{] local_variable[type[Object], o] if[binary_operation[member[.o], ==, literal[null]]] begin[{] return[member[.otherwise]] else begin[{] None end[}] if[binary_operation[member[.o], instanceof, type[String]]] begin[{] return[Cast(expression=MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))] else begin[{] None end[}] if[binary_operation[member[.o], instanceof, type[byte]]] begin[{] return[call[.encodeBinary, parameter[Cast(expression=MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[None], name=byte))]]] else begin[{] None end[}] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="not a string")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JsonException, sub_type=None)), label=None) end[}] END[}]
Keyword[public] identifier[String] identifier[getString] operator[SEP] Keyword[int] identifier[index] , identifier[String] identifier[otherwise] operator[SEP] { identifier[Object] identifier[o] operator[=] identifier[list] operator[SEP] identifier[get] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[o] operator[==] Other[null] operator[SEP] Keyword[return] identifier[otherwise] operator[SEP] Keyword[if] operator[SEP] identifier[o] Keyword[instanceof] identifier[String] operator[SEP] Keyword[return] operator[SEP] identifier[String] operator[SEP] identifier[o] operator[SEP] Keyword[if] operator[SEP] identifier[o] Keyword[instanceof] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[encodeBinary] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] identifier[o] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[JsonException] operator[SEP] literal[String] operator[SEP] operator[SEP] }
public static java.util.List<com.liferay.commerce.model.CommerceAddressRestriction> getCommerceAddressRestrictions( int start, int end) { return getService().getCommerceAddressRestrictions(start, end); }
class class_name[name] begin[{] method[getCommerceAddressRestrictions, return_type[type[java]], modifier[public static], parameter[start, end]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[model] operator[SEP] identifier[CommerceAddressRestriction] operator[>] identifier[getCommerceAddressRestrictions] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] identifier[getService] operator[SEP] operator[SEP] operator[SEP] identifier[getCommerceAddressRestrictions] operator[SEP] identifier[start] , identifier[end] operator[SEP] operator[SEP] }
static String parseContentType(String contentType) throws IOException { if (contentType.indexOf(System.getProperty("line.separator")) > 0) { BufferedReader reader = new BufferedReader(new StringReader(contentType)); try { String plainContentType = reader.readLine(); if (plainContentType != null && plainContentType.trim().endsWith(";")) { plainContentType = plainContentType.trim().substring(0, plainContentType.length() - 1); } return plainContentType; } finally { try { reader.close(); } catch (IOException e) { log.warn("Failed to close reader", e); } } } return contentType; }
class class_name[name] begin[{] method[parseContentType, return_type[type[String]], modifier[static], parameter[contentType]] begin[{] if[binary_operation[call[contentType.indexOf, parameter[call[System.getProperty, parameter[literal["line.separator"]]]]], >, literal[0]]] begin[{] local_variable[type[BufferedReader], reader] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=readLine, postfix_operators=[], prefix_operators=[], qualifier=reader, selectors=[], type_arguments=None), name=plainContentType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=plainContentType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[], member=trim, postfix_operators=[], prefix_operators=[], qualifier=plainContentType, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=";")], member=endsWith, 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=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=plainContentType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=trim, postfix_operators=[], prefix_operators=[], qualifier=plainContentType, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=plainContentType, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=substring, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), label=None)])), ReturnStatement(expression=MemberReference(member=plainContentType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=None, finally_block=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=reader, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed to close reader"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=warn, postfix_operators=[], prefix_operators=[], qualifier=log, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None)], label=None, resources=None) else begin[{] None end[}] return[member[.contentType]] end[}] END[}]
Keyword[static] identifier[String] identifier[parseContentType] operator[SEP] identifier[String] identifier[contentType] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[contentType] operator[SEP] identifier[indexOf] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[BufferedReader] identifier[reader] operator[=] Keyword[new] identifier[BufferedReader] operator[SEP] Keyword[new] identifier[StringReader] operator[SEP] identifier[contentType] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[String] identifier[plainContentType] operator[=] identifier[reader] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[plainContentType] operator[!=] Other[null] operator[&&] identifier[plainContentType] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[plainContentType] operator[=] identifier[plainContentType] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[plainContentType] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] operator[SEP] } Keyword[return] identifier[plainContentType] operator[SEP] } Keyword[finally] { Keyword[try] { identifier[reader] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[log] operator[SEP] identifier[warn] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } } } Keyword[return] identifier[contentType] operator[SEP] }
public boolean matchContent(Fingerprint fp) { for (Tag tag : CONTENT_TAGS) { if (!getTag(tag).equals(fp.getTag(tag))) { return false; } } return true; }
class class_name[name] begin[{] method[matchContent, return_type[type[boolean]], modifier[public], parameter[fp]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=tag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getTag, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=tag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getTag, postfix_operators=[], prefix_operators=[], qualifier=fp, selectors=[], type_arguments=None)], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=CONTENT_TAGS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=tag)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Tag, sub_type=None))), label=None) return[literal[true]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[matchContent] operator[SEP] identifier[Fingerprint] identifier[fp] operator[SEP] { Keyword[for] operator[SEP] identifier[Tag] identifier[tag] operator[:] identifier[CONTENT_TAGS] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[getTag] operator[SEP] identifier[tag] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[fp] operator[SEP] identifier[getTag] operator[SEP] identifier[tag] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public void info(@Nullable final String message) { log(LogLevel.INFO, DEFAULT_EVENT, message, EMPTY_STRING_ARRAY, EMPTY_OBJECT_ARRAY, DEFAULT_THROWABLE); }
class class_name[name] begin[{] method[info, return_type[void], modifier[public], parameter[message]] begin[{] call[.log, parameter[member[LogLevel.INFO], member[.DEFAULT_EVENT], member[.message], member[.EMPTY_STRING_ARRAY], member[.EMPTY_OBJECT_ARRAY], member[.DEFAULT_THROWABLE]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[info] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[message] operator[SEP] { identifier[log] operator[SEP] identifier[LogLevel] operator[SEP] identifier[INFO] , identifier[DEFAULT_EVENT] , identifier[message] , identifier[EMPTY_STRING_ARRAY] , identifier[EMPTY_OBJECT_ARRAY] , identifier[DEFAULT_THROWABLE] operator[SEP] operator[SEP] }
public AutofitHelper setMaxTextSize(int unit, float size) { Context context = mTextView.getContext(); Resources r = Resources.getSystem(); if (context != null) { r = context.getResources(); } setRawMaxTextSize(TypedValue.applyDimension(unit, size, r.getDisplayMetrics())); return this; }
class class_name[name] begin[{] method[setMaxTextSize, return_type[type[AutofitHelper]], modifier[public], parameter[unit, size]] begin[{] local_variable[type[Context], context] local_variable[type[Resources], r] if[binary_operation[member[.context], !=, literal[null]]] begin[{] assign[member[.r], call[context.getResources, parameter[]]] else begin[{] None end[}] call[.setRawMaxTextSize, parameter[call[TypedValue.applyDimension, parameter[member[.unit], member[.size], call[r.getDisplayMetrics, parameter[]]]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[AutofitHelper] identifier[setMaxTextSize] operator[SEP] Keyword[int] identifier[unit] , Keyword[float] identifier[size] operator[SEP] { identifier[Context] identifier[context] operator[=] identifier[mTextView] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] identifier[Resources] identifier[r] operator[=] identifier[Resources] operator[SEP] identifier[getSystem] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[context] operator[!=] Other[null] operator[SEP] { identifier[r] operator[=] identifier[context] operator[SEP] identifier[getResources] operator[SEP] operator[SEP] operator[SEP] } identifier[setRawMaxTextSize] operator[SEP] identifier[TypedValue] operator[SEP] identifier[applyDimension] operator[SEP] identifier[unit] , identifier[size] , identifier[r] operator[SEP] identifier[getDisplayMetrics] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
static String escape(final String text, final JavaEscapeLevel escapeLevel) { if (text == null) { return null; } final int level = escapeLevel.getEscapeLevel(); StringBuilder strBuilder = null; final int offset = 0; final int max = text.length(); int readOffset = offset; for (int i = offset; i < max; i++) { final int codepoint = Character.codePointAt(text, i); /* * Shortcut: most characters will be ASCII/Alphanumeric, and we won't need to do anything at * all for them */ if (codepoint <= (ESCAPE_LEVELS_LEN - 2) && level < ESCAPE_LEVELS[codepoint]) { continue; } /* * Shortcut: we might not want to escape non-ASCII chars at all either. */ if (codepoint > (ESCAPE_LEVELS_LEN - 2) && level < ESCAPE_LEVELS[ESCAPE_LEVELS_LEN - 1]) { if (Character.charCount(codepoint) > 1) { // This is to compensate that we are actually escaping two char[] positions with a single codepoint. i++; } continue; } /* * At this point we know for sure we will need some kind of escape, so we * can increase the offset and initialize the string builder if needed, along with * copying to it all the contents pending up to this point. */ if (strBuilder == null) { strBuilder = new StringBuilder(max + 20); } if (i - readOffset > 0) { strBuilder.append(text, readOffset, i); } if (Character.charCount(codepoint) > 1) { // This is to compensate that we are actually reading two char[] positions with a single codepoint. i++; } readOffset = i + 1; /* * ----------------------------------------------------------------------------------------- * * Perform the real escape, attending the different combinations of SECs and UHEXA * * ----------------------------------------------------------------------------------------- */ if (codepoint < SEC_CHARS_LEN) { // We will try to use a SEC final char sec = SEC_CHARS[codepoint]; if (sec != SEC_CHARS_NO_SEC) { // SEC found! just write it and go for the next char strBuilder.append(ESCAPE_PREFIX); strBuilder.append(sec); continue; } } /* * No SEC-escape was possible, so we need uhexa escape. */ if (Character.charCount(codepoint) > 1) { final char[] codepointChars = Character.toChars(codepoint); strBuilder.append(ESCAPE_UHEXA_PREFIX); strBuilder.append(toUHexa(codepointChars[0])); strBuilder.append(ESCAPE_UHEXA_PREFIX); strBuilder.append(toUHexa(codepointChars[1])); continue; } strBuilder.append(ESCAPE_UHEXA_PREFIX); strBuilder.append(toUHexa(codepoint)); } /* * ----------------------------------------------------------------------------------------------- * Final cleaning: return the original String object if no escape was actually needed. Otherwise * append the remaining unescaped text to the string builder and return. * ----------------------------------------------------------------------------------------------- */ if (strBuilder == null) { return text; } if (max - readOffset > 0) { strBuilder.append(text, readOffset, max); } return strBuilder.toString(); }
class class_name[name] begin[{] method[escape, return_type[type[String]], modifier[static], parameter[text, escapeLevel]] begin[{] if[binary_operation[member[.text], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[int], level] local_variable[type[StringBuilder], strBuilder] local_variable[type[int], offset] local_variable[type[int], max] local_variable[type[int], readOffset] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=text, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=codePointAt, postfix_operators=[], prefix_operators=[], qualifier=Character, selectors=[], type_arguments=None), name=codepoint)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=ESCAPE_LEVELS_LEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=-), operator=<=), operandr=BinaryOperation(operandl=MemberReference(member=level, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ESCAPE_LEVELS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=<), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=ESCAPE_LEVELS_LEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=-), operator=>), operandr=BinaryOperation(operandl=MemberReference(member=level, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ESCAPE_LEVELS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=ESCAPE_LEVELS_LEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operator=<), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=charCount, postfix_operators=[], prefix_operators=[], qualifier=Character, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)])), ContinueStatement(goto=None, label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=strBuilder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=strBuilder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(member=max, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=20), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None))), label=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=readOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), 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=text, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=readOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=charCount, postfix_operators=[], prefix_operators=[], qualifier=Character, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=readOffset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SEC_CHARS_LEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=SEC_CHARS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=sec)], modifiers={'final'}, type=BasicType(dimensions=[], name=char)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=sec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SEC_CHARS_NO_SEC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ESCAPE_PREFIX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=sec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), ContinueStatement(goto=None, label=None)]))])), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=charCount, postfix_operators=[], prefix_operators=[], qualifier=Character, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toChars, postfix_operators=[], prefix_operators=[], qualifier=Character, selectors=[], type_arguments=None), name=codepointChars)], modifiers={'final'}, type=BasicType(dimensions=[None], name=char)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ESCAPE_UHEXA_PREFIX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=codepointChars, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=toUHexa, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ESCAPE_UHEXA_PREFIX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=codepointChars, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))])], member=toUHexa, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), ContinueStatement(goto=None, label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ESCAPE_UHEXA_PREFIX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=codepoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toUHexa, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=strBuilder, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=max, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MemberReference(member=offset, 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) if[binary_operation[member[.strBuilder], ==, literal[null]]] begin[{] return[member[.text]] else begin[{] None end[}] if[binary_operation[binary_operation[member[.max], -, member[.readOffset]], >, literal[0]]] begin[{] call[strBuilder.append, parameter[member[.text], member[.readOffset], member[.max]]] else begin[{] None end[}] return[call[strBuilder.toString, parameter[]]] end[}] END[}]
Keyword[static] identifier[String] identifier[escape] operator[SEP] Keyword[final] identifier[String] identifier[text] , Keyword[final] identifier[JavaEscapeLevel] identifier[escapeLevel] operator[SEP] { Keyword[if] operator[SEP] identifier[text] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[final] Keyword[int] identifier[level] operator[=] identifier[escapeLevel] operator[SEP] identifier[getEscapeLevel] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[strBuilder] operator[=] Other[null] operator[SEP] Keyword[final] Keyword[int] identifier[offset] operator[=] Other[0] operator[SEP] Keyword[final] Keyword[int] identifier[max] operator[=] identifier[text] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[readOffset] operator[=] identifier[offset] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[offset] operator[SEP] identifier[i] operator[<] identifier[max] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[final] Keyword[int] identifier[codepoint] operator[=] identifier[Character] operator[SEP] identifier[codePointAt] operator[SEP] identifier[text] , identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[codepoint] operator[<=] operator[SEP] identifier[ESCAPE_LEVELS_LEN] operator[-] Other[2] operator[SEP] operator[&&] identifier[level] operator[<] identifier[ESCAPE_LEVELS] operator[SEP] identifier[codepoint] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[codepoint] operator[>] operator[SEP] identifier[ESCAPE_LEVELS_LEN] operator[-] Other[2] operator[SEP] operator[&&] identifier[level] operator[<] identifier[ESCAPE_LEVELS] operator[SEP] identifier[ESCAPE_LEVELS_LEN] operator[-] Other[1] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Character] operator[SEP] identifier[charCount] operator[SEP] identifier[codepoint] operator[SEP] operator[>] Other[1] operator[SEP] { identifier[i] operator[++] operator[SEP] } Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[strBuilder] operator[==] Other[null] operator[SEP] { identifier[strBuilder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[max] operator[+] Other[20] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[i] operator[-] identifier[readOffset] operator[>] Other[0] operator[SEP] { identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[text] , identifier[readOffset] , identifier[i] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[Character] operator[SEP] identifier[charCount] operator[SEP] identifier[codepoint] operator[SEP] operator[>] Other[1] operator[SEP] { identifier[i] operator[++] operator[SEP] } identifier[readOffset] operator[=] identifier[i] operator[+] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[codepoint] operator[<] identifier[SEC_CHARS_LEN] operator[SEP] { Keyword[final] Keyword[char] identifier[sec] operator[=] identifier[SEC_CHARS] operator[SEP] identifier[codepoint] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sec] operator[!=] identifier[SEC_CHARS_NO_SEC] operator[SEP] { identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[ESCAPE_PREFIX] operator[SEP] operator[SEP] identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[sec] operator[SEP] operator[SEP] Keyword[continue] operator[SEP] } } Keyword[if] operator[SEP] identifier[Character] operator[SEP] identifier[charCount] operator[SEP] identifier[codepoint] operator[SEP] operator[>] Other[1] operator[SEP] { Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[codepointChars] operator[=] identifier[Character] operator[SEP] identifier[toChars] operator[SEP] identifier[codepoint] operator[SEP] operator[SEP] identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[ESCAPE_UHEXA_PREFIX] operator[SEP] operator[SEP] identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[toUHexa] operator[SEP] identifier[codepointChars] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[ESCAPE_UHEXA_PREFIX] operator[SEP] operator[SEP] identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[toUHexa] operator[SEP] identifier[codepointChars] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[continue] operator[SEP] } identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[ESCAPE_UHEXA_PREFIX] operator[SEP] operator[SEP] identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[toUHexa] operator[SEP] identifier[codepoint] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[strBuilder] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[text] operator[SEP] } Keyword[if] operator[SEP] identifier[max] operator[-] identifier[readOffset] operator[>] Other[0] operator[SEP] { identifier[strBuilder] operator[SEP] identifier[append] operator[SEP] identifier[text] , identifier[readOffset] , identifier[max] operator[SEP] operator[SEP] } Keyword[return] identifier[strBuilder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public static JSONArray toJSONArray(String string) throws JSONException { return (JSONArray)parse(new XMLTokener(string), true, null, false); }
class class_name[name] begin[{] method[toJSONArray, return_type[type[JSONArray]], modifier[public static], parameter[string]] begin[{] return[Cast(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=string, 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=XMLTokener, sub_type=None)), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=parse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=JSONArray, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[JSONArray] identifier[toJSONArray] operator[SEP] identifier[String] identifier[string] operator[SEP] Keyword[throws] identifier[JSONException] { Keyword[return] operator[SEP] identifier[JSONArray] operator[SEP] identifier[parse] operator[SEP] Keyword[new] identifier[XMLTokener] operator[SEP] identifier[string] operator[SEP] , literal[boolean] , Other[null] , literal[boolean] operator[SEP] operator[SEP] }
public VerifyResult verifyFaceToPerson(UUID faceId, String personGroupId, UUID personId) { return verifyFaceToPersonWithServiceResponseAsync(faceId, personGroupId, personId).toBlocking().single().body(); }
class class_name[name] begin[{] method[verifyFaceToPerson, return_type[type[VerifyResult]], modifier[public], parameter[faceId, personGroupId, personId]] begin[{] return[call[.verifyFaceToPersonWithServiceResponseAsync, parameter[member[.faceId], member[.personGroupId], member[.personId]]]] end[}] END[}]
Keyword[public] identifier[VerifyResult] identifier[verifyFaceToPerson] operator[SEP] identifier[UUID] identifier[faceId] , identifier[String] identifier[personGroupId] , identifier[UUID] identifier[personId] operator[SEP] { Keyword[return] identifier[verifyFaceToPersonWithServiceResponseAsync] operator[SEP] identifier[faceId] , identifier[personGroupId] , identifier[personId] operator[SEP] operator[SEP] identifier[toBlocking] operator[SEP] operator[SEP] operator[SEP] identifier[single] operator[SEP] operator[SEP] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] }
@NonNull public Flowable<Changes> observeChangesInTable(@NonNull String table, @NonNull BackpressureStrategy backpressureStrategy) { checkNotEmpty(table, "Table can not be null or empty"); return observeChangesInTables(Collections.singleton(table), backpressureStrategy); }
class class_name[name] begin[{] method[observeChangesInTable, return_type[type[Flowable]], modifier[public], parameter[table, backpressureStrategy]] begin[{] call[.checkNotEmpty, parameter[member[.table], literal["Table can not be null or empty"]]] return[call[.observeChangesInTables, parameter[call[Collections.singleton, parameter[member[.table]]], member[.backpressureStrategy]]]] end[}] END[}]
annotation[@] identifier[NonNull] Keyword[public] identifier[Flowable] operator[<] identifier[Changes] operator[>] identifier[observeChangesInTable] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[table] , annotation[@] identifier[NonNull] identifier[BackpressureStrategy] identifier[backpressureStrategy] operator[SEP] { identifier[checkNotEmpty] operator[SEP] identifier[table] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[observeChangesInTables] operator[SEP] identifier[Collections] operator[SEP] identifier[singleton] operator[SEP] identifier[table] operator[SEP] , identifier[backpressureStrategy] operator[SEP] operator[SEP] }
public void purge(int gcBefore) { topLevel = topLevel.localDeletionTime < gcBefore ? DeletionTime.LIVE : topLevel; if (ranges != null) { ranges.purge(gcBefore); if (ranges.isEmpty()) ranges = null; } }
class class_name[name] begin[{] method[purge, return_type[void], modifier[public], parameter[gcBefore]] begin[{] assign[member[.topLevel], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=localDeletionTime, postfix_operators=[], prefix_operators=[], qualifier=topLevel, selectors=[]), operandr=MemberReference(member=gcBefore, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), if_false=MemberReference(member=topLevel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=LIVE, postfix_operators=[], prefix_operators=[], qualifier=DeletionTime, selectors=[]))] if[binary_operation[member[.ranges], !=, literal[null]]] begin[{] call[ranges.purge, parameter[member[.gcBefore]]] if[call[ranges.isEmpty, parameter[]]] begin[{] assign[member[.ranges], literal[null]] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[purge] operator[SEP] Keyword[int] identifier[gcBefore] operator[SEP] { identifier[topLevel] operator[=] identifier[topLevel] operator[SEP] identifier[localDeletionTime] operator[<] identifier[gcBefore] operator[?] identifier[DeletionTime] operator[SEP] identifier[LIVE] operator[:] identifier[topLevel] operator[SEP] Keyword[if] operator[SEP] identifier[ranges] operator[!=] Other[null] operator[SEP] { identifier[ranges] operator[SEP] identifier[purge] operator[SEP] identifier[gcBefore] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ranges] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] identifier[ranges] operator[=] Other[null] operator[SEP] } }
public static void main(String[] args) { ListRepo listRepo = new ListRepo(); try { listRepo.run(args); } catch (Exception e) { e.printStackTrace(); } }
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[ListRepo], listRepo] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=run, postfix_operators=[], prefix_operators=[], qualifier=listRepo, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=printStackTrace, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[ListRepo] identifier[listRepo] operator[=] Keyword[new] identifier[ListRepo] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[listRepo] operator[SEP] identifier[run] operator[SEP] identifier[args] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[e] operator[SEP] identifier[printStackTrace] operator[SEP] operator[SEP] operator[SEP] } }
private PBEStringEncryptor newEncryptor(final String passphrase) { final StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor(); encryptor.setPassword(passphrase); return encryptor; }
class class_name[name] begin[{] method[newEncryptor, return_type[type[PBEStringEncryptor]], modifier[private], parameter[passphrase]] begin[{] local_variable[type[StandardPBEStringEncryptor], encryptor] call[encryptor.setPassword, parameter[member[.passphrase]]] return[member[.encryptor]] end[}] END[}]
Keyword[private] identifier[PBEStringEncryptor] identifier[newEncryptor] operator[SEP] Keyword[final] identifier[String] identifier[passphrase] operator[SEP] { Keyword[final] identifier[StandardPBEStringEncryptor] identifier[encryptor] operator[=] Keyword[new] identifier[StandardPBEStringEncryptor] operator[SEP] operator[SEP] operator[SEP] identifier[encryptor] operator[SEP] identifier[setPassword] operator[SEP] identifier[passphrase] operator[SEP] operator[SEP] Keyword[return] identifier[encryptor] operator[SEP] }
@SuppressWarnings("unchecked") public <T> T getContextData(String name) { T rc = null; if (null != this.inheritableLocals) { rc = (T) this.inheritableLocals.get(name); } if (null == rc && null != this.locals) { rc = (T) this.locals.get(name); } return rc; }
class class_name[name] begin[{] method[getContextData, return_type[type[T]], modifier[public], parameter[name]] begin[{] local_variable[type[T], rc] if[binary_operation[literal[null], !=, THIS[member[None.inheritableLocals]]]] begin[{] assign[member[.rc], Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=inheritableLocals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))] else begin[{] None end[}] if[binary_operation[binary_operation[literal[null], ==, member[.rc]], &&, binary_operation[literal[null], !=, THIS[member[None.locals]]]]] begin[{] assign[member[.rc], Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=locals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))] else begin[{] None end[}] return[member[.rc]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[getContextData] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[T] identifier[rc] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[!=] Keyword[this] operator[SEP] identifier[inheritableLocals] operator[SEP] { identifier[rc] operator[=] operator[SEP] identifier[T] operator[SEP] Keyword[this] operator[SEP] identifier[inheritableLocals] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] Other[null] operator[==] identifier[rc] operator[&&] Other[null] operator[!=] Keyword[this] operator[SEP] identifier[locals] operator[SEP] { identifier[rc] operator[=] operator[SEP] identifier[T] operator[SEP] Keyword[this] operator[SEP] identifier[locals] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] } Keyword[return] identifier[rc] operator[SEP] }
public SessionManagementConfigurer<H> sessionCreationPolicy( SessionCreationPolicy sessionCreationPolicy) { Assert.notNull(sessionCreationPolicy, "sessionCreationPolicy cannot be null"); this.sessionPolicy = sessionCreationPolicy; return this; }
class class_name[name] begin[{] method[sessionCreationPolicy, return_type[type[SessionManagementConfigurer]], modifier[public], parameter[sessionCreationPolicy]] begin[{] call[Assert.notNull, parameter[member[.sessionCreationPolicy], literal["sessionCreationPolicy cannot be null"]]] assign[THIS[member[None.sessionPolicy]], member[.sessionCreationPolicy]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[SessionManagementConfigurer] operator[<] identifier[H] operator[>] identifier[sessionCreationPolicy] operator[SEP] identifier[SessionCreationPolicy] identifier[sessionCreationPolicy] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[sessionCreationPolicy] , literal[String] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[sessionPolicy] operator[=] identifier[sessionCreationPolicy] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public static List<String> texts(Collection<WebElement> elements) { return elements.stream().map(ElementsCollection::getText).collect(toList()); }
class class_name[name] begin[{] method[texts, return_type[type[List]], modifier[public static], parameter[elements]] begin[{] return[call[elements.stream, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[texts] operator[SEP] identifier[Collection] operator[<] identifier[WebElement] operator[>] identifier[elements] operator[SEP] { Keyword[return] identifier[elements] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[ElementsCollection] operator[::] identifier[getText] operator[SEP] operator[SEP] identifier[collect] operator[SEP] identifier[toList] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public List<TagCount> getTagsOnApp(int appId, MultivaluedMap<String, String> options) { return getResourceFactory() .getApiResource("/tag/app/" + appId + "/") .queryParams(options) .get(new GenericType<List<TagCount>>() { }); }
class class_name[name] begin[{] method[getTagsOnApp, return_type[type[List]], modifier[public], parameter[appId, options]] begin[{] return[call[.getResourceFactory, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[TagCount] operator[>] identifier[getTagsOnApp] operator[SEP] Keyword[int] identifier[appId] , identifier[MultivaluedMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[options] operator[SEP] { Keyword[return] identifier[getResourceFactory] operator[SEP] operator[SEP] operator[SEP] identifier[getApiResource] operator[SEP] literal[String] operator[+] identifier[appId] operator[+] literal[String] operator[SEP] operator[SEP] identifier[queryParams] operator[SEP] identifier[options] operator[SEP] operator[SEP] identifier[get] operator[SEP] Keyword[new] identifier[GenericType] operator[<] identifier[List] operator[<] identifier[TagCount] operator[>] operator[>] operator[SEP] operator[SEP] { } operator[SEP] operator[SEP] }
@Override public void start(BundleContext context) throws Exception { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(Constants.SERVICE_VENDOR, "IBM"); props.put("type", "HTTPChannel"); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Registering HTTPChannelProvider", props); } registration = context.registerService(ChannelFactoryProvider.class, this, props); }
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[context]] begin[{] local_variable[type[Hashtable], props] call[props.put, parameter[member[Constants.SERVICE_VENDOR], literal["IBM"]]] call[props.put, parameter[literal["type"], literal["HTTPChannel"]]] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEventEnabled, parameter[]]]] begin[{] call[Tr.event, parameter[THIS[], member[.tc], literal["Registering HTTPChannelProvider"], member[.props]]] else begin[{] None end[}] assign[member[.registration], call[context.registerService, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ChannelFactoryProvider, sub_type=None)), THIS[], member[.props]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[BundleContext] identifier[context] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Hashtable] operator[<] identifier[String] , identifier[String] operator[>] identifier[props] operator[=] Keyword[new] identifier[Hashtable] operator[<] identifier[String] , identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[props] operator[SEP] identifier[put] operator[SEP] identifier[Constants] operator[SEP] identifier[SERVICE_VENDOR] , literal[String] operator[SEP] operator[SEP] identifier[props] operator[SEP] identifier[put] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEventEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier[event] operator[SEP] Keyword[this] , identifier[tc] , literal[String] , identifier[props] operator[SEP] operator[SEP] } identifier[registration] operator[=] identifier[context] operator[SEP] identifier[registerService] operator[SEP] identifier[ChannelFactoryProvider] operator[SEP] Keyword[class] , Keyword[this] , identifier[props] operator[SEP] operator[SEP] }
private List<Path> getLocalLogDirs() throws IOException { String logDirs = System.getenv(ApplicationConstants.Environment.LOG_DIRS.toString()); return COMMA_SPLITTER.splitToList(logDirs).stream().map(e -> new Path(e)).collect(Collectors.toList()); }
class class_name[name] begin[{] method[getLocalLogDirs, return_type[type[List]], modifier[private], parameter[]] begin[{] local_variable[type[String], logDirs] return[call[COMMA_SPLITTER.splitToList, parameter[member[.logDirs]]]] end[}] END[}]
Keyword[private] identifier[List] operator[<] identifier[Path] operator[>] identifier[getLocalLogDirs] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[logDirs] operator[=] identifier[System] operator[SEP] identifier[getenv] operator[SEP] identifier[ApplicationConstants] operator[SEP] identifier[Environment] operator[SEP] identifier[LOG_DIRS] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[COMMA_SPLITTER] operator[SEP] identifier[splitToList] operator[SEP] identifier[logDirs] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[e] operator[->] Keyword[new] identifier[Path] operator[SEP] identifier[e] operator[SEP] operator[SEP] operator[SEP] identifier[collect] operator[SEP] identifier[Collectors] operator[SEP] identifier[toList] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static String getServletContextPath(String processDefinitionId) { ProcessApplicationInfo processApplicationInfo = getProcessApplicationInfo(processDefinitionId); if (processApplicationInfo == null) { return null; } return processApplicationInfo.getProperties().get( ProcessApplicationInfo.PROP_SERVLET_CONTEXT_PATH); }
class class_name[name] begin[{] method[getServletContextPath, return_type[type[String]], modifier[public static], parameter[processDefinitionId]] begin[{] local_variable[type[ProcessApplicationInfo], processApplicationInfo] if[binary_operation[member[.processApplicationInfo], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[processApplicationInfo.getProperties, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getServletContextPath] operator[SEP] identifier[String] identifier[processDefinitionId] operator[SEP] { identifier[ProcessApplicationInfo] identifier[processApplicationInfo] operator[=] identifier[getProcessApplicationInfo] operator[SEP] identifier[processDefinitionId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[processApplicationInfo] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[processApplicationInfo] operator[SEP] identifier[getProperties] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[ProcessApplicationInfo] operator[SEP] identifier[PROP_SERVLET_CONTEXT_PATH] operator[SEP] operator[SEP] }
public static int setAndGetListenerFlags(ListenerAdapter listenerAdapter) { InternalMapListenerAdapter internalMapListenerAdapter = (InternalMapListenerAdapter) listenerAdapter; ListenerAdapter[] listenerAdapters = internalMapListenerAdapter.getListenerAdapters(); EntryEventType[] values = EntryEventType.values(); int listenerFlags = 0; for (EntryEventType eventType : values) { ListenerAdapter definedAdapter = listenerAdapters[eventType.ordinal()]; if (definedAdapter != null) { listenerFlags = listenerFlags | eventType.getType(); } } return listenerFlags; }
class class_name[name] begin[{] method[setAndGetListenerFlags, return_type[type[int]], modifier[public static], parameter[listenerAdapter]] begin[{] local_variable[type[InternalMapListenerAdapter], internalMapListenerAdapter] local_variable[type[ListenerAdapter], listenerAdapters] local_variable[type[EntryEventType], values] local_variable[type[int], listenerFlags] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=listenerAdapters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MethodInvocation(arguments=[], member=ordinal, postfix_operators=[], prefix_operators=[], qualifier=eventType, selectors=[], type_arguments=None))]), name=definedAdapter)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ListenerAdapter, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=definedAdapter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=listenerFlags, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=listenerFlags, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=getType, postfix_operators=[], prefix_operators=[], qualifier=eventType, selectors=[], type_arguments=None), operator=|)), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=values, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=eventType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=EntryEventType, sub_type=None))), label=None) return[member[.listenerFlags]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[setAndGetListenerFlags] operator[SEP] identifier[ListenerAdapter] identifier[listenerAdapter] operator[SEP] { identifier[InternalMapListenerAdapter] identifier[internalMapListenerAdapter] operator[=] operator[SEP] identifier[InternalMapListenerAdapter] operator[SEP] identifier[listenerAdapter] operator[SEP] identifier[ListenerAdapter] operator[SEP] operator[SEP] identifier[listenerAdapters] operator[=] identifier[internalMapListenerAdapter] operator[SEP] identifier[getListenerAdapters] operator[SEP] operator[SEP] operator[SEP] identifier[EntryEventType] operator[SEP] operator[SEP] identifier[values] operator[=] identifier[EntryEventType] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[listenerFlags] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[EntryEventType] identifier[eventType] operator[:] identifier[values] operator[SEP] { identifier[ListenerAdapter] identifier[definedAdapter] operator[=] identifier[listenerAdapters] operator[SEP] identifier[eventType] operator[SEP] identifier[ordinal] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[definedAdapter] operator[!=] Other[null] operator[SEP] { identifier[listenerFlags] operator[=] identifier[listenerFlags] operator[|] identifier[eventType] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] identifier[listenerFlags] operator[SEP] }
@Override protected void updateValuesFromHSVFields () { int[] hsv = ColorUtils.RGBtoHSV(color); int h = hsv[0]; int s = hsv[1]; int v = hsv[2]; if (hBar.isInputValid()) h = hBar.getValue(); if (sBar.isInputValid()) s = sBar.getValue(); if (vBar.isInputValid()) v = vBar.getValue(); color = ColorUtils.HSVtoRGB(h, s, v, color.a); int cr = MathUtils.round(color.r * 255.0f); int cg = MathUtils.round(color.g * 255.0f); int cb = MathUtils.round(color.b * 255.0f); rBar.setValue(cr); gBar.setValue(cg); bBar.setValue(cb); }
class class_name[name] begin[{] method[updateValuesFromHSVFields, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[int], hsv] local_variable[type[int], h] local_variable[type[int], s] local_variable[type[int], v] if[call[hBar.isInputValid, parameter[]]] begin[{] assign[member[.h], call[hBar.getValue, parameter[]]] else begin[{] None end[}] if[call[sBar.isInputValid, parameter[]]] begin[{] assign[member[.s], call[sBar.getValue, parameter[]]] else begin[{] None end[}] if[call[vBar.isInputValid, parameter[]]] begin[{] assign[member[.v], call[vBar.getValue, parameter[]]] else begin[{] None end[}] assign[member[.color], call[ColorUtils.HSVtoRGB, parameter[member[.h], member[.s], member[.v], member[color.a]]]] local_variable[type[int], cr] local_variable[type[int], cg] local_variable[type[int], cb] call[rBar.setValue, parameter[member[.cr]]] call[gBar.setValue, parameter[member[.cg]]] call[bBar.setValue, parameter[member[.cb]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[updateValuesFromHSVFields] operator[SEP] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[hsv] operator[=] identifier[ColorUtils] operator[SEP] identifier[RGBtoHSV] operator[SEP] identifier[color] operator[SEP] operator[SEP] Keyword[int] identifier[h] operator[=] identifier[hsv] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[int] identifier[s] operator[=] identifier[hsv] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[int] identifier[v] operator[=] identifier[hsv] operator[SEP] Other[2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hBar] operator[SEP] identifier[isInputValid] operator[SEP] operator[SEP] operator[SEP] identifier[h] operator[=] identifier[hBar] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sBar] operator[SEP] identifier[isInputValid] operator[SEP] operator[SEP] operator[SEP] identifier[s] operator[=] identifier[sBar] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[vBar] operator[SEP] identifier[isInputValid] operator[SEP] operator[SEP] operator[SEP] identifier[v] operator[=] identifier[vBar] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[color] operator[=] identifier[ColorUtils] operator[SEP] identifier[HSVtoRGB] operator[SEP] identifier[h] , identifier[s] , identifier[v] , identifier[color] operator[SEP] identifier[a] operator[SEP] operator[SEP] Keyword[int] identifier[cr] operator[=] identifier[MathUtils] operator[SEP] identifier[round] operator[SEP] identifier[color] operator[SEP] identifier[r] operator[*] literal[Float] operator[SEP] operator[SEP] Keyword[int] identifier[cg] operator[=] identifier[MathUtils] operator[SEP] identifier[round] operator[SEP] identifier[color] operator[SEP] identifier[g] operator[*] literal[Float] operator[SEP] operator[SEP] Keyword[int] identifier[cb] operator[=] identifier[MathUtils] operator[SEP] identifier[round] operator[SEP] identifier[color] operator[SEP] identifier[b] operator[*] literal[Float] operator[SEP] operator[SEP] identifier[rBar] operator[SEP] identifier[setValue] operator[SEP] identifier[cr] operator[SEP] operator[SEP] identifier[gBar] operator[SEP] identifier[setValue] operator[SEP] identifier[cg] operator[SEP] operator[SEP] identifier[bBar] operator[SEP] identifier[setValue] operator[SEP] identifier[cb] operator[SEP] operator[SEP] }
public static void validateAllOrNone(Props props, String... keys) { Objects.requireNonNull(keys); boolean allExist = true; boolean someExist = false; for (String key : keys) { Object val = props.get(key); allExist &= val != null; someExist |= val != null; } if (someExist && !allExist) { throw new IllegalArgumentException( "Either all of properties exist or none of them should exist for " + Arrays .toString(keys)); } }
class class_name[name] begin[{] method[validateAllOrNone, return_type[void], modifier[public static], parameter[props, keys]] begin[{] call[Objects.requireNonNull, parameter[member[.keys]]] local_variable[type[boolean], allExist] local_variable[type[boolean], someExist] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), name=val)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=allExist, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=&=, value=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=someExist, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=|=, value=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=)), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=keys, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=key)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) if[binary_operation[member[.someExist], &&, member[.allExist]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Either all of properties exist or none of them should exist for "), operandr=MethodInvocation(arguments=[MemberReference(member=keys, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Arrays, 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=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[validateAllOrNone] operator[SEP] identifier[Props] identifier[props] , identifier[String] operator[...] identifier[keys] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[keys] operator[SEP] operator[SEP] Keyword[boolean] identifier[allExist] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[someExist] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[key] operator[:] identifier[keys] operator[SEP] { identifier[Object] identifier[val] operator[=] identifier[props] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] identifier[allExist] operator[&=] identifier[val] operator[!=] Other[null] operator[SEP] identifier[someExist] operator[|=] identifier[val] operator[!=] Other[null] operator[SEP] } Keyword[if] operator[SEP] identifier[someExist] operator[&&] operator[!] identifier[allExist] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[Arrays] operator[SEP] identifier[toString] operator[SEP] identifier[keys] operator[SEP] operator[SEP] operator[SEP] } }
static String createBeanAttributesId(BeanAttributes<?> attributes) { return Stream.of(attributes.getName(), attributes.getScope().getName(), createAnnotationCollectionId(attributes.getQualifiers()), createTypeCollectionId(attributes.getTypes())) .filter(Objects::nonNull) .collect(joining(",")); }
class class_name[name] begin[{] method[createBeanAttributesId, return_type[type[String]], modifier[static], parameter[attributes]] begin[{] return[call[Stream.of, parameter[call[attributes.getName, parameter[]], call[attributes.getScope, parameter[]], call[.createAnnotationCollectionId, parameter[call[attributes.getQualifiers, parameter[]]]], call[.createTypeCollectionId, parameter[call[attributes.getTypes, parameter[]]]]]]] end[}] END[}]
Keyword[static] identifier[String] identifier[createBeanAttributesId] operator[SEP] identifier[BeanAttributes] operator[<] operator[?] operator[>] identifier[attributes] operator[SEP] { Keyword[return] identifier[Stream] operator[SEP] identifier[of] operator[SEP] identifier[attributes] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[attributes] operator[SEP] identifier[getScope] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[createAnnotationCollectionId] operator[SEP] identifier[attributes] operator[SEP] identifier[getQualifiers] operator[SEP] operator[SEP] operator[SEP] , identifier[createTypeCollectionId] operator[SEP] identifier[attributes] operator[SEP] identifier[getTypes] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[filter] operator[SEP] identifier[Objects] operator[::] identifier[nonNull] operator[SEP] operator[SEP] identifier[collect] operator[SEP] identifier[joining] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] }
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Observable<T> cacheWithInitialCapacity(int initialCapacity) { return ObservableCache.from(this, initialCapacity); }
class class_name[name] begin[{] method[cacheWithInitialCapacity, return_type[type[Observable]], modifier[final public], parameter[initialCapacity]] begin[{] return[call[ObservableCache.from, parameter[THIS[], member[.initialCapacity]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] identifier[Observable] operator[<] identifier[T] operator[>] identifier[cacheWithInitialCapacity] operator[SEP] Keyword[int] identifier[initialCapacity] operator[SEP] { Keyword[return] identifier[ObservableCache] operator[SEP] identifier[from] operator[SEP] Keyword[this] , identifier[initialCapacity] operator[SEP] operator[SEP] }
public String readString(HKey hk, String key, String valueName) throws RegistryException { return readString(hk, key, valueName, null); }
class class_name[name] begin[{] method[readString, return_type[type[String]], modifier[public], parameter[hk, key, valueName]] begin[{] return[call[.readString, parameter[member[.hk], member[.key], member[.valueName], literal[null]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[readString] operator[SEP] identifier[HKey] identifier[hk] , identifier[String] identifier[key] , identifier[String] identifier[valueName] operator[SEP] Keyword[throws] identifier[RegistryException] { Keyword[return] identifier[readString] operator[SEP] identifier[hk] , identifier[key] , identifier[valueName] , Other[null] operator[SEP] operator[SEP] }
public final EObject entryRuleAbstractTerminal() throws RecognitionException { EObject current = null; EObject iv_ruleAbstractTerminal = null; try { // InternalXtext.g:1448:57: (iv_ruleAbstractTerminal= ruleAbstractTerminal EOF ) // InternalXtext.g:1449:2: iv_ruleAbstractTerminal= ruleAbstractTerminal EOF { newCompositeNode(grammarAccess.getAbstractTerminalRule()); pushFollow(FollowSets000.FOLLOW_1); iv_ruleAbstractTerminal=ruleAbstractTerminal(); state._fsp--; current =iv_ruleAbstractTerminal; match(input,EOF,FollowSets000.FOLLOW_2); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
class class_name[name] begin[{] method[entryRuleAbstractTerminal, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], iv_ruleAbstractTerminal] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAbstractTerminalRule, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[], type_arguments=None)], member=newCompositeNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_1, postfix_operators=[], prefix_operators=[], qualifier=FollowSets000, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=iv_ruleAbstractTerminal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=ruleAbstractTerminal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=iv_ruleAbstractTerminal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=EOF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_2, postfix_operators=[], prefix_operators=[], qualifier=FollowSets000, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=re, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=recover, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=appendSkippedTokens, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=re, types=['RecognitionException']))], finally_block=[], label=None, resources=None) return[member[.current]] end[}] END[}]
Keyword[public] Keyword[final] identifier[EObject] identifier[entryRuleAbstractTerminal] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[iv_ruleAbstractTerminal] operator[=] Other[null] operator[SEP] Keyword[try] { { identifier[newCompositeNode] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAbstractTerminalRule] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FollowSets000] operator[SEP] identifier[FOLLOW_1] operator[SEP] operator[SEP] identifier[iv_ruleAbstractTerminal] operator[=] identifier[ruleAbstractTerminal] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[current] operator[=] identifier[iv_ruleAbstractTerminal] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[EOF] , identifier[FollowSets000] operator[SEP] identifier[FOLLOW_2] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[RecognitionException] identifier[re] operator[SEP] { identifier[recover] operator[SEP] identifier[input] , identifier[re] operator[SEP] operator[SEP] identifier[appendSkippedTokens] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { } Keyword[return] identifier[current] operator[SEP] }
protected void setContext(Context context) throws CpoException { try { if (context == null) { context_ = new InitialContext(); } else { context_ = context; } } catch (NamingException e) { throw new CpoException("Error setting Context", e); } }
class class_name[name] begin[{] method[setContext, return_type[void], modifier[protected], parameter[context]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=context, 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=Assignment(expressionl=MemberReference(member=context_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=context_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InitialContext, sub_type=None))), label=None)]))], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Error setting Context"), 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=CpoException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['NamingException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[protected] Keyword[void] identifier[setContext] operator[SEP] identifier[Context] identifier[context] operator[SEP] Keyword[throws] identifier[CpoException] { Keyword[try] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] { identifier[context_] operator[=] Keyword[new] identifier[InitialContext] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[context_] operator[=] identifier[context] operator[SEP] } } Keyword[catch] operator[SEP] identifier[NamingException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[CpoException] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } }
public void executeAlterTableSetTblPropertiesQuery( String qualifiedTableName, String partitionPath ) throws StageException { String sql = buildSetTablePropertiesQuery(qualifiedTableName, partitionPath); execute(sql); }
class class_name[name] begin[{] method[executeAlterTableSetTblPropertiesQuery, return_type[void], modifier[public], parameter[qualifiedTableName, partitionPath]] begin[{] local_variable[type[String], sql] call[.execute, parameter[member[.sql]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[executeAlterTableSetTblPropertiesQuery] operator[SEP] identifier[String] identifier[qualifiedTableName] , identifier[String] identifier[partitionPath] operator[SEP] Keyword[throws] identifier[StageException] { identifier[String] identifier[sql] operator[=] identifier[buildSetTablePropertiesQuery] operator[SEP] identifier[qualifiedTableName] , identifier[partitionPath] operator[SEP] operator[SEP] identifier[execute] operator[SEP] identifier[sql] operator[SEP] operator[SEP] }
@Override public void queueEvent(final FacesEvent event) { final FacesContext fc = FacesContext.getCurrentInstance(); if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) { final Map<String, String> params = fc.getExternalContext().getRequestParameterMap(); final String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM); final String clientId = this.getClientId(fc); final AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event; if (OpenEvent.NAME.equals(eventName)) { final OpenEvent openEvent = new OpenEvent(this, behaviorEvent.getBehavior()); openEvent.setPhaseId(event.getPhaseId()); super.queueEvent(openEvent); return; } else if (CloseEvent.NAME.equals(eventName)) { final CloseEvent closeEvent = new CloseEvent(this, behaviorEvent.getBehavior()); closeEvent.setPhaseId(event.getPhaseId()); super.queueEvent(closeEvent); return; } else if (ButtonEvent.NAME.equals(eventName)) { final String name = params.get(clientId + "_button"); final BigDecimal value = new BigDecimal(params.get(clientId + "_value")); final ButtonEvent buttonEvent = new ButtonEvent(this, behaviorEvent.getBehavior(), name, value); buttonEvent.setPhaseId(event.getPhaseId()); super.queueEvent(buttonEvent); return; } } super.queueEvent(event); }
class class_name[name] begin[{] method[queueEvent, return_type[void], modifier[public], parameter[event]] begin[{] local_variable[type[FacesContext], fc] if[binary_operation[call[.isSelfRequest, parameter[member[.fc]]], &&, binary_operation[member[.event], instanceof, type[AjaxBehaviorEvent]]]] begin[{] local_variable[type[Map], params] local_variable[type[String], eventName] local_variable[type[String], clientId] local_variable[type[AjaxBehaviorEvent], behaviorEvent] if[call[OpenEvent.NAME.equals, parameter[member[.eventName]]]] begin[{] local_variable[type[OpenEvent], openEvent] call[openEvent.setPhaseId, parameter[call[event.getPhaseId, parameter[]]]] SuperMethodInvocation(arguments=[MemberReference(member=openEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=queueEvent, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) return[None] else begin[{] if[call[CloseEvent.NAME.equals, parameter[member[.eventName]]]] begin[{] local_variable[type[CloseEvent], closeEvent] call[closeEvent.setPhaseId, parameter[call[event.getPhaseId, parameter[]]]] SuperMethodInvocation(arguments=[MemberReference(member=closeEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=queueEvent, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) return[None] else begin[{] if[call[ButtonEvent.NAME.equals, parameter[member[.eventName]]]] begin[{] local_variable[type[String], name] local_variable[type[BigDecimal], value] local_variable[type[ButtonEvent], buttonEvent] call[buttonEvent.setPhaseId, parameter[call[event.getPhaseId, parameter[]]]] SuperMethodInvocation(arguments=[MemberReference(member=buttonEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=queueEvent, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) return[None] else begin[{] None end[}] end[}] end[}] else begin[{] None end[}] SuperMethodInvocation(arguments=[MemberReference(member=event, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=queueEvent, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[queueEvent] operator[SEP] Keyword[final] identifier[FacesEvent] identifier[event] operator[SEP] { Keyword[final] identifier[FacesContext] identifier[fc] operator[=] identifier[FacesContext] operator[SEP] identifier[getCurrentInstance] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isSelfRequest] operator[SEP] identifier[fc] operator[SEP] operator[&&] identifier[event] Keyword[instanceof] identifier[AjaxBehaviorEvent] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[params] operator[=] identifier[fc] operator[SEP] identifier[getExternalContext] operator[SEP] operator[SEP] operator[SEP] identifier[getRequestParameterMap] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[eventName] operator[=] identifier[params] operator[SEP] identifier[get] operator[SEP] identifier[Constants] operator[SEP] identifier[RequestParams] operator[SEP] identifier[PARTIAL_BEHAVIOR_EVENT_PARAM] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[clientId] operator[=] Keyword[this] operator[SEP] identifier[getClientId] operator[SEP] identifier[fc] operator[SEP] operator[SEP] Keyword[final] identifier[AjaxBehaviorEvent] identifier[behaviorEvent] operator[=] operator[SEP] identifier[AjaxBehaviorEvent] operator[SEP] identifier[event] operator[SEP] Keyword[if] operator[SEP] identifier[OpenEvent] operator[SEP] identifier[NAME] operator[SEP] identifier[equals] operator[SEP] identifier[eventName] operator[SEP] operator[SEP] { Keyword[final] identifier[OpenEvent] identifier[openEvent] operator[=] Keyword[new] identifier[OpenEvent] operator[SEP] Keyword[this] , identifier[behaviorEvent] operator[SEP] identifier[getBehavior] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[openEvent] operator[SEP] identifier[setPhaseId] operator[SEP] identifier[event] operator[SEP] identifier[getPhaseId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[queueEvent] operator[SEP] identifier[openEvent] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[CloseEvent] operator[SEP] identifier[NAME] operator[SEP] identifier[equals] operator[SEP] identifier[eventName] operator[SEP] operator[SEP] { Keyword[final] identifier[CloseEvent] identifier[closeEvent] operator[=] Keyword[new] identifier[CloseEvent] operator[SEP] Keyword[this] , identifier[behaviorEvent] operator[SEP] identifier[getBehavior] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[closeEvent] operator[SEP] identifier[setPhaseId] operator[SEP] identifier[event] operator[SEP] identifier[getPhaseId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[queueEvent] operator[SEP] identifier[closeEvent] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[ButtonEvent] operator[SEP] identifier[NAME] operator[SEP] identifier[equals] operator[SEP] identifier[eventName] operator[SEP] operator[SEP] { Keyword[final] identifier[String] identifier[name] operator[=] identifier[params] operator[SEP] identifier[get] operator[SEP] identifier[clientId] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[BigDecimal] identifier[value] operator[=] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[params] operator[SEP] identifier[get] operator[SEP] identifier[clientId] operator[+] literal[String] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[ButtonEvent] identifier[buttonEvent] operator[=] Keyword[new] identifier[ButtonEvent] operator[SEP] Keyword[this] , identifier[behaviorEvent] operator[SEP] identifier[getBehavior] operator[SEP] operator[SEP] , identifier[name] , identifier[value] operator[SEP] operator[SEP] identifier[buttonEvent] operator[SEP] identifier[setPhaseId] operator[SEP] identifier[event] operator[SEP] identifier[getPhaseId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[queueEvent] operator[SEP] identifier[buttonEvent] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } } Keyword[super] operator[SEP] identifier[queueEvent] operator[SEP] identifier[event] operator[SEP] operator[SEP] }
private String translateColumnName(String srcColumnName, DataMediaPair dataMediaPair, Multimap<String, String> translateDict) { if (dataMediaPair.getColumnPairMode().isExclude() || CollectionUtils.isEmpty(dataMediaPair.getColumnPairs())) { return srcColumnName; // 默认同名 } Collection<String> tColumnNames = translateDict.get(srcColumnName); if (CollectionUtils.isEmpty(tColumnNames)) { throw new TransformException(srcColumnName + " is not found in column pairs: " + translateDict.toString()); } String columnName = tColumnNames.iterator().next(); return columnName; }
class class_name[name] begin[{] method[translateColumnName, return_type[type[String]], modifier[private], parameter[srcColumnName, dataMediaPair, translateDict]] begin[{] if[binary_operation[call[dataMediaPair.getColumnPairMode, parameter[]], ||, call[CollectionUtils.isEmpty, parameter[call[dataMediaPair.getColumnPairs, parameter[]]]]]] begin[{] return[member[.srcColumnName]] else begin[{] None end[}] local_variable[type[Collection], tColumnNames] if[call[CollectionUtils.isEmpty, parameter[member[.tColumnNames]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=srcColumnName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" is not found in column pairs: "), operator=+), operandr=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=translateDict, 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=TransformException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[String], columnName] return[member[.columnName]] end[}] END[}]
Keyword[private] identifier[String] identifier[translateColumnName] operator[SEP] identifier[String] identifier[srcColumnName] , identifier[DataMediaPair] identifier[dataMediaPair] , identifier[Multimap] operator[<] identifier[String] , identifier[String] operator[>] identifier[translateDict] operator[SEP] { Keyword[if] operator[SEP] identifier[dataMediaPair] operator[SEP] identifier[getColumnPairMode] operator[SEP] operator[SEP] operator[SEP] identifier[isExclude] operator[SEP] operator[SEP] operator[||] identifier[CollectionUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[dataMediaPair] operator[SEP] identifier[getColumnPairs] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[srcColumnName] operator[SEP] } identifier[Collection] operator[<] identifier[String] operator[>] identifier[tColumnNames] operator[=] identifier[translateDict] operator[SEP] identifier[get] operator[SEP] identifier[srcColumnName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[CollectionUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[tColumnNames] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[TransformException] operator[SEP] identifier[srcColumnName] operator[+] literal[String] operator[+] identifier[translateDict] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[String] identifier[columnName] operator[=] identifier[tColumnNames] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[columnName] operator[SEP] }
public static String camelize(String underscore, boolean capitalizeFirstChar){ StringBuilder result = new StringBuilder(); StringTokenizer st = new StringTokenizer(underscore, "_"); while (st.hasMoreTokens()) { result.append(capitalize(st.nextToken())); } return capitalizeFirstChar ? result.toString() : result.substring(0, 1).toLowerCase() + result.substring(1); }
class class_name[name] begin[{] method[camelize, return_type[type[String]], modifier[public static], parameter[underscore, capitalizeFirstChar]] begin[{] local_variable[type[StringBuilder], result] local_variable[type[StringTokenizer], st] while[call[st.hasMoreTokens, parameter[]]] begin[{] call[result.append, parameter[call[.capitalize, parameter[call[st.nextToken, parameter[]]]]]] end[}] return[TernaryExpression(condition=MemberReference(member=capitalizeFirstChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), operator=+), if_true=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[camelize] operator[SEP] identifier[String] identifier[underscore] , Keyword[boolean] identifier[capitalizeFirstChar] operator[SEP] { identifier[StringBuilder] identifier[result] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[StringTokenizer] identifier[st] operator[=] Keyword[new] identifier[StringTokenizer] operator[SEP] identifier[underscore] , literal[String] 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[capitalize] operator[SEP] identifier[st] operator[SEP] identifier[nextToken] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[capitalizeFirstChar] operator[?] identifier[result] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[:] identifier[result] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[1] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[+] identifier[result] operator[SEP] identifier[substring] operator[SEP] Other[1] operator[SEP] operator[SEP] }
public void trackStatePointer(NativePack random) { if (random.getStatePointer() != null) { GarbageStateReference reference = new GarbageStateReference(random, queue); referenceMap.put(random.getStatePointer().address(), reference); } }
class class_name[name] begin[{] method[trackStatePointer, return_type[void], modifier[public], parameter[random]] begin[{] if[binary_operation[call[random.getStatePointer, parameter[]], !=, literal[null]]] begin[{] local_variable[type[GarbageStateReference], reference] call[referenceMap.put, parameter[call[random.getStatePointer, parameter[]], member[.reference]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[trackStatePointer] operator[SEP] identifier[NativePack] identifier[random] operator[SEP] { Keyword[if] operator[SEP] identifier[random] operator[SEP] identifier[getStatePointer] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[GarbageStateReference] identifier[reference] operator[=] Keyword[new] identifier[GarbageStateReference] operator[SEP] identifier[random] , identifier[queue] operator[SEP] operator[SEP] identifier[referenceMap] operator[SEP] identifier[put] operator[SEP] identifier[random] operator[SEP] identifier[getStatePointer] operator[SEP] operator[SEP] operator[SEP] identifier[address] operator[SEP] operator[SEP] , identifier[reference] operator[SEP] operator[SEP] } }
public static void removeAttribute(final AttributesImpl atts, final String qName) { final int i = atts.getIndex(qName); if (i != -1) { atts.removeAttribute(i); } }
class class_name[name] begin[{] method[removeAttribute, return_type[void], modifier[public static], parameter[atts, qName]] begin[{] local_variable[type[int], i] if[binary_operation[member[.i], !=, literal[1]]] begin[{] call[atts.removeAttribute, parameter[member[.i]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[removeAttribute] operator[SEP] Keyword[final] identifier[AttributesImpl] identifier[atts] , Keyword[final] identifier[String] identifier[qName] operator[SEP] { Keyword[final] Keyword[int] identifier[i] operator[=] identifier[atts] operator[SEP] identifier[getIndex] operator[SEP] identifier[qName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i] operator[!=] operator[-] Other[1] operator[SEP] { identifier[atts] operator[SEP] identifier[removeAttribute] operator[SEP] identifier[i] operator[SEP] operator[SEP] } }
public ArgumentMention getArguments(int i) { if (RelationMention_Type.featOkTst && ((RelationMention_Type)jcasType).casFeat_arguments == null) jcasType.jcas.throwFeatMissing("arguments", "de.julielab.jules.types.RelationMention"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((RelationMention_Type)jcasType).casFeatCode_arguments), i); return (ArgumentMention)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((RelationMention_Type)jcasType).casFeatCode_arguments), i)));}
class class_name[name] begin[{] method[getArguments, return_type[type[ArgumentMention]], modifier[public], parameter[i]] begin[{] if[binary_operation[member[RelationMention_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=RelationMention_Type, sub_type=None)), ==, literal[null]]]] begin[{] call[jcasType.jcas.throwFeatMissing, parameter[literal["arguments"], literal["de.julielab.jules.types.RelationMention"]]] else begin[{] None end[}] call[jcasType.jcas.checkArrayBounds, parameter[call[jcasType.ll_cas.ll_getRefValue, parameter[member[.addr], Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=RelationMention_Type, sub_type=None))]], member[.i]]] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=addr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=RelationMention_Type, sub_type=None))], member=ll_getRefValue, postfix_operators=[], prefix_operators=[], qualifier=jcasType.ll_cas, selectors=[], type_arguments=None), MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=ll_getRefArrayValue, postfix_operators=[], prefix_operators=[], qualifier=jcasType.ll_cas, selectors=[], type_arguments=None)], member=ll_getFSForRef, postfix_operators=[], prefix_operators=[], qualifier=jcasType.ll_cas, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=ArgumentMention, sub_type=None))] end[}] END[}]
Keyword[public] identifier[ArgumentMention] identifier[getArguments] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[RelationMention_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[RelationMention_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casFeat_arguments] operator[==] Other[null] operator[SEP] identifier[jcasType] operator[SEP] identifier[jcas] operator[SEP] identifier[throwFeatMissing] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] identifier[jcasType] operator[SEP] identifier[jcas] operator[SEP] identifier[checkArrayBounds] operator[SEP] identifier[jcasType] operator[SEP] identifier[ll_cas] operator[SEP] identifier[ll_getRefValue] operator[SEP] identifier[addr] , operator[SEP] operator[SEP] identifier[RelationMention_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casFeatCode_arguments] operator[SEP] , identifier[i] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[ArgumentMention] operator[SEP] operator[SEP] identifier[jcasType] operator[SEP] identifier[ll_cas] operator[SEP] identifier[ll_getFSForRef] operator[SEP] identifier[jcasType] operator[SEP] identifier[ll_cas] operator[SEP] identifier[ll_getRefArrayValue] operator[SEP] identifier[jcasType] operator[SEP] identifier[ll_cas] operator[SEP] identifier[ll_getRefValue] operator[SEP] identifier[addr] , operator[SEP] operator[SEP] identifier[RelationMention_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casFeatCode_arguments] operator[SEP] , identifier[i] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public double getScaleToUnityBox(){ double largestEdge = 0; largestEdge = Math.max(largestEdge, maxX - minX); largestEdge = Math.max(largestEdge, maxY - minY); largestEdge = Math.max(largestEdge, maxZ - minZ); return 1.0 / largestEdge; }
class class_name[name] begin[{] method[getScaleToUnityBox, return_type[type[double]], modifier[public], parameter[]] begin[{] local_variable[type[double], largestEdge] assign[member[.largestEdge], call[Math.max, parameter[member[.largestEdge], binary_operation[member[.maxX], -, member[.minX]]]]] assign[member[.largestEdge], call[Math.max, parameter[member[.largestEdge], binary_operation[member[.maxY], -, member[.minY]]]]] assign[member[.largestEdge], call[Math.max, parameter[member[.largestEdge], binary_operation[member[.maxZ], -, member[.minZ]]]]] return[binary_operation[literal[1.0], /, member[.largestEdge]]] end[}] END[}]
Keyword[public] Keyword[double] identifier[getScaleToUnityBox] operator[SEP] operator[SEP] { Keyword[double] identifier[largestEdge] operator[=] Other[0] operator[SEP] identifier[largestEdge] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[largestEdge] , identifier[maxX] operator[-] identifier[minX] operator[SEP] operator[SEP] identifier[largestEdge] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[largestEdge] , identifier[maxY] operator[-] identifier[minY] operator[SEP] operator[SEP] identifier[largestEdge] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[largestEdge] , identifier[maxZ] operator[-] identifier[minZ] operator[SEP] operator[SEP] Keyword[return] literal[Float] operator[/] identifier[largestEdge] operator[SEP] }
private int getAtomPosition(IAtom atom, IAtomContainer container) { for (int i = 0; i < container.getAtomCount(); i++) { if (atom.equals(container.getAtom(i))) { return i; } } return -1; }
class class_name[name] begin[{] method[getAtomPosition, return_type[type[int]], modifier[private], parameter[atom, container]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getAtom, postfix_operators=[], prefix_operators=[], qualifier=container, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=atom, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=getAtomCount, postfix_operators=[], prefix_operators=[], qualifier=container, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[literal[1]] end[}] END[}]
Keyword[private] Keyword[int] identifier[getAtomPosition] operator[SEP] identifier[IAtom] identifier[atom] , identifier[IAtomContainer] identifier[container] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[container] operator[SEP] identifier[getAtomCount] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[atom] operator[SEP] identifier[equals] operator[SEP] identifier[container] operator[SEP] identifier[getAtom] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[i] operator[SEP] } } Keyword[return] operator[-] Other[1] operator[SEP] }
protected String formatOutput(String svc, LogLevel l, String msg, Throwable t) { // ??? for more severe output levels, a formatting routine which // uses (part of) the throwable stack trace would be of advantage final StringBuffer b = new StringBuffer(150); synchronized (c) { c.setTimeInMillis(System.currentTimeMillis()); b.append(c.get(Calendar.YEAR)); b.append('-').append(pad2Digits(c.get(Calendar.MONTH) + 1)); b.append('-').append(pad2Digits(c.get(Calendar.DAY_OF_MONTH))); b.append(' ').append(pad2Digits(c.get(Calendar.HOUR_OF_DAY))); b.append(':').append(pad2Digits(c.get(Calendar.MINUTE))); b.append(':').append(pad2Digits(c.get(Calendar.SECOND))); final int ms = c.get(Calendar.MILLISECOND); b.append(','); if (ms < 99) b.append('0'); b.append(pad2Digits(ms)); } b.append(" level=").append(l.toString()); b.append(", "); final int dot = svc.lastIndexOf('.') + 1; if (dot > 0 && dot < svc.length() && Character.isDigit(svc.charAt(dot))) b.append(svc); else b.append(svc.substring(dot)); b.append(": ").append(msg); if (t != null && t.getMessage() != null) b.append(" (").append(t.getMessage()).append(")"); return b.toString(); }
class class_name[name] begin[{] method[formatOutput, return_type[type[String]], modifier[protected], parameter[svc, l, msg, t]] begin[{] local_variable[type[StringBuffer], b] SYNCHRONIZED[member[.c]] BEGIN[{] call[c.setTimeInMillis, parameter[call[System.currentTimeMillis, parameter[]]]] call[b.append, parameter[call[c.get, parameter[member[Calendar.YEAR]]]]] call[b.append, parameter[literal['-']]] call[b.append, parameter[literal['-']]] call[b.append, parameter[literal[' ']]] call[b.append, parameter[literal[':']]] call[b.append, parameter[literal[':']]] local_variable[type[int], ms] call[b.append, parameter[literal[',']]] if[binary_operation[member[.ms], <, literal[99]]] begin[{] call[b.append, parameter[literal['0']]] else begin[{] None end[}] call[b.append, parameter[call[.pad2Digits, parameter[member[.ms]]]]] END[}] call[b.append, parameter[literal[" level="]]] call[b.append, parameter[literal[", "]]] local_variable[type[int], dot] if[binary_operation[binary_operation[binary_operation[member[.dot], >, literal[0]], &&, binary_operation[member[.dot], <, call[svc.length, parameter[]]]], &&, call[Character.isDigit, parameter[call[svc.charAt, parameter[member[.dot]]]]]]] begin[{] call[b.append, parameter[member[.svc]]] else begin[{] call[b.append, parameter[call[svc.substring, parameter[member[.dot]]]]] end[}] call[b.append, parameter[literal[": "]]] if[binary_operation[binary_operation[member[.t], !=, literal[null]], &&, binary_operation[call[t.getMessage, parameter[]], !=, literal[null]]]] begin[{] call[b.append, parameter[literal[" ("]]] else begin[{] None end[}] return[call[b.toString, parameter[]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[formatOutput] operator[SEP] identifier[String] identifier[svc] , identifier[LogLevel] identifier[l] , identifier[String] identifier[msg] , identifier[Throwable] identifier[t] operator[SEP] { Keyword[final] identifier[StringBuffer] identifier[b] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] Other[150] operator[SEP] operator[SEP] Keyword[synchronized] operator[SEP] identifier[c] operator[SEP] { identifier[c] operator[SEP] identifier[setTimeInMillis] operator[SEP] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[YEAR] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[pad2Digits] operator[SEP] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[MONTH] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[pad2Digits] operator[SEP] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[DAY_OF_MONTH] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[pad2Digits] operator[SEP] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[HOUR_OF_DAY] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[pad2Digits] operator[SEP] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[MINUTE] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[pad2Digits] operator[SEP] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[SECOND] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[ms] operator[=] identifier[c] operator[SEP] identifier[get] operator[SEP] identifier[Calendar] operator[SEP] identifier[MILLISECOND] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ms] operator[<] Other[99] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] identifier[pad2Digits] operator[SEP] identifier[ms] operator[SEP] operator[SEP] operator[SEP] } identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[l] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[dot] operator[=] identifier[svc] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] operator[SEP] operator[+] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[dot] operator[>] Other[0] operator[&&] identifier[dot] operator[<] identifier[svc] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[&&] identifier[Character] operator[SEP] identifier[isDigit] operator[SEP] identifier[svc] operator[SEP] identifier[charAt] operator[SEP] identifier[dot] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] identifier[svc] operator[SEP] operator[SEP] Keyword[else] identifier[b] operator[SEP] identifier[append] operator[SEP] identifier[svc] operator[SEP] identifier[substring] operator[SEP] identifier[dot] operator[SEP] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[msg] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[t] operator[!=] Other[null] operator[&&] identifier[t] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[b] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[t] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[b] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public static boolean isTypesProxyable(Iterable<? extends Type> types, ServiceRegistry services) { return getUnproxyableTypesException(types, services) == null; }
class class_name[name] begin[{] method[isTypesProxyable, return_type[type[boolean]], modifier[public static], parameter[types, services]] begin[{] return[binary_operation[call[.getUnproxyableTypesException, parameter[member[.types], member[.services]]], ==, literal[null]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isTypesProxyable] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[Type] operator[>] identifier[types] , identifier[ServiceRegistry] identifier[services] operator[SEP] { Keyword[return] identifier[getUnproxyableTypesException] operator[SEP] identifier[types] , identifier[services] operator[SEP] operator[==] Other[null] operator[SEP] }
protected Component getResourceComponent(String path) { try { CmsPathSelectField field = new CmsPathSelectField(); field.setUseRootPaths(true); CmsObject cms = OpenCms.initCmsObject(A_CmsUI.getCmsObject()); cms.getRequestContext().setSiteRoot(""); field.setCmsObject(cms); if (path != null) { field.setValue(path); } return field; } catch (CmsException e) { // } return null; }
class class_name[name] begin[{] method[getResourceComponent, return_type[type[Component]], modifier[protected], parameter[path]] begin[{] TryStatement(block=[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=CmsPathSelectField, sub_type=None)), name=field)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CmsPathSelectField, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setUseRootPaths, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getCmsObject, postfix_operators=[], prefix_operators=[], qualifier=A_CmsUI, selectors=[], type_arguments=None)], member=initCmsObject, postfix_operators=[], prefix_operators=[], qualifier=OpenCms, selectors=[], type_arguments=None), name=cms)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CmsObject, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[], member=getRequestContext, postfix_operators=[], prefix_operators=[], qualifier=cms, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="")], member=setSiteRoot, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setCmsObject, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setValue, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None), label=None)])), ReturnStatement(expression=MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['CmsException']))], finally_block=None, label=None, resources=None) return[literal[null]] end[}] END[}]
Keyword[protected] identifier[Component] identifier[getResourceComponent] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[try] { identifier[CmsPathSelectField] identifier[field] operator[=] Keyword[new] identifier[CmsPathSelectField] operator[SEP] operator[SEP] operator[SEP] identifier[field] operator[SEP] identifier[setUseRootPaths] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[CmsObject] identifier[cms] operator[=] identifier[OpenCms] operator[SEP] identifier[initCmsObject] operator[SEP] identifier[A_CmsUI] operator[SEP] identifier[getCmsObject] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[cms] operator[SEP] identifier[getRequestContext] operator[SEP] operator[SEP] operator[SEP] identifier[setSiteRoot] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[field] operator[SEP] identifier[setCmsObject] operator[SEP] identifier[cms] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[path] operator[!=] Other[null] operator[SEP] { identifier[field] operator[SEP] identifier[setValue] operator[SEP] identifier[path] operator[SEP] operator[SEP] } Keyword[return] identifier[field] operator[SEP] } Keyword[catch] operator[SEP] identifier[CmsException] identifier[e] operator[SEP] { } Keyword[return] Other[null] operator[SEP] }
public void pushAndDrop(DataSegment dataSegment) { checkStateTransition(this.state, SegmentState.APPENDING, SegmentState.PUSHED_AND_DROPPED); this.state = SegmentState.PUSHED_AND_DROPPED; this.dataSegment = dataSegment; }
class class_name[name] begin[{] method[pushAndDrop, return_type[void], modifier[public], parameter[dataSegment]] begin[{] call[.checkStateTransition, parameter[THIS[member[None.state]], member[SegmentState.APPENDING], member[SegmentState.PUSHED_AND_DROPPED]]] assign[THIS[member[None.state]], member[SegmentState.PUSHED_AND_DROPPED]] assign[THIS[member[None.dataSegment]], member[.dataSegment]] end[}] END[}]
Keyword[public] Keyword[void] identifier[pushAndDrop] operator[SEP] identifier[DataSegment] identifier[dataSegment] operator[SEP] { identifier[checkStateTransition] operator[SEP] Keyword[this] operator[SEP] identifier[state] , identifier[SegmentState] operator[SEP] identifier[APPENDING] , identifier[SegmentState] operator[SEP] identifier[PUSHED_AND_DROPPED] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[state] operator[=] identifier[SegmentState] operator[SEP] identifier[PUSHED_AND_DROPPED] operator[SEP] Keyword[this] operator[SEP] identifier[dataSegment] operator[=] identifier[dataSegment] operator[SEP] }
public static String getName(Class<?> clz) { if (clz == null) { return null; } String className = class2NameCache.get(clz); if (className != null) { return className; } className = getNameWithoutCache(clz); // 与name2ClassCache同样道理,如果没有恶心的代码,这块内存大小应该可控 class2NameCache.putIfAbsent(clz, className); return className; }
class class_name[name] begin[{] method[getName, return_type[type[String]], modifier[public static], parameter[clz]] begin[{] if[binary_operation[member[.clz], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[String], className] if[binary_operation[member[.className], !=, literal[null]]] begin[{] return[member[.className]] else begin[{] None end[}] assign[member[.className], call[.getNameWithoutCache, parameter[member[.clz]]]] call[class2NameCache.putIfAbsent, parameter[member[.clz], member[.className]]] return[member[.className]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getName] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clz] operator[SEP] { Keyword[if] operator[SEP] identifier[clz] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[String] identifier[className] operator[=] identifier[class2NameCache] operator[SEP] identifier[get] operator[SEP] identifier[clz] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[className] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[className] operator[SEP] } identifier[className] operator[=] identifier[getNameWithoutCache] operator[SEP] identifier[clz] operator[SEP] operator[SEP] identifier[class2NameCache] operator[SEP] identifier[putIfAbsent] operator[SEP] identifier[clz] , identifier[className] operator[SEP] operator[SEP] Keyword[return] identifier[className] operator[SEP] }
public List<Task> allTasks() throws DocumentStoreException { int nDocs = this.mDocumentStore.database().getDocumentCount(); List<DocumentRevision> all = this.mDocumentStore.database().read(0, nDocs, true); List<Task> tasks = new ArrayList<Task>(); // Filter all documents down to those of type Task. for(DocumentRevision rev : all) { Task t = Task.fromRevision(rev); if (t != null) { tasks.add(t); } } return tasks; }
class class_name[name] begin[{] method[allTasks, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[int], nDocs] local_variable[type[List], all] local_variable[type[List], tasks] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=rev, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fromRevision, postfix_operators=[], prefix_operators=[], qualifier=Task, selectors=[], type_arguments=None), name=t)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Task, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=tasks, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=all, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=rev)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=DocumentRevision, sub_type=None))), label=None) return[member[.tasks]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Task] operator[>] identifier[allTasks] operator[SEP] operator[SEP] Keyword[throws] identifier[DocumentStoreException] { Keyword[int] identifier[nDocs] operator[=] Keyword[this] operator[SEP] identifier[mDocumentStore] operator[SEP] identifier[database] operator[SEP] operator[SEP] operator[SEP] identifier[getDocumentCount] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[DocumentRevision] operator[>] identifier[all] operator[=] Keyword[this] operator[SEP] identifier[mDocumentStore] operator[SEP] identifier[database] operator[SEP] operator[SEP] operator[SEP] identifier[read] operator[SEP] Other[0] , identifier[nDocs] , literal[boolean] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Task] operator[>] identifier[tasks] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Task] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[DocumentRevision] identifier[rev] operator[:] identifier[all] operator[SEP] { identifier[Task] identifier[t] operator[=] identifier[Task] operator[SEP] identifier[fromRevision] operator[SEP] identifier[rev] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[t] operator[!=] Other[null] operator[SEP] { identifier[tasks] operator[SEP] identifier[add] operator[SEP] identifier[t] operator[SEP] operator[SEP] } } Keyword[return] identifier[tasks] operator[SEP] }
private String[] readFile(String fileName) throws IOException { ArrayList<String> result = new ArrayList<String>(); FileReader fReader = new FileReader(fileName); BufferedReader bReader = new BufferedReader(fReader); while (true) { String line = bReader.readLine(); if (line == null) { break; } result.add(line); } bReader.close(); fReader.close(); return (String[])result.toArray(new String[result.size()]); }
class class_name[name] begin[{] method[readFile, return_type[type[String]], modifier[private], parameter[fileName]] begin[{] local_variable[type[ArrayList], result] local_variable[type[FileReader], fReader] local_variable[type[BufferedReader], bReader] while[literal[true]] begin[{] local_variable[type[String], line] if[binary_operation[member[.line], ==, literal[null]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] call[result.add, parameter[member[.line]]] end[}] call[bReader.close, parameter[]] call[fReader.close, parameter[]] return[Cast(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))], member=toArray, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[None], name=String, sub_type=None))] end[}] END[}]
Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[readFile] operator[SEP] identifier[String] identifier[fileName] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[FileReader] identifier[fReader] operator[=] Keyword[new] identifier[FileReader] operator[SEP] identifier[fileName] operator[SEP] operator[SEP] identifier[BufferedReader] identifier[bReader] operator[=] Keyword[new] identifier[BufferedReader] operator[SEP] identifier[fReader] operator[SEP] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { identifier[String] identifier[line] operator[=] identifier[bReader] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[line] operator[==] Other[null] operator[SEP] { Keyword[break] operator[SEP] } identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[line] operator[SEP] operator[SEP] } identifier[bReader] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] identifier[fReader] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[String] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[String] operator[SEP] identifier[result] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public List<GeopackageRasterTileSource> getTileSources() { List<GeopackageRasterTileSource> srcs = new ArrayList<>(); List<String> databases = manager.databases(); for (int i = 0; i < databases.size(); i++) { GeoPackage open = manager.open(databases.get(i)); List<String> tileTables = open.getTileTables(); for (int k = 0; k < tileTables.size(); k++) { TileDao tileDao = open.getTileDao(tileTables.get(k)); ProjectionTransform transform = tileDao.getProjection().getTransformation(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM); mil.nga.geopackage.BoundingBox boundingBox = transform.transform(tileDao.getBoundingBox()); BoundingBox bounds = new BoundingBox(Math.min(tileSystem.getMaxLatitude(), boundingBox.getMaxLatitude()), boundingBox.getMaxLongitude(), Math.max(tileSystem.getMinLatitude(), boundingBox.getMinLatitude()), boundingBox.getMinLongitude()); srcs.add(new GeopackageRasterTileSource(databases.get(i), tileTables.get(k), (int)tileDao.getMinZoom(), (int)tileDao.getMaxZoom(), bounds)); } open.close(); } return srcs; }
class class_name[name] begin[{] method[getTileSources, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], srcs] local_variable[type[List], databases] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=databases, selectors=[], type_arguments=None)], member=open, postfix_operators=[], prefix_operators=[], qualifier=manager, selectors=[], type_arguments=None), name=open)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=GeoPackage, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getTileTables, postfix_operators=[], prefix_operators=[], qualifier=open, selectors=[], type_arguments=None), name=tileTables)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=List, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=tileTables, selectors=[], type_arguments=None)], member=getTileDao, postfix_operators=[], prefix_operators=[], qualifier=open, selectors=[], type_arguments=None), name=tileDao)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TileDao, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getProjection, postfix_operators=[], prefix_operators=[], qualifier=tileDao, selectors=[MethodInvocation(arguments=[MemberReference(member=EPSG_WORLD_GEODETIC_SYSTEM, postfix_operators=[], prefix_operators=[], qualifier=ProjectionConstants, selectors=[])], member=getTransformation, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=transform)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ProjectionTransform, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getBoundingBox, postfix_operators=[], prefix_operators=[], qualifier=tileDao, selectors=[], type_arguments=None)], member=transform, postfix_operators=[], prefix_operators=[], qualifier=transform, selectors=[], type_arguments=None), name=boundingBox)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=mil, sub_type=ReferenceType(arguments=None, dimensions=None, name=nga, sub_type=ReferenceType(arguments=None, dimensions=None, name=geopackage, sub_type=ReferenceType(arguments=None, dimensions=None, name=BoundingBox, sub_type=None))))), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMaxLatitude, postfix_operators=[], prefix_operators=[], qualifier=tileSystem, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getMaxLatitude, postfix_operators=[], prefix_operators=[], qualifier=boundingBox, selectors=[], type_arguments=None)], member=min, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getMaxLongitude, postfix_operators=[], prefix_operators=[], qualifier=boundingBox, selectors=[], type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMinLatitude, postfix_operators=[], prefix_operators=[], qualifier=tileSystem, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getMinLatitude, postfix_operators=[], prefix_operators=[], qualifier=boundingBox, selectors=[], type_arguments=None)], member=max, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getMinLongitude, postfix_operators=[], prefix_operators=[], qualifier=boundingBox, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BoundingBox, sub_type=None)), name=bounds)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=BoundingBox, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=databases, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=tileTables, selectors=[], type_arguments=None), Cast(expression=MethodInvocation(arguments=[], member=getMinZoom, postfix_operators=[], prefix_operators=[], qualifier=tileDao, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int)), Cast(expression=MethodInvocation(arguments=[], member=getMaxZoom, postfix_operators=[], prefix_operators=[], qualifier=tileDao, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int)), MemberReference(member=bounds, 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=GeopackageRasterTileSource, sub_type=None))], member=add, postfix_operators=[], prefix_operators=[], qualifier=srcs, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=tileTables, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=k)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=k, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=open, 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=databases, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.srcs]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[GeopackageRasterTileSource] operator[>] identifier[getTileSources] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[GeopackageRasterTileSource] operator[>] identifier[srcs] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[databases] operator[=] identifier[manager] operator[SEP] identifier[databases] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[databases] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[GeoPackage] identifier[open] operator[=] identifier[manager] operator[SEP] identifier[open] operator[SEP] identifier[databases] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[tileTables] operator[=] identifier[open] operator[SEP] identifier[getTileTables] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[k] operator[=] Other[0] operator[SEP] identifier[k] operator[<] identifier[tileTables] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[k] operator[++] operator[SEP] { identifier[TileDao] identifier[tileDao] operator[=] identifier[open] operator[SEP] identifier[getTileDao] operator[SEP] identifier[tileTables] operator[SEP] identifier[get] operator[SEP] identifier[k] operator[SEP] operator[SEP] operator[SEP] identifier[ProjectionTransform] identifier[transform] operator[=] identifier[tileDao] operator[SEP] identifier[getProjection] operator[SEP] operator[SEP] operator[SEP] identifier[getTransformation] operator[SEP] identifier[ProjectionConstants] operator[SEP] identifier[EPSG_WORLD_GEODETIC_SYSTEM] operator[SEP] operator[SEP] identifier[mil] operator[SEP] identifier[nga] operator[SEP] identifier[geopackage] operator[SEP] identifier[BoundingBox] identifier[boundingBox] operator[=] identifier[transform] operator[SEP] identifier[transform] operator[SEP] identifier[tileDao] operator[SEP] identifier[getBoundingBox] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[BoundingBox] identifier[bounds] operator[=] Keyword[new] identifier[BoundingBox] operator[SEP] identifier[Math] operator[SEP] identifier[min] operator[SEP] identifier[tileSystem] operator[SEP] identifier[getMaxLatitude] operator[SEP] operator[SEP] , identifier[boundingBox] operator[SEP] identifier[getMaxLatitude] operator[SEP] operator[SEP] operator[SEP] , identifier[boundingBox] operator[SEP] identifier[getMaxLongitude] operator[SEP] operator[SEP] , identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[tileSystem] operator[SEP] identifier[getMinLatitude] operator[SEP] operator[SEP] , identifier[boundingBox] operator[SEP] identifier[getMinLatitude] operator[SEP] operator[SEP] operator[SEP] , identifier[boundingBox] operator[SEP] identifier[getMinLongitude] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[srcs] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[GeopackageRasterTileSource] operator[SEP] identifier[databases] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] , identifier[tileTables] operator[SEP] identifier[get] operator[SEP] identifier[k] operator[SEP] , operator[SEP] Keyword[int] operator[SEP] identifier[tileDao] operator[SEP] identifier[getMinZoom] operator[SEP] operator[SEP] , operator[SEP] Keyword[int] operator[SEP] identifier[tileDao] operator[SEP] identifier[getMaxZoom] operator[SEP] operator[SEP] , identifier[bounds] operator[SEP] operator[SEP] operator[SEP] } identifier[open] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[srcs] operator[SEP] }
public byte[] toBytes() throws IOException { ByteWriter writer = new ByteWriter(); // Write GP as the 2 byte magic number writer.writeString(GeoPackageConstants.GEO_PACKAGE_GEOMETRY_MAGIC_NUMBER); // Write a byte as the version, value of 0 = version 1 writer.writeByte(GeoPackageConstants.GEO_PACKAGE_GEOMETRY_VERSION_1); // Build and write a flags byte byte flags = buildFlagsByte(); writer.writeByte(flags); writer.setByteOrder(byteOrder); // Write the 4 byte srs id int writer.writeInt(srsId); // Write the envelope writeEnvelope(writer); // Save off where the WKB bytes start wkbGeometryIndex = writer.size(); // Write the Well-Known Binary Geometry if not marked as empty if (!empty) { GeometryWriter.writeGeometry(writer, geometry); } // Get the bytes bytes = writer.getBytes(); // Close the writer writer.close(); return bytes; }
class class_name[name] begin[{] method[toBytes, return_type[type[byte]], modifier[public], parameter[]] begin[{] local_variable[type[ByteWriter], writer] call[writer.writeString, parameter[member[GeoPackageConstants.GEO_PACKAGE_GEOMETRY_MAGIC_NUMBER]]] call[writer.writeByte, parameter[member[GeoPackageConstants.GEO_PACKAGE_GEOMETRY_VERSION_1]]] local_variable[type[byte], flags] call[writer.writeByte, parameter[member[.flags]]] call[writer.setByteOrder, parameter[member[.byteOrder]]] call[writer.writeInt, parameter[member[.srsId]]] call[.writeEnvelope, parameter[member[.writer]]] assign[member[.wkbGeometryIndex], call[writer.size, parameter[]]] if[member[.empty]] begin[{] call[GeometryWriter.writeGeometry, parameter[member[.writer], member[.geometry]]] else begin[{] None end[}] assign[member[.bytes], call[writer.getBytes, parameter[]]] call[writer.close, parameter[]] return[member[.bytes]] end[}] END[}]
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[toBytes] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteWriter] identifier[writer] operator[=] Keyword[new] identifier[ByteWriter] operator[SEP] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[writeString] operator[SEP] identifier[GeoPackageConstants] operator[SEP] identifier[GEO_PACKAGE_GEOMETRY_MAGIC_NUMBER] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[writeByte] operator[SEP] identifier[GeoPackageConstants] operator[SEP] identifier[GEO_PACKAGE_GEOMETRY_VERSION_1] operator[SEP] operator[SEP] Keyword[byte] identifier[flags] operator[=] identifier[buildFlagsByte] operator[SEP] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[writeByte] operator[SEP] identifier[flags] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[setByteOrder] operator[SEP] identifier[byteOrder] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[writeInt] operator[SEP] identifier[srsId] operator[SEP] operator[SEP] identifier[writeEnvelope] operator[SEP] identifier[writer] operator[SEP] operator[SEP] identifier[wkbGeometryIndex] operator[=] identifier[writer] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[empty] operator[SEP] { identifier[GeometryWriter] operator[SEP] identifier[writeGeometry] operator[SEP] identifier[writer] , identifier[geometry] operator[SEP] operator[SEP] } identifier[bytes] operator[=] identifier[writer] operator[SEP] identifier[getBytes] operator[SEP] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[bytes] operator[SEP] }
@Override public GetGroupResult getGroup(GetGroupRequest request) { request = beforeClientExecution(request); return executeGetGroup(request); }
class class_name[name] begin[{] method[getGroup, return_type[type[GetGroupResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetGroup, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[GetGroupResult] identifier[getGroup] operator[SEP] identifier[GetGroupRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeGetGroup] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public static void assertResponseNotReceived(int statusCode, String method, long sequenceNumber, MessageListener obj) { assertResponseNotReceived(null, statusCode, method, sequenceNumber, obj); }
class class_name[name] begin[{] method[assertResponseNotReceived, return_type[void], modifier[public static], parameter[statusCode, method, sequenceNumber, obj]] begin[{] call[.assertResponseNotReceived, parameter[literal[null], member[.statusCode], member[.method], member[.sequenceNumber], member[.obj]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[assertResponseNotReceived] operator[SEP] Keyword[int] identifier[statusCode] , identifier[String] identifier[method] , Keyword[long] identifier[sequenceNumber] , identifier[MessageListener] identifier[obj] operator[SEP] { identifier[assertResponseNotReceived] operator[SEP] Other[null] , identifier[statusCode] , identifier[method] , identifier[sequenceNumber] , identifier[obj] operator[SEP] operator[SEP] }
private synchronized void onJobFailure(final JobStatusProto jobStatusProto) { assert jobStatusProto.getState() == ReefServiceProtos.State.FAILED; final String id = this.jobId; final Optional<byte[]> data = jobStatusProto.hasException() ? Optional.of(jobStatusProto.getException().toByteArray()) : Optional.<byte[]>empty(); final Optional<Throwable> cause = this.exceptionCodec.fromBytes(data); final String message; if (cause.isPresent() && cause.get().getMessage() != null) { message = cause.get().getMessage(); } else { message = "No Message sent by the Job in exception " + cause.get(); LOG.log(Level.WARNING, message, cause.get()); } final Optional<String> description = Optional.of(message); final FailedJob failedJob = new FailedJob(id, message, description, cause, data); this.failedJobEventHandler.onNext(failedJob); }
class class_name[name] begin[{] method[onJobFailure, return_type[void], modifier[synchronized private], parameter[jobStatusProto]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getState, postfix_operators=[], prefix_operators=[], qualifier=jobStatusProto, selectors=[], type_arguments=None), operandr=MemberReference(member=FAILED, postfix_operators=[], prefix_operators=[], qualifier=ReefServiceProtos.State, selectors=[]), operator===), label=None, value=None) local_variable[type[String], id] local_variable[type[Optional], data] local_variable[type[Optional], cause] local_variable[type[String], message] if[binary_operation[call[cause.isPresent, parameter[]], &&, binary_operation[call[cause.get, parameter[]], !=, literal[null]]]] begin[{] assign[member[.message], call[cause.get, parameter[]]] else begin[{] assign[member[.message], binary_operation[literal["No Message sent by the Job in exception "], +, call[cause.get, parameter[]]]] call[LOG.log, parameter[member[Level.WARNING], member[.message], call[cause.get, parameter[]]]] end[}] local_variable[type[Optional], description] local_variable[type[FailedJob], failedJob] THIS[member[None.failedJobEventHandler]call[None.onNext, parameter[member[.failedJob]]]] end[}] END[}]
Keyword[private] Keyword[synchronized] Keyword[void] identifier[onJobFailure] operator[SEP] Keyword[final] identifier[JobStatusProto] identifier[jobStatusProto] operator[SEP] { Keyword[assert] identifier[jobStatusProto] operator[SEP] identifier[getState] operator[SEP] operator[SEP] operator[==] identifier[ReefServiceProtos] operator[SEP] identifier[State] operator[SEP] identifier[FAILED] operator[SEP] Keyword[final] identifier[String] identifier[id] operator[=] Keyword[this] operator[SEP] identifier[jobId] operator[SEP] Keyword[final] identifier[Optional] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[data] operator[=] identifier[jobStatusProto] operator[SEP] identifier[hasException] operator[SEP] operator[SEP] operator[?] identifier[Optional] operator[SEP] identifier[of] operator[SEP] identifier[jobStatusProto] operator[SEP] identifier[getException] operator[SEP] operator[SEP] operator[SEP] identifier[toByteArray] operator[SEP] operator[SEP] operator[SEP] operator[:] identifier[Optional] operator[SEP] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[empty] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[Optional] operator[<] identifier[Throwable] operator[>] identifier[cause] operator[=] Keyword[this] operator[SEP] identifier[exceptionCodec] operator[SEP] identifier[fromBytes] operator[SEP] identifier[data] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[message] operator[SEP] Keyword[if] operator[SEP] identifier[cause] operator[SEP] identifier[isPresent] operator[SEP] operator[SEP] operator[&&] identifier[cause] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[message] operator[=] identifier[cause] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[message] operator[=] literal[String] operator[+] identifier[cause] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[LOG] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[WARNING] , identifier[message] , identifier[cause] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[final] identifier[Optional] operator[<] identifier[String] operator[>] identifier[description] operator[=] identifier[Optional] operator[SEP] identifier[of] operator[SEP] identifier[message] operator[SEP] operator[SEP] Keyword[final] identifier[FailedJob] identifier[failedJob] operator[=] Keyword[new] identifier[FailedJob] operator[SEP] identifier[id] , identifier[message] , identifier[description] , identifier[cause] , identifier[data] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[failedJobEventHandler] operator[SEP] identifier[onNext] operator[SEP] identifier[failedJob] operator[SEP] operator[SEP] }
@Override public void merge(Collection<Bean> beans) throws AbortRuntimeException { init(); Map<HBeanRow, HBeanRow> providedRows = new HashMap<>(); for (Bean bean : beans) { HBeanRow row = new HBeanRow(bean, uids); providedRows.put(row, row); for (BeanId id : bean.getReferences()) { HBeanRow refRow = new HBeanRow(id, uids); providedRows.put(refRow, refRow); } } HBeanRowCollector storedCollector = null; try { storedCollector = table.getEager(providedRows); } catch (HBeanNotFoundException e) { // only throw exception if the bean was not provided if (!idsFoundIn(beans, e)) { throw Events.CFG301_MISSING_RUNTIME_REF(e.getNotFound().iterator().next()); } } Map<HBeanRow, HBeanRow> storedRows = storedCollector.getRowMap(); Set<RowMutations> mutations = new HashSet<>(); for (HBeanRow provided : providedRows.keySet()) { HBeanRow stored = storedRows.get(provided); RowMutations rowMutations = new RowMutations(provided.getRowKey()); Set<HBeanRow> deleteReferences = stored.merge(provided, rowMutations); try { deleteReferences = table.getLazy(deleteReferences); for (HBeanRow row : deleteReferences) { RowMutations mutation = row.removePredecessor(provided); mutations.add(mutation); } } catch (HBeanNotFoundException e) { throw new IllegalStateException("Broken predecessors"); } mutations.add(rowMutations); } table.mutate(mutations); }
class class_name[name] begin[{] method[merge, return_type[void], modifier[public], parameter[beans]] begin[{] call[.init, parameter[]] local_variable[type[Map], providedRows] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=bean, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=uids, 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=HBeanRow, sub_type=None)), name=row)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HBeanRow, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=row, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=row, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=providedRows, selectors=[], type_arguments=None), label=None), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=uids, 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=HBeanRow, sub_type=None)), name=refRow)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HBeanRow, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=refRow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=refRow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=providedRows, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getReferences, postfix_operators=[], prefix_operators=[], qualifier=bean, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=id)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=BeanId, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=beans, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=bean)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Bean, sub_type=None))), label=None) local_variable[type[HBeanRowCollector], storedCollector] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=storedCollector, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=providedRows, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getEager, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=beans, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=idsFoundIn, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getNotFound, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[MethodInvocation(arguments=[], member=iterator, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=next, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=CFG301_MISSING_RUNTIME_REF, postfix_operators=[], prefix_operators=[], qualifier=Events, selectors=[], type_arguments=None), label=None)]))], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['HBeanNotFoundException']))], finally_block=None, label=None, resources=None) local_variable[type[Map], storedRows] local_variable[type[Set], mutations] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=provided, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=storedRows, selectors=[], type_arguments=None), name=stored)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HBeanRow, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getRowKey, postfix_operators=[], prefix_operators=[], qualifier=provided, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RowMutations, sub_type=None)), name=rowMutations)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=RowMutations, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=provided, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rowMutations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=merge, postfix_operators=[], prefix_operators=[], qualifier=stored, selectors=[], type_arguments=None), name=deleteReferences)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=HBeanRow, sub_type=None))], dimensions=[], name=Set, sub_type=None)), TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=deleteReferences, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=deleteReferences, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getLazy, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=None)), label=None), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=provided, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=removePredecessor, postfix_operators=[], prefix_operators=[], qualifier=row, selectors=[], type_arguments=None), name=mutation)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=RowMutations, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=mutation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=mutations, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=deleteReferences, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=row)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HBeanRow, sub_type=None))), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Broken predecessors")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['HBeanNotFoundException']))], finally_block=None, label=None, resources=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=rowMutations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=mutations, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=keySet, postfix_operators=[], prefix_operators=[], qualifier=providedRows, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=provided)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=HBeanRow, sub_type=None))), label=None) call[table.mutate, parameter[member[.mutations]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[merge] operator[SEP] identifier[Collection] operator[<] identifier[Bean] operator[>] identifier[beans] operator[SEP] Keyword[throws] identifier[AbortRuntimeException] { identifier[init] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[HBeanRow] , identifier[HBeanRow] operator[>] identifier[providedRows] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Bean] identifier[bean] operator[:] identifier[beans] operator[SEP] { identifier[HBeanRow] identifier[row] operator[=] Keyword[new] identifier[HBeanRow] operator[SEP] identifier[bean] , identifier[uids] operator[SEP] operator[SEP] identifier[providedRows] operator[SEP] identifier[put] operator[SEP] identifier[row] , identifier[row] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[BeanId] identifier[id] operator[:] identifier[bean] operator[SEP] identifier[getReferences] operator[SEP] operator[SEP] operator[SEP] { identifier[HBeanRow] identifier[refRow] operator[=] Keyword[new] identifier[HBeanRow] operator[SEP] identifier[id] , identifier[uids] operator[SEP] operator[SEP] identifier[providedRows] operator[SEP] identifier[put] operator[SEP] identifier[refRow] , identifier[refRow] operator[SEP] operator[SEP] } } identifier[HBeanRowCollector] identifier[storedCollector] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[storedCollector] operator[=] identifier[table] operator[SEP] identifier[getEager] operator[SEP] identifier[providedRows] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[HBeanNotFoundException] identifier[e] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[idsFoundIn] operator[SEP] identifier[beans] , identifier[e] operator[SEP] operator[SEP] { Keyword[throw] identifier[Events] operator[SEP] identifier[CFG301_MISSING_RUNTIME_REF] operator[SEP] identifier[e] operator[SEP] identifier[getNotFound] operator[SEP] operator[SEP] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } identifier[Map] operator[<] identifier[HBeanRow] , identifier[HBeanRow] operator[>] identifier[storedRows] operator[=] identifier[storedCollector] operator[SEP] identifier[getRowMap] operator[SEP] operator[SEP] operator[SEP] identifier[Set] operator[<] identifier[RowMutations] operator[>] identifier[mutations] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[HBeanRow] identifier[provided] operator[:] identifier[providedRows] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] { identifier[HBeanRow] identifier[stored] operator[=] identifier[storedRows] operator[SEP] identifier[get] operator[SEP] identifier[provided] operator[SEP] operator[SEP] identifier[RowMutations] identifier[rowMutations] operator[=] Keyword[new] identifier[RowMutations] operator[SEP] identifier[provided] operator[SEP] identifier[getRowKey] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Set] operator[<] identifier[HBeanRow] operator[>] identifier[deleteReferences] operator[=] identifier[stored] operator[SEP] identifier[merge] operator[SEP] identifier[provided] , identifier[rowMutations] operator[SEP] operator[SEP] Keyword[try] { identifier[deleteReferences] operator[=] identifier[table] operator[SEP] identifier[getLazy] operator[SEP] identifier[deleteReferences] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[HBeanRow] identifier[row] operator[:] identifier[deleteReferences] operator[SEP] { identifier[RowMutations] identifier[mutation] operator[=] identifier[row] operator[SEP] identifier[removePredecessor] operator[SEP] identifier[provided] operator[SEP] operator[SEP] identifier[mutations] operator[SEP] identifier[add] operator[SEP] identifier[mutation] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[HBeanNotFoundException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[mutations] operator[SEP] identifier[add] operator[SEP] identifier[rowMutations] operator[SEP] operator[SEP] } identifier[table] operator[SEP] identifier[mutate] operator[SEP] identifier[mutations] operator[SEP] operator[SEP] }
@Override public boolean enlistOnePhase(UOWCoordinator coord, OnePhaseXAResource opXaRes) throws RollbackException, IllegalStateException, SystemException { if (isClient) { throw new SystemException(); } return etm().enlistOnePhase(coord, opXaRes); }
class class_name[name] begin[{] method[enlistOnePhase, return_type[type[boolean]], modifier[public], parameter[coord, opXaRes]] begin[{] if[member[.isClient]] 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=SystemException, sub_type=None)), label=None) else begin[{] None end[}] return[call[.etm, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[enlistOnePhase] operator[SEP] identifier[UOWCoordinator] identifier[coord] , identifier[OnePhaseXAResource] identifier[opXaRes] operator[SEP] Keyword[throws] identifier[RollbackException] , identifier[IllegalStateException] , identifier[SystemException] { Keyword[if] operator[SEP] identifier[isClient] operator[SEP] { Keyword[throw] Keyword[new] identifier[SystemException] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[etm] operator[SEP] operator[SEP] operator[SEP] identifier[enlistOnePhase] operator[SEP] identifier[coord] , identifier[opXaRes] operator[SEP] operator[SEP] }
public static boolean compareStringLists(List<String> list1, List<String> list2) { if (list1 == null && list2 == null) return true; if (list1 == null || list2 == null) return false; if (list1.size() != list2.size()) return false; for (int i = 0; i < list1.size(); i++) { if (!compareStrings(list1.get(i), list2.get(i))) { return false; } } return true; }
class class_name[name] begin[{] method[compareStringLists, return_type[type[boolean]], modifier[public static], parameter[list1, list2]] begin[{] if[binary_operation[binary_operation[member[.list1], ==, literal[null]], &&, binary_operation[member[.list2], ==, literal[null]]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_operation[binary_operation[member[.list1], ==, literal[null]], ||, binary_operation[member[.list2], ==, literal[null]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[call[list1.size, parameter[]], !=, call[list2.size, parameter[]]]] begin[{] return[literal[false]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=list1, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=list2, selectors=[], type_arguments=None)], member=compareStrings, postfix_operators=[], prefix_operators=['!'], qualifier=, 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=false), 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=list1, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[literal[true]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[compareStringLists] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[list1] , identifier[List] operator[<] identifier[String] operator[>] identifier[list2] operator[SEP] { Keyword[if] operator[SEP] identifier[list1] operator[==] Other[null] operator[&&] identifier[list2] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[list1] operator[==] Other[null] operator[||] identifier[list2] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[list1] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] identifier[list2] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[list1] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[compareStrings] operator[SEP] identifier[list1] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] , identifier[list2] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public static long parseBitrate(String bitrate) { if ("N/A".equals(bitrate)) { return -1; } Matcher m = BITRATE_REGEX.matcher(bitrate); if (!m.find()) { throw new IllegalArgumentException("Invalid bitrate '" + bitrate + "'"); } return (long) (Float.parseFloat(m.group(1)) * 1000); }
class class_name[name] begin[{] method[parseBitrate, return_type[type[long]], modifier[public static], parameter[bitrate]] begin[{] if[literal["N/A"]] begin[{] return[literal[1]] else begin[{] None end[}] local_variable[type[Matcher], m] if[call[m.find, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid bitrate '"), operandr=MemberReference(member=bitrate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] return[Cast(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=group, postfix_operators=[], prefix_operators=[], qualifier=m, selectors=[], type_arguments=None)], member=parseFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000), operator=*), type=BasicType(dimensions=[], name=long))] end[}] END[}]
Keyword[public] Keyword[static] Keyword[long] identifier[parseBitrate] operator[SEP] identifier[String] identifier[bitrate] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[bitrate] operator[SEP] operator[SEP] { Keyword[return] operator[-] Other[1] operator[SEP] } identifier[Matcher] identifier[m] operator[=] identifier[BITRATE_REGEX] operator[SEP] identifier[matcher] operator[SEP] identifier[bitrate] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[m] operator[SEP] identifier[find] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[bitrate] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[return] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[Float] operator[SEP] identifier[parseFloat] operator[SEP] identifier[m] operator[SEP] identifier[group] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[*] Other[1000] operator[SEP] operator[SEP] }
public static int parse(String duration) { if (StringUtil.blank(duration)) return 1800; int lastChar = duration.length()-1; char suffix = duration.charAt(lastChar); try { int value = Integer.parseInt(duration.substring(0, lastChar), 10); if (suffix == 'm') { return value * 60; } else if (suffix == 's') { return value; } else if (suffix == 'h') { return value * 60 * 60; } else if (suffix == 'd') { return value *24 * 60 * 60; } } catch (NumberFormatException ignore) {} return 1800; }
class class_name[name] begin[{] method[parse, return_type[type[int]], modifier[public static], parameter[duration]] begin[{] if[call[StringUtil.blank, parameter[member[.duration]]]] begin[{] return[literal[1800]] else begin[{] None end[}] local_variable[type[int], lastChar] local_variable[type[char], suffix] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=lastChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=duration, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='m'), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='s'), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='h'), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=suffix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='d'), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=*), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=60), operator=*), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=60), operator=*), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=60), operator=*), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=60), operator=*), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=60), operator=*), label=None)]))], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ignore, types=['NumberFormatException']))], finally_block=None, label=None, resources=None) return[literal[1800]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[parse] operator[SEP] identifier[String] identifier[duration] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtil] operator[SEP] identifier[blank] operator[SEP] identifier[duration] operator[SEP] operator[SEP] Keyword[return] Other[1800] operator[SEP] Keyword[int] identifier[lastChar] operator[=] identifier[duration] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] Keyword[char] identifier[suffix] operator[=] identifier[duration] operator[SEP] identifier[charAt] operator[SEP] identifier[lastChar] operator[SEP] operator[SEP] Keyword[try] { Keyword[int] identifier[value] operator[=] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[duration] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[lastChar] operator[SEP] , Other[10] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[suffix] operator[==] literal[String] operator[SEP] { Keyword[return] identifier[value] operator[*] Other[60] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[suffix] operator[==] literal[String] operator[SEP] { Keyword[return] identifier[value] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[suffix] operator[==] literal[String] operator[SEP] { Keyword[return] identifier[value] operator[*] Other[60] operator[*] Other[60] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[suffix] operator[==] literal[String] operator[SEP] { Keyword[return] identifier[value] operator[*] Other[24] operator[*] Other[60] operator[*] Other[60] operator[SEP] } } Keyword[catch] operator[SEP] identifier[NumberFormatException] identifier[ignore] operator[SEP] { } Keyword[return] Other[1800] operator[SEP] }
protected void startConnectionLostTimer() { synchronized (syncConnectionLost) { if (this.connectionLostTimeout <= 0) { log.trace("Connection lost timer deactivated"); return; } log.trace("Connection lost timer started"); this.websocketRunning = true; restartConnectionLostTimer(); } }
class class_name[name] begin[{] method[startConnectionLostTimer, return_type[void], modifier[protected], parameter[]] begin[{] SYNCHRONIZED[member[.syncConnectionLost]] BEGIN[{] if[binary_operation[THIS[member[None.connectionLostTimeout]], <=, literal[0]]] begin[{] call[log.trace, parameter[literal["Connection lost timer deactivated"]]] return[None] else begin[{] None end[}] call[log.trace, parameter[literal["Connection lost timer started"]]] assign[THIS[member[None.websocketRunning]], literal[true]] call[.restartConnectionLostTimer, parameter[]] END[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[startConnectionLostTimer] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[syncConnectionLost] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[connectionLostTimeout] operator[<=] Other[0] operator[SEP] { identifier[log] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[log] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[websocketRunning] operator[=] literal[boolean] operator[SEP] identifier[restartConnectionLostTimer] operator[SEP] operator[SEP] operator[SEP] } }
public void show(Formatter f) { f.format("Grib2Pds{ id=%d-%d template=%d, forecastTime= %d timeUnit=%s vertLevel=%f}", getParameterCategory(), getParameterNumber(), template, getForecastTime(), getTimeUnit(), getLevelValue1()); }
class class_name[name] begin[{] method[show, return_type[void], modifier[public], parameter[f]] begin[{] call[f.format, parameter[literal["Grib2Pds{ id=%d-%d template=%d, forecastTime= %d timeUnit=%s vertLevel=%f}"], call[.getParameterCategory, parameter[]], call[.getParameterNumber, parameter[]], member[.template], call[.getForecastTime, parameter[]], call[.getTimeUnit, parameter[]], call[.getLevelValue1, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[show] operator[SEP] identifier[Formatter] identifier[f] operator[SEP] { identifier[f] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[getParameterCategory] operator[SEP] operator[SEP] , identifier[getParameterNumber] operator[SEP] operator[SEP] , identifier[template] , identifier[getForecastTime] operator[SEP] operator[SEP] , identifier[getTimeUnit] operator[SEP] operator[SEP] , identifier[getLevelValue1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static <K, V, M extends Map<K, V>, R> Optional<R> getOptionalIfExist(M map, Function<M, R> returnBuilderFunction) { return getOptional(map).map(returnBuilderFunction); }
class class_name[name] begin[{] method[getOptionalIfExist, return_type[type[Optional]], modifier[public static], parameter[map, returnBuilderFunction]] begin[{] return[call[.getOptional, parameter[member[.map]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] , identifier[M] Keyword[extends] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] , identifier[R] operator[>] identifier[Optional] operator[<] identifier[R] operator[>] identifier[getOptionalIfExist] operator[SEP] identifier[M] identifier[map] , identifier[Function] operator[<] identifier[M] , identifier[R] operator[>] identifier[returnBuilderFunction] operator[SEP] { Keyword[return] identifier[getOptional] operator[SEP] identifier[map] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[returnBuilderFunction] operator[SEP] operator[SEP] }
final Serializable fetchValue(String columnName, int columnIndex, int type, final int meta, boolean isBinary) { int len = 0; if (type == LogEvent.MYSQL_TYPE_STRING) { if (meta >= 256) { int byte0 = meta >> 8; int byte1 = meta & 0xff; if ((byte0 & 0x30) != 0x30) { /* a long CHAR() field: see #37426 */ len = byte1 | (((byte0 & 0x30) ^ 0x30) << 4); type = byte0 | 0x30; } else { switch (byte0) { case LogEvent.MYSQL_TYPE_SET: case LogEvent.MYSQL_TYPE_ENUM: case LogEvent.MYSQL_TYPE_STRING: type = byte0; len = byte1; break; default: throw new IllegalArgumentException(String.format("!! Don't know how to handle column type=%d meta=%d (%04X)", type, meta, meta)); } } } else { len = meta; } } switch (type) { case LogEvent.MYSQL_TYPE_LONG: { // XXX: How to check signed / unsigned? // value = unsigned ? Long.valueOf(buffer.getUint32()) : // Integer.valueOf(buffer.getInt32()); value = Integer.valueOf(buffer.getInt32()); javaType = Types.INTEGER; length = 4; break; } case LogEvent.MYSQL_TYPE_TINY: { // XXX: How to check signed / unsigned? // value = Integer.valueOf(unsigned ? buffer.getUint8() : // buffer.getInt8()); value = Integer.valueOf(buffer.getInt8()); javaType = Types.TINYINT; // java.sql.Types.INTEGER; length = 1; break; } case LogEvent.MYSQL_TYPE_SHORT: { // XXX: How to check signed / unsigned? // value = Integer.valueOf(unsigned ? buffer.getUint16() : // buffer.getInt16()); value = Integer.valueOf((short) buffer.getInt16()); javaType = Types.SMALLINT; // java.sql.Types.INTEGER; length = 2; break; } case LogEvent.MYSQL_TYPE_INT24: { // XXX: How to check signed / unsigned? // value = Integer.valueOf(unsigned ? buffer.getUint24() : // buffer.getInt24()); value = Integer.valueOf(buffer.getInt24()); javaType = Types.INTEGER; length = 3; break; } case LogEvent.MYSQL_TYPE_LONGLONG: { // XXX: How to check signed / unsigned? // value = unsigned ? buffer.getUlong64()) : // Long.valueOf(buffer.getLong64()); value = Long.valueOf(buffer.getLong64()); javaType = Types.BIGINT; // Types.INTEGER; length = 8; break; } case LogEvent.MYSQL_TYPE_DECIMAL: { /* * log_event.h : This enumeration value is only used internally * and cannot exist in a binlog. */ logger.warn("MYSQL_TYPE_DECIMAL : This enumeration value is " + "only used internally and cannot exist in a binlog!"); javaType = Types.DECIMAL; value = null; /* unknown format */ length = 0; break; } case LogEvent.MYSQL_TYPE_NEWDECIMAL: { final int precision = meta >> 8; final int decimals = meta & 0xff; value = buffer.getDecimal(precision, decimals); javaType = Types.DECIMAL; length = precision; break; } case LogEvent.MYSQL_TYPE_FLOAT: { value = Float.valueOf(buffer.getFloat32()); javaType = Types.REAL; // Types.FLOAT; length = 4; break; } case LogEvent.MYSQL_TYPE_DOUBLE: { value = Double.valueOf(buffer.getDouble64()); javaType = Types.DOUBLE; length = 8; break; } case LogEvent.MYSQL_TYPE_BIT: { /* Meta-data: bit_len, bytes_in_rec, 2 bytes */ final int nbits = ((meta >> 8) * 8) + (meta & 0xff); len = (nbits + 7) / 8; if (nbits > 1) { // byte[] bits = new byte[len]; // buffer.fillBytes(bits, 0, len); // 转化为unsign long switch (len) { case 1: value = buffer.getUint8(); break; case 2: value = buffer.getBeUint16(); break; case 3: value = buffer.getBeUint24(); break; case 4: value = buffer.getBeUint32(); break; case 5: value = buffer.getBeUlong40(); break; case 6: value = buffer.getBeUlong48(); break; case 7: value = buffer.getBeUlong56(); break; case 8: value = buffer.getBeUlong64(); break; default: throw new IllegalArgumentException("!! Unknown Bit len = " + len); } } else { final int bit = buffer.getInt8(); // value = (bit != 0) ? Boolean.TRUE : Boolean.FALSE; value = bit; } javaType = Types.BIT; length = nbits; break; } case LogEvent.MYSQL_TYPE_TIMESTAMP: { // MYSQL DataTypes: TIMESTAMP // range is '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' // UTC // A TIMESTAMP cannot represent the value '1970-01-01 00:00:00' // because that is equivalent to 0 seconds from the epoch and // the value 0 is reserved for representing '0000-00-00 // 00:00:00', the “zero” TIMESTAMP value. final long i32 = buffer.getUint32(); if (i32 == 0) { value = "0000-00-00 00:00:00"; } else { String v = new Timestamp(i32 * 1000).toString(); value = v.substring(0, v.length() - 2); } javaType = Types.TIMESTAMP; length = 4; break; } case LogEvent.MYSQL_TYPE_TIMESTAMP2: { final long tv_sec = buffer.getBeUint32(); // big-endian int tv_usec = 0; switch (meta) { case 0: tv_usec = 0; break; case 1: case 2: tv_usec = buffer.getInt8() * 10000; break; case 3: case 4: tv_usec = buffer.getBeInt16() * 100; break; case 5: case 6: tv_usec = buffer.getBeInt24(); break; default: tv_usec = 0; break; } String second = null; if (tv_sec == 0) { second = "0000-00-00 00:00:00"; } else { Timestamp time = new Timestamp(tv_sec * 1000); second = time.toString(); second = second.substring(0, second.length() - 2);// 去掉毫秒精度.0 } if (meta >= 1) { String microSecond = usecondsToStr(tv_usec, meta); microSecond = microSecond.substring(0, meta); value = second + '.' + microSecond; } else { value = second; } javaType = Types.TIMESTAMP; length = 4 + (meta + 1) / 2; break; } case LogEvent.MYSQL_TYPE_DATETIME: { // MYSQL DataTypes: DATETIME // range is '0000-01-01 00:00:00' to '9999-12-31 23:59:59' final long i64 = buffer.getLong64(); /* YYYYMMDDhhmmss */ if (i64 == 0) { value = "0000-00-00 00:00:00"; } else { final int d = (int) (i64 / 1000000); final int t = (int) (i64 % 1000000); // if (cal == null) cal = Calendar.getInstance(); // cal.clear(); /* month is 0-based, 0 for january. */ // cal.set(d / 10000, (d % 10000) / 100 - 1, d % 100, t / // 10000, (t % 10000) / 100, t % 100); // value = new Timestamp(cal.getTimeInMillis()); // value = String.format("%04d-%02d-%02d %02d:%02d:%02d", // d / 10000, // (d % 10000) / 100, // d % 100, // t / 10000, // (t % 10000) / 100, // t % 100); StringBuilder builder = new StringBuilder(); appendNumber4(builder, d / 10000); builder.append('-'); appendNumber2(builder, (d % 10000) / 100); builder.append('-'); appendNumber2(builder, d % 100); builder.append(' '); appendNumber2(builder, t / 10000); builder.append(':'); appendNumber2(builder, (t % 10000) / 100); builder.append(':'); appendNumber2(builder, t % 100); value = builder.toString(); } javaType = Types.TIMESTAMP; length = 8; break; } case LogEvent.MYSQL_TYPE_DATETIME2: { /* * DATETIME and DATE low-level memory and disk representation * routines 1 bit sign (used when on disk) 17 bits year*13+month * (year 0-9999, month 0-12) 5 bits day (0-31) 5 bits hour * (0-23) 6 bits minute (0-59) 6 bits second (0-59) 24 bits * microseconds (0-999999) Total: 64 bits = 8 bytes * SYYYYYYY.YYYYYYYY * .YYdddddh.hhhhmmmm.mmssssss.ffffffff.ffffffff.ffffffff */ long intpart = buffer.getBeUlong40() - DATETIMEF_INT_OFS; // big-endian int frac = 0; switch (meta) { case 0: frac = 0; break; case 1: case 2: frac = buffer.getInt8() * 10000; break; case 3: case 4: frac = buffer.getBeInt16() * 100; break; case 5: case 6: frac = buffer.getBeInt24(); break; default: frac = 0; break; } String second = null; if (intpart == 0) { second = "0000-00-00 00:00:00"; } else { // 构造TimeStamp只处理到秒 long ymd = intpart >> 17; long ym = ymd >> 5; long hms = intpart % (1 << 17); // if (cal == null) cal = Calendar.getInstance(); // cal.clear(); // cal.set((int) (ym / 13), (int) (ym % 13) - 1, (int) (ymd // % (1 << 5)), (int) (hms >> 12), // (int) ((hms >> 6) % (1 << 6)), (int) (hms % (1 << 6))); // value = new Timestamp(cal.getTimeInMillis()); // second = String.format("%04d-%02d-%02d %02d:%02d:%02d", // (int) (ym / 13), // (int) (ym % 13), // (int) (ymd % (1 << 5)), // (int) (hms >> 12), // (int) ((hms >> 6) % (1 << 6)), // (int) (hms % (1 << 6))); StringBuilder builder = new StringBuilder(26); appendNumber4(builder, (int) (ym / 13)); builder.append('-'); appendNumber2(builder, (int) (ym % 13)); builder.append('-'); appendNumber2(builder, (int) (ymd % (1 << 5))); builder.append(' '); appendNumber2(builder, (int) (hms >> 12)); builder.append(':'); appendNumber2(builder, (int) ((hms >> 6) % (1 << 6))); builder.append(':'); appendNumber2(builder, (int) (hms % (1 << 6))); second = builder.toString(); } if (meta >= 1) { String microSecond = usecondsToStr(frac, meta); microSecond = microSecond.substring(0, meta); value = second + '.' + microSecond; } else { value = second; } javaType = Types.TIMESTAMP; length = 5 + (meta + 1) / 2; break; } case LogEvent.MYSQL_TYPE_TIME: { // MYSQL DataTypes: TIME // The range is '-838:59:59' to '838:59:59' // final int i32 = buffer.getUint24(); final int i32 = buffer.getInt24(); final int u32 = Math.abs(i32); if (i32 == 0) { value = "00:00:00"; } else { // if (cal == null) cal = Calendar.getInstance(); // cal.clear(); // cal.set(70, 0, 1, i32 / 10000, (i32 % 10000) / 100, i32 % // 100); // value = new Time(cal.getTimeInMillis()); // value = String.format("%s%02d:%02d:%02d", // (i32 >= 0) ? "" : "-", // u32 / 10000, // (u32 % 10000) / 100, // u32 % 100); StringBuilder builder = new StringBuilder(17); if (i32 < 0) { builder.append('-'); } int d = u32 / 10000; if (d > 100) { builder.append(String.valueOf(d)); } else { appendNumber2(builder, d); } builder.append(':'); appendNumber2(builder, (u32 % 10000) / 100); builder.append(':'); appendNumber2(builder, u32 % 100); value = builder.toString(); } javaType = Types.TIME; length = 3; break; } case LogEvent.MYSQL_TYPE_TIME2: { /* * TIME low-level memory and disk representation routines * In-memory format: 1 bit sign (Used for sign, when on disk) 1 * bit unused (Reserved for wider hour range, e.g. for * intervals) 10 bit hour (0-836) 6 bit minute (0-59) 6 bit * second (0-59) 24 bits microseconds (0-999999) Total: 48 bits * = 6 bytes * Suhhhhhh.hhhhmmmm.mmssssss.ffffffff.ffffffff.ffffffff */ long intpart = 0; int frac = 0; long ltime = 0; switch (meta) { case 0: intpart = buffer.getBeUint24() - TIMEF_INT_OFS; // big-endian ltime = intpart << 24; break; case 1: case 2: intpart = buffer.getBeUint24() - TIMEF_INT_OFS; frac = buffer.getUint8(); if (intpart < 0 && frac > 0) { /* * Negative values are stored with reverse * fractional part order, for binary sort * compatibility. Disk value intpart frac Time value * Memory value 800000.00 0 0 00:00:00.00 * 0000000000.000000 7FFFFF.FF -1 255 -00:00:00.01 * FFFFFFFFFF.FFD8F0 7FFFFF.9D -1 99 -00:00:00.99 * FFFFFFFFFF.F0E4D0 7FFFFF.00 -1 0 -00:00:01.00 * FFFFFFFFFF.000000 7FFFFE.FF -1 255 -00:00:01.01 * FFFFFFFFFE.FFD8F0 7FFFFE.F6 -2 246 -00:00:01.10 * FFFFFFFFFE.FE7960 Formula to convert fractional * part from disk format (now stored in "frac" * variable) to absolute value: "0x100 - frac". To * reconstruct in-memory value, we shift to the next * integer value and then substruct fractional part. */ intpart++; /* Shift to the next integer value */ frac -= 0x100; /* -(0x100 - frac) */ // fraclong = frac * 10000; } frac = frac * 10000; ltime = intpart << 24; break; case 3: case 4: intpart = buffer.getBeUint24() - TIMEF_INT_OFS; frac = buffer.getBeUint16(); if (intpart < 0 && frac > 0) { /* * Fix reverse fractional part order: * "0x10000 - frac". See comments for FSP=1 and * FSP=2 above. */ intpart++; /* Shift to the next integer value */ frac -= 0x10000; /* -(0x10000-frac) */ // fraclong = frac * 100; } frac = frac * 100; ltime = intpart << 24; break; case 5: case 6: intpart = buffer.getBeUlong48() - TIMEF_OFS; ltime = intpart; frac = (int) (intpart % (1L << 24)); break; default: intpart = buffer.getBeUint24() - TIMEF_INT_OFS; ltime = intpart << 24; break; } String second = null; if (intpart == 0) { second = "00:00:00"; } else { // 目前只记录秒,不处理us frac // if (cal == null) cal = Calendar.getInstance(); // cal.clear(); // cal.set(70, 0, 1, (int) ((intpart >> 12) % (1 << 10)), // (int) ((intpart >> 6) % (1 << 6)), // (int) (intpart % (1 << 6))); // value = new Time(cal.getTimeInMillis()); long ultime = Math.abs(ltime); intpart = ultime >> 24; // second = String.format("%s%02d:%02d:%02d", // ltime >= 0 ? "" : "-", // (int) ((intpart >> 12) % (1 << 10)), // (int) ((intpart >> 6) % (1 << 6)), // (int) (intpart % (1 << 6))); StringBuilder builder = new StringBuilder(12); if (ltime < 0) { builder.append('-'); } int d = (int) ((intpart >> 12) % (1 << 10)); if (d > 100) { builder.append(String.valueOf(d)); } else { appendNumber2(builder, d); } builder.append(':'); appendNumber2(builder, (int) ((intpart >> 6) % (1 << 6))); builder.append(':'); appendNumber2(builder, (int) (intpart % (1 << 6))); second = builder.toString(); } if (meta >= 1) { String microSecond = usecondsToStr(Math.abs(frac), meta); microSecond = microSecond.substring(0, meta); value = second + '.' + microSecond; } else { value = second; } javaType = Types.TIME; length = 3 + (meta + 1) / 2; break; } case LogEvent.MYSQL_TYPE_NEWDATE: { /* * log_event.h : This enumeration value is only used internally * and cannot exist in a binlog. */ logger.warn("MYSQL_TYPE_NEWDATE : This enumeration value is " + "only used internally and cannot exist in a binlog!"); javaType = Types.DATE; value = null; /* unknown format */ length = 0; break; } case LogEvent.MYSQL_TYPE_DATE: { // MYSQL DataTypes: // range: 0000-00-00 ~ 9999-12-31 final int i32 = buffer.getUint24(); if (i32 == 0) { value = "0000-00-00"; } else { // if (cal == null) cal = Calendar.getInstance(); // cal.clear(); /* month is 0-based, 0 for january. */ // cal.set((i32 / (16 * 32)), (i32 / 32 % 16) - 1, (i32 % // 32)); // value = new java.sql.Date(cal.getTimeInMillis()); // value = String.format("%04d-%02d-%02d", i32 / (16 * 32), // i32 / 32 % 16, i32 % 32); StringBuilder builder = new StringBuilder(12); appendNumber4(builder, i32 / (16 * 32)); builder.append('-'); appendNumber2(builder, i32 / 32 % 16); builder.append('-'); appendNumber2(builder, i32 % 32); value = builder.toString(); } javaType = Types.DATE; length = 3; break; } case LogEvent.MYSQL_TYPE_YEAR: { // MYSQL DataTypes: YEAR[(2|4)] // In four-digit format, values display as 1901 to 2155, and // 0000. // In two-digit format, values display as 70 to 69, representing // years from 1970 to 2069. final int i32 = buffer.getUint8(); // If connection property 'YearIsDateType' has // set, value is java.sql.Date. /* * if (cal == null) cal = Calendar.getInstance(); cal.clear(); * cal.set(Calendar.YEAR, i32 + 1900); value = new * java.sql.Date(cal.getTimeInMillis()); */ // The else, value is java.lang.Short. if (i32 == 0) { value = "0000"; } else { value = String.valueOf((short) (i32 + 1900)); } // It might seem more correct to create a java.sql.Types.DATE // value // for this date, but it is much simpler to pass the value as an // integer. The MySQL JDBC specification states that one can // pass a java int between 1901 and 2055. Creating a DATE value // causes truncation errors with certain SQL_MODES // (e.g."STRICT_TRANS_TABLES"). javaType = Types.VARCHAR; // Types.INTEGER; length = 1; break; } case LogEvent.MYSQL_TYPE_ENUM: { final int int32; /* * log_event.h : This enumeration value is only used internally * and cannot exist in a binlog. */ switch (len) { case 1: int32 = buffer.getUint8(); break; case 2: int32 = buffer.getUint16(); break; default: throw new IllegalArgumentException("!! Unknown ENUM packlen = " + len); } // logger.warn("MYSQL_TYPE_ENUM : This enumeration value is " // + "only used internally and cannot exist in a binlog!"); value = Integer.valueOf(int32); javaType = Types.INTEGER; length = len; break; } case LogEvent.MYSQL_TYPE_SET: { final int nbits = (meta & 0xFF) * 8; len = (nbits + 7) / 8; if (nbits > 1) { // byte[] bits = new byte[len]; // buffer.fillBytes(bits, 0, len); // 转化为unsign long switch (len) { case 1: value = buffer.getUint8(); break; case 2: value = buffer.getUint16(); break; case 3: value = buffer.getUint24(); break; case 4: value = buffer.getUint32(); break; case 5: value = buffer.getUlong40(); break; case 6: value = buffer.getUlong48(); break; case 7: value = buffer.getUlong56(); break; case 8: value = buffer.getUlong64(); break; default: throw new IllegalArgumentException("!! Unknown Set len = " + len); } } else { final int bit = buffer.getInt8(); // value = (bit != 0) ? Boolean.TRUE : Boolean.FALSE; value = bit; } javaType = Types.BIT; length = len; break; } case LogEvent.MYSQL_TYPE_TINY_BLOB: { /* * log_event.h : This enumeration value is only used internally * and cannot exist in a binlog. */ logger.warn("MYSQL_TYPE_TINY_BLOB : This enumeration value is " + "only used internally and cannot exist in a binlog!"); } case LogEvent.MYSQL_TYPE_MEDIUM_BLOB: { /* * log_event.h : This enumeration value is only used internally * and cannot exist in a binlog. */ logger.warn("MYSQL_TYPE_MEDIUM_BLOB : This enumeration value is " + "only used internally and cannot exist in a binlog!"); } case LogEvent.MYSQL_TYPE_LONG_BLOB: { /* * log_event.h : This enumeration value is only used internally * and cannot exist in a binlog. */ logger.warn("MYSQL_TYPE_LONG_BLOB : This enumeration value is " + "only used internally and cannot exist in a binlog!"); } case LogEvent.MYSQL_TYPE_BLOB: { /* * BLOB or TEXT datatype */ switch (meta) { case 1: { /* TINYBLOB/TINYTEXT */ final int len8 = buffer.getUint8(); byte[] binary = new byte[len8]; buffer.fillBytes(binary, 0, len8); value = binary; javaType = Types.VARBINARY; length = len8; break; } case 2: { /* BLOB/TEXT */ final int len16 = buffer.getUint16(); byte[] binary = new byte[len16]; buffer.fillBytes(binary, 0, len16); value = binary; javaType = Types.LONGVARBINARY; length = len16; break; } case 3: { /* MEDIUMBLOB/MEDIUMTEXT */ final int len24 = buffer.getUint24(); byte[] binary = new byte[len24]; buffer.fillBytes(binary, 0, len24); value = binary; javaType = Types.LONGVARBINARY; length = len24; break; } case 4: { /* LONGBLOB/LONGTEXT */ final int len32 = (int) buffer.getUint32(); byte[] binary = new byte[len32]; buffer.fillBytes(binary, 0, len32); value = binary; javaType = Types.LONGVARBINARY; length = len32; break; } default: throw new IllegalArgumentException("!! Unknown BLOB packlen = " + meta); } break; } case LogEvent.MYSQL_TYPE_VARCHAR: case LogEvent.MYSQL_TYPE_VAR_STRING: { /* * Except for the data length calculation, MYSQL_TYPE_VARCHAR, * MYSQL_TYPE_VAR_STRING and MYSQL_TYPE_STRING are handled the * same way. */ len = meta; if (len < 256) { len = buffer.getUint8(); } else { len = buffer.getUint16(); } if (isBinary) { // fixed issue #66 ,binary类型在binlog中为var_string /* fill binary */ byte[] binary = new byte[len]; buffer.fillBytes(binary, 0, len); javaType = Types.VARBINARY; value = binary; } else { value = buffer.getFullString(len, charsetName); javaType = Types.VARCHAR; } length = len; break; } case LogEvent.MYSQL_TYPE_STRING: { if (len < 256) { len = buffer.getUint8(); } else { len = buffer.getUint16(); } if (isBinary) { /* fill binary */ byte[] binary = new byte[len]; buffer.fillBytes(binary, 0, len); javaType = Types.BINARY; value = binary; } else { value = buffer.getFullString(len, charsetName); javaType = Types.CHAR; // Types.VARCHAR; } length = len; break; } case LogEvent.MYSQL_TYPE_JSON: { switch (meta) { case 1: { len = buffer.getUint8(); break; } case 2: { len = buffer.getUint16(); break; } case 3: { len = buffer.getUint24(); break; } case 4: { len = (int) buffer.getUint32(); break; } default: throw new IllegalArgumentException("!! Unknown JSON packlen = " + meta); } if (partialBits.get(1)) { // print_json_diff int position = buffer.position(); StringBuilder builder = JsonDiffConversion.print_json_diff(buffer, len, columnName, columnIndex, charsetName); value = builder.toString(); buffer.position(position + len); } else { if (0 == len) { // fixed issue #1 by lava, json column of zero length // has no // value, value parsing should be skipped value = ""; } else { int position = buffer.position(); Json_Value jsonValue = JsonConversion.parse_value(buffer.getUint8(), buffer, len - 1, charsetName); StringBuilder builder = new StringBuilder(); jsonValue.toJsonString(builder, charsetName); value = builder.toString(); buffer.position(position + len); } } javaType = Types.VARCHAR; length = len; break; } case LogEvent.MYSQL_TYPE_GEOMETRY: { /* * MYSQL_TYPE_GEOMETRY: copy from BLOB or TEXT */ switch (meta) { case 1: len = buffer.getUint8(); break; case 2: len = buffer.getUint16(); break; case 3: len = buffer.getUint24(); break; case 4: len = (int) buffer.getUint32(); break; default: throw new IllegalArgumentException("!! Unknown MYSQL_TYPE_GEOMETRY packlen = " + meta); } /* fill binary */ byte[] binary = new byte[len]; buffer.fillBytes(binary, 0, len); /* Warning unsupport cloumn type */ // logger.warn(String.format("!! Unsupport column type MYSQL_TYPE_GEOMETRY: meta=%d (%04X), len = %d", // meta, // meta, // len)); javaType = Types.BINARY; value = binary; length = len; break; } default: logger.error(String.format("!! Don't know how to handle column type=%d meta=%d (%04X)", type, meta, meta)); javaType = Types.OTHER; value = null; length = 0; } return value; }
class class_name[name] begin[{] method[fetchValue, return_type[type[Serializable]], modifier[final], parameter[columnName, columnIndex, type, meta, isBinary]] begin[{] local_variable[type[int], len] if[binary_operation[member[.type], ==, member[LogEvent.MYSQL_TYPE_STRING]]] begin[{] if[binary_operation[member[.meta], >=, literal[256]]] begin[{] local_variable[type[int], byte0] local_variable[type[int], byte1] if[binary_operation[binary_operation[member[.byte0], &, literal[0x30]], !=, literal[0x30]]] begin[{] assign[member[.len], binary_operation[member[.byte1], |, binary_operation[binary_operation[binary_operation[member[.byte0], &, literal[0x30]], ^, literal[0x30]], <<, literal[4]]]] assign[member[.type], binary_operation[member[.byte0], |, literal[0x30]]] else begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_SET, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[]), MemberReference(member=MYSQL_TYPE_ENUM, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[]), MemberReference(member=MYSQL_TYPE_STRING, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=byte0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=byte1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Don't know how to handle column type=%d meta=%d (%04X)"), MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], 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)])], expression=MemberReference(member=byte0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) end[}] else begin[{] assign[member[.len], member[.meta]] end[}] else begin[{] None end[}] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_LONG, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getInt32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=INTEGER, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_TINY, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getInt8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TINYINT, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_SHORT, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Cast(expression=MethodInvocation(arguments=[], member=getInt16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=short))], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=SMALLINT, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_INT24, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getInt24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=INTEGER, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_LONGLONG, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getLong64, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=BIGINT, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_DECIMAL, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MYSQL_TYPE_DECIMAL : This enumeration value is "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="only used internally and cannot exist in a binlog!"), operator=+)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=DECIMAL, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, 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=[MemberReference(member=MYSQL_TYPE_NEWDECIMAL, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=>>), name=precision)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0xff), operator=&), name=decimals)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=precision, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=decimals, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getDecimal, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=DECIMAL, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=precision, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_FLOAT, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFloat32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=REAL, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_DOUBLE, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDouble64, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=DOUBLE, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_BIT, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=>>), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=*), operandr=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0xff), operator=&), operator=+), name=nbits)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=nbits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=/)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=nbits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getInt8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=bit)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=bit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUlong40, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUlong48, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUlong56, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUlong64, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Unknown Bit len = "), operandr=MemberReference(member=len, 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=IllegalArgumentException, sub_type=None)), label=None)])], expression=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=BIT, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=nbits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_TIMESTAMP, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=i32)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000), operator=*)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=Timestamp, sub_type=None)), name=v)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=v, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=-)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=v, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="0000-00-00 00:00:00")), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TIMESTAMP, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_TIMESTAMP2, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getBeUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=tv_sec)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=tv_usec)], modifiers=set(), type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tv_usec, 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=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tv_usec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getInt8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=*)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tv_usec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeInt16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=*)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tv_usec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeInt24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tv_usec, 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)])], expression=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), name=second)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=tv_sec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(member=tv_sec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000), operator=*)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Timestamp, sub_type=None)), name=time)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Timestamp, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=time, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=second, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=-)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=second, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="0000-00-00 00:00:00")), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=tv_usec, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=usecondsToStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=microSecond)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=microSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=microSecond, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.'), operator=+), operandr=MemberReference(member=microSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TIMESTAMP, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=/), operator=+)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_DATETIME, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getLong64, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=i64)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i64, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=BinaryOperation(operandl=MemberReference(member=i64, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000000), operator=/), type=BasicType(dimensions=[], name=int)), name=d)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=BinaryOperation(operandl=MemberReference(member=i64, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000000), operator=%), type=BasicType(dimensions=[], name=int)), name=t)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None)), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=/)], member=appendNumber4, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=%), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=/)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=%)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=' ')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=/)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=%), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=/)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=%)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="0000-00-00 00:00:00")), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TIMESTAMP, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_DATETIME2, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeUlong40, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=MemberReference(member=DATETIMEF_INT_OFS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), name=intpart)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=frac)], modifiers=set(), type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, 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=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getInt8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=*)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeInt16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=*)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeInt24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, 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)])], expression=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), name=second)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=17), operator=>>), name=ymd)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=ymd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=>>), name=ym)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=17), operator=<<), operator=%), name=hms)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=26)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None)), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=ym, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=13), operator=/), type=BasicType(dimensions=[], name=int))], member=appendNumber4, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=ym, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=13), operator=%), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=ymd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<<), operator=%), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=' ')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=hms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), operator=>>), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=hms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=>>), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<<), operator=%), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=hms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<<), operator=%), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="0000-00-00 00:00:00")), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=usecondsToStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=microSecond)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=microSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=microSecond, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.'), operator=+), operandr=MemberReference(member=microSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TIMESTAMP, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=/), operator=+)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_TIME, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getInt24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=i32)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=abs, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), name=u32)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=17)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None)), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i32, 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=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=u32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=/), name=d)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=>), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=u32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=%), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=/)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=u32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=%)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="00:00:00")), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TIME, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_TIME2, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=intpart)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=frac)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=ltime)], modifiers=set(), type=BasicType(dimensions=[], name=long)), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=MemberReference(member=TIMEF_INT_OFS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=ltime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=<<)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=MemberReference(member=TIMEF_INT_OFS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=<), operandr=BinaryOperation(operandl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=intpart, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=-=, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0x100)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10000), operator=*)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=ltime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=<<)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=MemberReference(member=TIMEF_INT_OFS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getBeUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=<), operandr=BinaryOperation(operandl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=intpart, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=-=, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0x10000)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=*)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=ltime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=<<)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeUlong48, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=MemberReference(member=TIMEF_OFS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=ltime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1L), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=<<), operator=%), type=BasicType(dimensions=[], name=int))), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBeUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), operandr=MemberReference(member=TIMEF_INT_OFS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=ltime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=<<)), label=None), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), name=second)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ltime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=abs, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), name=ultime)], modifiers=set(), type=BasicType(dimensions=[], name=long)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=ultime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=>>)), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None)), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ltime, 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=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), operator=>>), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10), operator=<<), operator=%), type=BasicType(dimensions=[], name=int)), name=d)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=100), operator=>), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=>>), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<<), operator=%), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=':')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=intpart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<<), operator=%), type=BasicType(dimensions=[], name=int))], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="00:00:00")), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=frac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=abs, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=usecondsToStr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=microSecond)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=microSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=microSecond, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=second, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.'), operator=+), operandr=MemberReference(member=microSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=TIME, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=/), operator=+)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_NEWDATE, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MYSQL_TYPE_NEWDATE : This enumeration value is "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="only used internally and cannot exist in a binlog!"), operator=+)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=DATE, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, 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=[MemberReference(member=MYSQL_TYPE_DATE, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=i32)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None)), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=32), operator=*), operator=/)], member=appendNumber4, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=32), operator=/), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operator=%)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=32), operator=%)], member=appendNumber2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="0000-00-00")), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=DATE, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_YEAR, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=i32)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i32, 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=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Cast(expression=BinaryOperation(operandl=MemberReference(member=i32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1900), operator=+), type=BasicType(dimensions=[], name=short))], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="0000")), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=VARCHAR, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_ENUM, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=int32)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=int32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=int32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Unknown ENUM packlen = "), operandr=MemberReference(member=len, 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=IllegalArgumentException, sub_type=None)), label=None)])], expression=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=int32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=INTEGER, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_SET, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0xFF), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=*), name=nbits)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=nbits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=/)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=nbits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getInt8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=bit)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=bit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUlong40, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUlong48, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUlong56, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUlong64, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Unknown Set len = "), operandr=MemberReference(member=len, 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=IllegalArgumentException, sub_type=None)), label=None)])], expression=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=BIT, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_TINY_BLOB, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MYSQL_TYPE_TINY_BLOB : This enumeration value is "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="only used internally and cannot exist in a binlog!"), operator=+)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_MEDIUM_BLOB, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MYSQL_TYPE_MEDIUM_BLOB : This enumeration value is "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="only used internally and cannot exist in a binlog!"), operator=+)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_LONG_BLOB, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MYSQL_TYPE_LONG_BLOB : This enumeration value is "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="only used internally and cannot exist in a binlog!"), operator=+)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_BLOB, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=len8)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len8, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len8, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=VARBINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len8, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=len16)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len16, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len16, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=LONGVARBINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len16, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=len24)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len24, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len24, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=LONGVARBINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len24, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[], member=getUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int)), name=len32)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=LONGVARBINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Unknown BLOB packlen = "), operandr=MemberReference(member=meta, 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=IllegalArgumentException, sub_type=None)), label=None)])], expression=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_VARCHAR, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[]), MemberReference(member=MYSQL_TYPE_VAR_STRING, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=256), operator=<), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=MemberReference(member=isBinary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=charsetName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getFullString, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=VARCHAR, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=VARBINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_STRING, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=256), operator=<), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=MemberReference(member=isBinary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=charsetName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getFullString, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=CHAR, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=BINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_JSON, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[], member=getUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int))), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Unknown JSON packlen = "), operandr=MemberReference(member=meta, 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=IllegalArgumentException, sub_type=None)), label=None)])], expression=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=get, postfix_operators=[], prefix_operators=[], qualifier=partialBits, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operandr=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=position, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=position)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), MemberReference(member=buffer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), MemberReference(member=charsetName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parse_value, postfix_operators=[], prefix_operators=[], qualifier=JsonConversion, selectors=[], type_arguments=None), name=jsonValue)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Json_Value, 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=StringBuilder, sub_type=None)), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=charsetName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toJsonString, postfix_operators=[], prefix_operators=[], qualifier=jsonValue, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=position, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=position, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="")), label=None)]))]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=position, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), name=position)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=buffer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=columnName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=columnIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=charsetName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=print_json_diff, postfix_operators=[], prefix_operators=[], qualifier=JsonDiffConversion, selectors=[], type_arguments=None), name=builder)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=StringBuilder, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=builder, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=position, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=position, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=VARCHAR, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[MemberReference(member=MYSQL_TYPE_GEOMETRY, postfix_operators=[], prefix_operators=[], qualifier=LogEvent, selectors=[])], statements=[BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint8, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint16, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getUint24, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[], member=getUint32, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int))), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Unknown MYSQL_TYPE_GEOMETRY packlen = "), operandr=MemberReference(member=meta, 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=IllegalArgumentException, sub_type=None)), label=None)])], expression=MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=binary)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fillBytes, postfix_operators=[], prefix_operators=[], qualifier=buffer, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=BINARY, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=binary, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="!! Don't know how to handle column type=%d meta=%d (%04X)"), MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=error, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=javaType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=OTHER, postfix_operators=[], prefix_operators=[], qualifier=Types, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None)])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) return[member[.value]] end[}] END[}]
Keyword[final] identifier[Serializable] identifier[fetchValue] operator[SEP] identifier[String] identifier[columnName] , Keyword[int] identifier[columnIndex] , Keyword[int] identifier[type] , Keyword[final] Keyword[int] identifier[meta] , Keyword[boolean] identifier[isBinary] operator[SEP] { Keyword[int] identifier[len] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[==] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_STRING] operator[SEP] { Keyword[if] operator[SEP] identifier[meta] operator[>=] Other[256] operator[SEP] { Keyword[int] identifier[byte0] operator[=] identifier[meta] operator[>] operator[>] Other[8] operator[SEP] Keyword[int] identifier[byte1] operator[=] identifier[meta] operator[&] literal[Integer] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[byte0] operator[&] literal[Integer] operator[SEP] operator[!=] literal[Integer] operator[SEP] { identifier[len] operator[=] identifier[byte1] operator[|] operator[SEP] operator[SEP] operator[SEP] identifier[byte0] operator[&] literal[Integer] operator[SEP] operator[^] literal[Integer] operator[SEP] operator[<<] Other[4] operator[SEP] operator[SEP] identifier[type] operator[=] identifier[byte0] operator[|] literal[Integer] operator[SEP] } Keyword[else] { Keyword[switch] operator[SEP] identifier[byte0] operator[SEP] { Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_SET] operator[:] Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_ENUM] operator[:] Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_STRING] operator[:] identifier[type] operator[=] identifier[byte0] operator[SEP] identifier[len] operator[=] identifier[byte1] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[type] , identifier[meta] , identifier[meta] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[else] { identifier[len] operator[=] identifier[meta] operator[SEP] } } Keyword[switch] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_LONG] operator[:] { identifier[value] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] identifier[buffer] operator[SEP] identifier[getInt32] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[INTEGER] operator[SEP] identifier[length] operator[=] Other[4] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_TINY] operator[:] { identifier[value] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] identifier[buffer] operator[SEP] identifier[getInt8] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TINYINT] operator[SEP] identifier[length] operator[=] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_SHORT] operator[:] { identifier[value] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] operator[SEP] Keyword[short] operator[SEP] identifier[buffer] operator[SEP] identifier[getInt16] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[SMALLINT] operator[SEP] identifier[length] operator[=] Other[2] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_INT24] operator[:] { identifier[value] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] identifier[buffer] operator[SEP] identifier[getInt24] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[INTEGER] operator[SEP] identifier[length] operator[=] Other[3] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_LONGLONG] operator[:] { identifier[value] operator[=] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[buffer] operator[SEP] identifier[getLong64] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[BIGINT] operator[SEP] identifier[length] operator[=] Other[8] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_DECIMAL] operator[:] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[DECIMAL] operator[SEP] identifier[value] operator[=] Other[null] operator[SEP] identifier[length] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_NEWDECIMAL] operator[:] { Keyword[final] Keyword[int] identifier[precision] operator[=] identifier[meta] operator[>] operator[>] Other[8] operator[SEP] Keyword[final] Keyword[int] identifier[decimals] operator[=] identifier[meta] operator[&] literal[Integer] operator[SEP] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getDecimal] operator[SEP] identifier[precision] , identifier[decimals] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[DECIMAL] operator[SEP] identifier[length] operator[=] identifier[precision] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_FLOAT] operator[:] { identifier[value] operator[=] identifier[Float] operator[SEP] identifier[valueOf] operator[SEP] identifier[buffer] operator[SEP] identifier[getFloat32] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[REAL] operator[SEP] identifier[length] operator[=] Other[4] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_DOUBLE] operator[:] { identifier[value] operator[=] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[buffer] operator[SEP] identifier[getDouble64] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[DOUBLE] operator[SEP] identifier[length] operator[=] Other[8] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_BIT] operator[:] { Keyword[final] Keyword[int] identifier[nbits] operator[=] operator[SEP] operator[SEP] identifier[meta] operator[>] operator[>] Other[8] operator[SEP] operator[*] Other[8] operator[SEP] operator[+] operator[SEP] identifier[meta] operator[&] literal[Integer] operator[SEP] operator[SEP] identifier[len] operator[=] operator[SEP] identifier[nbits] operator[+] Other[7] operator[SEP] operator[/] Other[8] operator[SEP] Keyword[if] operator[SEP] identifier[nbits] operator[>] Other[1] operator[SEP] { Keyword[switch] operator[SEP] identifier[len] operator[SEP] { Keyword[case] Other[1] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUlong40] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUlong48] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[7] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUlong56] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[8] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getBeUlong64] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[len] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[final] Keyword[int] identifier[bit] operator[=] identifier[buffer] operator[SEP] identifier[getInt8] operator[SEP] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[bit] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[BIT] operator[SEP] identifier[length] operator[=] identifier[nbits] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_TIMESTAMP] operator[:] { Keyword[final] Keyword[long] identifier[i32] operator[=] identifier[buffer] operator[SEP] identifier[getUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i32] operator[==] Other[0] operator[SEP] { identifier[value] operator[=] literal[String] operator[SEP] } Keyword[else] { identifier[String] identifier[v] operator[=] Keyword[new] identifier[Timestamp] operator[SEP] identifier[i32] operator[*] Other[1000] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[v] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[v] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[2] operator[SEP] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TIMESTAMP] operator[SEP] identifier[length] operator[=] Other[4] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_TIMESTAMP2] operator[:] { Keyword[final] Keyword[long] identifier[tv_sec] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[tv_usec] operator[=] Other[0] operator[SEP] Keyword[switch] operator[SEP] identifier[meta] operator[SEP] { Keyword[case] Other[0] operator[:] identifier[tv_usec] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[case] Other[2] operator[:] identifier[tv_usec] operator[=] identifier[buffer] operator[SEP] identifier[getInt8] operator[SEP] operator[SEP] operator[*] Other[10000] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[case] Other[4] operator[:] identifier[tv_usec] operator[=] identifier[buffer] operator[SEP] identifier[getBeInt16] operator[SEP] operator[SEP] operator[*] Other[100] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[case] Other[6] operator[:] identifier[tv_usec] operator[=] identifier[buffer] operator[SEP] identifier[getBeInt24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[tv_usec] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] } identifier[String] identifier[second] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[tv_sec] operator[==] Other[0] operator[SEP] { identifier[second] operator[=] literal[String] operator[SEP] } Keyword[else] { identifier[Timestamp] identifier[time] operator[=] Keyword[new] identifier[Timestamp] operator[SEP] identifier[tv_sec] operator[*] Other[1000] operator[SEP] operator[SEP] identifier[second] operator[=] identifier[time] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[second] operator[=] identifier[second] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[second] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[2] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[meta] operator[>=] Other[1] operator[SEP] { identifier[String] identifier[microSecond] operator[=] identifier[usecondsToStr] operator[SEP] identifier[tv_usec] , identifier[meta] operator[SEP] operator[SEP] identifier[microSecond] operator[=] identifier[microSecond] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[meta] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[second] operator[+] literal[String] operator[+] identifier[microSecond] operator[SEP] } Keyword[else] { identifier[value] operator[=] identifier[second] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TIMESTAMP] operator[SEP] identifier[length] operator[=] Other[4] operator[+] operator[SEP] identifier[meta] operator[+] Other[1] operator[SEP] operator[/] Other[2] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[i64] operator[=] identifier[buffer] operator[SEP] identifier[getLong64] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i64] operator[==] Other[0] operator[SEP] { identifier[value] operator[=] literal[String] operator[SEP] } Keyword[else] { Keyword[final] Keyword[int] identifier[d] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[i64] operator[/] Other[1000000] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[t] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[i64] operator[%] Other[1000000] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[appendNumber4] operator[SEP] identifier[builder] , identifier[d] operator[/] Other[10000] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] identifier[d] operator[%] Other[10000] operator[SEP] operator[/] Other[100] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[d] operator[%] Other[100] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[t] operator[/] Other[10000] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] identifier[t] operator[%] Other[10000] operator[SEP] operator[/] Other[100] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[t] operator[%] Other[100] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TIMESTAMP] operator[SEP] identifier[length] operator[=] Other[8] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_DATETIME2] operator[:] { Keyword[long] identifier[intpart] operator[=] identifier[buffer] operator[SEP] identifier[getBeUlong40] operator[SEP] operator[SEP] operator[-] identifier[DATETIMEF_INT_OFS] operator[SEP] Keyword[int] identifier[frac] operator[=] Other[0] operator[SEP] Keyword[switch] operator[SEP] identifier[meta] operator[SEP] { Keyword[case] Other[0] operator[:] identifier[frac] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[case] Other[2] operator[:] identifier[frac] operator[=] identifier[buffer] operator[SEP] identifier[getInt8] operator[SEP] operator[SEP] operator[*] Other[10000] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[case] Other[4] operator[:] identifier[frac] operator[=] identifier[buffer] operator[SEP] identifier[getBeInt16] operator[SEP] operator[SEP] operator[*] Other[100] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[case] Other[6] operator[:] identifier[frac] operator[=] identifier[buffer] operator[SEP] identifier[getBeInt24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[frac] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] } identifier[String] identifier[second] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[intpart] operator[==] Other[0] operator[SEP] { identifier[second] operator[=] literal[String] operator[SEP] } Keyword[else] { Keyword[long] identifier[ymd] operator[=] identifier[intpart] operator[>] operator[>] Other[17] operator[SEP] Keyword[long] identifier[ym] operator[=] identifier[ymd] operator[>] operator[>] Other[5] operator[SEP] Keyword[long] identifier[hms] operator[=] identifier[intpart] operator[%] operator[SEP] Other[1] operator[<<] Other[17] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[26] operator[SEP] operator[SEP] identifier[appendNumber4] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[ym] operator[/] Other[13] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[ym] operator[%] Other[13] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[ymd] operator[%] operator[SEP] Other[1] operator[<<] Other[5] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[hms] operator[>] operator[>] Other[12] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] identifier[hms] operator[>] operator[>] Other[6] operator[SEP] operator[%] operator[SEP] Other[1] operator[<<] Other[6] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[hms] operator[%] operator[SEP] Other[1] operator[<<] Other[6] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[second] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[meta] operator[>=] Other[1] operator[SEP] { identifier[String] identifier[microSecond] operator[=] identifier[usecondsToStr] operator[SEP] identifier[frac] , identifier[meta] operator[SEP] operator[SEP] identifier[microSecond] operator[=] identifier[microSecond] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[meta] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[second] operator[+] literal[String] operator[+] identifier[microSecond] operator[SEP] } Keyword[else] { identifier[value] operator[=] identifier[second] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TIMESTAMP] operator[SEP] identifier[length] operator[=] Other[5] operator[+] operator[SEP] identifier[meta] operator[+] Other[1] operator[SEP] operator[/] Other[2] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_TIME] operator[:] { Keyword[final] Keyword[int] identifier[i32] operator[=] identifier[buffer] operator[SEP] identifier[getInt24] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[u32] operator[=] identifier[Math] operator[SEP] identifier[abs] operator[SEP] identifier[i32] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i32] operator[==] Other[0] operator[SEP] { identifier[value] operator[=] literal[String] operator[SEP] } Keyword[else] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[17] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i32] operator[<] Other[0] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[int] identifier[d] operator[=] identifier[u32] operator[/] Other[10000] operator[SEP] Keyword[if] operator[SEP] identifier[d] operator[>] Other[100] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[d] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[d] operator[SEP] operator[SEP] } identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] identifier[u32] operator[%] Other[10000] operator[SEP] operator[/] Other[100] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[u32] operator[%] Other[100] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TIME] operator[SEP] identifier[length] operator[=] Other[3] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_TIME2] operator[:] { Keyword[long] identifier[intpart] operator[=] Other[0] operator[SEP] Keyword[int] identifier[frac] operator[=] Other[0] operator[SEP] Keyword[long] identifier[ltime] operator[=] Other[0] operator[SEP] Keyword[switch] operator[SEP] identifier[meta] operator[SEP] { Keyword[case] Other[0] operator[:] identifier[intpart] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint24] operator[SEP] operator[SEP] operator[-] identifier[TIMEF_INT_OFS] operator[SEP] identifier[ltime] operator[=] identifier[intpart] operator[<<] Other[24] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[case] Other[2] operator[:] identifier[intpart] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint24] operator[SEP] operator[SEP] operator[-] identifier[TIMEF_INT_OFS] operator[SEP] identifier[frac] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[intpart] operator[<] Other[0] operator[&&] identifier[frac] operator[>] Other[0] operator[SEP] { identifier[intpart] operator[++] operator[SEP] identifier[frac] operator[-=] literal[Integer] operator[SEP] } identifier[frac] operator[=] identifier[frac] operator[*] Other[10000] operator[SEP] identifier[ltime] operator[=] identifier[intpart] operator[<<] Other[24] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[case] Other[4] operator[:] identifier[intpart] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint24] operator[SEP] operator[SEP] operator[-] identifier[TIMEF_INT_OFS] operator[SEP] identifier[frac] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[intpart] operator[<] Other[0] operator[&&] identifier[frac] operator[>] Other[0] operator[SEP] { identifier[intpart] operator[++] operator[SEP] identifier[frac] operator[-=] literal[Integer] operator[SEP] } identifier[frac] operator[=] identifier[frac] operator[*] Other[100] operator[SEP] identifier[ltime] operator[=] identifier[intpart] operator[<<] Other[24] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[case] Other[6] operator[:] identifier[intpart] operator[=] identifier[buffer] operator[SEP] identifier[getBeUlong48] operator[SEP] operator[SEP] operator[-] identifier[TIMEF_OFS] operator[SEP] identifier[ltime] operator[=] identifier[intpart] operator[SEP] identifier[frac] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[intpart] operator[%] operator[SEP] Other[1L] operator[<<] Other[24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[intpart] operator[=] identifier[buffer] operator[SEP] identifier[getBeUint24] operator[SEP] operator[SEP] operator[-] identifier[TIMEF_INT_OFS] operator[SEP] identifier[ltime] operator[=] identifier[intpart] operator[<<] Other[24] operator[SEP] Keyword[break] operator[SEP] } identifier[String] identifier[second] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[intpart] operator[==] Other[0] operator[SEP] { identifier[second] operator[=] literal[String] operator[SEP] } Keyword[else] { Keyword[long] identifier[ultime] operator[=] identifier[Math] operator[SEP] identifier[abs] operator[SEP] identifier[ltime] operator[SEP] operator[SEP] identifier[intpart] operator[=] identifier[ultime] operator[>] operator[>] Other[24] operator[SEP] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[12] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ltime] operator[<] Other[0] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[int] identifier[d] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] identifier[intpart] operator[>] operator[>] Other[12] operator[SEP] operator[%] operator[SEP] Other[1] operator[<<] Other[10] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[d] operator[>] Other[100] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[d] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[d] operator[SEP] operator[SEP] } identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] identifier[intpart] operator[>] operator[>] Other[6] operator[SEP] operator[%] operator[SEP] Other[1] operator[<<] Other[6] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[intpart] operator[%] operator[SEP] Other[1] operator[<<] Other[6] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[second] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[meta] operator[>=] Other[1] operator[SEP] { identifier[String] identifier[microSecond] operator[=] identifier[usecondsToStr] operator[SEP] identifier[Math] operator[SEP] identifier[abs] operator[SEP] identifier[frac] operator[SEP] , identifier[meta] operator[SEP] operator[SEP] identifier[microSecond] operator[=] identifier[microSecond] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[meta] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[second] operator[+] literal[String] operator[+] identifier[microSecond] operator[SEP] } Keyword[else] { identifier[value] operator[=] identifier[second] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[TIME] operator[SEP] identifier[length] operator[=] Other[3] operator[+] operator[SEP] identifier[meta] operator[+] Other[1] operator[SEP] operator[/] Other[2] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_NEWDATE] operator[:] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[DATE] operator[SEP] identifier[value] operator[=] Other[null] operator[SEP] identifier[length] operator[=] Other[0] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_DATE] operator[:] { Keyword[final] Keyword[int] identifier[i32] operator[=] identifier[buffer] operator[SEP] identifier[getUint24] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i32] operator[==] Other[0] operator[SEP] { identifier[value] operator[=] literal[String] operator[SEP] } Keyword[else] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[12] operator[SEP] operator[SEP] identifier[appendNumber4] operator[SEP] identifier[builder] , identifier[i32] operator[/] operator[SEP] Other[16] operator[*] Other[32] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[i32] operator[/] Other[32] operator[%] Other[16] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[appendNumber2] operator[SEP] identifier[builder] , identifier[i32] operator[%] Other[32] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[DATE] operator[SEP] identifier[length] operator[=] Other[3] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_YEAR] operator[:] { Keyword[final] Keyword[int] identifier[i32] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i32] operator[==] Other[0] operator[SEP] { identifier[value] operator[=] literal[String] operator[SEP] } Keyword[else] { identifier[value] operator[=] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] operator[SEP] Keyword[short] operator[SEP] operator[SEP] identifier[i32] operator[+] Other[1900] operator[SEP] operator[SEP] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[VARCHAR] operator[SEP] identifier[length] operator[=] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_ENUM] operator[:] { Keyword[final] Keyword[int] identifier[int32] operator[SEP] Keyword[switch] operator[SEP] identifier[len] operator[SEP] { Keyword[case] Other[1] operator[:] identifier[int32] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] identifier[int32] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[len] operator[SEP] operator[SEP] } identifier[value] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] identifier[int32] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[INTEGER] operator[SEP] identifier[length] operator[=] identifier[len] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_SET] operator[:] { Keyword[final] Keyword[int] identifier[nbits] operator[=] operator[SEP] identifier[meta] operator[&] literal[Integer] operator[SEP] operator[*] Other[8] operator[SEP] identifier[len] operator[=] operator[SEP] identifier[nbits] operator[+] Other[7] operator[SEP] operator[/] Other[8] operator[SEP] Keyword[if] operator[SEP] identifier[nbits] operator[>] Other[1] operator[SEP] { Keyword[switch] operator[SEP] identifier[len] operator[SEP] { Keyword[case] Other[1] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUint24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUlong40] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUlong48] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[7] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUlong56] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[8] operator[:] identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getUlong64] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[len] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[final] Keyword[int] identifier[bit] operator[=] identifier[buffer] operator[SEP] identifier[getInt8] operator[SEP] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[bit] operator[SEP] } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[BIT] operator[SEP] identifier[length] operator[=] identifier[len] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_TINY_BLOB] operator[:] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_MEDIUM_BLOB] operator[:] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_LONG_BLOB] operator[:] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_BLOB] operator[:] { Keyword[switch] operator[SEP] identifier[meta] operator[SEP] { Keyword[case] Other[1] operator[:] { Keyword[final] Keyword[int] identifier[len8] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len8] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len8] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[VARBINARY] operator[SEP] identifier[length] operator[=] identifier[len8] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] Other[2] operator[:] { Keyword[final] Keyword[int] identifier[len16] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len16] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len16] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[LONGVARBINARY] operator[SEP] identifier[length] operator[=] identifier[len16] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] Other[3] operator[:] { Keyword[final] Keyword[int] identifier[len24] operator[=] identifier[buffer] operator[SEP] identifier[getUint24] operator[SEP] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len24] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len24] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[LONGVARBINARY] operator[SEP] identifier[length] operator[=] identifier[len24] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] Other[4] operator[:] { Keyword[final] Keyword[int] identifier[len32] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[buffer] operator[SEP] identifier[getUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len32] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len32] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[LONGVARBINARY] operator[SEP] identifier[length] operator[=] identifier[len32] operator[SEP] Keyword[break] operator[SEP] } Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[meta] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_VARCHAR] operator[:] Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_VAR_STRING] operator[:] { identifier[len] operator[=] identifier[meta] operator[SEP] Keyword[if] operator[SEP] identifier[len] operator[<] Other[256] operator[SEP] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[isBinary] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[VARBINARY] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] } Keyword[else] { identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getFullString] operator[SEP] identifier[len] , identifier[charsetName] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[VARCHAR] operator[SEP] } identifier[length] operator[=] identifier[len] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_STRING] operator[:] { Keyword[if] operator[SEP] identifier[len] operator[<] Other[256] operator[SEP] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[isBinary] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[BINARY] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] } Keyword[else] { identifier[value] operator[=] identifier[buffer] operator[SEP] identifier[getFullString] operator[SEP] identifier[len] , identifier[charsetName] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[CHAR] operator[SEP] } identifier[length] operator[=] identifier[len] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_JSON] operator[:] { Keyword[switch] operator[SEP] identifier[meta] operator[SEP] { Keyword[case] Other[1] operator[:] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] Other[2] operator[:] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] Other[3] operator[:] { identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] Other[4] operator[:] { identifier[len] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[buffer] operator[SEP] identifier[getUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[meta] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[partialBits] operator[SEP] identifier[get] operator[SEP] Other[1] operator[SEP] operator[SEP] { Keyword[int] identifier[position] operator[=] identifier[buffer] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[builder] operator[=] identifier[JsonDiffConversion] operator[SEP] identifier[print_json_diff] operator[SEP] identifier[buffer] , identifier[len] , identifier[columnName] , identifier[columnIndex] , identifier[charsetName] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[position] operator[SEP] identifier[position] operator[+] identifier[len] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] Other[0] operator[==] identifier[len] operator[SEP] { identifier[value] operator[=] literal[String] operator[SEP] } Keyword[else] { Keyword[int] identifier[position] operator[=] identifier[buffer] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[SEP] identifier[Json_Value] identifier[jsonValue] operator[=] identifier[JsonConversion] operator[SEP] identifier[parse_value] operator[SEP] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] , identifier[buffer] , identifier[len] operator[-] Other[1] , identifier[charsetName] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[jsonValue] operator[SEP] identifier[toJsonString] operator[SEP] identifier[builder] , identifier[charsetName] operator[SEP] operator[SEP] identifier[value] operator[=] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[position] operator[SEP] identifier[position] operator[+] identifier[len] operator[SEP] operator[SEP] } } identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[VARCHAR] operator[SEP] identifier[length] operator[=] identifier[len] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[LogEvent] operator[SEP] identifier[MYSQL_TYPE_GEOMETRY] operator[:] { Keyword[switch] operator[SEP] identifier[meta] operator[SEP] { Keyword[case] Other[1] operator[:] identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint8] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint16] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] identifier[len] operator[=] identifier[buffer] operator[SEP] identifier[getUint24] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] identifier[len] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[buffer] operator[SEP] identifier[getUint32] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[meta] operator[SEP] operator[SEP] } Keyword[byte] operator[SEP] operator[SEP] identifier[binary] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[len] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[fillBytes] operator[SEP] identifier[binary] , Other[0] , identifier[len] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[BINARY] operator[SEP] identifier[value] operator[=] identifier[binary] operator[SEP] identifier[length] operator[=] identifier[len] operator[SEP] Keyword[break] operator[SEP] } Keyword[default] operator[:] identifier[logger] operator[SEP] identifier[error] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[type] , identifier[meta] , identifier[meta] operator[SEP] operator[SEP] operator[SEP] identifier[javaType] operator[=] identifier[Types] operator[SEP] identifier[OTHER] operator[SEP] identifier[value] operator[=] Other[null] operator[SEP] identifier[length] operator[=] Other[0] operator[SEP] } Keyword[return] identifier[value] operator[SEP] }
private String[] normalize( String[] list, int minlength ) { if ( list.length < minlength ) { // Need to do padding String[] newlist = new String[minlength]; System.arraycopy( list, 0, newlist, 0, list.length ); Arrays.fill( newlist, list.length, newlist.length, "0" ); return newlist; } else { return list; } }
class class_name[name] begin[{] method[normalize, return_type[type[String]], modifier[private], parameter[list, minlength]] begin[{] if[binary_operation[member[list.length], <, member[.minlength]]] begin[{] local_variable[type[String], newlist] call[System.arraycopy, parameter[member[.list], literal[0], member[.newlist], literal[0], member[list.length]]] call[Arrays.fill, parameter[member[.newlist], member[list.length], member[newlist.length], literal["0"]]] return[member[.newlist]] else begin[{] return[member[.list]] end[}] end[}] END[}]
Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[normalize] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[list] , Keyword[int] identifier[minlength] operator[SEP] { Keyword[if] operator[SEP] identifier[list] operator[SEP] identifier[length] operator[<] identifier[minlength] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[newlist] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[minlength] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[list] , Other[0] , identifier[newlist] , Other[0] , identifier[list] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[Arrays] operator[SEP] identifier[fill] operator[SEP] identifier[newlist] , identifier[list] operator[SEP] identifier[length] , identifier[newlist] operator[SEP] identifier[length] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[newlist] operator[SEP] } Keyword[else] { Keyword[return] identifier[list] operator[SEP] } }
protected void store(Object id, Object entity, boolean spillOverToL2) { String key = cacheKey(entity.getClass(), id); LOG.debug("Writing to L1 >> " + key); sessionCache.put(key, entity); if (spillOverToL2) { LOG.debug("Writing to L2 >>" + key); // save to second level cache Cache c = (Cache) getL2Cache(); if (c != null) { c.put(key, entity); } } }
class class_name[name] begin[{] method[store, return_type[void], modifier[protected], parameter[id, entity, spillOverToL2]] begin[{] local_variable[type[String], key] call[LOG.debug, parameter[binary_operation[literal["Writing to L1 >> "], +, member[.key]]]] call[sessionCache.put, parameter[member[.key], member[.entity]]] if[member[.spillOverToL2]] begin[{] call[LOG.debug, parameter[binary_operation[literal["Writing to L2 >>"], +, member[.key]]]] local_variable[type[Cache], c] if[binary_operation[member[.c], !=, literal[null]]] begin[{] call[c.put, parameter[member[.key], member[.entity]]] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[store] operator[SEP] identifier[Object] identifier[id] , identifier[Object] identifier[entity] , Keyword[boolean] identifier[spillOverToL2] operator[SEP] { identifier[String] identifier[key] operator[=] identifier[cacheKey] operator[SEP] identifier[entity] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] , identifier[id] operator[SEP] operator[SEP] identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[key] operator[SEP] operator[SEP] identifier[sessionCache] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[entity] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[spillOverToL2] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[key] operator[SEP] operator[SEP] identifier[Cache] identifier[c] operator[=] operator[SEP] identifier[Cache] operator[SEP] identifier[getL2Cache] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[!=] Other[null] operator[SEP] { identifier[c] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[entity] operator[SEP] operator[SEP] } } }
private void computeGrid(final MapView pMapView) { // TODO: 15-11-2016 should take map orientation into account in the BBox! BoundingBox viewBBox = pMapView.getBoundingBox(); startBoundingBox = viewBBox; startProjection = pMapView.getProjection(); // do not compute grid if BBox is the same if(viewBBox.getLatNorth() != prevBoundingBox.getLatNorth() || viewBBox.getLatSouth() != prevBoundingBox.getLatSouth() || viewBBox.getLonWest() != prevBoundingBox.getLonWest() || viewBBox.getLonEast() != prevBoundingBox.getLonEast()) { prevBoundingBox = new BoundingBox(viewBBox.getLatNorth(), viewBBox.getLonEast() , viewBBox.getLatSouth(), viewBBox.getLonWest()); if (gridBool == null || viewHei != pMapView.getHeight() || viewWid != pMapView.getWidth()) { updateGrid(pMapView); } else { // empty grid. // TODO: we might leave the grid as it was before to avoid the "flickering"? for (boolean[] row : gridBool) Arrays.fill(row, false); } int gridX, gridY; final Point mPositionPixels = new Point(); final Projection pj = pMapView.getProjection(); gridIndex = new ArrayList<>(); numLabels = 0; for (IGeoPoint pt1 : mPointList) { if (pt1 == null) continue; if (pt1.getLatitude() > viewBBox.getLatSouth() && pt1.getLatitude() < viewBBox.getLatNorth() && pt1.getLongitude() > viewBBox.getLonWest() && pt1.getLongitude() < viewBBox.getLonEast()) { pj.toPixels(pt1, mPositionPixels); // test whether in this grid cell there is already a point, skip if yes gridX = (int) Math.floor((float) mPositionPixels.x / mStyle.mCellSize); gridY = (int) Math.floor((float) mPositionPixels.y / mStyle.mCellSize); if (gridX >= gridWid || gridY >= gridHei || gridX < 0 || gridY < 0 || gridBool[gridX][gridY]) continue; gridBool[gridX][gridY] = true; gridIndex.add(new StyledLabelledPoint(mPositionPixels , mPointList.isLabelled() ? ((LabelledGeoPoint) pt1).getLabel() : null , mPointList.isStyled() ? ((StyledLabelledGeoPoint) pt1).getPointStyle() : null , mPointList.isStyled() ? ((StyledLabelledGeoPoint) pt1).getTextStyle() : null )); numLabels++; } } } }
class class_name[name] begin[{] method[computeGrid, return_type[void], modifier[private], parameter[pMapView]] begin[{] local_variable[type[BoundingBox], viewBBox] assign[member[.startBoundingBox], member[.viewBBox]] assign[member[.startProjection], call[pMapView.getProjection, parameter[]]] if[binary_operation[binary_operation[binary_operation[binary_operation[call[viewBBox.getLatNorth, parameter[]], !=, call[prevBoundingBox.getLatNorth, parameter[]]], ||, binary_operation[call[viewBBox.getLatSouth, parameter[]], !=, call[prevBoundingBox.getLatSouth, parameter[]]]], ||, binary_operation[call[viewBBox.getLonWest, parameter[]], !=, call[prevBoundingBox.getLonWest, parameter[]]]], ||, binary_operation[call[viewBBox.getLonEast, parameter[]], !=, call[prevBoundingBox.getLonEast, parameter[]]]]] begin[{] assign[member[.prevBoundingBox], ClassCreator(arguments=[MethodInvocation(arguments=[], member=getLatNorth, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getLonEast, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getLatSouth, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getLonWest, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BoundingBox, sub_type=None))] if[binary_operation[binary_operation[binary_operation[member[.gridBool], ==, literal[null]], ||, binary_operation[member[.viewHei], !=, call[pMapView.getHeight, parameter[]]]], ||, binary_operation[member[.viewWid], !=, call[pMapView.getWidth, parameter[]]]]] begin[{] call[.updateGrid, parameter[member[.pMapView]]] else begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=row, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=fill, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None), label=None), control=EnhancedForControl(iterable=MemberReference(member=gridBool, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=row)], modifiers=set(), type=BasicType(dimensions=[None], name=boolean))), label=None) end[}] local_variable[type[int], gridX] local_variable[type[Point], mPositionPixels] local_variable[type[Projection], pj] assign[member[.gridIndex], 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))] assign[member[.numLabels], literal[0]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=pt1, 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=ContinueStatement(goto=None, label=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLatitude, postfix_operators=[], prefix_operators=[], qualifier=pt1, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=getLatSouth, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), operator=>), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLatitude, postfix_operators=[], prefix_operators=[], qualifier=pt1, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=getLatNorth, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), operator=<), operator=&&), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLongitude, postfix_operators=[], prefix_operators=[], qualifier=pt1, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=getLonWest, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), operator=>), operator=&&), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLongitude, postfix_operators=[], prefix_operators=[], qualifier=pt1, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=getLonEast, postfix_operators=[], prefix_operators=[], qualifier=viewBBox, selectors=[], type_arguments=None), operator=<), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=mPositionPixels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toPixels, postfix_operators=[], prefix_operators=[], qualifier=pj, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=gridX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Cast(expression=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=mPositionPixels, selectors=[]), type=BasicType(dimensions=[], name=float)), operandr=MemberReference(member=mCellSize, postfix_operators=[], prefix_operators=[], qualifier=mStyle, selectors=[]), operator=/)], member=floor, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=gridY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Cast(expression=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=mPositionPixels, selectors=[]), type=BasicType(dimensions=[], name=float)), operandr=MemberReference(member=mCellSize, postfix_operators=[], prefix_operators=[], qualifier=mStyle, selectors=[]), operator=/)], member=floor, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int))), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=gridX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=gridWid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=gridY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=gridHei, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=gridX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=<), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=gridY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=<), operator=||), operandr=MemberReference(member=gridBool, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=gridX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), ArraySelector(index=MemberReference(member=gridY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=||), else_statement=None, label=None, then_statement=ContinueStatement(goto=None, label=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=gridBool, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=gridX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), ArraySelector(index=MemberReference(member=gridY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=mPositionPixels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), TernaryExpression(condition=MethodInvocation(arguments=[], member=isLabelled, postfix_operators=[], prefix_operators=[], qualifier=mPointList, selectors=[], type_arguments=None), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=Cast(expression=MemberReference(member=pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=LabelledGeoPoint, sub_type=None))), TernaryExpression(condition=MethodInvocation(arguments=[], member=isStyled, postfix_operators=[], prefix_operators=[], qualifier=mPointList, selectors=[], type_arguments=None), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=Cast(expression=MemberReference(member=pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=StyledLabelledGeoPoint, sub_type=None))), TernaryExpression(condition=MethodInvocation(arguments=[], member=isStyled, postfix_operators=[], prefix_operators=[], qualifier=mPointList, selectors=[], type_arguments=None), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=Cast(expression=MemberReference(member=pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=StyledLabelledGeoPoint, sub_type=None)))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StyledLabelledPoint, sub_type=None))], member=add, postfix_operators=[], prefix_operators=[], qualifier=gridIndex, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MemberReference(member=numLabels, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=mPointList, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=pt1)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IGeoPoint, sub_type=None))), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[computeGrid] operator[SEP] Keyword[final] identifier[MapView] identifier[pMapView] operator[SEP] { identifier[BoundingBox] identifier[viewBBox] operator[=] identifier[pMapView] operator[SEP] identifier[getBoundingBox] operator[SEP] operator[SEP] operator[SEP] identifier[startBoundingBox] operator[=] identifier[viewBBox] operator[SEP] identifier[startProjection] operator[=] identifier[pMapView] operator[SEP] identifier[getProjection] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[viewBBox] operator[SEP] identifier[getLatNorth] operator[SEP] operator[SEP] operator[!=] identifier[prevBoundingBox] operator[SEP] identifier[getLatNorth] operator[SEP] operator[SEP] operator[||] identifier[viewBBox] operator[SEP] identifier[getLatSouth] operator[SEP] operator[SEP] operator[!=] identifier[prevBoundingBox] operator[SEP] identifier[getLatSouth] operator[SEP] operator[SEP] operator[||] identifier[viewBBox] operator[SEP] identifier[getLonWest] operator[SEP] operator[SEP] operator[!=] identifier[prevBoundingBox] operator[SEP] identifier[getLonWest] operator[SEP] operator[SEP] operator[||] identifier[viewBBox] operator[SEP] identifier[getLonEast] operator[SEP] operator[SEP] operator[!=] identifier[prevBoundingBox] operator[SEP] identifier[getLonEast] operator[SEP] operator[SEP] operator[SEP] { identifier[prevBoundingBox] operator[=] Keyword[new] identifier[BoundingBox] operator[SEP] identifier[viewBBox] operator[SEP] identifier[getLatNorth] operator[SEP] operator[SEP] , identifier[viewBBox] operator[SEP] identifier[getLonEast] operator[SEP] operator[SEP] , identifier[viewBBox] operator[SEP] identifier[getLatSouth] operator[SEP] operator[SEP] , identifier[viewBBox] operator[SEP] identifier[getLonWest] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[gridBool] operator[==] Other[null] operator[||] identifier[viewHei] operator[!=] identifier[pMapView] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[||] identifier[viewWid] operator[!=] identifier[pMapView] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] { identifier[updateGrid] operator[SEP] identifier[pMapView] operator[SEP] operator[SEP] } Keyword[else] { Keyword[for] operator[SEP] Keyword[boolean] operator[SEP] operator[SEP] identifier[row] operator[:] identifier[gridBool] operator[SEP] identifier[Arrays] operator[SEP] identifier[fill] operator[SEP] identifier[row] , literal[boolean] operator[SEP] operator[SEP] } Keyword[int] identifier[gridX] , identifier[gridY] operator[SEP] Keyword[final] identifier[Point] identifier[mPositionPixels] operator[=] Keyword[new] identifier[Point] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[Projection] identifier[pj] operator[=] identifier[pMapView] operator[SEP] identifier[getProjection] operator[SEP] operator[SEP] operator[SEP] identifier[gridIndex] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[numLabels] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[IGeoPoint] identifier[pt1] operator[:] identifier[mPointList] operator[SEP] { Keyword[if] operator[SEP] identifier[pt1] operator[==] Other[null] operator[SEP] Keyword[continue] operator[SEP] Keyword[if] operator[SEP] identifier[pt1] operator[SEP] identifier[getLatitude] operator[SEP] operator[SEP] operator[>] identifier[viewBBox] operator[SEP] identifier[getLatSouth] operator[SEP] operator[SEP] operator[&&] identifier[pt1] operator[SEP] identifier[getLatitude] operator[SEP] operator[SEP] operator[<] identifier[viewBBox] operator[SEP] identifier[getLatNorth] operator[SEP] operator[SEP] operator[&&] identifier[pt1] operator[SEP] identifier[getLongitude] operator[SEP] operator[SEP] operator[>] identifier[viewBBox] operator[SEP] identifier[getLonWest] operator[SEP] operator[SEP] operator[&&] identifier[pt1] operator[SEP] identifier[getLongitude] operator[SEP] operator[SEP] operator[<] identifier[viewBBox] operator[SEP] identifier[getLonEast] operator[SEP] operator[SEP] operator[SEP] { identifier[pj] operator[SEP] identifier[toPixels] operator[SEP] identifier[pt1] , identifier[mPositionPixels] operator[SEP] operator[SEP] identifier[gridX] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[Math] operator[SEP] identifier[floor] operator[SEP] operator[SEP] Keyword[float] operator[SEP] identifier[mPositionPixels] operator[SEP] identifier[x] operator[/] identifier[mStyle] operator[SEP] identifier[mCellSize] operator[SEP] operator[SEP] identifier[gridY] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[Math] operator[SEP] identifier[floor] operator[SEP] operator[SEP] Keyword[float] operator[SEP] identifier[mPositionPixels] operator[SEP] identifier[y] operator[/] identifier[mStyle] operator[SEP] identifier[mCellSize] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[gridX] operator[>=] identifier[gridWid] operator[||] identifier[gridY] operator[>=] identifier[gridHei] operator[||] identifier[gridX] operator[<] Other[0] operator[||] identifier[gridY] operator[<] Other[0] operator[||] identifier[gridBool] operator[SEP] identifier[gridX] operator[SEP] operator[SEP] identifier[gridY] operator[SEP] operator[SEP] Keyword[continue] operator[SEP] identifier[gridBool] operator[SEP] identifier[gridX] operator[SEP] operator[SEP] identifier[gridY] operator[SEP] operator[=] literal[boolean] operator[SEP] identifier[gridIndex] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[StyledLabelledPoint] operator[SEP] identifier[mPositionPixels] , identifier[mPointList] operator[SEP] identifier[isLabelled] operator[SEP] operator[SEP] operator[?] operator[SEP] operator[SEP] identifier[LabelledGeoPoint] operator[SEP] identifier[pt1] operator[SEP] operator[SEP] identifier[getLabel] operator[SEP] operator[SEP] operator[:] Other[null] , identifier[mPointList] operator[SEP] identifier[isStyled] operator[SEP] operator[SEP] operator[?] operator[SEP] operator[SEP] identifier[StyledLabelledGeoPoint] operator[SEP] identifier[pt1] operator[SEP] operator[SEP] identifier[getPointStyle] operator[SEP] operator[SEP] operator[:] Other[null] , identifier[mPointList] operator[SEP] identifier[isStyled] operator[SEP] operator[SEP] operator[?] operator[SEP] operator[SEP] identifier[StyledLabelledGeoPoint] operator[SEP] identifier[pt1] operator[SEP] operator[SEP] identifier[getTextStyle] operator[SEP] operator[SEP] operator[:] Other[null] operator[SEP] operator[SEP] operator[SEP] identifier[numLabels] operator[++] operator[SEP] } } } }
public Observable<UUID> addCompositeEntityChildAsync(UUID appId, String versionId, UUID cEntityId, AddCompositeEntityChildOptionalParameter addCompositeEntityChildOptionalParameter) { return addCompositeEntityChildWithServiceResponseAsync(appId, versionId, cEntityId, addCompositeEntityChildOptionalParameter).map(new Func1<ServiceResponse<UUID>, UUID>() { @Override public UUID call(ServiceResponse<UUID> response) { return response.body(); } }); }
class class_name[name] begin[{] method[addCompositeEntityChildAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, cEntityId, addCompositeEntityChildOptionalParameter]] begin[{] return[call[.addCompositeEntityChildWithServiceResponseAsync, parameter[member[.appId], member[.versionId], member[.cEntityId], member[.addCompositeEntityChildOptionalParameter]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[UUID] operator[>] identifier[addCompositeEntityChildAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[UUID] identifier[cEntityId] , identifier[AddCompositeEntityChildOptionalParameter] identifier[addCompositeEntityChildOptionalParameter] operator[SEP] { Keyword[return] identifier[addCompositeEntityChildWithServiceResponseAsync] operator[SEP] identifier[appId] , identifier[versionId] , identifier[cEntityId] , identifier[addCompositeEntityChildOptionalParameter] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[UUID] operator[>] , identifier[UUID] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[UUID] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[UUID] operator[>] identifier[response] operator[SEP] { Keyword[return] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public static /*@non_null@*/ String getOption(String flag, String[] options) throws Exception { String newString; int i = getOptionPos(flag, options); if (i > -1) { if (options[i].equals("-" + flag)) { if (i + 1 == options.length) { throw new Exception("No value given for -" + flag + " option."); } options[i] = ""; newString = new String(options[i + 1]); options[i + 1] = ""; return newString; } if (options[i].charAt(1) == '-') { return ""; } } return ""; }
class class_name[name] begin[{] method[getOption, return_type[type[String]], modifier[public static], parameter[flag, options]] begin[{] local_variable[type[String], newString] local_variable[type[int], i] if[binary_operation[member[.i], >, literal[1]]] begin[{] if[member[.options]] begin[{] if[binary_operation[binary_operation[member[.i], +, literal[1]], ==, member[options.length]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No value given for -"), operandr=MemberReference(member=flag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" option."), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Exception, sub_type=None)), label=None) else begin[{] None end[}] assign[member[.options], literal[""]] assign[member[.newString], ClassCreator(arguments=[MemberReference(member=options, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] assign[member[.options], literal[""]] return[member[.newString]] else begin[{] None end[}] if[binary_operation[member[.options], ==, literal['-']]] begin[{] return[literal[""]] else begin[{] None end[}] else begin[{] None end[}] return[literal[""]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getOption] operator[SEP] identifier[String] identifier[flag] , identifier[String] operator[SEP] operator[SEP] identifier[options] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[newString] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[getOptionPos] operator[SEP] identifier[flag] , identifier[options] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i] operator[>] operator[-] Other[1] operator[SEP] { Keyword[if] operator[SEP] identifier[options] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[+] identifier[flag] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[i] operator[+] Other[1] operator[==] identifier[options] operator[SEP] identifier[length] operator[SEP] { Keyword[throw] Keyword[new] identifier[Exception] operator[SEP] literal[String] operator[+] identifier[flag] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[options] operator[SEP] identifier[i] operator[SEP] operator[=] literal[String] operator[SEP] identifier[newString] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[options] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] identifier[options] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[=] literal[String] operator[SEP] Keyword[return] identifier[newString] operator[SEP] } Keyword[if] operator[SEP] identifier[options] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[charAt] operator[SEP] Other[1] operator[SEP] operator[==] literal[String] operator[SEP] { Keyword[return] literal[String] operator[SEP] } } Keyword[return] literal[String] operator[SEP] }
public FSList getMentions() { if (Concept_Type.featOkTst && ((Concept_Type)jcasType).casFeat_mentions == null) jcasType.jcas.throwFeatMissing("mentions", "edu.cmu.lti.oaqa.type.kb.Concept"); return (FSList)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Concept_Type)jcasType).casFeatCode_mentions)));}
class class_name[name] begin[{] method[getMentions, return_type[type[FSList]], modifier[public], parameter[]] begin[{] if[binary_operation[member[Concept_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Concept_Type, sub_type=None)), ==, literal[null]]]] begin[{] call[jcasType.jcas.throwFeatMissing, parameter[literal["mentions"], literal["edu.cmu.lti.oaqa.type.kb.Concept"]]] else begin[{] None end[}] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=addr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Concept_Type, sub_type=None))], member=ll_getRefValue, postfix_operators=[], prefix_operators=[], qualifier=jcasType.ll_cas, selectors=[], type_arguments=None)], member=ll_getFSForRef, postfix_operators=[], prefix_operators=[], qualifier=jcasType.ll_cas, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=FSList, sub_type=None))] end[}] END[}]
Keyword[public] identifier[FSList] identifier[getMentions] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Concept_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Concept_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casFeat_mentions] operator[==] Other[null] operator[SEP] identifier[jcasType] operator[SEP] identifier[jcas] operator[SEP] identifier[throwFeatMissing] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[FSList] operator[SEP] operator[SEP] identifier[jcasType] operator[SEP] identifier[ll_cas] operator[SEP] identifier[ll_getFSForRef] operator[SEP] identifier[jcasType] operator[SEP] identifier[ll_cas] operator[SEP] identifier[ll_getRefValue] operator[SEP] identifier[addr] , operator[SEP] operator[SEP] identifier[Concept_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casFeatCode_mentions] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static Calendar getThreadCalendar(TimeZone tz) { Calendar c = calendar.get(); c.clear(); if (tz == null) tz = ThreadLocalPageContext.getTimeZone(); c.setTimeZone(tz); return c; }
class class_name[name] begin[{] method[getThreadCalendar, return_type[type[Calendar]], modifier[public static], parameter[tz]] begin[{] local_variable[type[Calendar], c] call[c.clear, parameter[]] if[binary_operation[member[.tz], ==, literal[null]]] begin[{] assign[member[.tz], call[ThreadLocalPageContext.getTimeZone, parameter[]]] else begin[{] None end[}] call[c.setTimeZone, parameter[member[.tz]]] return[member[.c]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Calendar] identifier[getThreadCalendar] operator[SEP] identifier[TimeZone] identifier[tz] operator[SEP] { identifier[Calendar] identifier[c] operator[=] identifier[calendar] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[c] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tz] operator[==] Other[null] operator[SEP] identifier[tz] operator[=] identifier[ThreadLocalPageContext] operator[SEP] identifier[getTimeZone] operator[SEP] operator[SEP] operator[SEP] identifier[c] operator[SEP] identifier[setTimeZone] operator[SEP] identifier[tz] operator[SEP] operator[SEP] Keyword[return] identifier[c] operator[SEP] }
@Override public Properties loadRemoteConfig() { Properties properties = null; try { // 加载远程canal配置 ConfigItem configItem = getRemoteCanalConfig(); if (configItem != null) { if (configItem.getModifiedTime() != currentConfigTimestamp) { currentConfigTimestamp = configItem.getModifiedTime(); overrideLocalCanalConfig(configItem.getContent()); properties = new Properties(); properties.load(new ByteArrayInputStream(configItem.getContent().getBytes(StandardCharsets.UTF_8))); scanIntervalInSecond = Integer .valueOf(properties.getProperty(CanalConstants.CANAL_AUTO_SCAN_INTERVAL, "5")); logger.info("## Loaded remote canal config: canal.properties "); } } } catch (Exception e) { logger.error(e.getMessage(), e); } return properties; }
class class_name[name] begin[{] method[loadRemoteConfig, return_type[type[Properties]], modifier[public], parameter[]] begin[{] local_variable[type[Properties], properties] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getRemoteCanalConfig, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=configItem)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ConfigItem, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=configItem, 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=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getModifiedTime, postfix_operators=[], prefix_operators=[], qualifier=configItem, selectors=[], type_arguments=None), operandr=MemberReference(member=currentConfigTimestamp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=currentConfigTimestamp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getModifiedTime, postfix_operators=[], prefix_operators=[], qualifier=configItem, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getContent, postfix_operators=[], prefix_operators=[], qualifier=configItem, selectors=[], type_arguments=None)], member=overrideLocalCanalConfig, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=properties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Properties, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getContent, postfix_operators=[], prefix_operators=[], qualifier=configItem, selectors=[MethodInvocation(arguments=[MemberReference(member=UTF_8, postfix_operators=[], prefix_operators=[], qualifier=StandardCharsets, selectors=[])], member=getBytes, 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=ByteArrayInputStream, sub_type=None))], member=load, postfix_operators=[], prefix_operators=[], qualifier=properties, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=scanIntervalInSecond, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=CANAL_AUTO_SCAN_INTERVAL, postfix_operators=[], prefix_operators=[], qualifier=CanalConstants, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="5")], member=getProperty, postfix_operators=[], prefix_operators=[], qualifier=properties, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="## Loaded remote canal config: canal.properties ")], member=info, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)]))]))], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) return[member[.properties]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Properties] identifier[loadRemoteConfig] operator[SEP] operator[SEP] { identifier[Properties] identifier[properties] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[ConfigItem] identifier[configItem] operator[=] identifier[getRemoteCanalConfig] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[configItem] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[configItem] operator[SEP] identifier[getModifiedTime] operator[SEP] operator[SEP] operator[!=] identifier[currentConfigTimestamp] operator[SEP] { identifier[currentConfigTimestamp] operator[=] identifier[configItem] operator[SEP] identifier[getModifiedTime] operator[SEP] operator[SEP] operator[SEP] identifier[overrideLocalCanalConfig] operator[SEP] identifier[configItem] operator[SEP] identifier[getContent] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[properties] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] identifier[properties] operator[SEP] identifier[load] operator[SEP] Keyword[new] identifier[ByteArrayInputStream] operator[SEP] identifier[configItem] operator[SEP] identifier[getContent] operator[SEP] operator[SEP] operator[SEP] identifier[getBytes] operator[SEP] identifier[StandardCharsets] operator[SEP] identifier[UTF_8] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[scanIntervalInSecond] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] identifier[properties] operator[SEP] identifier[getProperty] operator[SEP] identifier[CanalConstants] operator[SEP] identifier[CANAL_AUTO_SCAN_INTERVAL] , literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] } } } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[logger] operator[SEP] identifier[error] operator[SEP] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } Keyword[return] identifier[properties] operator[SEP] }
public static Class<?> getTypeForProperty(Method getter) { Class<?> returnType = getter.getReturnType(); if (returnType.equals(Void.TYPE)) throw new IllegalArgumentException("Getter " + getter.toString() + " does not have a returntype."); else if (returnType.isPrimitive()) return MethodUtils.getPrimitiveWrapper(returnType); return returnType; }
class class_name[name] begin[{] method[getTypeForProperty, return_type[type[Class]], modifier[public static], parameter[getter]] begin[{] local_variable[type[Class], returnType] if[call[returnType.equals, parameter[member[Void.TYPE]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Getter "), operandr=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=getter, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" does not have a returntype."), 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[{] if[call[returnType.isPrimitive, parameter[]]] begin[{] return[call[MethodUtils.getPrimitiveWrapper, parameter[member[.returnType]]]] else begin[{] None end[}] end[}] return[member[.returnType]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[getTypeForProperty] operator[SEP] identifier[Method] identifier[getter] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[returnType] operator[=] identifier[getter] operator[SEP] identifier[getReturnType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[returnType] operator[SEP] identifier[equals] operator[SEP] identifier[Void] operator[SEP] identifier[TYPE] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[getter] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[returnType] operator[SEP] identifier[isPrimitive] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[MethodUtils] operator[SEP] identifier[getPrimitiveWrapper] operator[SEP] identifier[returnType] operator[SEP] operator[SEP] Keyword[return] identifier[returnType] operator[SEP] }
@SuppressWarnings("rawtypes") public static <T extends Comparable> Collector<T, ?, List<T>> maxAll() { return maxAll(Fn.naturalOrder()); }
class class_name[name] begin[{] method[maxAll, return_type[type[Collector]], modifier[public static], parameter[]] begin[{] return[call[.maxAll, parameter[call[Fn.naturalOrder, parameter[]]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[>] identifier[Collector] operator[<] identifier[T] , operator[?] , identifier[List] operator[<] identifier[T] operator[>] operator[>] identifier[maxAll] operator[SEP] operator[SEP] { Keyword[return] identifier[maxAll] operator[SEP] identifier[Fn] operator[SEP] identifier[naturalOrder] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public void add(Value value) { Key subKey = makeSubKey(value); client.put(this.policy, subKey, new Bin(ListElementBinName, value)); // add the digest of the subKey to the CDT List in the Customer record client.operate(this.policy, this.key, ListOperation.append(this.binNameString, Value.get(subKey.digest))); }
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[value]] begin[{] local_variable[type[Key], subKey] call[client.put, parameter[THIS[member[None.policy]], member[.subKey], ClassCreator(arguments=[MemberReference(member=ListElementBinName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=value, 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=Bin, sub_type=None))]] call[client.operate, parameter[THIS[member[None.policy]], THIS[member[None.key]], call[ListOperation.append, parameter[THIS[member[None.binNameString]], call[Value.get, parameter[member[subKey.digest]]]]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[Value] identifier[value] operator[SEP] { identifier[Key] identifier[subKey] operator[=] identifier[makeSubKey] operator[SEP] identifier[value] operator[SEP] operator[SEP] identifier[client] operator[SEP] identifier[put] operator[SEP] Keyword[this] operator[SEP] identifier[policy] , identifier[subKey] , Keyword[new] identifier[Bin] operator[SEP] identifier[ListElementBinName] , identifier[value] operator[SEP] operator[SEP] operator[SEP] identifier[client] operator[SEP] identifier[operate] operator[SEP] Keyword[this] operator[SEP] identifier[policy] , Keyword[this] operator[SEP] identifier[key] , identifier[ListOperation] operator[SEP] identifier[append] operator[SEP] Keyword[this] operator[SEP] identifier[binNameString] , identifier[Value] operator[SEP] identifier[get] operator[SEP] identifier[subKey] operator[SEP] identifier[digest] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public ArrayList<User> lookupUsersWhere (final String where) throws PersistenceException { ArrayList<User> users = loadAll(_utable, where); for (User user : users) { // configure the user record with its field mask user.setDirtyMask(_utable.getFieldMask()); } return users; }
class class_name[name] begin[{] method[lookupUsersWhere, return_type[type[ArrayList]], modifier[public], parameter[where]] begin[{] local_variable[type[ArrayList], users] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFieldMask, postfix_operators=[], prefix_operators=[], qualifier=_utable, selectors=[], type_arguments=None)], member=setDirtyMask, postfix_operators=[], prefix_operators=[], qualifier=user, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=users, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=user)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=User, sub_type=None))), label=None) return[member[.users]] end[}] END[}]
Keyword[public] identifier[ArrayList] operator[<] identifier[User] operator[>] identifier[lookupUsersWhere] operator[SEP] Keyword[final] identifier[String] identifier[where] operator[SEP] Keyword[throws] identifier[PersistenceException] { identifier[ArrayList] operator[<] identifier[User] operator[>] identifier[users] operator[=] identifier[loadAll] operator[SEP] identifier[_utable] , identifier[where] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[User] identifier[user] operator[:] identifier[users] operator[SEP] { identifier[user] operator[SEP] identifier[setDirtyMask] operator[SEP] identifier[_utable] operator[SEP] identifier[getFieldMask] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[users] operator[SEP] }