code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public ThreadContext captureThreadContext(Map<String, String> execProps, Map<String, ?> threadContextConfig) { String value = execProps == null ? null : execProps.get(ManagedTask.TRANSACTION); if (value == null || ManagedTask.SUSPEND.equals(value)) return new TransactionContext...
class class_name[name] begin[{] method[captureThreadContext, return_type[type[ThreadContext]], modifier[public], parameter[execProps, threadContextConfig]] begin[{] local_variable[type[String], value] if[binary_operation[binary_operation[member[.value], ==, literal[null]], ||, call[Mana...
annotation[@] identifier[Override] Keyword[public] identifier[ThreadContext] identifier[captureThreadContext] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[execProps] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[threa...
public static SecretKeyFactory getSecretKeyFactory(String algorithm) { final Provider provider = GlobalBouncyCastleProvider.INSTANCE.getProvider(); SecretKeyFactory keyFactory; try { keyFactory = (null == provider) // ? SecretKeyFactory.getInstance(getMainAlgorithm(algorithm)) // : SecretKeyF...
class class_name[name] begin[{] method[getSecretKeyFactory, return_type[type[SecretKeyFactory]], modifier[public static], parameter[algorithm]] begin[{] local_variable[type[Provider], provider] local_variable[type[SecretKeyFactory], keyFactory] TryStatement(block=[StatementExpression(ex...
Keyword[public] Keyword[static] identifier[SecretKeyFactory] identifier[getSecretKeyFactory] operator[SEP] identifier[String] identifier[algorithm] operator[SEP] { Keyword[final] identifier[Provider] identifier[provider] operator[=] identifier[GlobalBouncyCastleProvider] operator[SEP] identifier[INSTANCE] operat...
@Override public boolean rmUser(final Node node) { LdapUser user = (LdapUser) node; if(node == null) { return false; } try { deletionCount++; ctx.unbind(getOuForNode(user)); } catch (NamingException ex) { handleNamingException(user...
class class_name[name] begin[{] method[rmUser, return_type[type[boolean]], modifier[public], parameter[node]] begin[{] local_variable[type[LdapUser], user] if[binary_operation[member[.node], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[rmUser] operator[SEP] Keyword[final] identifier[Node] identifier[node] operator[SEP] { identifier[LdapUser] identifier[user] operator[=] operator[SEP] identifier[LdapUser] operator[SEP] identifier[node] operator[SEP] Keyword[if] opera...
public double[] getPrediction(Instance instance) { int predictionMode = this.getLearnerToUse(instance, this.predictionFunction); return getPrediction(instance, predictionMode); }
class class_name[name] begin[{] method[getPrediction, return_type[type[double]], modifier[public], parameter[instance]] begin[{] local_variable[type[int], predictionMode] return[call[.getPrediction, parameter[member[.instance], member[.predictionMode]]]] end[}] END[}]
Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getPrediction] operator[SEP] identifier[Instance] identifier[instance] operator[SEP] { Keyword[int] identifier[predictionMode] operator[=] Keyword[this] operator[SEP] identifier[getLearnerToUse] operator[SEP] identifier[instance] , Keyword[t...
public ResourceFormatGenerator getGeneratorForFileExtension(final String extension) throws UnsupportedFormatException { for (final ResourceFormatGenerator generator : listGenerators()) { if (generator.getFileExtensions().contains(extension)) { return generator; } ...
class class_name[name] begin[{] method[getGeneratorForFileExtension, return_type[type[ResourceFormatGenerator]], modifier[public], parameter[extension]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getFileExtensions, postf...
Keyword[public] identifier[ResourceFormatGenerator] identifier[getGeneratorForFileExtension] operator[SEP] Keyword[final] identifier[String] identifier[extension] operator[SEP] Keyword[throws] identifier[UnsupportedFormatException] { Keyword[for] operator[SEP] Keyword[final] identifier[ResourceFormatGenerator] i...
@Override public GetUsagePlanKeysResult getUsagePlanKeys(GetUsagePlanKeysRequest request) { request = beforeClientExecution(request); return executeGetUsagePlanKeys(request); }
class class_name[name] begin[{] method[getUsagePlanKeys, return_type[type[GetUsagePlanKeysResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetUsagePlanKeys, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[GetUsagePlanKeysResult] identifier[getUsagePlanKeys] operator[SEP] identifier[GetUsagePlanKeysRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
@Override public T addAsDirectories(final ArchivePath... paths) throws IllegalArgumentException { // Precondition check Validate.notNull(paths, "paths must be specified"); // Add for (final ArchivePath path : paths) { this.addAsDirectory(path); } // Retu...
class class_name[name] begin[{] method[addAsDirectories, return_type[type[T]], modifier[public], parameter[paths]] begin[{] call[Validate.notNull, parameter[member[.paths], literal["paths must be specified"]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[addAsDirectories] operator[SEP] Keyword[final] identifier[ArchivePath] operator[...] identifier[paths] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[Validate] operator[SEP] identifier[notNull] operator[S...
public boolean getBoolean(String pName, boolean defaultValue) { String pValue = _properties.getProperty(pName); return parseBoolean(pName, pValue, defaultValue); }
class class_name[name] begin[{] method[getBoolean, return_type[type[boolean]], modifier[public], parameter[pName, defaultValue]] begin[{] local_variable[type[String], pValue] return[call[.parseBoolean, parameter[member[.pName], member[.pValue], member[.defaultValue]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[getBoolean] operator[SEP] identifier[String] identifier[pName] , Keyword[boolean] identifier[defaultValue] operator[SEP] { identifier[String] identifier[pValue] operator[=] identifier[_properties] operator[SEP] identifier[getProperty] operator[SEP] identifier[pName] o...
public static void releaseClassLoadingSP(String name) { synchronized (classLoadingSP) { Pair<Thread,JoinPoint<NoException>> sp = classLoadingSP.get(name); JoinPoint<NoException> jp = sp.getValue2(); jp.joined(); if (jp.isUnblocked()) classLoadingSP.remove(name); } }
class class_name[name] begin[{] method[releaseClassLoadingSP, return_type[void], modifier[public static], parameter[name]] begin[{] SYNCHRONIZED[member[.classLoadingSP]] BEGIN[{] local_variable[type[Pair], sp] local_variable[type[JoinPoint], jp] c...
Keyword[public] Keyword[static] Keyword[void] identifier[releaseClassLoadingSP] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[classLoadingSP] operator[SEP] { identifier[Pair] operator[<] identifier[Thread] , identifier[JoinPoint] oper...
public int readRawVarint32() throws IOException { byte tmp = readRawByte(); if (tmp >= 0) { return tmp; } int result = tmp & 0x7f; if ((tmp = readRawByte()) >= 0) { result |= tmp << 7; } else { result |= (tmp & 0x7f) << 7; if ((tmp = readRawByte()) >= 0) { result ...
class class_name[name] begin[{] method[readRawVarint32, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[byte], tmp] if[binary_operation[member[.tmp], >=, literal[0]]] begin[{] return[member[.tmp]] else begin[{] None end[}] ...
Keyword[public] Keyword[int] identifier[readRawVarint32] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] identifier[tmp] operator[=] identifier[readRawByte] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tmp] operator[>=] Other[0] operator[SEP] ...
public static String buildHostsOnlyList(List<HostAndPort> hostAndPorts) { StringBuilder sb = new StringBuilder(); for (HostAndPort hostAndPort : hostAndPorts) { sb.append(hostAndPort.getHostText()).append(","); } if (sb.length() > 0) { sb.delete(sb.length() - 1, sb.length()); } retur...
class class_name[name] begin[{] method[buildHostsOnlyList, return_type[type[String]], modifier[public static], parameter[hostAndPorts]] begin[{] local_variable[type[StringBuilder], sb] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argum...
Keyword[public] Keyword[static] identifier[String] identifier[buildHostsOnlyList] operator[SEP] identifier[List] operator[<] identifier[HostAndPort] operator[>] identifier[hostAndPorts] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] opera...
public ServiceFuture<RegistryListCredentialsResultInner> regenerateCredentialAsync(String resourceGroupName, String registryName, PasswordName name, final ServiceCallback<RegistryListCredentialsResultInner> serviceCallback) { return ServiceFuture.fromResponse(regenerateCredentialWithServiceResponseAsync(resourc...
class class_name[name] begin[{] method[regenerateCredentialAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, registryName, name, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.regenerateCredentialWithServiceResponseAsync, paramet...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[RegistryListCredentialsResultInner] operator[>] identifier[regenerateCredentialAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[PasswordName] identifier[name] , Keyword[fin...
@Override @SuppressWarnings("unchecked") public T forward() { T x = modIn.getOutput(); y = (T) x.copyAndConvertAlgebra(s); return y; }
class class_name[name] begin[{] method[forward, return_type[type[T]], modifier[public], parameter[]] begin[{] local_variable[type[T], x] assign[member[.y], Cast(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, select...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[T] identifier[forward] operator[SEP] operator[SEP] { identifier[T] identifier[x] operator[=] identifier[modIn] operator[SEP] identifier[getOutput] operator[SEP] ope...
public static int cusolverSpXcsrsymrcmHost( cusolverSpHandle handle, int n, int nnzA, cusparseMatDescr descrA, Pointer csrRowPtrA, Pointer csrColIndA, Pointer p) { return checkResult(cusolverSpXcsrsymrcmHostNative(handle, n, nnzA, descrA...
class class_name[name] begin[{] method[cusolverSpXcsrsymrcmHost, return_type[type[int]], modifier[public static], parameter[handle, n, nnzA, descrA, csrRowPtrA, csrColIndA, p]] begin[{] return[call[.checkResult, parameter[call[.cusolverSpXcsrsymrcmHostNative, parameter[member[.handle], member[.n], memb...
Keyword[public] Keyword[static] Keyword[int] identifier[cusolverSpXcsrsymrcmHost] operator[SEP] identifier[cusolverSpHandle] identifier[handle] , Keyword[int] identifier[n] , Keyword[int] identifier[nnzA] , identifier[cusparseMatDescr] identifier[descrA] , identifier[Pointer] identifier[csrRowPtrA] , identifier[Po...
public void setLatLngs(List<LatLng> latLngs) { List<Point>points = new ArrayList<>(); for (LatLng latLng : latLngs) { points.add(Point.fromLngLat(latLng.getLongitude(), latLng.getLatitude())); } geometry = LineString.fromLngLats(points); }
class class_name[name] begin[{] method[setLatLngs, return_type[void], modifier[public], parameter[latLngs]] begin[{] local_variable[type[List], points] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=...
Keyword[public] Keyword[void] identifier[setLatLngs] operator[SEP] identifier[List] operator[<] identifier[LatLng] operator[>] identifier[latLngs] operator[SEP] { identifier[List] operator[<] identifier[Point] operator[>] identifier[points] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] o...
public void setLineColor(@ColorInt final int lineColor) { queueEvent(new Runnable() { @Override public void run() { scene.setLineColor(lineColor); } }); }
class class_name[name] begin[{] method[setLineColor, return_type[void], modifier[public], parameter[lineColor]] begin[{] call[.queueEvent, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=Met...
Keyword[public] Keyword[void] identifier[setLineColor] operator[SEP] annotation[@] identifier[ColorInt] Keyword[final] Keyword[int] identifier[lineColor] operator[SEP] { identifier[queueEvent] operator[SEP] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] { annotation[@] identifier[Overri...
protected void updateFoundCount() { SpiderScan sc = this.getSelectedScanner(); if (sc != null) { this.getFoundCountValueLabel().setText(Integer.toString(sc.getNumberOfURIsFound())); } else { this.getFoundCountValueLabel().setText(ZERO_REQUESTS_LABEL_TEXT); } }
class class_name[name] begin[{] method[updateFoundCount, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[SpiderScan], sc] if[binary_operation[member[.sc], !=, literal[null]]] begin[{] THIS[call[None.getFoundCountValueLabel, param...
Keyword[protected] Keyword[void] identifier[updateFoundCount] operator[SEP] operator[SEP] { identifier[SpiderScan] identifier[sc] operator[=] Keyword[this] operator[SEP] identifier[getSelectedScanner] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sc] operator[!=] Other[null] oper...
public void endTo(K to, M msg) { K key = getCurrentKey(); if (key.equals(to)) { throw new IllegalArgumentException("current and to are equals"); } if (key != null) { kill(key); doFork(to, msg); throw new Threa...
class class_name[name] begin[{] method[endTo, return_type[void], modifier[public], parameter[to, msg]] begin[{] local_variable[type[K], key] if[call[key.equals, parameter[member[.to]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ...
Keyword[public] Keyword[void] identifier[endTo] operator[SEP] identifier[K] identifier[to] , identifier[M] identifier[msg] operator[SEP] { identifier[K] identifier[key] operator[=] identifier[getCurrentKey] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[key] operator[SEP] identif...
public Stream<IntPair> adjacent4Points(final int i, final int j) { final IntPair up = i == 0 ? null : IntPair.of(i - 1, j); final IntPair right = j == cols - 1 ? null : IntPair.of(i, j + 1); final IntPair down = i == rows - 1 ? null : IntPair.of(i + 1, j); final IntPair left = j == 0...
class class_name[name] begin[{] method[adjacent4Points, return_type[type[Stream]], modifier[public], parameter[i, j]] begin[{] local_variable[type[IntPair], up] local_variable[type[IntPair], right] local_variable[type[IntPair], down] local_variable[type[IntPair], left] r...
Keyword[public] identifier[Stream] operator[<] identifier[IntPair] operator[>] identifier[adjacent4Points] operator[SEP] Keyword[final] Keyword[int] identifier[i] , Keyword[final] Keyword[int] identifier[j] operator[SEP] { Keyword[final] identifier[IntPair] identifier[up] operator[=] identifier[i] operator[==] ...
@Override public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable) { this.generateXmlElementWithSelective(document, introspectedTable); this.generateXmlElement(document, introspectedTable, false); if (introspectedTable.hasBLOBColumns()) { thi...
class class_name[name] begin[{] method[sqlMapDocumentGenerated, return_type[type[boolean]], modifier[public], parameter[document, introspectedTable]] begin[{] THIS[call[None.generateXmlElementWithSelective, parameter[member[.document], member[.introspectedTable]]]] THIS[call[Non...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[sqlMapDocumentGenerated] operator[SEP] identifier[Document] identifier[document] , identifier[IntrospectedTable] identifier[introspectedTable] operator[SEP] { Keyword[this] operator[SEP] identifier[generateXmlElementWithSelective] op...
public DscConfigurationInner update(String resourceGroupName, String automationAccountName, String configurationName, DscConfigurationUpdateParameters parameters) { return updateWithServiceResponseAsync(resourceGroupName, automationAccountName, configurationName, parameters).toBlocking().single().body(); }
class class_name[name] begin[{] method[update, return_type[type[DscConfigurationInner]], modifier[public], parameter[resourceGroupName, automationAccountName, configurationName, parameters]] begin[{] return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.automationAc...
Keyword[public] identifier[DscConfigurationInner] identifier[update] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[automationAccountName] , identifier[String] identifier[configurationName] , identifier[DscConfigurationUpdateParameters] identifier[parameters] operator[...
public static int getCharCount(String charSet, String word) { int nCount = 0; if (word != null) { String temp = word + " "; for (int i = 0; i < word.length(); i++) { String s = temp.substring(i, i + 1); if (charSet.indexOf(...
class class_name[name] begin[{] method[getCharCount, return_type[type[int]], modifier[public static], parameter[charSet, word]] begin[{] local_variable[type[int], nCount] if[binary_operation[member[.word], !=, literal[null]]] begin[{] local_variable[type[String], temp] ...
Keyword[public] Keyword[static] Keyword[int] identifier[getCharCount] operator[SEP] identifier[String] identifier[charSet] , identifier[String] identifier[word] operator[SEP] { Keyword[int] identifier[nCount] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[word] operator[!=] Other[null] ...
public void showInNavigation(CmsUUID entryId) { CmsClientSitemapEntry entry = getEntryById(entryId); CmsSitemapChange change = getChangeForEdit( entry, Collections.singletonList( new CmsPropertyModification( entryId.toString() ...
class class_name[name] begin[{] method[showInNavigation, return_type[void], modifier[public], parameter[entryId]] begin[{] local_variable[type[CmsClientSitemapEntry], entry] local_variable[type[CmsSitemapChange], change] call[.commitChange, parameter[member[.change], literal[nul...
Keyword[public] Keyword[void] identifier[showInNavigation] operator[SEP] identifier[CmsUUID] identifier[entryId] operator[SEP] { identifier[CmsClientSitemapEntry] identifier[entry] operator[=] identifier[getEntryById] operator[SEP] identifier[entryId] operator[SEP] operator[SEP] identifier[CmsSitemapChange] iden...
public OvhOrder dedicated_server_serviceName_ip_duration_GET(String serviceName, String duration, OvhIpBlockSizeEnum blockSize, OvhIpCountryEnum country, String organisationId, OvhIpTypeOrderableEnum type) throws IOException { String qPath = "/order/dedicated/server/{serviceName}/ip/{duration}"; StringBuilder sb = ...
class class_name[name] begin[{] method[dedicated_server_serviceName_ip_duration_GET, return_type[type[OvhOrder]], modifier[public], parameter[serviceName, duration, blockSize, country, organisationId, type]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] ...
Keyword[public] identifier[OvhOrder] identifier[dedicated_server_serviceName_ip_duration_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[duration] , identifier[OvhIpBlockSizeEnum] identifier[blockSize] , identifier[OvhIpCountryEnum] identifier[country] , identifier[Stri...
int next() throws IOException, UnterminatedCommentException { int c = get(); if (c == '/') { switch (peek()) { case '/': for (;;) { c = get(); if (c <= '\n') { return c; } } case '*': get(); for (;;) { switch (get()) { case '*': if (peek() == '/') { ...
class class_name[name] begin[{] method[next, return_type[type[int]], modifier[default], parameter[]] begin[{] local_variable[type[int], c] if[binary_operation[member[.c], ==, literal['/']]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[...
Keyword[int] identifier[next] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[UnterminatedCommentException] { Keyword[int] identifier[c] operator[=] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] literal[String] ope...
protected void updateCompanies(final LoginContext _login, final Person _person) throws EFapsException { if (!JAASSystem.getAllJAASSystems().isEmpty()) { _person.setCompanies(JAASSystem.getAllJAASSystems().iterator().next(), _person.getCompaniesFromDB(nu...
class class_name[name] begin[{] method[updateCompanies, return_type[void], modifier[protected], parameter[_login, _person]] begin[{] if[call[JAASSystem.getAllJAASSystems, parameter[]]] begin[{] call[_person.setCompanies, parameter[call[JAASSystem.getAllJAASSystems, param...
Keyword[protected] Keyword[void] identifier[updateCompanies] operator[SEP] Keyword[final] identifier[LoginContext] identifier[_login] , Keyword[final] identifier[Person] identifier[_person] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[if] operator[SEP] operator[!] identifier[JAASSystem] op...
public static void compareAccumulatorTypes(Object name, @SuppressWarnings("rawtypes") Class<? extends Accumulator> first, @SuppressWarnings("rawtypes") Class<? extends Accumulator> second) throws UnsupportedOperationException { if (first != second) { throw new UnsupportedOperationException("The accumulato...
class class_name[name] begin[{] method[compareAccumulatorTypes, return_type[void], modifier[public static], parameter[name, first, second]] begin[{] if[binary_operation[member[.first], !=, member[.second]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(o...
Keyword[public] Keyword[static] Keyword[void] identifier[compareAccumulatorTypes] operator[SEP] identifier[Object] identifier[name] , annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Accumulator] operator[>] ide...
private static URL makeURLFromFilespec(final String filespec, final String relativePrefix) throws IOException { // make sure the file is absolute & canonical file url File file = new File(decode(filespec)); // if we have a prefix and the file is not abs then prepend if (relativeP...
class class_name[name] begin[{] method[makeURLFromFilespec, return_type[type[URL]], modifier[private static], parameter[filespec, relativePrefix]] begin[{] local_variable[type[File], file] if[binary_operation[binary_operation[member[.relativePrefix], !=, literal[null]], &&, call[file.is...
Keyword[private] Keyword[static] identifier[URL] identifier[makeURLFromFilespec] operator[SEP] Keyword[final] identifier[String] identifier[filespec] , Keyword[final] identifier[String] identifier[relativePrefix] operator[SEP] Keyword[throws] identifier[IOException] { identifier[File] identifier[file] operator[...
public static Integer assign(final Integer value, final Integer defaultValueIfNull) { return value != null ? value : defaultValueIfNull; }
class class_name[name] begin[{] method[assign, return_type[type[Integer]], modifier[public static], parameter[value, defaultValueIfNull]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
Keyword[public] Keyword[static] identifier[Integer] identifier[assign] operator[SEP] Keyword[final] identifier[Integer] identifier[value] , Keyword[final] identifier[Integer] identifier[defaultValueIfNull] operator[SEP] { Keyword[return] identifier[value] operator[!=] Other[null] operator[?] identifier[value] o...
public void setBeginSection(String v) { if (Passage_Type.featOkTst && ((Passage_Type)jcasType).casFeat_beginSection == null) jcasType.jcas.throwFeatMissing("beginSection", "edu.cmu.lti.oaqa.type.retrieval.Passage"); jcasType.ll_cas.ll_setStringValue(addr, ((Passage_Type)jcasType).casFeatCode_beginSection,...
class class_name[name] begin[{] method[setBeginSection, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[member[Passage_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[void] identifier[setBeginSection] operator[SEP] identifier[String] identifier[v] operator[SEP] { Keyword[if] operator[SEP] identifier[Passage_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Passage_Type] operator[SEP] identifier[jcasType] oper...
private void ensureIndexIsUnlocked(String dataDir) { Collection<File> lockFiles = new ArrayList<File>(2); lockFiles.add( new File( CmsFileUtil.addTrailingSeparator(CmsFileUtil.addTrailingSeparator(dataDir) + "index") + "write.lock")); lockFiles.add( new F...
class class_name[name] begin[{] method[ensureIndexIsUnlocked, return_type[void], modifier[private], parameter[dataDir]] begin[{] local_variable[type[Collection], lockFiles] call[lockFiles.add, parameter[ClassCreator(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[BinaryO...
Keyword[private] Keyword[void] identifier[ensureIndexIsUnlocked] operator[SEP] identifier[String] identifier[dataDir] operator[SEP] { identifier[Collection] operator[<] identifier[File] operator[>] identifier[lockFiles] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[File] operator[>] opera...
public void marshall(Edge edge, ProtocolMarshaller protocolMarshaller) { if (edge == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(edge.getReferenceId(), REFERENCEID_BINDING); protocolMa...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[edge, protocolMarshaller]] begin[{] if[binary_operation[member[.edge], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Edge] identifier[edge] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[edge] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier...
@Broadcast(writeEntity = false) @POST @Produces("application/json") public Response broadcast(Message message) { return new Response(message.author, message.message); }
class class_name[name] begin[{] method[broadcast, return_type[type[Response]], modifier[public], parameter[message]] begin[{] return[ClassCreator(arguments=[MemberReference(member=author, postfix_operators=[], prefix_operators=[], qualifier=message, selectors=[]), MemberReference(member=message, postfi...
annotation[@] identifier[Broadcast] operator[SEP] identifier[writeEntity] operator[=] literal[boolean] operator[SEP] annotation[@] identifier[POST] annotation[@] identifier[Produces] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Response] identifier[broadcast] operator[SEP] identifier[Message] ...
public Object getAttribute(File file, String attribute) { String view = getViewName(attribute); String attr = getSingleAttribute(attribute); return getAttribute(file, view, attr); }
class class_name[name] begin[{] method[getAttribute, return_type[type[Object]], modifier[public], parameter[file, attribute]] begin[{] local_variable[type[String], view] local_variable[type[String], attr] return[call[.getAttribute, parameter[member[.file], member[.view], member[.attr]]]...
Keyword[public] identifier[Object] identifier[getAttribute] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[attribute] operator[SEP] { identifier[String] identifier[view] operator[=] identifier[getViewName] operator[SEP] identifier[attribute] operator[SEP] operator[SEP] identifie...
public MODCAInterchangeSetISid createMODCAInterchangeSetISidFromString(EDataType eDataType, String initialValue) { MODCAInterchangeSetISid result = MODCAInterchangeSetISid.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eD...
class class_name[name] begin[{] method[createMODCAInterchangeSetISidFromString, return_type[type[MODCAInterchangeSetISid]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[MODCAInterchangeSetISid], result] if[binary_operation[member[.result], ==, liter...
Keyword[public] identifier[MODCAInterchangeSetISid] identifier[createMODCAInterchangeSetISidFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[MODCAInterchangeSetISid] identifier[result] operator[=] identifier[MODCAInter...
@Override public List<byte[]> hmget(final byte[] key, final byte[]... fields) { checkIsInMultiOrPipeline(); client.hmget(key, fields); return client.getBinaryMultiBulkReply(); }
class class_name[name] begin[{] method[hmget, return_type[type[List]], modifier[public], parameter[key, fields]] begin[{] call[.checkIsInMultiOrPipeline, parameter[]] call[client.hmget, parameter[member[.key], member[.fields]]] return[call[client.getBinaryMultiBulkReply,...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[hmget] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] operator[...] identif...
protected UserTransaction getUserTransaction(boolean injection, Object injectionContext) throws NamingException { final UserTransaction ut = AccessController.doPrivileged(new PrivilegedAction<UserTransaction>() { @Override public UserTransaction run() { return userTra...
class class_name[name] begin[{] method[getUserTransaction, return_type[type[UserTransaction]], modifier[protected], parameter[injection, injectionContext]] begin[{] local_variable[type[UserTransaction], ut] local_variable[type[UserTransactionDecorator], utd] if[binary_operation[...
Keyword[protected] identifier[UserTransaction] identifier[getUserTransaction] operator[SEP] Keyword[boolean] identifier[injection] , identifier[Object] identifier[injectionContext] operator[SEP] Keyword[throws] identifier[NamingException] { Keyword[final] identifier[UserTransaction] identifier[ut] operator[=] i...
protected boolean delete(@NotNull ByteIterable key, @Nullable ByteIterable value) { if (deleteImpl(key, value)) { TreeCursorMutable.notifyCursors(this); return true; } return false; }
class class_name[name] begin[{] method[delete, return_type[type[boolean]], modifier[protected], parameter[key, value]] begin[{] if[call[.deleteImpl, parameter[member[.key], member[.value]]]] begin[{] call[TreeCursorMutable.notifyCursors, parameter[THIS[]]] re...
Keyword[protected] Keyword[boolean] identifier[delete] operator[SEP] annotation[@] identifier[NotNull] identifier[ByteIterable] identifier[key] , annotation[@] identifier[Nullable] identifier[ByteIterable] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteImpl] operator[SEP] identifie...
public void deleteSystemDestination(JsDestinationAddress destAddr) throws SIResourceException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteSystemDestination", new Object[] { destAddr }); BaseDesti...
class class_name[name] begin[{] method[deleteSystemDestination, return_type[void], modifier[public], parameter[destAddr]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, paramet...
Keyword[public] Keyword[void] identifier[deleteSystemDestination] operator[SEP] identifier[JsDestinationAddress] identifier[destAddr] operator[SEP] Keyword[throws] identifier[SIResourceException] , identifier[SINotPossibleInCurrentConfigurationException] { Keyword[if] operator[SEP] identifier[TraceComponent] op...
@Nonnull public CSSImportRule addMediaQuery (@Nonnull final CSSMediaQuery aMediaQuery) { ValueEnforcer.notNull (aMediaQuery, "MediaQuery"); m_aMediaQueries.add (aMediaQuery); return this; }
class class_name[name] begin[{] method[addMediaQuery, return_type[type[CSSImportRule]], modifier[public], parameter[aMediaQuery]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aMediaQuery], literal["MediaQuery"]]] call[m_aMediaQueries.add, parameter[member[.aMediaQuery]...
annotation[@] identifier[Nonnull] Keyword[public] identifier[CSSImportRule] identifier[addMediaQuery] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[CSSMediaQuery] identifier[aMediaQuery] operator[SEP] { identifier[ValueEnforcer] operator[SEP] identifier[notNull] operator[SEP] identifi...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case TypesPackage.JVM_PARAMETERIZED_TYPE_REFERENCE__ARGUMENTS: return arguments != null && !arguments.isEmpty(); case TypesPackage.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE: return type != null; } return super.eIsSet(featureID); ...
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=JVM_PARAMETERIZED_TYPE_REFERENCE__ARGUMENTS, postfix_operators=[], prefix_operators=[], qualifier=TypesPack...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[TypesPackage] operator[SEP] identifier[JVM_PARAMETERIZED_...
public static CloseableHttpResponse proxy(IncomingRequest incomingRequest) throws IOException, HttpErrorPage { MatchedRequest matchedRequest = selectProvider(incomingRequest); return matchedRequest.getDriver().proxy(matchedRequest.getRelativeUri(), incomingRequest); }
class class_name[name] begin[{] method[proxy, return_type[type[CloseableHttpResponse]], modifier[public static], parameter[incomingRequest]] begin[{] local_variable[type[MatchedRequest], matchedRequest] return[call[matchedRequest.getDriver, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CloseableHttpResponse] identifier[proxy] operator[SEP] identifier[IncomingRequest] identifier[incomingRequest] operator[SEP] Keyword[throws] identifier[IOException] , identifier[HttpErrorPage] { identifier[MatchedRequest] identifier[matchedRequest] operator[=] identifi...
public void invoke(String method, Object[] params, IPendingServiceCallback callback) { IPendingServiceCall call = new PendingCall(method, params); if (callback != null) { call.registerCallback(callback); } invoke(call); }
class class_name[name] begin[{] method[invoke, return_type[void], modifier[public], parameter[method, params, callback]] begin[{] local_variable[type[IPendingServiceCall], call] if[binary_operation[member[.callback], !=, literal[null]]] begin[{] call[call.registe...
Keyword[public] Keyword[void] identifier[invoke] operator[SEP] identifier[String] identifier[method] , identifier[Object] operator[SEP] operator[SEP] identifier[params] , identifier[IPendingServiceCallback] identifier[callback] operator[SEP] { identifier[IPendingServiceCall] identifier[call] operator[=] Keywor...
private void _recurse (@Nonnull final Block aRoot, final boolean bListMode) { Block aBlock; Block aList; Line aLine = aRoot.m_aLines; if (bListMode) { aRoot.removeListIndent (m_bUseExtensions); if (m_bUseExtensions && aRoot.m_aLines != null && aRoot.m_aLines.getLineType (m_bUseExtensi...
class class_name[name] begin[{] method[_recurse, return_type[void], modifier[private], parameter[aRoot, bListMode]] begin[{] local_variable[type[Block], aBlock] local_variable[type[Block], aList] local_variable[type[Line], aLine] if[member[.bListMode]] begin[{] ...
Keyword[private] Keyword[void] identifier[_recurse] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Block] identifier[aRoot] , Keyword[final] Keyword[boolean] identifier[bListMode] operator[SEP] { identifier[Block] identifier[aBlock] operator[SEP] identifier[Block] identifier[aList] op...
public static MozuUrl deleteCategoryByIdUrl(Boolean cascadeDelete, Integer categoryId, Boolean forceDelete, Boolean reassignToParent) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/categories/{categoryId}/?cascadeDelete={cascadeDelete}&forceDelete={forceDelete}&reassignToParent={reassignT...
class class_name[name] begin[{] method[deleteCategoryByIdUrl, return_type[type[MozuUrl]], modifier[public static], parameter[cascadeDelete, categoryId, forceDelete, reassignToParent]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["cas...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[deleteCategoryByIdUrl] operator[SEP] identifier[Boolean] identifier[cascadeDelete] , identifier[Integer] identifier[categoryId] , identifier[Boolean] identifier[forceDelete] , identifier[Boolean] identifier[reassignToParent] operator[SEP] { identi...
public OperationFuture<Link> restore(Server server, Group group) { return baseServerResponse( restore(server, groupService.findByRef(group).getId()) ); }
class class_name[name] begin[{] method[restore, return_type[type[OperationFuture]], modifier[public], parameter[server, group]] begin[{] return[call[.baseServerResponse, parameter[call[.restore, parameter[member[.server], call[groupService.findByRef, parameter[member[.group]]]]]]]] end[}] END[}]
Keyword[public] identifier[OperationFuture] operator[<] identifier[Link] operator[>] identifier[restore] operator[SEP] identifier[Server] identifier[server] , identifier[Group] identifier[group] operator[SEP] { Keyword[return] identifier[baseServerResponse] operator[SEP] identifier[restore] operator[SEP] identi...
public void pluginSkipped(int pluginId, String reason) { Plugin plugin = pluginFactory.getPlugin(pluginId); if (plugin == null) { return; } pluginSkipped(plugin, reason); }
class class_name[name] begin[{] method[pluginSkipped, return_type[void], modifier[public], parameter[pluginId, reason]] begin[{] local_variable[type[Plugin], plugin] if[binary_operation[member[.plugin], ==, literal[null]]] begin[{] return[None] else begin[{] None ...
Keyword[public] Keyword[void] identifier[pluginSkipped] operator[SEP] Keyword[int] identifier[pluginId] , identifier[String] identifier[reason] operator[SEP] { identifier[Plugin] identifier[plugin] operator[=] identifier[pluginFactory] operator[SEP] identifier[getPlugin] operator[SEP] identifier[pluginId] opera...
public Map<String, List<String>> buildDepsForAllComponents() { Map<String, List<String>> ret = new HashMap<String, List<String>>(); Iterator<CmsSetupComponent> itComponents = CmsCollectionsGenericWrapper.<CmsSetupComponent> list( m_components.elementList()).iterator(); while (itCom...
class class_name[name] begin[{] method[buildDepsForAllComponents, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], ret] local_variable[type[Iterator], itComponents] while[call[itComponents.hasNext, parameter[]]] begin[{] local...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[buildDepsForAllComponents] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[...
private String write(String logDir) throws IOException, ExecutionException, InterruptedException { final File file = new File(logDir, "trace_" + System.currentTimeMillis() + ".json.gz"); if (file.exists()) { throw new IOException("Trace file " + file.getAbsolutePath() + " already exists"); ...
class class_name[name] begin[{] method[write, return_type[type[String]], modifier[private], parameter[logDir]] begin[{] local_variable[type[File], file] if[call[file.exists, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Bin...
Keyword[private] identifier[String] identifier[write] operator[SEP] identifier[String] identifier[logDir] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ExecutionException] , identifier[InterruptedException] { Keyword[final] identifier[File] identifier[file] operator[=] Keyword[new] identif...
public static double truncate(double value, int places) { if (places < 0) { throw new IllegalArgumentException(); } long factor = (long) java.lang.Math.pow(10, places); value = value * factor; long tmp = (long) value; return (double) tmp / factor; }
class class_name[name] begin[{] method[truncate, return_type[type[double]], modifier[public static], parameter[value, places]] begin[{] if[binary_operation[member[.places], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_argu...
Keyword[public] Keyword[static] Keyword[double] identifier[truncate] operator[SEP] Keyword[double] identifier[value] , Keyword[int] identifier[places] operator[SEP] { Keyword[if] operator[SEP] identifier[places] operator[<] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgume...
public void registerBeanFactory(String theName, String groupName, final Class beanClass) { getProxyBuilder().registerFactory(theName, new AbstractFactory() { public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map properties) thro...
class class_name[name] begin[{] method[registerBeanFactory, return_type[void], modifier[public], parameter[theName, groupName, beanClass]] begin[{] call[.getProxyBuilder, parameter[]] call[.getRegistrationGroup, parameter[member[.groupName]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[registerBeanFactory] operator[SEP] identifier[String] identifier[theName] , identifier[String] identifier[groupName] , Keyword[final] identifier[Class] identifier[beanClass] operator[SEP] { identifier[getProxyBuilder] operator[SEP] operator[SEP] operator[SEP] identifier...
private static void inlineImgNodes(final Document doc, final String basePath) { // handle null inputs if (doc == null) return; final String fixedBasePath = basePath == null ? "" : basePath; final List<Node> imageNodes = XMLUtilities.getChildNodes(doc.getDocumentElement(), "img"); ...
class class_name[name] begin[{] method[inlineImgNodes, return_type[void], modifier[private static], parameter[doc, basePath]] begin[{] if[binary_operation[member[.doc], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[String], fixed...
Keyword[private] Keyword[static] Keyword[void] identifier[inlineImgNodes] operator[SEP] Keyword[final] identifier[Document] identifier[doc] , Keyword[final] identifier[String] identifier[basePath] operator[SEP] { Keyword[if] operator[SEP] identifier[doc] operator[==] Other[null] operator[SEP] Keyword[return] op...
@Deprecated public static URL convertRequestToUrl(Request<?> request, boolean removeLeadingSlashInResourcePath) { return convertRequestToUrl(request, removeLeadingSlashInResourcePath, true); }
class class_name[name] begin[{] method[convertRequestToUrl, return_type[type[URL]], modifier[public static], parameter[request, removeLeadingSlashInResourcePath]] begin[{] return[call[.convertRequestToUrl, parameter[member[.request], member[.removeLeadingSlashInResourcePath], literal[true]]]] end[}...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[URL] identifier[convertRequestToUrl] operator[SEP] identifier[Request] operator[<] operator[?] operator[>] identifier[request] , Keyword[boolean] identifier[removeLeadingSlashInResourcePath] operator[SEP] { Keyword[return] identifie...
@Override public boolean process(WeaveEnvironment environment, Scanner scanner) { // interested in all classes: final ScanResult scanResult = scanner.scan(new ScanRequest()); final Worker w = new Worker(environment); boolean result = false; for (WeavableClass<?> weavableCl...
class class_name[name] begin[{] method[process, return_type[type[boolean]], modifier[public], parameter[environment, scanner]] begin[{] local_variable[type[ScanResult], scanResult] local_variable[type[Worker], w] local_variable[type[boolean], result] ForStatement(body=BlockState...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[process] operator[SEP] identifier[WeaveEnvironment] identifier[environment] , identifier[Scanner] identifier[scanner] operator[SEP] { Keyword[final] identifier[ScanResult] identifier[scanResult] operator[=] identifier[scanner] operat...
public boolean toBoolean(String name, boolean defaultValue) { String property = getProperties().getProperty(name); return property != null ? Boolean.parseBoolean(property) : defaultValue; }
class class_name[name] begin[{] method[toBoolean, return_type[type[boolean]], modifier[public], parameter[name, defaultValue]] begin[{] local_variable[type[String], property] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=property, postfix_operators=[], prefi...
Keyword[public] Keyword[boolean] identifier[toBoolean] operator[SEP] identifier[String] identifier[name] , Keyword[boolean] identifier[defaultValue] operator[SEP] { identifier[String] identifier[property] operator[=] identifier[getProperties] operator[SEP] operator[SEP] operator[SEP] identifier[getProperty] ope...
public void serverChanged(HadoopServer location, int type) { Display.getDefault().syncExec(new Runnable() { public void run() { ServerView.this.viewer.refresh(); } }); }
class class_name[name] begin[{] method[serverChanged, return_type[void], modifier[public], parameter[location, type]] begin[{] call[Display.getDefault, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[serverChanged] operator[SEP] identifier[HadoopServer] identifier[location] , Keyword[int] identifier[type] operator[SEP] { identifier[Display] operator[SEP] identifier[getDefault] operator[SEP] operator[SEP] operator[SEP] identifier[syncExec] operator[SEP] Keyword[new] i...
@Override public Set<Entry<String, GroovyRunner>> entrySet() { Map<String, GroovyRunner> map = getMap(); readLock.lock(); try { if (map.isEmpty()) { return Collections.emptySet(); } return Collections.unmodifiableSet(new LinkedHashSet<>(map...
class class_name[name] begin[{] method[entrySet, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[Map], map] call[readLock.lock, parameter[]] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_opera...
annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] identifier[Entry] operator[<] identifier[String] , identifier[GroovyRunner] operator[>] operator[>] identifier[entrySet] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[GroovyRunner] operato...
public static void setFieldValue(Object obj, ReflectedInfo info, Object value) throws Siren4JException { if (obj == null) { throw new IllegalArgumentException("obj cannot be null"); } if (info == null) { throw new IllegalArgumentException("info cannot be null"); ...
class class_name[name] begin[{] method[setFieldValue, return_type[void], modifier[public static], parameter[obj, info, value]] begin[{] if[binary_operation[member[.obj], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pref...
Keyword[public] Keyword[static] Keyword[void] identifier[setFieldValue] operator[SEP] identifier[Object] identifier[obj] , identifier[ReflectedInfo] identifier[info] , identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[Siren4JException] { Keyword[if] operator[SEP] identifier[obj] ope...
public int submitFilePathOrClasspath( String filePathOrResourceClasspath) { return submitStream(JMOptional .getOptional(JMFiles.readLines(filePathOrResourceClasspath)) .orElseGet(() -> JMResources .readLines(filePathOrResourceClasspath)).stream...
class class_name[name] begin[{] method[submitFilePathOrClasspath, return_type[type[int]], modifier[public], parameter[filePathOrResourceClasspath]] begin[{] return[call[.submitStream, parameter[call[JMOptional.getOptional, parameter[call[JMFiles.readLines, parameter[member[.filePathOrResourceClasspath]...
Keyword[public] Keyword[int] identifier[submitFilePathOrClasspath] operator[SEP] identifier[String] identifier[filePathOrResourceClasspath] operator[SEP] { Keyword[return] identifier[submitStream] operator[SEP] identifier[JMOptional] operator[SEP] identifier[getOptional] operator[SEP] identifier[JMFiles] operato...
@Override public String toJSONString() { final JSONObject object = toJSONObject(); if (null != object) { return object.toString(); } return null; }
class class_name[name] begin[{] method[toJSONString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[JSONObject], object] if[binary_operation[literal[null], !=, member[.object]]] begin[{] return[call[object.toString, parameter[]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[toJSONString] operator[SEP] operator[SEP] { Keyword[final] identifier[JSONObject] identifier[object] operator[=] identifier[toJSONObject] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[!=] i...
@Override public CreateMatchmakingRuleSetResult createMatchmakingRuleSet(CreateMatchmakingRuleSetRequest request) { request = beforeClientExecution(request); return executeCreateMatchmakingRuleSet(request); }
class class_name[name] begin[{] method[createMatchmakingRuleSet, return_type[type[CreateMatchmakingRuleSetResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateMatchmakingRul...
annotation[@] identifier[Override] Keyword[public] identifier[CreateMatchmakingRuleSetResult] identifier[createMatchmakingRuleSet] operator[SEP] identifier[CreateMatchmakingRuleSetRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifi...
@Override public <R> R notSupported(final SQLSupplier<R> supplier) { return transactionManager.notSupported(supplier); }
class class_name[name] begin[{] method[notSupported, return_type[type[R]], modifier[public], parameter[supplier]] begin[{] return[call[transactionManager.notSupported, parameter[member[.supplier]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[R] operator[>] identifier[R] identifier[notSupported] operator[SEP] Keyword[final] identifier[SQLSupplier] operator[<] identifier[R] operator[>] identifier[supplier] operator[SEP] { Keyword[return] identifier[transactionManager] operator[S...
public Output compile(Context context) throws CompilationException { Objects.requireNonNull(context, "Parameter context must not be null"); if (context instanceof FileContext) { return compile((FileContext) context); } if (context instanceof StringContext) { return compile((StringContext) ...
class class_name[name] begin[{] method[compile, return_type[type[Output]], modifier[public], parameter[context]] begin[{] call[Objects.requireNonNull, parameter[member[.context], literal["Parameter context must not be null"]]] if[binary_operation[member[.context], instanceof, ty...
Keyword[public] identifier[Output] identifier[compile] operator[SEP] identifier[Context] identifier[context] operator[SEP] Keyword[throws] identifier[CompilationException] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[context] , literal[String] operator[SEP] operator[SE...
private boolean isSupportedOnNode(Class<? extends HttpServlet> servlet) { LOGGER.entering(); RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(CONNECTION_TIMEOUT) .setSocketTimeout(CONNECTION_TIMEOUT).build(); CloseableHttpClient client = HttpClientBuilder....
class class_name[name] begin[{] method[isSupportedOnNode, return_type[type[boolean]], modifier[private], parameter[servlet]] begin[{] call[LOGGER.entering, parameter[]] local_variable[type[RequestConfig], requestConfig] local_variable[type[CloseableHttpClient], client] l...
Keyword[private] Keyword[boolean] identifier[isSupportedOnNode] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[HttpServlet] operator[>] identifier[servlet] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[entering] operator[SEP] operator[SEP] operator[SEP] identifi...
public static CountryList getCountries(Context context) { if (mCountries != null) { return mCountries; } mCountries = new CountryList(); try { JSONArray countries = new JSONArray(getJsonFromRaw(context, R.raw.countries)); for (int i = 0; i < countries....
class class_name[name] begin[{] method[getCountries, return_type[type[CountryList]], modifier[public static], parameter[context]] begin[{] if[binary_operation[member[.mCountries], !=, literal[null]]] begin[{] return[member[.mCountries]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[CountryList] identifier[getCountries] operator[SEP] identifier[Context] identifier[context] operator[SEP] { Keyword[if] operator[SEP] identifier[mCountries] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[mCountries] operator[SEP] }...
public void marshall(GetDeploymentsRequest getDeploymentsRequest, ProtocolMarshaller protocolMarshaller) { if (getDeploymentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getDeploymentsRe...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getDeploymentsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getDeploymentsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetDeploymentsRequest] identifier[getDeploymentsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getDeploymentsRequest] operator[==] Other[null] operator[SEP] ...
@Override protected void _predict(Dataframe newData) { //This method uses similar approach to the training but the most important //difference is that we do not wish to modify the original training params. //as a result we need to modify the code to use additional temporary //counts ...
class class_name[name] begin[{] method[_predict, return_type[void], modifier[protected], parameter[newData]] begin[{] local_variable[type[ModelParameters], modelParameters] local_variable[type[TrainingParameters], trainingParameters] local_variable[type[int], d] local_variable[t...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[_predict] operator[SEP] identifier[Dataframe] identifier[newData] operator[SEP] { identifier[ModelParameters] identifier[modelParameters] operator[=] identifier[knowledgeBase] operator[SEP] identifier[getModelParameters] operator[SEP]...
protected void startQueue() { if (executor == null) { logger.debug("Starting the receiving thread pool."); executor = new ThreadPoolExecutor( numberOfWorkerThreads, numberOfWorkerThreads, threadKeepAliveTime, TimeUnit.SECONDS, ...
class class_name[name] begin[{] method[startQueue, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[member[.executor], ==, literal[null]]] begin[{] call[logger.debug, parameter[literal["Starting the receiving thread pool."]]] ...
Keyword[protected] Keyword[void] identifier[startQueue] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[executor] operator[==] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[executor...
@Deprecated public File getClassesDir() { final FileCollection col = getClassesDirs(); return (col == null) ? null : col.getSingleFile(); }
class class_name[name] begin[{] method[getClassesDir, return_type[type[File]], modifier[public], parameter[]] begin[{] local_variable[type[FileCollection], col] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=col, postfix_operators=[], prefix_operators=[], qua...
annotation[@] identifier[Deprecated] Keyword[public] identifier[File] identifier[getClassesDir] operator[SEP] operator[SEP] { Keyword[final] identifier[FileCollection] identifier[col] operator[=] identifier[getClassesDirs] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[col] op...
protected String determineDefaultSegmentValue(Properties params) { boolean preferSegmentPerEntity = ConfigurationHelper.getBoolean( CONFIG_PREFER_SEGMENT_PER_ENTITY, params, false ); String defaultToUse = preferSegmentPerEntity ? params.getProperty( PersistentIdentifierGenerator.TABLE ) : DEF_SEGMENT_VALUE; log.i...
class class_name[name] begin[{] method[determineDefaultSegmentValue, return_type[type[String]], modifier[protected], parameter[params]] begin[{] local_variable[type[boolean], preferSegmentPerEntity] local_variable[type[String], defaultToUse] call[log.infof, parameter[literal["ex...
Keyword[protected] identifier[String] identifier[determineDefaultSegmentValue] operator[SEP] identifier[Properties] identifier[params] operator[SEP] { Keyword[boolean] identifier[preferSegmentPerEntity] operator[=] identifier[ConfigurationHelper] operator[SEP] identifier[getBoolean] operator[SEP] identifier[CONF...
protected void print(final Level level, final String message, final Throwable throwable) { if (!isEnabled(level)) { return; } StringBuilder msg = new StringBuilder() .append(slf.getElapsedTime()).append(' ').append('[') .append(level).append(']').append(' ') .append(getCallerClass()).append(' ').appe...
class class_name[name] begin[{] method[print, return_type[void], modifier[protected], parameter[level, message, throwable]] begin[{] if[call[.isEnabled, parameter[member[.level]]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[StringBuil...
Keyword[protected] Keyword[void] identifier[print] operator[SEP] Keyword[final] identifier[Level] identifier[level] , Keyword[final] identifier[String] identifier[message] , Keyword[final] identifier[Throwable] identifier[throwable] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isEnabled] op...
public static boolean fixPSQ(Document doc) { Element datasources = XMLConfigWebFactory.getChildByName(doc.getDocumentElement(), "data-sources", false, true); if (datasources != null && datasources.hasAttribute("preserve-single-quote")) { Boolean b = Caster.toBoolean(datasources.getAttribute("preserve-single-quo...
class class_name[name] begin[{] method[fixPSQ, return_type[type[boolean]], modifier[public static], parameter[doc]] begin[{] local_variable[type[Element], datasources] if[binary_operation[binary_operation[member[.datasources], !=, literal[null]], &&, call[datasources.hasAttribute, param...
Keyword[public] Keyword[static] Keyword[boolean] identifier[fixPSQ] operator[SEP] identifier[Document] identifier[doc] operator[SEP] { identifier[Element] identifier[datasources] operator[=] identifier[XMLConfigWebFactory] operator[SEP] identifier[getChildByName] operator[SEP] identifier[doc] operator[SEP] ident...
void appendAttribute(int namespaceIndex, int localNameIndex, int prefixIndex, boolean isID, int m_char_current_start, int contentLength) { // %TBD% isID is not currently honored. // W0 High: Namespace Low: Node Type int w0 = ATTRIBUTE_NODE | namespaceInde...
class class_name[name] begin[{] method[appendAttribute, return_type[void], modifier[default], parameter[namespaceIndex, localNameIndex, prefixIndex, isID, m_char_current_start, contentLength]] begin[{] local_variable[type[int], w0] local_variable[type[int], w1] local_variable[type[int],...
Keyword[void] identifier[appendAttribute] operator[SEP] Keyword[int] identifier[namespaceIndex] , Keyword[int] identifier[localNameIndex] , Keyword[int] identifier[prefixIndex] , Keyword[boolean] identifier[isID] , Keyword[int] identifier[m_char_current_start] , Keyword[int] identifier[contentLength] operator[SEP]...
public static File getClasspathFile(String filename, ClassLoader classLoader) { if(filename == null) { throw LOG.nullParameter("filename"); } URL fileUrl = null; if (classLoader != null) { fileUrl = classLoader.getResource(filename); } if (fileUrl == null) { // Try the curren...
class class_name[name] begin[{] method[getClasspathFile, return_type[type[File]], modifier[public static], parameter[filename, classLoader]] begin[{] if[binary_operation[member[.filename], ==, literal[null]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[Literal(pos...
Keyword[public] Keyword[static] identifier[File] identifier[getClasspathFile] operator[SEP] identifier[String] identifier[filename] , identifier[ClassLoader] identifier[classLoader] operator[SEP] { Keyword[if] operator[SEP] identifier[filename] operator[==] Other[null] operator[SEP] { Keyword[throw] ...
@Override public void sendRedirect(int statusCode, String url) throws IOException { getWrapped().sendRedirect(statusCode, url); }
class class_name[name] begin[{] method[sendRedirect, return_type[void], modifier[public], parameter[statusCode, url]] begin[{] call[.getWrapped, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[sendRedirect] operator[SEP] Keyword[int] identifier[statusCode] , identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] { identifier[getWrapped] operator[SEP] operator[SEP] operator[SEP] identifier[sen...
int decode( byte[] buffer, int bufferIndex ) { int start = headerStart = bufferIndex; bufferIndex += readHeaderWireFormat( buffer, bufferIndex ); bufferIndex += readAndXWireFormat( buffer, bufferIndex ); length = bufferIndex - start; return length; }
class class_name[name] begin[{] method[decode, return_type[type[int]], modifier[default], parameter[buffer, bufferIndex]] begin[{] local_variable[type[int], start] assign[member[.bufferIndex], call[.readHeaderWireFormat, parameter[member[.buffer], member[.bufferIndex]]]] ...
Keyword[int] identifier[decode] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[bufferIndex] operator[SEP] { Keyword[int] identifier[start] operator[=] identifier[headerStart] operator[=] identifier[bufferIndex] operator[SEP] identifier[bufferIndex] operator[...
public static <T> OptionalKind<T> narrow(final Higher<optional, T> future) { return (OptionalKind<T>)future; }
class class_name[name] begin[{] method[narrow, return_type[type[OptionalKind]], modifier[public static], parameter[future]] begin[{] return[Cast(expression=MemberReference(member=future, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pat...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[OptionalKind] operator[<] identifier[T] operator[>] identifier[narrow] operator[SEP] Keyword[final] identifier[Higher] operator[<] identifier[optional] , identifier[T] operator[>] identifier[future] operator[SEP] { Keyword[return] ...
public List<Entity> pageForEntityList(Entity where, Page page) throws SQLException { return page(where, page, EntityListHandler.create()); }
class class_name[name] begin[{] method[pageForEntityList, return_type[type[List]], modifier[public], parameter[where, page]] begin[{] return[call[.page, parameter[member[.where], member[.page], call[EntityListHandler.create, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Entity] operator[>] identifier[pageForEntityList] operator[SEP] identifier[Entity] identifier[where] , identifier[Page] identifier[page] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[return] identifier[page] operator[SEP] identifier[wher...
protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) { getButtonPainter(c).doPaint(g, c, width, height, extendedCacheKeys); }
class class_name[name] begin[{] method[doPaint, return_type[void], modifier[protected], parameter[g, c, width, height, extendedCacheKeys]] begin[{] call[.getButtonPainter, parameter[member[.c]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[doPaint] operator[SEP] identifier[Graphics2D] identifier[g] , identifier[JComponent] identifier[c] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[Object] operator[SEP] operator[SEP] identifier[extendedCacheKeys] operator[SEP] { iden...
public static Type resolveRawGeneric(final TypeVariable variable, final LinkedHashMap<String, Type> generics) { final Type res; if (variable.getBounds().length > 1) { // case: T extends A & B --> ? extends A & B final List<Type> types = n...
class class_name[name] begin[{] method[resolveRawGeneric, return_type[type[Type]], modifier[public static], parameter[variable, generics]] begin[{] local_variable[type[Type], res] if[binary_operation[call[variable.getBounds, parameter[]], >, literal[1]]] begin[{] local_varia...
Keyword[public] Keyword[static] identifier[Type] identifier[resolveRawGeneric] operator[SEP] Keyword[final] identifier[TypeVariable] identifier[variable] , Keyword[final] identifier[LinkedHashMap] operator[<] identifier[String] , identifier[Type] operator[>] identifier[generics] operator[SEP] { Keyword[final] ...
public Range intersectionWithTouch(Range other) { if (!intersectsWithOrTouches(other)) return null; return new Range(Math.max(lower, other.lower), Math.min(upper, other.upper), reversed && other.reversed); }
class class_name[name] begin[{] method[intersectionWithTouch, return_type[type[Range]], modifier[public], parameter[other]] begin[{] if[call[.intersectsWithOrTouches, parameter[member[.other]]]] begin[{] return[literal[null]] else begin[{] None end[}] return[ClassCreator...
Keyword[public] identifier[Range] identifier[intersectionWithTouch] operator[SEP] identifier[Range] identifier[other] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[intersectsWithOrTouches] operator[SEP] identifier[other] operator[SEP] operator[SEP] Keyword[return] Other[null] operator[SEP] Key...
public static ImmutableList<JClassType> filterSubtypesForSerialization( TreeLogger logger, RebindConfiguration configuration, JClassType type ) { boolean filterOnlySupportedType = isObjectOrSerializable( type ); ImmutableList.B...
class class_name[name] begin[{] method[filterSubtypesForSerialization, return_type[type[ImmutableList]], modifier[public static], parameter[logger, configuration, type]] begin[{] local_variable[type[boolean], filterOnlySupportedType] local_variable[type[ImmutableList], builder] ...
Keyword[public] Keyword[static] identifier[ImmutableList] operator[<] identifier[JClassType] operator[>] identifier[filterSubtypesForSerialization] operator[SEP] identifier[TreeLogger] identifier[logger] , identifier[RebindConfiguration] identifier[configuration] , identifier[JClassType] identifier[type] operator[SEP...
public boolean accept(XVisitor visitor) { /* * Check whether the visitor may run. */ if (visitor.precondition()) { /* * Yes, it may. Now initialize. */ visitor.init(this); /* * First call. */ visitor.visitLogPre(this); /* * Visit the extensions. */ for (XExtension ext...
class class_name[name] begin[{] method[accept, return_type[type[boolean]], modifier[public], parameter[visitor]] begin[{] if[call[visitor.precondition, parameter[]]] begin[{] call[visitor.init, parameter[THIS[]]] call[visitor.visitLogPre, paramete...
Keyword[public] Keyword[boolean] identifier[accept] operator[SEP] identifier[XVisitor] identifier[visitor] operator[SEP] { Keyword[if] operator[SEP] identifier[visitor] operator[SEP] identifier[precondition] operator[SEP] operator[SEP] operator[SEP] { identifier[visitor] operator[SEP] identifier[init]...
public void addControlDependency(SDVariable controlDependency){ String cdN = controlDependency.getVarName(); String n = this.getVarName(); Variable v = sameDiff.getVariables().get(n); if(v.getControlDeps() == null) v.setControlDeps(new ArrayList<String>()); if(!v.getC...
class class_name[name] begin[{] method[addControlDependency, return_type[void], modifier[public], parameter[controlDependency]] begin[{] local_variable[type[String], cdN] local_variable[type[String], n] local_variable[type[Variable], v] if[binary_operation[call[v.getCont...
Keyword[public] Keyword[void] identifier[addControlDependency] operator[SEP] identifier[SDVariable] identifier[controlDependency] operator[SEP] { identifier[String] identifier[cdN] operator[=] identifier[controlDependency] operator[SEP] identifier[getVarName] operator[SEP] operator[SEP] operator[SEP] identifier[...
public static Print print(final String... _oid) { return (Print) org.efaps.eql2.EQL2.print(_oid); }
class class_name[name] begin[{] method[print, return_type[type[Print]], modifier[public static], parameter[_oid]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=_oid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=print, postfix_operato...
Keyword[public] Keyword[static] identifier[Print] identifier[print] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[_oid] operator[SEP] { Keyword[return] operator[SEP] identifier[Print] operator[SEP] identifier[org] operator[SEP] identifier[efaps] operator[SEP] identifier[eql2] operator[...
@GET @Path("/typedefs/headers") @Produces(Servlets.JSON_MEDIA_TYPE) public List<AtlasTypeDefHeader> getTypeDefHeaders(@Context HttpServletRequest httpServletRequest) throws AtlasBaseException { SearchFilter searchFilter = getSearchFilter(httpServletRequest); AtlasTypesDef searchTypesDef = t...
class class_name[name] begin[{] method[getTypeDefHeaders, return_type[type[List]], modifier[public], parameter[httpServletRequest]] begin[{] local_variable[type[SearchFilter], searchFilter] local_variable[type[AtlasTypesDef], searchTypesDef] return[call[AtlasTypeUtil.toTypeDefHeader, pa...
annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Produces] operator[SEP] identifier[Servlets] operator[SEP] identifier[JSON_MEDIA_TYPE] operator[SEP] Keyword[public] identifier[List] operator[<] identifier[AtlasTypeDefHeader] operator[>] i...
@BetaApi public final HttpsHealthCheck2 getHttpsHealthCheck(String httpsHealthCheck) { GetHttpsHealthCheckHttpRequest request = GetHttpsHealthCheckHttpRequest.newBuilder().setHttpsHealthCheck(httpsHealthCheck).build(); return getHttpsHealthCheck(request); }
class class_name[name] begin[{] method[getHttpsHealthCheck, return_type[type[HttpsHealthCheck2]], modifier[final public], parameter[httpsHealthCheck]] begin[{] local_variable[type[GetHttpsHealthCheckHttpRequest], request] return[call[.getHttpsHealthCheck, parameter[member[.request]]]] end[}...
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[HttpsHealthCheck2] identifier[getHttpsHealthCheck] operator[SEP] identifier[String] identifier[httpsHealthCheck] operator[SEP] { identifier[GetHttpsHealthCheckHttpRequest] identifier[request] operator[=] identifier[GetHttpsHealthCheckHtt...
public void setSubjects(Set<String> subjects) { Validate.notNull(subjects); if (subjects.isEmpty()) { return; } Validate.noNullElements(subjects); setProperty(SOABaseProperty.SUBJECTS, ArrayUtils.toString(encapsulateValues(subjects))); }
class class_name[name] begin[{] method[setSubjects, return_type[void], modifier[public], parameter[subjects]] begin[{] call[Validate.notNull, parameter[member[.subjects]]] if[call[subjects.isEmpty, parameter[]]] begin[{] return[None] else begin[{] None ...
Keyword[public] Keyword[void] identifier[setSubjects] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[subjects] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[subjects] operator[SEP] operator[SEP] Keyword[if] operator[SEP] ident...
public ArrayList<String> getDiscreteRowValues(String row) throws Exception { HashMap<String, String> hashMapValues = new HashMap<String, String>(); ArrayList<String> values = new ArrayList<String>(); for (String column : getColumns()) { String value = getCell(row, column); if (!hashMapValues.containsKey(val...
class class_name[name] begin[{] method[getDiscreteRowValues, return_type[type[ArrayList]], modifier[public], parameter[row]] begin[{] local_variable[type[HashMap], hashMapValues] local_variable[type[ArrayList], values] ForStatement(body=BlockStatement(label=None, statements=[LocalVariab...
Keyword[public] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[getDiscreteRowValues] operator[SEP] identifier[String] identifier[row] operator[SEP] Keyword[throws] identifier[Exception] { identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[...
protected void resetNextIndex(RaftMemberContext member, AppendResponse response) { long nextIndex = response.lastLogIndex() + 1; if (member.getLogReader().getNextIndex() != nextIndex) { member.getLogReader().reset(nextIndex); log.trace("Reset next index for {} to {}", member, nextIndex); } }
class class_name[name] begin[{] method[resetNextIndex, return_type[void], modifier[protected], parameter[member, response]] begin[{] local_variable[type[long], nextIndex] if[binary_operation[call[member.getLogReader, parameter[]], !=, member[.nextIndex]]] begin[{] ...
Keyword[protected] Keyword[void] identifier[resetNextIndex] operator[SEP] identifier[RaftMemberContext] identifier[member] , identifier[AppendResponse] identifier[response] operator[SEP] { Keyword[long] identifier[nextIndex] operator[=] identifier[response] operator[SEP] identifier[lastLogIndex] operator[SEP] o...
public void readLocked (@Nonnull final Runnable aRunnable) { readLock ().lock (); try { aRunnable.run (); } finally { readLock ().unlock (); } }
class class_name[name] begin[{] method[readLocked, return_type[void], modifier[public], parameter[aRunnable]] begin[{] call[.readLock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=run, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] Keyword[void] identifier[readLocked] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Runnable] identifier[aRunnable] operator[SEP] { identifier[readLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { ...
public static String upperWord(CharSequence cs, char c) { StringBuilder sb = new StringBuilder(); int len = cs.length(); for (int i = 0; i < len; i++) { char ch = cs.charAt(i); if (ch == c) { do { i++; if (i ...
class class_name[name] begin[{] method[upperWord, return_type[type[String]], modifier[public static], parameter[cs, c]] begin[{] local_variable[type[StringBuilder], sb] local_variable[type[int], len] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annot...
Keyword[public] Keyword[static] identifier[String] identifier[upperWord] operator[SEP] identifier[CharSequence] identifier[cs] , Keyword[char] identifier[c] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keywo...
public void printClusterCenter(Writer stream) throws IOException { stream.write(String.valueOf(this.numPoints)); for (int j = 0; j < this.sumPoints.length; j++) { stream.write(' '); stream.write(String.valueOf(this.sumPoints[j] / this.numPoints)); } stream.write(System.getProperty("line.separator")); }
class class_name[name] begin[{] method[printClusterCenter, return_type[void], modifier[public], parameter[stream]] begin[{] call[stream.write, parameter[call[String.valueOf, parameter[THIS[member[None.numPoints]]]]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpr...
Keyword[public] Keyword[void] identifier[printClusterCenter] operator[SEP] identifier[Writer] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[stream] operator[SEP] identifier[write] operator[SEP] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] Keyword[this...
public EClass getGSFLW() { if (gsflwEClass == null) { gsflwEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(475); } return gsflwEClass; }
class class_name[name] begin[{] method[getGSFLW, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.gsflwEClass], ==, literal[null]]] begin[{] assign[member[.gsflwEClass], Cast(expression=MethodInvocation(arguments=[MemberRefer...
Keyword[public] identifier[EClass] identifier[getGSFLW] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[gsflwEClass] operator[==] Other[null] operator[SEP] { identifier[gsflwEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identif...
public LiveReload register(final Path path, final String... includes) { if (Files.exists(path)) { paths.add(new Object[]{path, Arrays.asList(includes)}); } return this; }
class class_name[name] begin[{] method[register, return_type[type[LiveReload]], modifier[public], parameter[path, includes]] begin[{] if[call[Files.exists, parameter[member[.path]]]] begin[{] call[paths.add, parameter[ArrayCreator(dimensions=[None], initializer=ArrayInit...
Keyword[public] identifier[LiveReload] identifier[register] operator[SEP] Keyword[final] identifier[Path] identifier[path] , Keyword[final] identifier[String] operator[...] identifier[includes] operator[SEP] { Keyword[if] operator[SEP] identifier[Files] operator[SEP] identifier[exists] operator[SEP] identifier[...
public TreeBuilder<T> convert(ContentConverter<T> converter, PathSelector selector) { return TreeBuilder.<T>builder(new ConverterTree<T>(build(), converter, selector)); }
class class_name[name] begin[{] method[convert, return_type[type[TreeBuilder]], modifier[public], parameter[converter, selector]] begin[{] return[call[.TreeBuilder, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=build, postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[public] identifier[TreeBuilder] operator[<] identifier[T] operator[>] identifier[convert] operator[SEP] identifier[ContentConverter] operator[<] identifier[T] operator[>] identifier[converter] , identifier[PathSelector] identifier[selector] operator[SEP] { Keyword[return] identifier[TreeBuilder] operato...
@Override public CommerceAddressRestriction fetchByC_C_First(long classNameId, long classPK, OrderByComparator<CommerceAddressRestriction> orderByComparator) { List<CommerceAddressRestriction> list = findByC_C(classNameId, classPK, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); ...
class class_name[name] begin[{] method[fetchByC_C_First, return_type[type[CommerceAddressRestriction]], modifier[public], parameter[classNameId, classPK, orderByComparator]] begin[{] local_variable[type[List], list] if[call[list.isEmpty, parameter[]]] begin[{] return[call[li...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceAddressRestriction] identifier[fetchByC_C_First] operator[SEP] Keyword[long] identifier[classNameId] , Keyword[long] identifier[classPK] , identifier[OrderByComparator] operator[<] identifier[CommerceAddressRestriction] operator[>] identifier[order...
public Stream<PlainDate> stream(Duration<CalendarUnit> duration) { if (this.isEmpty() && duration.isPositive()) { return Stream.empty(); } DateInterval interval = this.toCanonical(); PlainDate start = interval.getStartAsCalendarDate(); PlainDate end = interval.getEn...
class class_name[name] begin[{] method[stream, return_type[type[Stream]], modifier[public], parameter[duration]] begin[{] if[binary_operation[THIS[call[None.isEmpty, parameter[]]], &&, call[duration.isPositive, parameter[]]]] begin[{] return[call[Stream.empty, parameter[]]] ...
Keyword[public] identifier[Stream] operator[<] identifier[PlainDate] operator[>] identifier[stream] operator[SEP] identifier[Duration] operator[<] identifier[CalendarUnit] operator[>] identifier[duration] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isEmpty] operator[SEP] oper...
@Override public void commit(Xid xid, boolean onePhase) throws XAException { if (tc.isEntryEnabled()) { Tr.entry(this, tc, "commit"); } /* * * if (this.xid != null && !xid.equals(this.xid)) { * final XAException e = new XAException(XAException.XAER_NO...
class class_name[name] begin[{] method[commit, return_type[void], modifier[public], parameter[xid, onePhase]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[THIS[], member[.tc], literal["commit"]]] else begin[{] None e...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[commit] operator[SEP] identifier[Xid] identifier[xid] , Keyword[boolean] identifier[onePhase] operator[SEP] Keyword[throws] identifier[XAException] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] oper...
public JobDetail build() { JobDetailImpl job = new JobDetailImpl(); job.setJobClass(jobClass); job.setDescription(description); if (key == null) { key = UUID.randomUUID().toString(); } job.setName(key); job.setIsConcurrencyAllowed(isConcurrencyAllowed); if (!jobDataMap.isEmpty()...
class class_name[name] begin[{] method[build, return_type[type[JobDetail]], modifier[public], parameter[]] begin[{] local_variable[type[JobDetailImpl], job] call[job.setJobClass, parameter[member[.jobClass]]] call[job.setDescription, parameter[member[.description]]] ...
Keyword[public] identifier[JobDetail] identifier[build] operator[SEP] operator[SEP] { identifier[JobDetailImpl] identifier[job] operator[=] Keyword[new] identifier[JobDetailImpl] operator[SEP] operator[SEP] operator[SEP] identifier[job] operator[SEP] identifier[setJobClass] operator[SEP] identifier[jobClass] ope...