code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public ListLicenseConfigurationsRequest withLicenseConfigurationArns(String... licenseConfigurationArns) { if (this.licenseConfigurationArns == null) { setLicenseConfigurationArns(new java.util.ArrayList<String>(licenseConfigurationArns.length)); } for (String ele : licenseConfigurationArns) { this.licenseConfigurationArns.add(ele); } return this; }
class class_name[name] begin[{] method[withLicenseConfigurationArns, return_type[type[ListLicenseConfigurationsRequest]], modifier[public], parameter[licenseConfigurationArns]] begin[{] if[binary_operation[THIS[member[None.licenseConfigurationArns]], ==, literal[null]]] begin[{] call[.setLicenseConfigurationArns, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=licenseConfigurationArns, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=licenseConfigurationArns, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=ele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=licenseConfigurationArns, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ele)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[ListLicenseConfigurationsRequest] identifier[withLicenseConfigurationArns] operator[SEP] identifier[String] operator[...] identifier[licenseConfigurationArns] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[licenseConfigurationArns] operator[==] Other[null] operator[SEP] { identifier[setLicenseConfigurationArns] operator[SEP] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[licenseConfigurationArns] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[String] identifier[ele] operator[:] identifier[licenseConfigurationArns] operator[SEP] { Keyword[this] operator[SEP] identifier[licenseConfigurationArns] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
@XmlElementDecl(namespace = "http://schema.intuit.com/finance/v3", name = "Vendor", substitutionHeadNamespace = "http://schema.intuit.com/finance/v3", substitutionHeadName = "IntuitObject") public JAXBElement<Vendor> createVendor(Vendor value) { return new JAXBElement<Vendor>(_Vendor_QNAME, Vendor.class, null, value); }
class class_name[name] begin[{] method[createVendor, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Vendor_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Vendor, sub_type=None)), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), 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=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Vendor, sub_type=None))], dimensions=None, name=JAXBElement, sub_type=None))] end[}] END[}]
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Vendor] operator[>] identifier[createVendor] operator[SEP] identifier[Vendor] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[JAXBElement] operator[<] identifier[Vendor] operator[>] operator[SEP] identifier[_Vendor_QNAME] , identifier[Vendor] operator[SEP] Keyword[class] , Other[null] , identifier[value] operator[SEP] operator[SEP] }
@Override public JwtToken buildJwt() throws JwtException, InvalidBuilderException { // Create JWT here // TODO check for default claims? JwtConfig config = getConfig(configId); JwtToken jwt = new TokenImpl(this, config); return jwt; }
class class_name[name] begin[{] method[buildJwt, return_type[type[JwtToken]], modifier[public], parameter[]] begin[{] local_variable[type[JwtConfig], config] local_variable[type[JwtToken], jwt] return[member[.jwt]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[JwtToken] identifier[buildJwt] operator[SEP] operator[SEP] Keyword[throws] identifier[JwtException] , identifier[InvalidBuilderException] { identifier[JwtConfig] identifier[config] operator[=] identifier[getConfig] operator[SEP] identifier[configId] operator[SEP] operator[SEP] identifier[JwtToken] identifier[jwt] operator[=] Keyword[new] identifier[TokenImpl] operator[SEP] Keyword[this] , identifier[config] operator[SEP] operator[SEP] Keyword[return] identifier[jwt] operator[SEP] }
@Override public void closeFile() throws JournalException { try { super.testStateChange(State.FILE_CLOSED); parent.writeDocumentTrailer(xmlWriter); xmlWriter.close(); /* * SOME implementations of XMLWriter do not close all resources, so * we need to close the rmi manually just in case. */ try { writer.close(); } catch (IOException e) { throw new JournalException(e); } super.setState(State.FILE_CLOSED); } catch (XMLStreamException e) { throw new JournalException(e); } }
class class_name[name] begin[{] method[closeFile, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=SuperMethodInvocation(arguments=[MemberReference(member=FILE_CLOSED, postfix_operators=[], prefix_operators=[], qualifier=State, selectors=[])], member=testStateChange, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=xmlWriter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=writeDocumentTrailer, postfix_operators=[], prefix_operators=[], qualifier=parent, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=xmlWriter, selectors=[], type_arguments=None), label=None), TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=writer, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JournalException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None), StatementExpression(expression=SuperMethodInvocation(arguments=[MemberReference(member=FILE_CLOSED, postfix_operators=[], prefix_operators=[], qualifier=State, selectors=[])], member=setState, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JournalException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['XMLStreamException']))], finally_block=None, label=None, resources=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[closeFile] operator[SEP] operator[SEP] Keyword[throws] identifier[JournalException] { Keyword[try] { Keyword[super] operator[SEP] identifier[testStateChange] operator[SEP] identifier[State] operator[SEP] identifier[FILE_CLOSED] operator[SEP] operator[SEP] identifier[parent] operator[SEP] identifier[writeDocumentTrailer] operator[SEP] identifier[xmlWriter] operator[SEP] operator[SEP] identifier[xmlWriter] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[writer] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[JournalException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[super] operator[SEP] identifier[setState] operator[SEP] identifier[State] operator[SEP] identifier[FILE_CLOSED] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[XMLStreamException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[JournalException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
public DynamicIntProperty getIntProperty(String propName, int defaultValue, final Runnable propertyChangeCallback) { checkAndWarn(propName); DynamicIntProperty property = new DynamicIntProperty(propName, defaultValue); addCallback(propertyChangeCallback, property); return property; }
class class_name[name] begin[{] method[getIntProperty, return_type[type[DynamicIntProperty]], modifier[public], parameter[propName, defaultValue, propertyChangeCallback]] begin[{] call[.checkAndWarn, parameter[member[.propName]]] local_variable[type[DynamicIntProperty], property] call[.addCallback, parameter[member[.propertyChangeCallback], member[.property]]] return[member[.property]] end[}] END[}]
Keyword[public] identifier[DynamicIntProperty] identifier[getIntProperty] operator[SEP] identifier[String] identifier[propName] , Keyword[int] identifier[defaultValue] , Keyword[final] identifier[Runnable] identifier[propertyChangeCallback] operator[SEP] { identifier[checkAndWarn] operator[SEP] identifier[propName] operator[SEP] operator[SEP] identifier[DynamicIntProperty] identifier[property] operator[=] Keyword[new] identifier[DynamicIntProperty] operator[SEP] identifier[propName] , identifier[defaultValue] operator[SEP] operator[SEP] identifier[addCallback] operator[SEP] identifier[propertyChangeCallback] , identifier[property] operator[SEP] operator[SEP] Keyword[return] identifier[property] operator[SEP] }
@Nullable public Container getContainerWithName(@Nonnull String name) { if (name == null || name.trim().length() == 0) { throw new IllegalArgumentException("A container name must be provided."); } for (Container container : getContainers()) { if (container.getName().equals(name)) { return container; } } return null; }
class class_name[name] begin[{] method[getContainerWithName, return_type[type[Container]], modifier[public], parameter[name]] begin[{] if[binary_operation[binary_operation[member[.name], ==, literal[null]], ||, binary_operation[call[name.trim, parameter[]], ==, literal[0]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="A container name must be provided.")], 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[}] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=container, selectors=[MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=container, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getContainers, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=container)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Container, sub_type=None))), label=None) return[literal[null]] end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] identifier[Container] identifier[getContainerWithName] operator[SEP] annotation[@] identifier[Nonnull] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[||] identifier[name] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[Container] identifier[container] operator[:] identifier[getContainers] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[container] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[name] operator[SEP] operator[SEP] { Keyword[return] identifier[container] operator[SEP] } } Keyword[return] Other[null] operator[SEP] }
public static Server forRouter(Mode mode, Function<BuiltInComponents, Router> block) { return forRouter(mode, 0, block); }
class class_name[name] begin[{] method[forRouter, return_type[type[Server]], modifier[public static], parameter[mode, block]] begin[{] return[call[.forRouter, parameter[member[.mode], literal[0], member[.block]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Server] identifier[forRouter] operator[SEP] identifier[Mode] identifier[mode] , identifier[Function] operator[<] identifier[BuiltInComponents] , identifier[Router] operator[>] identifier[block] operator[SEP] { Keyword[return] identifier[forRouter] operator[SEP] identifier[mode] , Other[0] , identifier[block] operator[SEP] operator[SEP] }
public boolean containsAxis(String axisName) { for (CoordinateAxis ca : coordAxes) { if (ca.getFullName().equals(axisName)) return true; } return false; }
class class_name[name] begin[{] method[containsAxis, return_type[type[boolean]], modifier[public], parameter[axisName]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getFullName, postfix_operators=[], prefix_operators=[], qualifier=ca, selectors=[MethodInvocation(arguments=[MemberReference(member=axisName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None))]), control=EnhancedForControl(iterable=MemberReference(member=coordAxes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ca)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CoordinateAxis, sub_type=None))), label=None) return[literal[false]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[containsAxis] operator[SEP] identifier[String] identifier[axisName] operator[SEP] { Keyword[for] operator[SEP] identifier[CoordinateAxis] identifier[ca] operator[:] identifier[coordAxes] operator[SEP] { Keyword[if] operator[SEP] identifier[ca] operator[SEP] identifier[getFullName] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[axisName] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
public void setTransitGatewayRouteTables(java.util.Collection<TransitGatewayRouteTable> transitGatewayRouteTables) { if (transitGatewayRouteTables == null) { this.transitGatewayRouteTables = null; return; } this.transitGatewayRouteTables = new com.amazonaws.internal.SdkInternalList<TransitGatewayRouteTable>(transitGatewayRouteTables); }
class class_name[name] begin[{] method[setTransitGatewayRouteTables, return_type[void], modifier[public], parameter[transitGatewayRouteTables]] begin[{] if[binary_operation[member[.transitGatewayRouteTables], ==, literal[null]]] begin[{] assign[THIS[member[None.transitGatewayRouteTables]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.transitGatewayRouteTables]], ClassCreator(arguments=[MemberReference(member=transitGatewayRouteTables, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=amazonaws, sub_type=ReferenceType(arguments=None, dimensions=None, name=internal, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=TransitGatewayRouteTable, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setTransitGatewayRouteTables] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[TransitGatewayRouteTable] operator[>] identifier[transitGatewayRouteTables] operator[SEP] { Keyword[if] operator[SEP] identifier[transitGatewayRouteTables] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[transitGatewayRouteTables] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[transitGatewayRouteTables] operator[=] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[TransitGatewayRouteTable] operator[>] operator[SEP] identifier[transitGatewayRouteTables] operator[SEP] operator[SEP] }
public final void loadPropertiesBase(final String pDirName) throws Exception { this.propertiesBase = new PropertiesBase(); propertiesBase.setDirectory(pDirName); this.propertiesBase.setJdbcDriverClass(this.mngSettings .getAppSettings().get(PropertiesBase.KEY_JDBC_DRIVER_CLASS)); this.propertiesBase.setDatabaseName(this.mngSettings .getAppSettings().get(PropertiesBase.KEY_DATABASE_NAME)); this.propertiesBase.setDataSourceClassName(this.mngSettings .getAppSettings().get(PropertiesBase.KEY_DATASOURCE_CLASS)); this.propertiesBase.setUserName(this.mngSettings .getAppSettings().get(PropertiesBase.KEY_USER_NAME)); this.propertiesBase.setUserPassword(this.mngSettings .getAppSettings().get(PropertiesBase.KEY_USER_PASSWORD)); this.propertiesBase.setDatabaseUrl(this.mngSettings .getAppSettings().get(PropertiesBase.KEY_DATABASE_URL)); String currDir = System.getProperty("user.dir"); if (this.propertiesBase.getDatabaseName() != null && this.propertiesBase.getDatabaseName().contains(WORD_CURRENT_DIR)) { this.propertiesBase.setDatabaseName(this.propertiesBase.getDatabaseName() .replace(WORD_CURRENT_DIR, currDir + File.separator)); } else if (this.propertiesBase.getDatabaseName() != null && this.propertiesBase.getDatabaseName() .contains(WORD_CURRENT_PARENT_DIR)) { File fcd = new File(currDir); this.propertiesBase.setDatabaseName(this.propertiesBase.getDatabaseName() .replace(WORD_CURRENT_PARENT_DIR, fcd.getParent() + File.separator)); } if (this.propertiesBase.getDatabaseUrl() != null && this.propertiesBase.getDatabaseUrl().contains(WORD_CURRENT_DIR)) { this.propertiesBase.setDatabaseUrl(this.propertiesBase.getDatabaseUrl() .replace(WORD_CURRENT_DIR, currDir + File.separator)); } else if (this.propertiesBase.getDatabaseUrl() != null && this.propertiesBase.getDatabaseUrl() .contains(WORD_CURRENT_PARENT_DIR)) { File fcd = new File(currDir); this.propertiesBase.setDatabaseUrl(this.propertiesBase.getDatabaseUrl() .replace(WORD_CURRENT_PARENT_DIR, fcd.getParent() + File.separator)); } }
class class_name[name] begin[{] method[loadPropertiesBase, return_type[void], modifier[final public], parameter[pDirName]] begin[{] assign[THIS[member[None.propertiesBase]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PropertiesBase, sub_type=None))] call[propertiesBase.setDirectory, parameter[member[.pDirName]]] THIS[member[None.propertiesBase]call[None.setJdbcDriverClass, parameter[THIS[member[None.mngSettings]call[None.getAppSettings, parameter[]]call[None.get, parameter[member[PropertiesBase.KEY_JDBC_DRIVER_CLASS]]]]]]] THIS[member[None.propertiesBase]call[None.setDatabaseName, parameter[THIS[member[None.mngSettings]call[None.getAppSettings, parameter[]]call[None.get, parameter[member[PropertiesBase.KEY_DATABASE_NAME]]]]]]] THIS[member[None.propertiesBase]call[None.setDataSourceClassName, parameter[THIS[member[None.mngSettings]call[None.getAppSettings, parameter[]]call[None.get, parameter[member[PropertiesBase.KEY_DATASOURCE_CLASS]]]]]]] THIS[member[None.propertiesBase]call[None.setUserName, parameter[THIS[member[None.mngSettings]call[None.getAppSettings, parameter[]]call[None.get, parameter[member[PropertiesBase.KEY_USER_NAME]]]]]]] THIS[member[None.propertiesBase]call[None.setUserPassword, parameter[THIS[member[None.mngSettings]call[None.getAppSettings, parameter[]]call[None.get, parameter[member[PropertiesBase.KEY_USER_PASSWORD]]]]]]] THIS[member[None.propertiesBase]call[None.setDatabaseUrl, parameter[THIS[member[None.mngSettings]call[None.getAppSettings, parameter[]]call[None.get, parameter[member[PropertiesBase.KEY_DATABASE_URL]]]]]]] local_variable[type[String], currDir] if[binary_operation[binary_operation[THIS[member[None.propertiesBase]call[None.getDatabaseName, parameter[]]], !=, literal[null]], &&, THIS[member[None.propertiesBase]call[None.getDatabaseName, parameter[]]call[None.contains, parameter[member[.WORD_CURRENT_DIR]]]]]] begin[{] THIS[member[None.propertiesBase]call[None.setDatabaseName, parameter[THIS[member[None.propertiesBase]call[None.getDatabaseName, parameter[]]call[None.replace, parameter[member[.WORD_CURRENT_DIR], binary_operation[member[.currDir], +, member[File.separator]]]]]]]] else begin[{] if[binary_operation[binary_operation[THIS[member[None.propertiesBase]call[None.getDatabaseName, parameter[]]], !=, literal[null]], &&, THIS[member[None.propertiesBase]call[None.getDatabaseName, parameter[]]call[None.contains, parameter[member[.WORD_CURRENT_PARENT_DIR]]]]]] begin[{] local_variable[type[File], fcd] THIS[member[None.propertiesBase]call[None.setDatabaseName, parameter[THIS[member[None.propertiesBase]call[None.getDatabaseName, parameter[]]call[None.replace, parameter[member[.WORD_CURRENT_PARENT_DIR], binary_operation[call[fcd.getParent, parameter[]], +, member[File.separator]]]]]]]] else begin[{] None end[}] end[}] if[binary_operation[binary_operation[THIS[member[None.propertiesBase]call[None.getDatabaseUrl, parameter[]]], !=, literal[null]], &&, THIS[member[None.propertiesBase]call[None.getDatabaseUrl, parameter[]]call[None.contains, parameter[member[.WORD_CURRENT_DIR]]]]]] begin[{] THIS[member[None.propertiesBase]call[None.setDatabaseUrl, parameter[THIS[member[None.propertiesBase]call[None.getDatabaseUrl, parameter[]]call[None.replace, parameter[member[.WORD_CURRENT_DIR], binary_operation[member[.currDir], +, member[File.separator]]]]]]]] else begin[{] if[binary_operation[binary_operation[THIS[member[None.propertiesBase]call[None.getDatabaseUrl, parameter[]]], !=, literal[null]], &&, THIS[member[None.propertiesBase]call[None.getDatabaseUrl, parameter[]]call[None.contains, parameter[member[.WORD_CURRENT_PARENT_DIR]]]]]] begin[{] local_variable[type[File], fcd] THIS[member[None.propertiesBase]call[None.setDatabaseUrl, parameter[THIS[member[None.propertiesBase]call[None.getDatabaseUrl, parameter[]]call[None.replace, parameter[member[.WORD_CURRENT_PARENT_DIR], binary_operation[call[fcd.getParent, parameter[]], +, member[File.separator]]]]]]]] else begin[{] None end[}] end[}] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[loadPropertiesBase] operator[SEP] Keyword[final] identifier[String] identifier[pDirName] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[this] operator[SEP] identifier[propertiesBase] operator[=] Keyword[new] identifier[PropertiesBase] operator[SEP] operator[SEP] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDirectory] operator[SEP] identifier[pDirName] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setJdbcDriverClass] operator[SEP] Keyword[this] operator[SEP] identifier[mngSettings] operator[SEP] identifier[getAppSettings] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[PropertiesBase] operator[SEP] identifier[KEY_JDBC_DRIVER_CLASS] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDatabaseName] operator[SEP] Keyword[this] operator[SEP] identifier[mngSettings] operator[SEP] identifier[getAppSettings] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[PropertiesBase] operator[SEP] identifier[KEY_DATABASE_NAME] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDataSourceClassName] operator[SEP] Keyword[this] operator[SEP] identifier[mngSettings] operator[SEP] identifier[getAppSettings] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[PropertiesBase] operator[SEP] identifier[KEY_DATASOURCE_CLASS] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setUserName] operator[SEP] Keyword[this] operator[SEP] identifier[mngSettings] operator[SEP] identifier[getAppSettings] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[PropertiesBase] operator[SEP] identifier[KEY_USER_NAME] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setUserPassword] operator[SEP] Keyword[this] operator[SEP] identifier[mngSettings] operator[SEP] identifier[getAppSettings] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[PropertiesBase] operator[SEP] identifier[KEY_USER_PASSWORD] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDatabaseUrl] operator[SEP] Keyword[this] operator[SEP] identifier[mngSettings] operator[SEP] identifier[getAppSettings] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[PropertiesBase] operator[SEP] identifier[KEY_DATABASE_URL] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[currDir] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseName] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseName] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[WORD_CURRENT_DIR] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDatabaseName] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseName] operator[SEP] operator[SEP] operator[SEP] identifier[replace] operator[SEP] identifier[WORD_CURRENT_DIR] , identifier[currDir] operator[+] identifier[File] operator[SEP] identifier[separator] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseName] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseName] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[WORD_CURRENT_PARENT_DIR] operator[SEP] operator[SEP] { identifier[File] identifier[fcd] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[currDir] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDatabaseName] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseName] operator[SEP] operator[SEP] operator[SEP] identifier[replace] operator[SEP] identifier[WORD_CURRENT_PARENT_DIR] , identifier[fcd] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[+] identifier[File] operator[SEP] identifier[separator] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseUrl] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseUrl] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[WORD_CURRENT_DIR] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDatabaseUrl] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseUrl] operator[SEP] operator[SEP] operator[SEP] identifier[replace] operator[SEP] identifier[WORD_CURRENT_DIR] , identifier[currDir] operator[+] identifier[File] operator[SEP] identifier[separator] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseUrl] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseUrl] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[WORD_CURRENT_PARENT_DIR] operator[SEP] operator[SEP] { identifier[File] identifier[fcd] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[currDir] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[setDatabaseUrl] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesBase] operator[SEP] identifier[getDatabaseUrl] operator[SEP] operator[SEP] operator[SEP] identifier[replace] operator[SEP] identifier[WORD_CURRENT_PARENT_DIR] , identifier[fcd] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[+] identifier[File] operator[SEP] identifier[separator] operator[SEP] operator[SEP] operator[SEP] } }
public ItemRequest<Project> removeMembers(String project) { String path = String.format("/projects/%s/removeMembers", project); return new ItemRequest<Project>(this, Project.class, path, "POST"); }
class class_name[name] begin[{] method[removeMembers, return_type[type[ItemRequest]], modifier[public], parameter[project]] begin[{] local_variable[type[String], path] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Project, sub_type=None)), MemberReference(member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="POST")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Project, sub_type=None))], dimensions=None, name=ItemRequest, sub_type=None))] end[}] END[}]
Keyword[public] identifier[ItemRequest] operator[<] identifier[Project] operator[>] identifier[removeMembers] operator[SEP] identifier[String] identifier[project] operator[SEP] { identifier[String] identifier[path] operator[=] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[project] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[ItemRequest] operator[<] identifier[Project] operator[>] operator[SEP] Keyword[this] , identifier[Project] operator[SEP] Keyword[class] , identifier[path] , literal[String] operator[SEP] operator[SEP] }
public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { m_bJustChanged = false; m_DBObject = null; m_listener = null; m_bVirtual = false; m_bSelected = true; m_bNullable = true; super.init(record, strName, iDataLength, strDesc, strDefault); this.setModified(false); // No modifications to start with }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[record, strName, iDataLength, strDesc, strDefault]] begin[{] assign[member[.m_bJustChanged], literal[false]] assign[member[.m_DBObject], literal[null]] assign[member[.m_listener], literal[null]] assign[member[.m_bVirtual], literal[false]] assign[member[.m_bSelected], literal[true]] assign[member[.m_bNullable], literal[true]] SuperMethodInvocation(arguments=[MemberReference(member=record, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=strName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=iDataLength, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=strDesc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=strDefault, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) THIS[call[None.setModified, parameter[literal[false]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Record] identifier[record] , identifier[String] identifier[strName] , Keyword[int] identifier[iDataLength] , identifier[String] identifier[strDesc] , identifier[Object] identifier[strDefault] operator[SEP] { identifier[m_bJustChanged] operator[=] literal[boolean] operator[SEP] identifier[m_DBObject] operator[=] Other[null] operator[SEP] identifier[m_listener] operator[=] Other[null] operator[SEP] identifier[m_bVirtual] operator[=] literal[boolean] operator[SEP] identifier[m_bSelected] operator[=] literal[boolean] operator[SEP] identifier[m_bNullable] operator[=] literal[boolean] operator[SEP] Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[record] , identifier[strName] , identifier[iDataLength] , identifier[strDesc] , identifier[strDefault] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[setModified] operator[SEP] literal[boolean] operator[SEP] operator[SEP] }
@Override protected void handlePermission(@NonNull File path) { // Should we show an explanation? // if (shouldShowRequestPermissionRationale( // Manifest.permission.WRITE_EXTERNAL_STORAGE)) { // Explain to the user why we need permission // } mRequestedPath = path; requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE); }
class class_name[name] begin[{] method[handlePermission, return_type[void], modifier[protected], parameter[path]] begin[{] assign[member[.mRequestedPath], member[.path]] call[.requestPermissions, parameter[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=WRITE_EXTERNAL_STORAGE, postfix_operators=[], prefix_operators=[], qualifier=Manifest.permission, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None)), member[.PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[handlePermission] operator[SEP] annotation[@] identifier[NonNull] identifier[File] identifier[path] operator[SEP] { identifier[mRequestedPath] operator[=] identifier[path] operator[SEP] identifier[requestPermissions] operator[SEP] Keyword[new] identifier[String] operator[SEP] operator[SEP] { identifier[Manifest] operator[SEP] identifier[permission] operator[SEP] identifier[WRITE_EXTERNAL_STORAGE] } , identifier[PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE] operator[SEP] operator[SEP] }
public static <T extends TimePoint<? super CalendarUnit, T>> Quarters between(T t1, T t2) { long delta = CalendarUnit.QUARTERS.between(t1, t2); return Quarters.of(MathUtils.safeCast(delta)); }
class class_name[name] begin[{] method[between, return_type[type[Quarters]], modifier[public static], parameter[t1, t2]] begin[{] local_variable[type[long], delta] return[call[Quarters.of, parameter[call[MathUtils.safeCast, parameter[member[.delta]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[TimePoint] operator[<] operator[?] Keyword[super] identifier[CalendarUnit] , identifier[T] operator[>] operator[>] identifier[Quarters] identifier[between] operator[SEP] identifier[T] identifier[t1] , identifier[T] identifier[t2] operator[SEP] { Keyword[long] identifier[delta] operator[=] identifier[CalendarUnit] operator[SEP] identifier[QUARTERS] operator[SEP] identifier[between] operator[SEP] identifier[t1] , identifier[t2] operator[SEP] operator[SEP] Keyword[return] identifier[Quarters] operator[SEP] identifier[of] operator[SEP] identifier[MathUtils] operator[SEP] identifier[safeCast] operator[SEP] identifier[delta] operator[SEP] operator[SEP] operator[SEP] }
public void loadClassifier(File file, Properties props) throws ClassCastException, IOException, ClassNotFoundException { Timing.startDoing("Loading classifier from " + file.getAbsolutePath()); BufferedInputStream bis; if (file.getName().endsWith(".gz")) { bis = new BufferedInputStream(new GZIPInputStream(new FileInputStream(file))); } else { bis = new BufferedInputStream(new FileInputStream(file)); } loadClassifier(bis, props); bis.close(); Timing.endDoing(); }
class class_name[name] begin[{] method[loadClassifier, return_type[void], modifier[public], parameter[file, props]] begin[{] call[Timing.startDoing, parameter[binary_operation[literal["Loading classifier from "], +, call[file.getAbsolutePath, parameter[]]]]] local_variable[type[BufferedInputStream], bis] if[call[file.getName, parameter[]]] begin[{] assign[member[.bis], ClassCreator(arguments=[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=file, 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=FileInputStream, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GZIPInputStream, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BufferedInputStream, sub_type=None))] else begin[{] assign[member[.bis], ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=file, 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=FileInputStream, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BufferedInputStream, sub_type=None))] end[}] call[.loadClassifier, parameter[member[.bis], member[.props]]] call[bis.close, parameter[]] call[Timing.endDoing, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[loadClassifier] operator[SEP] identifier[File] identifier[file] , identifier[Properties] identifier[props] operator[SEP] Keyword[throws] identifier[ClassCastException] , identifier[IOException] , identifier[ClassNotFoundException] { identifier[Timing] operator[SEP] identifier[startDoing] operator[SEP] literal[String] operator[+] identifier[file] operator[SEP] identifier[getAbsolutePath] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[BufferedInputStream] identifier[bis] operator[SEP] Keyword[if] operator[SEP] identifier[file] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[bis] operator[=] Keyword[new] identifier[BufferedInputStream] operator[SEP] Keyword[new] identifier[GZIPInputStream] operator[SEP] Keyword[new] identifier[FileInputStream] operator[SEP] identifier[file] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[bis] operator[=] Keyword[new] identifier[BufferedInputStream] operator[SEP] Keyword[new] identifier[FileInputStream] operator[SEP] identifier[file] operator[SEP] operator[SEP] operator[SEP] } identifier[loadClassifier] operator[SEP] identifier[bis] , identifier[props] operator[SEP] operator[SEP] identifier[bis] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] identifier[Timing] operator[SEP] identifier[endDoing] operator[SEP] operator[SEP] operator[SEP] }
public static <Input extends ImageGray<Input>, Output extends ImageGray<Output>> ImageDistort<Input, Output> distortSB(boolean cached, InterpolatePixelS<Input> interp, Class<Output> outputType) { AssignPixelValue_SB<Output> assigner; if( outputType == GrayF32.class ) { assigner = (AssignPixelValue_SB)new AssignPixelValue_SB.F32(); } else if( GrayS32.class.isAssignableFrom(outputType) ) { assigner = (AssignPixelValue_SB)new AssignPixelValue_SB.S32(); } else if( GrayI16.class.isAssignableFrom(outputType) ) { assigner = (AssignPixelValue_SB)new AssignPixelValue_SB.I16(); } else if( GrayI8.class.isAssignableFrom(outputType) ) { assigner = (AssignPixelValue_SB)new AssignPixelValue_SB.I8(); } else { throw new IllegalArgumentException("Output type not supported: "+outputType.getSimpleName()); } if(BoofConcurrency.USE_CONCURRENT ) { if( cached ) { return new ImageDistortCache_SB_MT<>(assigner,interp); } else { return new ImageDistortBasic_SB_MT<>(assigner,interp); } } else if( cached ) { return new ImageDistortCache_SB<>(assigner,interp); } else { return new ImageDistortBasic_SB<>(assigner,interp); } }
class class_name[name] begin[{] method[distortSB, return_type[type[ImageDistort]], modifier[public static], parameter[cached, interp, outputType]] begin[{] local_variable[type[AssignPixelValue_SB], assigner] if[binary_operation[member[.outputType], ==, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayF32, sub_type=None))]] begin[{] assign[member[.assigner], Cast(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=AssignPixelValue_SB, sub_type=ReferenceType(arguments=None, dimensions=None, name=F32, sub_type=None))), type=ReferenceType(arguments=None, dimensions=[], name=AssignPixelValue_SB, sub_type=None))] else begin[{] if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=outputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isAssignableFrom, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=GrayS32, sub_type=None))] begin[{] assign[member[.assigner], Cast(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=AssignPixelValue_SB, sub_type=ReferenceType(arguments=None, dimensions=None, name=S32, sub_type=None))), type=ReferenceType(arguments=None, dimensions=[], name=AssignPixelValue_SB, sub_type=None))] else begin[{] if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=outputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isAssignableFrom, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=GrayI16, sub_type=None))] begin[{] assign[member[.assigner], Cast(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=AssignPixelValue_SB, sub_type=ReferenceType(arguments=None, dimensions=None, name=I16, sub_type=None))), type=ReferenceType(arguments=None, dimensions=[], name=AssignPixelValue_SB, sub_type=None))] else begin[{] if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=outputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isAssignableFrom, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=GrayI8, sub_type=None))] begin[{] assign[member[.assigner], Cast(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=AssignPixelValue_SB, sub_type=ReferenceType(arguments=None, dimensions=None, name=I8, sub_type=None))), type=ReferenceType(arguments=None, dimensions=[], name=AssignPixelValue_SB, sub_type=None))] else begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Output type not supported: "), operandr=MethodInvocation(arguments=[], member=getSimpleName, postfix_operators=[], prefix_operators=[], qualifier=outputType, 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) end[}] end[}] end[}] end[}] if[member[BoofConcurrency.USE_CONCURRENT]] begin[{] if[member[.cached]] begin[{] return[ClassCreator(arguments=[MemberReference(member=assigner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=interp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ImageDistortCache_SB_MT, sub_type=None))] else begin[{] return[ClassCreator(arguments=[MemberReference(member=assigner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=interp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ImageDistortBasic_SB_MT, sub_type=None))] end[}] else begin[{] if[member[.cached]] begin[{] return[ClassCreator(arguments=[MemberReference(member=assigner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=interp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ImageDistortCache_SB, sub_type=None))] else begin[{] return[ClassCreator(arguments=[MemberReference(member=assigner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=interp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ImageDistortBasic_SB, sub_type=None))] end[}] end[}] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[Input] Keyword[extends] identifier[ImageGray] operator[<] identifier[Input] operator[>] , identifier[Output] Keyword[extends] identifier[ImageGray] operator[<] identifier[Output] operator[>] operator[>] identifier[ImageDistort] operator[<] identifier[Input] , identifier[Output] operator[>] identifier[distortSB] operator[SEP] Keyword[boolean] identifier[cached] , identifier[InterpolatePixelS] operator[<] identifier[Input] operator[>] identifier[interp] , identifier[Class] operator[<] identifier[Output] operator[>] identifier[outputType] operator[SEP] { identifier[AssignPixelValue_SB] operator[<] identifier[Output] operator[>] identifier[assigner] operator[SEP] Keyword[if] operator[SEP] identifier[outputType] operator[==] identifier[GrayF32] operator[SEP] Keyword[class] operator[SEP] { identifier[assigner] operator[=] operator[SEP] identifier[AssignPixelValue_SB] operator[SEP] Keyword[new] identifier[AssignPixelValue_SB] operator[SEP] identifier[F32] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayS32] operator[SEP] Keyword[class] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[outputType] operator[SEP] operator[SEP] { identifier[assigner] operator[=] operator[SEP] identifier[AssignPixelValue_SB] operator[SEP] Keyword[new] identifier[AssignPixelValue_SB] operator[SEP] identifier[S32] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayI16] operator[SEP] Keyword[class] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[outputType] operator[SEP] operator[SEP] { identifier[assigner] operator[=] operator[SEP] identifier[AssignPixelValue_SB] operator[SEP] Keyword[new] identifier[AssignPixelValue_SB] operator[SEP] identifier[I16] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayI8] operator[SEP] Keyword[class] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[outputType] operator[SEP] operator[SEP] { identifier[assigner] operator[=] operator[SEP] identifier[AssignPixelValue_SB] operator[SEP] Keyword[new] identifier[AssignPixelValue_SB] operator[SEP] identifier[I8] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[outputType] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[BoofConcurrency] operator[SEP] identifier[USE_CONCURRENT] operator[SEP] { Keyword[if] operator[SEP] identifier[cached] operator[SEP] { Keyword[return] Keyword[new] identifier[ImageDistortCache_SB_MT] operator[<] operator[>] operator[SEP] identifier[assigner] , identifier[interp] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[ImageDistortBasic_SB_MT] operator[<] operator[>] operator[SEP] identifier[assigner] , identifier[interp] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[cached] operator[SEP] { Keyword[return] Keyword[new] identifier[ImageDistortCache_SB] operator[<] operator[>] operator[SEP] identifier[assigner] , identifier[interp] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[ImageDistortBasic_SB] operator[<] operator[>] operator[SEP] identifier[assigner] , identifier[interp] operator[SEP] operator[SEP] } }
public Waiter<DescribeSigningJobRequest> successfulSigningJob() { return new WaiterBuilder<DescribeSigningJobRequest, DescribeSigningJobResult>() .withSdkFunction(new DescribeSigningJobFunction(client)) .withAcceptors(new SuccessfulSigningJob.IsSucceededMatcher(), new SuccessfulSigningJob.IsFailedMatcher(), new SuccessfulSigningJob.IsResourceNotFoundExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(25), new FixedDelayStrategy(20))) .withExecutorService(executorService).build(); }
class class_name[name] begin[{] method[successfulSigningJob, return_type[type[Waiter]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=client, 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=DescribeSigningJobFunction, sub_type=None))], member=withSdkFunction, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SuccessfulSigningJob, sub_type=ReferenceType(arguments=None, dimensions=None, name=IsSucceededMatcher, sub_type=None))), ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SuccessfulSigningJob, sub_type=ReferenceType(arguments=None, dimensions=None, name=IsFailedMatcher, sub_type=None))), ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SuccessfulSigningJob, sub_type=ReferenceType(arguments=None, dimensions=None, name=IsResourceNotFoundExceptionMatcher, sub_type=None)))], member=withAcceptors, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[ClassCreator(arguments=[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=25)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MaxAttemptsRetryStrategy, sub_type=None)), ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=20)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=FixedDelayStrategy, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PollingStrategy, sub_type=None))], member=withDefaultPollingStrategy, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=executorService, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=withExecutorService, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=build, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=DescribeSigningJobRequest, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=DescribeSigningJobResult, sub_type=None))], dimensions=None, name=WaiterBuilder, sub_type=None))] end[}] END[}]
Keyword[public] identifier[Waiter] operator[<] identifier[DescribeSigningJobRequest] operator[>] identifier[successfulSigningJob] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[WaiterBuilder] operator[<] identifier[DescribeSigningJobRequest] , identifier[DescribeSigningJobResult] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[withSdkFunction] operator[SEP] Keyword[new] identifier[DescribeSigningJobFunction] operator[SEP] identifier[client] operator[SEP] operator[SEP] operator[SEP] identifier[withAcceptors] operator[SEP] Keyword[new] identifier[SuccessfulSigningJob] operator[SEP] identifier[IsSucceededMatcher] operator[SEP] operator[SEP] , Keyword[new] identifier[SuccessfulSigningJob] operator[SEP] identifier[IsFailedMatcher] operator[SEP] operator[SEP] , Keyword[new] identifier[SuccessfulSigningJob] operator[SEP] identifier[IsResourceNotFoundExceptionMatcher] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[withDefaultPollingStrategy] operator[SEP] Keyword[new] identifier[PollingStrategy] operator[SEP] Keyword[new] identifier[MaxAttemptsRetryStrategy] operator[SEP] Other[25] operator[SEP] , Keyword[new] identifier[FixedDelayStrategy] operator[SEP] Other[20] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[withExecutorService] operator[SEP] identifier[executorService] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] }
public Observable<RegistryInner> beginCreateAsync(String resourceGroupName, String registryName, RegistryInner registry) { return beginCreateWithServiceResponseAsync(resourceGroupName, registryName, registry).map(new Func1<ServiceResponse<RegistryInner>, RegistryInner>() { @Override public RegistryInner call(ServiceResponse<RegistryInner> response) { return response.body(); } }); }
class class_name[name] begin[{] method[beginCreateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, registry]] begin[{] return[call[.beginCreateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName], member[.registry]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[RegistryInner] operator[>] identifier[beginCreateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[RegistryInner] identifier[registry] operator[SEP] { Keyword[return] identifier[beginCreateWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[registryName] , identifier[registry] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[RegistryInner] operator[>] , identifier[RegistryInner] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[RegistryInner] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[RegistryInner] 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 <T> T run(HTablePool pool, byte[] tableName, HTableRunnable<T> runnable) throws IOException { HTableInterface hTable = null; try { hTable = pool.getTable(tableName); return runnable.runWith(hTable); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } else { throw new RuntimeException(e); } } finally { if (hTable != null) { pool.putTable(hTable); } } }
class class_name[name] begin[{] method[run, return_type[type[T]], modifier[public static], parameter[pool, tableName, runnable]] begin[{] local_variable[type[HTableInterface], hTable] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=hTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getTable, postfix_operators=[], prefix_operators=[], qualifier=pool, selectors=[], type_arguments=None)), label=None), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=hTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=runWith, postfix_operators=[], prefix_operators=[], qualifier=runnable, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=IOException, sub_type=None), operator=instanceof), else_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=Cast(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=IOException, sub_type=None)), label=None)]))], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=hTable, 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=hTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=putTable, postfix_operators=[], prefix_operators=[], qualifier=pool, selectors=[], type_arguments=None), label=None)]))], label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[run] operator[SEP] identifier[HTablePool] identifier[pool] , Keyword[byte] operator[SEP] operator[SEP] identifier[tableName] , identifier[HTableRunnable] operator[<] identifier[T] operator[>] identifier[runnable] operator[SEP] Keyword[throws] identifier[IOException] { identifier[HTableInterface] identifier[hTable] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[hTable] operator[=] identifier[pool] operator[SEP] identifier[getTable] operator[SEP] identifier[tableName] operator[SEP] operator[SEP] Keyword[return] identifier[runnable] operator[SEP] identifier[runWith] operator[SEP] identifier[hTable] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[e] Keyword[instanceof] identifier[IOException] operator[SEP] { Keyword[throw] operator[SEP] identifier[IOException] operator[SEP] identifier[e] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } } Keyword[finally] { Keyword[if] operator[SEP] identifier[hTable] operator[!=] Other[null] operator[SEP] { identifier[pool] operator[SEP] identifier[putTable] operator[SEP] identifier[hTable] operator[SEP] operator[SEP] } } }
public Transaction createWithPaymentAndClient( String paymentId, String clientId, Integer amount, String currency ) { return this.createWithPaymentAndClient( paymentId, clientId, amount, currency, null ); }
class class_name[name] begin[{] method[createWithPaymentAndClient, return_type[type[Transaction]], modifier[public], parameter[paymentId, clientId, amount, currency]] begin[{] return[THIS[call[None.createWithPaymentAndClient, parameter[member[.paymentId], member[.clientId], member[.amount], member[.currency], literal[null]]]]] end[}] END[}]
Keyword[public] identifier[Transaction] identifier[createWithPaymentAndClient] operator[SEP] identifier[String] identifier[paymentId] , identifier[String] identifier[clientId] , identifier[Integer] identifier[amount] , identifier[String] identifier[currency] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[createWithPaymentAndClient] operator[SEP] identifier[paymentId] , identifier[clientId] , identifier[amount] , identifier[currency] , Other[null] operator[SEP] operator[SEP] }
void finishDownload(OfflineDownloadOptions offlineDownload, OfflineRegion offlineRegion) { OfflineDownloadStateReceiver.dispatchSuccessBroadcast(this, offlineDownload); offlineRegion.setDownloadState(OfflineRegion.STATE_INACTIVE); offlineRegion.setObserver(null); removeOfflineRegion(offlineDownload.uuid().intValue()); }
class class_name[name] begin[{] method[finishDownload, return_type[void], modifier[default], parameter[offlineDownload, offlineRegion]] begin[{] call[OfflineDownloadStateReceiver.dispatchSuccessBroadcast, parameter[THIS[], member[.offlineDownload]]] call[offlineRegion.setDownloadState, parameter[member[OfflineRegion.STATE_INACTIVE]]] call[offlineRegion.setObserver, parameter[literal[null]]] call[.removeOfflineRegion, parameter[call[offlineDownload.uuid, parameter[]]]] end[}] END[}]
Keyword[void] identifier[finishDownload] operator[SEP] identifier[OfflineDownloadOptions] identifier[offlineDownload] , identifier[OfflineRegion] identifier[offlineRegion] operator[SEP] { identifier[OfflineDownloadStateReceiver] operator[SEP] identifier[dispatchSuccessBroadcast] operator[SEP] Keyword[this] , identifier[offlineDownload] operator[SEP] operator[SEP] identifier[offlineRegion] operator[SEP] identifier[setDownloadState] operator[SEP] identifier[OfflineRegion] operator[SEP] identifier[STATE_INACTIVE] operator[SEP] operator[SEP] identifier[offlineRegion] operator[SEP] identifier[setObserver] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[removeOfflineRegion] operator[SEP] identifier[offlineDownload] operator[SEP] identifier[uuid] operator[SEP] operator[SEP] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@Override public final List find(Class entityClass, List<String> relationNames, boolean isWrapReq, EntityMetadata metadata, Object... rowIds) { if (!isOpen()) { throw new PersistenceException("PelopsClient is closed."); } return findByRowKeys(entityClass, relationNames, isWrapReq, metadata, rowIds); }
class class_name[name] begin[{] method[find, return_type[type[List]], modifier[final public], parameter[entityClass, relationNames, isWrapReq, metadata, rowIds]] begin[{] if[call[.isOpen, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="PelopsClient is closed.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PersistenceException, sub_type=None)), label=None) else begin[{] None end[}] return[call[.findByRowKeys, parameter[member[.entityClass], member[.relationNames], member[.isWrapReq], member[.metadata], member[.rowIds]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[List] identifier[find] operator[SEP] identifier[Class] identifier[entityClass] , identifier[List] operator[<] identifier[String] operator[>] identifier[relationNames] , Keyword[boolean] identifier[isWrapReq] , identifier[EntityMetadata] identifier[metadata] , identifier[Object] operator[...] identifier[rowIds] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isOpen] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[PersistenceException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[return] identifier[findByRowKeys] operator[SEP] identifier[entityClass] , identifier[relationNames] , identifier[isWrapReq] , identifier[metadata] , identifier[rowIds] operator[SEP] operator[SEP] }
public static Redirect temporary(final String location) { return new Redirect(location, RedirectType.TEMPORARY) { @Override public String toString() { return "Redirect.temporary(\"" + location + "\")"; } }; }
class class_name[name] begin[{] method[temporary, return_type[type[Redirect]], modifier[public static], parameter[location]] begin[{] return[ClassCreator(arguments=[MemberReference(member=location, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=TEMPORARY, postfix_operators=[], prefix_operators=[], qualifier=RedirectType, selectors=[])], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Redirect.temporary(\""), operandr=MemberReference(member=location, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\")"), operator=+), label=None)], documentation=None, modifiers={'public'}, name=toString, parameters=[], return_type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Redirect, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[Redirect] identifier[temporary] operator[SEP] Keyword[final] identifier[String] identifier[location] operator[SEP] { Keyword[return] Keyword[new] identifier[Redirect] operator[SEP] identifier[location] , identifier[RedirectType] operator[SEP] identifier[TEMPORARY] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[toString] operator[SEP] operator[SEP] { Keyword[return] literal[String] operator[+] identifier[location] operator[+] literal[String] operator[SEP] } } operator[SEP] }
public void marshall(CreateDocumentationVersionRequest createDocumentationVersionRequest, ProtocolMarshaller protocolMarshaller) { if (createDocumentationVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createDocumentationVersionRequest.getRestApiId(), RESTAPIID_BINDING); protocolMarshaller.marshall(createDocumentationVersionRequest.getDocumentationVersion(), DOCUMENTATIONVERSION_BINDING); protocolMarshaller.marshall(createDocumentationVersionRequest.getStageName(), STAGENAME_BINDING); protocolMarshaller.marshall(createDocumentationVersionRequest.getDescription(), DESCRIPTION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[createDocumentationVersionRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.createDocumentationVersionRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getRestApiId, postfix_operators=[], prefix_operators=[], qualifier=createDocumentationVersionRequest, selectors=[], type_arguments=None), MemberReference(member=RESTAPIID_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDocumentationVersion, postfix_operators=[], prefix_operators=[], qualifier=createDocumentationVersionRequest, selectors=[], type_arguments=None), MemberReference(member=DOCUMENTATIONVERSION_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getStageName, postfix_operators=[], prefix_operators=[], qualifier=createDocumentationVersionRequest, selectors=[], type_arguments=None), MemberReference(member=STAGENAME_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDescription, postfix_operators=[], prefix_operators=[], qualifier=createDocumentationVersionRequest, selectors=[], type_arguments=None), MemberReference(member=DESCRIPTION_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateDocumentationVersionRequest] identifier[createDocumentationVersionRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[createDocumentationVersionRequest] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createDocumentationVersionRequest] operator[SEP] identifier[getRestApiId] operator[SEP] operator[SEP] , identifier[RESTAPIID_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createDocumentationVersionRequest] operator[SEP] identifier[getDocumentationVersion] operator[SEP] operator[SEP] , identifier[DOCUMENTATIONVERSION_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createDocumentationVersionRequest] operator[SEP] identifier[getStageName] operator[SEP] operator[SEP] , identifier[STAGENAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createDocumentationVersionRequest] operator[SEP] identifier[getDescription] operator[SEP] operator[SEP] , identifier[DESCRIPTION_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public static boolean checkSchema(Set<Schema> output, Set<Schema> input) { return findSchema(output, input) != null; }
class class_name[name] begin[{] method[checkSchema, return_type[type[boolean]], modifier[public static], parameter[output, input]] begin[{] return[binary_operation[call[.findSchema, parameter[member[.output], member[.input]]], !=, literal[null]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[checkSchema] operator[SEP] identifier[Set] operator[<] identifier[Schema] operator[>] identifier[output] , identifier[Set] operator[<] identifier[Schema] operator[>] identifier[input] operator[SEP] { Keyword[return] identifier[findSchema] operator[SEP] identifier[output] , identifier[input] operator[SEP] operator[!=] Other[null] operator[SEP] }
public static CommerceAccount fetchByU_T_Last(long userId, int type, OrderByComparator<CommerceAccount> orderByComparator) { return getPersistence().fetchByU_T_Last(userId, type, orderByComparator); }
class class_name[name] begin[{] method[fetchByU_T_Last, return_type[type[CommerceAccount]], modifier[public static], parameter[userId, type, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceAccount] identifier[fetchByU_T_Last] operator[SEP] Keyword[long] identifier[userId] , Keyword[int] identifier[type] , identifier[OrderByComparator] operator[<] identifier[CommerceAccount] operator[>] identifier[orderByComparator] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] operator[SEP] identifier[fetchByU_T_Last] operator[SEP] identifier[userId] , identifier[type] , identifier[orderByComparator] operator[SEP] operator[SEP] }
public static byte[] sha1(String data, String charset) { return new Digester(DigestAlgorithm.SHA1).digest(data, charset); }
class class_name[name] begin[{] method[sha1, return_type[type[byte]], modifier[public static], parameter[data, charset]] begin[{] return[ClassCreator(arguments=[MemberReference(member=SHA1, postfix_operators=[], prefix_operators=[], qualifier=DigestAlgorithm, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=data, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=charset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=digest, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=Digester, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[sha1] operator[SEP] identifier[String] identifier[data] , identifier[String] identifier[charset] operator[SEP] { Keyword[return] Keyword[new] identifier[Digester] operator[SEP] identifier[DigestAlgorithm] operator[SEP] identifier[SHA1] operator[SEP] operator[SEP] identifier[digest] operator[SEP] identifier[data] , identifier[charset] operator[SEP] operator[SEP] }
public DetachLoadBalancerTargetGroupsRequest withTargetGroupARNs(String... targetGroupARNs) { if (this.targetGroupARNs == null) { setTargetGroupARNs(new com.amazonaws.internal.SdkInternalList<String>(targetGroupARNs.length)); } for (String ele : targetGroupARNs) { this.targetGroupARNs.add(ele); } return this; }
class class_name[name] begin[{] method[withTargetGroupARNs, return_type[type[DetachLoadBalancerTargetGroupsRequest]], modifier[public], parameter[targetGroupARNs]] begin[{] if[binary_operation[THIS[member[None.targetGroupARNs]], ==, literal[null]]] begin[{] call[.setTargetGroupARNs, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=targetGroupARNs, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=amazonaws, sub_type=ReferenceType(arguments=None, dimensions=None, name=internal, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=targetGroupARNs, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=ele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=targetGroupARNs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ele)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[DetachLoadBalancerTargetGroupsRequest] identifier[withTargetGroupARNs] operator[SEP] identifier[String] operator[...] identifier[targetGroupARNs] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[targetGroupARNs] operator[==] Other[null] operator[SEP] { identifier[setTargetGroupARNs] operator[SEP] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[String] operator[>] operator[SEP] identifier[targetGroupARNs] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[String] identifier[ele] operator[:] identifier[targetGroupARNs] operator[SEP] { Keyword[this] operator[SEP] identifier[targetGroupARNs] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
private X509TrustManager createPromptingTrustManager() { TrustManager[] trustManagers = null; try { String defaultAlg = TrustManagerFactory.getDefaultAlgorithm(); TrustManagerFactory tmf = TrustManagerFactory.getInstance(defaultAlg); tmf.init((KeyStore) null); trustManagers = tmf.getTrustManagers(); } catch (KeyStoreException e) { // Unable to initialize the default trust managers. // This is not a problem as PromptX509rustManager can handle null. } catch (NoSuchAlgorithmException e) { // Unable to get default trust managers. // This is not a problem as PromptX509rustManager can handle null. } boolean autoAccept = Boolean.valueOf(System.getProperty(SYS_PROP_AUTO_ACCEPT, "false")); return new PromptX509TrustManager(stdin, stdout, trustManagers, autoAccept); }
class class_name[name] begin[{] method[createPromptingTrustManager, return_type[type[X509TrustManager]], modifier[private], parameter[]] begin[{] local_variable[type[TrustManager], trustManagers] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getDefaultAlgorithm, postfix_operators=[], prefix_operators=[], qualifier=TrustManagerFactory, selectors=[], type_arguments=None), name=defaultAlg)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=defaultAlg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getInstance, postfix_operators=[], prefix_operators=[], qualifier=TrustManagerFactory, selectors=[], type_arguments=None), name=tmf)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TrustManagerFactory, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), type=ReferenceType(arguments=None, dimensions=[], name=KeyStore, sub_type=None))], member=init, postfix_operators=[], prefix_operators=[], qualifier=tmf, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=trustManagers, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getTrustManagers, postfix_operators=[], prefix_operators=[], qualifier=tmf, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['KeyStoreException'])), CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['NoSuchAlgorithmException']))], finally_block=None, label=None, resources=None) local_variable[type[boolean], autoAccept] return[ClassCreator(arguments=[MemberReference(member=stdin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=stdout, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=trustManagers, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=autoAccept, 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=PromptX509TrustManager, sub_type=None))] end[}] END[}]
Keyword[private] identifier[X509TrustManager] identifier[createPromptingTrustManager] operator[SEP] operator[SEP] { identifier[TrustManager] operator[SEP] operator[SEP] identifier[trustManagers] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[String] identifier[defaultAlg] operator[=] identifier[TrustManagerFactory] operator[SEP] identifier[getDefaultAlgorithm] operator[SEP] operator[SEP] operator[SEP] identifier[TrustManagerFactory] identifier[tmf] operator[=] identifier[TrustManagerFactory] operator[SEP] identifier[getInstance] operator[SEP] identifier[defaultAlg] operator[SEP] operator[SEP] identifier[tmf] operator[SEP] identifier[init] operator[SEP] operator[SEP] identifier[KeyStore] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[trustManagers] operator[=] identifier[tmf] operator[SEP] identifier[getTrustManagers] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[KeyStoreException] identifier[e] operator[SEP] { } Keyword[catch] operator[SEP] identifier[NoSuchAlgorithmException] identifier[e] operator[SEP] { } Keyword[boolean] identifier[autoAccept] operator[=] identifier[Boolean] operator[SEP] identifier[valueOf] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[SYS_PROP_AUTO_ACCEPT] , literal[String] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[PromptX509TrustManager] operator[SEP] identifier[stdin] , identifier[stdout] , identifier[trustManagers] , identifier[autoAccept] operator[SEP] operator[SEP] }
public static String formatDurationOnSecond(@NotNull Date startDate, @NotNull Date endDate) { return DurationFormatUtils.formatDuration(endDate.getTime() - startDate.getTime(), "HH:mm:ss"); }
class class_name[name] begin[{] method[formatDurationOnSecond, return_type[type[String]], modifier[public static], parameter[startDate, endDate]] begin[{] return[call[DurationFormatUtils.formatDuration, parameter[binary_operation[call[endDate.getTime, parameter[]], -, call[startDate.getTime, parameter[]]], literal["HH:mm:ss"]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[formatDurationOnSecond] operator[SEP] annotation[@] identifier[NotNull] identifier[Date] identifier[startDate] , annotation[@] identifier[NotNull] identifier[Date] identifier[endDate] operator[SEP] { Keyword[return] identifier[DurationFormatUtils] operator[SEP] identifier[formatDuration] operator[SEP] identifier[endDate] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] operator[-] identifier[startDate] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] }
public static WebResource getAnnisWebResource(String uri, AnnisUser user) { if (user != null) { try { return user.getClient().resource(uri); } catch (LoginDataLostException ex) { log.error( "Could not restore the login-data from session, user will invalidated", ex); setUser(null); UI ui = UI.getCurrent(); if (ui instanceof AnnisBaseUI) { ((AnnisBaseUI) ui).getLoginDataLostBus().post(ex); } } } // use the anonymous client if (anonymousClient.get() == null) { // anonymous client not created yet anonymousClient.set(createRESTClient()); } return anonymousClient.get().resource(uri); }
class class_name[name] begin[{] method[getAnnisWebResource, return_type[type[WebResource]], modifier[public static], parameter[uri, user]] begin[{] if[binary_operation[member[.user], !=, literal[null]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getClient, postfix_operators=[], prefix_operators=[], qualifier=user, selectors=[MethodInvocation(arguments=[MemberReference(member=uri, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=resource, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Could not restore the login-data from session, user will invalidated"), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=log, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], member=setUser, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getCurrent, postfix_operators=[], prefix_operators=[], qualifier=UI, selectors=[], type_arguments=None), name=ui)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=UI, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ui, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=AnnisBaseUI, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Cast(expression=MemberReference(member=ui, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=AnnisBaseUI, sub_type=None)), label=None)]))], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['LoginDataLostException']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] if[binary_operation[call[anonymousClient.get, parameter[]], ==, literal[null]]] begin[{] call[anonymousClient.set, parameter[call[.createRESTClient, parameter[]]]] else begin[{] None end[}] return[call[anonymousClient.get, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[WebResource] identifier[getAnnisWebResource] operator[SEP] identifier[String] identifier[uri] , identifier[AnnisUser] identifier[user] operator[SEP] { Keyword[if] operator[SEP] identifier[user] operator[!=] Other[null] operator[SEP] { Keyword[try] { Keyword[return] identifier[user] operator[SEP] identifier[getClient] operator[SEP] operator[SEP] operator[SEP] identifier[resource] operator[SEP] identifier[uri] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[LoginDataLostException] identifier[ex] operator[SEP] { identifier[log] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[ex] operator[SEP] operator[SEP] identifier[setUser] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[UI] identifier[ui] operator[=] identifier[UI] operator[SEP] identifier[getCurrent] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ui] Keyword[instanceof] identifier[AnnisBaseUI] operator[SEP] { operator[SEP] operator[SEP] identifier[AnnisBaseUI] operator[SEP] identifier[ui] operator[SEP] operator[SEP] identifier[getLoginDataLostBus] operator[SEP] operator[SEP] operator[SEP] identifier[post] operator[SEP] identifier[ex] operator[SEP] operator[SEP] } } } Keyword[if] operator[SEP] identifier[anonymousClient] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[anonymousClient] operator[SEP] identifier[set] operator[SEP] identifier[createRESTClient] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[anonymousClient] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[resource] operator[SEP] identifier[uri] operator[SEP] operator[SEP] }
static BOSHClientConnEvent createConnectionClosedOnErrorEvent( final BOSHClient source, final List<ComposableBody> outstanding, final Throwable cause) { return new BOSHClientConnEvent(source, false, outstanding, cause); }
class class_name[name] begin[{] method[createConnectionClosedOnErrorEvent, return_type[type[BOSHClientConnEvent]], modifier[static], parameter[source, outstanding, cause]] begin[{] return[ClassCreator(arguments=[MemberReference(member=source, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), MemberReference(member=outstanding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=cause, 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=BOSHClientConnEvent, sub_type=None))] end[}] END[}]
Keyword[static] identifier[BOSHClientConnEvent] identifier[createConnectionClosedOnErrorEvent] operator[SEP] Keyword[final] identifier[BOSHClient] identifier[source] , Keyword[final] identifier[List] operator[<] identifier[ComposableBody] operator[>] identifier[outstanding] , Keyword[final] identifier[Throwable] identifier[cause] operator[SEP] { Keyword[return] Keyword[new] identifier[BOSHClientConnEvent] operator[SEP] identifier[source] , literal[boolean] , identifier[outstanding] , identifier[cause] operator[SEP] operator[SEP] }
public MemberSelector createSelector(CommunicationStrategy selectionStrategy) { MemberSelector selector = new MemberSelector(leader, members, selectionStrategy, this); selectors.add(selector); return selector; }
class class_name[name] begin[{] method[createSelector, return_type[type[MemberSelector]], modifier[public], parameter[selectionStrategy]] begin[{] local_variable[type[MemberSelector], selector] call[selectors.add, parameter[member[.selector]]] return[member[.selector]] end[}] END[}]
Keyword[public] identifier[MemberSelector] identifier[createSelector] operator[SEP] identifier[CommunicationStrategy] identifier[selectionStrategy] operator[SEP] { identifier[MemberSelector] identifier[selector] operator[=] Keyword[new] identifier[MemberSelector] operator[SEP] identifier[leader] , identifier[members] , identifier[selectionStrategy] , Keyword[this] operator[SEP] operator[SEP] identifier[selectors] operator[SEP] identifier[add] operator[SEP] identifier[selector] operator[SEP] operator[SEP] Keyword[return] identifier[selector] operator[SEP] }
public static ManagedChannel fromCreds(GoogleCredentials creds, String fields) throws SSLException { List<ClientInterceptor> interceptors = new ArrayList(); interceptors.add(new ClientAuthInterceptor(creds.createScoped(Arrays.asList(GENOMICS_SCOPE)), Executors.newSingleThreadExecutor())); if (!Strings.isNullOrEmpty(fields)) { Metadata headers = new Metadata(); Metadata.Key<String> partialResponseHeader = Metadata.Key.of(PARTIAL_RESPONSE_HEADER, Metadata.ASCII_STRING_MARSHALLER); headers.put(partialResponseHeader, fields); interceptors.add(MetadataUtils.newAttachHeadersInterceptor(headers)); } return getGenomicsManagedChannel(interceptors); }
class class_name[name] begin[{] method[fromCreds, return_type[type[ManagedChannel]], modifier[public static], parameter[creds, fields]] begin[{] local_variable[type[List], interceptors] call[interceptors.add, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=GENOMICS_SCOPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=asList, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None)], member=createScoped, postfix_operators=[], prefix_operators=[], qualifier=creds, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=newSingleThreadExecutor, postfix_operators=[], prefix_operators=[], qualifier=Executors, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ClientAuthInterceptor, sub_type=None))]] if[call[Strings.isNullOrEmpty, parameter[member[.fields]]]] begin[{] local_variable[type[Metadata], headers] local_variable[type[Metadata], partialResponseHeader] call[headers.put, parameter[member[.partialResponseHeader], member[.fields]]] call[interceptors.add, parameter[call[MetadataUtils.newAttachHeadersInterceptor, parameter[member[.headers]]]]] else begin[{] None end[}] return[call[.getGenomicsManagedChannel, parameter[member[.interceptors]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[ManagedChannel] identifier[fromCreds] operator[SEP] identifier[GoogleCredentials] identifier[creds] , identifier[String] identifier[fields] operator[SEP] Keyword[throws] identifier[SSLException] { identifier[List] operator[<] identifier[ClientInterceptor] operator[>] identifier[interceptors] operator[=] Keyword[new] identifier[ArrayList] operator[SEP] operator[SEP] operator[SEP] identifier[interceptors] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[ClientAuthInterceptor] operator[SEP] identifier[creds] operator[SEP] identifier[createScoped] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[GENOMICS_SCOPE] operator[SEP] operator[SEP] , identifier[Executors] operator[SEP] identifier[newSingleThreadExecutor] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[Strings] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[fields] operator[SEP] operator[SEP] { identifier[Metadata] identifier[headers] operator[=] Keyword[new] identifier[Metadata] operator[SEP] operator[SEP] operator[SEP] identifier[Metadata] operator[SEP] identifier[Key] operator[<] identifier[String] operator[>] identifier[partialResponseHeader] operator[=] identifier[Metadata] operator[SEP] identifier[Key] operator[SEP] identifier[of] operator[SEP] identifier[PARTIAL_RESPONSE_HEADER] , identifier[Metadata] operator[SEP] identifier[ASCII_STRING_MARSHALLER] operator[SEP] operator[SEP] identifier[headers] operator[SEP] identifier[put] operator[SEP] identifier[partialResponseHeader] , identifier[fields] operator[SEP] operator[SEP] identifier[interceptors] operator[SEP] identifier[add] operator[SEP] identifier[MetadataUtils] operator[SEP] identifier[newAttachHeadersInterceptor] operator[SEP] identifier[headers] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[getGenomicsManagedChannel] operator[SEP] identifier[interceptors] operator[SEP] operator[SEP] }
public final void setTransactionIsolation(int isoLevel) throws SQLException { if (currentTransactionIsolation != isoLevel) { // Reject switching to an isolation level of TRANSACTION_NONE if (isoLevel == Connection.TRANSACTION_NONE) { throw new SQLException(AdapterUtil.getNLSMessage("DSRA4011.tran.none.iso.switch.unsupported", dsConfig.get().id)); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set Isolation Level to " + AdapterUtil.getIsolationLevelString(isoLevel)); // Don't update the isolation level until AFTER the operation completes // succesfully on the underlying Connection. sqlConn.setTransactionIsolation(isoLevel); currentTransactionIsolation = isoLevel; isolationChanged = true; } if (cachedConnection != null) cachedConnection.setCurrentTransactionIsolation(currentTransactionIsolation, key); }
class class_name[name] begin[{] method[setTransactionIsolation, return_type[void], modifier[final public], parameter[isoLevel]] begin[{] if[binary_operation[member[.currentTransactionIsolation], !=, member[.isoLevel]]] begin[{] if[binary_operation[member[.isoLevel], ==, member[Connection.TRANSACTION_NONE]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DSRA4011.tran.none.iso.switch.unsupported"), MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=dsConfig, selectors=[MemberReference(member=id, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)], type_arguments=None)], member=getNLSMessage, postfix_operators=[], prefix_operators=[], qualifier=AdapterUtil, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SQLException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[THIS[], member[.tc], binary_operation[literal["Set Isolation Level to "], +, call[AdapterUtil.getIsolationLevelString, parameter[member[.isoLevel]]]]]] else begin[{] None end[}] call[sqlConn.setTransactionIsolation, parameter[member[.isoLevel]]] assign[member[.currentTransactionIsolation], member[.isoLevel]] assign[member[.isolationChanged], literal[true]] else begin[{] None end[}] if[binary_operation[member[.cachedConnection], !=, literal[null]]] begin[{] call[cachedConnection.setCurrentTransactionIsolation, parameter[member[.currentTransactionIsolation], member[.key]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[setTransactionIsolation] operator[SEP] Keyword[int] identifier[isoLevel] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[currentTransactionIsolation] operator[!=] identifier[isoLevel] operator[SEP] { Keyword[if] operator[SEP] identifier[isoLevel] operator[==] identifier[Connection] operator[SEP] identifier[TRANSACTION_NONE] operator[SEP] { Keyword[throw] Keyword[new] identifier[SQLException] operator[SEP] identifier[AdapterUtil] operator[SEP] identifier[getNLSMessage] operator[SEP] literal[String] , identifier[dsConfig] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[id] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] Keyword[this] , identifier[tc] , literal[String] operator[+] identifier[AdapterUtil] operator[SEP] identifier[getIsolationLevelString] operator[SEP] identifier[isoLevel] operator[SEP] operator[SEP] operator[SEP] identifier[sqlConn] operator[SEP] identifier[setTransactionIsolation] operator[SEP] identifier[isoLevel] operator[SEP] operator[SEP] identifier[currentTransactionIsolation] operator[=] identifier[isoLevel] operator[SEP] identifier[isolationChanged] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[cachedConnection] operator[!=] Other[null] operator[SEP] identifier[cachedConnection] operator[SEP] identifier[setCurrentTransactionIsolation] operator[SEP] identifier[currentTransactionIsolation] , identifier[key] operator[SEP] operator[SEP] }
private boolean createMultipleRuntimeCollections(Formatter errlog) throws IOException { long start = System.currentTimeMillis(); List<MFile> files = new ArrayList<>(); List<? extends Group> groups = makeGroups(files, false, errlog); List<MFile> allFiles = Collections.unmodifiableList(files); if (allFiles.size() == 0) { throw new IllegalStateException("No files in this collection =" + name + " topdir=" + dcm.getRoot()); } if (groups.size() == 0) { throw new IllegalStateException("No records in this collection =" + name + " topdir=" + dcm.getRoot()); } // Create the master runtimes, classify the result CalendarDateRange calendarDateRangeAll = null; //boolean allTimesAreOne = true; boolean allTimesAreUnique = true; Set<Long> allRuntimes = new HashSet<>(); for (Group g : groups) { allRuntimes.addAll(g.getCoordinateRuntimes()); for (Coordinate coord : g.getCoordinates()) { if (coord instanceof CoordinateTime2D) { CoordinateTime2D coord2D = (CoordinateTime2D) coord; if (allTimesAreUnique) { allTimesAreUnique = coord2D.hasUniqueTimes(); } } if (coord instanceof CoordinateTimeAbstract) { CalendarDateRange calendarDateRange = ((CoordinateTimeAbstract) coord).makeCalendarDateRange(null); if (calendarDateRangeAll == null) calendarDateRangeAll = calendarDateRange; else calendarDateRangeAll = calendarDateRangeAll.extend(calendarDateRange); } } } List<Long> sortedList = new ArrayList<>(allRuntimes); Collections.sort(sortedList); if (sortedList.size() == 0) throw new IllegalArgumentException("No runtimes in this collection ="+name); else if (sortedList.size() == 1) this.type = GribCollectionImmutable.Type.SRC; else if (allTimesAreUnique) this.type = GribCollectionImmutable.Type.MRUTC; else this.type = GribCollectionImmutable.Type.MRC; CoordinateRuntime masterRuntimes = new CoordinateRuntime(sortedList, null); MFile indexFileForRuntime = GribCollectionMutable.makeIndexMFile(this.name, directory); boolean ok = writeIndex(this.name, indexFileForRuntime.getPath(), masterRuntimes, groups, allFiles, calendarDateRangeAll); /* if (this.type == GribCollectionImmutable.Type.MRC) { GribBestDatasetBuilder.makeDatasetBest(); } */ long took = System.currentTimeMillis() - start; logger.debug("That took {} msecs", took); return ok; }
class class_name[name] begin[{] method[createMultipleRuntimeCollections, return_type[type[boolean]], modifier[private], parameter[errlog]] begin[{] local_variable[type[long], start] local_variable[type[List], files] local_variable[type[List], groups] local_variable[type[List], allFiles] if[binary_operation[call[allFiles.size, parameter[]], ==, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No files in this collection ="), operandr=MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" topdir="), operator=+), operandr=MethodInvocation(arguments=[], member=getRoot, postfix_operators=[], prefix_operators=[], qualifier=dcm, 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=IllegalStateException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[call[groups.size, parameter[]], ==, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No records in this collection ="), operandr=MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" topdir="), operator=+), operandr=MethodInvocation(arguments=[], member=getRoot, postfix_operators=[], prefix_operators=[], qualifier=dcm, 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=IllegalStateException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[CalendarDateRange], calendarDateRangeAll] local_variable[type[boolean], allTimesAreUnique] local_variable[type[Set], allRuntimes] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getCoordinateRuntimes, postfix_operators=[], prefix_operators=[], qualifier=g, selectors=[], type_arguments=None)], member=addAll, postfix_operators=[], prefix_operators=[], qualifier=allRuntimes, selectors=[], type_arguments=None), label=None), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=coord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=CoordinateTime2D, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=coord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=CoordinateTime2D, sub_type=None)), name=coord2D)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CoordinateTime2D, sub_type=None)), IfStatement(condition=MemberReference(member=allTimesAreUnique, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=allTimesAreUnique, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=hasUniqueTimes, postfix_operators=[], prefix_operators=[], qualifier=coord2D, selectors=[], type_arguments=None)), label=None)]))])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=coord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=CoordinateTimeAbstract, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=coord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=CoordinateTimeAbstract, sub_type=None)), name=calendarDateRange)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CalendarDateRange, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=calendarDateRangeAll, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=calendarDateRangeAll, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=calendarDateRange, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=extend, postfix_operators=[], prefix_operators=[], qualifier=calendarDateRangeAll, selectors=[], type_arguments=None)), label=None), label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=calendarDateRangeAll, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=calendarDateRange, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None))]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getCoordinates, postfix_operators=[], prefix_operators=[], qualifier=g, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=coord)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Coordinate, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=groups, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=g)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Group, sub_type=None))), label=None) local_variable[type[List], sortedList] call[Collections.sort, parameter[member[.sortedList]]] if[binary_operation[call[sortedList.size, parameter[]], ==, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No runtimes in this collection ="), operandr=MemberReference(member=name, 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) else begin[{] if[binary_operation[call[sortedList.size, parameter[]], ==, literal[1]]] begin[{] assign[THIS[member[None.type]], member[GribCollectionImmutable.Type.SRC]] else begin[{] if[member[.allTimesAreUnique]] begin[{] assign[THIS[member[None.type]], member[GribCollectionImmutable.Type.MRUTC]] else begin[{] assign[THIS[member[None.type]], member[GribCollectionImmutable.Type.MRC]] end[}] end[}] end[}] local_variable[type[CoordinateRuntime], masterRuntimes] local_variable[type[MFile], indexFileForRuntime] local_variable[type[boolean], ok] local_variable[type[long], took] call[logger.debug, parameter[literal["That took {} msecs"], member[.took]]] return[member[.ok]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[createMultipleRuntimeCollections] operator[SEP] identifier[Formatter] identifier[errlog] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[start] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[MFile] operator[>] identifier[files] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Group] operator[>] identifier[groups] operator[=] identifier[makeGroups] operator[SEP] identifier[files] , literal[boolean] , identifier[errlog] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[MFile] operator[>] identifier[allFiles] operator[=] identifier[Collections] operator[SEP] identifier[unmodifiableList] operator[SEP] identifier[files] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[allFiles] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[+] identifier[name] operator[+] literal[String] operator[+] identifier[dcm] operator[SEP] identifier[getRoot] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[groups] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[+] identifier[name] operator[+] literal[String] operator[+] identifier[dcm] operator[SEP] identifier[getRoot] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[CalendarDateRange] identifier[calendarDateRangeAll] operator[=] Other[null] operator[SEP] Keyword[boolean] identifier[allTimesAreUnique] operator[=] literal[boolean] operator[SEP] identifier[Set] operator[<] identifier[Long] operator[>] identifier[allRuntimes] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Group] identifier[g] operator[:] identifier[groups] operator[SEP] { identifier[allRuntimes] operator[SEP] identifier[addAll] operator[SEP] identifier[g] operator[SEP] identifier[getCoordinateRuntimes] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Coordinate] identifier[coord] operator[:] identifier[g] operator[SEP] identifier[getCoordinates] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[coord] Keyword[instanceof] identifier[CoordinateTime2D] operator[SEP] { identifier[CoordinateTime2D] identifier[coord2D] operator[=] operator[SEP] identifier[CoordinateTime2D] operator[SEP] identifier[coord] operator[SEP] Keyword[if] operator[SEP] identifier[allTimesAreUnique] operator[SEP] { identifier[allTimesAreUnique] operator[=] identifier[coord2D] operator[SEP] identifier[hasUniqueTimes] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[coord] Keyword[instanceof] identifier[CoordinateTimeAbstract] operator[SEP] { identifier[CalendarDateRange] identifier[calendarDateRange] operator[=] operator[SEP] operator[SEP] identifier[CoordinateTimeAbstract] operator[SEP] identifier[coord] operator[SEP] operator[SEP] identifier[makeCalendarDateRange] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[calendarDateRangeAll] operator[==] Other[null] operator[SEP] identifier[calendarDateRangeAll] operator[=] identifier[calendarDateRange] operator[SEP] Keyword[else] identifier[calendarDateRangeAll] operator[=] identifier[calendarDateRangeAll] operator[SEP] identifier[extend] operator[SEP] identifier[calendarDateRange] operator[SEP] operator[SEP] } } } identifier[List] operator[<] identifier[Long] operator[>] identifier[sortedList] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] identifier[allRuntimes] operator[SEP] operator[SEP] identifier[Collections] operator[SEP] identifier[sort] operator[SEP] identifier[sortedList] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sortedList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[name] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[sortedList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[1] operator[SEP] Keyword[this] operator[SEP] identifier[type] operator[=] identifier[GribCollectionImmutable] operator[SEP] identifier[Type] operator[SEP] identifier[SRC] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[allTimesAreUnique] operator[SEP] Keyword[this] operator[SEP] identifier[type] operator[=] identifier[GribCollectionImmutable] operator[SEP] identifier[Type] operator[SEP] identifier[MRUTC] operator[SEP] Keyword[else] Keyword[this] operator[SEP] identifier[type] operator[=] identifier[GribCollectionImmutable] operator[SEP] identifier[Type] operator[SEP] identifier[MRC] operator[SEP] identifier[CoordinateRuntime] identifier[masterRuntimes] operator[=] Keyword[new] identifier[CoordinateRuntime] operator[SEP] identifier[sortedList] , Other[null] operator[SEP] operator[SEP] identifier[MFile] identifier[indexFileForRuntime] operator[=] identifier[GribCollectionMutable] operator[SEP] identifier[makeIndexMFile] operator[SEP] Keyword[this] operator[SEP] identifier[name] , identifier[directory] operator[SEP] operator[SEP] Keyword[boolean] identifier[ok] operator[=] identifier[writeIndex] operator[SEP] Keyword[this] operator[SEP] identifier[name] , identifier[indexFileForRuntime] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] , identifier[masterRuntimes] , identifier[groups] , identifier[allFiles] , identifier[calendarDateRangeAll] operator[SEP] operator[SEP] Keyword[long] identifier[took] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[-] identifier[start] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[took] operator[SEP] operator[SEP] Keyword[return] identifier[ok] operator[SEP] }
private static boolean staleCacheFile(final HttpQuery query, final long end_time, final long max_age, final File cachedfile) { final long mtime = cachedfile.lastModified() / 1000; if (mtime <= 0) { return true; // File doesn't exist, or can't be read. } final long now = System.currentTimeMillis() / 1000; // How old is the cached file, in seconds? final long staleness = now - mtime; if (staleness < 0) { // Can happen if the mtime is "in the future". logWarn(query, "Not using file @ " + cachedfile + " with weird" + " mtime in the future: " + mtime); return true; // Play it safe, pretend we can't use this file. } // Case 1: The end time is an absolute point in the past. // We might be able to re-use the cached file. if (0 < end_time && end_time < now) { // If the file was created prior to the end time, maybe we first // executed this query while the result was uncacheable. We can // tell by looking at the mtime on the file. If the file was created // before the query end time, then it contains partial results that // shouldn't be served again. return mtime < end_time; } // Case 2: The end time of the query is now or in the future. // The cached file contains partial data and can only be re-used if it's // not too old. if (staleness > max_age) { logInfo(query, "Cached file @ " + cachedfile.getPath() + " is " + staleness + "s stale, which is more than its limit of " + max_age + "s, and needs to be regenerated."); return true; } return false; }
class class_name[name] begin[{] method[staleCacheFile, return_type[type[boolean]], modifier[private static], parameter[query, end_time, max_age, cachedfile]] begin[{] local_variable[type[long], mtime] if[binary_operation[member[.mtime], <=, literal[0]]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable[type[long], now] local_variable[type[long], staleness] if[binary_operation[member[.staleness], <, literal[0]]] begin[{] call[.logWarn, parameter[member[.query], binary_operation[binary_operation[binary_operation[binary_operation[literal["Not using file @ "], +, member[.cachedfile]], +, literal[" with weird"]], +, literal[" mtime in the future: "]], +, member[.mtime]]]] return[literal[true]] else begin[{] None end[}] if[binary_operation[binary_operation[literal[0], <, member[.end_time]], &&, binary_operation[member[.end_time], <, member[.now]]]] begin[{] return[binary_operation[member[.mtime], <, member[.end_time]]] else begin[{] None end[}] if[binary_operation[member[.staleness], >, member[.max_age]]] begin[{] call[.logInfo, parameter[member[.query], binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Cached file @ "], +, call[cachedfile.getPath, parameter[]]], +, literal[" is "]], +, member[.staleness]], +, literal["s stale, which is more than its limit of "]], +, member[.max_age]], +, literal["s, and needs to be regenerated."]]]] return[literal[true]] else begin[{] None end[}] return[literal[false]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[boolean] identifier[staleCacheFile] operator[SEP] Keyword[final] identifier[HttpQuery] identifier[query] , Keyword[final] Keyword[long] identifier[end_time] , Keyword[final] Keyword[long] identifier[max_age] , Keyword[final] identifier[File] identifier[cachedfile] operator[SEP] { Keyword[final] Keyword[long] identifier[mtime] operator[=] identifier[cachedfile] operator[SEP] identifier[lastModified] operator[SEP] operator[SEP] operator[/] Other[1000] operator[SEP] Keyword[if] operator[SEP] identifier[mtime] operator[<=] Other[0] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[final] Keyword[long] identifier[now] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[/] Other[1000] operator[SEP] Keyword[final] Keyword[long] identifier[staleness] operator[=] identifier[now] operator[-] identifier[mtime] operator[SEP] Keyword[if] operator[SEP] identifier[staleness] operator[<] Other[0] operator[SEP] { identifier[logWarn] operator[SEP] identifier[query] , literal[String] operator[+] identifier[cachedfile] operator[+] literal[String] operator[+] literal[String] operator[+] identifier[mtime] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] Other[0] operator[<] identifier[end_time] operator[&&] identifier[end_time] operator[<] identifier[now] operator[SEP] { Keyword[return] identifier[mtime] operator[<] identifier[end_time] operator[SEP] } Keyword[if] operator[SEP] identifier[staleness] operator[>] identifier[max_age] operator[SEP] { identifier[logInfo] operator[SEP] identifier[query] , literal[String] operator[+] identifier[cachedfile] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[staleness] operator[+] literal[String] operator[+] identifier[max_age] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
@Override public Query rewrite(IndexReader reader) throws IOException { Query cQuery = contextQuery.rewrite(reader); if (cQuery == contextQuery) // NOSONAR { return this; } else { return new DerefQuery(cQuery, refProperty, nameTest, version, nsMappings); } }
class class_name[name] begin[{] method[rewrite, return_type[type[Query]], modifier[public], parameter[reader]] begin[{] local_variable[type[Query], cQuery] if[binary_operation[member[.cQuery], ==, member[.contextQuery]]] begin[{] return[THIS[]] else begin[{] return[ClassCreator(arguments=[MemberReference(member=cQuery, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=refProperty, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=nameTest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=version, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=nsMappings, 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=DerefQuery, sub_type=None))] end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Query] identifier[rewrite] operator[SEP] identifier[IndexReader] identifier[reader] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Query] identifier[cQuery] operator[=] identifier[contextQuery] operator[SEP] identifier[rewrite] operator[SEP] identifier[reader] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cQuery] operator[==] identifier[contextQuery] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[DerefQuery] operator[SEP] identifier[cQuery] , identifier[refProperty] , identifier[nameTest] , identifier[version] , identifier[nsMappings] operator[SEP] operator[SEP] } }
public Record getScreenRecord() { Record record = super.getScreenRecord(); if (record == null) if (m_sessionObjectParent != null) record = ((BaseSession)m_sessionObjectParent).getScreenRecord(); // Look thru the parent window now return record; }
class class_name[name] begin[{] method[getScreenRecord, return_type[type[Record]], modifier[public], parameter[]] begin[{] local_variable[type[Record], record] if[binary_operation[member[.record], ==, literal[null]]] begin[{] if[binary_operation[member[.m_sessionObjectParent], !=, literal[null]]] begin[{] assign[member[.record], Cast(expression=MemberReference(member=m_sessionObjectParent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=BaseSession, sub_type=None))] else begin[{] None end[}] else begin[{] None end[}] return[member[.record]] end[}] END[}]
Keyword[public] identifier[Record] identifier[getScreenRecord] operator[SEP] operator[SEP] { identifier[Record] identifier[record] operator[=] Keyword[super] operator[SEP] identifier[getScreenRecord] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[record] operator[==] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[m_sessionObjectParent] operator[!=] Other[null] operator[SEP] identifier[record] operator[=] operator[SEP] operator[SEP] identifier[BaseSession] operator[SEP] identifier[m_sessionObjectParent] operator[SEP] operator[SEP] identifier[getScreenRecord] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[record] operator[SEP] }
protected int getFirstIndexOfConflictingTerm(int start_index, int conflicting_term) { Log log=raft.log_impl; int first=Math.max(1, log.firstAppended()), last=log.lastAppended(); int retval=Math.min(start_index, last); for(int i=retval; i >= first; i--) { LogEntry entry=log.get(i); if(entry == null || entry.term != conflicting_term) break; retval=i; } return retval; }
class class_name[name] begin[{] method[getFirstIndexOfConflictingTerm, return_type[type[int]], modifier[protected], parameter[start_index, conflicting_term]] begin[{] local_variable[type[Log], log] local_variable[type[int], first] local_variable[type[int], retval] 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=log, selectors=[], type_arguments=None), name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=LogEntry, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=entry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), operandr=BinaryOperation(operandl=MemberReference(member=term, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[]), operandr=MemberReference(member=conflicting_term, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), operator=||), else_statement=None, label=None, then_statement=BreakStatement(goto=None, label=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=retval, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=first, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MemberReference(member=retval, 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) return[member[.retval]] end[}] END[}]
Keyword[protected] Keyword[int] identifier[getFirstIndexOfConflictingTerm] operator[SEP] Keyword[int] identifier[start_index] , Keyword[int] identifier[conflicting_term] operator[SEP] { identifier[Log] identifier[log] operator[=] identifier[raft] operator[SEP] identifier[log_impl] operator[SEP] Keyword[int] identifier[first] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] Other[1] , identifier[log] operator[SEP] identifier[firstAppended] operator[SEP] operator[SEP] operator[SEP] , identifier[last] operator[=] identifier[log] operator[SEP] identifier[lastAppended] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[retval] operator[=] identifier[Math] operator[SEP] identifier[min] operator[SEP] identifier[start_index] , identifier[last] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[retval] operator[SEP] identifier[i] operator[>=] identifier[first] operator[SEP] identifier[i] operator[--] operator[SEP] { identifier[LogEntry] identifier[entry] operator[=] identifier[log] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[entry] operator[==] Other[null] operator[||] identifier[entry] operator[SEP] identifier[term] operator[!=] identifier[conflicting_term] operator[SEP] Keyword[break] operator[SEP] identifier[retval] operator[=] identifier[i] operator[SEP] } Keyword[return] identifier[retval] operator[SEP] }
public void initialize() throws DurableDataLogException { this.cacheManager.startAsync().awaitRunning(); getSingleton(this.dataLogFactory, this.dataLogFactoryCreator).initialize(); getSingleton(this.containerManager, this.segmentContainerManagerCreator).initialize(); }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[]] begin[{] THIS[member[None.cacheManager]call[None.startAsync, parameter[]]call[None.awaitRunning, parameter[]]] call[.getSingleton, parameter[THIS[member[None.dataLogFactory]], THIS[member[None.dataLogFactoryCreator]]]] call[.getSingleton, parameter[THIS[member[None.containerManager]], THIS[member[None.segmentContainerManagerCreator]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] Keyword[throws] identifier[DurableDataLogException] { Keyword[this] operator[SEP] identifier[cacheManager] operator[SEP] identifier[startAsync] operator[SEP] operator[SEP] operator[SEP] identifier[awaitRunning] operator[SEP] operator[SEP] operator[SEP] identifier[getSingleton] operator[SEP] Keyword[this] operator[SEP] identifier[dataLogFactory] , Keyword[this] operator[SEP] identifier[dataLogFactoryCreator] operator[SEP] operator[SEP] identifier[initialize] operator[SEP] operator[SEP] operator[SEP] identifier[getSingleton] operator[SEP] Keyword[this] operator[SEP] identifier[containerManager] , Keyword[this] operator[SEP] identifier[segmentContainerManagerCreator] operator[SEP] operator[SEP] identifier[initialize] operator[SEP] operator[SEP] operator[SEP] }
private ActionList touchActionList() { if (contentList != null) { if (contentList.isExplicit() || contentList.size() != 1) { contentList = null; } else { ActionList actionList = contentList.get(0); if (actionList.isExplicit()) { contentList = null; } } } ActionList actionList; if (contentList == null) { contentList = new ContentList(false); actionList = new ActionList(false); contentList.add(actionList); } else { actionList = contentList.get(0); } return actionList; }
class class_name[name] begin[{] method[touchActionList, return_type[type[ActionList]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.contentList], !=, literal[null]]] begin[{] if[binary_operation[call[contentList.isExplicit, parameter[]], ||, binary_operation[call[contentList.size, parameter[]], !=, literal[1]]]] begin[{] assign[member[.contentList], literal[null]] else begin[{] local_variable[type[ActionList], actionList] if[call[actionList.isExplicit, parameter[]]] begin[{] assign[member[.contentList], literal[null]] else begin[{] None end[}] end[}] else begin[{] None end[}] local_variable[type[ActionList], actionList] if[binary_operation[member[.contentList], ==, literal[null]]] begin[{] assign[member[.contentList], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ContentList, sub_type=None))] assign[member[.actionList], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ActionList, sub_type=None))] call[contentList.add, parameter[member[.actionList]]] else begin[{] assign[member[.actionList], call[contentList.get, parameter[literal[0]]]] end[}] return[member[.actionList]] end[}] END[}]
Keyword[private] identifier[ActionList] identifier[touchActionList] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[contentList] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[contentList] operator[SEP] identifier[isExplicit] operator[SEP] operator[SEP] operator[||] identifier[contentList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] Other[1] operator[SEP] { identifier[contentList] operator[=] Other[null] operator[SEP] } Keyword[else] { identifier[ActionList] identifier[actionList] operator[=] identifier[contentList] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[actionList] operator[SEP] identifier[isExplicit] operator[SEP] operator[SEP] operator[SEP] { identifier[contentList] operator[=] Other[null] operator[SEP] } } } identifier[ActionList] identifier[actionList] operator[SEP] Keyword[if] operator[SEP] identifier[contentList] operator[==] Other[null] operator[SEP] { identifier[contentList] operator[=] Keyword[new] identifier[ContentList] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[actionList] operator[=] Keyword[new] identifier[ActionList] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[contentList] operator[SEP] identifier[add] operator[SEP] identifier[actionList] operator[SEP] operator[SEP] } Keyword[else] { identifier[actionList] operator[=] identifier[contentList] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] } Keyword[return] identifier[actionList] operator[SEP] }
protected void resizeForLayer( int width , int height ) { deriv1X.reshape(width,height); deriv1Y.reshape(width,height); deriv2X.reshape(width,height); deriv2Y.reshape(width,height); deriv2XX.reshape(width,height); deriv2YY.reshape(width,height); deriv2XY.reshape(width,height); warpImage2.reshape(width,height); warpDeriv2X.reshape(width,height); warpDeriv2Y.reshape(width,height); warpDeriv2XX.reshape(width,height); warpDeriv2YY.reshape(width,height); warpDeriv2XY.reshape(width,height); derivFlowUX.reshape(width,height); derivFlowUY.reshape(width,height); derivFlowVX.reshape(width,height); derivFlowVY.reshape(width,height); psiData.reshape(width,height); psiGradient.reshape(width,height); psiSmooth.reshape(width,height); divU.reshape(width,height); divV.reshape(width,height); divD.reshape(width,height); du.reshape(width,height); dv.reshape(width,height); }
class class_name[name] begin[{] method[resizeForLayer, return_type[void], modifier[protected], parameter[width, height]] begin[{] call[deriv1X.reshape, parameter[member[.width], member[.height]]] call[deriv1Y.reshape, parameter[member[.width], member[.height]]] call[deriv2X.reshape, parameter[member[.width], member[.height]]] call[deriv2Y.reshape, parameter[member[.width], member[.height]]] call[deriv2XX.reshape, parameter[member[.width], member[.height]]] call[deriv2YY.reshape, parameter[member[.width], member[.height]]] call[deriv2XY.reshape, parameter[member[.width], member[.height]]] call[warpImage2.reshape, parameter[member[.width], member[.height]]] call[warpDeriv2X.reshape, parameter[member[.width], member[.height]]] call[warpDeriv2Y.reshape, parameter[member[.width], member[.height]]] call[warpDeriv2XX.reshape, parameter[member[.width], member[.height]]] call[warpDeriv2YY.reshape, parameter[member[.width], member[.height]]] call[warpDeriv2XY.reshape, parameter[member[.width], member[.height]]] call[derivFlowUX.reshape, parameter[member[.width], member[.height]]] call[derivFlowUY.reshape, parameter[member[.width], member[.height]]] call[derivFlowVX.reshape, parameter[member[.width], member[.height]]] call[derivFlowVY.reshape, parameter[member[.width], member[.height]]] call[psiData.reshape, parameter[member[.width], member[.height]]] call[psiGradient.reshape, parameter[member[.width], member[.height]]] call[psiSmooth.reshape, parameter[member[.width], member[.height]]] call[divU.reshape, parameter[member[.width], member[.height]]] call[divV.reshape, parameter[member[.width], member[.height]]] call[divD.reshape, parameter[member[.width], member[.height]]] call[du.reshape, parameter[member[.width], member[.height]]] call[dv.reshape, parameter[member[.width], member[.height]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[resizeForLayer] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] { identifier[deriv1X] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[deriv1Y] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[deriv2X] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[deriv2Y] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[deriv2XX] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[deriv2YY] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[deriv2XY] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[warpImage2] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[warpDeriv2X] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[warpDeriv2Y] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[warpDeriv2XX] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[warpDeriv2YY] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[warpDeriv2XY] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[derivFlowUX] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[derivFlowUY] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[derivFlowVX] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[derivFlowVY] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[psiData] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[psiGradient] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[psiSmooth] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[divU] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[divV] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[divD] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[du] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[dv] operator[SEP] identifier[reshape] operator[SEP] identifier[width] , identifier[height] operator[SEP] operator[SEP] }
private long getUTC(long time, int raw, int dst) { if (timeType != DateTimeRule.UTC_TIME) { time -= raw; } if (timeType == DateTimeRule.WALL_TIME) { time -= dst; } return time; }
class class_name[name] begin[{] method[getUTC, return_type[type[long]], modifier[private], parameter[time, raw, dst]] begin[{] if[binary_operation[member[.timeType], !=, member[DateTimeRule.UTC_TIME]]] begin[{] assign[member[.time], member[.raw]] else begin[{] None end[}] if[binary_operation[member[.timeType], ==, member[DateTimeRule.WALL_TIME]]] begin[{] assign[member[.time], member[.dst]] else begin[{] None end[}] return[member[.time]] end[}] END[}]
Keyword[private] Keyword[long] identifier[getUTC] operator[SEP] Keyword[long] identifier[time] , Keyword[int] identifier[raw] , Keyword[int] identifier[dst] operator[SEP] { Keyword[if] operator[SEP] identifier[timeType] operator[!=] identifier[DateTimeRule] operator[SEP] identifier[UTC_TIME] operator[SEP] { identifier[time] operator[-=] identifier[raw] operator[SEP] } Keyword[if] operator[SEP] identifier[timeType] operator[==] identifier[DateTimeRule] operator[SEP] identifier[WALL_TIME] operator[SEP] { identifier[time] operator[-=] identifier[dst] operator[SEP] } Keyword[return] identifier[time] operator[SEP] }
@Override public com.liferay.commerce.product.model.CPDefinitionLink fetchCPDefinitionLinkByUuidAndGroupId( String uuid, long groupId) { return _cpDefinitionLinkLocalService.fetchCPDefinitionLinkByUuidAndGroupId(uuid, groupId); }
class class_name[name] begin[{] method[fetchCPDefinitionLinkByUuidAndGroupId, return_type[type[com]], modifier[public], parameter[uuid, groupId]] begin[{] return[call[_cpDefinitionLinkLocalService.fetchCPDefinitionLinkByUuidAndGroupId, parameter[member[.uuid], member[.groupId]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CPDefinitionLink] identifier[fetchCPDefinitionLinkByUuidAndGroupId] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] operator[SEP] { Keyword[return] identifier[_cpDefinitionLinkLocalService] operator[SEP] identifier[fetchCPDefinitionLinkByUuidAndGroupId] operator[SEP] identifier[uuid] , identifier[groupId] operator[SEP] operator[SEP] }
static void oneLong(float[] src, float[] dst) { for (int i = 17; i > 0; i--) src[i] += src[i - 1]; for (int i = 17; i > 2; i -= 2) src[i] += src[i - 2]; for (int i = 0, k = 0; i < 2; i++, k += 8) { float tmp0 = src[i] + src[i]; float tmp1 = tmp0 + src[12 + i]; float tmp2 = src[6 + i] * factor36pt3; tmp[k + 0] = tmp1 + src[4 + i] * factor36pt2 + src[8 + i] * factor36pt1 + src[16 + i] * factor36pt0; tmp[k + 1] = tmp0 + src[4 + i] - src[8 + i] - src[12 + i] - src[12 + i] - src[16 + i]; tmp[k + 2] = tmp1 - src[4 + i] * factor36pt0 - src[8 + i] * factor36pt2 + src[16 + i] * factor36pt1; tmp[k + 3] = tmp1 - src[4 + i] * factor36pt1 + src[8 + i] * factor36pt0 - src[16 + i] * factor36pt2; tmp[k + 4] = src[2 + i] * factor36pt4 + tmp2 + src[10 + i] * factor36pt5 + src[14 + i] * factor36pt6; tmp[k + 5] = (src[2 + i] - src[10 + i] - src[14 + i]) * factor36pt3; tmp[k + 6] = src[2 + i] * factor36pt5 - tmp2 - src[10 + i] * factor36pt6 + src[14 + i] * factor36pt4; tmp[k + 7] = src[2 + i] * factor36pt6 - tmp2 + src[10 + i] * factor36pt4 - src[14 + i] * factor36pt5; } for (int i = 0, j = 4, k = 8, l = 12; i < 4; i++, j++, k++, l++) { float q1 = tmp[i]; float q2 = tmp[k]; tmp[i] += tmp[j]; tmp[j] = q1 - tmp[j]; tmp[k] = (tmp[k] + tmp[l]) * factor36[i]; tmp[l] = (q2 - tmp[l]) * factor36[7 - i]; } for (int i = 0; i < 4; i++) { dst[26 - i] = tmp[i] + tmp[8 + i]; dst[8 - i] = tmp[8 + i] - tmp[i]; dst[27 + i] = dst[26 - i]; dst[9 + i] = -dst[8 - i]; } for (int i = 0; i < 4; i++) { dst[21 - i] = tmp[7 - i] + tmp[15 - i]; dst[3 - i] = tmp[15 - i] - tmp[7 - i]; dst[32 + i] = dst[21 - i]; dst[14 + i] = -dst[3 - i]; } float tmp0 = src[0] - src[4] + src[8] - src[12] + src[16]; float tmp1 = (src[1] - src[5] + src[9] - src[13] + src[17]) * cos450; dst[4] = tmp1 - tmp0; dst[13] = -dst[4]; dst[31] = dst[22] = tmp0 + tmp1; }
class class_name[name] begin[{] method[oneLong, return_type[void], modifier[static], parameter[src, dst]] begin[{] ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=+=, value=MemberReference(member=src, 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=-))])), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=17), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[])]), label=None) ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=+=, value=MemberReference(member=src, 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=2), operator=-))])), label=None), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=>), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=17), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[Assignment(expressionl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=-=, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2))]), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=+), name=tmp0)], modifiers=set(), type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=tmp0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=+), name=tmp1)], modifiers=set(), type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=tmp2)], modifiers=set(), type=BasicType(dimensions=[], name=float)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=tmp1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=tmp0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=+), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=-), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=-), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=-), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=tmp1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=-), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=-), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=tmp1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=-), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt4, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operandr=MemberReference(member=tmp2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt5, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=14), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt6, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=-), operandr=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=14), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=-), operandr=MemberReference(member=factor36pt3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt5, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operandr=MemberReference(member=tmp2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt6, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=-), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=14), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt4, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=+))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt6, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operandr=MemberReference(member=tmp2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt4, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=+), operandr=BinaryOperation(operandl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=14), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=factor36pt5, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operator=-)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i), VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=k)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), Assignment(expressionl=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8))]), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=q1)], modifiers=set(), type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=q2)], modifiers=set(), type=BasicType(dimensions=[], name=float)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=+=, value=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=BinaryOperation(operandl=MemberReference(member=q1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=+), operandr=MemberReference(member=factor36, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=*)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=q2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=-), operandr=MemberReference(member=factor36, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), operator=*)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i), VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), name=j), VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), name=k), VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), name=l)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=k, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=l, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=26), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), type==, value=BinaryOperation(operandl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), type==, value=BinaryOperation(operandl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=27), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=26), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=9), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=dst, postfix_operators=[], prefix_operators=['-'], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=21), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), type==, value=BinaryOperation(operandl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=15), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), type==, value=BinaryOperation(operandl=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=15), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), operandr=MemberReference(member=tmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))]), operator=-)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=32), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=21), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dst, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=14), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=dst, postfix_operators=[], prefix_operators=['-'], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-))])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[float], tmp0] local_variable[type[float], tmp1] assign[member[.dst], binary_operation[member[.tmp1], -, member[.tmp0]]] assign[member[.dst], member[.dst]] assign[member[.dst], assign[member[.dst], binary_operation[member[.tmp0], +, member[.tmp1]]]] end[}] END[}]
Keyword[static] Keyword[void] identifier[oneLong] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[src] , Keyword[float] operator[SEP] operator[SEP] identifier[dst] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[17] operator[SEP] identifier[i] operator[>] Other[0] operator[SEP] identifier[i] operator[--] operator[SEP] identifier[src] operator[SEP] identifier[i] operator[SEP] operator[+=] identifier[src] operator[SEP] identifier[i] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[17] operator[SEP] identifier[i] operator[>] Other[2] operator[SEP] identifier[i] operator[-=] Other[2] operator[SEP] identifier[src] operator[SEP] identifier[i] operator[SEP] operator[+=] identifier[src] operator[SEP] identifier[i] operator[-] Other[2] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] , identifier[k] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Other[2] operator[SEP] identifier[i] operator[++] , identifier[k] operator[+=] Other[8] operator[SEP] { Keyword[float] identifier[tmp0] operator[=] identifier[src] operator[SEP] identifier[i] operator[SEP] operator[+] identifier[src] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[float] identifier[tmp1] operator[=] identifier[tmp0] operator[+] identifier[src] operator[SEP] Other[12] operator[+] identifier[i] operator[SEP] operator[SEP] Keyword[float] identifier[tmp2] operator[=] identifier[src] operator[SEP] Other[6] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt3] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[0] operator[SEP] operator[=] identifier[tmp1] operator[+] identifier[src] operator[SEP] Other[4] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt2] operator[+] identifier[src] operator[SEP] Other[8] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt1] operator[+] identifier[src] operator[SEP] Other[16] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt0] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[1] operator[SEP] operator[=] identifier[tmp0] operator[+] identifier[src] operator[SEP] Other[4] operator[+] identifier[i] operator[SEP] operator[-] identifier[src] operator[SEP] Other[8] operator[+] identifier[i] operator[SEP] operator[-] identifier[src] operator[SEP] Other[12] operator[+] identifier[i] operator[SEP] operator[-] identifier[src] operator[SEP] Other[12] operator[+] identifier[i] operator[SEP] operator[-] identifier[src] operator[SEP] Other[16] operator[+] identifier[i] operator[SEP] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[2] operator[SEP] operator[=] identifier[tmp1] operator[-] identifier[src] operator[SEP] Other[4] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt0] operator[-] identifier[src] operator[SEP] Other[8] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt2] operator[+] identifier[src] operator[SEP] Other[16] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt1] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[3] operator[SEP] operator[=] identifier[tmp1] operator[-] identifier[src] operator[SEP] Other[4] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt1] operator[+] identifier[src] operator[SEP] Other[8] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt0] operator[-] identifier[src] operator[SEP] Other[16] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt2] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[4] operator[SEP] operator[=] identifier[src] operator[SEP] Other[2] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt4] operator[+] identifier[tmp2] operator[+] identifier[src] operator[SEP] Other[10] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt5] operator[+] identifier[src] operator[SEP] Other[14] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt6] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[5] operator[SEP] operator[=] operator[SEP] identifier[src] operator[SEP] Other[2] operator[+] identifier[i] operator[SEP] operator[-] identifier[src] operator[SEP] Other[10] operator[+] identifier[i] operator[SEP] operator[-] identifier[src] operator[SEP] Other[14] operator[+] identifier[i] operator[SEP] operator[SEP] operator[*] identifier[factor36pt3] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[6] operator[SEP] operator[=] identifier[src] operator[SEP] Other[2] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt5] operator[-] identifier[tmp2] operator[-] identifier[src] operator[SEP] Other[10] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt6] operator[+] identifier[src] operator[SEP] Other[14] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt4] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[+] Other[7] operator[SEP] operator[=] identifier[src] operator[SEP] Other[2] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt6] operator[-] identifier[tmp2] operator[+] identifier[src] operator[SEP] Other[10] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt4] operator[-] identifier[src] operator[SEP] Other[14] operator[+] identifier[i] operator[SEP] operator[*] identifier[factor36pt5] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] , identifier[j] operator[=] Other[4] , identifier[k] operator[=] Other[8] , identifier[l] operator[=] Other[12] operator[SEP] identifier[i] operator[<] Other[4] operator[SEP] identifier[i] operator[++] , identifier[j] operator[++] , identifier[k] operator[++] , identifier[l] operator[++] operator[SEP] { Keyword[float] identifier[q1] operator[=] identifier[tmp] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[float] identifier[q2] operator[=] identifier[tmp] operator[SEP] identifier[k] operator[SEP] operator[SEP] identifier[tmp] operator[SEP] identifier[i] operator[SEP] operator[+=] identifier[tmp] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[tmp] operator[SEP] identifier[j] operator[SEP] operator[=] identifier[q1] operator[-] identifier[tmp] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[SEP] operator[=] operator[SEP] identifier[tmp] operator[SEP] identifier[k] operator[SEP] operator[+] identifier[tmp] operator[SEP] identifier[l] operator[SEP] operator[SEP] operator[*] identifier[factor36] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[tmp] operator[SEP] identifier[l] operator[SEP] operator[=] operator[SEP] identifier[q2] operator[-] identifier[tmp] operator[SEP] identifier[l] operator[SEP] operator[SEP] operator[*] identifier[factor36] operator[SEP] Other[7] operator[-] identifier[i] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Other[4] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[dst] operator[SEP] Other[26] operator[-] identifier[i] operator[SEP] operator[=] identifier[tmp] operator[SEP] identifier[i] operator[SEP] operator[+] identifier[tmp] operator[SEP] Other[8] operator[+] identifier[i] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[8] operator[-] identifier[i] operator[SEP] operator[=] identifier[tmp] operator[SEP] Other[8] operator[+] identifier[i] operator[SEP] operator[-] identifier[tmp] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[27] operator[+] identifier[i] operator[SEP] operator[=] identifier[dst] operator[SEP] Other[26] operator[-] identifier[i] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[9] operator[+] identifier[i] operator[SEP] operator[=] operator[-] identifier[dst] operator[SEP] Other[8] operator[-] identifier[i] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Other[4] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[dst] operator[SEP] Other[21] operator[-] identifier[i] operator[SEP] operator[=] identifier[tmp] operator[SEP] Other[7] operator[-] identifier[i] operator[SEP] operator[+] identifier[tmp] operator[SEP] Other[15] operator[-] identifier[i] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[3] operator[-] identifier[i] operator[SEP] operator[=] identifier[tmp] operator[SEP] Other[15] operator[-] identifier[i] operator[SEP] operator[-] identifier[tmp] operator[SEP] Other[7] operator[-] identifier[i] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[32] operator[+] identifier[i] operator[SEP] operator[=] identifier[dst] operator[SEP] Other[21] operator[-] identifier[i] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[14] operator[+] identifier[i] operator[SEP] operator[=] operator[-] identifier[dst] operator[SEP] Other[3] operator[-] identifier[i] operator[SEP] operator[SEP] } Keyword[float] identifier[tmp0] operator[=] identifier[src] operator[SEP] Other[0] operator[SEP] operator[-] identifier[src] operator[SEP] Other[4] operator[SEP] operator[+] identifier[src] operator[SEP] Other[8] operator[SEP] operator[-] identifier[src] operator[SEP] Other[12] operator[SEP] operator[+] identifier[src] operator[SEP] Other[16] operator[SEP] operator[SEP] Keyword[float] identifier[tmp1] operator[=] operator[SEP] identifier[src] operator[SEP] Other[1] operator[SEP] operator[-] identifier[src] operator[SEP] Other[5] operator[SEP] operator[+] identifier[src] operator[SEP] Other[9] operator[SEP] operator[-] identifier[src] operator[SEP] Other[13] operator[SEP] operator[+] identifier[src] operator[SEP] Other[17] operator[SEP] operator[SEP] operator[*] identifier[cos450] operator[SEP] identifier[dst] operator[SEP] Other[4] operator[SEP] operator[=] identifier[tmp1] operator[-] identifier[tmp0] operator[SEP] identifier[dst] operator[SEP] Other[13] operator[SEP] operator[=] operator[-] identifier[dst] operator[SEP] Other[4] operator[SEP] operator[SEP] identifier[dst] operator[SEP] Other[31] operator[SEP] operator[=] identifier[dst] operator[SEP] Other[22] operator[SEP] operator[=] identifier[tmp0] operator[+] identifier[tmp1] operator[SEP] }
public static void endToProcess(ProgressReporter progressReporter, boolean processSuccess, ProgressStatus progressStatus, Object reportObject) { progressStatus.getProgressInfo().setIsSuccess(processSuccess); progressReporter.reportEnd(progressStatus, reportObject); }
class class_name[name] begin[{] method[endToProcess, return_type[void], modifier[public static], parameter[progressReporter, processSuccess, progressStatus, reportObject]] begin[{] call[progressStatus.getProgressInfo, parameter[]] call[progressReporter.reportEnd, parameter[member[.progressStatus], member[.reportObject]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[endToProcess] operator[SEP] identifier[ProgressReporter] identifier[progressReporter] , Keyword[boolean] identifier[processSuccess] , identifier[ProgressStatus] identifier[progressStatus] , identifier[Object] identifier[reportObject] operator[SEP] { identifier[progressStatus] operator[SEP] identifier[getProgressInfo] operator[SEP] operator[SEP] operator[SEP] identifier[setIsSuccess] operator[SEP] identifier[processSuccess] operator[SEP] operator[SEP] identifier[progressReporter] operator[SEP] identifier[reportEnd] operator[SEP] identifier[progressStatus] , identifier[reportObject] operator[SEP] operator[SEP] }
protected String resolveKey(String alias) { List<String> possibleKeys = aliases.get(alias); for (String key : possibleKeys) { if (resolver.containsProperty(key)) { return key; } } return null; }
class class_name[name] begin[{] method[resolveKey, return_type[type[String]], modifier[protected], parameter[alias]] begin[{] local_variable[type[List], possibleKeys] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=containsProperty, postfix_operators=[], prefix_operators=[], qualifier=resolver, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=possibleKeys, 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) return[literal[null]] end[}] END[}]
Keyword[protected] identifier[String] identifier[resolveKey] operator[SEP] identifier[String] identifier[alias] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[possibleKeys] operator[=] identifier[aliases] operator[SEP] identifier[get] operator[SEP] identifier[alias] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[key] operator[:] identifier[possibleKeys] operator[SEP] { Keyword[if] operator[SEP] identifier[resolver] operator[SEP] identifier[containsProperty] operator[SEP] identifier[key] operator[SEP] operator[SEP] { Keyword[return] identifier[key] operator[SEP] } } Keyword[return] Other[null] operator[SEP] }
public double[] inverseProjection(int x, int y) { double[] sc = new double[2]; double ratio = (canvas.base.upperBound[0] - canvas.base.lowerBound[0]) / (canvas.getWidth() * (1 - 2 * canvas.margin)); sc[0] = canvas.base.lowerBound[0] + ratio * (x - canvas.getWidth() * canvas.margin); ratio = (canvas.base.upperBound[1] - canvas.base.lowerBound[1]) / (canvas.getHeight() * (1 - 2 * canvas.margin)); sc[1] = canvas.base.lowerBound[1] + ratio * (canvas.getHeight() * (1 - canvas.margin) - y); return sc; }
class class_name[name] begin[{] method[inverseProjection, return_type[type[double]], modifier[public], parameter[x, y]] begin[{] local_variable[type[double], sc] local_variable[type[double], ratio] assign[member[.sc], binary_operation[member[canvas.base.lowerBound], +, binary_operation[member[.ratio], *, binary_operation[member[.x], -, binary_operation[call[canvas.getWidth, parameter[]], *, member[canvas.margin]]]]]] assign[member[.ratio], binary_operation[binary_operation[member[canvas.base.upperBound], -, member[canvas.base.lowerBound]], /, binary_operation[call[canvas.getHeight, parameter[]], *, binary_operation[literal[1], -, binary_operation[literal[2], *, member[canvas.margin]]]]]] assign[member[.sc], binary_operation[member[canvas.base.lowerBound], +, binary_operation[member[.ratio], *, binary_operation[binary_operation[call[canvas.getHeight, parameter[]], *, binary_operation[literal[1], -, member[canvas.margin]]], -, member[.y]]]]] return[member[.sc]] end[}] END[}]
Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[inverseProjection] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[sc] operator[=] Keyword[new] Keyword[double] operator[SEP] Other[2] operator[SEP] operator[SEP] Keyword[double] identifier[ratio] operator[=] operator[SEP] identifier[canvas] operator[SEP] identifier[base] operator[SEP] identifier[upperBound] operator[SEP] Other[0] operator[SEP] operator[-] identifier[canvas] operator[SEP] identifier[base] operator[SEP] identifier[lowerBound] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[/] operator[SEP] identifier[canvas] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[*] operator[SEP] Other[1] operator[-] Other[2] operator[*] identifier[canvas] operator[SEP] identifier[margin] operator[SEP] operator[SEP] operator[SEP] identifier[sc] operator[SEP] Other[0] operator[SEP] operator[=] identifier[canvas] operator[SEP] identifier[base] operator[SEP] identifier[lowerBound] operator[SEP] Other[0] operator[SEP] operator[+] identifier[ratio] operator[*] operator[SEP] identifier[x] operator[-] identifier[canvas] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[*] identifier[canvas] operator[SEP] identifier[margin] operator[SEP] operator[SEP] identifier[ratio] operator[=] operator[SEP] identifier[canvas] operator[SEP] identifier[base] operator[SEP] identifier[upperBound] operator[SEP] Other[1] operator[SEP] operator[-] identifier[canvas] operator[SEP] identifier[base] operator[SEP] identifier[lowerBound] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[/] operator[SEP] identifier[canvas] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[*] operator[SEP] Other[1] operator[-] Other[2] operator[*] identifier[canvas] operator[SEP] identifier[margin] operator[SEP] operator[SEP] operator[SEP] identifier[sc] operator[SEP] Other[1] operator[SEP] operator[=] identifier[canvas] operator[SEP] identifier[base] operator[SEP] identifier[lowerBound] operator[SEP] Other[1] operator[SEP] operator[+] identifier[ratio] operator[*] operator[SEP] identifier[canvas] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[*] operator[SEP] Other[1] operator[-] identifier[canvas] operator[SEP] identifier[margin] operator[SEP] operator[-] identifier[y] operator[SEP] operator[SEP] Keyword[return] identifier[sc] operator[SEP] }
private void addGroups(MpxjTreeNode parentNode, ProjectFile file) { for (Group group : file.getGroups()) { final Group g = group; MpxjTreeNode childNode = new MpxjTreeNode(group) { @Override public String toString() { return g.getName(); } }; parentNode.add(childNode); } }
class class_name[name] begin[{] method[addGroups, return_type[void], modifier[private], parameter[parentNode, file]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=group, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), name=g)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Group, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=group, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=g, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=toString, parameters=[], return_type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MpxjTreeNode, sub_type=None)), name=childNode)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=MpxjTreeNode, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=childNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=parentNode, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getGroups, postfix_operators=[], prefix_operators=[], qualifier=file, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=group)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Group, sub_type=None))), label=None) end[}] END[}]
Keyword[private] Keyword[void] identifier[addGroups] operator[SEP] identifier[MpxjTreeNode] identifier[parentNode] , identifier[ProjectFile] identifier[file] operator[SEP] { Keyword[for] operator[SEP] identifier[Group] identifier[group] operator[:] identifier[file] operator[SEP] identifier[getGroups] operator[SEP] operator[SEP] operator[SEP] { Keyword[final] identifier[Group] identifier[g] operator[=] identifier[group] operator[SEP] identifier[MpxjTreeNode] identifier[childNode] operator[=] Keyword[new] identifier[MpxjTreeNode] operator[SEP] identifier[group] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[toString] operator[SEP] operator[SEP] { Keyword[return] identifier[g] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] identifier[parentNode] operator[SEP] identifier[add] operator[SEP] identifier[childNode] operator[SEP] operator[SEP] } }
private IndexingRule getApplicableIndexingRule(NodeData state) { List<IndexingRule> rules = null; List<IndexingRule> r = configElements.get(state.getPrimaryTypeName()); if (r != null) { rules = new ArrayList<IndexingRule>(); rules.addAll(r); } InternalQName[] mixTypes = state.getMixinTypeNames(); for (InternalQName mixType : mixTypes) { r = configElements.get(mixType); if (r != null) { if (rules == null) { rules = new ArrayList<IndexingRule>(); } rules.addAll(r); } } if (rules != null) { for (IndexingRule ir : rules) { if (ir.appliesTo(state)) { return ir; } } } // no applicable rule return null; }
class class_name[name] begin[{] method[getApplicableIndexingRule, return_type[type[IndexingRule]], modifier[private], parameter[state]] begin[{] local_variable[type[List], rules] local_variable[type[List], r] if[binary_operation[member[.r], !=, literal[null]]] begin[{] assign[member[.rules], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=IndexingRule, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))] call[rules.addAll, parameter[member[.r]]] else begin[{] None end[}] local_variable[type[InternalQName], mixTypes] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=mixType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=configElements, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=r, 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=MemberReference(member=rules, 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=rules, 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=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=IndexingRule, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addAll, postfix_operators=[], prefix_operators=[], qualifier=rules, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=mixTypes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=mixType)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=InternalQName, sub_type=None))), label=None) if[binary_operation[member[.rules], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=appliesTo, postfix_operators=[], prefix_operators=[], qualifier=ir, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=ir, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=rules, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ir)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IndexingRule, sub_type=None))), label=None) else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[private] identifier[IndexingRule] identifier[getApplicableIndexingRule] operator[SEP] identifier[NodeData] identifier[state] operator[SEP] { identifier[List] operator[<] identifier[IndexingRule] operator[>] identifier[rules] operator[=] Other[null] operator[SEP] identifier[List] operator[<] identifier[IndexingRule] operator[>] identifier[r] operator[=] identifier[configElements] operator[SEP] identifier[get] operator[SEP] identifier[state] operator[SEP] identifier[getPrimaryTypeName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[r] operator[!=] Other[null] operator[SEP] { identifier[rules] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[IndexingRule] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[rules] operator[SEP] identifier[addAll] operator[SEP] identifier[r] operator[SEP] operator[SEP] } identifier[InternalQName] operator[SEP] operator[SEP] identifier[mixTypes] operator[=] identifier[state] operator[SEP] identifier[getMixinTypeNames] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[InternalQName] identifier[mixType] operator[:] identifier[mixTypes] operator[SEP] { identifier[r] operator[=] identifier[configElements] operator[SEP] identifier[get] operator[SEP] identifier[mixType] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[r] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[rules] operator[==] Other[null] operator[SEP] { identifier[rules] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[IndexingRule] operator[>] operator[SEP] operator[SEP] operator[SEP] } identifier[rules] operator[SEP] identifier[addAll] operator[SEP] identifier[r] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[rules] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[IndexingRule] identifier[ir] operator[:] identifier[rules] operator[SEP] { Keyword[if] operator[SEP] identifier[ir] operator[SEP] identifier[appliesTo] operator[SEP] identifier[state] operator[SEP] operator[SEP] { Keyword[return] identifier[ir] operator[SEP] } } } Keyword[return] Other[null] operator[SEP] }
public void initialize (final String pname, final IScheduler scheduler, final IClassLoadHelper classLoadHelper) throws SchedulerException { m_sName = pname; scheduler.getListenerManager ().addJobListener (this, EverythingMatcher.allJobs ()); }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[pname, scheduler, classLoadHelper]] begin[{] assign[member[.m_sName], member[.pname]] call[scheduler.getListenerManager, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[initialize] operator[SEP] Keyword[final] identifier[String] identifier[pname] , Keyword[final] identifier[IScheduler] identifier[scheduler] , Keyword[final] identifier[IClassLoadHelper] identifier[classLoadHelper] operator[SEP] Keyword[throws] identifier[SchedulerException] { identifier[m_sName] operator[=] identifier[pname] operator[SEP] identifier[scheduler] operator[SEP] identifier[getListenerManager] operator[SEP] operator[SEP] operator[SEP] identifier[addJobListener] operator[SEP] Keyword[this] , identifier[EverythingMatcher] operator[SEP] identifier[allJobs] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
private void removeAllDuplicateNames(final BeanReferences[] allBeanReferences) { for (int i = 0; i < allBeanReferences.length; i++) { BeanReferences references = allBeanReferences[i]; allBeanReferences[i] = references.removeDuplicateNames(); } }
class class_name[name] begin[{] method[removeAllDuplicateNames, return_type[void], modifier[private], parameter[allBeanReferences]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=allBeanReferences, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=references)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=BeanReferences, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=allBeanReferences, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MethodInvocation(arguments=[], member=removeDuplicateNames, postfix_operators=[], prefix_operators=[], qualifier=references, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=allBeanReferences, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) end[}] END[}]
Keyword[private] Keyword[void] identifier[removeAllDuplicateNames] operator[SEP] Keyword[final] identifier[BeanReferences] operator[SEP] operator[SEP] identifier[allBeanReferences] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[allBeanReferences] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[BeanReferences] identifier[references] operator[=] identifier[allBeanReferences] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[allBeanReferences] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[references] operator[SEP] identifier[removeDuplicateNames] operator[SEP] operator[SEP] operator[SEP] } }
public void marshall(CreateReplicationJobRequest createReplicationJobRequest, ProtocolMarshaller protocolMarshaller) { if (createReplicationJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createReplicationJobRequest.getServerId(), SERVERID_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getSeedReplicationTime(), SEEDREPLICATIONTIME_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getFrequency(), FREQUENCY_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getRunOnce(), RUNONCE_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getLicenseType(), LICENSETYPE_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getRoleName(), ROLENAME_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getNumberOfRecentAmisToKeep(), NUMBEROFRECENTAMISTOKEEP_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getEncrypted(), ENCRYPTED_BINDING); protocolMarshaller.marshall(createReplicationJobRequest.getKmsKeyId(), KMSKEYID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[createReplicationJobRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.createReplicationJobRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getServerId, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=SERVERID_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getSeedReplicationTime, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=SEEDREPLICATIONTIME_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFrequency, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=FREQUENCY_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getRunOnce, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=RUNONCE_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getLicenseType, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=LICENSETYPE_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getRoleName, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=ROLENAME_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDescription, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=DESCRIPTION_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getNumberOfRecentAmisToKeep, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=NUMBEROFRECENTAMISTOKEEP_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEncrypted, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=ENCRYPTED_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getKmsKeyId, postfix_operators=[], prefix_operators=[], qualifier=createReplicationJobRequest, selectors=[], type_arguments=None), MemberReference(member=KMSKEYID_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateReplicationJobRequest] identifier[createReplicationJobRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[createReplicationJobRequest] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getServerId] operator[SEP] operator[SEP] , identifier[SERVERID_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getSeedReplicationTime] operator[SEP] operator[SEP] , identifier[SEEDREPLICATIONTIME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getFrequency] operator[SEP] operator[SEP] , identifier[FREQUENCY_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getRunOnce] operator[SEP] operator[SEP] , identifier[RUNONCE_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getLicenseType] operator[SEP] operator[SEP] , identifier[LICENSETYPE_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getRoleName] operator[SEP] operator[SEP] , identifier[ROLENAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getDescription] operator[SEP] operator[SEP] , identifier[DESCRIPTION_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getNumberOfRecentAmisToKeep] operator[SEP] operator[SEP] , identifier[NUMBEROFRECENTAMISTOKEEP_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getEncrypted] operator[SEP] operator[SEP] , identifier[ENCRYPTED_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[createReplicationJobRequest] operator[SEP] identifier[getKmsKeyId] operator[SEP] operator[SEP] , identifier[KMSKEYID_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public final void propagateCompletion() { CountedCompleter<?> a = this, s; for (int c;;) { if ((c = a.pending) == 0) { if ((a = (s = a).completer) == null) { s.quietlyComplete(); return; } } else if (U.compareAndSwapInt(a, PENDING, c, c - 1)) return; } }
class class_name[name] begin[{] method[propagateCompletion, return_type[void], modifier[final public], parameter[]] begin[{] local_variable[type[CountedCompleter], a] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=Assignment(expressionl=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=pending, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[])), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=PENDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=compareAndSwapInt, postfix_operators=[], prefix_operators=[], qualifier=U, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=ReturnStatement(expression=None, label=None)), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=Assignment(expressionl=MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Assignment(expressionl=MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=quietlyComplete, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]))]))]), control=ForControl(condition=None, init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=c)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=None), label=None) end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[propagateCompletion] operator[SEP] operator[SEP] { identifier[CountedCompleter] operator[<] operator[?] operator[>] identifier[a] operator[=] Keyword[this] , identifier[s] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[c] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[c] operator[=] identifier[a] operator[SEP] identifier[pending] operator[SEP] operator[==] Other[0] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[a] operator[=] operator[SEP] identifier[s] operator[=] identifier[a] operator[SEP] operator[SEP] identifier[completer] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[s] operator[SEP] identifier[quietlyComplete] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[U] operator[SEP] identifier[compareAndSwapInt] operator[SEP] identifier[a] , identifier[PENDING] , identifier[c] , identifier[c] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } }
public static String pathEncode(String path, Charset charset) { return encodeReserved(path, FragmentType.PATH_SEGMENT, charset); /* * path encoding is not equivalent to query encoding, there are few differences, namely dealing * with spaces, !, ', (, ), and ~ characters. we will need to manually process those values. */ // return encoded.replaceAll("\\+", "%20"); }
class class_name[name] begin[{] method[pathEncode, return_type[type[String]], modifier[public static], parameter[path, charset]] begin[{] return[call[.encodeReserved, parameter[member[.path], member[FragmentType.PATH_SEGMENT], member[.charset]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[pathEncode] operator[SEP] identifier[String] identifier[path] , identifier[Charset] identifier[charset] operator[SEP] { Keyword[return] identifier[encodeReserved] operator[SEP] identifier[path] , identifier[FragmentType] operator[SEP] identifier[PATH_SEGMENT] , identifier[charset] operator[SEP] operator[SEP] }
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.IID__CON_DATA1: setConData1(CON_DATA1_EDEFAULT); return; case AfplibPackage.IID__XBASE: setXBase(XBASE_EDEFAULT); return; case AfplibPackage.IID__YBASE: setYBase(YBASE_EDEFAULT); return; case AfplibPackage.IID__XUNITS: setXUnits(XUNITS_EDEFAULT); return; case AfplibPackage.IID__YUNITS: setYUnits(YUNITS_EDEFAULT); return; case AfplibPackage.IID__XSIZE: setXSize(XSIZE_EDEFAULT); return; case AfplibPackage.IID__YSIZE: setYSize(YSIZE_EDEFAULT); return; case AfplibPackage.IID__CON_DATA2: setConData2(CON_DATA2_EDEFAULT); return; case AfplibPackage.IID__XC_SIZE_D: setXCSizeD(XC_SIZE_D_EDEFAULT); return; case AfplibPackage.IID__YC_SIZE_D: setYCSizeD(YC_SIZE_D_EDEFAULT); return; case AfplibPackage.IID__CON_DATA3: setConData3(CON_DATA3_EDEFAULT); return; case AfplibPackage.IID__COLOR: setColor(COLOR_EDEFAULT); return; } super.eUnset(featureID); }
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=IID__CON_DATA1, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=CON_DATA1_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setConData1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__XBASE, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=XBASE_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setXBase, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__YBASE, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=YBASE_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setYBase, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__XUNITS, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=XUNITS_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setXUnits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__YUNITS, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=YUNITS_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setYUnits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__XSIZE, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=XSIZE_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setXSize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__YSIZE, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=YSIZE_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setYSize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__CON_DATA2, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=CON_DATA2_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setConData2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__XC_SIZE_D, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=XC_SIZE_D_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setXCSizeD, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__YC_SIZE_D, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=YC_SIZE_D_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setYCSizeD, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__CON_DATA3, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=CON_DATA3_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setConData3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=[MemberReference(member=IID__COLOR, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=COLOR_EDEFAULT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setColor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)])], expression=MemberReference(member=featureID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) SuperMethodInvocation(arguments=[MemberReference(member=featureID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=eUnset, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__CON_DATA1] operator[:] identifier[setConData1] operator[SEP] identifier[CON_DATA1_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__XBASE] operator[:] identifier[setXBase] operator[SEP] identifier[XBASE_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__YBASE] operator[:] identifier[setYBase] operator[SEP] identifier[YBASE_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__XUNITS] operator[:] identifier[setXUnits] operator[SEP] identifier[XUNITS_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__YUNITS] operator[:] identifier[setYUnits] operator[SEP] identifier[YUNITS_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__XSIZE] operator[:] identifier[setXSize] operator[SEP] identifier[XSIZE_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__YSIZE] operator[:] identifier[setYSize] operator[SEP] identifier[YSIZE_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__CON_DATA2] operator[:] identifier[setConData2] operator[SEP] identifier[CON_DATA2_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__XC_SIZE_D] operator[:] identifier[setXCSizeD] operator[SEP] identifier[XC_SIZE_D_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__YC_SIZE_D] operator[:] identifier[setYCSizeD] operator[SEP] identifier[YC_SIZE_D_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__CON_DATA3] operator[:] identifier[setConData3] operator[SEP] identifier[CON_DATA3_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[IID__COLOR] operator[:] identifier[setColor] operator[SEP] identifier[COLOR_EDEFAULT] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } Keyword[super] operator[SEP] identifier[eUnset] operator[SEP] identifier[featureID] operator[SEP] operator[SEP] }
public boolean isAvailable (String resource){ Container c = _webapp.getModuleContainer(); if(c != null){ Entry entry = c.getEntry(resource); if(entry != null){ return true; } return isAvailableInDocumentRoot(resource,WCCustomProperties.SERVE_WELCOME_FILE_FROM_EDR); } String tempFileString = _webapp.getRealPath(resource); boolean available = false; if (tempFileString != null) { File caseFile = new Java2SecurityFile(tempFileString); available = caseFile.exists(); if (available && com.ibm.ws.util.FileSystem.isCaseInsensitive) { try{ available = com.ibm.ws.util.FileSystem.uriCaseCheck(caseFile, resource); }catch (IOException io){ available = false; } } } if (!available) available = isAvailableInDocumentRoot(resource,WCCustomProperties.SERVE_WELCOME_FILE_FROM_EDR); return available; }
class class_name[name] begin[{] method[isAvailable, return_type[type[boolean]], modifier[public], parameter[resource]] begin[{] local_variable[type[Container], c] if[binary_operation[member[.c], !=, literal[null]]] begin[{] local_variable[type[Entry], entry] if[binary_operation[member[.entry], !=, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] return[call[.isAvailableInDocumentRoot, parameter[member[.resource], member[WCCustomProperties.SERVE_WELCOME_FILE_FROM_EDR]]]] else begin[{] None end[}] local_variable[type[String], tempFileString] local_variable[type[boolean], available] if[binary_operation[member[.tempFileString], !=, literal[null]]] begin[{] local_variable[type[File], caseFile] assign[member[.available], call[caseFile.exists, parameter[]]] if[binary_operation[member[.available], &&, member[com.ibm.ws.util.FileSystem.isCaseInsensitive]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=available, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=caseFile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=resource, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=uriCaseCheck, postfix_operators=[], prefix_operators=[], qualifier=com.ibm.ws.util.FileSystem, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=available, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=io, types=['IOException']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] else begin[{] None end[}] if[member[.available]] begin[{] assign[member[.available], call[.isAvailableInDocumentRoot, parameter[member[.resource], member[WCCustomProperties.SERVE_WELCOME_FILE_FROM_EDR]]]] else begin[{] None end[}] return[member[.available]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isAvailable] operator[SEP] identifier[String] identifier[resource] operator[SEP] { identifier[Container] identifier[c] operator[=] identifier[_webapp] operator[SEP] identifier[getModuleContainer] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[!=] Other[null] operator[SEP] { identifier[Entry] identifier[entry] operator[=] identifier[c] operator[SEP] identifier[getEntry] operator[SEP] identifier[resource] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[entry] operator[!=] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[return] identifier[isAvailableInDocumentRoot] operator[SEP] identifier[resource] , identifier[WCCustomProperties] operator[SEP] identifier[SERVE_WELCOME_FILE_FROM_EDR] operator[SEP] operator[SEP] } identifier[String] identifier[tempFileString] operator[=] identifier[_webapp] operator[SEP] identifier[getRealPath] operator[SEP] identifier[resource] operator[SEP] operator[SEP] Keyword[boolean] identifier[available] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[tempFileString] operator[!=] Other[null] operator[SEP] { identifier[File] identifier[caseFile] operator[=] Keyword[new] identifier[Java2SecurityFile] operator[SEP] identifier[tempFileString] operator[SEP] operator[SEP] identifier[available] operator[=] identifier[caseFile] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[available] operator[&&] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[util] operator[SEP] identifier[FileSystem] operator[SEP] identifier[isCaseInsensitive] operator[SEP] { Keyword[try] { identifier[available] operator[=] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[util] operator[SEP] identifier[FileSystem] operator[SEP] identifier[uriCaseCheck] operator[SEP] identifier[caseFile] , identifier[resource] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[io] operator[SEP] { identifier[available] operator[=] literal[boolean] operator[SEP] } } } Keyword[if] operator[SEP] operator[!] identifier[available] operator[SEP] identifier[available] operator[=] identifier[isAvailableInDocumentRoot] operator[SEP] identifier[resource] , identifier[WCCustomProperties] operator[SEP] identifier[SERVE_WELCOME_FILE_FROM_EDR] operator[SEP] operator[SEP] Keyword[return] identifier[available] operator[SEP] }
public Response<String> hmset(final byte[] key, final Map<byte[], byte[]> hash) { if (CompressionStrategy.NONE == connPool.getConfiguration().getCompressionStrategy()) { return new PipelineOperation<String>() { @Override Response<String> execute(Pipeline jedisPipeline) throws DynoException { long startTime = System.nanoTime() / 1000; try { return jedisPipeline.hmset(key, hash); } finally { long duration = System.nanoTime() / 1000 - startTime; opMonitor.recordSendLatency(OpName.HMSET.name(), duration, TimeUnit.MICROSECONDS); } } }.execute(key, OpName.HMSET); } else { return new PipelineCompressionOperation<String>() { @Override Response<String> execute(final Pipeline jedisPipeline) throws DynoException { return new PipelineResponse(null).apply(new Func0<Response<String>>() { @Override public Response<String> call() { return jedisPipeline.hmset(key, CollectionUtils.transform(hash, new CollectionUtils.MapEntryTransform<byte[], byte[], byte[]>() { @Override public byte[] get(byte[] key, byte[] val) { return compressValue(val); } })); } }); } }.execute(key, OpName.HMSET); } }
class class_name[name] begin[{] method[hmset, return_type[type[Response]], modifier[public], parameter[key, hash]] begin[{] if[binary_operation[member[CompressionStrategy.NONE], ==, call[connPool.getConfiguration, parameter[]]]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[], member=nanoTime, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000), operator=/), name=startTime)], modifiers=set(), type=BasicType(dimensions=[], name=long)), TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=hash, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hmset, postfix_operators=[], prefix_operators=[], qualifier=jedisPipeline, selectors=[], type_arguments=None), label=None)], catches=None, finally_block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=nanoTime, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000), operator=/), operandr=MemberReference(member=startTime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), name=duration)], modifiers=set(), type=BasicType(dimensions=[], name=long)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=name, postfix_operators=[], prefix_operators=[], qualifier=OpName.HMSET, selectors=[], type_arguments=None), MemberReference(member=duration, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=MICROSECONDS, postfix_operators=[], prefix_operators=[], qualifier=TimeUnit, selectors=[])], member=recordSendLatency, postfix_operators=[], prefix_operators=[], qualifier=opMonitor, selectors=[], type_arguments=None), label=None)], label=None, resources=None)], documentation=None, modifiers=set(), name=execute, parameters=[FormalParameter(annotations=[], modifiers=set(), name=jedisPipeline, type=ReferenceType(arguments=None, dimensions=[], name=Pipeline, sub_type=None), varargs=False)], return_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=Response, sub_type=None), throws=['DynoException'], type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=HMSET, postfix_operators=[], prefix_operators=[], qualifier=OpName, selectors=[])], member=execute, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=PipelineOperation, sub_type=None))] else begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=hash, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=compressValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=get, parameters=[FormalParameter(annotations=[], modifiers=set(), name=key, type=BasicType(dimensions=[None], name=byte), varargs=False), FormalParameter(annotations=[], modifiers=set(), name=val, type=BasicType(dimensions=[None], name=byte), varargs=False)], return_type=BasicType(dimensions=[None], name=byte), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CollectionUtils, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=BasicType(dimensions=[None], name=byte)), TypeArgument(pattern_type=None, type=BasicType(dimensions=[None], name=byte)), TypeArgument(pattern_type=None, type=BasicType(dimensions=[None], name=byte))], dimensions=None, name=MapEntryTransform, sub_type=None)))], member=transform, postfix_operators=[], prefix_operators=[], qualifier=CollectionUtils, selectors=[], type_arguments=None)], member=hmset, postfix_operators=[], prefix_operators=[], qualifier=jedisPipeline, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=call, parameters=[], return_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=Response, sub_type=None), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=Response, sub_type=None))], dimensions=None, name=Func0, sub_type=None))], member=apply, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=PipelineResponse, sub_type=None)), label=None)], documentation=None, modifiers=set(), name=execute, parameters=[FormalParameter(annotations=[], modifiers={'final'}, name=jedisPipeline, type=ReferenceType(arguments=None, dimensions=[], name=Pipeline, sub_type=None), varargs=False)], return_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=Response, sub_type=None), throws=['DynoException'], type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=HMSET, postfix_operators=[], prefix_operators=[], qualifier=OpName, selectors=[])], member=execute, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=PipelineCompressionOperation, sub_type=None))] end[}] end[}] END[}]
Keyword[public] identifier[Response] operator[<] identifier[String] operator[>] identifier[hmset] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[final] identifier[Map] operator[<] Keyword[byte] operator[SEP] operator[SEP] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[hash] operator[SEP] { Keyword[if] operator[SEP] identifier[CompressionStrategy] operator[SEP] identifier[NONE] operator[==] identifier[connPool] operator[SEP] identifier[getConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[getCompressionStrategy] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[PipelineOperation] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] identifier[Response] operator[<] identifier[String] operator[>] identifier[execute] operator[SEP] identifier[Pipeline] identifier[jedisPipeline] operator[SEP] Keyword[throws] identifier[DynoException] { Keyword[long] identifier[startTime] operator[=] identifier[System] operator[SEP] identifier[nanoTime] operator[SEP] operator[SEP] operator[/] Other[1000] operator[SEP] Keyword[try] { Keyword[return] identifier[jedisPipeline] operator[SEP] identifier[hmset] operator[SEP] identifier[key] , identifier[hash] operator[SEP] operator[SEP] } Keyword[finally] { Keyword[long] identifier[duration] operator[=] identifier[System] operator[SEP] identifier[nanoTime] operator[SEP] operator[SEP] operator[/] Other[1000] operator[-] identifier[startTime] operator[SEP] identifier[opMonitor] operator[SEP] identifier[recordSendLatency] operator[SEP] identifier[OpName] operator[SEP] identifier[HMSET] operator[SEP] identifier[name] operator[SEP] operator[SEP] , identifier[duration] , identifier[TimeUnit] operator[SEP] identifier[MICROSECONDS] operator[SEP] operator[SEP] } } } operator[SEP] identifier[execute] operator[SEP] identifier[key] , identifier[OpName] operator[SEP] identifier[HMSET] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[PipelineCompressionOperation] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] identifier[Response] operator[<] identifier[String] operator[>] identifier[execute] operator[SEP] Keyword[final] identifier[Pipeline] identifier[jedisPipeline] operator[SEP] Keyword[throws] identifier[DynoException] { Keyword[return] Keyword[new] identifier[PipelineResponse] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[apply] operator[SEP] Keyword[new] identifier[Func0] operator[<] identifier[Response] operator[<] identifier[String] operator[>] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Response] operator[<] identifier[String] operator[>] identifier[call] operator[SEP] operator[SEP] { Keyword[return] identifier[jedisPipeline] operator[SEP] identifier[hmset] operator[SEP] identifier[key] , identifier[CollectionUtils] operator[SEP] identifier[transform] operator[SEP] identifier[hash] , Keyword[new] identifier[CollectionUtils] operator[SEP] identifier[MapEntryTransform] operator[<] Keyword[byte] operator[SEP] operator[SEP] , Keyword[byte] operator[SEP] operator[SEP] , Keyword[byte] operator[SEP] operator[SEP] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[get] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[byte] operator[SEP] operator[SEP] identifier[val] operator[SEP] { Keyword[return] identifier[compressValue] operator[SEP] identifier[val] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] } } operator[SEP] identifier[execute] operator[SEP] identifier[key] , identifier[OpName] operator[SEP] identifier[HMSET] operator[SEP] operator[SEP] } }
public static java.sql.Date toSqlDate(int month, int day, int year) { java.util.Date newDate = toDate(month, day, year, 0, 0, 0); if (newDate != null) return new java.sql.Date(newDate.getTime()); else return null; }
class class_name[name] begin[{] method[toSqlDate, return_type[type[java]], modifier[public static], parameter[month, day, year]] begin[{] local_variable[type[java], newDate] if[binary_operation[member[.newDate], !=, literal[null]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getTime, postfix_operators=[], prefix_operators=[], qualifier=newDate, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=sql, sub_type=ReferenceType(arguments=None, dimensions=None, name=Date, sub_type=None))))] else begin[{] return[literal[null]] end[}] end[}] END[}]
Keyword[public] Keyword[static] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[Date] identifier[toSqlDate] operator[SEP] Keyword[int] identifier[month] , Keyword[int] identifier[day] , Keyword[int] identifier[year] operator[SEP] { identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] identifier[newDate] operator[=] identifier[toDate] operator[SEP] identifier[month] , identifier[day] , identifier[year] , Other[0] , Other[0] , Other[0] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[newDate] operator[!=] Other[null] operator[SEP] Keyword[return] Keyword[new] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[Date] operator[SEP] identifier[newDate] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[return] Other[null] operator[SEP] }
public static StandardUserAgentClient newInstance(Settings settings) { UDPConnector.Factory udpFactory = Factories.newInstance(settings, UDP_CONNECTOR_FACTORY_KEY); TCPConnector.Factory tcpFactory = Factories.newInstance(settings, TCP_CONNECTOR_FACTORY_KEY); return new StandardUserAgentClient(udpFactory.newUDPConnector(settings), tcpFactory.newTCPConnector(settings), settings); }
class class_name[name] begin[{] method[newInstance, return_type[type[StandardUserAgentClient]], modifier[public static], parameter[settings]] begin[{] local_variable[type[UDPConnector], udpFactory] local_variable[type[TCPConnector], tcpFactory] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=settings, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=newUDPConnector, postfix_operators=[], prefix_operators=[], qualifier=udpFactory, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=settings, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=newTCPConnector, postfix_operators=[], prefix_operators=[], qualifier=tcpFactory, selectors=[], type_arguments=None), MemberReference(member=settings, 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=StandardUserAgentClient, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[StandardUserAgentClient] identifier[newInstance] operator[SEP] identifier[Settings] identifier[settings] operator[SEP] { identifier[UDPConnector] operator[SEP] identifier[Factory] identifier[udpFactory] operator[=] identifier[Factories] operator[SEP] identifier[newInstance] operator[SEP] identifier[settings] , identifier[UDP_CONNECTOR_FACTORY_KEY] operator[SEP] operator[SEP] identifier[TCPConnector] operator[SEP] identifier[Factory] identifier[tcpFactory] operator[=] identifier[Factories] operator[SEP] identifier[newInstance] operator[SEP] identifier[settings] , identifier[TCP_CONNECTOR_FACTORY_KEY] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[StandardUserAgentClient] operator[SEP] identifier[udpFactory] operator[SEP] identifier[newUDPConnector] operator[SEP] identifier[settings] operator[SEP] , identifier[tcpFactory] operator[SEP] identifier[newTCPConnector] operator[SEP] identifier[settings] operator[SEP] , identifier[settings] operator[SEP] operator[SEP] }
private int forceCloseSession(String repositoryName, String workspaceName) throws RepositoryException, RepositoryConfigurationException { ManageableRepository mr = repositoryService.getRepository(repositoryName); WorkspaceContainerFacade wc = mr.getWorkspaceContainer(workspaceName); SessionRegistry sessionRegistry = (SessionRegistry)wc.getComponent(SessionRegistry.class); return sessionRegistry.closeSessions(workspaceName); }
class class_name[name] begin[{] method[forceCloseSession, return_type[type[int]], modifier[private], parameter[repositoryName, workspaceName]] begin[{] local_variable[type[ManageableRepository], mr] local_variable[type[WorkspaceContainerFacade], wc] local_variable[type[SessionRegistry], sessionRegistry] return[call[sessionRegistry.closeSessions, parameter[member[.workspaceName]]]] end[}] END[}]
Keyword[private] Keyword[int] identifier[forceCloseSession] operator[SEP] identifier[String] identifier[repositoryName] , identifier[String] identifier[workspaceName] operator[SEP] Keyword[throws] identifier[RepositoryException] , identifier[RepositoryConfigurationException] { identifier[ManageableRepository] identifier[mr] operator[=] identifier[repositoryService] operator[SEP] identifier[getRepository] operator[SEP] identifier[repositoryName] operator[SEP] operator[SEP] identifier[WorkspaceContainerFacade] identifier[wc] operator[=] identifier[mr] operator[SEP] identifier[getWorkspaceContainer] operator[SEP] identifier[workspaceName] operator[SEP] operator[SEP] identifier[SessionRegistry] identifier[sessionRegistry] operator[=] operator[SEP] identifier[SessionRegistry] operator[SEP] identifier[wc] operator[SEP] identifier[getComponent] operator[SEP] identifier[SessionRegistry] operator[SEP] Keyword[class] operator[SEP] operator[SEP] Keyword[return] identifier[sessionRegistry] operator[SEP] identifier[closeSessions] operator[SEP] identifier[workspaceName] operator[SEP] operator[SEP] }
public static TrmMessageFactory getInstance() { if (_instance == null) { synchronized(TrmMessageFactory.class) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createFactoryInstance"); try { Class cls = Class.forName(TRM_MESSAGE_FACTORY_CLASS); _instance = (TrmMessageFactory) cls.newInstance(); } catch (Exception e) { FFDCFilter.processException(e, "com.ibm.ws.sib.mfp.TrmMessageFactory.createFactoryInstance", "112"); SibTr.error(tc,"UNABLE_TO_CREATE_TRMFACTORY_CWSIF0021",e); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "createFactoryInstance",_instance); } } return _instance; }
class class_name[name] begin[{] method[getInstance, return_type[type[TrmMessageFactory]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[._instance], ==, literal[null]]] begin[{] SYNCHRONIZED[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TrmMessageFactory, sub_type=None))] BEGIN[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["createFactoryInstance"]]] else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=TRM_MESSAGE_FACTORY_CLASS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=forName, postfix_operators=[], prefix_operators=[], qualifier=Class, selectors=[], type_arguments=None), name=cls)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Class, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=_instance, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[], member=newInstance, postfix_operators=[], prefix_operators=[], qualifier=cls, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=TrmMessageFactory, sub_type=None))), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="com.ibm.ws.sib.mfp.TrmMessageFactory.createFactoryInstance"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="112")], member=processException, postfix_operators=[], prefix_operators=[], qualifier=FFDCFilter, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="UNABLE_TO_CREATE_TRMFACTORY_CWSIF0021"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=SibTr, 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) if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.exit, parameter[member[.tc], literal["createFactoryInstance"], member[._instance]]] else begin[{] None end[}] END[}] else begin[{] None end[}] return[member[._instance]] end[}] END[}]
Keyword[public] Keyword[static] identifier[TrmMessageFactory] identifier[getInstance] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_instance] operator[==] Other[null] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[TrmMessageFactory] operator[SEP] Keyword[class] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] operator[SEP] operator[SEP] Keyword[try] { identifier[Class] identifier[cls] operator[=] identifier[Class] operator[SEP] identifier[forName] operator[SEP] identifier[TRM_MESSAGE_FACTORY_CLASS] operator[SEP] operator[SEP] identifier[_instance] operator[=] operator[SEP] identifier[TrmMessageFactory] operator[SEP] identifier[cls] operator[SEP] identifier[newInstance] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[FFDCFilter] operator[SEP] identifier[processException] operator[SEP] identifier[e] , literal[String] , literal[String] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[error] operator[SEP] identifier[tc] , literal[String] , identifier[e] 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] identifier[tc] , literal[String] , identifier[_instance] operator[SEP] operator[SEP] } } Keyword[return] identifier[_instance] operator[SEP] }
protected final int readBytes() throws IOException { _inputPtr = 0; _inputEnd = 0; if (_inputSource != null) { int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length); if (count > 0) { _inputEnd = count; } return count; } return -1; }
class class_name[name] begin[{] method[readBytes, return_type[type[int]], modifier[final protected], parameter[]] begin[{] assign[member[._inputPtr], literal[0]] assign[member[._inputEnd], literal[0]] if[binary_operation[member[._inputSource], !=, literal[null]]] begin[{] local_variable[type[int], count] if[binary_operation[member[.count], >, literal[0]]] begin[{] assign[member[._inputEnd], member[.count]] else begin[{] None end[}] return[member[.count]] else begin[{] None end[}] return[literal[1]] end[}] END[}]
Keyword[protected] Keyword[final] Keyword[int] identifier[readBytes] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[_inputPtr] operator[=] Other[0] operator[SEP] identifier[_inputEnd] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[_inputSource] operator[!=] Other[null] operator[SEP] { Keyword[int] identifier[count] operator[=] identifier[_inputSource] operator[SEP] identifier[read] operator[SEP] identifier[_inputBuffer] , Other[0] , identifier[_inputBuffer] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[count] operator[>] Other[0] operator[SEP] { identifier[_inputEnd] operator[=] identifier[count] operator[SEP] } Keyword[return] identifier[count] operator[SEP] } Keyword[return] operator[-] Other[1] operator[SEP] }
public void setSecondsVisible(boolean VISIBLE) { if (null == secondsVisible) { _secondsVisible = VISIBLE; fireUpdateEvent(VISIBILITY_EVENT); } else { secondsVisible.set(VISIBLE); } }
class class_name[name] begin[{] method[setSecondsVisible, return_type[void], modifier[public], parameter[VISIBLE]] begin[{] if[binary_operation[literal[null], ==, member[.secondsVisible]]] begin[{] assign[member[._secondsVisible], member[.VISIBLE]] call[.fireUpdateEvent, parameter[member[.VISIBILITY_EVENT]]] else begin[{] call[secondsVisible.set, parameter[member[.VISIBLE]]] end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setSecondsVisible] operator[SEP] Keyword[boolean] identifier[VISIBLE] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[secondsVisible] operator[SEP] { identifier[_secondsVisible] operator[=] identifier[VISIBLE] operator[SEP] identifier[fireUpdateEvent] operator[SEP] identifier[VISIBILITY_EVENT] operator[SEP] operator[SEP] } Keyword[else] { identifier[secondsVisible] operator[SEP] identifier[set] operator[SEP] identifier[VISIBLE] operator[SEP] operator[SEP] } }
public String getLog() { try (LogStream stream = dockerClient.logs(container.id(), LogsParam.stdout(), LogsParam.stderr());) { String fullLog = stream.readFully(); if (log.isTraceEnabled()) { log.trace("{} full log: {}", containerShortId, StringUtils.replace(fullLog, "\n", "|")); } return fullLog; } catch (DockerException | InterruptedException e) { throw new IllegalStateException(e); } }
class class_name[name] begin[{] method[getLog, return_type[type[String]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=readFully, postfix_operators=[], prefix_operators=[], qualifier=stream, selectors=[], type_arguments=None), name=fullLog)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=isTraceEnabled, postfix_operators=[], prefix_operators=[], qualifier=log, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="{} full log: {}"), MemberReference(member=containerShortId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=fullLog, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\n"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="|")], member=replace, postfix_operators=[], prefix_operators=[], qualifier=StringUtils, selectors=[], type_arguments=None)], member=trace, postfix_operators=[], prefix_operators=[], qualifier=log, selectors=[], type_arguments=None), label=None)])), ReturnStatement(expression=MemberReference(member=fullLog, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['DockerException', 'InterruptedException']))], finally_block=None, label=None, resources=[TryResource(annotations=[], modifiers=set(), name=stream, type=ReferenceType(arguments=None, dimensions=[], name=LogStream, sub_type=None), value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=id, postfix_operators=[], prefix_operators=[], qualifier=container, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=stdout, postfix_operators=[], prefix_operators=[], qualifier=LogsParam, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=stderr, postfix_operators=[], prefix_operators=[], qualifier=LogsParam, selectors=[], type_arguments=None)], member=logs, postfix_operators=[], prefix_operators=[], qualifier=dockerClient, selectors=[], type_arguments=None))]) end[}] END[}]
Keyword[public] identifier[String] identifier[getLog] operator[SEP] operator[SEP] { Keyword[try] operator[SEP] identifier[LogStream] identifier[stream] operator[=] identifier[dockerClient] operator[SEP] identifier[logs] operator[SEP] identifier[container] operator[SEP] identifier[id] operator[SEP] operator[SEP] , identifier[LogsParam] operator[SEP] identifier[stdout] operator[SEP] operator[SEP] , identifier[LogsParam] operator[SEP] identifier[stderr] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[fullLog] operator[=] identifier[stream] operator[SEP] identifier[readFully] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[containerShortId] , identifier[StringUtils] operator[SEP] identifier[replace] operator[SEP] identifier[fullLog] , literal[String] , literal[String] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[fullLog] operator[SEP] } Keyword[catch] operator[SEP] identifier[DockerException] operator[|] identifier[InterruptedException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
public static <N extends Number & Comparable<? super N>> Predicate<EvolutionResult<?, N>> byPopulationConvergence( final BiPredicate<Double, DoubleMoments> proceed ) { return new PopulationConvergenceLimit<>(proceed); }
class class_name[name] begin[{] method[byPopulationConvergence, return_type[type[Predicate]], modifier[public static], parameter[proceed]] begin[{] return[ClassCreator(arguments=[MemberReference(member=proceed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=PopulationConvergenceLimit, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[N] Keyword[extends] identifier[Number] operator[&] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[N] operator[>] operator[>] identifier[Predicate] operator[<] identifier[EvolutionResult] operator[<] operator[?] , identifier[N] operator[>] operator[>] identifier[byPopulationConvergence] operator[SEP] Keyword[final] identifier[BiPredicate] operator[<] identifier[Double] , identifier[DoubleMoments] operator[>] identifier[proceed] operator[SEP] { Keyword[return] Keyword[new] identifier[PopulationConvergenceLimit] operator[<] operator[>] operator[SEP] identifier[proceed] operator[SEP] operator[SEP] }
@Override public CPOptionCategory[] findByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException { CPOptionCategory cpOptionCategory = findByPrimaryKey(CPOptionCategoryId); Session session = null; try { session = openSession(); CPOptionCategory[] array = new CPOptionCategoryImpl[3]; array[0] = getByUuid_PrevAndNext(session, cpOptionCategory, uuid, orderByComparator, true); array[1] = cpOptionCategory; array[2] = getByUuid_PrevAndNext(session, cpOptionCategory, uuid, orderByComparator, false); return array; } catch (Exception e) { throw processException(e); } finally { closeSession(session); } }
class class_name[name] begin[{] method[findByUuid_PrevAndNext, return_type[type[CPOptionCategory]], modifier[public], parameter[CPOptionCategoryId, uuid, orderByComparator]] begin[{] local_variable[type[CPOptionCategory], cpOptionCategory] local_variable[type[Session], session] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=openSession, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CPOptionCategoryImpl, sub_type=None)), name=array)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=CPOptionCategory, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=cpOptionCategory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=uuid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=orderByComparator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=getByUuid_PrevAndNext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))]), type==, value=MemberReference(member=cpOptionCategory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2))]), type==, value=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=cpOptionCategory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=uuid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=orderByComparator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=getByUuid_PrevAndNext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), ReturnStatement(expression=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=processException, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=closeSession, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CPOptionCategory] operator[SEP] operator[SEP] identifier[findByUuid_PrevAndNext] operator[SEP] Keyword[long] identifier[CPOptionCategoryId] , identifier[String] identifier[uuid] , identifier[OrderByComparator] operator[<] identifier[CPOptionCategory] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[NoSuchCPOptionCategoryException] { identifier[CPOptionCategory] identifier[cpOptionCategory] operator[=] identifier[findByPrimaryKey] operator[SEP] identifier[CPOptionCategoryId] operator[SEP] operator[SEP] identifier[Session] identifier[session] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[session] operator[=] identifier[openSession] operator[SEP] operator[SEP] operator[SEP] identifier[CPOptionCategory] operator[SEP] operator[SEP] identifier[array] operator[=] Keyword[new] identifier[CPOptionCategoryImpl] operator[SEP] Other[3] operator[SEP] operator[SEP] identifier[array] operator[SEP] Other[0] operator[SEP] operator[=] identifier[getByUuid_PrevAndNext] operator[SEP] identifier[session] , identifier[cpOptionCategory] , identifier[uuid] , identifier[orderByComparator] , literal[boolean] operator[SEP] operator[SEP] identifier[array] operator[SEP] Other[1] operator[SEP] operator[=] identifier[cpOptionCategory] operator[SEP] identifier[array] operator[SEP] Other[2] operator[SEP] operator[=] identifier[getByUuid_PrevAndNext] operator[SEP] identifier[session] , identifier[cpOptionCategory] , identifier[uuid] , identifier[orderByComparator] , literal[boolean] operator[SEP] operator[SEP] Keyword[return] identifier[array] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] identifier[processException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[finally] { identifier[closeSession] operator[SEP] identifier[session] operator[SEP] operator[SEP] } }
public void saveResumeToken(String token) { SharedPreferences settings = mContext.getSharedPreferences(PREF_DDPINFO, Context.MODE_PRIVATE); SharedPreferences.Editor editor = settings.edit(); //REVIEW: should token be encrypted? editor.putString(PREF_RESUMETOKEN, token); editor.apply(); }
class class_name[name] begin[{] method[saveResumeToken, return_type[void], modifier[public], parameter[token]] begin[{] local_variable[type[SharedPreferences], settings] local_variable[type[SharedPreferences], editor] call[editor.putString, parameter[member[.PREF_RESUMETOKEN], member[.token]]] call[editor.apply, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[saveResumeToken] operator[SEP] identifier[String] identifier[token] operator[SEP] { identifier[SharedPreferences] identifier[settings] operator[=] identifier[mContext] operator[SEP] identifier[getSharedPreferences] operator[SEP] identifier[PREF_DDPINFO] , identifier[Context] operator[SEP] identifier[MODE_PRIVATE] operator[SEP] operator[SEP] identifier[SharedPreferences] operator[SEP] identifier[Editor] identifier[editor] operator[=] identifier[settings] operator[SEP] identifier[edit] operator[SEP] operator[SEP] operator[SEP] identifier[editor] operator[SEP] identifier[putString] operator[SEP] identifier[PREF_RESUMETOKEN] , identifier[token] operator[SEP] operator[SEP] identifier[editor] operator[SEP] identifier[apply] operator[SEP] operator[SEP] operator[SEP] }
@Override public void afterPropertiesSet() throws Exception { Assert.notNull(oAuth2ServiceProperties, "An oAuth2ServiceProperties must be set"); Assert.notNull(oAuth2UserDetailsLoader, "An oAuth2UserDetailsLoader must be set"); Assert.notNull(oAuth2UserInfoProvider, "An oAuth2UserInfoProvider must be set"); }
class class_name[name] begin[{] method[afterPropertiesSet, return_type[void], modifier[public], parameter[]] begin[{] call[Assert.notNull, parameter[member[.oAuth2ServiceProperties], literal["An oAuth2ServiceProperties must be set"]]] call[Assert.notNull, parameter[member[.oAuth2UserDetailsLoader], literal["An oAuth2UserDetailsLoader must be set"]]] call[Assert.notNull, parameter[member[.oAuth2UserInfoProvider], literal["An oAuth2UserInfoProvider must be set"]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[afterPropertiesSet] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[oAuth2ServiceProperties] , literal[String] operator[SEP] operator[SEP] identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[oAuth2UserDetailsLoader] , literal[String] operator[SEP] operator[SEP] identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[oAuth2UserInfoProvider] , literal[String] operator[SEP] operator[SEP] }
public java.util.List<String> getRemoveSubnetIds() { if (removeSubnetIds == null) { removeSubnetIds = new com.amazonaws.internal.SdkInternalList<String>(); } return removeSubnetIds; }
class class_name[name] begin[{] method[getRemoveSubnetIds, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.removeSubnetIds], ==, literal[null]]] begin[{] assign[member[.removeSubnetIds], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=amazonaws, sub_type=ReferenceType(arguments=None, dimensions=None, name=internal, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))] else begin[{] None end[}] return[member[.removeSubnetIds]] end[}] END[}]
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getRemoveSubnetIds] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[removeSubnetIds] operator[==] Other[null] operator[SEP] { identifier[removeSubnetIds] operator[=] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[removeSubnetIds] operator[SEP] }
public Vertigo deployCluster(String cluster, String group, int nodes) { return deployCluster(cluster, group, nodes, null); }
class class_name[name] begin[{] method[deployCluster, return_type[type[Vertigo]], modifier[public], parameter[cluster, group, nodes]] begin[{] return[call[.deployCluster, parameter[member[.cluster], member[.group], member[.nodes], literal[null]]]] end[}] END[}]
Keyword[public] identifier[Vertigo] identifier[deployCluster] operator[SEP] identifier[String] identifier[cluster] , identifier[String] identifier[group] , Keyword[int] identifier[nodes] operator[SEP] { Keyword[return] identifier[deployCluster] operator[SEP] identifier[cluster] , identifier[group] , identifier[nodes] , Other[null] operator[SEP] operator[SEP] }
private org.ironjacamar.core.connectionmanager.listener.ConnectionListener associateConnectionListener(Credential credential, Object connection) throws ResourceException { log.tracef("associateConnectionListener(%s, %s)", credential, connection); if (isShutdown()) { throw new ResourceException(); } if (!cmConfiguration.isSharable()) throw new ResourceException(); org.ironjacamar.core.connectionmanager.listener.ConnectionListener cl = pool.getActiveConnectionListener(credential); if (cl == null) { if (!pool.isFull()) { try { cl = pool.getConnectionListener(credential); } catch (ResourceException re) { // Ignore } } if (cl == null) { org.ironjacamar.core.connectionmanager.listener.ConnectionListener removeCl = pool.removeConnectionListener(null); if (removeCl != null) { try { if (ccm != null) { for (Object c : removeCl.getConnections()) { ccm.unregisterConnection(this, removeCl, c); } } returnConnectionListener(removeCl, true); cl = pool.getConnectionListener(credential); } catch (ResourceException ire) { // Nothing we can do } } else { if (getTransactionSupport() == TransactionSupportLevel.NoTransaction) { org.ironjacamar.core.connectionmanager.listener.ConnectionListener targetCl = pool.removeConnectionListener(credential); if (targetCl != null) { if (targetCl.getManagedConnection() instanceof DissociatableManagedConnection) { DissociatableManagedConnection dmc = (DissociatableManagedConnection)targetCl.getManagedConnection(); if (ccm != null) { for (Object c : targetCl.getConnections()) { ccm.unregisterConnection(this, targetCl, c); } } dmc.dissociateConnections(); targetCl.clearConnections(); cl = targetCl; } else { try { if (ccm != null) { for (Object c : targetCl.getConnections()) { ccm.unregisterConnection(this, targetCl, c); } } returnConnectionListener(targetCl, true); cl = pool.getConnectionListener(credential); } catch (ResourceException ire) { // Nothing we can do } } } } } } } if (cl == null) throw new ResourceException(); if (connection != null) { // Associate managed connection with the connection cl.getManagedConnection().associateConnection(connection); cl.addConnection(connection); if (ccm != null) { ccm.registerConnection(this, cl, connection); } } return cl; }
class class_name[name] begin[{] method[associateConnectionListener, return_type[type[org]], modifier[private], parameter[credential, connection]] begin[{] call[log.tracef, parameter[literal["associateConnectionListener(%s, %s)"], member[.credential], member[.connection]]] if[call[.isShutdown, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ResourceException, sub_type=None)), label=None) else begin[{] None end[}] if[call[cmConfiguration.isSharable, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ResourceException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[org], cl] if[binary_operation[member[.cl], ==, literal[null]]] begin[{] if[call[pool.isFull, parameter[]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=cl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=credential, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getConnectionListener, postfix_operators=[], prefix_operators=[], qualifier=pool, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=re, types=['ResourceException']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] if[binary_operation[member[.cl], ==, literal[null]]] begin[{] local_variable[type[org], removeCl] if[binary_operation[member[.removeCl], !=, literal[null]]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ccm, 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=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=removeCl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=unregisterConnection, postfix_operators=[], prefix_operators=[], qualifier=ccm, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getConnections, postfix_operators=[], prefix_operators=[], qualifier=removeCl, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=c)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=removeCl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=returnConnectionListener, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=cl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=credential, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getConnectionListener, postfix_operators=[], prefix_operators=[], qualifier=pool, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ire, types=['ResourceException']))], finally_block=None, label=None, resources=None) else begin[{] if[binary_operation[call[.getTransactionSupport, parameter[]], ==, member[TransactionSupportLevel.NoTransaction]]] begin[{] local_variable[type[org], targetCl] if[binary_operation[member[.targetCl], !=, literal[null]]] begin[{] if[binary_operation[call[targetCl.getManagedConnection, parameter[]], instanceof, type[DissociatableManagedConnection]]] begin[{] local_variable[type[DissociatableManagedConnection], dmc] if[binary_operation[member[.ccm], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=targetCl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=unregisterConnection, postfix_operators=[], prefix_operators=[], qualifier=ccm, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getConnections, postfix_operators=[], prefix_operators=[], qualifier=targetCl, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=c)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None) else begin[{] None end[}] call[dmc.dissociateConnections, parameter[]] call[targetCl.clearConnections, parameter[]] assign[member[.cl], member[.targetCl]] else begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ccm, 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=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=targetCl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=unregisterConnection, postfix_operators=[], prefix_operators=[], qualifier=ccm, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getConnections, postfix_operators=[], prefix_operators=[], qualifier=targetCl, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=c)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=targetCl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=returnConnectionListener, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=cl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=credential, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getConnectionListener, postfix_operators=[], prefix_operators=[], qualifier=pool, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ire, types=['ResourceException']))], finally_block=None, label=None, resources=None) end[}] else begin[{] None end[}] else begin[{] None end[}] end[}] else begin[{] None end[}] else begin[{] None end[}] if[binary_operation[member[.cl], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ResourceException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.connection], !=, literal[null]]] begin[{] call[cl.getManagedConnection, parameter[]] call[cl.addConnection, parameter[member[.connection]]] if[binary_operation[member[.ccm], !=, literal[null]]] begin[{] call[ccm.registerConnection, parameter[THIS[], member[.cl], member[.connection]]] else begin[{] None end[}] else begin[{] None end[}] return[member[.cl]] end[}] END[}]
Keyword[private] identifier[org] operator[SEP] identifier[ironjacamar] operator[SEP] identifier[core] operator[SEP] identifier[connectionmanager] operator[SEP] identifier[listener] operator[SEP] identifier[ConnectionListener] identifier[associateConnectionListener] operator[SEP] identifier[Credential] identifier[credential] , identifier[Object] identifier[connection] operator[SEP] Keyword[throws] identifier[ResourceException] { identifier[log] operator[SEP] identifier[tracef] operator[SEP] literal[String] , identifier[credential] , identifier[connection] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isShutdown] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[ResourceException] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[cmConfiguration] operator[SEP] identifier[isSharable] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[ResourceException] operator[SEP] operator[SEP] operator[SEP] identifier[org] operator[SEP] identifier[ironjacamar] operator[SEP] identifier[core] operator[SEP] identifier[connectionmanager] operator[SEP] identifier[listener] operator[SEP] identifier[ConnectionListener] identifier[cl] operator[=] identifier[pool] operator[SEP] identifier[getActiveConnectionListener] operator[SEP] identifier[credential] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cl] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[pool] operator[SEP] identifier[isFull] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { identifier[cl] operator[=] identifier[pool] operator[SEP] identifier[getConnectionListener] operator[SEP] identifier[credential] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[ResourceException] identifier[re] operator[SEP] { } } Keyword[if] operator[SEP] identifier[cl] operator[==] Other[null] operator[SEP] { identifier[org] operator[SEP] identifier[ironjacamar] operator[SEP] identifier[core] operator[SEP] identifier[connectionmanager] operator[SEP] identifier[listener] operator[SEP] identifier[ConnectionListener] identifier[removeCl] operator[=] identifier[pool] operator[SEP] identifier[removeConnectionListener] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[removeCl] operator[!=] Other[null] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[ccm] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[c] operator[:] identifier[removeCl] operator[SEP] identifier[getConnections] operator[SEP] operator[SEP] operator[SEP] { identifier[ccm] operator[SEP] identifier[unregisterConnection] operator[SEP] Keyword[this] , identifier[removeCl] , identifier[c] operator[SEP] operator[SEP] } } identifier[returnConnectionListener] operator[SEP] identifier[removeCl] , literal[boolean] operator[SEP] operator[SEP] identifier[cl] operator[=] identifier[pool] operator[SEP] identifier[getConnectionListener] operator[SEP] identifier[credential] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[ResourceException] identifier[ire] operator[SEP] { } } Keyword[else] { Keyword[if] operator[SEP] identifier[getTransactionSupport] operator[SEP] operator[SEP] operator[==] identifier[TransactionSupportLevel] operator[SEP] identifier[NoTransaction] operator[SEP] { identifier[org] operator[SEP] identifier[ironjacamar] operator[SEP] identifier[core] operator[SEP] identifier[connectionmanager] operator[SEP] identifier[listener] operator[SEP] identifier[ConnectionListener] identifier[targetCl] operator[=] identifier[pool] operator[SEP] identifier[removeConnectionListener] operator[SEP] identifier[credential] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[targetCl] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[targetCl] operator[SEP] identifier[getManagedConnection] operator[SEP] operator[SEP] Keyword[instanceof] identifier[DissociatableManagedConnection] operator[SEP] { identifier[DissociatableManagedConnection] identifier[dmc] operator[=] operator[SEP] identifier[DissociatableManagedConnection] operator[SEP] identifier[targetCl] operator[SEP] identifier[getManagedConnection] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ccm] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[c] operator[:] identifier[targetCl] operator[SEP] identifier[getConnections] operator[SEP] operator[SEP] operator[SEP] { identifier[ccm] operator[SEP] identifier[unregisterConnection] operator[SEP] Keyword[this] , identifier[targetCl] , identifier[c] operator[SEP] operator[SEP] } } identifier[dmc] operator[SEP] identifier[dissociateConnections] operator[SEP] operator[SEP] operator[SEP] identifier[targetCl] operator[SEP] identifier[clearConnections] operator[SEP] operator[SEP] operator[SEP] identifier[cl] operator[=] identifier[targetCl] operator[SEP] } Keyword[else] { Keyword[try] { Keyword[if] operator[SEP] identifier[ccm] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[c] operator[:] identifier[targetCl] operator[SEP] identifier[getConnections] operator[SEP] operator[SEP] operator[SEP] { identifier[ccm] operator[SEP] identifier[unregisterConnection] operator[SEP] Keyword[this] , identifier[targetCl] , identifier[c] operator[SEP] operator[SEP] } } identifier[returnConnectionListener] operator[SEP] identifier[targetCl] , literal[boolean] operator[SEP] operator[SEP] identifier[cl] operator[=] identifier[pool] operator[SEP] identifier[getConnectionListener] operator[SEP] identifier[credential] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[ResourceException] identifier[ire] operator[SEP] { } } } } } } } Keyword[if] operator[SEP] identifier[cl] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[ResourceException] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[connection] operator[!=] Other[null] operator[SEP] { identifier[cl] operator[SEP] identifier[getManagedConnection] operator[SEP] operator[SEP] operator[SEP] identifier[associateConnection] operator[SEP] identifier[connection] operator[SEP] operator[SEP] identifier[cl] operator[SEP] identifier[addConnection] operator[SEP] identifier[connection] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ccm] operator[!=] Other[null] operator[SEP] { identifier[ccm] operator[SEP] identifier[registerConnection] operator[SEP] Keyword[this] , identifier[cl] , identifier[connection] operator[SEP] operator[SEP] } } Keyword[return] identifier[cl] operator[SEP] }
public Throwable getCause() { try { if (!causeInitialized && ivCause != this) { super.initCause(ivCause); } } catch (Throwable t) { } finally { causeInitialized = true; } return super.getCause(); }
class class_name[name] begin[{] method[getCause, return_type[type[Throwable]], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=causeInitialized, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=ivCause, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), operator=!=), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=SuperMethodInvocation(arguments=[MemberReference(member=ivCause, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=initCause, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None), label=None)]))], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=t, types=['Throwable']))], finally_block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=causeInitialized, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)], label=None, resources=None) return[SuperMethodInvocation(arguments=[], member=getCause, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)] end[}] END[}]
Keyword[public] identifier[Throwable] identifier[getCause] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[causeInitialized] operator[&&] identifier[ivCause] operator[!=] Keyword[this] operator[SEP] { Keyword[super] operator[SEP] identifier[initCause] operator[SEP] identifier[ivCause] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[Throwable] identifier[t] operator[SEP] { } Keyword[finally] { identifier[causeInitialized] operator[=] literal[boolean] operator[SEP] } Keyword[return] Keyword[super] operator[SEP] identifier[getCause] operator[SEP] operator[SEP] operator[SEP] }
private Optional<String> getSuperClassName(String superName, boolean isInterface) { return superName != null && !isInterface ? Optional.of(createTypeName(superName)) : Optional.<String>absent(); }
class class_name[name] begin[{] method[getSuperClassName, return_type[type[Optional]], modifier[private], parameter[superName, isInterface]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=superName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MemberReference(member=isInterface, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), operator=&&), if_false=MethodInvocation(arguments=[], member=Optional, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))]), if_true=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=superName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=createTypeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=of, postfix_operators=[], prefix_operators=[], qualifier=Optional, selectors=[], type_arguments=None))] end[}] END[}]
Keyword[private] identifier[Optional] operator[<] identifier[String] operator[>] identifier[getSuperClassName] operator[SEP] identifier[String] identifier[superName] , Keyword[boolean] identifier[isInterface] operator[SEP] { Keyword[return] identifier[superName] operator[!=] Other[null] operator[&&] operator[!] identifier[isInterface] operator[?] identifier[Optional] operator[SEP] identifier[of] operator[SEP] identifier[createTypeName] operator[SEP] identifier[superName] operator[SEP] operator[SEP] operator[:] identifier[Optional] operator[SEP] operator[<] identifier[String] operator[>] identifier[absent] operator[SEP] operator[SEP] operator[SEP] }
Node createThisForFunction(Node functionNode) { final Node result = IR.thisNode(); if (isAddingTypes()) { result.setJSType(getTypeOfThisForFunctionNode(functionNode)); } return result; }
class class_name[name] begin[{] method[createThisForFunction, return_type[type[Node]], modifier[default], parameter[functionNode]] begin[{] local_variable[type[Node], result] if[call[.isAddingTypes, parameter[]]] begin[{] call[result.setJSType, parameter[call[.getTypeOfThisForFunctionNode, parameter[member[.functionNode]]]]] else begin[{] None end[}] return[member[.result]] end[}] END[}]
identifier[Node] identifier[createThisForFunction] operator[SEP] identifier[Node] identifier[functionNode] operator[SEP] { Keyword[final] identifier[Node] identifier[result] operator[=] identifier[IR] operator[SEP] identifier[thisNode] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isAddingTypes] operator[SEP] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[setJSType] operator[SEP] identifier[getTypeOfThisForFunctionNode] operator[SEP] identifier[functionNode] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public void reset() { table.getColumnModel().removeColumnModelListener(this); columnModel = table.getColumnModel(); columnModel.addColumnModelListener(this); // Keep a duplicate TableColumns for managing hidden TableColumns int count = columnModel.getColumnCount(); allColumns = new ArrayList<>(count); for (int i = 0; i < count; i++) { allColumns.add(columnModel.getColumn(i)); } }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] call[table.getColumnModel, parameter[]] assign[member[.columnModel], call[table.getColumnModel, parameter[]]] call[columnModel.addColumnModelListener, parameter[THIS[]]] local_variable[type[int], count] assign[member[.allColumns], ClassCreator(arguments=[MemberReference(member=count, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ArrayList, sub_type=None))] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getColumn, postfix_operators=[], prefix_operators=[], qualifier=columnModel, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=allColumns, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=count, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { identifier[table] operator[SEP] identifier[getColumnModel] operator[SEP] operator[SEP] operator[SEP] identifier[removeColumnModelListener] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[columnModel] operator[=] identifier[table] operator[SEP] identifier[getColumnModel] operator[SEP] operator[SEP] operator[SEP] identifier[columnModel] operator[SEP] identifier[addColumnModelListener] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[int] identifier[count] operator[=] identifier[columnModel] operator[SEP] identifier[getColumnCount] operator[SEP] operator[SEP] operator[SEP] identifier[allColumns] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] identifier[count] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[count] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[allColumns] operator[SEP] identifier[add] operator[SEP] identifier[columnModel] operator[SEP] identifier[getColumn] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } }
public void setDomainEnvironment() { systemProperties = System.getProperties(); if (System.getProperty(SET_DOMAIN_ENVIRONMENT) != null) { logger.debug("Setting System environment properties to Security Domain values"); for (int i = 0; i < ENVNAMES.length; i++) { setOrClearSystemProperties(ENVNAMES[i], domainProperties); } } }
class class_name[name] begin[{] method[setDomainEnvironment, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.systemProperties], call[System.getProperties, parameter[]]] if[binary_operation[call[System.getProperty, parameter[member[.SET_DOMAIN_ENVIRONMENT]]], !=, literal[null]]] begin[{] call[logger.debug, parameter[literal["Setting System environment properties to Security Domain values"]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ENVNAMES, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), MemberReference(member=domainProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setOrClearSystemProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ENVNAMES, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setDomainEnvironment] operator[SEP] operator[SEP] { identifier[systemProperties] operator[=] identifier[System] operator[SEP] identifier[getProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[SET_DOMAIN_ENVIRONMENT] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[ENVNAMES] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[setOrClearSystemProperties] operator[SEP] identifier[ENVNAMES] operator[SEP] identifier[i] operator[SEP] , identifier[domainProperties] operator[SEP] operator[SEP] } } }
public void setExcludedQualifiers(final String... pExcludedQualifiers) { final Set<String> newExclusions = new HashSet<>(); Collections.addAll(newExclusions, pExcludedQualifiers); excludedQualifiers = newExclusions; }
class class_name[name] begin[{] method[setExcludedQualifiers, return_type[void], modifier[public], parameter[pExcludedQualifiers]] begin[{] local_variable[type[Set], newExclusions] call[Collections.addAll, parameter[member[.newExclusions], member[.pExcludedQualifiers]]] assign[member[.excludedQualifiers], member[.newExclusions]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setExcludedQualifiers] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[pExcludedQualifiers] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[newExclusions] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Collections] operator[SEP] identifier[addAll] operator[SEP] identifier[newExclusions] , identifier[pExcludedQualifiers] operator[SEP] operator[SEP] identifier[excludedQualifiers] operator[=] identifier[newExclusions] operator[SEP] }
protected String determineRootDir(String location) { int prefixEnd = location.indexOf(":") + 1; int rootDirEnd = location.length(); while (rootDirEnd > prefixEnd && getPathMatcher().isPattern(location.substring(prefixEnd, rootDirEnd))) { rootDirEnd = location.lastIndexOf('/', rootDirEnd - 2) + 1; } if (rootDirEnd == 0) { rootDirEnd = prefixEnd; } return location.substring(0, rootDirEnd); }
class class_name[name] begin[{] method[determineRootDir, return_type[type[String]], modifier[protected], parameter[location]] begin[{] local_variable[type[int], prefixEnd] local_variable[type[int], rootDirEnd] while[binary_operation[binary_operation[member[.rootDirEnd], >, member[.prefixEnd]], &&, call[.getPathMatcher, parameter[]]]] begin[{] assign[member[.rootDirEnd], binary_operation[call[location.lastIndexOf, parameter[literal['/'], binary_operation[member[.rootDirEnd], -, literal[2]]]], +, literal[1]]] end[}] if[binary_operation[member[.rootDirEnd], ==, literal[0]]] begin[{] assign[member[.rootDirEnd], member[.prefixEnd]] else begin[{] None end[}] return[call[location.substring, parameter[literal[0], member[.rootDirEnd]]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[determineRootDir] operator[SEP] identifier[String] identifier[location] operator[SEP] { Keyword[int] identifier[prefixEnd] operator[=] identifier[location] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[+] Other[1] operator[SEP] Keyword[int] identifier[rootDirEnd] operator[=] identifier[location] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[rootDirEnd] operator[>] identifier[prefixEnd] operator[&&] identifier[getPathMatcher] operator[SEP] operator[SEP] operator[SEP] identifier[isPattern] operator[SEP] identifier[location] operator[SEP] identifier[substring] operator[SEP] identifier[prefixEnd] , identifier[rootDirEnd] operator[SEP] operator[SEP] operator[SEP] { identifier[rootDirEnd] operator[=] identifier[location] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] , identifier[rootDirEnd] operator[-] Other[2] operator[SEP] operator[+] Other[1] operator[SEP] } Keyword[if] operator[SEP] identifier[rootDirEnd] operator[==] Other[0] operator[SEP] { identifier[rootDirEnd] operator[=] identifier[prefixEnd] operator[SEP] } Keyword[return] identifier[location] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[rootDirEnd] operator[SEP] operator[SEP] }
static Object constructObject( Class<?> clas, Object[] args ) throws ReflectError, InvocationTargetException { return constructObject(clas, null, args); }
class class_name[name] begin[{] method[constructObject, return_type[type[Object]], modifier[static], parameter[clas, args]] begin[{] return[call[.constructObject, parameter[member[.clas], literal[null], member[.args]]]] end[}] END[}]
Keyword[static] identifier[Object] identifier[constructObject] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clas] , identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[ReflectError] , identifier[InvocationTargetException] { Keyword[return] identifier[constructObject] operator[SEP] identifier[clas] , Other[null] , identifier[args] operator[SEP] operator[SEP] }
private void handleWarpToTheFuture(final UIContext uic) { // Increment the step counter StepCountUtil.incrementSessionStep(uic); // Get component at end of chain WComponent application = getUI(); // Call handle step error on WApplication if (application instanceof WApplication) { LOG.warn("The handleStepError method will be called on WApplication."); ((WApplication) application).handleStepError(); } }
class class_name[name] begin[{] method[handleWarpToTheFuture, return_type[void], modifier[private], parameter[uic]] begin[{] call[StepCountUtil.incrementSessionStep, parameter[member[.uic]]] local_variable[type[WComponent], application] if[binary_operation[member[.application], instanceof, type[WApplication]]] begin[{] call[LOG.warn, parameter[literal["The handleStepError method will be called on WApplication."]]] Cast(expression=MemberReference(member=application, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=WApplication, sub_type=None)) else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[handleWarpToTheFuture] operator[SEP] Keyword[final] identifier[UIContext] identifier[uic] operator[SEP] { identifier[StepCountUtil] operator[SEP] identifier[incrementSessionStep] operator[SEP] identifier[uic] operator[SEP] operator[SEP] identifier[WComponent] identifier[application] operator[=] identifier[getUI] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[application] Keyword[instanceof] identifier[WApplication] operator[SEP] { identifier[LOG] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[WApplication] operator[SEP] identifier[application] operator[SEP] operator[SEP] identifier[handleStepError] operator[SEP] operator[SEP] operator[SEP] } }
protected Collection<T> convertValueToCollection(Object value) { if (value instanceof Iterable) { Iterable iterable = (Iterable) value; Collection<T> collection = createCollection(0); for (Object element : iterable) { collection.add(convertType(element)); } return collection; } if (value instanceof CharSequence) { value = CsvUtil.toStringArray(value.toString()); } Class type = value.getClass(); if (type.isArray()) { // convert arrays Class componentType = type.getComponentType(); if (componentType.isPrimitive()) { return convertPrimitiveArrayToCollection(value, componentType); } else { Object[] array = (Object[]) value; Collection<T> result = createCollection(array.length); for (Object a : array) { result.add(convertType(a)); } return result; } } // everything else: return convertToSingleElementCollection(value); }
class class_name[name] begin[{] method[convertValueToCollection, return_type[type[Collection]], modifier[protected], parameter[value]] begin[{] if[binary_operation[member[.value], instanceof, type[Iterable]]] begin[{] local_variable[type[Iterable], iterable] local_variable[type[Collection], collection] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=element, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=convertType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=collection, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=iterable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=element)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None) return[member[.collection]] else begin[{] None end[}] if[binary_operation[member[.value], instanceof, type[CharSequence]]] begin[{] assign[member[.value], call[CsvUtil.toStringArray, parameter[call[value.toString, parameter[]]]]] else begin[{] None end[}] local_variable[type[Class], type] if[call[type.isArray, parameter[]]] begin[{] local_variable[type[Class], componentType] if[call[componentType.isPrimitive, parameter[]]] begin[{] return[call[.convertPrimitiveArrayToCollection, parameter[member[.value], member[.componentType]]]] else begin[{] local_variable[type[Object], array] local_variable[type[Collection], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=convertType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=a)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None) return[member[.result]] end[}] else begin[{] None end[}] return[call[.convertToSingleElementCollection, parameter[member[.value]]]] end[}] END[}]
Keyword[protected] identifier[Collection] operator[<] identifier[T] operator[>] identifier[convertValueToCollection] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[Iterable] operator[SEP] { identifier[Iterable] identifier[iterable] operator[=] operator[SEP] identifier[Iterable] operator[SEP] identifier[value] operator[SEP] identifier[Collection] operator[<] identifier[T] operator[>] identifier[collection] operator[=] identifier[createCollection] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[element] operator[:] identifier[iterable] operator[SEP] { identifier[collection] operator[SEP] identifier[add] operator[SEP] identifier[convertType] operator[SEP] identifier[element] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[collection] operator[SEP] } Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[CharSequence] operator[SEP] { identifier[value] operator[=] identifier[CsvUtil] operator[SEP] identifier[toStringArray] operator[SEP] identifier[value] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[Class] identifier[type] operator[=] identifier[value] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[SEP] identifier[isArray] operator[SEP] operator[SEP] operator[SEP] { identifier[Class] identifier[componentType] operator[=] identifier[type] operator[SEP] identifier[getComponentType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[componentType] operator[SEP] identifier[isPrimitive] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[convertPrimitiveArrayToCollection] operator[SEP] identifier[value] , identifier[componentType] operator[SEP] operator[SEP] } Keyword[else] { identifier[Object] operator[SEP] operator[SEP] identifier[array] operator[=] operator[SEP] identifier[Object] operator[SEP] operator[SEP] operator[SEP] identifier[value] operator[SEP] identifier[Collection] operator[<] identifier[T] operator[>] identifier[result] operator[=] identifier[createCollection] operator[SEP] identifier[array] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[a] operator[:] identifier[array] operator[SEP] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[convertType] operator[SEP] identifier[a] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] } } Keyword[return] identifier[convertToSingleElementCollection] operator[SEP] identifier[value] operator[SEP] operator[SEP] }
public Observable<ServiceResponse<InputStream>> generateThumbnailWithServiceResponseAsync(int width, int height, String url, GenerateThumbnailOptionalParameter generateThumbnailOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if (url == null) { throw new IllegalArgumentException("Parameter url is required and cannot be null."); } final Boolean smartCropping = generateThumbnailOptionalParameter != null ? generateThumbnailOptionalParameter.smartCropping() : null; return generateThumbnailWithServiceResponseAsync(width, height, url, smartCropping); }
class class_name[name] begin[{] method[generateThumbnailWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[width, height, url, generateThumbnailOptionalParameter]] begin[{] if[binary_operation[THIS[member[None.client]call[None.endpoint, parameter[]]], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter this.client.endpoint() is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.url], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter url is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[Boolean], smartCropping] return[call[.generateThumbnailWithServiceResponseAsync, parameter[member[.width], member[.height], member[.url], member[.smartCropping]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[InputStream] operator[>] operator[>] identifier[generateThumbnailWithServiceResponseAsync] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[String] identifier[url] , identifier[GenerateThumbnailOptionalParameter] identifier[generateThumbnailOptionalParameter] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[endpoint] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[url] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[final] identifier[Boolean] identifier[smartCropping] operator[=] identifier[generateThumbnailOptionalParameter] operator[!=] Other[null] operator[?] identifier[generateThumbnailOptionalParameter] operator[SEP] identifier[smartCropping] operator[SEP] operator[SEP] operator[:] Other[null] operator[SEP] Keyword[return] identifier[generateThumbnailWithServiceResponseAsync] operator[SEP] identifier[width] , identifier[height] , identifier[url] , identifier[smartCropping] operator[SEP] operator[SEP] }
public EList<GCFLTRG> getRg() { if (rg == null) { rg = new EObjectContainmentEList.Resolving<GCFLTRG>(GCFLTRG.class, this, AfplibPackage.GCFLT__RG); } return rg; }
class class_name[name] begin[{] method[getRg, return_type[type[EList]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.rg], ==, literal[null]]] begin[{] assign[member[.rg], ClassCreator(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GCFLTRG, sub_type=None)), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=GCFLT__RG, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EObjectContainmentEList, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=GCFLTRG, sub_type=None))], dimensions=None, name=Resolving, sub_type=None)))] else begin[{] None end[}] return[member[.rg]] end[}] END[}]
Keyword[public] identifier[EList] operator[<] identifier[GCFLTRG] operator[>] identifier[getRg] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[rg] operator[==] Other[null] operator[SEP] { identifier[rg] operator[=] Keyword[new] identifier[EObjectContainmentEList] operator[SEP] identifier[Resolving] operator[<] identifier[GCFLTRG] operator[>] operator[SEP] identifier[GCFLTRG] operator[SEP] Keyword[class] , Keyword[this] , identifier[AfplibPackage] operator[SEP] identifier[GCFLT__RG] operator[SEP] operator[SEP] } Keyword[return] identifier[rg] operator[SEP] }
@Override public List<ParsingError> doValidate() { String fileName = this.commandName + Constants.FILE_EXT_COMMANDS; File commandsDirectory = new File( this.context.getApp().getDirectory(), Constants.PROJECT_DIR_COMMANDS ); File commandFileToExecute; List<ParsingError> result = new ArrayList<> (); if( Utils.isEmptyOrWhitespaces( this.commandName )) { result.add( error( ErrorCode.CMD_MISSING_COMMAND_NAME )); } // Prevent a commands file from invoking itself recursively // If the command was loaded from a file... else if( this.context.getCommandFile() != null && fileName.equals( this.context.getCommandFile().getName())) { result.add( error( ErrorCode.CMD_LOOPING_COMMAND, name( this.commandName ))); } // The commands file to execute must exist. else if( ! ( commandFileToExecute = new File( commandsDirectory, fileName )).exists()) { result.add( error( ErrorCode.CMD_INEXISTING_COMMAND, name( this.commandName ))); } // If it exists, we do not want it to contain the same instruction. // Can happen if we execute a commands (not loaded from a file) that executes // a commands file with the same instruction... else { try { String content = Utils.readFileContent( commandFileToExecute ); Pattern p = Pattern.compile( PREFIX + "\\s+" + Pattern.quote( this.commandName ), Pattern.CASE_INSENSITIVE ); if( p.matcher( content ).find()) result.add( error( ErrorCode.CMD_NASTY_LOOPING_COMMAND, name( this.commandName ))); } catch( IOException e ) { // If we cannot load the file's content, do not push the validation further... Utils.logException( Logger.getLogger( getClass().getName()), e ); } } return result; }
class class_name[name] begin[{] method[doValidate, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[String], fileName] local_variable[type[File], commandsDirectory] local_variable[type[File], commandFileToExecute] local_variable[type[List], result] if[call[Utils.isEmptyOrWhitespaces, parameter[THIS[member[None.commandName]]]]] begin[{] call[result.add, parameter[call[.error, parameter[member[ErrorCode.CMD_MISSING_COMMAND_NAME]]]]] else begin[{] if[binary_operation[binary_operation[THIS[member[None.context]call[None.getCommandFile, parameter[]]], !=, literal[null]], &&, call[fileName.equals, parameter[THIS[member[None.context]call[None.getCommandFile, parameter[]]call[None.getName, parameter[]]]]]]] begin[{] call[result.add, parameter[call[.error, parameter[member[ErrorCode.CMD_LOOPING_COMMAND], call[.name, parameter[THIS[member[None.commandName]]]]]]]] else begin[{] if[assign[member[.commandFileToExecute], ClassCreator(arguments=[MemberReference(member=commandsDirectory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=fileName, 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=File, sub_type=None))]] begin[{] call[result.add, parameter[call[.error, parameter[member[ErrorCode.CMD_INEXISTING_COMMAND], call[.name, parameter[THIS[member[None.commandName]]]]]]]] else begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=commandFileToExecute, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readFileContent, postfix_operators=[], prefix_operators=[], qualifier=Utils, selectors=[], type_arguments=None), name=content)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=PREFIX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\\s+"), operator=+), operandr=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=commandName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])], member=quote, postfix_operators=[], prefix_operators=[], qualifier=Pattern, selectors=[], type_arguments=None), operator=+), MemberReference(member=CASE_INSENSITIVE, postfix_operators=[], prefix_operators=[], qualifier=Pattern, selectors=[])], member=compile, postfix_operators=[], prefix_operators=[], qualifier=Pattern, selectors=[], type_arguments=None), name=p)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Pattern, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=content, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=matcher, postfix_operators=[], prefix_operators=[], qualifier=p, selectors=[MethodInvocation(arguments=[], member=find, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=CMD_NASTY_LOOPING_COMMAND, postfix_operators=[], prefix_operators=[], qualifier=ErrorCode, selectors=[]), MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=commandName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])], member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=error, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None))], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=getLogger, postfix_operators=[], prefix_operators=[], qualifier=Logger, selectors=[], type_arguments=None), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=logException, postfix_operators=[], prefix_operators=[], qualifier=Utils, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) end[}] end[}] end[}] return[member[.result]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[ParsingError] operator[>] identifier[doValidate] operator[SEP] operator[SEP] { identifier[String] identifier[fileName] operator[=] Keyword[this] operator[SEP] identifier[commandName] operator[+] identifier[Constants] operator[SEP] identifier[FILE_EXT_COMMANDS] operator[SEP] identifier[File] identifier[commandsDirectory] operator[=] Keyword[new] identifier[File] operator[SEP] Keyword[this] operator[SEP] identifier[context] operator[SEP] identifier[getApp] operator[SEP] operator[SEP] operator[SEP] identifier[getDirectory] operator[SEP] operator[SEP] , identifier[Constants] operator[SEP] identifier[PROJECT_DIR_COMMANDS] operator[SEP] operator[SEP] identifier[File] identifier[commandFileToExecute] operator[SEP] identifier[List] operator[<] identifier[ParsingError] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Utils] operator[SEP] identifier[isEmptyOrWhitespaces] operator[SEP] Keyword[this] operator[SEP] identifier[commandName] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[error] operator[SEP] identifier[ErrorCode] operator[SEP] identifier[CMD_MISSING_COMMAND_NAME] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[context] operator[SEP] identifier[getCommandFile] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] identifier[fileName] operator[SEP] identifier[equals] operator[SEP] Keyword[this] operator[SEP] identifier[context] operator[SEP] identifier[getCommandFile] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[error] operator[SEP] identifier[ErrorCode] operator[SEP] identifier[CMD_LOOPING_COMMAND] , identifier[name] operator[SEP] Keyword[this] operator[SEP] identifier[commandName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[commandFileToExecute] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[commandsDirectory] , identifier[fileName] operator[SEP] operator[SEP] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[error] operator[SEP] identifier[ErrorCode] operator[SEP] identifier[CMD_INEXISTING_COMMAND] , identifier[name] operator[SEP] Keyword[this] operator[SEP] identifier[commandName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[try] { identifier[String] identifier[content] operator[=] identifier[Utils] operator[SEP] identifier[readFileContent] operator[SEP] identifier[commandFileToExecute] operator[SEP] operator[SEP] identifier[Pattern] identifier[p] operator[=] identifier[Pattern] operator[SEP] identifier[compile] operator[SEP] identifier[PREFIX] operator[+] literal[String] operator[+] identifier[Pattern] operator[SEP] identifier[quote] operator[SEP] Keyword[this] operator[SEP] identifier[commandName] operator[SEP] , identifier[Pattern] operator[SEP] identifier[CASE_INSENSITIVE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[p] operator[SEP] identifier[matcher] operator[SEP] identifier[content] operator[SEP] operator[SEP] identifier[find] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[add] operator[SEP] identifier[error] operator[SEP] identifier[ErrorCode] operator[SEP] identifier[CMD_NASTY_LOOPING_COMMAND] , identifier[name] operator[SEP] Keyword[this] operator[SEP] identifier[commandName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[Utils] operator[SEP] identifier[logException] operator[SEP] identifier[Logger] operator[SEP] identifier[getLogger] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] }
@Override public int read() throws IOException { int c; if (m_searching) { int index = 0; c = -1; while (m_searching) { c = m_stream.read(); if (c == -1) { m_searchFailed = true; throw new IOException("Pattern not found"); } if (c == m_pattern[index]) { ++index; if (index == m_pattern.length) { m_searching = false; c = m_stream.read(); } } else { index = 0; } } } else { c = m_stream.read(); } return c; }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], c] if[member[.m_searching]] begin[{] local_variable[type[int], index] assign[member[.c], literal[1]] while[member[.m_searching]] begin[{] assign[member[.c], call[m_stream.read, parameter[]]] if[binary_operation[member[.c], ==, literal[1]]] begin[{] assign[member[.m_searchFailed], literal[true]] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Pattern not found")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IOException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.c], ==, member[.m_pattern]]] begin[{] member[.index] if[binary_operation[member[.index], ==, member[m_pattern.length]]] begin[{] assign[member[.m_searching], literal[false]] assign[member[.c], call[m_stream.read, parameter[]]] else begin[{] None end[}] else begin[{] assign[member[.index], literal[0]] end[}] end[}] else begin[{] assign[member[.c], call[m_stream.read, parameter[]]] end[}] return[member[.c]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[read] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[c] operator[SEP] Keyword[if] operator[SEP] identifier[m_searching] operator[SEP] { Keyword[int] identifier[index] operator[=] Other[0] operator[SEP] identifier[c] operator[=] operator[-] Other[1] operator[SEP] Keyword[while] operator[SEP] identifier[m_searching] operator[SEP] { identifier[c] operator[=] identifier[m_stream] operator[SEP] identifier[read] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] operator[-] Other[1] operator[SEP] { identifier[m_searchFailed] operator[=] literal[boolean] operator[SEP] Keyword[throw] Keyword[new] identifier[IOException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[c] operator[==] identifier[m_pattern] operator[SEP] identifier[index] operator[SEP] operator[SEP] { operator[++] identifier[index] operator[SEP] Keyword[if] operator[SEP] identifier[index] operator[==] identifier[m_pattern] operator[SEP] identifier[length] operator[SEP] { identifier[m_searching] operator[=] literal[boolean] operator[SEP] identifier[c] operator[=] identifier[m_stream] operator[SEP] identifier[read] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] { identifier[index] operator[=] Other[0] operator[SEP] } } } Keyword[else] { identifier[c] operator[=] identifier[m_stream] operator[SEP] identifier[read] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[c] operator[SEP] }
public static RepositoryConfiguration read( InputStream stream, String name ) throws ParsingException, FileNotFoundException { CheckArg.isNotNull(stream, "stream"); CheckArg.isNotNull(name, "name"); Document doc = Json.read(stream); return new RepositoryConfiguration(doc, withoutExtension(name)); }
class class_name[name] begin[{] method[read, return_type[type[RepositoryConfiguration]], modifier[public static], parameter[stream, name]] begin[{] call[CheckArg.isNotNull, parameter[member[.stream], literal["stream"]]] call[CheckArg.isNotNull, parameter[member[.name], literal["name"]]] local_variable[type[Document], doc] return[ClassCreator(arguments=[MemberReference(member=doc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=withoutExtension, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RepositoryConfiguration, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[RepositoryConfiguration] identifier[read] operator[SEP] identifier[InputStream] identifier[stream] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[ParsingException] , identifier[FileNotFoundException] { identifier[CheckArg] operator[SEP] identifier[isNotNull] operator[SEP] identifier[stream] , literal[String] operator[SEP] operator[SEP] identifier[CheckArg] operator[SEP] identifier[isNotNull] operator[SEP] identifier[name] , literal[String] operator[SEP] operator[SEP] identifier[Document] identifier[doc] operator[=] identifier[Json] operator[SEP] identifier[read] operator[SEP] identifier[stream] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[RepositoryConfiguration] operator[SEP] identifier[doc] , identifier[withoutExtension] operator[SEP] identifier[name] operator[SEP] operator[SEP] operator[SEP] }
public void downloadAssets(String toExtension) throws InstallException { downloadAssets(getResolveDirector().getInstallResources(), toExtension); if (getResolveDirector().getLocalInstallAssetsSize() > 0) this.installAssets.add(getResolveDirector().getLocalInstallAssets()); }
class class_name[name] begin[{] method[downloadAssets, return_type[void], modifier[public], parameter[toExtension]] begin[{] call[.downloadAssets, parameter[call[.getResolveDirector, parameter[]], member[.toExtension]]] if[binary_operation[call[.getResolveDirector, parameter[]], >, literal[0]]] begin[{] THIS[member[None.installAssets]call[None.add, parameter[call[.getResolveDirector, parameter[]]]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[downloadAssets] operator[SEP] identifier[String] identifier[toExtension] operator[SEP] Keyword[throws] identifier[InstallException] { identifier[downloadAssets] operator[SEP] identifier[getResolveDirector] operator[SEP] operator[SEP] operator[SEP] identifier[getInstallResources] operator[SEP] operator[SEP] , identifier[toExtension] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[getResolveDirector] operator[SEP] operator[SEP] operator[SEP] identifier[getLocalInstallAssetsSize] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] Keyword[this] operator[SEP] identifier[installAssets] operator[SEP] identifier[add] operator[SEP] identifier[getResolveDirector] operator[SEP] operator[SEP] operator[SEP] identifier[getLocalInstallAssets] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
static boolean isAlphabetic(final int codePoint) { return ((1 << Character.UPPERCASE_LETTER | 1 << Character.LOWERCASE_LETTER | 1 << Character.TITLECASE_LETTER | 1 << Character.MODIFIER_LETTER | 1 << Character.OTHER_LETTER | 1 << Character.LETTER_NUMBER) >> Character .getType(codePoint) & 1) != 0; }
class class_name[name] begin[{] method[isAlphabetic, return_type[type[boolean]], modifier[static], parameter[codePoint]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal[1], <<, member[Character.UPPERCASE_LETTER]], |, binary_operation[literal[1], <<, member[Character.LOWERCASE_LETTER]]], |, binary_operation[literal[1], <<, member[Character.TITLECASE_LETTER]]], |, binary_operation[literal[1], <<, member[Character.MODIFIER_LETTER]]], |, binary_operation[literal[1], <<, member[Character.OTHER_LETTER]]], |, binary_operation[literal[1], <<, member[Character.LETTER_NUMBER]]], >>, call[Character.getType, parameter[member[.codePoint]]]], &, literal[1]], !=, literal[0]]] end[}] END[}]
Keyword[static] Keyword[boolean] identifier[isAlphabetic] operator[SEP] Keyword[final] Keyword[int] identifier[codePoint] operator[SEP] { Keyword[return] operator[SEP] operator[SEP] Other[1] operator[<<] identifier[Character] operator[SEP] identifier[UPPERCASE_LETTER] operator[|] Other[1] operator[<<] identifier[Character] operator[SEP] identifier[LOWERCASE_LETTER] operator[|] Other[1] operator[<<] identifier[Character] operator[SEP] identifier[TITLECASE_LETTER] operator[|] Other[1] operator[<<] identifier[Character] operator[SEP] identifier[MODIFIER_LETTER] operator[|] Other[1] operator[<<] identifier[Character] operator[SEP] identifier[OTHER_LETTER] operator[|] Other[1] operator[<<] identifier[Character] operator[SEP] identifier[LETTER_NUMBER] operator[SEP] operator[>] operator[>] identifier[Character] operator[SEP] identifier[getType] operator[SEP] identifier[codePoint] operator[SEP] operator[&] Other[1] operator[SEP] operator[!=] Other[0] operator[SEP] }
@SuppressWarnings("unchecked") public <V3, M4, C, N, Q> C getDiffuseColor( AiWrapperProvider<V3, M4, C, N, Q> wrapperProvider) { Property p = getProperty(PropertyKey.COLOR_DIFFUSE.m_key); if (null == p || null == p.getData()) { Object def = m_defaults.get(PropertyKey.COLOR_DIFFUSE); if (def == null) { return (C) Jassimp.wrapColor4(1.0f, 1.0f, 1.0f, 1.0f); } return (C) def; } return (C) p.getData(); }
class class_name[name] begin[{] method[getDiffuseColor, return_type[type[C]], modifier[public], parameter[wrapperProvider]] begin[{] local_variable[type[Property], p] if[binary_operation[binary_operation[literal[null], ==, member[.p]], ||, binary_operation[literal[null], ==, call[p.getData, parameter[]]]]] begin[{] local_variable[type[Object], def] if[binary_operation[member[.def], ==, literal[null]]] begin[{] return[Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1.0f), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1.0f), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1.0f), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1.0f)], member=wrapColor4, postfix_operators=[], prefix_operators=[], qualifier=Jassimp, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=C, sub_type=None))] else begin[{] None end[}] return[Cast(expression=MemberReference(member=def, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=C, sub_type=None))] else begin[{] None end[}] return[Cast(expression=MethodInvocation(arguments=[], member=getData, postfix_operators=[], prefix_operators=[], qualifier=p, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=C, sub_type=None))] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[V3] , identifier[M4] , identifier[C] , identifier[N] , identifier[Q] operator[>] identifier[C] identifier[getDiffuseColor] operator[SEP] identifier[AiWrapperProvider] operator[<] identifier[V3] , identifier[M4] , identifier[C] , identifier[N] , identifier[Q] operator[>] identifier[wrapperProvider] operator[SEP] { identifier[Property] identifier[p] operator[=] identifier[getProperty] operator[SEP] identifier[PropertyKey] operator[SEP] identifier[COLOR_DIFFUSE] operator[SEP] identifier[m_key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[==] identifier[p] operator[||] Other[null] operator[==] identifier[p] operator[SEP] identifier[getData] operator[SEP] operator[SEP] operator[SEP] { identifier[Object] identifier[def] operator[=] identifier[m_defaults] operator[SEP] identifier[get] operator[SEP] identifier[PropertyKey] operator[SEP] identifier[COLOR_DIFFUSE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[def] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] identifier[C] operator[SEP] identifier[Jassimp] operator[SEP] identifier[wrapColor4] operator[SEP] literal[Float] , literal[Float] , literal[Float] , literal[Float] operator[SEP] operator[SEP] } Keyword[return] operator[SEP] identifier[C] operator[SEP] identifier[def] operator[SEP] } Keyword[return] operator[SEP] identifier[C] operator[SEP] identifier[p] operator[SEP] identifier[getData] operator[SEP] operator[SEP] operator[SEP] }
public ServiceFuture<Void> enableMonitoringAsync(String resourceGroupName, String clusterName, ClusterMonitoringRequest parameters, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(enableMonitoringWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback); }
class class_name[name] begin[{] method[enableMonitoringAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, clusterName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.enableMonitoringWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.clusterName], member[.parameters]]], member[.serviceCallback]]]] end[}] END[}]
Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[enableMonitoringAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[clusterName] , identifier[ClusterMonitoringRequest] identifier[parameters] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[Void] operator[>] identifier[serviceCallback] operator[SEP] { Keyword[return] identifier[ServiceFuture] operator[SEP] identifier[fromResponse] operator[SEP] identifier[enableMonitoringWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[clusterName] , identifier[parameters] operator[SEP] , identifier[serviceCallback] operator[SEP] operator[SEP] }
public DbDatum get_property(final DeviceProxy deviceProxy, final String propertyName) throws DevFailed { if (deviceProxy.url.protocol == TANGO) { checkIfUseDb(deviceProxy, "get_property()"); if (deviceProxy.getDb_dev() == null) { deviceProxy.setDb_dev(new DbDevice(deviceProxy.devname, deviceProxy.url.host, deviceProxy.url.strPort)); } return deviceProxy.getDb_dev().get_property(propertyName); } else { final String[] propnames = { propertyName }; return deviceProxy.taco_device.get_property(propnames)[0]; } }
class class_name[name] begin[{] method[get_property, return_type[type[DbDatum]], modifier[public], parameter[deviceProxy, propertyName]] begin[{] if[binary_operation[member[deviceProxy.url.protocol], ==, member[.TANGO]]] begin[{] call[.checkIfUseDb, parameter[member[.deviceProxy], literal["get_property()"]]] if[binary_operation[call[deviceProxy.getDb_dev, parameter[]], ==, literal[null]]] begin[{] call[deviceProxy.setDb_dev, parameter[ClassCreator(arguments=[MemberReference(member=devname, postfix_operators=[], prefix_operators=[], qualifier=deviceProxy, selectors=[]), MemberReference(member=host, postfix_operators=[], prefix_operators=[], qualifier=deviceProxy.url, selectors=[]), MemberReference(member=strPort, postfix_operators=[], prefix_operators=[], qualifier=deviceProxy.url, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DbDevice, sub_type=None))]] else begin[{] None end[}] return[call[deviceProxy.getDb_dev, parameter[]]] else begin[{] local_variable[type[String], propnames] return[call[deviceProxy.taco_device.get_property, parameter[member[.propnames]]]] end[}] end[}] END[}]
Keyword[public] identifier[DbDatum] identifier[get_property] operator[SEP] Keyword[final] identifier[DeviceProxy] identifier[deviceProxy] , Keyword[final] identifier[String] identifier[propertyName] operator[SEP] Keyword[throws] identifier[DevFailed] { Keyword[if] operator[SEP] identifier[deviceProxy] operator[SEP] identifier[url] operator[SEP] identifier[protocol] operator[==] identifier[TANGO] operator[SEP] { identifier[checkIfUseDb] operator[SEP] identifier[deviceProxy] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[deviceProxy] operator[SEP] identifier[getDb_dev] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[deviceProxy] operator[SEP] identifier[setDb_dev] operator[SEP] Keyword[new] identifier[DbDevice] operator[SEP] identifier[deviceProxy] operator[SEP] identifier[devname] , identifier[deviceProxy] operator[SEP] identifier[url] operator[SEP] identifier[host] , identifier[deviceProxy] operator[SEP] identifier[url] operator[SEP] identifier[strPort] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[deviceProxy] operator[SEP] identifier[getDb_dev] operator[SEP] operator[SEP] operator[SEP] identifier[get_property] operator[SEP] identifier[propertyName] operator[SEP] operator[SEP] } Keyword[else] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[propnames] operator[=] { identifier[propertyName] } operator[SEP] Keyword[return] identifier[deviceProxy] operator[SEP] identifier[taco_device] operator[SEP] identifier[get_property] operator[SEP] identifier[propnames] operator[SEP] operator[SEP] Other[0] operator[SEP] operator[SEP] } }
@SuppressWarnings("unchecked") public void runDeadlockFuture(Runnable deadlockGuardTask) { if (deadlockFuture == null) { ThreadPoolTaskScheduler deadlockGuard = conn.getDeadlockGuardScheduler(); if (deadlockGuard != null) { try { deadlockFuture = (ScheduledFuture<Runnable>) deadlockGuard.schedule(deadlockGuardTask, new Date(packet.getExpirationTime())); } catch (TaskRejectedException e) { log.warn("DeadlockGuard task is rejected for {}", sessionId, e); } } else { log.debug("Deadlock guard is null for {}", sessionId); } } else { log.warn("Deadlock future is already create for {}", sessionId); } }
class class_name[name] begin[{] method[runDeadlockFuture, return_type[void], modifier[public], parameter[deadlockGuardTask]] begin[{] if[binary_operation[member[.deadlockFuture], ==, literal[null]]] begin[{] local_variable[type[ThreadPoolTaskScheduler], deadlockGuard] if[binary_operation[member[.deadlockGuard], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=deadlockFuture, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=deadlockGuardTask, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[MethodInvocation(arguments=[], member=getExpirationTime, postfix_operators=[], prefix_operators=[], qualifier=packet, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Date, sub_type=None))], member=schedule, postfix_operators=[], prefix_operators=[], qualifier=deadlockGuard, selectors=[], type_arguments=None), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Runnable, sub_type=None))], dimensions=[], name=ScheduledFuture, sub_type=None))), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="DeadlockGuard task is rejected for {}"), MemberReference(member=sessionId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=['TaskRejectedException']))], finally_block=None, label=None, resources=None) else begin[{] call[log.debug, parameter[literal["Deadlock guard is null for {}"], member[.sessionId]]] end[}] else begin[{] call[log.warn, parameter[literal["Deadlock future is already create for {}"], member[.sessionId]]] end[}] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[runDeadlockFuture] operator[SEP] identifier[Runnable] identifier[deadlockGuardTask] operator[SEP] { Keyword[if] operator[SEP] identifier[deadlockFuture] operator[==] Other[null] operator[SEP] { identifier[ThreadPoolTaskScheduler] identifier[deadlockGuard] operator[=] identifier[conn] operator[SEP] identifier[getDeadlockGuardScheduler] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[deadlockGuard] operator[!=] Other[null] operator[SEP] { Keyword[try] { identifier[deadlockFuture] operator[=] operator[SEP] identifier[ScheduledFuture] operator[<] identifier[Runnable] operator[>] operator[SEP] identifier[deadlockGuard] operator[SEP] identifier[schedule] operator[SEP] identifier[deadlockGuardTask] , Keyword[new] identifier[Date] operator[SEP] identifier[packet] operator[SEP] identifier[getExpirationTime] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[TaskRejectedException] identifier[e] operator[SEP] { identifier[log] operator[SEP] identifier[warn] operator[SEP] literal[String] , identifier[sessionId] , identifier[e] operator[SEP] operator[SEP] } } Keyword[else] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[sessionId] operator[SEP] operator[SEP] } } Keyword[else] { identifier[log] operator[SEP] identifier[warn] operator[SEP] literal[String] , identifier[sessionId] operator[SEP] operator[SEP] } }
public UriTemplate set(String variableName, Date value) { values.put(variableName, value); return this; }
class class_name[name] begin[{] method[set, return_type[type[UriTemplate]], modifier[public], parameter[variableName, value]] begin[{] call[values.put, parameter[member[.variableName], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[UriTemplate] identifier[set] operator[SEP] identifier[String] identifier[variableName] , identifier[Date] identifier[value] operator[SEP] { identifier[values] operator[SEP] identifier[put] operator[SEP] identifier[variableName] , identifier[value] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public Observable<CheckAvailabilityResultInner> checkAvailabilityAsync(String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters) { return checkAvailabilityWithServiceResponseAsync(resourceGroupName, namespaceName, parameters).map(new Func1<ServiceResponse<CheckAvailabilityResultInner>, CheckAvailabilityResultInner>() { @Override public CheckAvailabilityResultInner call(ServiceResponse<CheckAvailabilityResultInner> response) { return response.body(); } }); }
class class_name[name] begin[{] method[checkAvailabilityAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, namespaceName, parameters]] begin[{] return[call[.checkAvailabilityWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.namespaceName], member[.parameters]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[CheckAvailabilityResultInner] operator[>] identifier[checkAvailabilityAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[namespaceName] , identifier[CheckAvailabilityParameters] identifier[parameters] operator[SEP] { Keyword[return] identifier[checkAvailabilityWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[namespaceName] , identifier[parameters] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[CheckAvailabilityResultInner] operator[>] , identifier[CheckAvailabilityResultInner] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[CheckAvailabilityResultInner] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[CheckAvailabilityResultInner] operator[>] identifier[response] operator[SEP] { Keyword[return] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
@BetaApi public final Operation setLabelsSnapshot( ProjectGlobalSnapshotResourceName resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { SetLabelsSnapshotHttpRequest request = SetLabelsSnapshotHttpRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) .build(); return setLabelsSnapshot(request); }
class class_name[name] begin[{] method[setLabelsSnapshot, return_type[type[Operation]], modifier[final public], parameter[resource, globalSetLabelsRequestResource]] begin[{] local_variable[type[SetLabelsSnapshotHttpRequest], request] return[call[.setLabelsSnapshot, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[Operation] identifier[setLabelsSnapshot] operator[SEP] identifier[ProjectGlobalSnapshotResourceName] identifier[resource] , identifier[GlobalSetLabelsRequest] identifier[globalSetLabelsRequestResource] operator[SEP] { identifier[SetLabelsSnapshotHttpRequest] identifier[request] operator[=] identifier[SetLabelsSnapshotHttpRequest] operator[SEP] identifier[newBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[setResource] operator[SEP] identifier[resource] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[resource] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[setGlobalSetLabelsRequestResource] operator[SEP] identifier[globalSetLabelsRequestResource] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[setLabelsSnapshot] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public String getTable(T bean) { if (tableStrategy == null) return table; String t = tableStrategy.getTable(table, bean); return t == null || t.isEmpty() ? table : t; }
class class_name[name] begin[{] method[getTable, return_type[type[String]], modifier[public], parameter[bean]] begin[{] if[binary_operation[member[.tableStrategy], ==, literal[null]]] begin[{] return[member[.table]] else begin[{] None end[}] local_variable[type[String], t] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=t, 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=t, selectors=[], type_arguments=None), operator=||), if_false=MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=table, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))] end[}] END[}]
Keyword[public] identifier[String] identifier[getTable] operator[SEP] identifier[T] identifier[bean] operator[SEP] { Keyword[if] operator[SEP] identifier[tableStrategy] operator[==] Other[null] operator[SEP] Keyword[return] identifier[table] operator[SEP] identifier[String] identifier[t] operator[=] identifier[tableStrategy] operator[SEP] identifier[getTable] operator[SEP] identifier[table] , identifier[bean] operator[SEP] operator[SEP] Keyword[return] identifier[t] operator[==] Other[null] operator[||] identifier[t] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[?] identifier[table] operator[:] identifier[t] operator[SEP] }
public void convertClass(ClassDoc cd, DocPath outputdir) { if (cd == null) { return; } try { SourcePosition sp = cd.position(); if (sp == null) return; Reader r; // temp hack until we can update SourcePosition API. if (sp instanceof com.sun.tools.javadoc.SourcePositionImpl) { FileObject fo = ((com.sun.tools.javadoc.SourcePositionImpl) sp).fileObject(); if (fo == null) return; r = fo.openReader(true); } else { File file = sp.file(); if (file == null) return; r = new FileReader(file); } LineNumberReader reader = new LineNumberReader(r); int lineno = 1; String line; relativePath = DocPaths.SOURCE_OUTPUT .resolve(DocPath.forPackage(cd)) .invert(); Content body = getHeader(); Content pre = new HtmlTree(HtmlTag.PRE); try { while ((line = reader.readLine()) != null) { addLineNo(pre, lineno); addLine(pre, line, lineno); lineno++; } } finally { reader.close(); } addBlankLines(pre); Content div = HtmlTree.DIV(HtmlStyle.sourceContainer, pre); body.addContent(div); writeToFile(body, outputdir.resolve(DocPath.forClass(cd))); } catch (IOException e) { e.printStackTrace(); } }
class class_name[name] begin[{] method[convertClass, return_type[void], modifier[public], parameter[cd, outputdir]] begin[{] if[binary_operation[member[.cd], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=position, postfix_operators=[], prefix_operators=[], qualifier=cd, selectors=[], type_arguments=None), name=sp)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=SourcePosition, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=sp, 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=ReturnStatement(expression=None, label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=r)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Reader, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=sp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=sun, sub_type=ReferenceType(arguments=None, dimensions=None, name=tools, sub_type=ReferenceType(arguments=None, dimensions=None, name=javadoc, sub_type=ReferenceType(arguments=None, dimensions=None, name=SourcePositionImpl, sub_type=None))))), operator=instanceof), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=file, postfix_operators=[], prefix_operators=[], qualifier=sp, selectors=[], type_arguments=None), name=file)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=File, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=file, 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=ReturnStatement(expression=None, label=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=file, 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=FileReader, sub_type=None))), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=sp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=sun, sub_type=ReferenceType(arguments=None, dimensions=None, name=tools, sub_type=ReferenceType(arguments=None, dimensions=None, name=javadoc, sub_type=ReferenceType(arguments=None, dimensions=None, name=SourcePositionImpl, sub_type=None)))))), name=fo)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FileObject, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=fo, 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=ReturnStatement(expression=None, label=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=openReader, postfix_operators=[], prefix_operators=[], qualifier=fo, selectors=[], type_arguments=None)), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=r, 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=LineNumberReader, sub_type=None)), name=reader)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=LineNumberReader, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=lineno)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=line)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=relativePath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=cd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=forPackage, postfix_operators=[], prefix_operators=[], qualifier=DocPath, selectors=[], type_arguments=None)], member=resolve, postfix_operators=[], prefix_operators=[], qualifier=DocPaths.SOURCE_OUTPUT, selectors=[MethodInvocation(arguments=[], member=invert, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getHeader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=body)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Content, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=PRE, postfix_operators=[], prefix_operators=[], qualifier=HtmlTag, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=HtmlTree, sub_type=None)), name=pre)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Content, sub_type=None)), TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pre, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=lineno, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addLineNo, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pre, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=line, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=lineno, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addLine, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MemberReference(member=lineno, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)]), condition=BinaryOperation(operandl=Assignment(expressionl=MemberReference(member=line, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=readLine, postfix_operators=[], prefix_operators=[], qualifier=reader, selectors=[], type_arguments=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), label=None)], catches=None, finally_block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=reader, selectors=[], type_arguments=None), label=None)], label=None, resources=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pre, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addBlankLines, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=sourceContainer, postfix_operators=[], prefix_operators=[], qualifier=HtmlStyle, selectors=[]), MemberReference(member=pre, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=DIV, postfix_operators=[], prefix_operators=[], qualifier=HtmlTree, selectors=[], type_arguments=None), name=div)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Content, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=div, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addContent, postfix_operators=[], prefix_operators=[], qualifier=body, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=body, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=cd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=forClass, postfix_operators=[], prefix_operators=[], qualifier=DocPath, selectors=[], type_arguments=None)], member=resolve, postfix_operators=[], prefix_operators=[], qualifier=outputdir, selectors=[], type_arguments=None)], member=writeToFile, postfix_operators=[], prefix_operators=[], qualifier=, 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=['IOException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[convertClass] operator[SEP] identifier[ClassDoc] identifier[cd] , identifier[DocPath] identifier[outputdir] operator[SEP] { Keyword[if] operator[SEP] identifier[cd] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } Keyword[try] { identifier[SourcePosition] identifier[sp] operator[=] identifier[cd] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sp] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] identifier[Reader] identifier[r] operator[SEP] Keyword[if] operator[SEP] identifier[sp] Keyword[instanceof] identifier[com] operator[SEP] identifier[sun] operator[SEP] identifier[tools] operator[SEP] identifier[javadoc] operator[SEP] identifier[SourcePositionImpl] operator[SEP] { identifier[FileObject] identifier[fo] operator[=] operator[SEP] operator[SEP] identifier[com] operator[SEP] identifier[sun] operator[SEP] identifier[tools] operator[SEP] identifier[javadoc] operator[SEP] identifier[SourcePositionImpl] operator[SEP] identifier[sp] operator[SEP] operator[SEP] identifier[fileObject] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[fo] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] identifier[r] operator[=] identifier[fo] operator[SEP] identifier[openReader] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } Keyword[else] { identifier[File] identifier[file] operator[=] identifier[sp] operator[SEP] identifier[file] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[file] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] identifier[r] operator[=] Keyword[new] identifier[FileReader] operator[SEP] identifier[file] operator[SEP] operator[SEP] } identifier[LineNumberReader] identifier[reader] operator[=] Keyword[new] identifier[LineNumberReader] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[int] identifier[lineno] operator[=] Other[1] operator[SEP] identifier[String] identifier[line] operator[SEP] identifier[relativePath] operator[=] identifier[DocPaths] operator[SEP] identifier[SOURCE_OUTPUT] operator[SEP] identifier[resolve] operator[SEP] identifier[DocPath] operator[SEP] identifier[forPackage] operator[SEP] identifier[cd] operator[SEP] operator[SEP] operator[SEP] identifier[invert] operator[SEP] operator[SEP] operator[SEP] identifier[Content] identifier[body] operator[=] identifier[getHeader] operator[SEP] operator[SEP] operator[SEP] identifier[Content] identifier[pre] operator[=] Keyword[new] identifier[HtmlTree] operator[SEP] identifier[HtmlTag] operator[SEP] identifier[PRE] operator[SEP] operator[SEP] Keyword[try] { Keyword[while] operator[SEP] operator[SEP] identifier[line] operator[=] identifier[reader] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[addLineNo] operator[SEP] identifier[pre] , identifier[lineno] operator[SEP] operator[SEP] identifier[addLine] operator[SEP] identifier[pre] , identifier[line] , identifier[lineno] operator[SEP] operator[SEP] identifier[lineno] operator[++] operator[SEP] } } Keyword[finally] { identifier[reader] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] } identifier[addBlankLines] operator[SEP] identifier[pre] operator[SEP] operator[SEP] identifier[Content] identifier[div] operator[=] identifier[HtmlTree] operator[SEP] identifier[DIV] operator[SEP] identifier[HtmlStyle] operator[SEP] identifier[sourceContainer] , identifier[pre] operator[SEP] operator[SEP] identifier[body] operator[SEP] identifier[addContent] operator[SEP] identifier[div] operator[SEP] operator[SEP] identifier[writeToFile] operator[SEP] identifier[body] , identifier[outputdir] operator[SEP] identifier[resolve] operator[SEP] identifier[DocPath] operator[SEP] identifier[forClass] operator[SEP] identifier[cd] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[e] operator[SEP] identifier[printStackTrace] operator[SEP] operator[SEP] operator[SEP] } }
@Override protected void preparePaintComponent(final Request request) { if (!isInitialised()) { // Default some values. tf3.setDisabled(true); tf1.setText("blah blah"); tf2.setText("abc"); tf3.setText("abc"); setInitialised(true); } }
class class_name[name] begin[{] method[preparePaintComponent, return_type[void], modifier[protected], parameter[request]] begin[{] if[call[.isInitialised, parameter[]]] begin[{] call[tf3.setDisabled, parameter[literal[true]]] call[tf1.setText, parameter[literal["blah blah"]]] call[tf2.setText, parameter[literal["abc"]]] call[tf3.setText, parameter[literal["abc"]]] call[.setInitialised, parameter[literal[true]]] else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[preparePaintComponent] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isInitialised] operator[SEP] operator[SEP] operator[SEP] { identifier[tf3] operator[SEP] identifier[setDisabled] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[tf1] operator[SEP] identifier[setText] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[tf2] operator[SEP] identifier[setText] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[tf3] operator[SEP] identifier[setText] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[setInitialised] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } }