code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public boolean add(Byte value) { if (value == null) { stateList.add(Type.NULL); } else { stateList.add(Type.LONG); } return super.add(value); }
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] call[stateList.add, parameter[member[Type.NULL]]] else begin[{] ...
Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[Byte] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { identifier[stateList] operator[SEP] identifier[add] operator[SEP] identifier[Type] operator[SEP] identi...
private static List<SslCipher> getCiphers(String token) { List<SslCipher> ciphers; SslCipher cipher = CIPHERS.get(token); if (cipher != null) { ciphers = new ArrayList<>(1); ciphers.add(cipher); return ciphers; } cipher = CIPHER_NICKNAMES.get...
class class_name[name] begin[{] method[getCiphers, return_type[type[List]], modifier[private static], parameter[token]] begin[{] local_variable[type[List], ciphers] local_variable[type[SslCipher], cipher] if[binary_operation[member[.cipher], !=, literal[null]]] begin[{] ...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[SslCipher] operator[>] identifier[getCiphers] operator[SEP] identifier[String] identifier[token] operator[SEP] { identifier[List] operator[<] identifier[SslCipher] operator[>] identifier[ciphers] operator[SEP] identifier[SslCipher] identifi...
@Trivial private void decrementWithheldConcurrency() { int w; while ((w = withheldConcurrency.get()) > 0 && !withheldConcurrency.compareAndSet(w, w - 1)); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "withheld concurrency " + w + " --> " + (...
class class_name[name] begin[{] method[decrementWithheldConcurrency, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], w] while[binary_operation[binary_operation[assign[member[.w], call[withheldConcurrency.get, parameter[]]], >, literal[0]], &&, call[...
annotation[@] identifier[Trivial] Keyword[private] Keyword[void] identifier[decrementWithheldConcurrency] operator[SEP] operator[SEP] { Keyword[int] identifier[w] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[w] operator[=] identifier[withheldConcurrency] operator[SEP] identifier[get] opera...
@Override protected void notifyMenu(int x, int y, int xAbs, int yAbs, boolean isKeyboardTrigger) { super.notifyMenu(x, y, xAbs, yAbs, isKeyboardTrigger); }
class class_name[name] begin[{] method[notifyMenu, return_type[void], modifier[protected], parameter[x, y, xAbs, yAbs, isKeyboardTrigger]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(me...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[notifyMenu] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[xAbs] , Keyword[int] identifier[yAbs] , Keyword[boolean] identifier[isKeyboardTrigger] operator[SEP] { Keyword[super] oper...
public static Bson lookup(final String from, final List<? extends Bson> pipeline, final String as) { return lookup(from, null, pipeline, as); }
class class_name[name] begin[{] method[lookup, return_type[type[Bson]], modifier[public static], parameter[from, pipeline, as]] begin[{] return[call[.lookup, parameter[member[.from], literal[null], member[.pipeline], member[.as]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Bson] identifier[lookup] operator[SEP] Keyword[final] identifier[String] identifier[from] , Keyword[final] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Bson] operator[>] identifier[pipeline] , Keyword[final] identifier[String] identifier[as] operator[...
protected void handleInboundSoapHeaders(final org.springframework.ws.soap.SoapMessage soapMessage, final SoapMessage message) { try { final SoapHeader soapHeader = soapMessage.getSoapHeader(); if (soapHeader != null) { final It...
class class_name[name] begin[{] method[handleInboundSoapHeaders, return_type[void], modifier[protected], parameter[soapMessage, message]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], membe...
Keyword[protected] Keyword[void] identifier[handleInboundSoapHeaders] operator[SEP] Keyword[final] identifier[org] operator[SEP] identifier[springframework] operator[SEP] identifier[ws] operator[SEP] identifier[soap] operator[SEP] identifier[SoapMessage] identifier[soapMessage] , Keyword[final] identifier[SoapMessage]...
public void addAllToProperties(Properties props) { synchronized (this.confData) { for (Map.Entry<String, Object> entry : this.confData.entrySet()) { props.put(entry.getKey(), entry.getValue()); } } }
class class_name[name] begin[{] method[addAllToProperties, return_type[void], modifier[public], parameter[props]] begin[{] SYNCHRONIZED[THIS[member[None.confData]]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argu...
Keyword[public] Keyword[void] identifier[addAllToProperties] operator[SEP] identifier[Properties] identifier[props] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] identifier[confData] operator[SEP] { Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[E...
public Node previousNode() { if (currentNode == null) return null; // get sibling Node result = getPreviousSibling(currentNode); if (result == null) { result = getParentNode(currentNode); if (result != null) { currentNode = result; return result; } return null; } // get the lastChi...
class class_name[name] begin[{] method[previousNode, return_type[type[Node]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.currentNode], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[Node], result]...
Keyword[public] identifier[Node] identifier[previousNode] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[currentNode] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[Node] identifier[result] operator[=] identifier[getPreviousSibling] operator[SEP] i...
private Boolean supportsMessageProtection(String url, Map<String, String> challengeMap) { if (!"true".equals(challengeMap.get("supportspop"))) { return false; } // Message protection is enabled only for subset of keys operations. if (!url.toLowerCase().contains("/keys/")) {...
class class_name[name] begin[{] method[supportsMessageProtection, return_type[type[Boolean]], modifier[private], parameter[url, challengeMap]] begin[{] if[literal["true"]] begin[{] return[literal[false]] else begin[{] None end[}] if[call[url.toLowerCa...
Keyword[private] identifier[Boolean] identifier[supportsMessageProtection] operator[SEP] identifier[String] identifier[url] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[challengeMap] operator[SEP] { Keyword[if] operator[SEP] operator[!] literal[String] operator[S...
@Override public void end(String namespace, String name) throws Exception { // Determine the target object for the method call: the parent object Object parent = getDigester().peek(1); Object child = getDigester().peek(0); // Retrieve or construct the parameter values array ...
class class_name[name] begin[{] method[end, return_type[void], modifier[public], parameter[namespace, name]] begin[{] local_variable[type[Object], parent] local_variable[type[Object], child] local_variable[type[Object], parameters] if[binary_operation[member[.m_paramCoun...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[end] operator[SEP] identifier[String] identifier[namespace] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Object] identifier[parent] operator[=] identifier[getDigester] operator[S...
public int getDecoderMemoryUsage() { // Round the dictionary size up to the next 2^n or 2^n + 2^(n-1). int d = dictSize - 1; d |= d >>> 2; d |= d >>> 3; d |= d >>> 4; d |= d >>> 8; d |= d >>> 16; return LZMA2InputStream.getMemoryUsage(d + 1); }
class class_name[name] begin[{] method[getDecoderMemoryUsage, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], d] assign[member[.d], binary_operation[member[.d], >>>, literal[2]]] assign[member[.d], binary_operation[member[.d], >>...
Keyword[public] Keyword[int] identifier[getDecoderMemoryUsage] operator[SEP] operator[SEP] { Keyword[int] identifier[d] operator[=] identifier[dictSize] operator[-] Other[1] operator[SEP] identifier[d] operator[|=] identifier[d] operator[>] operator[>] operator[>] Other[2] operator[SEP] identifier[d] operator[|=...
public boolean setExpire(long seconds) { if(seconds <= 0)return true; try { if(!isBinary)return getJedisCommands(groupName).expire(key, (int)seconds) == 1; if(isCluster(groupName)){ return getBinaryJedisClusterCommands(groupName).expire(keyBytes, (int)seconds) == 1; } return getBinaryJedisCommands(g...
class class_name[name] begin[{] method[setExpire, return_type[type[boolean]], modifier[public], parameter[seconds]] begin[{] if[binary_operation[member[.seconds], <=, literal[0]]] begin[{] return[literal[true]] else begin[{] None end[}] TryStatement(block=[IfStatement(co...
Keyword[public] Keyword[boolean] identifier[setExpire] operator[SEP] Keyword[long] identifier[seconds] operator[SEP] { Keyword[if] operator[SEP] identifier[seconds] operator[<=] Other[0] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] operator[!] i...
static <T extends ChronoEntity<T>> ElementRule<T, Integer> elementRule(Class<T> type) { return new ERule<>(); }
class class_name[name] begin[{] method[elementRule, return_type[type[ElementRule]], modifier[static], parameter[type]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(argum...
Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ChronoEntity] operator[<] identifier[T] operator[>] operator[>] identifier[ElementRule] operator[<] identifier[T] , identifier[Integer] operator[>] identifier[elementRule] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identif...
public static MozuUrl getProductInventoryUrl(String locationCodes, String productCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/products/{productCode}/locationinventory?locationCodes={locationCodes}&responseFields={responseFields}"); formatter.formatUr...
class class_name[name] begin[{] method[getProductInventoryUrl, return_type[type[MozuUrl]], modifier[public static], parameter[locationCodes, productCode, responseFields]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["locationCodes"],...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[getProductInventoryUrl] operator[SEP] identifier[String] identifier[locationCodes] , identifier[String] identifier[productCode] , identifier[String] identifier[responseFields] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[...
public Content valueTagOutput(VariableElement field, String constantVal, boolean includeLink) { return includeLink ? htmlWriter.getDocLink(LinkInfoImpl.Kind.VALUE_TAG, field, constantVal, false) : new RawHtml(constantVal); }
class class_name[name] begin[{] method[valueTagOutput, return_type[type[Content]], modifier[public], parameter[field, constantVal, includeLink]] begin[{] return[TernaryExpression(condition=MemberReference(member=includeLink, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false...
Keyword[public] identifier[Content] identifier[valueTagOutput] operator[SEP] identifier[VariableElement] identifier[field] , identifier[String] identifier[constantVal] , Keyword[boolean] identifier[includeLink] operator[SEP] { Keyword[return] identifier[includeLink] operator[?] identifier[htmlWriter] operator[...
@Override public EClass getIfcElementComponent() { if (ifcElementComponentEClass == null) { ifcElementComponentEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(224); } return ifcElementComponentEClass; }
class class_name[name] begin[{] method[getIfcElementComponent, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcElementComponentEClass], ==, literal[null]]] begin[{] assign[member[.ifcElementComponentEClass], Cast(expressi...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcElementComponent] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcElementComponentEClass] operator[==] Other[null] operator[SEP] { identifier[ifcElementComponentEClass] operator[=] operator[SEP...
protected void manageExceptionReconnection(final Connection deviceProxy, final int retries, final int i, final Exception e, final String origin) throws DevFailed { ApiUtilDAODefaultImpl.removePendingRepliesOfDevice(deviceProxy); if (i==0 && (e.toString().contains("org.omg.CORBA.TRANSIENT") || e.toString...
class class_name[name] begin[{] method[manageExceptionReconnection, return_type[void], modifier[protected], parameter[deviceProxy, retries, i, e, origin]] begin[{] call[ApiUtilDAODefaultImpl.removePendingRepliesOfDevice, parameter[member[.deviceProxy]]] if[binary_operation[binar...
Keyword[protected] Keyword[void] identifier[manageExceptionReconnection] operator[SEP] Keyword[final] identifier[Connection] identifier[deviceProxy] , Keyword[final] Keyword[int] identifier[retries] , Keyword[final] Keyword[int] identifier[i] , Keyword[final] identifier[Exception] identifier[e] , Keyword[final] ide...
public static BufferedImage twistImage(BufferedImage srcBmp, int width, int height, boolean bXDir) { double dMultValue = getRandomDouble(1, 3); double dPhase = getRandomDouble(0, PI2); if (width > srcBmp.getWidth()) width = srcBmp.getWidth(); if (height > srcBmp.getHeight()) height = srcBmp.getHeight(); ...
class class_name[name] begin[{] method[twistImage, return_type[type[BufferedImage]], modifier[public static], parameter[srcBmp, width, height, bXDir]] begin[{] local_variable[type[double], dMultValue] local_variable[type[double], dPhase] if[binary_operation[member[.width], >, ca...
Keyword[public] Keyword[static] identifier[BufferedImage] identifier[twistImage] operator[SEP] identifier[BufferedImage] identifier[srcBmp] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[boolean] identifier[bXDir] operator[SEP] { Keyword[double] identifier[dMultValue] operator[=]...
public static boolean valueMatchesRegularExpression(String val, String regexp) { Pattern p = cache.get(regexp); if(p == null) { p = Pattern.compile(regexp); cache.put(regexp, p); } return valueMatchesRegularExpression(val, p); }
class class_name[name] begin[{] method[valueMatchesRegularExpression, return_type[type[boolean]], modifier[public static], parameter[val, regexp]] begin[{] local_variable[type[Pattern], p] if[binary_operation[member[.p], ==, literal[null]]] begin[{] assign[member...
Keyword[public] Keyword[static] Keyword[boolean] identifier[valueMatchesRegularExpression] operator[SEP] identifier[String] identifier[val] , identifier[String] identifier[regexp] operator[SEP] { identifier[Pattern] identifier[p] operator[=] identifier[cache] operator[SEP] identifier[get] operator[SEP] identifi...
public void addDirection(double extrp, Direction direction) { addDirection(extrp, direction.getDirectionHorizontal(), direction.getDirectionVertical()); }
class class_name[name] begin[{] method[addDirection, return_type[void], modifier[public], parameter[extrp, direction]] begin[{] call[.addDirection, parameter[member[.extrp], call[direction.getDirectionHorizontal, parameter[]], call[direction.getDirectionVertical, parameter[]]]] end[}] END[}...
Keyword[public] Keyword[void] identifier[addDirection] operator[SEP] Keyword[double] identifier[extrp] , identifier[Direction] identifier[direction] operator[SEP] { identifier[addDirection] operator[SEP] identifier[extrp] , identifier[direction] operator[SEP] identifier[getDirectionHorizontal] operator[SEP] op...
@SuppressWarnings({ "rawtypes", "unchecked" }) @NonNull public static <T> SingleObserver<? super T> onSubscribe(@NonNull Single<T> source, @NonNull SingleObserver<? super T> observer) { BiFunction<? super Single, ? super SingleObserver, ? extends SingleObserver> f = onSingleSubscribe; if (f != n...
class class_name[name] begin[{] method[onSubscribe, return_type[type[SingleObserver]], modifier[public static], parameter[source, observer]] begin[{] local_variable[type[BiFunction], f] if[binary_operation[member[.f], !=, literal[null]]] begin[{] return[call[.apply, paramete...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] annotation[@] identifier[NonNull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[SingleObserver] operator[<] operator[?] Keyword[super] identifier[T] operator[>] iden...
@DELETE @Path("/guid/{guid}/classification/{classificationName}") @Produces(Servlets.JSON_MEDIA_TYPE) public void deleteClassification(@PathParam("guid") String guid, @PathParam("classificationName") final String classificationName) throws AtlasBaseException { At...
class class_name[name] begin[{] method[deleteClassification, return_type[void], modifier[public], parameter[guid, classificationName]] begin[{] local_variable[type[AtlasPerfTracer], perf] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=PERF_LOG, post...
annotation[@] identifier[DELETE] 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] Keyword[void] identifier[deleteClassification] operator[SEP] annotatio...
public int makeFCD(CharSequence s, int src, int limit, ReorderingBuffer buffer) { // Note: In this function we use buffer->appendZeroCC() because we track // the lead and trail combining classes here, rather than leaving it to // the ReorderingBuffer. // The exception is the call to deco...
class class_name[name] begin[{] method[makeFCD, return_type[type[int]], modifier[public], parameter[s, src, limit, buffer]] begin[{] local_variable[type[int], prevBoundary] local_variable[type[int], prevSrc] local_variable[type[int], c] local_variable[type[int], prevFCD16] ...
Keyword[public] Keyword[int] identifier[makeFCD] operator[SEP] identifier[CharSequence] identifier[s] , Keyword[int] identifier[src] , Keyword[int] identifier[limit] , identifier[ReorderingBuffer] identifier[buffer] operator[SEP] { Keyword[int] identifier[prevBoundary] operator[=] identifier[src] operator[SEP...
public Instance getInstance(String src, int j) { return (Instance)((ArrayList)sourceLists.get(src)).get(j); }
class class_name[name] begin[{] method[getInstance, return_type[type[Instance]], modifier[public], parameter[src, j]] begin[{] return[Cast(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get...
Keyword[public] identifier[Instance] identifier[getInstance] operator[SEP] identifier[String] identifier[src] , Keyword[int] identifier[j] operator[SEP] { Keyword[return] operator[SEP] identifier[Instance] operator[SEP] operator[SEP] operator[SEP] identifier[ArrayList] operator[SEP] identifier[sourceLists] oper...
public Created setCreated(Date created) { Created prop = (created == null) ? null : new Created(created); setCreated(prop); return prop; }
class class_name[name] begin[{] method[setCreated, return_type[type[Created]], modifier[public], parameter[created]] begin[{] local_variable[type[Created], prop] call[.setCreated, parameter[member[.prop]]] return[member[.prop]] end[}] END[}]
Keyword[public] identifier[Created] identifier[setCreated] operator[SEP] identifier[Date] identifier[created] operator[SEP] { identifier[Created] identifier[prop] operator[=] operator[SEP] identifier[created] operator[==] Other[null] operator[SEP] operator[?] Other[null] operator[:] Keyword[new] identifier[Crea...
@Override public T addAsManifestResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException { Validate.notNull(resourcePackage, "ResourcePackage must be specified"); Validate.notNullAndNoNullValues(resourceNames, "ResourceNames must be specified and can no...
class class_name[name] begin[{] method[addAsManifestResources, return_type[type[T]], modifier[public], parameter[resourcePackage, resourceNames]] begin[{] call[Validate.notNull, parameter[member[.resourcePackage], literal["ResourcePackage must be specified"]]] call[Validate.notN...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[addAsManifestResources] operator[SEP] identifier[Package] identifier[resourcePackage] , identifier[String] operator[...] identifier[resourceNames] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[Validate]...
public static <E> List<Class<? extends E>> filterSkipped(InvocationContext context, List<Class<? extends E>> components) { Method request = context.getRequest(); if(!request.isAnnotationPresent(Skip.class)) { return components; } List<Class<?>> skippedComponents = Arrays.asList(request.getAnn...
class class_name[name] begin[{] method[filterSkipped, return_type[type[List]], modifier[public static], parameter[context, components]] begin[{] local_variable[type[Method], request] if[call[request.isAnnotationPresent, parameter[ClassReference(postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[List] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[E] operator[>] operator[>] identifier[filterSkipped] operator[SEP] identifier[InvocationContext] identifier[context] , identifier[List] operator[<] id...
public Locale getMainLocale(String rootPath) { CmsSite site = OpenCms.getSiteManager().getSiteForRootPath(rootPath); if (site == null) { return null; } return site.getMainTranslationLocale(null); }
class class_name[name] begin[{] method[getMainLocale, return_type[type[Locale]], modifier[public], parameter[rootPath]] begin[{] local_variable[type[CmsSite], site] if[binary_operation[member[.site], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] No...
Keyword[public] identifier[Locale] identifier[getMainLocale] operator[SEP] identifier[String] identifier[rootPath] operator[SEP] { identifier[CmsSite] identifier[site] operator[=] identifier[OpenCms] operator[SEP] identifier[getSiteManager] operator[SEP] operator[SEP] operator[SEP] identifier[getSiteForRootPath]...
public void setFontAwesomeIcon(@FontAwesome.Icon CharSequence iconCode) { setBootstrapText(new BootstrapText.Builder(getContext(), isInEditMode()).addFontAwesomeIcon(iconCode).build()); }
class class_name[name] begin[{] method[setFontAwesomeIcon, return_type[void], modifier[public], parameter[iconCode]] begin[{] call[.setBootstrapText, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getContext, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[void] identifier[setFontAwesomeIcon] operator[SEP] annotation[@] identifier[FontAwesome] operator[SEP] identifier[Icon] identifier[CharSequence] identifier[iconCode] operator[SEP] { identifier[setBootstrapText] operator[SEP] Keyword[new] identifier[BootstrapText] operator[SEP] identifier[...
@SuppressWarnings("rawtypes") public void unsetReplicationClassLoader(Fqn regionFqn, ClassLoader classLoader) { if (!isLocalMode()) { final Region region = jBossCache.getRegion(regionFqn, true); if (region != null) { if (region.isActive()) { region.deactivate(); } region.unregisterContextC...
class class_name[name] begin[{] method[unsetReplicationClassLoader, return_type[void], modifier[public], parameter[regionFqn, classLoader]] begin[{] if[call[.isLocalMode, parameter[]]] begin[{] local_variable[type[Region], region] if[binary_operation[member[....
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[unsetReplicationClassLoader] operator[SEP] identifier[Fqn] identifier[regionFqn] , identifier[ClassLoader] identifier[classLoader] operator[SEP] { Keyword[if] operator[SEP] operator[!]...
private static String generateTempServerName() { String serverName = TEMP_SERVER_NAME; while (InstallUtils.serverExists(serverName)) { int randomNumber = random.nextInt(); while (randomNumber == Integer.MIN_VALUE) { randomNumber = random.nextInt(); ...
class class_name[name] begin[{] method[generateTempServerName, return_type[type[String]], modifier[private static], parameter[]] begin[{] local_variable[type[String], serverName] while[call[InstallUtils.serverExists, parameter[member[.serverName]]]] begin[{] local_variable[t...
Keyword[private] Keyword[static] identifier[String] identifier[generateTempServerName] operator[SEP] operator[SEP] { identifier[String] identifier[serverName] operator[=] identifier[TEMP_SERVER_NAME] operator[SEP] Keyword[while] operator[SEP] identifier[InstallUtils] operator[SEP] identifier[serverExists] operat...
public boolean isEquivalent(final Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))) && this.g...
class class_name[name] begin[{] method[isEquivalent, return_type[type[boolean]], modifier[public], parameter[testPlugin]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.repository], ==, call[testPlugin.getLoggerRepository, parameter[]]], &&, binary_operation[binary_operation...
Keyword[public] Keyword[boolean] identifier[isEquivalent] operator[SEP] Keyword[final] identifier[Plugin] identifier[testPlugin] operator[SEP] { Keyword[return] operator[SEP] identifier[repository] operator[==] identifier[testPlugin] operator[SEP] identifier[getLoggerRepository] operator[SEP] operator[SEP] opera...
public synchronized void moveCursor(Entry newEntry) { if (tc.isEntryEnabled()) SibTr.entry(tc, "moveCursor", new Object[] { newEntry }); checkEntryParent(); //if the entry is the same as the current one //then we don't need to bother doing anything if(newEntry != current) { ...
class class_name[name] begin[{] method[moveCursor, return_type[void], modifier[synchronized public], parameter[newEntry]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["moveCursor"], ArrayCreator(dimensions=[None], initia...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[moveCursor] operator[SEP] identifier[Entry] identifier[newEntry] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[en...
@Override public void cacheResult(CPRule cpRule) { entityCache.putResult(CPRuleModelImpl.ENTITY_CACHE_ENABLED, CPRuleImpl.class, cpRule.getPrimaryKey(), cpRule); cpRule.resetOriginalValues(); }
class class_name[name] begin[{] method[cacheResult, return_type[void], modifier[public], parameter[cpRule]] begin[{] call[entityCache.putResult, parameter[member[CPRuleModelImpl.ENTITY_CACHE_ENABLED], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=Refer...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[cacheResult] operator[SEP] identifier[CPRule] identifier[cpRule] operator[SEP] { identifier[entityCache] operator[SEP] identifier[putResult] operator[SEP] identifier[CPRuleModelImpl] operator[SEP] identifier[ENTITY_CACHE_ENABLED] , iden...
public PublicationsHandlerBuilder setPublicationsFilePkiTrustStore(File file, String password) throws KSIException { this.trustStore = Util.loadKeyStore(file, password); return this; }
class class_name[name] begin[{] method[setPublicationsFilePkiTrustStore, return_type[type[PublicationsHandlerBuilder]], modifier[public], parameter[file, password]] begin[{] assign[THIS[member[None.trustStore]], call[Util.loadKeyStore, parameter[member[.file], member[.password]]]] retur...
Keyword[public] identifier[PublicationsHandlerBuilder] identifier[setPublicationsFilePkiTrustStore] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[password] operator[SEP] Keyword[throws] identifier[KSIException] { Keyword[this] operator[SEP] identifier[trustStore] operator[=] id...
public Set<CurrencyUnit> getCurrencies(String... providers) { return getCurrencies(CurrencyQueryBuilder.of().setProviderNames(providers).build()); }
class class_name[name] begin[{] method[getCurrencies, return_type[type[Set]], modifier[public], parameter[providers]] begin[{] return[call[.getCurrencies, parameter[call[CurrencyQueryBuilder.of, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[Set] operator[<] identifier[CurrencyUnit] operator[>] identifier[getCurrencies] operator[SEP] identifier[String] operator[...] identifier[providers] operator[SEP] { Keyword[return] identifier[getCurrencies] operator[SEP] identifier[CurrencyQueryBuilder] operator[SEP] identifier[of] ope...
public static boolean isValidKillSessionsToken(String token) { if (token == null || token.isEmpty()) { return false; } for (String validToken:VALID_TOKENS) { if (token.equals (validToken)) { return true; } } return false; }
class class_name[name] begin[{] method[isValidKillSessionsToken, return_type[type[boolean]], modifier[public static], parameter[token]] begin[{] if[binary_operation[binary_operation[member[.token], ==, literal[null]], ||, call[token.isEmpty, parameter[]]]] begin[{] return[literal[fa...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValidKillSessionsToken] operator[SEP] identifier[String] identifier[token] operator[SEP] { Keyword[if] operator[SEP] identifier[token] operator[==] Other[null] operator[||] identifier[token] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP...
public static IFileCompareResultBean simpleCompareFiles(final File sourceFile, final File fileToCompare) { return compareFiles(sourceFile, fileToCompare, true, false, false, true, false); }
class class_name[name] begin[{] method[simpleCompareFiles, return_type[type[IFileCompareResultBean]], modifier[public static], parameter[sourceFile, fileToCompare]] begin[{] return[call[.compareFiles, parameter[member[.sourceFile], member[.fileToCompare], literal[true], literal[false], literal[false], ...
Keyword[public] Keyword[static] identifier[IFileCompareResultBean] identifier[simpleCompareFiles] operator[SEP] Keyword[final] identifier[File] identifier[sourceFile] , Keyword[final] identifier[File] identifier[fileToCompare] operator[SEP] { Keyword[return] identifier[compareFiles] operator[SEP] identifier[sou...
static Class getMostDerivedInterface(Class controlIntf) { while (controlIntf.isAnnotationPresent(ControlExtension.class)) { Class [] intfs = controlIntf.getInterfaces(); boolean found = false; for (int i = 0; i < intfs.length; i++) { if...
class class_name[name] begin[{] method[getMostDerivedInterface, return_type[type[Class]], modifier[static], parameter[controlIntf]] begin[{] while[call[controlIntf.isAnnotationPresent, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceTy...
Keyword[static] identifier[Class] identifier[getMostDerivedInterface] operator[SEP] identifier[Class] identifier[controlIntf] operator[SEP] { Keyword[while] operator[SEP] identifier[controlIntf] operator[SEP] identifier[isAnnotationPresent] operator[SEP] identifier[ControlExtension] operator[SEP] Keyword[class] ...
private Variable getVariableAtNode(int index, CallStack callstack) throws UtilEvalError { Node nameNode = null; if (jjtGetChild(index).jjtGetNumChildren() > 0 && (nameNode = jjtGetChild(index).jjtGetChild(0)) instanceof BSHAmbiguousName) return callstack.t...
class class_name[name] begin[{] method[getVariableAtNode, return_type[type[Variable]], modifier[private], parameter[index, callstack]] begin[{] local_variable[type[Node], nameNode] if[binary_operation[binary_operation[call[.jjtGetChild, parameter[member[.index]]], >, literal[0]], &&, bi...
Keyword[private] identifier[Variable] identifier[getVariableAtNode] operator[SEP] Keyword[int] identifier[index] , identifier[CallStack] identifier[callstack] operator[SEP] Keyword[throws] identifier[UtilEvalError] { identifier[Node] identifier[nameNode] operator[=] Other[null] operator[SEP] Keyword[if] operato...
public static JSONObject parseObject(InputStream is, String csName) throws IOException { return (JSONObject)parse(is, csName); }
class class_name[name] begin[{] method[parseObject, return_type[type[JSONObject]], modifier[public static], parameter[is, csName]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=is, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference...
Keyword[public] Keyword[static] identifier[JSONObject] identifier[parseObject] operator[SEP] identifier[InputStream] identifier[is] , identifier[String] identifier[csName] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] operator[SEP] identifier[JSONObject] operator[SEP] identifier[parse]...
public void addCluster() { System.out.printf("%nAdding cluster: %s to instance: %s%n", CLUSTER, instanceId); // [START bigtable_create_cluster] try { adminClient.createCluster( CreateClusterRequest.of(instanceId, CLUSTER) .setZone("us-central1-c") .setServeNodes(3...
class class_name[name] begin[{] method[addCluster, return_type[void], modifier[public], parameter[]] begin[{] call[System.out.printf, parameter[literal["%nAdding cluster: %s to instance: %s%n"], member[.CLUSTER], member[.instanceId]]] TryStatement(block=[StatementExpression(expression=M...
Keyword[public] Keyword[void] identifier[addCluster] operator[SEP] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[printf] operator[SEP] literal[String] , identifier[CLUSTER] , identifier[instanceId] operator[SEP] operator[SEP] Keyword[try] { identifier[admi...
private void getField(String[] names) throws Exception { final CodeEmitter e = begin_method(Constants.ACC_PUBLIC, PROVIDER_GET, null); e.load_this(); e.load_arg(0); EmitUtils.string_switch(e, names, Constants.SWITCH_STYLE_HASH, new ObjectSwitchCallback() { public void process...
class class_name[name] begin[{] method[getField, return_type[void], modifier[private], parameter[names]] begin[{] local_variable[type[CodeEmitter], e] call[e.load_this, parameter[]] call[e.load_arg, parameter[literal[0]]] call[EmitUtils.string_switch, par...
Keyword[private] Keyword[void] identifier[getField] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[names] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] identifier[CodeEmitter] identifier[e] operator[=] identifier[begin_method] operator[SEP] identifier[Constants] op...
public ListEnabledProductsForImportResult withProductSubscriptions(String... productSubscriptions) { if (this.productSubscriptions == null) { setProductSubscriptions(new java.util.ArrayList<String>(productSubscriptions.length)); } for (String ele : productSubscriptions) { ...
class class_name[name] begin[{] method[withProductSubscriptions, return_type[type[ListEnabledProductsForImportResult]], modifier[public], parameter[productSubscriptions]] begin[{] if[binary_operation[THIS[member[None.productSubscriptions]], ==, literal[null]]] begin[{] c...
Keyword[public] identifier[ListEnabledProductsForImportResult] identifier[withProductSubscriptions] operator[SEP] identifier[String] operator[...] identifier[productSubscriptions] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[productSubscriptions] operator[==] Other[null] opera...
private void generatePostamble(Node.Nodes page) { out.popIndent(); out.printil("} catch (Throwable t) {"); out.pushIndent(); out.printil( "if (!(t instanceof SkipPageException)){"); out.pushIndent(); out.printil("out = _jspx_out;"); out.printil("if (ou...
class class_name[name] begin[{] method[generatePostamble, return_type[void], modifier[private], parameter[page]] begin[{] call[out.popIndent, parameter[]] call[out.printil, parameter[literal["} catch (Throwable t) {"]]] call[out.pushIndent, parameter[]] ...
Keyword[private] Keyword[void] identifier[generatePostamble] operator[SEP] identifier[Node] operator[SEP] identifier[Nodes] identifier[page] operator[SEP] { identifier[out] operator[SEP] identifier[popIndent] operator[SEP] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[printil] operator[SEP...
public Observable<ServiceResponse<String>> beginGeneratevpnclientpackageWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required ...
class class_name[name] begin[{] method[beginGeneratevpnclientpackageWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, virtualNetworkGatewayName, parameters]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[String] operator[>] operator[>] identifier[beginGeneratevpnclientpackageWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualNetworkGatewayNam...
static public TypedPropertyDescriptor buildScriptablePropertyDescriptor( String propertyName, Class beanClass, String getterName, String setterName ) { TypedPropertyDescriptor pd = _buildPropertyDescriptor( propertyName, beanClass, getterName, setterName ); makeScriptable( pd ); return pd; }
class class_name[name] begin[{] method[buildScriptablePropertyDescriptor, return_type[type[TypedPropertyDescriptor]], modifier[public static], parameter[propertyName, beanClass, getterName, setterName]] begin[{] local_variable[type[TypedPropertyDescriptor], pd] call[.makeScriptable, par...
Keyword[static] Keyword[public] identifier[TypedPropertyDescriptor] identifier[buildScriptablePropertyDescriptor] operator[SEP] identifier[String] identifier[propertyName] , identifier[Class] identifier[beanClass] , identifier[String] identifier[getterName] , identifier[String] identifier[setterName] operator[SEP] ...
public String forProcessInstance(String alias, long processInstanceId) { return registry.getContainerId(alias, new ByProcessInstanceIdContainerLocator(processInstanceId)); }
class class_name[name] begin[{] method[forProcessInstance, return_type[type[String]], modifier[public], parameter[alias, processInstanceId]] begin[{] return[call[registry.getContainerId, parameter[member[.alias], ClassCreator(arguments=[MemberReference(member=processInstanceId, postfix_operators=[], pr...
Keyword[public] identifier[String] identifier[forProcessInstance] operator[SEP] identifier[String] identifier[alias] , Keyword[long] identifier[processInstanceId] operator[SEP] { Keyword[return] identifier[registry] operator[SEP] identifier[getContainerId] operator[SEP] identifier[alias] , Keyword[new] identif...
public static float optionalFloatAttribute( final XMLStreamReader reader, final String localName, final float defaultValue) { return optionalFloatAttribute(reader, null, localName, defaultValue); }
class class_name[name] begin[{] method[optionalFloatAttribute, return_type[type[float]], modifier[public static], parameter[reader, localName, defaultValue]] begin[{] return[call[.optionalFloatAttribute, parameter[member[.reader], literal[null], member[.localName], member[.defaultValue]]]] end[}] E...
Keyword[public] Keyword[static] Keyword[float] identifier[optionalFloatAttribute] operator[SEP] Keyword[final] identifier[XMLStreamReader] identifier[reader] , Keyword[final] identifier[String] identifier[localName] , Keyword[final] Keyword[float] identifier[defaultValue] operator[SEP] { Keyword[return] identi...
@Override public boolean getFlag(int flagType) { logger.debug("Setting flag: ", flagType + "=" + super.getFlag(flagType)); return super.getFlag(flagType); }
class class_name[name] begin[{] method[getFlag, return_type[type[boolean]], modifier[public], parameter[flagType]] begin[{] call[logger.debug, parameter[literal["Setting flag: "], binary_operation[binary_operation[member[.flagType], +, literal["="]], +, SuperMethodInvocation(arguments=[MemberRe...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[getFlag] operator[SEP] Keyword[int] identifier[flagType] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[flagType] operator[+] literal[String] operator[+] Keyword[super] o...
public void setVideoDecoderConfiguration(IRTMPEvent decoderConfig) { if (decoderConfig instanceof IStreamData) { IoBuffer data = ((IStreamData<?>) decoderConfig).getData().asReadOnlyBuffer(); videoConfigurationTag = ImmutableTag.build(decoderConfig.getDataType(), 0, data, 0); ...
class class_name[name] begin[{] method[setVideoDecoderConfiguration, return_type[void], modifier[public], parameter[decoderConfig]] begin[{] if[binary_operation[member[.decoderConfig], instanceof, type[IStreamData]]] begin[{] local_variable[type[IoBuffer], data] ...
Keyword[public] Keyword[void] identifier[setVideoDecoderConfiguration] operator[SEP] identifier[IRTMPEvent] identifier[decoderConfig] operator[SEP] { Keyword[if] operator[SEP] identifier[decoderConfig] Keyword[instanceof] identifier[IStreamData] operator[SEP] { identifier[IoBuffer] identifier[data] op...
private synchronized void initialize() { if (!_initialized) { FacesContext context = FacesContext.getCurrentInstance(); if (isFacelets2Enabled(context)) { logWarningIfLegacyFaceletViewHandlerIsPresent(context); if (MyfacesConfig.g...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[synchronized private], parameter[]] begin[{] if[member[._initialized]] begin[{] local_variable[type[FacesContext], context] if[call[.isFacelets2Enabled, parameter[member[.context]]...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[_initialized] operator[SEP] { identifier[FacesContext] identifier[context] operator[=] identifier[FacesContext] operator[SEP] identifier[getCurrent...
@Override public void onTimer(String timerName) { if (timerName.equals(IDLE_SESSION_TIMER_NAME)) { checkIdleAppSession(); } else if (timerName.equals(TIMER_NAME_TS)) { if (context != null) { try { context.sessionTimeoutElapses(ServerRfSessionImpl.this); } ...
class class_name[name] begin[{] method[onTimer, return_type[void], modifier[public], parameter[timerName]] begin[{] if[call[timerName.equals, parameter[member[.IDLE_SESSION_TIMER_NAME]]]] begin[{] call[.checkIdleAppSession, parameter[]] else begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onTimer] operator[SEP] identifier[String] identifier[timerName] operator[SEP] { Keyword[if] operator[SEP] identifier[timerName] operator[SEP] identifier[equals] operator[SEP] identifier[IDLE_SESSION_TIMER_NAME] operator[SEP] operator[SEP...
public com.google.api.ads.adwords.axis.v201809.cm.Media getMedia() { return media; }
class class_name[name] begin[{] method[getMedia, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.media]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] identifier[Media] identifier[getMedia] operator[SEP] ...
@TargetApi(Build.VERSION_CODES.FROYO) public static boolean hasWifiFeature(Context context) { return hasWifiFeature(context.getPackageManager()); }
class class_name[name] begin[{] method[hasWifiFeature, return_type[type[boolean]], modifier[public static], parameter[context]] begin[{] return[call[.hasWifiFeature, parameter[call[context.getPackageManager, parameter[]]]]] end[}] END[}]
annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[FROYO] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[hasWifiFeature] operator[SEP] identifier[Context] identifier[context] operator[SEP] { Keyword[retur...
public static <T> T get(String className, Object... params) { final Class<T> clazz = ClassUtil.loadClass(className); return get(clazz, params); }
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public static], parameter[className, params]] begin[{] local_variable[type[Class], clazz] return[call[.get, parameter[member[.clazz], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[get] operator[SEP] identifier[String] identifier[className] , identifier[Object] operator[...] identifier[params] operator[SEP] { Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz...
@Override public boolean add(IAtomContainer atomContainer) { if (this.atomContainer == null) { this.atomContainer = atomContainer; title = (String) atomContainer.getTitle(); } if (title == null) { throw new IllegalArgumentException("At least one of the inp...
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[atomContainer]] begin[{] if[binary_operation[THIS[member[None.atomContainer]], ==, literal[null]]] begin[{] assign[THIS[member[None.atomContainer]], member[.atomContainer]...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[IAtomContainer] identifier[atomContainer] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[atomContainer] operator[==] Other[null] operator[SEP] { Keyword[this] ...
public EClass getIfcRelAssignsTasks() { if (ifcRelAssignsTasksEClass == null) { ifcRelAssignsTasksEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(439); } return ifcRelAssignsTasksEClass; }
class class_name[name] begin[{] method[getIfcRelAssignsTasks, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRelAssignsTasksEClass], ==, literal[null]]] begin[{] assign[member[.ifcRelAssignsTasksEClass], Cast(expression=...
Keyword[public] identifier[EClass] identifier[getIfcRelAssignsTasks] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRelAssignsTasksEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRelAssignsTasksEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] ide...
protected <TYPE extends MoleculerComponent> TYPE start(TYPE component) throws Exception { if (component == null) { return null; } component.started(this); logger.info(nameOf(component, true) + " started."); return component; }
class class_name[name] begin[{] method[start, return_type[type[TYPE]], modifier[protected], parameter[component]] begin[{] if[binary_operation[member[.component], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] call[compon...
Keyword[protected] operator[<] identifier[TYPE] Keyword[extends] identifier[MoleculerComponent] operator[>] identifier[TYPE] identifier[start] operator[SEP] identifier[TYPE] identifier[component] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[component] operator[==] Ot...
private static void appendDescriptor(final StringBuilder stringBuilder, final Class<?> clazz) { Class<?> currentClass = clazz; while (currentClass.isArray()) { stringBuilder.append('['); currentClass = currentClass.getComponentType(); } if (currentClass.isPrimitive()) { char descriptor...
class class_name[name] begin[{] method[appendDescriptor, return_type[void], modifier[private static], parameter[stringBuilder, clazz]] begin[{] local_variable[type[Class], currentClass] while[call[currentClass.isArray, parameter[]]] begin[{] call[stringBuilder.ap...
Keyword[private] Keyword[static] Keyword[void] identifier[appendDescriptor] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[stringBuilder] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[Class] operator[<] operator[?] operator...
private CmsResource findXmlPage(CmsObject cms, String resourcename) { // get the full folder path of the resource to start from String path = cms.getRequestContext().removeSiteRoot(resourcename); // the path without the trailing slash // for example: .../xmlpage.xml/ -> .../xmlpagepage....
class class_name[name] begin[{] method[findXmlPage, return_type[type[CmsResource]], modifier[private], parameter[cms, resourcename]] begin[{] local_variable[type[String], path] local_variable[type[String], reducedPath] do[literal[true]] begin[{] local_variable[type[b...
Keyword[private] identifier[CmsResource] identifier[findXmlPage] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[String] identifier[resourcename] operator[SEP] { identifier[String] identifier[path] operator[=] identifier[cms] operator[SEP] identifier[getRequestContext] operator[SEP] operator[SE...
static NormalVersion parseVersionCore(String versionCore) { VersionParser parser = new VersionParser(versionCore); return parser.parseVersionCore(); }
class class_name[name] begin[{] method[parseVersionCore, return_type[type[NormalVersion]], modifier[static], parameter[versionCore]] begin[{] local_variable[type[VersionParser], parser] return[call[parser.parseVersionCore, parameter[]]] end[}] END[}]
Keyword[static] identifier[NormalVersion] identifier[parseVersionCore] operator[SEP] identifier[String] identifier[versionCore] operator[SEP] { identifier[VersionParser] identifier[parser] operator[=] Keyword[new] identifier[VersionParser] operator[SEP] identifier[versionCore] operator[SEP] operator[SEP] Keyword...
public void getAllTraitID(Callback<List<Integer>> callback) throws NullPointerException { gw2API.getAllTraitIDs().enqueue(callback); }
class class_name[name] begin[{] method[getAllTraitID, return_type[void], modifier[public], parameter[callback]] begin[{] call[gw2API.getAllTraitIDs, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[getAllTraitID] operator[SEP] identifier[Callback] operator[<] identifier[List] operator[<] identifier[Integer] operator[>] operator[>] identifier[callback] operator[SEP] Keyword[throws] identifier[NullPointerException] { identifier[gw2API] operator[SEP] identifier[getAllT...
public boolean containsAll(final Collection<?> coll) { for (final Object t : coll) { if (!contains(t)) { return false; } } return true; }
class class_name[name] begin[{] method[containsAll, return_type[type[boolean]], modifier[public], parameter[coll]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=t, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] Keyword[boolean] identifier[containsAll] operator[SEP] Keyword[final] identifier[Collection] operator[<] operator[?] operator[>] identifier[coll] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[Object] identifier[t] operator[:] identifier[coll] operator[SEP] { Key...
private static void zipFile(final File srcFile, final String destPath, final ZipOutputStream out) throws IOException { final byte[] buf = new byte[1024]; try (final InputStream in = new BufferedInputStream(new FileInputStream(srcFile))) { final ZipEntry zipEntry = new ZipEntry(concatPat...
class class_name[name] begin[{] method[zipFile, return_type[void], modifier[private static], parameter[srcFile, destPath, out]] begin[{] local_variable[type[byte], buf] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassC...
Keyword[private] Keyword[static] Keyword[void] identifier[zipFile] operator[SEP] Keyword[final] identifier[File] identifier[srcFile] , Keyword[final] identifier[String] identifier[destPath] , Keyword[final] identifier[ZipOutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { Keyw...
public void setSize(DBIDRef id, int size) { if(csize == null) { csize = DataStoreUtil.makeIntegerStorage(ids, DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP, 1); } csize.putInt(id, size); }
class class_name[name] begin[{] method[setSize, return_type[void], modifier[public], parameter[id, size]] begin[{] if[binary_operation[member[.csize], ==, literal[null]]] begin[{] assign[member[.csize], call[DataStoreUtil.makeIntegerStorage, parameter[member[.ids], binar...
Keyword[public] Keyword[void] identifier[setSize] operator[SEP] identifier[DBIDRef] identifier[id] , Keyword[int] identifier[size] operator[SEP] { Keyword[if] operator[SEP] identifier[csize] operator[==] Other[null] operator[SEP] { identifier[csize] operator[=] identifier[DataStoreUtil] operator[SEP]...
private MilestoneManager getKilometerManager() { final float backgroundRadius = 20; final Paint backgroundPaint1 = getFillPaint(COLOR_BACKGROUND); final Paint backgroundPaint2 = getFillPaint(COLOR_POLYLINE_ANIMATED); final Paint textPaint1 = getTextPaint(COLOR_POLYLINE_STATIC); f...
class class_name[name] begin[{] method[getKilometerManager, return_type[type[MilestoneManager]], modifier[private], parameter[]] begin[{] local_variable[type[float], backgroundRadius] local_variable[type[Paint], backgroundPaint1] local_variable[type[Paint], backgroundPaint2] loc...
Keyword[private] identifier[MilestoneManager] identifier[getKilometerManager] operator[SEP] operator[SEP] { Keyword[final] Keyword[float] identifier[backgroundRadius] operator[=] Other[20] operator[SEP] Keyword[final] identifier[Paint] identifier[backgroundPaint1] operator[=] identifier[getFillPaint] operator[SE...
private void updateForeignKeys(EntityMetadata metadata, Object id, List<RelationHolder> relationHolders) { for (RelationHolder rh : relationHolders) { String linkName = rh.getRelationName(); Object linkValue = rh.getRelationValue(); if (linkName != null && linkVal...
class class_name[name] begin[{] method[updateForeignKeys, return_type[void], modifier[private], parameter[metadata, id, relationHolders]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer...
Keyword[private] Keyword[void] identifier[updateForeignKeys] operator[SEP] identifier[EntityMetadata] identifier[metadata] , identifier[Object] identifier[id] , identifier[List] operator[<] identifier[RelationHolder] operator[>] identifier[relationHolders] operator[SEP] { Keyword[for] operator[SEP] identifier[...
public static void startup(final String _classDBType, final String _classDSFactory, final String _propConnection, final String _classTM, final String _classTSR, fina...
class class_name[name] begin[{] method[startup, return_type[void], modifier[public static], parameter[_classDBType, _classDSFactory, _propConnection, _classTM, _classTSR, _eFapsProps]] begin[{] call[StartupDatabaseConnection.startup, parameter[member[._classDBType], member[._classDSFactory], ca...
Keyword[public] Keyword[static] Keyword[void] identifier[startup] operator[SEP] Keyword[final] identifier[String] identifier[_classDBType] , Keyword[final] identifier[String] identifier[_classDSFactory] , Keyword[final] identifier[String] identifier[_propConnection] , Keyword[final] identifier[String] identifier[_cl...
public boolean contains(float xp, float yp) { checkPoints(); if (xp <= getX()) { return false; } if (yp <= getY()) { return false; } if (xp >= maxX) { return false; } if (yp >= maxY) { return false; } return true; }
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public], parameter[xp, yp]] begin[{] call[.checkPoints, parameter[]] if[binary_operation[member[.xp], <=, call[.getX, parameter[]]]] begin[{] return[literal[false]] else beg...
Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] Keyword[float] identifier[xp] , Keyword[float] identifier[yp] operator[SEP] { identifier[checkPoints] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[xp] operator[<=] identifier[getX] operator[SEP] operator[SEP] o...
private void addUnitWrappers(TypeSpec.Builder type, NumberData data) { MethodSpec.Builder method = MethodSpec.methodBuilder("wrapUnits") .addModifiers(PROTECTED) .addParameter(PluralCategory.class, "category") .addParameter(DigitBuffer.class, "dbuf") .addParameter(String.class, "unit...
class class_name[name] begin[{] method[addUnitWrappers, return_type[void], modifier[private], parameter[type, data]] begin[{] local_variable[type[MethodSpec], method] local_variable[type[List], patterns] if[binary_operation[call[patterns.size, parameter[]], ==, literal[1]]] begi...
Keyword[private] Keyword[void] identifier[addUnitWrappers] operator[SEP] identifier[TypeSpec] operator[SEP] identifier[Builder] identifier[type] , identifier[NumberData] identifier[data] operator[SEP] { identifier[MethodSpec] operator[SEP] identifier[Builder] identifier[method] operator[=] identifier[MethodSpec...
public void printStream(final ByteArrayOutputStream stream, final String hostName, final String printerName, final String documentName) throws IOException { String controlFile = ""; byte buffer[] = new byte[1000]; String s; String strJobNumber; strJobNumber = "" + jo...
class class_name[name] begin[{] method[printStream, return_type[void], modifier[public], parameter[stream, hostName, printerName, documentName]] begin[{] local_variable[type[String], controlFile] local_variable[type[byte], buffer] local_variable[type[String], s] local_variable[t...
Keyword[public] Keyword[void] identifier[printStream] operator[SEP] Keyword[final] identifier[ByteArrayOutputStream] identifier[stream] , Keyword[final] identifier[String] identifier[hostName] , Keyword[final] identifier[String] identifier[printerName] , Keyword[final] identifier[String] identifier[documentName] ope...
public static Accidental convertToAccidental(String accidental) throws IllegalArgumentException { if (accidental==null) return NONE; else if (accidental.equals("^") || accidental.equals("#") || accidental.equals("\u266F")) return SHARP; else if (accidental.equals("_") || accidental.equals("b") || acc...
class class_name[name] begin[{] method[convertToAccidental, return_type[type[Accidental]], modifier[public static], parameter[accidental]] begin[{] if[binary_operation[member[.accidental], ==, literal[null]]] begin[{] return[member[.NONE]] else begin[{] if[binary_operation[b...
Keyword[public] Keyword[static] identifier[Accidental] identifier[convertToAccidental] operator[SEP] identifier[String] identifier[accidental] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] identifier[accidental] operator[==] Other[null] operator[SEP] Keyword[retur...
protected int getProximityPosition(int predicateIndex) { if(!isReverseAxes()) return super.getProximityPosition(predicateIndex); // A negative predicate index seems to occur with // (preceding-sibling::*|following-sibling::*)/ancestor::*[position()]/*[position()] // -sb if(predicateIn...
class class_name[name] begin[{] method[getProximityPosition, return_type[type[int]], modifier[protected], parameter[predicateIndex]] begin[{] if[call[.isReverseAxes, parameter[]]] begin[{] return[SuperMethodInvocation(arguments=[MemberReference(member=predicateIndex, postfix_operators=[], prefi...
Keyword[protected] Keyword[int] identifier[getProximityPosition] operator[SEP] Keyword[int] identifier[predicateIndex] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isReverseAxes] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[super] operator[SEP] identifier[getProximityPosi...
private static CmsGalleryDataBean getGalleryDataFromDict() throws SerializationException { return (CmsGalleryDataBean)CmsRpcPrefetcher.getSerializedObjectFromDictionary( CmsGalleryController.getGalleryService(), CmsGalleryDataBean.DICT_NAME); }
class class_name[name] begin[{] method[getGalleryDataFromDict, return_type[type[CmsGalleryDataBean]], modifier[private static], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getGalleryService, postfix_operators=[], prefix_operators=[], qu...
Keyword[private] Keyword[static] identifier[CmsGalleryDataBean] identifier[getGalleryDataFromDict] operator[SEP] operator[SEP] Keyword[throws] identifier[SerializationException] { Keyword[return] operator[SEP] identifier[CmsGalleryDataBean] operator[SEP] identifier[CmsRpcPrefetcher] operator[SEP] identifier[getS...
public void setDataAttribute(String key, Object newValue) { cacheData.setCmpAttribute(key, newValue); if (logger.isDebugEnabled()) { logger.debug("Activity context with handle " + getActivityContextHandle() + " set cmp attribute named " + key + " to value " + newValue); } }
class class_name[name] begin[{] method[setDataAttribute, return_type[void], modifier[public], parameter[key, newValue]] begin[{] call[cacheData.setCmpAttribute, parameter[member[.key], member[.newValue]]] if[call[logger.isDebugEnabled, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setDataAttribute] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[newValue] operator[SEP] { identifier[cacheData] operator[SEP] identifier[setCmpAttribute] operator[SEP] identifier[key] , identifier[newValue] operator[SEP] operator[SEP] ...
@Indexable(type = IndexableType.REINDEX) @Override public CommerceWishList updateCommerceWishList( CommerceWishList commerceWishList) { return commerceWishListPersistence.update(commerceWishList); }
class class_name[name] begin[{] method[updateCommerceWishList, return_type[type[CommerceWishList]], modifier[public], parameter[commerceWishList]] begin[{] return[call[commerceWishListPersistence.update, parameter[member[.commerceWishList]]]] end[}] END[}]
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[REINDEX] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceWishList] identifier[updateCommerceWishList] operator[SEP] identifier[CommerceWishList] identifie...
public static IAtomContainer getAtomContainer(IMolecularFormula formula, IAtomContainer atomContainer) { for (IIsotope isotope : formula.isotopes()) { int occur = formula.getIsotopeCount(isotope); for (int i = 0; i < occur; i++) { IAtom atom = formula.getBuilder().newIns...
class class_name[name] begin[{] method[getAtomContainer, return_type[type[IAtomContainer]], modifier[public static], parameter[formula, atomContainer]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[...
Keyword[public] Keyword[static] identifier[IAtomContainer] identifier[getAtomContainer] operator[SEP] identifier[IMolecularFormula] identifier[formula] , identifier[IAtomContainer] identifier[atomContainer] operator[SEP] { Keyword[for] operator[SEP] identifier[IIsotope] identifier[isotope] operator[:] identifi...
GVRShader makeTemplate(Class<? extends GVRShader> id, GVRContext ctx) { try { Constructor<? extends GVRShader> maker = id.getDeclaredConstructor(GVRContext.class); return maker.newInstance(ctx); } catch (NoSuchMethodException | IllegalAccessException | Instant...
class class_name[name] begin[{] method[makeTemplate, return_type[type[GVRShader]], modifier[default], parameter[id, ctx]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ClassReference(postfix_o...
identifier[GVRShader] identifier[makeTemplate] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[GVRShader] operator[>] identifier[id] , identifier[GVRContext] identifier[ctx] operator[SEP] { Keyword[try] { identifier[Constructor] operator[<] operator[?] Keyword[exte...
public DownloadMaterialResponse downloadMaterial(String mediaId, MaterialType type){ DownloadMaterialResponse response = new DownloadMaterialResponse(); String url = BASE_API_URL + "cgi-bin/material/get_material?access_token=" + config.getAccessToken(); RequestConfig config = RequestConfig.custo...
class class_name[name] begin[{] method[downloadMaterial, return_type[type[DownloadMaterialResponse]], modifier[public], parameter[mediaId, type]] begin[{] local_variable[type[DownloadMaterialResponse], response] local_variable[type[String], url] local_variable[type[RequestConfig], confi...
Keyword[public] identifier[DownloadMaterialResponse] identifier[downloadMaterial] operator[SEP] identifier[String] identifier[mediaId] , identifier[MaterialType] identifier[type] operator[SEP] { identifier[DownloadMaterialResponse] identifier[response] operator[=] Keyword[new] identifier[DownloadMaterialRespons...
public DescribeMatchmakingResult withTicketList(MatchmakingTicket... ticketList) { if (this.ticketList == null) { setTicketList(new java.util.ArrayList<MatchmakingTicket>(ticketList.length)); } for (MatchmakingTicket ele : ticketList) { this.ticketList.add(ele); }...
class class_name[name] begin[{] method[withTicketList, return_type[type[DescribeMatchmakingResult]], modifier[public], parameter[ticketList]] begin[{] if[binary_operation[THIS[member[None.ticketList]], ==, literal[null]]] begin[{] call[.setTicketList, parameter[ClassCrea...
Keyword[public] identifier[DescribeMatchmakingResult] identifier[withTicketList] operator[SEP] identifier[MatchmakingTicket] operator[...] identifier[ticketList] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[ticketList] operator[==] Other[null] operator[SEP] { identi...
public static boolean hasValidCppCharacters(String s) { for (char c : s.toCharArray()) { if (!isValidCppCharacter(c)) { return false; } } return true; }
class class_name[name] begin[{] method[hasValidCppCharacters, return_type[type[boolean]], modifier[public static], parameter[s]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=c, postfix_operators=[], prefix_ope...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasValidCppCharacters] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[for] operator[SEP] Keyword[char] identifier[c] operator[:] identifier[s] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] operator[SEP] { ...
public static List<String> getInboundLayerNamesFromConfig(Map<String, Object> layerConfig, KerasLayerConfiguration conf) { List<String> inboundLayerNames = new ArrayList<>(); if (layerConfig.containsKey(conf.getLAYER_FIELD_INBOUND_NODES())) { List<Object> inboundNodes = (List<Object>) layerC...
class class_name[name] begin[{] method[getInboundLayerNamesFromConfig, return_type[type[List]], modifier[public static], parameter[layerConfig, conf]] begin[{] local_variable[type[List], inboundLayerNames] if[call[layerConfig.containsKey, parameter[call[conf.getLAYER_FIELD_INBOUND_NODES...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[getInboundLayerNamesFromConfig] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[layerConfig] , identifier[KerasLayerConfiguration] identifier[conf] operator[S...
public boolean isParentAnEmptyDirectory(File file) { File parent = file.getParentFile(); if (parent != null && parent.exists() && parent.isDirectory() && parent.list().length == 0) { return true; } return false; }
class class_name[name] begin[{] method[isParentAnEmptyDirectory, return_type[type[boolean]], modifier[public], parameter[file]] begin[{] local_variable[type[File], parent] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.parent], !=, literal[null]], &&, cal...
Keyword[public] Keyword[boolean] identifier[isParentAnEmptyDirectory] operator[SEP] identifier[File] identifier[file] operator[SEP] { identifier[File] identifier[parent] operator[=] identifier[file] operator[SEP] identifier[getParentFile] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identi...
public TemporalDependencyMatrix calculateTemporalDistance(GroupElement groupElement) { // find the events List<Pattern> events = new ArrayList<Pattern>(); selectAllEventPatterns( events, groupElement ); final int size = events.size(); if ( size >=...
class class_name[name] begin[{] method[calculateTemporalDistance, return_type[type[TemporalDependencyMatrix]], modifier[public], parameter[groupElement]] begin[{] local_variable[type[List], events] call[.selectAllEventPatterns, parameter[member[.events], member[.groupElement]]] ...
Keyword[public] identifier[TemporalDependencyMatrix] identifier[calculateTemporalDistance] operator[SEP] identifier[GroupElement] identifier[groupElement] operator[SEP] { identifier[List] operator[<] identifier[Pattern] operator[>] identifier[events] operator[=] Keyword[new] identifier[ArrayList] operator[<] ide...
public LinkedHashMap<String, String> buildHttpArguments(){ //Init http arguments LinkedHashMap<String, String> httpArguments = new LinkedHashMap<String,String>(); return httpArguments; }
class class_name[name] begin[{] method[buildHttpArguments, return_type[type[LinkedHashMap]], modifier[public], parameter[]] begin[{] local_variable[type[LinkedHashMap], httpArguments] return[member[.httpArguments]] end[}] END[}]
Keyword[public] identifier[LinkedHashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[buildHttpArguments] operator[SEP] operator[SEP] { identifier[LinkedHashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[httpArguments] operator[=] Keyword[new] ide...
public Map<String, Object> validateTokenAndGetClaims(final String token) { final CommonProfile profile = validateToken(token); final Map<String, Object> claims = new HashMap<>(profile.getAttributes()); claims.put(JwtClaims.SUBJECT, profile.getId()); return claims; }
class class_name[name] begin[{] method[validateTokenAndGetClaims, return_type[type[Map]], modifier[public], parameter[token]] begin[{] local_variable[type[CommonProfile], profile] local_variable[type[Map], claims] call[claims.put, parameter[member[JwtClaims.SUBJECT], call[profil...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[validateTokenAndGetClaims] operator[SEP] Keyword[final] identifier[String] identifier[token] operator[SEP] { Keyword[final] identifier[CommonProfile] identifier[profile] operator[=] identifier[validateToke...
public static int cudaHostGetDevicePointer(Pointer pDevice, Pointer pHost, int flags) { return checkResult(cudaHostGetDevicePointerNative(pDevice, pHost, flags)); }
class class_name[name] begin[{] method[cudaHostGetDevicePointer, return_type[type[int]], modifier[public static], parameter[pDevice, pHost, flags]] begin[{] return[call[.checkResult, parameter[call[.cudaHostGetDevicePointerNative, parameter[member[.pDevice], member[.pHost], member[.flags]]]]]] end[...
Keyword[public] Keyword[static] Keyword[int] identifier[cudaHostGetDevicePointer] operator[SEP] identifier[Pointer] identifier[pDevice] , identifier[Pointer] identifier[pHost] , Keyword[int] identifier[flags] operator[SEP] { Keyword[return] identifier[checkResult] operator[SEP] identifier[cudaHostGetDevicePoin...
@CheckForNull @Restricted(NoExternalUse.class) public String checkJavaVersion(final PrintStream logger, String javaCommand, final BufferedReader r, final StringWriter output) throws IOException { String line; while (null != (line = r.readLine())) { ...
class class_name[name] begin[{] method[checkJavaVersion, return_type[type[String]], modifier[public], parameter[logger, javaCommand, r, output]] begin[{] local_variable[type[String], line] while[binary_operation[literal[null], !=, assign[member[.line], call[r.readLine, parameter[]]]]] b...
annotation[@] identifier[CheckForNull] annotation[@] identifier[Restricted] operator[SEP] identifier[NoExternalUse] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[String] identifier[checkJavaVersion] operator[SEP] Keyword[final] identifier[PrintStream] identifier[logger] , identifier[String] ide...
public EClass getIfcConversionBasedUnit() { if (ifcConversionBasedUnitEClass == null) { ifcConversionBasedUnitEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(118); } return ifcConversionBasedUnitEClass; }
class class_name[name] begin[{] method[getIfcConversionBasedUnit, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcConversionBasedUnitEClass], ==, literal[null]]] begin[{] assign[member[.ifcConversionBasedUnitEClass], Cast...
Keyword[public] identifier[EClass] identifier[getIfcConversionBasedUnit] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcConversionBasedUnitEClass] operator[==] Other[null] operator[SEP] { identifier[ifcConversionBasedUnitEClass] operator[=] operator[SEP] identifier[EClass] opera...
public final Transaction beginTransaction(SessionName session, TransactionOptions options) { BeginTransactionRequest request = BeginTransactionRequest.newBuilder() .setSession(session == null ? null : session.toString()) .setOptions(options) .build(); return beginTra...
class class_name[name] begin[{] method[beginTransaction, return_type[type[Transaction]], modifier[final public], parameter[session, options]] begin[{] local_variable[type[BeginTransactionRequest], request] return[call[.beginTransaction, parameter[member[.request]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[Transaction] identifier[beginTransaction] operator[SEP] identifier[SessionName] identifier[session] , identifier[TransactionOptions] identifier[options] operator[SEP] { identifier[BeginTransactionRequest] identifier[request] operator[=] identifier[BeginTransactionReques...
public static OAuth20ResponseModeTypes getResponseModeType(final J2EContext context) { val responseType = context.getRequestParameter(OAuth20Constants.RESPONSE_MODE); val type = Arrays.stream(OAuth20ResponseModeTypes.values()) .filter(t -> t.getType().equalsIgnoreCase(responseType)) ...
class class_name[name] begin[{] method[getResponseModeType, return_type[type[OAuth20ResponseModeTypes]], modifier[public static], parameter[context]] begin[{] local_variable[type[val], responseType] local_variable[type[val], type] call[LOGGER.debug, parameter[literal["OAuth resp...
Keyword[public] Keyword[static] identifier[OAuth20ResponseModeTypes] identifier[getResponseModeType] operator[SEP] Keyword[final] identifier[J2EContext] identifier[context] operator[SEP] { identifier[val] identifier[responseType] operator[=] identifier[context] operator[SEP] identifier[getRequestParameter] opera...
public String getPressCommand (int keyCode) { KeyRecord krec = _keys.get(keyCode); return (krec == null) ? null : krec.pressCommand; }
class class_name[name] begin[{] method[getPressCommand, return_type[type[String]], modifier[public], parameter[keyCode]] begin[{] local_variable[type[KeyRecord], krec] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=krec, postfix_operators=[], prefix_operators...
Keyword[public] identifier[String] identifier[getPressCommand] operator[SEP] Keyword[int] identifier[keyCode] operator[SEP] { identifier[KeyRecord] identifier[krec] operator[=] identifier[_keys] operator[SEP] identifier[get] operator[SEP] identifier[keyCode] operator[SEP] operator[SEP] Keyword[return] operator[S...
public static int optionLength(final String option) { // Any arguments used for the doclet need to be recognized here. Many javadoc plugins (ie. gradle) // automatically add some such as "-doctitle", "-windowtitle", which we ignore. if (option.equals(DOC_TITLE_OPTION) || option.equal...
class class_name[name] begin[{] method[optionLength, return_type[type[int]], modifier[public static], parameter[option]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[call[option.equals, parameter[member[.DOC_T...
Keyword[public] Keyword[static] Keyword[int] identifier[optionLength] operator[SEP] Keyword[final] identifier[String] identifier[option] operator[SEP] { Keyword[if] operator[SEP] identifier[option] operator[SEP] identifier[equals] operator[SEP] identifier[DOC_TITLE_OPTION] operator[SEP] operator[||] identifier[o...
public static <T> T checkPrecondition( final T value, final ContractConditionType<T> condition) throws PreconditionViolationException { return checkPrecondition( value, condition.predicate(), condition.describer()); }
class class_name[name] begin[{] method[checkPrecondition, return_type[type[T]], modifier[public static], parameter[value, condition]] begin[{] return[call[.checkPrecondition, parameter[member[.value], call[condition.predicate, parameter[]], call[condition.describer, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[checkPrecondition] operator[SEP] Keyword[final] identifier[T] identifier[value] , Keyword[final] identifier[ContractConditionType] operator[<] identifier[T] operator[>] identifier[condition] operator[SEP] Keyword[throws] ide...
public double getProd() { double prod = s.one(); for (int c = 0; c < this.values.length; c++) { prod = s.times(prod, values[c]); } return prod; }
class class_name[name] begin[{] method[getProd, return_type[type[double]], modifier[public], parameter[]] begin[{] local_variable[type[double], prod] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=prod, postf...
Keyword[public] Keyword[double] identifier[getProd] operator[SEP] operator[SEP] { Keyword[double] identifier[prod] operator[=] identifier[s] operator[SEP] identifier[one] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[c] operator[=] Other[0] operator[SEP] identifier[...
protected void activate(Map<String, Object> properties, ComponentContext context) { sslOptions.activate(context); sslFactoryProvider.activate(context); wsocChain.init(WS_CHAIN_NAME, chfw.getFramework()); wsocSecureChain.init(WSS_CHAIN_NAME, chfw.getFramework()); modified(prope...
class class_name[name] begin[{] method[activate, return_type[void], modifier[protected], parameter[properties, context]] begin[{] call[sslOptions.activate, parameter[member[.context]]] call[sslFactoryProvider.activate, parameter[member[.context]]] call[wsocChain....
Keyword[protected] Keyword[void] identifier[activate] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] , identifier[ComponentContext] identifier[context] operator[SEP] { identifier[sslOptions] operator[SEP] identifier[activate] operator[SEP] i...
public void fit(@NonNull MultiDataSetIterator iterator) { List<S.Builder> featureNormBuilders = new ArrayList<>(); List<S.Builder> labelNormBuilders = new ArrayList<>(); iterator.reset(); while (iterator.hasNext()) { MultiDataSet next = iterator.next(); fitPartia...
class class_name[name] begin[{] method[fit, return_type[void], modifier[public], parameter[iterator]] begin[{] local_variable[type[List], featureNormBuilders] local_variable[type[List], labelNormBuilders] call[iterator.reset, parameter[]] while[call[iterator.hasN...
Keyword[public] Keyword[void] identifier[fit] operator[SEP] annotation[@] identifier[NonNull] identifier[MultiDataSetIterator] identifier[iterator] operator[SEP] { identifier[List] operator[<] identifier[S] operator[SEP] identifier[Builder] operator[>] identifier[featureNormBuilders] operator[=] Keyword[new] ide...
public static HtmlTree SCRIPT(String src) { HtmlTree htmltree = HtmlTree.SCRIPT(); htmltree.addAttr(HtmlAttr.SRC, nullCheck(src)); return htmltree; }
class class_name[name] begin[{] method[SCRIPT, return_type[type[HtmlTree]], modifier[public static], parameter[src]] begin[{] local_variable[type[HtmlTree], htmltree] call[htmltree.addAttr, parameter[member[HtmlAttr.SRC], call[.nullCheck, parameter[member[.src]]]]] return[member...
Keyword[public] Keyword[static] identifier[HtmlTree] identifier[SCRIPT] operator[SEP] identifier[String] identifier[src] operator[SEP] { identifier[HtmlTree] identifier[htmltree] operator[=] identifier[HtmlTree] operator[SEP] identifier[SCRIPT] operator[SEP] operator[SEP] operator[SEP] identifier[htmltree] opera...
public String getProperty(String key) { String v = propertiesMap.get(key); if (v != null) { return v; } else { return context.getProperty(key); } }
class class_name[name] begin[{] method[getProperty, return_type[type[String]], modifier[public], parameter[key]] begin[{] local_variable[type[String], v] if[binary_operation[member[.v], !=, literal[null]]] begin[{] return[member[.v]] else begin[{] return[...
Keyword[public] identifier[String] identifier[getProperty] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[String] identifier[v] operator[=] identifier[propertiesMap] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] iden...