code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private InputStream locateStreamWithContextFolder(final String uri, final String contextFolder) throws IOException, FileNotFoundException { if (getWildcardStreamLocator().hasWildcard(uri)) { final String fullPath = WroUtil.getFullPath(uri); final String realPath = contextFolder + fullPath; r...
class class_name[name] begin[{] method[locateStreamWithContextFolder, return_type[type[InputStream]], modifier[private], parameter[uri, contextFolder]] begin[{] if[call[.getWildcardStreamLocator, parameter[]]] begin[{] local_variable[type[String], fullPath] local_variabl...
Keyword[private] identifier[InputStream] identifier[locateStreamWithContextFolder] operator[SEP] Keyword[final] identifier[String] identifier[uri] , Keyword[final] identifier[String] identifier[contextFolder] operator[SEP] Keyword[throws] identifier[IOException] , identifier[FileNotFoundException] { Keyword[if...
public static DateString jodaToCalciteDateString(final DateTime dateTime, final DateTimeZone timeZone) { return new DateString(CALCITE_DATE_PRINTER.print(dateTime.withZone(timeZone))); }
class class_name[name] begin[{] method[jodaToCalciteDateString, return_type[type[DateString]], modifier[public static], parameter[dateTime, timeZone]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=timeZone, postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[DateString] identifier[jodaToCalciteDateString] operator[SEP] Keyword[final] identifier[DateTime] identifier[dateTime] , Keyword[final] identifier[DateTimeZone] identifier[timeZone] operator[SEP] { Keyword[return] Keyword[new] identifier[DateString] operator[SEP] ident...
public static I2CBus getInstance(int busNumber) throws UnsupportedBusNumberException, IOException { return provider.getBus(busNumber, DEFAULT_LOCKAQUIRE_TIMEOUT, DEFAULT_LOCKAQUIRE_TIMEOUT_UNITS); }
class class_name[name] begin[{] method[getInstance, return_type[type[I2CBus]], modifier[public static], parameter[busNumber]] begin[{] return[call[provider.getBus, parameter[member[.busNumber], member[.DEFAULT_LOCKAQUIRE_TIMEOUT], member[.DEFAULT_LOCKAQUIRE_TIMEOUT_UNITS]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[I2CBus] identifier[getInstance] operator[SEP] Keyword[int] identifier[busNumber] operator[SEP] Keyword[throws] identifier[UnsupportedBusNumberException] , identifier[IOException] { Keyword[return] identifier[provider] operator[SEP] identifier[getBus] operator[SEP] iden...
private boolean isSchemaDefinitionInPublishList(CmsUUID publishHistoryId) { if (m_cms == null) { // CmsObject not available, assume there may be a schema definition in the publish history return true; } try { List<CmsPublishedResource> publishedResources = m_...
class class_name[name] begin[{] method[isSchemaDefinitionInPublishList, return_type[type[boolean]], modifier[private], parameter[publishHistoryId]] begin[{] if[binary_operation[member[.m_cms], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[...
Keyword[private] Keyword[boolean] identifier[isSchemaDefinitionInPublishList] operator[SEP] identifier[CmsUUID] identifier[publishHistoryId] operator[SEP] { Keyword[if] operator[SEP] identifier[m_cms] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } ...
private String getSha1(String name, String version) { if (dotHexCachePath == null || name == null || version == null){ logger.warn("Can't calculate SHA1, missing information: .hex-cache = {}, name = {}, version = {}", dotHexCachePath, name, version); return null; } File t...
class class_name[name] begin[{] method[getSha1, return_type[type[String]], modifier[private], parameter[name, version]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.dotHexCachePath], ==, literal[null]], ||, binary_operation[member[.name], ==, literal[null]]], ||, binar...
Keyword[private] identifier[String] identifier[getSha1] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[version] operator[SEP] { Keyword[if] operator[SEP] identifier[dotHexCachePath] operator[==] Other[null] operator[||] identifier[name] operator[==] Other[null] operator[||] id...
private int insertName(final String pName) throws TTException { final String string = (pName == null ? "" : pName); final int nameKey = NamePageHash.generateHashForString(string); NodeMetaPageFactory.MetaKey key = new NodeMetaPageFactory.MetaKey(nameKey); NodeMetaPageFactory.MetaValue va...
class class_name[name] begin[{] method[insertName, return_type[type[int]], modifier[private], parameter[pName]] begin[{] local_variable[type[String], string] local_variable[type[int], nameKey] local_variable[type[NodeMetaPageFactory], key] local_variable[type[NodeMetaPageFactory...
Keyword[private] Keyword[int] identifier[insertName] operator[SEP] Keyword[final] identifier[String] identifier[pName] operator[SEP] Keyword[throws] identifier[TTException] { Keyword[final] identifier[String] identifier[string] operator[=] operator[SEP] identifier[pName] operator[==] Other[null] operator[?] lite...
@Override public synchronized String register(ServletConfig config) throws PortletContainerException { ServletContext servletContext = config.getServletContext(); String contextPath = servletContext.getContextPath(); if (!portletContexts.containsKey(contextPath)) { PortletApplic...
class class_name[name] begin[{] method[register, return_type[type[String]], modifier[synchronized public], parameter[config]] begin[{] local_variable[type[ServletContext], servletContext] local_variable[type[String], contextPath] if[call[portletContexts.containsKey, parameter[me...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] identifier[String] identifier[register] operator[SEP] identifier[ServletConfig] identifier[config] operator[SEP] Keyword[throws] identifier[PortletContainerException] { identifier[ServletContext] identifier[servletContext] operator[=] ident...
protected ResultSet findWorkspacePropertiesOnValueStorage() throws SQLException { if (findWorkspacePropertiesOnValueStorage == null) { findWorkspacePropertiesOnValueStorage = dbConnection.prepareStatement(FIND_WORKSPACE_PROPERTIES_ON_VALUE_STORAGE); } return findWorkspac...
class class_name[name] begin[{] method[findWorkspacePropertiesOnValueStorage, return_type[type[ResultSet]], modifier[protected], parameter[]] begin[{] if[binary_operation[member[.findWorkspacePropertiesOnValueStorage], ==, literal[null]]] begin[{] assign[member[.findWork...
Keyword[protected] identifier[ResultSet] identifier[findWorkspacePropertiesOnValueStorage] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[findWorkspacePropertiesOnValueStorage] operator[==] Other[null] operator[SEP] { identifier[findWorkspac...
public LinkedHashMap<String,S> process() throws IOException, CompoundNotFoundException { LinkedHashMap<String,S> result = process(-1); close(); return result; }
class class_name[name] begin[{] method[process, return_type[type[LinkedHashMap]], modifier[public], parameter[]] begin[{] local_variable[type[LinkedHashMap], result] call[.close, parameter[]] return[member[.result]] end[}] END[}]
Keyword[public] identifier[LinkedHashMap] operator[<] identifier[String] , identifier[S] operator[>] identifier[process] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[CompoundNotFoundException] { identifier[LinkedHashMap] operator[<] identifier[String] , identifier[S] operat...
public static <C> SLF4JLogTemplate<C> toSLF4J(String loggerName, String levelName) { return toSLF4J(loggerName, levelName, null); }
class class_name[name] begin[{] method[toSLF4J, return_type[type[SLF4JLogTemplate]], modifier[public static], parameter[loggerName, levelName]] begin[{] return[call[.toSLF4J, parameter[member[.loggerName], member[.levelName], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[C] operator[>] identifier[SLF4JLogTemplate] operator[<] identifier[C] operator[>] identifier[toSLF4J] operator[SEP] identifier[String] identifier[loggerName] , identifier[String] identifier[levelName] operator[SEP] { Keyword[return] identifier[toSLF4J] oper...
public static Cipher getCipher(String algorithm) throws GeneralSecurityException { return PROVIDER != null ? Cipher.getInstance(algorithm, PROVIDER) : Cipher.getInstance(algorithm); }
class class_name[name] begin[{] method[getCipher, return_type[type[Cipher]], modifier[public static], parameter[algorithm]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=PROVIDER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operand...
Keyword[public] Keyword[static] identifier[Cipher] identifier[getCipher] operator[SEP] identifier[String] identifier[algorithm] operator[SEP] Keyword[throws] identifier[GeneralSecurityException] { Keyword[return] identifier[PROVIDER] operator[!=] Other[null] operator[?] identifier[Cipher] operator[SEP] identifie...
public Optional<DataDirEntry> maybeGetDataDirEntry(DataDirectoryKey key) { return Optional.fromNullable(dataDirectory.get(key)); }
class class_name[name] begin[{] method[maybeGetDataDirEntry, return_type[type[Optional]], modifier[public], parameter[key]] begin[{] return[call[Optional.fromNullable, parameter[call[dataDirectory.get, parameter[member[.key]]]]]] end[}] END[}]
Keyword[public] identifier[Optional] operator[<] identifier[DataDirEntry] operator[>] identifier[maybeGetDataDirEntry] operator[SEP] identifier[DataDirectoryKey] identifier[key] operator[SEP] { Keyword[return] identifier[Optional] operator[SEP] identifier[fromNullable] operator[SEP] identifier[dataDirectory] ope...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SarlPackage.SARL_ARTIFACT__EXTENDS: return getExtends(); } return super.eGet(featureID, resolve, coreType); }
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=SARL_ARTIFACT__EXTENDS, postfix_operators=[], prefix_operators=[], qualifier=SarlPackage, s...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
@Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { logger.debug("Inject ApplicationContext: {} into SpringContextsUtil", applicationContext); SpringContextsUtil.applicationContext = applicationContext; }
class class_name[name] begin[{] method[setApplicationContext, return_type[void], modifier[public], parameter[applicationContext]] begin[{] call[logger.debug, parameter[literal["Inject ApplicationContext: {} into SpringContextsUtil"], member[.applicationContext]]] assign[member[S...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setApplicationContext] operator[SEP] identifier[ApplicationContext] identifier[applicationContext] operator[SEP] Keyword[throws] identifier[BeansException] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String...
private String readMethodHttpMethod(final Method actionMethod) { for (Class<? extends Annotation> methodAnnotation : METHOD_ANNOTATIONS) { if (actionMethod.getAnnotation(methodAnnotation) != null) { return methodAnnotation.getSimpleName(); } } return null; }
class class_name[name] begin[{] method[readMethodHttpMethod, return_type[type[String]], modifier[private], parameter[actionMethod]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=methodA...
Keyword[private] identifier[String] identifier[readMethodHttpMethod] operator[SEP] Keyword[final] identifier[Method] identifier[actionMethod] operator[SEP] { Keyword[for] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Annotation] operator[>] identifier[methodAnnotation] opera...
public final TableSink<T> configure(String[] fieldNames, TypeInformation<?>[] fieldTypes) { final TableSinkBase<T> configuredSink = this.copy(); configuredSink.fieldNames = Optional.of(fieldNames); configuredSink.fieldTypes = Optional.of(fieldTypes); return configuredSink; }
class class_name[name] begin[{] method[configure, return_type[type[TableSink]], modifier[final public], parameter[fieldNames, fieldTypes]] begin[{] local_variable[type[TableSinkBase], configuredSink] assign[member[configuredSink.fieldNames], call[Optional.of, parameter[member[.fieldName...
Keyword[public] Keyword[final] identifier[TableSink] operator[<] identifier[T] operator[>] identifier[configure] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[fieldNames] , identifier[TypeInformation] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[fieldTypes] opera...
private static boolean isValidConfigNode(final boolean sslEnabled, final NodeInfo nodeInfo) { if (sslEnabled && nodeInfo.sslServices().containsKey(ServiceType.CONFIG)) { return true; } else if (nodeInfo.services().containsKey(ServiceType.CONFIG)) { return true; } ...
class class_name[name] begin[{] method[isValidConfigNode, return_type[type[boolean]], modifier[private static], parameter[sslEnabled, nodeInfo]] begin[{] if[binary_operation[member[.sslEnabled], &&, call[nodeInfo.sslServices, parameter[]]]] begin[{] return[literal[true]] els...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isValidConfigNode] operator[SEP] Keyword[final] Keyword[boolean] identifier[sslEnabled] , Keyword[final] identifier[NodeInfo] identifier[nodeInfo] operator[SEP] { Keyword[if] operator[SEP] identifier[sslEnabled] operator[&&] identifier[nodeInfo] opera...
private static StringBuilder buildAbsoluteFinalFile(String file, String basePath, File destinationFolder, boolean isFlatten) { StringBuilder retval = new StringBuilder( destinationFolder.getAbsolutePath()); PathUtils.addEndingSlashIfNeeded(retval); if (!isFlatten) { // delete output directory from baseP...
class class_name[name] begin[{] method[buildAbsoluteFinalFile, return_type[type[StringBuilder]], modifier[private static], parameter[file, basePath, destinationFolder, isFlatten]] begin[{] local_variable[type[StringBuilder], retval] call[PathUtils.addEndingSlashIfNeeded, parameter[membe...
Keyword[private] Keyword[static] identifier[StringBuilder] identifier[buildAbsoluteFinalFile] operator[SEP] identifier[String] identifier[file] , identifier[String] identifier[basePath] , identifier[File] identifier[destinationFolder] , Keyword[boolean] identifier[isFlatten] operator[SEP] { identifier[StringB...
@Override public void execute(FunctionContext<Object> functionContext) { try { String[] args = (String[])functionContext.getArguments(); if(args == null || args.length == 0) throw new IllegalArgumentException("region argument required"); String regionName = args[0]; if(regionName == null |...
class class_name[name] begin[{] method[execute, return_type[void], modifier[public], parameter[functionContext]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[], member=getArgu...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[execute] operator[SEP] identifier[FunctionContext] operator[<] identifier[Object] operator[>] identifier[functionContext] operator[SEP] { Keyword[try] { identifier[String] operator[SEP] operator[SEP] identifier[args] operator[...
public Observable<MediaServiceInner> updateAsync(String resourceGroupName, String mediaServiceName, MediaServiceInner parameters) { return updateWithServiceResponseAsync(resourceGroupName, mediaServiceName, parameters).map(new Func1<ServiceResponse<MediaServiceInner>, MediaServiceInner>() { @Overrid...
class class_name[name] begin[{] method[updateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, mediaServiceName, parameters]] begin[{] return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.mediaServiceName], member[.parameters]]]] ...
Keyword[public] identifier[Observable] operator[<] identifier[MediaServiceInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[mediaServiceName] , identifier[MediaServiceInner] identifier[parameters] operator[SEP] { Keyword[re...
public void reset() { tick = 0; first = true; tracker.reset(); keyToWorld.reset(); currToKey.reset(); currToWorld.reset(); worldToCurrCam3D.reset(); }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.tick], literal[0]] assign[member[.first], literal[true]] call[tracker.reset, parameter[]] call[keyToWorld.reset, parameter[]] ...
Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { identifier[tick] operator[=] Other[0] operator[SEP] identifier[first] operator[=] literal[boolean] operator[SEP] identifier[tracker] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[keyToWorld] opera...
public static <T> AbstractQueueJsonDeserializer<T> newInstance( JsonDeserializer<T> deserializer ) { return new AbstractQueueJsonDeserializer<T>( deserializer ); }
class class_name[name] begin[{] method[newInstance, return_type[type[AbstractQueueJsonDeserializer]], modifier[public static], parameter[deserializer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=deserializer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], bod...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[AbstractQueueJsonDeserializer] operator[<] identifier[T] operator[>] identifier[newInstance] operator[SEP] identifier[JsonDeserializer] operator[<] identifier[T] operator[>] identifier[deserializer] operator[SEP] { Keyword[return] K...
public static Object shiftSignedRight(Object arg1, Object arg2) throws NoSuchMethodException { int code1 = typeCode(arg1); int code2 = typeCode(arg2); if (code1 <= INT) { int val1 = unboxCharOrInt(arg1, code1); if (code2 <= INT) { int val2 = unboxCharOrInt...
class class_name[name] begin[{] method[shiftSignedRight, return_type[type[Object]], modifier[public static], parameter[arg1, arg2]] begin[{] local_variable[type[int], code1] local_variable[type[int], code2] if[binary_operation[member[.code1], <=, member[.INT]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Object] identifier[shiftSignedRight] operator[SEP] identifier[Object] identifier[arg1] , identifier[Object] identifier[arg2] operator[SEP] Keyword[throws] identifier[NoSuchMethodException] { Keyword[int] identifier[code1] operator[=] identifier[typeCode] operator[SEP] ...
public static void main(String argv[]) { StringUtils.startupShutdownMessage(HourGlass.class, argv, LOG); try { HourGlass hourGlass = new HourGlass(new Configuration()); hourGlass.run(); } catch (Throwable e) { LOG.fatal(StringUtils.stringifyException(e)); System.exit(-1); } }
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[argv]] begin[{] call[StringUtils.startupShutdownMessage, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] identifier[argv] operator[SEP] operator[SEP] operator[SEP] { identifier[StringUtils] operator[SEP] identifier[startupShutdownMessage] operator[SEP] identifier[HourGlass] operator[SEP] Keyword[class] , identifier[argv...
@Scheduled(fixedRateString = "${hystrix.stream.queue.sendRate:${hystrix.stream.queue.send-rate:500}}") public void sendMetrics() { ArrayList<String> metrics = new ArrayList<>(); this.jsonMetrics.drainTo(metrics); if (!metrics.isEmpty()) { if (log.isTraceEnabled()) { log.trace("sending stream metrics size...
class class_name[name] begin[{] method[sendMetrics, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[ArrayList], metrics] THIS[member[None.jsonMetrics]call[None.drainTo, parameter[member[.metrics]]]] if[call[metrics.isEmpty, parameter[]]] be...
annotation[@] identifier[Scheduled] operator[SEP] identifier[fixedRateString] operator[=] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[sendMetrics] operator[SEP] operator[SEP] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[metrics] operator[=] Keyword[new]...
public void clear() { min = Double.POSITIVE_INFINITY; max = -Double.POSITIVE_INFINITY; negatives = 0; positives = 0; zeros = 0; sum0 = 0; sum1 = 0; sum2 = 0; sumLog = 0; }
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.min], member[Double.POSITIVE_INFINITY]] assign[member[.max], member[Double.POSITIVE_INFINITY]] assign[member[.negatives], literal[0]] ...
Keyword[public] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { identifier[min] operator[=] identifier[Double] operator[SEP] identifier[POSITIVE_INFINITY] operator[SEP] identifier[max] operator[=] operator[-] identifier[Double] operator[SEP] identifier[POSITIVE_INFINITY] operator[SEP] identifier[ne...
public void setSparseComponent(int component, int index, double value) { if (component >= pointers.length) { increaseSizeTo(component + 1); } double[] sparseInfo = new double[2]; sparseInfo[0] = index; sparseInfo[1] = value; pointers[component] = sparseInfo; sparse[component] = true; ...
class class_name[name] begin[{] method[setSparseComponent, return_type[void], modifier[public], parameter[component, index, value]] begin[{] if[binary_operation[member[.component], >=, member[pointers.length]]] begin[{] call[.increaseSizeTo, parameter[binary_operation[me...
Keyword[public] Keyword[void] identifier[setSparseComponent] operator[SEP] Keyword[int] identifier[component] , Keyword[int] identifier[index] , Keyword[double] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[component] operator[>=] identifier[pointers] operator[SEP] identifier[length] o...
public ColumnVector solve(ColumnVector b, boolean improve) throws MatrixException { // Validate b's size. if (b.nRows != nRows) { throw new MatrixException( MatrixException.INVALID_DIMENSIONS); } decompose(); // Solve Ly =...
class class_name[name] begin[{] method[solve, return_type[type[ColumnVector]], modifier[public], parameter[b, improve]] begin[{] if[binary_operation[member[b.nRows], !=, member[.nRows]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=INVALID_DIMENS...
Keyword[public] identifier[ColumnVector] identifier[solve] operator[SEP] identifier[ColumnVector] identifier[b] , Keyword[boolean] identifier[improve] operator[SEP] Keyword[throws] identifier[MatrixException] { Keyword[if] operator[SEP] identifier[b] operator[SEP] identifier[nRows] operator[!=] identifier[nRows...
public void setSubDomainSettings(java.util.Collection<SubDomainSetting> subDomainSettings) { if (subDomainSettings == null) { this.subDomainSettings = null; return; } this.subDomainSettings = new java.util.ArrayList<SubDomainSetting>(subDomainSettings); }
class class_name[name] begin[{] method[setSubDomainSettings, return_type[void], modifier[public], parameter[subDomainSettings]] begin[{] if[binary_operation[member[.subDomainSettings], ==, literal[null]]] begin[{] assign[THIS[member[None.subDomainSettings]], literal[null...
Keyword[public] Keyword[void] identifier[setSubDomainSettings] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[SubDomainSetting] operator[>] identifier[subDomainSettings] operator[SEP] { Keyword[if] operator[SEP] identifier[subDomainSettin...
public boolean isPureTranslation() { if (isPureCrystalTranslation()) return true; if (SpaceGroup.deltaComp(matTransform.m00,1,SpaceGroup.DELTA) && SpaceGroup.deltaComp(matTransform.m01,0,SpaceGroup.DELTA) && SpaceGroup.deltaComp(matTransform.m02,0,SpaceGroup.DELTA) && SpaceGroup.deltaComp(matTransform.m10...
class class_name[name] begin[{] method[isPureTranslation, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[call[.isPureCrystalTranslation, parameter[]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_operation[binary_oper...
Keyword[public] Keyword[boolean] identifier[isPureTranslation] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isPureCrystalTranslation] operator[SEP] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[SpaceGroup] operator[SEP] ident...
@Override public StorageProviderCredentials getStorageProviderCredentials(String subdomain, String storeId) throws AccountCredentialsNotFoundException, StorageProviderCredentialsNotFoundException { AccountInfo account = accountRepo.findBySubdomain(subdomain); Long id = Long.valueOf(storeId)...
class class_name[name] begin[{] method[getStorageProviderCredentials, return_type[type[StorageProviderCredentials]], modifier[public], parameter[subdomain, storeId]] begin[{] local_variable[type[AccountInfo], account] local_variable[type[Long], id] if[binary_operation[member[.ac...
annotation[@] identifier[Override] Keyword[public] identifier[StorageProviderCredentials] identifier[getStorageProviderCredentials] operator[SEP] identifier[String] identifier[subdomain] , identifier[String] identifier[storeId] operator[SEP] Keyword[throws] identifier[AccountCredentialsNotFoundException] , identifier...
@Override public Collection<Attack> findAttacks(final SearchCriteria criteria) { if (criteria == null) { throw new IllegalArgumentException("criteria must be non-null"); } Collection<Attack> matches = new ArrayList<>(); try { RiakSet set = client.execute( ...
class class_name[name] begin[{] method[findAttacks, return_type[type[Collection]], modifier[public], parameter[criteria]] begin[{] if[binary_operation[member[.criteria], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pref...
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[Attack] operator[>] identifier[findAttacks] operator[SEP] Keyword[final] identifier[SearchCriteria] identifier[criteria] operator[SEP] { Keyword[if] operator[SEP] identifier[criteria] operator[==] Other[null] operato...
private int incrementIndex(int index, int maxIndex) { int newIndex = index + 1; if (newIndex >= elements.length) { newIndex = maxIndex; } return newIndex; }
class class_name[name] begin[{] method[incrementIndex, return_type[type[int]], modifier[private], parameter[index, maxIndex]] begin[{] local_variable[type[int], newIndex] if[binary_operation[member[.newIndex], >=, member[elements.length]]] begin[{] assign[member[...
Keyword[private] Keyword[int] identifier[incrementIndex] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[maxIndex] operator[SEP] { Keyword[int] identifier[newIndex] operator[=] identifier[index] operator[+] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[newIndex] operator[>=]...
private CmsObject initCms(CmsObject cms) { try { cms = OpenCms.initCmsObject(cms); } catch (CmsException e) { LOG.error("Unable to init CmsObject"); } cms.getRequestContext().setSiteRoot(""); return cms; }
class class_name[name] begin[{] method[initCms, return_type[type[CmsObject]], modifier[private], parameter[cms]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=cms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, v...
Keyword[private] identifier[CmsObject] identifier[initCms] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] { Keyword[try] { identifier[cms] operator[=] identifier[OpenCms] operator[SEP] identifier[initCmsObject] operator[SEP] identifier[cms] operator[SEP] operator[SEP] } ...
public Criteria gte(Object o) { this.criteriaType = RelationalOperator.GTE; this.right = ValueNode.toValueNode(o); return this; }
class class_name[name] begin[{] method[gte, return_type[type[Criteria]], modifier[public], parameter[o]] begin[{] assign[THIS[member[None.criteriaType]], member[RelationalOperator.GTE]] assign[THIS[member[None.right]], call[ValueNode.toValueNode, parameter[member[.o]]]] ...
Keyword[public] identifier[Criteria] identifier[gte] operator[SEP] identifier[Object] identifier[o] operator[SEP] { Keyword[this] operator[SEP] identifier[criteriaType] operator[=] identifier[RelationalOperator] operator[SEP] identifier[GTE] operator[SEP] Keyword[this] operator[SEP] identifier[right] operator[=]...
public String writeXML(Date lastModified) { XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat()); return fmt.outputString(writeDocument(lastModified)); }
class class_name[name] begin[{] method[writeXML, return_type[type[String]], modifier[public], parameter[lastModified]] begin[{] local_variable[type[XMLOutputter], fmt] return[call[fmt.outputString, parameter[call[.writeDocument, parameter[member[.lastModified]]]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[writeXML] operator[SEP] identifier[Date] identifier[lastModified] operator[SEP] { identifier[XMLOutputter] identifier[fmt] operator[=] Keyword[new] identifier[XMLOutputter] operator[SEP] identifier[Format] operator[SEP] identifier[getPrettyFormat] operator[SEP] opera...
@Override public List<Monitor<?>> getMonitors() { List<Monitor<?>> monitors = monitor.getMonitors(); List<Monitor<?>> wrappedMonitors = new ArrayList<>(monitors.size()); for (Monitor<?> m : monitors) { wrappedMonitors.add(Monitors.wrap(tags, m)); } return Collections.unmodifiableList(wrapped...
class class_name[name] begin[{] method[getMonitors, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], monitors] local_variable[type[List], wrappedMonitors] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=M...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[Monitor] operator[<] operator[?] operator[>] operator[>] identifier[getMonitors] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Monitor] operator[<] operator[?] operator[>] operator[>] identifier[mon...
public static byte[] toByteArray(final HttpEntity entity) throws IOException { if (entity == null) { throw new IllegalArgumentException("HTTP entity may not be null"); } InputStream instream = entity.getContent(); if (instream == null) { return null; } ...
class class_name[name] begin[{] method[toByteArray, return_type[type[byte]], modifier[public static], parameter[entity]] begin[{] if[binary_operation[member[.entity], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[toByteArray] operator[SEP] Keyword[final] identifier[HttpEntity] identifier[entity] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[entity] operator[==] Other[null] operator[SEP] { ...
public GameSessionPlacement withPlayerLatencies(PlayerLatency... playerLatencies) { if (this.playerLatencies == null) { setPlayerLatencies(new java.util.ArrayList<PlayerLatency>(playerLatencies.length)); } for (PlayerLatency ele : playerLatencies) { this.playerLatencies.a...
class class_name[name] begin[{] method[withPlayerLatencies, return_type[type[GameSessionPlacement]], modifier[public], parameter[playerLatencies]] begin[{] if[binary_operation[THIS[member[None.playerLatencies]], ==, literal[null]]] begin[{] call[.setPlayerLatencies, para...
Keyword[public] identifier[GameSessionPlacement] identifier[withPlayerLatencies] operator[SEP] identifier[PlayerLatency] operator[...] identifier[playerLatencies] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[playerLatencies] operator[==] Other[null] operator[SEP] { ...
protected final PrcAccDocWithSubaccRetrieve lazyGetPrcAccDocWithSubaccRetrieve( final Map<String, Object> pAddParam) throws Exception { @SuppressWarnings("unchecked") PrcAccDocWithSubaccRetrieve<RS, IDoc> proc = (PrcAccDocWithSubaccRetrieve<RS, IDoc>) this.processorsMap .get(PrcAccDocWit...
class class_name[name] begin[{] method[lazyGetPrcAccDocWithSubaccRetrieve, return_type[type[PrcAccDocWithSubaccRetrieve]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcAccDocWithSubaccRetrieve], proc] if[binary_operation[member[.proc], ==, literal[nul...
Keyword[protected] Keyword[final] identifier[PrcAccDocWithSubaccRetrieve] identifier[lazyGetPrcAccDocWithSubaccRetrieve] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] identifier[Exception] { annota...
public ApplicationSummary get(String applicationId, ApplicationGetOptions applicationGetOptions) { return getWithServiceResponseAsync(applicationId, applicationGetOptions).toBlocking().single().body(); }
class class_name[name] begin[{] method[get, return_type[type[ApplicationSummary]], modifier[public], parameter[applicationId, applicationGetOptions]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.applicationId], member[.applicationGetOptions]]]] end[}] END[}]
Keyword[public] identifier[ApplicationSummary] identifier[get] operator[SEP] identifier[String] identifier[applicationId] , identifier[ApplicationGetOptions] identifier[applicationGetOptions] operator[SEP] { Keyword[return] identifier[getWithServiceResponseAsync] operator[SEP] identifier[applicationId] , ident...
private void parsePackets(Thread thread) { try { while (!done) { if (reset) { startStream(); LOGGER.debug("Started xmlstream..."); reset = false; continue; } Element doc = ...
class class_name[name] begin[{] method[parsePackets, return_type[void], modifier[private], parameter[thread]] begin[{] TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=reset, postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[private] Keyword[void] identifier[parsePackets] operator[SEP] identifier[Thread] identifier[thread] operator[SEP] { Keyword[try] { Keyword[while] operator[SEP] operator[!] identifier[done] operator[SEP] { Keyword[if] operator[SEP] identifier[reset] operator[SEP] { ...
private boolean iterateGroup(ValueIterator.Element result, int limit) { if (m_groupIndex_ < 0) { m_groupIndex_ = m_name_.getGroup(m_current_); } while (m_groupIndex_ < m_name_.m_groupcount_ && m_current_ < limit) { // iterate till the last group or the...
class class_name[name] begin[{] method[iterateGroup, return_type[type[boolean]], modifier[private], parameter[result, limit]] begin[{] if[binary_operation[member[.m_groupIndex_], <, literal[0]]] begin[{] assign[member[.m_groupIndex_], call[m_name_.getGroup, parameter[mem...
Keyword[private] Keyword[boolean] identifier[iterateGroup] operator[SEP] identifier[ValueIterator] operator[SEP] identifier[Element] identifier[result] , Keyword[int] identifier[limit] operator[SEP] { Keyword[if] operator[SEP] identifier[m_groupIndex_] operator[<] Other[0] operator[SEP] { identifier[...
@Nonnull public static GenericodeValidator <com.helger.genericode.v10.CodeListDocument> gc10CodeList () { return new GenericodeValidator<> (EGenericodeDocumentType.GC10_CODE_LIST); }
class class_name[name] begin[{] method[gc10CodeList, return_type[type[GenericodeValidator]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[MemberReference(member=GC10_CODE_LIST, postfix_operators=[], prefix_operators=[], qualifier=EGenericodeDocumentType, selectors=[])],...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[GenericodeValidator] operator[<] identifier[com] operator[SEP] identifier[helger] operator[SEP] identifier[genericode] operator[SEP] identifier[v10] operator[SEP] identifier[CodeListDocument] operator[>] identifier[gc10CodeList] operator[SEP] ...
public static IChunk[] getLargestAverageWordLengthChunks(IChunk[] chunks) { double largetAverage = chunks[0].getAverageWordsLength(); int j; //find the largest average word length for ( j = 1; j < chunks.length; j++ ) { if ( chunks[j].getAverageWordsLength() > l...
class class_name[name] begin[{] method[getLargestAverageWordLengthChunks, return_type[type[IChunk]], modifier[public static], parameter[chunks]] begin[{] local_variable[type[double], largetAverage] local_variable[type[int], j] ForStatement(body=BlockStatement(label=None, statements=[IfS...
Keyword[public] Keyword[static] identifier[IChunk] operator[SEP] operator[SEP] identifier[getLargestAverageWordLengthChunks] operator[SEP] identifier[IChunk] operator[SEP] operator[SEP] identifier[chunks] operator[SEP] { Keyword[double] identifier[largetAverage] operator[=] identifier[chunks] operator[SEP] Other...
public String getInitialRemoteAddr() { // https://code.google.com/p/sipservlets/issues/detail?id=255 includes both ACK Support without tx and packet // source ip address if(getMethod().equalsIgnoreCase(Request.ACK)) { if(logger.isTraceEnabled()) { logger.trace("ACK re...
class class_name[name] begin[{] method[getInitialRemoteAddr, return_type[type[String]], modifier[public], parameter[]] begin[{] if[call[.getMethod, parameter[]]] begin[{] if[call[logger.isTraceEnabled, parameter[]]] begin[{] call[logger.tr...
Keyword[public] identifier[String] identifier[getInitialRemoteAddr] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getMethod] operator[SEP] operator[SEP] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[Request] operator[SEP] identifier[ACK] operator[SEP] operator[SEP] { ...
public static base_response unset(nitro_service client, lbwlm resource, String[] args) throws Exception{ lbwlm unsetresource = new lbwlm(); unsetresource.wlmname = resource.wlmname; return unsetresource.unset_resource(client,args); }
class class_name[name] begin[{] method[unset, return_type[type[base_response]], modifier[public static], parameter[client, resource, args]] begin[{] local_variable[type[lbwlm], unsetresource] assign[member[unsetresource.wlmname], member[resource.wlmname]] return[call[unsetresour...
Keyword[public] Keyword[static] identifier[base_response] identifier[unset] operator[SEP] identifier[nitro_service] identifier[client] , identifier[lbwlm] identifier[resource] , identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[lbwl...
@Trivial @Modified protected void modified(ComponentContext context) { Dictionary<String, ?> props = context.getProperties(); final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "modified", props); String c...
class class_name[name] begin[{] method[modified, return_type[void], modifier[protected], parameter[context]] begin[{] local_variable[type[Dictionary], props] local_variable[type[boolean], trace] if[binary_operation[member[.trace], &&, call[tc.isEntryEnabled, parameter[]]]] begin...
annotation[@] identifier[Trivial] annotation[@] identifier[Modified] Keyword[protected] Keyword[void] identifier[modified] operator[SEP] identifier[ComponentContext] identifier[context] operator[SEP] { identifier[Dictionary] operator[<] identifier[String] , operator[?] operator[>] identifier[props] operator[=] ...
private void generateLimitElement(XmlElement element) { XmlElement ifLimitNotNullElement = new XmlElement("if"); ifLimitNotNullElement.addAttribute(new Attribute("test", "rows != null")); XmlElement ifOffsetNotNullElement = new XmlElement("if"); ifOffsetNotNullElement.addAttribute(new A...
class class_name[name] begin[{] method[generateLimitElement, return_type[void], modifier[private], parameter[element]] begin[{] local_variable[type[XmlElement], ifLimitNotNullElement] call[ifLimitNotNullElement.addAttribute, parameter[ClassCreator(arguments=[Literal(postfix_operators=[]...
Keyword[private] Keyword[void] identifier[generateLimitElement] operator[SEP] identifier[XmlElement] identifier[element] operator[SEP] { identifier[XmlElement] identifier[ifLimitNotNullElement] operator[=] Keyword[new] identifier[XmlElement] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[if...
private boolean isExceptionAffected(final String exceptionMessage) { if (exceptionMessage != null) { for (String affectedMessage : EXCEPTION_MESSAGE_WHITELIST) { if (exceptionMessage.contains(affectedMessage)) { return true; } } ...
class class_name[name] begin[{] method[isExceptionAffected, return_type[type[boolean]], modifier[private], parameter[exceptionMessage]] begin[{] if[binary_operation[member[.exceptionMessage], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfSta...
Keyword[private] Keyword[boolean] identifier[isExceptionAffected] operator[SEP] Keyword[final] identifier[String] identifier[exceptionMessage] operator[SEP] { Keyword[if] operator[SEP] identifier[exceptionMessage] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[String] i...
public static final int getSQLType(final String typeName) { String trimmedTypeName = typeName.trim().toLowerCase(Locale.US); final Integer n = pgGenericTypeNameToSQLTypeMap.get(trimmedTypeName); if (n == null) { // look up the alias trimmedTypeName = pgGenericTypeNameAli...
class class_name[name] begin[{] method[getSQLType, return_type[type[int]], modifier[final public static], parameter[typeName]] begin[{] local_variable[type[String], trimmedTypeName] local_variable[type[Integer], n] if[binary_operation[member[.n], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[final] Keyword[int] identifier[getSQLType] operator[SEP] Keyword[final] identifier[String] identifier[typeName] operator[SEP] { identifier[String] identifier[trimmedTypeName] operator[=] identifier[typeName] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operat...
public ByteBufMono aggregate() { return Mono.using(alloc::compositeBuffer, b -> this.reduce(b, (prev, next) -> { if (prev.refCnt() > 0) { return prev.addComponent(true, next.retain()); } el...
class class_name[name] begin[{] method[aggregate, return_type[type[ByteBufMono]], modifier[public], parameter[]] begin[{] return[call[Mono.using, parameter[MethodReference(expression=MemberReference(member=alloc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReferen...
Keyword[public] identifier[ByteBufMono] identifier[aggregate] operator[SEP] operator[SEP] { Keyword[return] identifier[Mono] operator[SEP] identifier[using] operator[SEP] identifier[alloc] operator[::] identifier[compositeBuffer] , identifier[b] operator[->] Keyword[this] operator[SEP] identifier[reduce] operat...
public static void lockFileForOnlyProcess(String lockName) { File file = new File(System.getProperty("java.io.tmpdir"), lockName + ".lock"); try { FileOutputStream output = new FileOutputStream(file); FileLock fileLock = output.getChannel().tryLock(); if (fileLock == ...
class class_name[name] begin[{] method[lockFileForOnlyProcess, return_type[void], modifier[public static], parameter[lockName]] begin[{] local_variable[type[File], file] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Class...
Keyword[public] Keyword[static] Keyword[void] identifier[lockFileForOnlyProcess] operator[SEP] identifier[String] identifier[lockName] operator[SEP] { identifier[File] identifier[file] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] l...
@Override public Object getRowKey(final List<Integer> row) { return getBacking().getRowKey(getRowIndex(row)); }
class class_name[name] begin[{] method[getRowKey, return_type[type[Object]], modifier[public], parameter[row]] begin[{] return[call[.getBacking, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getRowKey] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Integer] operator[>] identifier[row] operator[SEP] { Keyword[return] identifier[getBacking] operator[SEP] operator[SEP] operator[SEP] identifier[getRowK...
@Override // override for Javadoc and performance public boolean isEqual(ChronoLocalDate other) { if (other instanceof LocalDate) { return compareTo0((LocalDate) other) == 0; } return ChronoLocalDate.super.isEqual(other); }
class class_name[name] begin[{] method[isEqual, return_type[type[boolean]], modifier[public], parameter[other]] begin[{] if[binary_operation[member[.other], instanceof, type[LocalDate]]] begin[{] return[binary_operation[call[.compareTo0, parameter[Cast(expression=MemberReference(mem...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isEqual] operator[SEP] identifier[ChronoLocalDate] identifier[other] operator[SEP] { Keyword[if] operator[SEP] identifier[other] Keyword[instanceof] identifier[LocalDate] operator[SEP] { Keyword[return] identifier[compareTo...
public @NotNull QueryBuilder append(@NotNull String sql, Object... args) { return append(sql, asList(args)); }
class class_name[name] begin[{] method[append, return_type[type[QueryBuilder]], modifier[public], parameter[sql, args]] begin[{] return[call[.append, parameter[member[.sql], call[.asList, parameter[member[.args]]]]]] end[}] END[}]
Keyword[public] annotation[@] identifier[NotNull] identifier[QueryBuilder] identifier[append] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[sql] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[return] identifier[append] operator[SEP] identifier[sql] , ...
private Account prepareAccountForUpdate(final Account account, final MultivaluedMap<String, String> data, UserIdentityContext userIdentityContext) { Account.Builder accBuilder = Account.builder(); //copy full incoming account, and let override happen //in a separate insta...
class class_name[name] begin[{] method[prepareAccountForUpdate, return_type[type[Account]], modifier[private], parameter[account, data, userIdentityContext]] begin[{] local_variable[type[Account], accBuilder] call[accBuilder.copy, parameter[member[.account]]] if[call[dat...
Keyword[private] identifier[Account] identifier[prepareAccountForUpdate] operator[SEP] Keyword[final] identifier[Account] identifier[account] , Keyword[final] identifier[MultivaluedMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[data] , identifier[UserIdentityContext] identifier[userI...
@Subscribe public void onEnd(AggregatedQuitEvent e) { try { writeHints(hintsFile, hints); } catch (IOException exception) { outer.log("Could not write back the hints file.", exception, Project.MSG_ERR); } }
class class_name[name] begin[{] method[onEnd, return_type[void], modifier[public], parameter[e]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=hintsFile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferenc...
annotation[@] identifier[Subscribe] Keyword[public] Keyword[void] identifier[onEnd] operator[SEP] identifier[AggregatedQuitEvent] identifier[e] operator[SEP] { Keyword[try] { identifier[writeHints] operator[SEP] identifier[hintsFile] , identifier[hints] operator[SEP] operator[SEP] } Key...
protected void lazyor(final ImmutableRoaringBitmap x2) { int pos1 = 0, pos2 = 0; int length1 = highLowContainer.size(); final int length2 = x2.highLowContainer.size(); main: if (pos1 < length1 && pos2 < length2) { short s1 = highLowContainer.getKeyAtIndex(pos1); short s2 = x2.highLowContaine...
class class_name[name] begin[{] method[lazyor, return_type[void], modifier[protected], parameter[x2]] begin[{] local_variable[type[int], pos1] local_variable[type[int], length1] local_variable[type[int], length2] if[binary_operation[binary_operation[member[.pos1], <, mem...
Keyword[protected] Keyword[void] identifier[lazyor] operator[SEP] Keyword[final] identifier[ImmutableRoaringBitmap] identifier[x2] operator[SEP] { Keyword[int] identifier[pos1] operator[=] Other[0] , identifier[pos2] operator[=] Other[0] operator[SEP] Keyword[int] identifier[length1] operator[=] identifier[high...
@SuppressWarnings({"TypeParameterUnusedInFormals", "unchecked"}) private <T> T fetch(final String id) { checkNotNull(id); checkArgument(!id.isEmpty()); final T ret = (T) idMap.get(id); if (ret == null) { throw new EREException(String.format("Lookup failed for id %s.", id)); } return ret;...
class class_name[name] begin[{] method[fetch, return_type[type[T]], modifier[private], parameter[id]] begin[{] call[.checkNotNull, parameter[member[.id]]] call[.checkArgument, parameter[call[id.isEmpty, parameter[]]]] local_variable[type[T], ret] if[binar...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[private] operator[<] identifier[T] operator[>] identifier[T] identifier[fetch] operator[SEP] Keyword[final] identifier[String] identifier[id] operator[SEP] { identifier[checkNotNull] op...
@Override public final void setReverseRoutingPath(List<SIDestinationAddress> value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReverseRoutingPath", value); /* It is OK to pass in null for the List */ if (value != null) { ...
class class_name[name] begin[{] method[setReverseRoutingPath, return_type[void], modifier[final public], parameter[value]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parame...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[setReverseRoutingPath] operator[SEP] identifier[List] operator[<] identifier[SIDestinationAddress] operator[>] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier...
public void setAggregatedSourceStatusList(java.util.Collection<AggregatedSourceStatus> aggregatedSourceStatusList) { if (aggregatedSourceStatusList == null) { this.aggregatedSourceStatusList = null; return; } this.aggregatedSourceStatusList = new com.amazonaws.internal.S...
class class_name[name] begin[{] method[setAggregatedSourceStatusList, return_type[void], modifier[public], parameter[aggregatedSourceStatusList]] begin[{] if[binary_operation[member[.aggregatedSourceStatusList], ==, literal[null]]] begin[{] assign[THIS[member[None.aggreg...
Keyword[public] Keyword[void] identifier[setAggregatedSourceStatusList] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[AggregatedSourceStatus] operator[>] identifier[aggregatedSourceStatusList] operator[SEP] { Keyword[if] operator[SEP] id...
public String getPublishButton() { String publishButton = OpenCms.getWorkplaceManager().getDefaultUserSettings().getPublishButtonAppearance(); if (CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER.equals(publishButton)) { return ""; } int buttonStyle = getSettings().getUserSe...
class class_name[name] begin[{] method[getPublishButton, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], publishButton] if[call[CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER.equals, parameter[member[.publishButton]]]] begin[{] ...
Keyword[public] identifier[String] identifier[getPublishButton] operator[SEP] operator[SEP] { identifier[String] identifier[publishButton] operator[=] identifier[OpenCms] operator[SEP] identifier[getWorkplaceManager] operator[SEP] operator[SEP] operator[SEP] identifier[getDefaultUserSettings] operator[SEP] opera...
private boolean missingAllele(String alleleString) { return !((alleleString != null) && !alleleString.replace("not specified", "") .replace("NS", "") .replace("NA", "") .replace("na", "") .replace("NULL", "") .replac...
class class_name[name] begin[{] method[missingAllele, return_type[type[boolean]], modifier[private], parameter[alleleString]] begin[{] return[binary_operation[binary_operation[member[.alleleString], !=, literal[null]], &&, call[alleleString.replace, parameter[literal["not specified"], literal[""]]]]] ...
Keyword[private] Keyword[boolean] identifier[missingAllele] operator[SEP] identifier[String] identifier[alleleString] operator[SEP] { Keyword[return] operator[!] operator[SEP] operator[SEP] identifier[alleleString] operator[!=] Other[null] operator[SEP] operator[&&] operator[!] identifier[alleleString] operator[...
public void marshall(DescribeIdentityRequest describeIdentityRequest, ProtocolMarshaller protocolMarshaller) { if (describeIdentityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeId...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeIdentityRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeIdentityRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeIdentityRequest] identifier[describeIdentityRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeIdentityRequest] operator[==] Other[null] operator...
public int incrementCount (K key, int amount) { int[] val = get(key); if (val == null) { put(key, val = new int[1]); } val[0] += amount; return val[0]; /* Alternate implementation, less hashing on the first increment but more garbage created * ev...
class class_name[name] begin[{] method[incrementCount, return_type[type[int]], modifier[public], parameter[key, amount]] begin[{] local_variable[type[int], val] if[binary_operation[member[.val], ==, literal[null]]] begin[{] call[.put, parameter[member[.key], assi...
Keyword[public] Keyword[int] identifier[incrementCount] operator[SEP] identifier[K] identifier[key] , Keyword[int] identifier[amount] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[val] operator[=] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operato...
@Implementation protected static void nativeWriteSampleData( long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, int offset, int size, long presentationTimeUs, @MediaCodec.BufferFlag int flags) { int toWrite = size - offset; byte[] bytes = new byte[toWrite...
class class_name[name] begin[{] method[nativeWriteSampleData, return_type[void], modifier[static protected], parameter[nativeObject, trackIndex, byteBuf, offset, size, presentationTimeUs, flags]] begin[{] local_variable[type[int], toWrite] local_variable[type[byte], bytes] call[...
annotation[@] identifier[Implementation] Keyword[protected] Keyword[static] Keyword[void] identifier[nativeWriteSampleData] operator[SEP] Keyword[long] identifier[nativeObject] , Keyword[int] identifier[trackIndex] , annotation[@] identifier[NonNull] identifier[ByteBuffer] identifier[byteBuf] , Keyword[int] identifi...
public static List<Field> findAllFields(Class<?> type) { List<Field> fields = new LinkedList<>(); if (type != null) { addAll(fields, type.getDeclaredFields()); if (type.getSuperclass() != null) { fields.addAll(findAllFields(type.getSuperclass())); } } return fields; }
class class_name[name] begin[{] method[findAllFields, return_type[type[List]], modifier[public static], parameter[type]] begin[{] local_variable[type[List], fields] if[binary_operation[member[.type], !=, literal[null]]] begin[{] call[.addAll, parameter[member[.fi...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Field] operator[>] identifier[findAllFields] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { identifier[List] operator[<] identifier[Field] operator[>] identifier[fields] operator[=] Keywo...
public Places getPlacesForContacts(JinxConstants.PlaceTypeId placeTypeId, String placeId, String woeId, Integer threshold, JinxConstants.Contacts contacts, Date minimumUploadDate, Date maximumUploadDate, Date ...
class class_name[name] begin[{] method[getPlacesForContacts, return_type[type[Places]], modifier[public], parameter[placeTypeId, placeId, woeId, threshold, contacts, minimumUploadDate, maximumUploadDate, minimumTakenDate, maximumTakenDate]] begin[{] call[JinxUtils.validateParams, parameter[memb...
Keyword[public] identifier[Places] identifier[getPlacesForContacts] operator[SEP] identifier[JinxConstants] operator[SEP] identifier[PlaceTypeId] identifier[placeTypeId] , identifier[String] identifier[placeId] , identifier[String] identifier[woeId] , identifier[Integer] identifier[threshold] , identifier[JinxConst...
public void writeObject (ObjectOutputStream out) throws IOException { int ecount = size(); out.writeInt(ecount); for (Map.Entry<K, V> entry : entrySet()) { out.writeObject(entry.getKey()); out.writeObject(entry.getValue()); } }
class class_name[name] begin[{] method[writeObject, return_type[void], modifier[public], parameter[out]] begin[{] local_variable[type[int], ecount] call[out.writeInt, parameter[member[.ecount]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(express...
Keyword[public] Keyword[void] identifier[writeObject] operator[SEP] identifier[ObjectOutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[ecount] operator[=] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifie...
public String convertIfcObjectiveEnumToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
class class_name[name] begin[{] method[convertIfcObjectiveEnumToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operators=[],...
Keyword[public] identifier[String] identifier[convertIfcObjectiveEnumToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] { Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] identifi...
private static boolean canSkipEscaping( ImmutableList<SoyJavaPrintDirective> directives, @Nullable ContentKind kind) { if (kind == null) { return false; } for (SoyJavaPrintDirective directive : directives) { if (!(directive instanceof ShortCircuitable) || !((ShortCircuitable) dir...
class class_name[name] begin[{] method[canSkipEscaping, return_type[type[boolean]], modifier[private static], parameter[directives, kind]] begin[{] if[binary_operation[member[.kind], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
Keyword[private] Keyword[static] Keyword[boolean] identifier[canSkipEscaping] operator[SEP] identifier[ImmutableList] operator[<] identifier[SoyJavaPrintDirective] operator[>] identifier[directives] , annotation[@] identifier[Nullable] identifier[ContentKind] identifier[kind] operator[SEP] { Keyword[if] operato...
public static Boolean toBooleanObject(final Integer value, final Integer trueValue, final Integer falseValue, final Integer nullValue) { if (value == null) { if (trueValue == null) { return Boolean.TRUE; } if (falseValue == null) { return Boole...
class class_name[name] begin[{] method[toBooleanObject, return_type[type[Boolean]], modifier[public static], parameter[value, trueValue, falseValue, nullValue]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] if[binary_operation[member[.trueValu...
Keyword[public] Keyword[static] identifier[Boolean] identifier[toBooleanObject] operator[SEP] Keyword[final] identifier[Integer] identifier[value] , Keyword[final] identifier[Integer] identifier[trueValue] , Keyword[final] identifier[Integer] identifier[falseValue] , Keyword[final] identifier[Integer] identifier[nul...
public Matrix4d getRepeatTransform(int x, int y){ Matrix4d transform = new Matrix4d(); transform.setIdentity(); int[] iCounts = getAxisCounts(x); int[] jCounts = getAxisCounts(y); int[] counts = new int[iCounts.length]; for (int k = 0; k < iCounts.length; k++) counts[k] = iCounts[k] - jCounts[k]; f...
class class_name[name] begin[{] method[getRepeatTransform, return_type[type[Matrix4d]], modifier[public], parameter[x, y]] begin[{] local_variable[type[Matrix4d], transform] call[transform.setIdentity, parameter[]] local_variable[type[int], iCounts] local_variable[type[i...
Keyword[public] identifier[Matrix4d] identifier[getRepeatTransform] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] operator[SEP] { identifier[Matrix4d] identifier[transform] operator[=] Keyword[new] identifier[Matrix4d] operator[SEP] operator[SEP] operator[SEP] identifier[transform] opera...
public java.util.Map getParameterMap() { //321485 if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"getParameterMap", ""); } if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRe...
class class_name[name] begin[{] method[getParameterMap, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[logger.isLoggable, parameter[member[Level.FINE]]]]] begin[{] call[...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] identifier[getParameterMap] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[logger] op...
public static boolean isLegal(int ch) { if (ch < MIN_VALUE) { return false; } if (ch < Character.MIN_SURROGATE) { return true; } if (ch <= Character.MAX_SURROGATE) { return false; } if (UCharacterUtility.isNonCharacter(ch)) ...
class class_name[name] begin[{] method[isLegal, return_type[type[boolean]], modifier[public static], parameter[ch]] begin[{] if[binary_operation[member[.ch], <, member[.MIN_VALUE]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_o...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isLegal] operator[SEP] Keyword[int] identifier[ch] operator[SEP] { Keyword[if] operator[SEP] identifier[ch] operator[<] identifier[MIN_VALUE] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[...
private LinkedHashMap<HypergraphNode<Variable>, Integer> orderingFromTentativeNewLocations(final LinkedHashMap<HypergraphNode<Variable>, Double> newLocations) { final LinkedHashMap<HypergraphNode<Variable>, Integer> ordering = new LinkedHashMap<>(); final List<Map.Entry<HypergraphNode<Variable>, Double>> list =...
class class_name[name] begin[{] method[orderingFromTentativeNewLocations, return_type[type[LinkedHashMap]], modifier[private], parameter[newLocations]] begin[{] local_variable[type[LinkedHashMap], ordering] local_variable[type[List], list] call[Collections.sort, parameter[member...
Keyword[private] identifier[LinkedHashMap] operator[<] identifier[HypergraphNode] operator[<] identifier[Variable] operator[>] , identifier[Integer] operator[>] identifier[orderingFromTentativeNewLocations] operator[SEP] Keyword[final] identifier[LinkedHashMap] operator[<] identifier[HypergraphNode] operator[<] identi...
void printXMLAttributes(DapNode node, CEConstraint ce, int flags) throws IOException { if((flags & PERLINE) != 0) printer.indent(2); // Print name first, if non-null and !NONAME // Note that the short name needs to use // entity escaping (which is done by...
class class_name[name] begin[{] method[printXMLAttributes, return_type[void], modifier[default], parameter[node, ce, flags]] begin[{] if[binary_operation[binary_operation[member[.flags], &, member[.PERLINE]], !=, literal[0]]] begin[{] call[printer.indent, parameter[literal[2]]] ...
Keyword[void] identifier[printXMLAttributes] operator[SEP] identifier[DapNode] identifier[node] , identifier[CEConstraint] identifier[ce] , Keyword[int] identifier[flags] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[SEP] identifier[flags] operator[&] identifier[PER...
public static void horizontal(Kernel1D_S32 kernel, GrayU8 src, GrayI8 dst ) { InputSanityCheck.checkSameShape(src, dst); boolean processed = BOverrideConvolveImageNormalized.invokeNativeHorizontal(kernel,src,dst); if( !processed ) { if( kernel.width >= src.width ) { ConvolveNormalizedNaive_SB.horizonta...
class class_name[name] begin[{] method[horizontal, return_type[void], modifier[public static], parameter[kernel, src, dst]] begin[{] call[InputSanityCheck.checkSameShape, parameter[member[.src], member[.dst]]] local_variable[type[boolean], processed] if[member[.processed...
Keyword[public] Keyword[static] Keyword[void] identifier[horizontal] operator[SEP] identifier[Kernel1D_S32] identifier[kernel] , identifier[GrayU8] identifier[src] , identifier[GrayI8] identifier[dst] operator[SEP] { identifier[InputSanityCheck] operator[SEP] identifier[checkSameShape] operator[SEP] identifier...
public CMatrixRMaj readCDRM(int numRows, int numCols) throws IOException { CMatrixRMaj A = new CMatrixRMaj(numRows,numCols); int wordsCol = numCols*2; for( int i = 0; i < numRows; i++ ) { List<String> words = extractWords(); if( words == null ) throw ne...
class class_name[name] begin[{] method[readCDRM, return_type[type[CMatrixRMaj]], modifier[public], parameter[numRows, numCols]] begin[{] local_variable[type[CMatrixRMaj], A] local_variable[type[int], wordsCol] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclara...
Keyword[public] identifier[CMatrixRMaj] identifier[readCDRM] operator[SEP] Keyword[int] identifier[numRows] , Keyword[int] identifier[numCols] operator[SEP] Keyword[throws] identifier[IOException] { identifier[CMatrixRMaj] identifier[A] operator[=] Keyword[new] identifier[CMatrixRMaj] operator[SEP] identifier[n...
public final int getInt24(final int pos) { final int position = origin + pos; if (pos + 2 >= limit || pos < 0) throw new IllegalArgumentException("limit excceed: " + (pos < 0 ? pos : (pos + 2))); byte[] buf = buf...
class class_name[name] begin[{] method[getInt24, return_type[type[int]], modifier[final public], parameter[pos]] begin[{] local_variable[type[int], position] if[binary_operation[binary_operation[binary_operation[member[.pos], +, literal[2]], >=, member[.limit]], ||, binary_operation[mem...
Keyword[public] Keyword[final] Keyword[int] identifier[getInt24] operator[SEP] Keyword[final] Keyword[int] identifier[pos] operator[SEP] { Keyword[final] Keyword[int] identifier[position] operator[=] identifier[origin] operator[+] identifier[pos] operator[SEP] Keyword[if] operator[SEP] identifier[pos] operator[+...
@ObjectiveCName("sendPhotoWithPeer:withName:withW:withH:withThumb:withDescriptor:") public void sendPhoto(@NotNull Peer peer, @NotNull String fileName, int w, int h, @Nullable FastThumb fastThumb, @NotNull String descriptor) { modules.getMessagesModule().s...
class class_name[name] begin[{] method[sendPhoto, return_type[void], modifier[public], parameter[peer, fileName, w, h, fastThumb, descriptor]] begin[{] call[modules.getMessagesModule, parameter[]] end[}] END[}]
annotation[@] identifier[ObjectiveCName] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[sendPhoto] operator[SEP] annotation[@] identifier[NotNull] identifier[Peer] identifier[peer] , annotation[@] identifier[NotNull] identifier[String] identifier[fileName] , Keyword[int] identifi...
public static void sqlRS(Connection conn, String sql, Consumer<ResultSet> consumer) { try (Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(sql)) { consumer.accept(rs); } catch (SQLException e) { logger.error(e.getMessage(), e); } }
class class_name[name] begin[{] method[sqlRS, return_type[void], modifier[public static], parameter[conn, sql, consumer]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=rs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
Keyword[public] Keyword[static] Keyword[void] identifier[sqlRS] operator[SEP] identifier[Connection] identifier[conn] , identifier[String] identifier[sql] , identifier[Consumer] operator[<] identifier[ResultSet] operator[>] identifier[consumer] operator[SEP] { Keyword[try] operator[SEP] identifier[Statement] i...
public void startParsing(Reader reader, T data) throws XMLStreamException { checkState(model != null, "No model was set"); init(reader, data); isIncremental = true; }
class class_name[name] begin[{] method[startParsing, return_type[void], modifier[public], parameter[reader, data]] begin[{] call[.checkState, parameter[binary_operation[member[.model], !=, literal[null]], literal["No model was set"]]] call[.init, parameter[member[.reader], membe...
Keyword[public] Keyword[void] identifier[startParsing] operator[SEP] identifier[Reader] identifier[reader] , identifier[T] identifier[data] operator[SEP] Keyword[throws] identifier[XMLStreamException] { identifier[checkState] operator[SEP] identifier[model] operator[!=] Other[null] , literal[String] operator[S...
public static Result unsupportedMediaType(File content, FileMimeTypes fileMimeTypes) { return status(UNSUPPORTED_MEDIA_TYPE, content, fileMimeTypes); }
class class_name[name] begin[{] method[unsupportedMediaType, return_type[type[Result]], modifier[public static], parameter[content, fileMimeTypes]] begin[{] return[call[.status, parameter[member[.UNSUPPORTED_MEDIA_TYPE], member[.content], member[.fileMimeTypes]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Result] identifier[unsupportedMediaType] operator[SEP] identifier[File] identifier[content] , identifier[FileMimeTypes] identifier[fileMimeTypes] operator[SEP] { Keyword[return] identifier[status] operator[SEP] identifier[UNSUPPORTED_MEDIA_TYPE] , identifier[content] ...
public static void unregisterActivityLifecycleCallbacks(Application application, ActivityLifecycleCallbacksCompat callback) { if (PRE_ICS) { preIcsUnregisterActivityLifecycleCallbacks(callback); } else { postIcsUnregisterActivityLifecycleCallbacks(application, callback); ...
class class_name[name] begin[{] method[unregisterActivityLifecycleCallbacks, return_type[void], modifier[public static], parameter[application, callback]] begin[{] if[member[.PRE_ICS]] begin[{] call[.preIcsUnregisterActivityLifecycleCallbacks, parameter[member[.callback]...
Keyword[public] Keyword[static] Keyword[void] identifier[unregisterActivityLifecycleCallbacks] operator[SEP] identifier[Application] identifier[application] , identifier[ActivityLifecycleCallbacksCompat] identifier[callback] operator[SEP] { Keyword[if] operator[SEP] identifier[PRE_ICS] operator[SEP] { ...
@Override public StringBuilderWriter append(CharSequence csq, int start, int end) { CharSequence cs = (csq == null ? "null" : csq); buf.append(cs, start, end); return this; }
class class_name[name] begin[{] method[append, return_type[type[StringBuilderWriter]], modifier[public], parameter[csq, start, end]] begin[{] local_variable[type[CharSequence], cs] call[buf.append, parameter[member[.cs], member[.start], member[.end]]] return[THIS[]] end[}] E...
annotation[@] identifier[Override] Keyword[public] identifier[StringBuilderWriter] identifier[append] operator[SEP] identifier[CharSequence] identifier[csq] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { identifier[CharSequence] identifier[cs] operator[=] operator[SEP] identifi...
public void closeConnection() { if (this.manualMode == false && this.dataSource != null) { MjdbcUtils.closeQuietly(this.conn); this.conn = null; } }
class class_name[name] begin[{] method[closeConnection, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[THIS[member[None.manualMode]], ==, literal[false]], &&, binary_operation[THIS[member[None.dataSource]], !=, literal[null]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[closeConnection] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[manualMode] operator[==] literal[boolean] operator[&&] Keyword[this] operator[SEP] identifier[dataSource] operator[!=] Other[null] operator[SEP] { id...
public boolean add(String field, List<RDFNode> result) { this.result.put(field, result); return true; }
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[field, result]] begin[{] THIS[member[None.result]call[None.put, parameter[member[.field], member[.result]]]] return[literal[true]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[String] identifier[field] , identifier[List] operator[<] identifier[RDFNode] operator[>] identifier[result] operator[SEP] { Keyword[this] operator[SEP] identifier[result] operator[SEP] identifier[put] operator[SEP] identifier[field] , id...
public static <K, V> KeyAffinityService<K> newKeyAffinityService(Cache<K, V> cache, Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize, boolean start) { return new KeyAffinityServiceImpl<>(ex, cache, keyGenerator, keyBufferSize, null, start); }
class class_name[name] begin[{] method[newKeyAffinityService, return_type[type[KeyAffinityService]], modifier[public static], parameter[cache, ex, keyGenerator, keyBufferSize, start]] begin[{] return[ClassCreator(arguments=[MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[KeyAffinityService] operator[<] identifier[K] operator[>] identifier[newKeyAffinityService] operator[SEP] identifier[Cache] operator[<] identifier[K] , identifier[V] operator[>] identifier[cache] , identifier[Executor] i...
public static UserDetailsManagerResourceFactoryBean fromString(String users) { UserDetailsManagerResourceFactoryBean result = new UserDetailsManagerResourceFactoryBean(); result.setResource(new InMemoryResource(users)); return result; }
class class_name[name] begin[{] method[fromString, return_type[type[UserDetailsManagerResourceFactoryBean]], modifier[public static], parameter[users]] begin[{] local_variable[type[UserDetailsManagerResourceFactoryBean], result] call[result.setResource, parameter[ClassCreator(arguments=...
Keyword[public] Keyword[static] identifier[UserDetailsManagerResourceFactoryBean] identifier[fromString] operator[SEP] identifier[String] identifier[users] operator[SEP] { identifier[UserDetailsManagerResourceFactoryBean] identifier[result] operator[=] Keyword[new] identifier[UserDetailsManagerResourceFactoryBea...
private char rdQuotedCh() throws LexException { quotedQuote = false; char c = rdCh(); if (c == '\\') { rdCh(); switch (ch) { case 'r': ch = '\r'; break; case 'n': ch = '\n'; break; case 't': ch = '\t'; break; case 'f': ch = '\f'; break; cas...
class class_name[name] begin[{] method[rdQuotedCh, return_type[type[char]], modifier[private], parameter[]] begin[{] assign[member[.quotedQuote], literal[false]] local_variable[type[char], c] if[binary_operation[member[.c], ==, literal['\\']]] begin[{] ...
Keyword[private] Keyword[char] identifier[rdQuotedCh] operator[SEP] operator[SEP] Keyword[throws] identifier[LexException] { identifier[quotedQuote] operator[=] literal[boolean] operator[SEP] Keyword[char] identifier[c] operator[=] identifier[rdCh] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[S...
public static void setupClasspath( final Path distributedClassPath, final Path intermediateClassPath, final Job job ) throws IOException { String classpathProperty = System.getProperty("druid.hadoop.internal.classpath"); if (classpathProperty == null) { classpathProperty = Syst...
class class_name[name] begin[{] method[setupClasspath, return_type[void], modifier[public static], parameter[distributedClassPath, intermediateClassPath, job]] begin[{] local_variable[type[String], classpathProperty] if[binary_operation[member[.classpathProperty], ==, literal[null]]] be...
Keyword[public] Keyword[static] Keyword[void] identifier[setupClasspath] operator[SEP] Keyword[final] identifier[Path] identifier[distributedClassPath] , Keyword[final] identifier[Path] identifier[intermediateClassPath] , Keyword[final] identifier[Job] identifier[job] operator[SEP] Keyword[throws] identifier[IOExcept...
public static Map<String, String> getVersionAttributes(ServletContext servletContext) throws IOException { URL url = servletContext.getResource("/META-INF/MANIFEST.MF"); if (url != null) { return getVersionAttributes(url); } else { return new LinkedHashMap<>(); } ...
class class_name[name] begin[{] method[getVersionAttributes, return_type[type[Map]], modifier[public static], parameter[servletContext]] begin[{] local_variable[type[URL], url] if[binary_operation[member[.url], !=, literal[null]]] begin[{] return[call[.getVersionAttributes, ...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getVersionAttributes] operator[SEP] identifier[ServletContext] identifier[servletContext] operator[SEP] Keyword[throws] identifier[IOException] { identifier[URL] identifier[url] operator[=]...
public Result<List<DATA>> read(TRANS trans, DATA data) { if(readPS==null) { Result.err(Result.ERR_NotImplemented,"Read is disabled for %s",getClass().getSimpleName()); } return readPS.read(trans, R_TEXT, data); }
class class_name[name] begin[{] method[read, return_type[type[Result]], modifier[public], parameter[trans, data]] begin[{] if[binary_operation[member[.readPS], ==, literal[null]]] begin[{] call[Result.err, parameter[member[Result.ERR_NotImplemented], literal["Read is dis...
Keyword[public] identifier[Result] operator[<] identifier[List] operator[<] identifier[DATA] operator[>] operator[>] identifier[read] operator[SEP] identifier[TRANS] identifier[trans] , identifier[DATA] identifier[data] operator[SEP] { Keyword[if] operator[SEP] identifier[readPS] operator[==] Other[null] operat...
public static Image getInstance(java.awt.Image image, java.awt.Color color, boolean forceBW) throws BadElementException, IOException { if(image instanceof BufferedImage){ BufferedImage bi = (BufferedImage) image; if(bi.getType()==BufferedImage.TYPE_BYTE_BINARY) { forceBW=true; } } java.awt.i...
class class_name[name] begin[{] method[getInstance, return_type[type[Image]], modifier[public static], parameter[image, color, forceBW]] begin[{] if[binary_operation[member[.image], instanceof, type[BufferedImage]]] begin[{] local_variable[type[BufferedImage], bi] ...
Keyword[public] Keyword[static] identifier[Image] identifier[getInstance] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[Image] identifier[image] , identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[Color] identifier[color] , Keyword[boolean] identifier[forc...
public char[] getCharBuffer(int expected) { if (this.charBuffer.length >= expected) { return charBuffer; } else if (expected < MAX_SIZE) { // ?预先设置多一点 this.charBuffer = new char[(int) (expected * 1.2)]; } else { return EMPTY_CHAR_ARRAY; } return this.charBuffer; }
class class_name[name] begin[{] method[getCharBuffer, return_type[type[char]], modifier[public], parameter[expected]] begin[{] if[binary_operation[THIS[member[None.charBuffer]member[None.length]], >=, member[.expected]]] begin[{] return[member[.charBuffer]] else begin[{] ...
Keyword[public] Keyword[char] operator[SEP] operator[SEP] identifier[getCharBuffer] operator[SEP] Keyword[int] identifier[expected] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[charBuffer] operator[SEP] identifier[length] operator[>=] identifier[expected] operator[SEP] { ...
private void doDeployNetwork(final String name, final Message<JsonObject> message) { // When deploying a bare network, we first attempt to load any existing // configuration from the cluster. This ensures that we don't overwrite // a cluster configuration. In some cases, the manager can be redeployed //...
class class_name[name] begin[{] method[doDeployNetwork, return_type[void], modifier[private], parameter[name, message]] begin[{] local_variable[type[String], scontext] local_variable[type[NetworkContext], context] if[call[managers.containsKey, parameter[call[context.address, par...
Keyword[private] Keyword[void] identifier[doDeployNetwork] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Message] operator[<] identifier[JsonObject] operator[>] identifier[message] operator[SEP] { identifier[String] identifier[scontext] operator[=] identifier[data]...
public BigComplex subtract(BigComplex value, MathContext mathContext) { return valueOf( re.subtract(value.re, mathContext), im.subtract(value.im, mathContext)); }
class class_name[name] begin[{] method[subtract, return_type[type[BigComplex]], modifier[public], parameter[value, mathContext]] begin[{] return[call[.valueOf, parameter[call[re.subtract, parameter[member[value.re], member[.mathContext]]], call[im.subtract, parameter[member[value.im], member[.mathConte...
Keyword[public] identifier[BigComplex] identifier[subtract] operator[SEP] identifier[BigComplex] identifier[value] , identifier[MathContext] identifier[mathContext] operator[SEP] { Keyword[return] identifier[valueOf] operator[SEP] identifier[re] operator[SEP] identifier[subtract] operator[SEP] identifier[value]...
public static String selectSingleNodeValue(Node node, String xpathQuery) { Node resultNode = node.selectSingleNode(xpathQuery); if (resultNode != null) { return resultNode.getText(); } else { return null; } }
class class_name[name] begin[{] method[selectSingleNodeValue, return_type[type[String]], modifier[public static], parameter[node, xpathQuery]] begin[{] local_variable[type[Node], resultNode] if[binary_operation[member[.resultNode], !=, literal[null]]] begin[{] return[call[re...
Keyword[public] Keyword[static] identifier[String] identifier[selectSingleNodeValue] operator[SEP] identifier[Node] identifier[node] , identifier[String] identifier[xpathQuery] operator[SEP] { identifier[Node] identifier[resultNode] operator[=] identifier[node] operator[SEP] identifier[selectSingleNode] operato...