code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
void mapPut(S storable) { mMap.put(new Key<S>(storable, mFullComparator), storable); }
class class_name[name] begin[{] method[mapPut, return_type[void], modifier[default], parameter[storable]] begin[{] call[mMap.put, parameter[ClassCreator(arguments=[MemberReference(member=storable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=mFull...
Keyword[void] identifier[mapPut] operator[SEP] identifier[S] identifier[storable] operator[SEP] { identifier[mMap] operator[SEP] identifier[put] operator[SEP] Keyword[new] identifier[Key] operator[<] identifier[S] operator[>] operator[SEP] identifier[storable] , identifier[mFullComparator] operator[SEP] , iden...
private String resolveCompositeKey(String key, Properties props) { String value = null; // Look for the comma int comma = key.indexOf(','); if (comma > -1) { // If we have a first part, try resolve it if (comma > 0) { // Check the first part ...
class class_name[name] begin[{] method[resolveCompositeKey, return_type[type[String]], modifier[private], parameter[key, props]] begin[{] local_variable[type[String], value] local_variable[type[int], comma] if[binary_operation[member[.comma], >, literal[1]]] begin[{] ...
Keyword[private] identifier[String] identifier[resolveCompositeKey] operator[SEP] identifier[String] identifier[key] , identifier[Properties] identifier[props] operator[SEP] { identifier[String] identifier[value] operator[=] Other[null] operator[SEP] Keyword[int] identifier[comma] operator[=] identifier[key] op...
public static Properties load(File file) throws IOException { if (file.isFile()) { return load(file.toURI().toURL()); } return new Properties(); }
class class_name[name] begin[{] method[load, return_type[type[Properties]], modifier[public static], parameter[file]] begin[{] if[call[file.isFile, parameter[]]] begin[{] return[call[.load, parameter[call[file.toURI, parameter[]]]]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Properties] identifier[load] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[file] operator[SEP] identifier[isFile] operator[SEP] operator[SEP] operator[SEP] { Keywor...
@Deprecated public static int count(String string, CodePointPredicate predicate) { return StringIterate.countCodePoint(string, predicate); }
class class_name[name] begin[{] method[count, return_type[type[int]], modifier[public static], parameter[string, predicate]] begin[{] return[call[StringIterate.countCodePoint, parameter[member[.string], member[.predicate]]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[int] identifier[count] operator[SEP] identifier[String] identifier[string] , identifier[CodePointPredicate] identifier[predicate] operator[SEP] { Keyword[return] identifier[StringIterate] operator[SEP] identifier[countCodePoint] operat...
@Override public S handle(int version, water.api.Route route, Properties parms, String postBody) throws Exception { // Only here for train or validate-parms if( !route._handler_method.getName().equals("train") ) throw water.H2O.unimpl(); // Peek out the desired algo from the URL String ss[] = r...
class class_name[name] begin[{] method[handle, return_type[type[S]], modifier[public], parameter[version, route, parms, postBody]] begin[{] if[call[route._handler_method.getName, parameter[]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[], member=unimpl, postfix_operators=[],...
annotation[@] identifier[Override] Keyword[public] identifier[S] identifier[handle] operator[SEP] Keyword[int] identifier[version] , identifier[water] operator[SEP] identifier[api] operator[SEP] identifier[Route] identifier[route] , identifier[Properties] identifier[parms] , identifier[String] identifier[postBody] o...
private PostMethod getRequestMethod(boolean refresh, String id) throws UnsupportedEncodingException { GOCTransport gocTransport = new GOCTransport(); EndpointInfo endpointInfo = gocTransport.getEndpointInfo(_config, _logger, refresh); // Create upsert URI with PATCH method PostMethod post = new PostMethod(Stri...
class class_name[name] begin[{] method[getRequestMethod, return_type[type[PostMethod]], modifier[private], parameter[refresh, id]] begin[{] local_variable[type[GOCTransport], gocTransport] local_variable[type[EndpointInfo], endpointInfo] local_variable[type[PostMethod], post] ...
Keyword[private] identifier[PostMethod] identifier[getRequestMethod] operator[SEP] Keyword[boolean] identifier[refresh] , identifier[String] identifier[id] operator[SEP] Keyword[throws] identifier[UnsupportedEncodingException] { identifier[GOCTransport] identifier[gocTransport] operator[=] Keyword[new] identifi...
private static boolean isOneVMPerClass(Object mojo) throws Exception { // We already know that we fork process (checked in // precondition). Threfore if we see reuseForks=false, we know // that one class will be run in one VM. try { return !invokeAndGetBoolean(IS_REUSE_FORKS,...
class class_name[name] begin[{] method[isOneVMPerClass, return_type[type[boolean]], modifier[private static], parameter[mojo]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=IS_REUSE_FORKS, postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isOneVMPerClass] operator[SEP] identifier[Object] identifier[mojo] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[try] { Keyword[return] operator[!] identifier[invokeAndGetBoolean] operator[SEP] identifier[IS_REUSE_FORKS] , i...
private CtField createStampField(final CtClass candidateClass) throws CannotCompileException { int stampModifiers = AccessFlag.STATIC | AccessFlag.FINAL; if (!candidateClass.isInterface()) { stampModifiers |= AccessFlag.PRIVATE; } else { stampModifiers |= AccessFlag.PUBLIC; } final CtFie...
class class_name[name] begin[{] method[createStampField, return_type[type[CtField]], modifier[private], parameter[candidateClass]] begin[{] local_variable[type[int], stampModifiers] if[call[candidateClass.isInterface, parameter[]]] begin[{] assign[member[.stampMo...
Keyword[private] identifier[CtField] identifier[createStampField] operator[SEP] Keyword[final] identifier[CtClass] identifier[candidateClass] operator[SEP] Keyword[throws] identifier[CannotCompileException] { Keyword[int] identifier[stampModifiers] operator[=] identifier[AccessFlag] operator[SEP] identifier[STAT...
private String[] splitSeqName(String sequenceName) { String[] result = new String[3]; String[] barSplit = sequenceName.split("/"); if (barSplit.length == 2) { result[0] = barSplit[0]; String[] positions = barSplit[1].split("-"); if (positions.length == 2) { result[1] = positions[0]; result[2] = ...
class class_name[name] begin[{] method[splitSeqName, return_type[type[String]], modifier[private], parameter[sequenceName]] begin[{] local_variable[type[String], result] local_variable[type[String], barSplit] if[binary_operation[member[barSplit.length], ==, literal[2]]] begin[{]...
Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[splitSeqName] operator[SEP] identifier[String] identifier[sequenceName] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] identifier[String] operator[SEP] Other[3] operator[SEP] ope...
public OStorageConfigurationImpl load(final OContextConfiguration configuration) throws OSerializationException { lock.acquireWriteLock(); try { initConfiguration(configuration); final byte[] record = storage.readRecord(CONFIG_RID, null, false, false, null).getResult().buffer; if (record == ...
class class_name[name] begin[{] method[load, return_type[type[OStorageConfigurationImpl]], modifier[public], parameter[configuration]] begin[{] call[lock.acquireWriteLock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=...
Keyword[public] identifier[OStorageConfigurationImpl] identifier[load] operator[SEP] Keyword[final] identifier[OContextConfiguration] identifier[configuration] operator[SEP] Keyword[throws] identifier[OSerializationException] { identifier[lock] operator[SEP] identifier[acquireWriteLock] operator[SEP] operator[SE...
public void marshall(DeleteDeploymentRequest deleteDeploymentRequest, ProtocolMarshaller protocolMarshaller) { if (deleteDeploymentRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteDepl...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteDeploymentRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteDeploymentRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteDeploymentRequest] identifier[deleteDeploymentRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteDeploymentRequest] operator[==] Other[null] operator...
public static Checksum checksum(File file, Checksum checksum) throws IORuntimeException { Assert.notNull(file, "File is null !"); if (file.isDirectory()) { throw new IllegalArgumentException("Checksums can't be computed on directories"); } try { return IoUtil.checksum(new FileInputStream(file), chec...
class class_name[name] begin[{] method[checksum, return_type[type[Checksum]], modifier[public static], parameter[file, checksum]] begin[{] call[Assert.notNull, parameter[member[.file], literal["File is null !"]]] if[call[file.isDirectory, parameter[]]] begin[{] Throw...
Keyword[public] Keyword[static] identifier[Checksum] identifier[checksum] operator[SEP] identifier[File] identifier[file] , identifier[Checksum] identifier[checksum] operator[SEP] Keyword[throws] identifier[IORuntimeException] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[file]...
public byte[] read(final String _resourceName) { byte[] ret = null; EFapsClassLoader.LOG.debug("read ''", _resourceName); try { final QueryBuilder queryBuilder = new QueryBuilder(this.classType); queryBuilder.addWhereAttrEqValue("Name", _resourceName); fin...
class class_name[name] begin[{] method[read, return_type[type[byte]], modifier[public], parameter[_resourceName]] begin[{] local_variable[type[byte], ret] call[EFapsClassLoader.LOG.debug, parameter[literal["read ''"], member[._resourceName]]] TryStatement(block=[LocalVariableDec...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[read] operator[SEP] Keyword[final] identifier[String] identifier[_resourceName] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[ret] operator[=] Other[null] operator[SEP] identifier[EFapsClassLoader] operator[SEP] identifie...
public static GitLabApi oauth2Login(String url, String username, char[] password) throws GitLabApiException { try (SecretString secretPassword = new SecretString(password)) { return (GitLabApi.oauth2Login(ApiVersion.V4, url, username, secretPassword, null, null, false)); } }
class class_name[name] begin[{] method[oauth2Login, return_type[type[GitLabApi]], modifier[public static], parameter[url, username, password]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=V4, postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[static] identifier[GitLabApi] identifier[oauth2Login] operator[SEP] identifier[String] identifier[url] , identifier[String] identifier[username] , Keyword[char] operator[SEP] operator[SEP] identifier[password] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[try] o...
public static void createFileStructure(final File projectDir) throws IOException { /* * create an empty project file structure */ if (! projectDir.exists() && ! projectDir.mkdirs()) { throw new IOException("failed creating project base dir: " + projectDir.getAbsolutePath()); ...
class class_name[name] begin[{] method[createFileStructure, return_type[void], modifier[public static], parameter[projectDir]] begin[{] if[binary_operation[call[projectDir.exists, parameter[]], &&, call[projectDir.mkdirs, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreato...
Keyword[public] Keyword[static] Keyword[void] identifier[createFileStructure] operator[SEP] Keyword[final] identifier[File] identifier[projectDir] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[projectDir] operator[SEP] identifier[exists] operator[SEP] op...
@NonNull @Override public MutableDictionary setLong(@NonNull String key, long value) { return setValue(key, value); }
class class_name[name] begin[{] method[setLong, return_type[type[MutableDictionary]], modifier[public], parameter[key, value]] begin[{] return[call[.setValue, parameter[member[.key], member[.value]]]] end[}] END[}]
annotation[@] identifier[NonNull] annotation[@] identifier[Override] Keyword[public] identifier[MutableDictionary] identifier[setLong] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[key] , Keyword[long] identifier[value] operator[SEP] { Keyword[return] identifier[setValue] operato...
public boolean accept(final Node aNode) { if (oldPrefix.equals(aNode.getPrefix())) { // Process any nodes on the form [oldPrefix]:something. return true; } if (aNode instanceof Attr) { // These cases are defined by attribute properties. ...
class class_name[name] begin[{] method[accept, return_type[type[boolean]], modifier[public], parameter[aNode]] begin[{] if[call[oldPrefix.equals, parameter[call[aNode.getPrefix, parameter[]]]]] begin[{] return[literal[true]] else begin[{] None end[}] ...
Keyword[public] Keyword[boolean] identifier[accept] operator[SEP] Keyword[final] identifier[Node] identifier[aNode] operator[SEP] { Keyword[if] operator[SEP] identifier[oldPrefix] operator[SEP] identifier[equals] operator[SEP] identifier[aNode] operator[SEP] identifier[getPrefix] operator[SEP] operator[SEP] oper...
private static boolean isUnaryComparison(@Nullable Object value) { return value == null || value.equals(Double.NaN) || value.equals(Float.NaN); }
class class_name[name] begin[{] method[isUnaryComparison, return_type[type[boolean]], modifier[private static], parameter[value]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.value], ==, literal[null]], ||, call[value.equals, parameter[member[Double.NaN]]]], ||, call[value...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isUnaryComparison] operator[SEP] annotation[@] identifier[Nullable] identifier[Object] identifier[value] operator[SEP] { Keyword[return] identifier[value] operator[==] Other[null] operator[||] identifier[value] operator[SEP] identifier[equals] operator...
boolean isMonitored(HttpSession session) { boolean monitor = false; if (null != session && session.getAttribute(Constants.Options.OPTIONS) != null) { monitor = ((Options) session.getAttribute(Constants.Options.OPTIONS)).isMonitor(); } return monitor; }
class class_name[name] begin[{] method[isMonitored, return_type[type[boolean]], modifier[default], parameter[session]] begin[{] local_variable[type[boolean], monitor] if[binary_operation[binary_operation[literal[null], !=, member[.session]], &&, binary_operation[call[session.getAttribut...
Keyword[boolean] identifier[isMonitored] operator[SEP] identifier[HttpSession] identifier[session] operator[SEP] { Keyword[boolean] identifier[monitor] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[!=] identifier[session] operator[&&] identifier[session] operator[SEP] ...
public static double distanceBetweenSolutionsInObjectiveSpace(DoubleSolution solutionI, DoubleSolution solutionJ) { double distance = 0.0; double diff; for (int i = 0; i < solutionI.getNumberOfVariables(); i++) { diff = solutionI.getVariableValue(i) - solutionJ.getVariableValue(i); distance += ...
class class_name[name] begin[{] method[distanceBetweenSolutionsInObjectiveSpace, return_type[type[double]], modifier[public static], parameter[solutionI, solutionJ]] begin[{] local_variable[type[double], distance] local_variable[type[double], diff] ForStatement(body=BlockStatement(label...
Keyword[public] Keyword[static] Keyword[double] identifier[distanceBetweenSolutionsInObjectiveSpace] operator[SEP] identifier[DoubleSolution] identifier[solutionI] , identifier[DoubleSolution] identifier[solutionJ] operator[SEP] { Keyword[double] identifier[distance] operator[=] literal[Float] operator[SEP] Key...
@Override public String getBeanName(Object parent, Container container) { if(FORCE_V2) { return v2BeanName; } if(beanName == null) { try { Class.forName("com.facebook.Session"); // We assume that if this class exists, we are v3+ beanName = v3BeanName; } catch (ClassNotFoundException e)...
class class_name[name] begin[{] method[getBeanName, return_type[type[String]], modifier[public], parameter[parent, container]] begin[{] if[member[.FORCE_V2]] begin[{] return[member[.v2BeanName]] else begin[{] None end[}] if[binary_operation[member[.be...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getBeanName] operator[SEP] identifier[Object] identifier[parent] , identifier[Container] identifier[container] operator[SEP] { Keyword[if] operator[SEP] identifier[FORCE_V2] operator[SEP] { Keyword[return] identifier[v2B...
public static final FileSystem newFileSystem(Path path, Map<String,?> env) throws IOException { return getDefault().provider().newFileSystem(path, env); }
class class_name[name] begin[{] method[newFileSystem, return_type[type[FileSystem]], modifier[final public static], parameter[path, env]] begin[{] return[call[.getDefault, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] identifier[FileSystem] identifier[newFileSystem] operator[SEP] identifier[Path] identifier[path] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[env] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] iden...
public static ClassLoader resolveClassLoaderForBeanProxy(String contextId, Class<?> proxiedType, TypeInfo typeInfo, ProxyServices proxyServices) { Class<?> superClass = typeInfo.getSuperClass(); if (superClass.getName().startsWith(JAVA)) { ClassLoader cl = proxyServices.getClassLoader(proxie...
class class_name[name] begin[{] method[resolveClassLoaderForBeanProxy, return_type[type[ClassLoader]], modifier[public static], parameter[contextId, proxiedType, typeInfo, proxyServices]] begin[{] local_variable[type[Class], superClass] if[call[superClass.getName, parameter[]]] begin[{]...
Keyword[public] Keyword[static] identifier[ClassLoader] identifier[resolveClassLoaderForBeanProxy] operator[SEP] identifier[String] identifier[contextId] , identifier[Class] operator[<] operator[?] operator[>] identifier[proxiedType] , identifier[TypeInfo] identifier[typeInfo] , identifier[ProxyServices] identifier[...
public static <V> PnkyPromise<V> composeAsync(final ThrowingSupplier<PnkyPromise<V>> operation, final Executor executor) { final Pnky<V> pnky = Pnky.create(); executor.execute(new Runnable() { @Override public void run() { if (pnky.state.compareAndSet(WAITING, RUNNING)) ...
class class_name[name] begin[{] method[composeAsync, return_type[type[PnkyPromise]], modifier[public static], parameter[operation, executor]] begin[{] local_variable[type[Pnky], pnky] call[executor.execute, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annota...
Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[PnkyPromise] operator[<] identifier[V] operator[>] identifier[composeAsync] operator[SEP] Keyword[final] identifier[ThrowingSupplier] operator[<] identifier[PnkyPromise] operator[<] identifier[V] operator[>] operator[>] identifier[operatio...
public static <T extends MethodDescription> ElementMatcher.Junction<T> isGetter() { return takesArguments(0).and(not(returns(TypeDescription.VOID))).and(nameStartsWith("get").or(nameStartsWith("is").and(returnsGeneric(anyOf(boolean.class, Boolean.class))))); }
class class_name[name] begin[{] method[isGetter, return_type[type[ElementMatcher]], modifier[public static], parameter[]] begin[{] return[call[.takesArguments, parameter[literal[0]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[MethodDescription] operator[>] identifier[ElementMatcher] operator[SEP] identifier[Junction] operator[<] identifier[T] operator[>] identifier[isGetter] operator[SEP] operator[SEP] { Keyword[return] identifier[takesArguments] op...
@Override public R visitDeprecated(DeprecatedTree node, P p) { return defaultAction(node, p); }
class class_name[name] begin[{] method[visitDeprecated, return_type[type[R]], modifier[public], parameter[node, p]] begin[{] return[call[.defaultAction, parameter[member[.node], member[.p]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[R] identifier[visitDeprecated] operator[SEP] identifier[DeprecatedTree] identifier[node] , identifier[P] identifier[p] operator[SEP] { Keyword[return] identifier[defaultAction] operator[SEP] identifier[node] , identifier[p] operator[SEP] operator[SE...
@Override public void writeArray(Object array) { if (array != null) { if (!checkWriteReference(array)) { storeReference(array); buf.put(AMF.TYPE_ARRAY); buf.putInt(Array.getLength(array)); for (int i = 0; i < Array.getLength(array);...
class class_name[name] begin[{] method[writeArray, return_type[void], modifier[public], parameter[array]] begin[{] if[binary_operation[member[.array], !=, literal[null]]] begin[{] if[call[.checkWriteReference, parameter[member[.array]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeArray] operator[SEP] identifier[Object] identifier[array] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[checkWriteRef...
@GwtIncompatible("Unnecessary") private String expandCommandLinePath(String path, JSModule forModule) { String sub; if (forModule != null) { sub = config.moduleOutputPathPrefix + forModule.getName() + ".js"; } else if (!config.module.isEmpty()) { sub = config.moduleOutputPathPrefix; } else...
class class_name[name] begin[{] method[expandCommandLinePath, return_type[type[String]], modifier[private], parameter[path, forModule]] begin[{] local_variable[type[String], sub] if[binary_operation[member[.forModule], !=, literal[null]]] begin[{] assign[member[....
annotation[@] identifier[GwtIncompatible] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[String] identifier[expandCommandLinePath] operator[SEP] identifier[String] identifier[path] , identifier[JSModule] identifier[forModule] operator[SEP] { identifier[String] identifier[sub] operator[S...
ConversationWebhookList listConversationWebhooks(final int offset, final int limit) throws UnauthorizedException, GeneralException { String url = CONVERSATIONS_BASE_URL + CONVERSATION_WEBHOOK_PATH; return messageBirdService.requestList(url, offset, limit, ConversationWebhookList.class); ...
class class_name[name] begin[{] method[listConversationWebhooks, return_type[type[ConversationWebhookList]], modifier[default], parameter[offset, limit]] begin[{] local_variable[type[String], url] return[call[messageBirdService.requestList, parameter[member[.url], member[.offset], member[.limit...
identifier[ConversationWebhookList] identifier[listConversationWebhooks] operator[SEP] Keyword[final] Keyword[int] identifier[offset] , Keyword[final] Keyword[int] identifier[limit] operator[SEP] Keyword[throws] identifier[UnauthorizedException] , identifier[GeneralException] { identifier[String] identifier[ur...
public synchronized void clear() { try { this.storage.close(); this.storage = provider.createStorage(); } catch (IOException e) { // major fuckup e.printStackTrace(); } this.size = 0; }
class class_name[name] begin[{] method[clear, return_type[void], modifier[synchronized public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=storage, postfix_operators=None, pre...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { Keyword[try] { Keyword[this] operator[SEP] identifier[storage] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[storage] operator[=] ident...
@Override public final void setClientID(String clientID) throws JMSException { super.setClientID(clientID); SetClientIDQuery query = new SetClientIDQuery(); query.setClientID(clientID); transportEndpoint.blockingRequest(query); }
class class_name[name] begin[{] method[setClientID, return_type[void], modifier[final public], parameter[clientID]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=clientID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setClientID, postfix_opera...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[setClientID] operator[SEP] identifier[String] identifier[clientID] operator[SEP] Keyword[throws] identifier[JMSException] { Keyword[super] operator[SEP] identifier[setClientID] operator[SEP] identifier[clientID] operator[S...
private static final int gatherIntLE(final byte[] data, final int index) { int i = data[index] & 0xFF; i |= (data[index + 1] & 0xFF) << 8; i |= (data[index + 2] & 0xFF) << 16; i |= (data[index + 3] << 24); return i; }
class class_name[name] begin[{] method[gatherIntLE, return_type[type[int]], modifier[final private static], parameter[data, index]] begin[{] local_variable[type[int], i] assign[member[.i], binary_operation[binary_operation[member[.data], &, literal[0xFF]], <<, literal[8]]] ...
Keyword[private] Keyword[static] Keyword[final] Keyword[int] identifier[gatherIntLE] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[final] Keyword[int] identifier[index] operator[SEP] { Keyword[int] identifier[i] operator[=] identifier[data] operator[SEP] ident...
protected String constructInStringsQuery(String query, Set<String> values) { String replace = "IN (?)"; assert query.lastIndexOf(replace) == query.indexOf(replace); String sql = query.replace("IN (?)", "IN (%s)"); StringBuffer list = new StringBuffer(); for (String value : value...
class class_name[name] begin[{] method[constructInStringsQuery, return_type[type[String]], modifier[protected], parameter[query, values]] begin[{] local_variable[type[String], replace] AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=replace,...
Keyword[protected] identifier[String] identifier[constructInStringsQuery] operator[SEP] identifier[String] identifier[query] , identifier[Set] operator[<] identifier[String] operator[>] identifier[values] operator[SEP] { identifier[String] identifier[replace] operator[=] literal[String] operator[SEP] Keyword[as...
private String buildFacetString(List<String> facetNames, List<String>facetValues ) { StringBuilder builder = new StringBuilder(); if( facetNames != null && facetValues != null ) { int pairsCount = -1; if( facetNames.size() != facetValues.size() ) { pairsCount = facetNames.size() > facetValues.size(...
class class_name[name] begin[{] method[buildFacetString, return_type[type[String]], modifier[private], parameter[facetNames, facetValues]] begin[{] local_variable[type[StringBuilder], builder] if[binary_operation[binary_operation[member[.facetNames], !=, literal[null]], &&, binary_opera...
Keyword[private] identifier[String] identifier[buildFacetString] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[facetNames] , identifier[List] operator[<] identifier[String] operator[>] identifier[facetValues] operator[SEP] { identifier[StringBuilder] identifier[builder] op...
private static String escapeJavaString(String input) { int len = input.length(); // assume (for performance, not for correctness) that string will not expand by more than 10 chars StringBuilder out = new StringBuilder(len + 10); for (int i = 0; i < len; i++) { char c = in...
class class_name[name] begin[{] method[escapeJavaString, return_type[type[String]], modifier[private static], parameter[input]] begin[{] local_variable[type[int], len] local_variable[type[StringBuilder], out] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclarat...
Keyword[private] Keyword[static] identifier[String] identifier[escapeJavaString] operator[SEP] identifier[String] identifier[input] operator[SEP] { Keyword[int] identifier[len] operator[=] identifier[input] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] ident...
public CompletableFuture<RaftSessionState> openSession( String serviceName, PrimitiveType primitiveType, ServiceConfig config, ReadConsistency readConsistency, CommunicationStrategy communicationStrategy, Duration minTimeout, Duration maxTimeout) { checkNotNull(serviceName,...
class class_name[name] begin[{] method[openSession, return_type[type[CompletableFuture]], modifier[public], parameter[serviceName, primitiveType, config, readConsistency, communicationStrategy, minTimeout, maxTimeout]] begin[{] call[.checkNotNull, parameter[member[.serviceName], literal["servic...
Keyword[public] identifier[CompletableFuture] operator[<] identifier[RaftSessionState] operator[>] identifier[openSession] operator[SEP] identifier[String] identifier[serviceName] , identifier[PrimitiveType] identifier[primitiveType] , identifier[ServiceConfig] identifier[config] , identifier[ReadConsistency] identi...
protected void sendTransacted(Destination destination, Serializable message) { send(destination, message, null, null, true); }
class class_name[name] begin[{] method[sendTransacted, return_type[void], modifier[protected], parameter[destination, message]] begin[{] call[.send, parameter[member[.destination], member[.message], literal[null], literal[null], literal[true]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[sendTransacted] operator[SEP] identifier[Destination] identifier[destination] , identifier[Serializable] identifier[message] operator[SEP] { identifier[send] operator[SEP] identifier[destination] , identifier[message] , Other[null] , Other[null] , literal[boolean]...
public void marshall(CloneStackRequest cloneStackRequest, ProtocolMarshaller protocolMarshaller) { if (cloneStackRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(cloneStackRequest.getSourceS...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[cloneStackRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.cloneStackRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CloneStackRequest] identifier[cloneStackRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[cloneStackRequest] operator[==] Other[null] operator[SEP] { ...
public MtasSpanQuery getQuery() throws ParseException { simplify(); MtasSpanSequenceItem currentQuery = null; List<MtasSpanSequenceItem> currentQueryList = null; for (MtasCQLParserBasicSentencePartCondition part : partList) { // start list if (currentQuery != null) { currentQueryList...
class class_name[name] begin[{] method[getQuery, return_type[type[MtasSpanQuery]], modifier[public], parameter[]] begin[{] call[.simplify, parameter[]] local_variable[type[MtasSpanSequenceItem], currentQuery] local_variable[type[List], currentQueryList] ForStatement(body...
Keyword[public] identifier[MtasSpanQuery] identifier[getQuery] operator[SEP] operator[SEP] Keyword[throws] identifier[ParseException] { identifier[simplify] operator[SEP] operator[SEP] operator[SEP] identifier[MtasSpanSequenceItem] identifier[currentQuery] operator[=] Other[null] operator[SEP] identifier[List] o...
@Override public ChannelPipelineFactory getPipelineFactory() { return new ChannelPipelineFactory() { @Override public ChannelPipeline getPipeline() throws Exception { final ChannelPipeline cp = Channels.pipeline(); ...
class class_name[name] begin[{] method[getPipelineFactory, return_type[type[ChannelPipelineFactory]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], d...
annotation[@] identifier[Override] Keyword[public] identifier[ChannelPipelineFactory] identifier[getPipelineFactory] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[ChannelPipelineFactory] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier...
public java.util.List<String> getIncludeOnlyStatuses() { if (includeOnlyStatuses == null) { includeOnlyStatuses = new com.amazonaws.internal.SdkInternalList<String>(); } return includeOnlyStatuses; }
class class_name[name] begin[{] method[getIncludeOnlyStatuses, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.includeOnlyStatuses], ==, literal[null]]] begin[{] assign[member[.includeOnlyStatuses], ClassCreator(arguments=[], ...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getIncludeOnlyStatuses] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[includeOnlyStatuses] operator[==] Other[null] operator[SEP] { ...
public void showMenu (Stage stage, Actor actor) { Vector2 pos = actor.localToStageCoordinates(tmpVector.setZero()); float menuY; if (pos.y - getHeight() <= 0) { menuY = pos.y + actor.getHeight() + getHeight() - sizes.borderSize; } else { menuY = pos.y + sizes.borderSize; } showMenu(stage, pos.x, menuY...
class class_name[name] begin[{] method[showMenu, return_type[void], modifier[public], parameter[stage, actor]] begin[{] local_variable[type[Vector2], pos] local_variable[type[float], menuY] if[binary_operation[binary_operation[member[pos.y], -, call[.getHeight, parameter[]]], <=...
Keyword[public] Keyword[void] identifier[showMenu] operator[SEP] identifier[Stage] identifier[stage] , identifier[Actor] identifier[actor] operator[SEP] { identifier[Vector2] identifier[pos] operator[=] identifier[actor] operator[SEP] identifier[localToStageCoordinates] operator[SEP] identifier[tmpVector] opera...
public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh) throws org.xml.sax.SAXException { String str = str(); lh.comment(str.toCharArray(), 0, str.length()); }
class class_name[name] begin[{] method[dispatchAsComment, return_type[void], modifier[public], parameter[lh]] begin[{] local_variable[type[String], str] call[lh.comment, parameter[call[str.toCharArray, parameter[]], literal[0], call[str.length, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[dispatchAsComment] operator[SEP] identifier[org] operator[SEP] identifier[xml] operator[SEP] identifier[sax] operator[SEP] identifier[ext] operator[SEP] identifier[LexicalHandler] identifier[lh] operator[SEP] Keyword[throws] identifier[org] operator[SEP] identifier[xml] operator...
public static Symmetry010Date from(TemporalAccessor temporal) { if (temporal instanceof Symmetry010Date) { return (Symmetry010Date) temporal; } return Symmetry010Date.ofEpochDay(temporal.getLong(ChronoField.EPOCH_DAY)); }
class class_name[name] begin[{] method[from, return_type[type[Symmetry010Date]], modifier[public static], parameter[temporal]] begin[{] if[binary_operation[member[.temporal], instanceof, type[Symmetry010Date]]] begin[{] return[Cast(expression=MemberReference(member=temporal, postfix...
Keyword[public] Keyword[static] identifier[Symmetry010Date] identifier[from] operator[SEP] identifier[TemporalAccessor] identifier[temporal] operator[SEP] { Keyword[if] operator[SEP] identifier[temporal] Keyword[instanceof] identifier[Symmetry010Date] operator[SEP] { Keyword[return] operator[SEP] iden...
public Set<String> names() { TreeSet<String> result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER); for (int i = 0, size = size(); i < size; i++) { result.add(name(i)); } return Collections.unmodifiableSet(result); }
class class_name[name] begin[{] method[names, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[TreeSet], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Mem...
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[names] operator[SEP] operator[SEP] { identifier[TreeSet] operator[<] identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[TreeSet] operator[<] operator[>] operator[SEP] identifier[String] operat...
@Override public void removeDataObserver(final Observer<DataProvider<M>, M> observer) { dataObservable.removeObserver(observer); }
class class_name[name] begin[{] method[removeDataObserver, return_type[void], modifier[public], parameter[observer]] begin[{] call[dataObservable.removeObserver, parameter[member[.observer]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeDataObserver] operator[SEP] Keyword[final] identifier[Observer] operator[<] identifier[DataProvider] operator[<] identifier[M] operator[>] , identifier[M] operator[>] identifier[observer] operator[SEP] { identifier[dataObservable]...
public Iterable<Result<Item>> listObjects(final String bucketName) throws XmlPullParserException { return listObjects(bucketName, null); }
class class_name[name] begin[{] method[listObjects, return_type[type[Iterable]], modifier[public], parameter[bucketName]] begin[{] return[call[.listObjects, parameter[member[.bucketName], literal[null]]]] end[}] END[}]
Keyword[public] identifier[Iterable] operator[<] identifier[Result] operator[<] identifier[Item] operator[>] operator[>] identifier[listObjects] operator[SEP] Keyword[final] identifier[String] identifier[bucketName] operator[SEP] Keyword[throws] identifier[XmlPullParserException] { Keyword[return] identifier[lis...
@GET @Path("agreementsPerTemplateAndConsumer") @Deprecated public List<IAgreement> getAgreementsPerTemplateAndConsumer( @QueryParam("consumerId") String consumerId, @QueryParam("templateUUID") String templateUUID) { logger.debug("StartOf getAgreementsPerTemplateAndConsumer - ...
class class_name[name] begin[{] method[getAgreementsPerTemplateAndConsumer, return_type[type[List]], modifier[public], parameter[consumerId, templateUUID]] begin[{] call[logger.debug, parameter[literal["StartOf getAgreementsPerTemplateAndConsumer - REQUEST for /agreementsPerTemplateAndConsumer"...
annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Deprecated] Keyword[public] identifier[List] operator[<] identifier[IAgreement] operator[>] identifier[getAgreementsPerTemplateAndConsumer] operator[SEP] annotation[@] identifier[QueryParam]...
private void configureJMeterArtifacts() { if (jmeterArtifacts.isEmpty()) { jmeterArtifacts = createDefaultJmeterArtifactsArray(jmeterVersion); } getLog().debug("JMeter Artifact List:"); jmeterArtifacts.forEach(artifact -> getLog().debug(artifact) ); ...
class class_name[name] begin[{] method[configureJMeterArtifacts, return_type[void], modifier[private], parameter[]] begin[{] if[call[jmeterArtifacts.isEmpty, parameter[]]] begin[{] assign[member[.jmeterArtifacts], call[.createDefaultJmeterArtifactsArray, parameter[member...
Keyword[private] Keyword[void] identifier[configureJMeterArtifacts] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[jmeterArtifacts] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[jmeterArtifacts] operator[=] identifier[createDefaultJmeterAr...
public void addListeners() { super.addListeners(); Record record = this.getMainRecord(); Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE); if (recClassInfo != null) { record.setKeyArea(ScreenIn.SCREEN_IN_PROG_NAME_KEY); SubFileFilter lis...
class class_name[name] begin[{] method[addListeners, return_type[void], modifier[public], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=addListeners, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) local_variable[type[Reco...
Keyword[public] Keyword[void] identifier[addListeners] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[addListeners] operator[SEP] operator[SEP] operator[SEP] identifier[Record] identifier[record] operator[=] Keyword[this] operator[SEP] identifier[getMainRecord] operator[SEP] operator[SEP] ...
public com.google.api.ads.admanager.axis.v201808.VideoBumperType getVideoBumperType() { return videoBumperType; }
class class_name[name] begin[{] method[getVideoBumperType, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.videoBumperType]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[VideoBumperType] identifier[getVideoBumperType] operator[SEP] operato...
@Nullable @ReturnsMutableCopy public static ICommonsList <String> readStreamLines (@WillClose @Nullable final InputStream aIS, @Nonnull final Charset aCharset, @Nonnegative final int nLinesToSkip, ...
class class_name[name] begin[{] method[readStreamLines, return_type[type[ICommonsList]], modifier[public static], parameter[aIS, aCharset, nLinesToSkip, nLinesToRead]] begin[{] if[binary_operation[member[.aIS], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None ...
annotation[@] identifier[Nullable] annotation[@] identifier[ReturnsMutableCopy] Keyword[public] Keyword[static] identifier[ICommonsList] operator[<] identifier[String] operator[>] identifier[readStreamLines] operator[SEP] annotation[@] identifier[WillClose] annotation[@] identifier[Nullable] Keyword[final] identifier[I...
private void recordCounterAndTimer(MixinMetric mixinMetric, RpcAbstractLookoutModel model) { Counter totalCounter = mixinMetric.counter("total_count"); Timer totalTimer = mixinMetric.timer("total_time"); Long elapsedTime = model.getElapsedTime(); totalCounter.inc(); if (elapsed...
class class_name[name] begin[{] method[recordCounterAndTimer, return_type[void], modifier[private], parameter[mixinMetric, model]] begin[{] local_variable[type[Counter], totalCounter] local_variable[type[Timer], totalTimer] local_variable[type[Long], elapsedTime] call[to...
Keyword[private] Keyword[void] identifier[recordCounterAndTimer] operator[SEP] identifier[MixinMetric] identifier[mixinMetric] , identifier[RpcAbstractLookoutModel] identifier[model] operator[SEP] { identifier[Counter] identifier[totalCounter] operator[=] identifier[mixinMetric] operator[SEP] identifier[counter...
public static String getInstrumentationLevelString() { if (disabled) return null; Map modules = moduleRoot.children; if (modules == null) { return ""; } else { PerfLevelDescriptor[] plds = new PerfLevelDescriptor[modules.size()]; Iterator v...
class class_name[name] begin[{] method[getInstrumentationLevelString, return_type[type[String]], modifier[public static], parameter[]] begin[{] if[member[.disabled]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[Map], modules] ...
Keyword[public] Keyword[static] identifier[String] identifier[getInstrumentationLevelString] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[disabled] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[Map] identifier[modules] operator[=] identifier[moduleRoot] operator[SEP] id...
@Override public IEntityGroupStore newGroupStore(ComponentGroupServiceDescriptor svcDescriptor) throws GroupsException { FileSystemGroupStore fsGroupStore = (FileSystemGroupStore) getGroupStore(); String groupsRoot = (String) svcDescriptor.get("groupsRoot"); if (groupsRoot != nul...
class class_name[name] begin[{] method[newGroupStore, return_type[type[IEntityGroupStore]], modifier[public], parameter[svcDescriptor]] begin[{] local_variable[type[FileSystemGroupStore], fsGroupStore] local_variable[type[String], groupsRoot] if[binary_operation[member[.groupsRo...
annotation[@] identifier[Override] Keyword[public] identifier[IEntityGroupStore] identifier[newGroupStore] operator[SEP] identifier[ComponentGroupServiceDescriptor] identifier[svcDescriptor] operator[SEP] Keyword[throws] identifier[GroupsException] { identifier[FileSystemGroupStore] identifier[fsGroupStore] oper...
public EClass getGSLT() { if (gsltEClass == null) { gsltEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(476); } return gsltEClass; }
class class_name[name] begin[{] method[getGSLT, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.gsltEClass], ==, literal[null]]] begin[{] assign[member[.gsltEClass], Cast(expression=MethodInvocation(arguments=[MemberReferenc...
Keyword[public] identifier[EClass] identifier[getGSLT] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[gsltEClass] operator[==] Other[null] operator[SEP] { identifier[gsltEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier...
public int compareTo (ByteBuffer otherBuffer) { int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); int thisPos = position; int otherPos = otherBuffer.position; byte thisByte, otherByte; while (compareRemaining > 0) { ...
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[otherBuffer]] begin[{] local_variable[type[int], compareRemaining] local_variable[type[int], thisPos] local_variable[type[int], otherPos] local_variable[type[byte], thisByte] ...
Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[ByteBuffer] identifier[otherBuffer] operator[SEP] { Keyword[int] identifier[compareRemaining] operator[=] operator[SEP] identifier[remaining] operator[SEP] operator[SEP] operator[<] identifier[otherBuffer] operator[SEP] identifier[remain...
public void if_tcmple(TypeMirror type, String target) throws IOException { pushType(type); if_tcmple(target); popType(); }
class class_name[name] begin[{] method[if_tcmple, return_type[void], modifier[public], parameter[type, target]] begin[{] call[.pushType, parameter[member[.type]]] call[.if_tcmple, parameter[member[.target]]] call[.popType, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[if_tcmple] operator[SEP] identifier[TypeMirror] identifier[type] , identifier[String] identifier[target] operator[SEP] Keyword[throws] identifier[IOException] { identifier[pushType] operator[SEP] identifier[type] operator[SEP] operator[SEP] identifier[if_tcmple] operator...
public <TEnum extends Enum<TEnum>> void set(String key, TEnum value) { setEnum(key, value); }
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[key, value]] begin[{] call[.setEnum, parameter[member[.key], member[.value]]] end[}] END[}]
Keyword[public] operator[<] identifier[TEnum] Keyword[extends] identifier[Enum] operator[<] identifier[TEnum] operator[>] operator[>] Keyword[void] identifier[set] operator[SEP] identifier[String] identifier[key] , identifier[TEnum] identifier[value] operator[SEP] { identifier[setEnum] operator[SEP] identifier[...
private void drawPixel(Color color, long fileOffset) { long size = withMinLength(0); drawPixels(color, fileOffset, size); }
class class_name[name] begin[{] method[drawPixel, return_type[void], modifier[private], parameter[color, fileOffset]] begin[{] local_variable[type[long], size] call[.drawPixels, parameter[member[.color], member[.fileOffset], member[.size]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[drawPixel] operator[SEP] identifier[Color] identifier[color] , Keyword[long] identifier[fileOffset] operator[SEP] { Keyword[long] identifier[size] operator[=] identifier[withMinLength] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[drawPixels] operator[SE...
public static AccessibilityNodeInfoRef owned( AccessibilityNodeInfoCompat node) { return node != null ? new AccessibilityNodeInfoRef(node, true) : null; }
class class_name[name] begin[{] method[owned, return_type[type[AccessibilityNodeInfoRef]], modifier[public static], parameter[node]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), op...
Keyword[public] Keyword[static] identifier[AccessibilityNodeInfoRef] identifier[owned] operator[SEP] identifier[AccessibilityNodeInfoCompat] identifier[node] operator[SEP] { Keyword[return] identifier[node] operator[!=] Other[null] operator[?] Keyword[new] identifier[AccessibilityNodeInfoRef] operator[SEP] ident...
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { // Get the TeamService. TeamServiceInterface teamService = adManagerServices.get(session, TeamServiceInterface.class); // Create a read/write team. Team readWriteTeam = new Team()...
class class_name[name] begin[{] method[runExample, return_type[void], modifier[public static], parameter[adManagerServices, session]] begin[{] local_variable[type[TeamServiceInterface], teamService] local_variable[type[Team], readWriteTeam] call[readWriteTeam.setName, parameter[...
Keyword[public] Keyword[static] Keyword[void] identifier[runExample] operator[SEP] identifier[AdManagerServices] identifier[adManagerServices] , identifier[AdManagerSession] identifier[session] operator[SEP] Keyword[throws] identifier[RemoteException] { identifier[TeamServiceInterface] identifier[teamService] o...
StringBuffer getString(StringBuffer sb, int startChunk, int startColumn, int length) { int stop = (startChunk << m_chunkBits) + startColumn + length; int stopChunk = stop >>> m_chunkBits; int stopColumn = stop & m_chunkMask; // Factored out //StringBuffer sb=new StringBu...
class class_name[name] begin[{] method[getString, return_type[type[StringBuffer]], modifier[default], parameter[sb, startChunk, startColumn, length]] begin[{] local_variable[type[int], stop] local_variable[type[int], stopChunk] local_variable[type[int], stopColumn] ForStatement(...
identifier[StringBuffer] identifier[getString] operator[SEP] identifier[StringBuffer] identifier[sb] , Keyword[int] identifier[startChunk] , Keyword[int] identifier[startColumn] , Keyword[int] identifier[length] operator[SEP] { Keyword[int] identifier[stop] operator[=] operator[SEP] identifier[startChunk] ope...
private void fireEvent(EventName eventName) { switch (eventName.getEventIdentifier().intValue()) { case MgcpEvent.REPORT_ON_COMPLETION : //parse options Options options = new Options(eventName.getEventIdentifier().getParms()); switch (options.g...
class class_name[name] begin[{] method[fireEvent, return_type[void], modifier[private], parameter[eventName]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=REPORT_ON_COMPLETION, postfix_operators=[], prefix_operators=[], qualifier=MgcpEvent, selectors=[])], statements...
Keyword[private] Keyword[void] identifier[fireEvent] operator[SEP] identifier[EventName] identifier[eventName] operator[SEP] { Keyword[switch] operator[SEP] identifier[eventName] operator[SEP] identifier[getEventIdentifier] operator[SEP] operator[SEP] operator[SEP] identifier[intValue] operator[SEP] operator[SEP...
public static boolean isValidBuildMetaData(String buildMetaData) { return buildMetaData != null && (buildMetaData.isEmpty() || BUILD_MD.matcher(buildMetaData).matches()); }
class class_name[name] begin[{] method[isValidBuildMetaData, return_type[type[boolean]], modifier[public static], parameter[buildMetaData]] begin[{] return[binary_operation[binary_operation[member[.buildMetaData], !=, literal[null]], &&, binary_operation[call[buildMetaData.isEmpty, parameter[]], ||, ca...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValidBuildMetaData] operator[SEP] identifier[String] identifier[buildMetaData] operator[SEP] { Keyword[return] identifier[buildMetaData] operator[!=] Other[null] operator[&&] operator[SEP] identifier[buildMetaData] operator[SEP] identifier[isEmpty] op...
private void adaptLayoutParams() { DialogRootView rootView = getRootView(); if (getWindow() != null && rootView != null) { rootView.setLayoutParams(createLayoutParams()); rootView.setFullscreen(isFullscreen()); rootView.setMaxWidth(getMaxWidth()); rootVie...
class class_name[name] begin[{] method[adaptLayoutParams, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[DialogRootView], rootView] if[binary_operation[binary_operation[call[.getWindow, parameter[]], !=, literal[null]], &&, binary_operation[member[.rootV...
Keyword[private] Keyword[void] identifier[adaptLayoutParams] operator[SEP] operator[SEP] { identifier[DialogRootView] identifier[rootView] operator[=] identifier[getRootView] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[getWindow] operator[SEP] operator[SEP] operator[!=] Other[n...
public static base_response add(nitro_service client, service resource) throws Exception { service addresource = new service(); addresource.name = resource.name; addresource.ip = resource.ip; addresource.servername = resource.servername; addresource.servicetype = resource.servicetype; addresource.port = res...
class class_name[name] begin[{] method[add, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[service], addresource] assign[member[addresource.name], member[resource.name]] assign[member[addresource.ip], ...
Keyword[public] Keyword[static] identifier[base_response] identifier[add] operator[SEP] identifier[nitro_service] identifier[client] , identifier[service] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[service] identifier[addresource] operator[=] Keyword[new] identifier[se...
public static void addClassesInPackageByFile(String packageName, String packagePath, List<Class<?>> classes) throws ClassNotFoundException { File dir = new File(packagePath); if (!dir.exists() || !dir.isDirectory()) { return; } File[] files = dir.listFiles(file -> (file.isDir...
class class_name[name] begin[{] method[addClassesInPackageByFile, return_type[void], modifier[public static], parameter[packageName, packagePath, classes]] begin[{] local_variable[type[File], dir] if[binary_operation[call[dir.exists, parameter[]], ||, call[dir.isDirectory, parameter[]]]...
Keyword[public] Keyword[static] Keyword[void] identifier[addClassesInPackageByFile] operator[SEP] identifier[String] identifier[packageName] , identifier[String] identifier[packagePath] , identifier[List] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[classes] operator[SEP] K...
public static File writeBytes(byte[] data, String path) throws IORuntimeException { return writeBytes(data, touch(path)); }
class class_name[name] begin[{] method[writeBytes, return_type[type[File]], modifier[public static], parameter[data, path]] begin[{] return[call[.writeBytes, parameter[member[.data], call[.touch, parameter[member[.path]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[File] identifier[writeBytes] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[IORuntimeException] { Keyword[return] identifier[writeBytes] operator[SEP] identifier[da...
public ClassFinder addClasspath() { try { String path = System.getProperty("java.class.path"); StringTokenizer tok = new StringTokenizer(path, File.pathSeparator); while (tok.hasMoreTokens()) add(new File(tok.nextToken())); } catch (Exception ex) { log.error("Unable to get class ...
class class_name[name] begin[{] method[addClasspath, return_type[type[ClassFinder]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], ...
Keyword[public] identifier[ClassFinder] identifier[addClasspath] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[path] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[StringTokenizer] i...
private static <K, V> Map.Entry<K, V> createEntry(K key, V value) { return new Map.Entry<K, V>() { @Override public K getKey() { return key; } @Override public V getValue() { return value; } @Override public V setValue(V value) { throw new UnsupportedOperationException(); } ...
class class_name[name] begin[{] method[createEntry, return_type[type[Map]], modifier[private static], parameter[key, value]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MemberReference(member=...
Keyword[private] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] identifier[createEntry] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] { Key...
public void endEntity(String name) throws org.xml.sax.SAXException { if (name.equals("[dtd]")) m_inExternalDTD = false; m_inEntityRef = false; if (m_tracer != null) this.fireEndEntity(name); }
class class_name[name] begin[{] method[endEntity, return_type[void], modifier[public], parameter[name]] begin[{] if[call[name.equals, parameter[literal["[dtd]"]]]] begin[{] assign[member[.m_inExternalDTD], literal[false]] else begin[{] None end[}] ass...
Keyword[public] Keyword[void] identifier[endEntity] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[org] operator[SEP] identifier[xml] operator[SEP] identifier[sax] operator[SEP] identifier[SAXException] { Keyword[if] operator[SEP] identifier[name] operator[SEP] identif...
public void device_factory(String[] devlist) throws DevFailed { Util.out4.println("DServerClass::device_factory() arrived"); for (int i = 0;i < devlist.length;i++) { Util.out4.println("Device name : " + devlist[i]); // // Create device and add it into the device list // device_list.addElement(new...
class class_name[name] begin[{] method[device_factory, return_type[void], modifier[public], parameter[devlist]] begin[{] call[Util.out4.println, parameter[literal["DServerClass::device_factory() arrived"]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(exp...
Keyword[public] Keyword[void] identifier[device_factory] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[devlist] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[Util] operator[SEP] identifier[out4] operator[SEP] identifier[println] operator[SEP] literal[String] operator[...
public void setServerCustomizers( Collection<? extends NettyServerCustomizer> serverCustomizers) { Assert.notNull(serverCustomizers, "ServerCustomizers must not be null"); this.serverCustomizers = new ArrayList<>(serverCustomizers); }
class class_name[name] begin[{] method[setServerCustomizers, return_type[void], modifier[public], parameter[serverCustomizers]] begin[{] call[Assert.notNull, parameter[member[.serverCustomizers], literal["ServerCustomizers must not be null"]]] assign[THIS[member[None.serverCusto...
Keyword[public] Keyword[void] identifier[setServerCustomizers] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[NettyServerCustomizer] operator[>] identifier[serverCustomizers] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[se...
void checkAllLocks() throws BackendException { StoreTransaction lt = getConsistentTx(); for (ExpectedValueCheckingStore store : expectedValuesByStore.keySet()) { Locker locker = store.getLocker(); // Ignore locks on stores without a locker if (null == locker) ...
class class_name[name] begin[{] method[checkAllLocks, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[StoreTransaction], lt] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensio...
Keyword[void] identifier[checkAllLocks] operator[SEP] operator[SEP] Keyword[throws] identifier[BackendException] { identifier[StoreTransaction] identifier[lt] operator[=] identifier[getConsistentTx] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[ExpectedValueCheckingStore] identi...
public void processRequest(RequestEvent req) { if (tracer.isInfoEnabled()) { tracer.info("Received Request:\n"+req.getRequest()); } // Restcomm Statistics final String method = req.getRequest().getMethod(); if (Request.INVITE.equalsIgnoreCase(method)) { this.defaultUsageParameters.incrementCalls(1);...
class class_name[name] begin[{] method[processRequest, return_type[void], modifier[public], parameter[req]] begin[{] if[call[tracer.isInfoEnabled, parameter[]]] begin[{] call[tracer.info, parameter[binary_operation[literal["Received Request:\n"], +, call[req.getRequest, ...
Keyword[public] Keyword[void] identifier[processRequest] operator[SEP] identifier[RequestEvent] identifier[req] operator[SEP] { Keyword[if] operator[SEP] identifier[tracer] operator[SEP] identifier[isInfoEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[tracer] operator[SEP] identifier[i...
private void applyPalette(Palette palette, ViewGroup viewGroup){ int bgColor = getBackgroundColor(palette); if (bgColor != -1) viewGroup.setBackgroundColor(bgColor); }
class class_name[name] begin[{] method[applyPalette, return_type[void], modifier[private], parameter[palette, viewGroup]] begin[{] local_variable[type[int], bgColor] if[binary_operation[member[.bgColor], !=, literal[1]]] begin[{] call[viewGroup.setBackgroundColor, parameter[...
Keyword[private] Keyword[void] identifier[applyPalette] operator[SEP] identifier[Palette] identifier[palette] , identifier[ViewGroup] identifier[viewGroup] operator[SEP] { Keyword[int] identifier[bgColor] operator[=] identifier[getBackgroundColor] operator[SEP] identifier[palette] operator[SEP] operator[SEP] Ke...
public void addSplit(Split split) { final long timestamp = split.getStartMillis(); StopwatchTimeRange timeRange; synchronized (this) { timeRange = getOrCreateTimeRange(timestamp); } if (timeRange != null) { //noinspection SynchronizationOnLocalVariableOrMethodParameter synchronized (timeRange) { ...
class class_name[name] begin[{] method[addSplit, return_type[void], modifier[public], parameter[split]] begin[{] local_variable[type[long], timestamp] local_variable[type[StopwatchTimeRange], timeRange] SYNCHRONIZED[THIS[]] BEGIN[{] assign[member[.timeRan...
Keyword[public] Keyword[void] identifier[addSplit] operator[SEP] identifier[Split] identifier[split] operator[SEP] { Keyword[final] Keyword[long] identifier[timestamp] operator[=] identifier[split] operator[SEP] identifier[getStartMillis] operator[SEP] operator[SEP] operator[SEP] identifier[StopwatchTimeRange] i...
public static boolean hasAnyAnnotation(AnnotatedNode node, String... names) { for (String name : names) { if (hasAnnotation(node, name)) { return true; } } return false; }
class class_name[name] begin[{] method[hasAnyAnnotation, return_type[type[boolean]], modifier[public static], parameter[node, names]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=node, postfix_operators=[], pr...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasAnyAnnotation] operator[SEP] identifier[AnnotatedNode] identifier[node] , identifier[String] operator[...] identifier[names] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[name] operator[:] identifier[names] operator[SEP] ...
protected boolean angleRecalculate(final long timeNew) { // recalculate angle using simple numerical integration of motion equation float deltaT1 = (timeNew - time1) / 1000f; if (deltaT1 > TIME_DELTA_THRESHOLD) { deltaT1 = TIME_DELTA_THRESHOLD; time1 = timeNew + Math.rou...
class class_name[name] begin[{] method[angleRecalculate, return_type[type[boolean]], modifier[protected], parameter[timeNew]] begin[{] local_variable[type[float], deltaT1] if[binary_operation[member[.deltaT1], >, member[.TIME_DELTA_THRESHOLD]]] begin[{] assign[me...
Keyword[protected] Keyword[boolean] identifier[angleRecalculate] operator[SEP] Keyword[final] Keyword[long] identifier[timeNew] operator[SEP] { Keyword[float] identifier[deltaT1] operator[=] operator[SEP] identifier[timeNew] operator[-] identifier[time1] operator[SEP] operator[/] literal[Float] operator[SEP] Key...
@Override public EClass getIfcRelConnectsWithRealizingElements() { if (ifcRelConnectsWithRealizingElementsEClass == null) { ifcRelConnectsWithRealizingElementsEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(541); } return ifcRelConnectsWithRealiz...
class class_name[name] begin[{] method[getIfcRelConnectsWithRealizingElements, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRelConnectsWithRealizingElementsEClass], ==, literal[null]]] begin[{] assign[member[.ifcRelCon...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcRelConnectsWithRealizingElements] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRelConnectsWithRealizingElementsEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRelConnectsWithR...
private boolean hasCompBoundaryBefore(int c, int norm16) { for(;;) { if(isCompYesAndZeroCC(norm16)) { return true; } else if(isMaybeOrNonZeroCC(norm16)) { return false; } else if(isDecompNoAlgorithmic(norm16)) { c=mapAlgorithmic...
class class_name[name] begin[{] method[hasCompBoundaryBefore, return_type[type[boolean]], modifier[private], parameter[c, norm16]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=norm16, postfix_operators=[], pre...
Keyword[private] Keyword[boolean] identifier[hasCompBoundaryBefore] operator[SEP] Keyword[int] identifier[c] , Keyword[int] identifier[norm16] operator[SEP] { Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isCompYesAndZeroCC] operator[SEP] ...
public final void explicitGenericInvocationSuffix() throws RecognitionException { int explicitGenericInvocationSuffix_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 137) ) { return; } // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1279:5: ( 's...
class class_name[name] begin[{] method[explicitGenericInvocationSuffix, return_type[void], modifier[final public], parameter[]] begin[{] local_variable[type[int], explicitGenericInvocationSuffix_StartIndex] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(opera...
Keyword[public] Keyword[final] Keyword[void] identifier[explicitGenericInvocationSuffix] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[int] identifier[explicitGenericInvocationSuffix_StartIndex] operator[=] identifier[input] operator[SEP] identifier[index] operator[SEP] o...
static int trimSpaces(char[] chars, int len) { // leading and trailing #x20's are removed int newLen = len; // leading while (newLen > 0 && chars[0] == ' ') { // eliminate one leading space shiftLeft(chars, 0, newLen); newLen--; } // trailing int i = newLen - 1; while (i >= 0 && chars[i] == ' ...
class class_name[name] begin[{] method[trimSpaces, return_type[type[int]], modifier[static], parameter[chars, len]] begin[{] local_variable[type[int], newLen] while[binary_operation[binary_operation[member[.newLen], >, literal[0]], &&, binary_operation[member[.chars], ==, literal[' ']]]...
Keyword[static] Keyword[int] identifier[trimSpaces] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[chars] , Keyword[int] identifier[len] operator[SEP] { Keyword[int] identifier[newLen] operator[=] identifier[len] operator[SEP] Keyword[while] operator[SEP] identifier[newLen] operator[>] Other...
public Response remove() { assertNotEmpty(replicatorDoc.getId(), "Doc id"); assertNotEmpty(replicatorDoc.getRevision(), "Doc rev"); final URI uri = buildUri(dbURI).path(replicatorDoc.getId()).query("rev", replicatorDoc.getRevision()).build(); return dbc.delete(uri); }
class class_name[name] begin[{] method[remove, return_type[type[Response]], modifier[public], parameter[]] begin[{] call[.assertNotEmpty, parameter[call[replicatorDoc.getId, parameter[]], literal["Doc id"]]] call[.assertNotEmpty, parameter[call[replicatorDoc.getRevision, paramet...
Keyword[public] identifier[Response] identifier[remove] operator[SEP] operator[SEP] { identifier[assertNotEmpty] operator[SEP] identifier[replicatorDoc] operator[SEP] identifier[getId] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] identifier[assertNotEmpty] operator[SEP] identifier[r...
public static Scriptable getObjectPrototype(Scriptable scope) { return TopLevel.getBuiltinPrototype(getTopLevelScope(scope), TopLevel.Builtins.Object); }
class class_name[name] begin[{] method[getObjectPrototype, return_type[type[Scriptable]], modifier[public static], parameter[scope]] begin[{] return[call[TopLevel.getBuiltinPrototype, parameter[call[.getTopLevelScope, parameter[member[.scope]]], member[TopLevel.Builtins.Object]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Scriptable] identifier[getObjectPrototype] operator[SEP] identifier[Scriptable] identifier[scope] operator[SEP] { Keyword[return] identifier[TopLevel] operator[SEP] identifier[getBuiltinPrototype] operator[SEP] identifier[getTopLevelScope] operator[SEP] identifier[scope...
public boolean matches( Message message ) throws JMSException { Boolean result = selectorTree != null ? selectorTree.evaluateBoolean(message) : null; return result != null && result.booleanValue(); }
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[public], parameter[message]] begin[{] local_variable[type[Boolean], result] return[binary_operation[binary_operation[member[.result], !=, literal[null]], &&, call[result.booleanValue, parameter[]]]] end[}] ...
Keyword[public] Keyword[boolean] identifier[matches] operator[SEP] identifier[Message] identifier[message] operator[SEP] Keyword[throws] identifier[JMSException] { identifier[Boolean] identifier[result] operator[=] identifier[selectorTree] operator[!=] Other[null] operator[?] identifier[selectorTree] operator[SE...
public OvhTask organizationName_service_exchangeService_domain_POST(String organizationName, String exchangeService, Boolean configureAutodiscover, Boolean configureMx, Boolean main, String mxRelay, String name, String organization2010, OvhDomainTypeEnum type) throws IOException { String qPath = "/email/exchange/{org...
class class_name[name] begin[{] method[organizationName_service_exchangeService_domain_POST, return_type[type[OvhTask]], modifier[public], parameter[organizationName, exchangeService, configureAutodiscover, configureMx, main, mxRelay, name, organization2010, type]] begin[{] local_variable[type[String],...
Keyword[public] identifier[OvhTask] identifier[organizationName_service_exchangeService_domain_POST] operator[SEP] identifier[String] identifier[organizationName] , identifier[String] identifier[exchangeService] , identifier[Boolean] identifier[configureAutodiscover] , identifier[Boolean] identifier[configureMx] , ...
public CompletableFuture<T> exceptAsync(Consumer<Throwable> consumer) { return whenCompleteAsync((result, error) -> { if (error != null) { consumer.accept(error); } }); }
class class_name[name] begin[{] method[exceptAsync, return_type[type[CompletableFuture]], modifier[public], parameter[consumer]] begin[{] return[call[.whenCompleteAsync, parameter[LambdaExpression(body=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=error, postfix_operators=[], p...
Keyword[public] identifier[CompletableFuture] operator[<] identifier[T] operator[>] identifier[exceptAsync] operator[SEP] identifier[Consumer] operator[<] identifier[Throwable] operator[>] identifier[consumer] operator[SEP] { Keyword[return] identifier[whenCompleteAsync] operator[SEP] operator[SEP] identifier[re...
public ServiceFuture<AgentPoolInner> createOrUpdateAsync(String resourceGroupName, String managedClusterName, String agentPoolName, AgentPoolInner parameters, final ServiceCallback<AgentPoolInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, mana...
class class_name[name] begin[{] method[createOrUpdateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, managedClusterName, agentPoolName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.createOrUpdateWithServiceRespons...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[AgentPoolInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[managedClusterName] , identifier[String] identifier[agentPoolName] , identifier[AgentPoolInner] i...
@ArgumentsChecked @Throws(IllegalNotLesserThanException.class) public static byte lesserThan(final byte expected, final byte check) { if (expected <= check) { throw new IllegalNotLesserThanException(check); } return check; }
class class_name[name] begin[{] method[lesserThan, return_type[type[byte]], modifier[public static], parameter[expected, check]] begin[{] if[binary_operation[member[.expected], <=, member[.check]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=che...
annotation[@] identifier[ArgumentsChecked] annotation[@] identifier[Throws] operator[SEP] identifier[IllegalNotLesserThanException] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[static] Keyword[byte] identifier[lesserThan] operator[SEP] Keyword[final] Keyword[byte] identifier[expected] , Keyword[f...
@SuppressWarnings("unchecked") @Override public Map<K, V> getAllFailure(Iterable<? extends K> keys, StoreAccessException e) { try { return loaderWriter.loadAll((Iterable) keys); // FIXME: bad typing that we should fix } catch(BulkCacheLoadingException e1) { throw e1; } catch (Exception e1) {...
class class_name[name] begin[{] method[getAllFailure, return_type[type[Map]], modifier[public], parameter[keys, e]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[Cast(expression=MemberReference(member=keys, postfix_operators=[], prefix_operators=[], qualifier=, sel...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[getAllFailure] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifie...
public Object body(Object[] swaggerMethodArguments) { Object result = null; if (bodyContentMethodParameterIndex != null && swaggerMethodArguments != null && 0 <= bodyContentMethodParameterIndex && bodyContentMethodParameterIndex < swaggerMethodArguments.l...
class class_name[name] begin[{] method[body, return_type[type[Object]], modifier[public], parameter[swaggerMethodArguments]] begin[{] local_variable[type[Object], result] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.bodyContentMethodParameterIndex], !=,...
Keyword[public] identifier[Object] identifier[body] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[swaggerMethodArguments] operator[SEP] { identifier[Object] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[bodyContentMethodParameterIndex] ope...
public static List<EntryElement> makeEntryElementList(Object... value) { List<EntryElement> valueElements = new ArrayList<EntryElement>(); for (Object o : value) { Class<?> type = ClassUtils.primitiveToWrapper(o.getClass()); EntryElement entryElement = new EntryElement(type.getNa...
class class_name[name] begin[{] method[makeEntryElementList, return_type[type[List]], modifier[public static], parameter[value]] begin[{] local_variable[type[List], valueElements] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Vari...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[EntryElement] operator[>] identifier[makeEntryElementList] operator[SEP] identifier[Object] operator[...] identifier[value] operator[SEP] { identifier[List] operator[<] identifier[EntryElement] operator[>] identifier[valueElements] operator[...
@SuppressWarnings("unchecked") protected ResultQueueEntry<T> toResultQueueEntryForEquals(Object obj) { if (!(obj instanceof ResultQueueEntry) || obj == null) { return null; } ResultQueueEntry<T> other = (ResultQueueEntry<T>) obj; return type == other.type && getClass() == other.getClass() ? othe...
class class_name[name] begin[{] method[toResultQueueEntryForEquals, return_type[type[ResultQueueEntry]], modifier[protected], parameter[obj]] begin[{] if[binary_operation[binary_operation[member[.obj], instanceof, type[ResultQueueEntry]], ||, binary_operation[member[.obj], ==, literal[null]]]] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] identifier[ResultQueueEntry] operator[<] identifier[T] operator[>] identifier[toResultQueueEntryForEquals] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] operator[...
public String getRelation(int position) { if (position < 0 || position >= path.size()) throw new IndexOutOfBoundsException("Invalid relation: " +position); DependencyRelation r = path.get(position); return r.relation(); }
class class_name[name] begin[{] method[getRelation, return_type[type[String]], modifier[public], parameter[position]] begin[{] if[binary_operation[binary_operation[member[.position], <, literal[0]], ||, binary_operation[member[.position], >=, call[path.size, parameter[]]]]] begin[{] ThrowStatem...
Keyword[public] identifier[String] identifier[getRelation] operator[SEP] Keyword[int] identifier[position] operator[SEP] { Keyword[if] operator[SEP] identifier[position] operator[<] Other[0] operator[||] identifier[position] operator[>=] identifier[path] operator[SEP] identifier[size] operator[SEP] operator[SEP]...
public void throwException(final Type type, final String msg) { newInstance(type); dup(); push(msg); invokeConstructor(type, Method.getMethod("void <init> (String)")); throwException(); }
class class_name[name] begin[{] method[throwException, return_type[void], modifier[public], parameter[type, msg]] begin[{] call[.newInstance, parameter[member[.type]]] call[.dup, parameter[]] call[.push, parameter[member[.msg]]] call[.invokeConstr...
Keyword[public] Keyword[void] identifier[throwException] operator[SEP] Keyword[final] identifier[Type] identifier[type] , Keyword[final] identifier[String] identifier[msg] operator[SEP] { identifier[newInstance] operator[SEP] identifier[type] operator[SEP] operator[SEP] identifier[dup] operator[SEP] operator[SE...
public static String baseName(String file, @NonNull String suffix) { if (StringUtils.isNullOrBlank(file)) { return StringUtils.EMPTY; } file = StringUtils.trim(file); int index = indexOfLastSeparator(file); if (index == -1) { return file.replaceAll(Pattern.quote(suffix) +...
class class_name[name] begin[{] method[baseName, return_type[type[String]], modifier[public static], parameter[file, suffix]] begin[{] if[call[StringUtils.isNullOrBlank, parameter[member[.file]]]] begin[{] return[member[StringUtils.EMPTY]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[String] identifier[baseName] operator[SEP] identifier[String] identifier[file] , annotation[@] identifier[NonNull] identifier[String] identifier[suffix] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isNullOrBlank] operator[S...
private SqlNode getNthExpr(SqlNode query, int ordinal, int sourceCount) { if (query instanceof SqlInsert) { SqlInsert insert = (SqlInsert) query; if (insert.getTargetColumnList() != null) { return insert.getTargetColumnList().get(ordinal); } else { return getNthExpr( insert.getSource(), ord...
class class_name[name] begin[{] method[getNthExpr, return_type[type[SqlNode]], modifier[private], parameter[query, ordinal, sourceCount]] begin[{] if[binary_operation[member[.query], instanceof, type[SqlInsert]]] begin[{] local_variable[type[SqlInsert], insert] ...
Keyword[private] identifier[SqlNode] identifier[getNthExpr] operator[SEP] identifier[SqlNode] identifier[query] , Keyword[int] identifier[ordinal] , Keyword[int] identifier[sourceCount] operator[SEP] { Keyword[if] operator[SEP] identifier[query] Keyword[instanceof] identifier[SqlInsert] operator[SEP] { ...
@SuppressWarnings("unchecked") public static <T> Key<T> resolveKey(Class<T> injecteeClass, Class<? extends T> genericImplClass, Type... typeVariableClasses) { Optional<Annotation> qualifier = Annotations.on(genericImplClass) .findAll() .filter(AnnotationPredicates...
class class_name[name] begin[{] method[resolveKey, return_type[type[Key]], modifier[public static], parameter[injecteeClass, genericImplClass, typeVariableClasses]] begin[{] local_variable[type[Optional], qualifier] local_variable[type[TypeLiteral], genericInterface] return[call[qualifi...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Key] operator[<] identifier[T] operator[>] identifier[resolveKey] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[injec...