code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@NonNull @Override public Iterator<AdminRow> iterator() { return new AbstractIterator<AdminRow>() { @Override protected AdminRow computeNext() { List<ByteBuffer> rowData = data.poll(); return (rowData == null) ? endOfData() : new AdminRow(columnSpecs, rowData,...
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
annotation[@] identifier[NonNull] annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[AdminRow] operator[>] identifier[iterator] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[AbstractIterator] operator[<] identifier[AdminRow] operator[>] operator...
@Override public Integer getIntegerOrDie(String key) { Integer value = getInteger(key); if (value == null) { throw new IllegalArgumentException(String.format(ERROR_KEYNOTFOUND, key)); } else { return value; } }
class class_name[name] begin[{] method[getIntegerOrDie, return_type[type[Integer]], modifier[public], parameter[key]] begin[{] local_variable[type[Integer], value] if[binary_operation[member[.value], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argumen...
annotation[@] identifier[Override] Keyword[public] identifier[Integer] identifier[getIntegerOrDie] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[Integer] identifier[value] operator[=] identifier[getInteger] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operat...
void beginPartUpload(final int nextPartNumber) throws SdkClientException { if (nextPartNumber < 1) throw new IllegalArgumentException("part number must be at least 1"); if (partUploadInProgress) { throw new SdkClientException( "Parts are required t...
class class_name[name] begin[{] method[beginPartUpload, return_type[void], modifier[default], parameter[nextPartNumber]] begin[{] if[binary_operation[member[.nextPartNumber], <, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operator...
Keyword[void] identifier[beginPartUpload] operator[SEP] Keyword[final] Keyword[int] identifier[nextPartNumber] operator[SEP] Keyword[throws] identifier[SdkClientException] { Keyword[if] operator[SEP] identifier[nextPartNumber] operator[<] Other[1] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgum...
public static <T extends MutableTreeNode<T>> void removeChild(T parent, T child) { checkArgNotNull(parent, "parent"); int index = parent.getChildren().indexOf(child); checkElementIndex(index, parent.getChildren().size()); parent.removeChild(index); }
class class_name[name] begin[{] method[removeChild, return_type[void], modifier[public static], parameter[parent, child]] begin[{] call[.checkArgNotNull, parameter[member[.parent], literal["parent"]]] local_variable[type[int], index] call[.checkElementIndex, parameter[me...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[MutableTreeNode] operator[<] identifier[T] operator[>] operator[>] Keyword[void] identifier[removeChild] operator[SEP] identifier[T] identifier[parent] , identifier[T] identifier[child] operator[SEP] { identifier[checkArgNotNu...
@Override public void addRuleInstances (Digester digester) { // this creates the appropriate instance when we encounter a // <class> tag digester.addObjectCreate(_prefix + CLASS_PATH, ComponentClass.class.getName()); // grab the attributes from t...
class class_name[name] begin[{] method[addRuleInstances, return_type[void], modifier[public], parameter[digester]] begin[{] call[digester.addObjectCreate, parameter[binary_operation[member[._prefix], +, member[.CLASS_PATH]], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addRuleInstances] operator[SEP] identifier[Digester] identifier[digester] operator[SEP] { identifier[digester] operator[SEP] identifier[addObjectCreate] operator[SEP] identifier[_prefix] operator[+] identifier[CLASS_PATH] , identifier[C...
@Procedure @Description("apoc.couchbase.upsert(hostOrKey, bucket, documentId, jsonDocument) yield id, expiry, cas, mutationToken, content - insert or overwrite a couchbase json document with its unique ID.") public Stream<CouchbaseJsonDocument> upsert(@Name("hostOrKey") String hostOrKey, @Name("bucket") String ...
class class_name[name] begin[{] method[upsert, return_type[type[Stream]], modifier[public], parameter[hostOrKey, bucket, documentId, json]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Member...
annotation[@] identifier[Procedure] annotation[@] identifier[Description] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Stream] operator[<] identifier[CouchbaseJsonDocument] operator[>] identifier[upsert] operator[SEP] annotation[@] identifier[Name] operator[SEP] literal[String] operator[SEP] i...
public int awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) throws InterruptedException, TimeoutException { long nanos = unit.toNanos(timeout); final Phaser root = this.root; long s = (root == this) ? state : reconcileState(); ...
class class_name[name] begin[{] method[awaitAdvanceInterruptibly, return_type[type[int]], modifier[public], parameter[phase, timeout, unit]] begin[{] local_variable[type[long], nanos] local_variable[type[Phaser], root] local_variable[type[long], s] local_variable[type[int], p] ...
Keyword[public] Keyword[int] identifier[awaitAdvanceInterruptibly] operator[SEP] Keyword[int] identifier[phase] , Keyword[long] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[TimeoutException] { Keyword[long] identifier[n...
protected void addElements(List<CmsContainerElementData> elements) { for (CmsContainerElementData element : elements) { m_elements.put(element.getClientId(), element); } }
class class_name[name] begin[{] method[addElements, return_type[void], modifier[protected], parameter[elements]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getClientId, postfix_operat...
Keyword[protected] Keyword[void] identifier[addElements] operator[SEP] identifier[List] operator[<] identifier[CmsContainerElementData] operator[>] identifier[elements] operator[SEP] { Keyword[for] operator[SEP] identifier[CmsContainerElementData] identifier[element] operator[:] identifier[elements] operator[SE...
@Override public void search(String crs, final VectorServerLayer layer, SearchCriterion[] criteria, LogicalOperator operator, int maxResultSize, final FeatureMapFunction callback) { SearchFeatureRequest request = new SearchFeatureRequest(); request.setBooleanOperator(operator.getValue()); request.setCriteria(...
class class_name[name] begin[{] method[search, return_type[void], modifier[public], parameter[crs, layer, criteria, operator, maxResultSize, callback]] begin[{] local_variable[type[SearchFeatureRequest], request] call[request.setBooleanOperator, parameter[call[operator.getValue, paramet...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[search] operator[SEP] identifier[String] identifier[crs] , Keyword[final] identifier[VectorServerLayer] identifier[layer] , identifier[SearchCriterion] operator[SEP] operator[SEP] identifier[criteria] , identifier[LogicalOperator] identifier...
public static Latency copyOf(AbstractLatency instance) { if (instance instanceof Latency) { return (Latency) instance; } return Latency.builder() .from(instance) .build(); }
class class_name[name] begin[{] method[copyOf, return_type[type[Latency]], modifier[public static], parameter[instance]] begin[{] if[binary_operation[member[.instance], instanceof, type[Latency]]] begin[{] return[Cast(expression=MemberReference(member=instance, postfix_operators=[],...
Keyword[public] Keyword[static] identifier[Latency] identifier[copyOf] operator[SEP] identifier[AbstractLatency] identifier[instance] operator[SEP] { Keyword[if] operator[SEP] identifier[instance] Keyword[instanceof] identifier[Latency] operator[SEP] { Keyword[return] operator[SEP] identifier[Latency]...
public boolean isDetailPage(CmsObject cms, CmsResource resource) { return getCache(isOnline(cms)).isDetailPage(cms, resource); }
class class_name[name] begin[{] method[isDetailPage, return_type[type[boolean]], modifier[public], parameter[cms, resource]] begin[{] return[call[.getCache, parameter[call[.isOnline, parameter[member[.cms]]]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isDetailPage] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsResource] identifier[resource] operator[SEP] { Keyword[return] identifier[getCache] operator[SEP] identifier[isOnline] operator[SEP] identifier[cms] operator[SEP] operator[SEP] operator[...
private int calculateMaxPendingSplits(int splitAffinity, int totalDepth) { if (totalDepth == 0) { return maxPendingSplitsPerTask; } // Use half the queue for any split // Reserve the other half for splits that have some amount of network affinity double queueFract...
class class_name[name] begin[{] method[calculateMaxPendingSplits, return_type[type[int]], modifier[private], parameter[splitAffinity, totalDepth]] begin[{] if[binary_operation[member[.totalDepth], ==, literal[0]]] begin[{] return[member[.maxPendingSplitsPerTask]] else begin[...
Keyword[private] Keyword[int] identifier[calculateMaxPendingSplits] operator[SEP] Keyword[int] identifier[splitAffinity] , Keyword[int] identifier[totalDepth] operator[SEP] { Keyword[if] operator[SEP] identifier[totalDepth] operator[==] Other[0] operator[SEP] { Keyword[return] identifier[maxPendingSp...
protected void printVariable(DataCursor data, List<Slice> slices) throws DapException { DapVariable dapv = (DapVariable) data.getTemplate(); if(data.isScalar()) { assert slices == Slice.SCALARSLICES; printScalar(data); } else {// not scalar ...
class class_name[name] begin[{] method[printVariable, return_type[void], modifier[protected], parameter[data, slices]] begin[{] local_variable[type[DapVariable], dapv] if[call[data.isScalar, parameter[]]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberRefe...
Keyword[protected] Keyword[void] identifier[printVariable] operator[SEP] identifier[DataCursor] identifier[data] , identifier[List] operator[<] identifier[Slice] operator[>] identifier[slices] operator[SEP] Keyword[throws] identifier[DapException] { identifier[DapVariable] identifier[dapv] operator[=] operator[...
public java.util.List<LaunchPermission> getAdd() { if (add == null) { add = new com.amazonaws.internal.SdkInternalList<LaunchPermission>(); } return add; }
class class_name[name] begin[{] method[getAdd, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.add], ==, literal[null]]] begin[{] assign[member[.add], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, post...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[LaunchPermission] operator[>] identifier[getAdd] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[add] operator[==] Other[null] operator[SEP] { identifier[add] operat...
public Result isValidWindows1252(byte[] buf) { for (byte b : buf) { if (!VALID_WINDOWS_1252[b + 128]) { return Result.INVALID; } } try { return new Result(Validation.MAYBE, Charset.forName("Windows-1252")); } catch (UnsupportedCharsetException e) { return Result.INVALID;...
class class_name[name] begin[{] method[isValidWindows1252, return_type[type[Result]], modifier[public], parameter[buf]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=VALID_WINDOWS_1252, postfix_operators=[], prefix_operators=['!'], qualif...
Keyword[public] identifier[Result] identifier[isValidWindows1252] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[buf] operator[SEP] { Keyword[for] operator[SEP] Keyword[byte] identifier[b] operator[:] identifier[buf] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier...
@Override public final void setDefaultLocalAddresses(Iterable<? extends SocketAddress> localAddresses) { if (localAddresses == null) { throw new NullPointerException("localAddresses"); } synchronized (bindLock) { if (!boundAddresses.isEmpty()) { throw...
class class_name[name] begin[{] method[setDefaultLocalAddresses, return_type[void], modifier[final public], parameter[localAddresses]] begin[{] if[binary_operation[member[.localAddresses], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[setDefaultLocalAddresses] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[SocketAddress] operator[>] identifier[localAddresses] operator[SEP] { Keyword[if] operator[SEP] identifier[lo...
@PUT @Path("{user}") @Consumes(MediaType.TEXT_PLAIN) public Response addUser(@PathParam("user") String username, @HeaderParam("Authorization") @DefaultValue("no token") String auth, String message) throws Exception { if(!this.isAuth(auth)) { throw new Exception("Unauthorized!"); } if( realm != n...
class class_name[name] begin[{] method[addUser, return_type[type[Response]], modifier[public], parameter[username, auth, message]] begin[{] if[THIS[call[None.isAuth, parameter[member[.auth]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ...
annotation[@] identifier[PUT] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Consumes] operator[SEP] identifier[MediaType] operator[SEP] identifier[TEXT_PLAIN] operator[SEP] Keyword[public] identifier[Response] identifier[addUser] operator[SEP] annotation[@] identifi...
private I_CmsResourceWrapper getResourceTypeWrapper(CmsResource res) { Iterator<I_CmsResourceWrapper> iter = getWrappers().iterator(); while (iter.hasNext()) { I_CmsResourceWrapper wrapper = iter.next(); if (wrapper.isWrappedResource(m_cms, res)) { return wrappe...
class class_name[name] begin[{] method[getResourceTypeWrapper, return_type[type[I_CmsResourceWrapper]], modifier[private], parameter[res]] begin[{] local_variable[type[Iterator], iter] while[call[iter.hasNext, parameter[]]] begin[{] local_variable[type[I_CmsResourceWrapper],...
Keyword[private] identifier[I_CmsResourceWrapper] identifier[getResourceTypeWrapper] operator[SEP] identifier[CmsResource] identifier[res] operator[SEP] { identifier[Iterator] operator[<] identifier[I_CmsResourceWrapper] operator[>] identifier[iter] operator[=] identifier[getWrappers] operator[SEP] operator[SEP]...
@NonNull public static ArrayExpressionIn every(@NonNull VariableExpression variable) { if (variable == null) { throw new IllegalArgumentException("variable cannot be null."); } return new ArrayExpressionIn(QuantifiesType.EVERY, variable); }
class class_name[name] begin[{] method[every, return_type[type[ArrayExpressionIn]], modifier[public static], parameter[variable]] begin[{] if[binary_operation[member[.variable], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=...
annotation[@] identifier[NonNull] Keyword[public] Keyword[static] identifier[ArrayExpressionIn] identifier[every] operator[SEP] annotation[@] identifier[NonNull] identifier[VariableExpression] identifier[variable] operator[SEP] { Keyword[if] operator[SEP] identifier[variable] operator[==] Other[null] operator[SE...
public static int calculateThreads(final int executorThreads, final String name) { // For current standard 8 core machines this is 10 regardless. // On Java 10, you might get less than 8 core reported, but it will still size as if it's 8 // Beyond 8 core you MIGHT undersize if running on Docker,...
class class_name[name] begin[{] method[calculateThreads, return_type[type[int]], modifier[public static], parameter[executorThreads, name]] begin[{] local_variable[type[int], optimalThreads] local_variable[type[int], threadsChosen] if[binary_operation[member[.executorThreads], >...
Keyword[public] Keyword[static] Keyword[int] identifier[calculateThreads] operator[SEP] Keyword[final] Keyword[int] identifier[executorThreads] , Keyword[final] identifier[String] identifier[name] operator[SEP] { Keyword[final] Keyword[int] identifier[optimalThreads] operator[=] identifier[Math] operator[SEP] i...
private Xpp3Dom getChild(Xpp3Dom parentNode, String name) { Xpp3Dom child = parentNode.getChild(name); if (child != null) { return child; } return parentNode.getChild(namespace + name); }
class class_name[name] begin[{] method[getChild, return_type[type[Xpp3Dom]], modifier[private], parameter[parentNode, name]] begin[{] local_variable[type[Xpp3Dom], child] if[binary_operation[member[.child], !=, literal[null]]] begin[{] return[member[.child]] else beg...
Keyword[private] identifier[Xpp3Dom] identifier[getChild] operator[SEP] identifier[Xpp3Dom] identifier[parentNode] , identifier[String] identifier[name] operator[SEP] { identifier[Xpp3Dom] identifier[child] operator[=] identifier[parentNode] operator[SEP] identifier[getChild] operator[SEP] identifier[name] oper...
public void addAll(final Iterable<String> strings) { checkNotNull(strings); for (String string : strings) { add(string); } }
class class_name[name] begin[{] method[addAll, return_type[void], modifier[public], parameter[strings]] begin[{] call[.checkNotNull, parameter[member[.strings]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberRef...
Keyword[public] Keyword[void] identifier[addAll] operator[SEP] Keyword[final] identifier[Iterable] operator[<] identifier[String] operator[>] identifier[strings] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[strings] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] id...
public static void initSecret(ServletContext ctx) { if(ctx == null) { throw new NullPointerException("ServletContext ctx"); } if (log.isLoggable(Level.FINE)) { log.fine("Storing SecretKey @ " + INIT_SECRET_KEY_CACHE); } ...
class class_name[name] begin[{] method[initSecret, return_type[void], modifier[public static], parameter[ctx]] begin[{] if[binary_operation[member[.ctx], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] Keyword[void] identifier[initSecret] operator[SEP] identifier[ServletContext] identifier[ctx] operator[SEP] { Keyword[if] operator[SEP] identifier[ctx] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] li...
public static boolean hasTimeTemplate(String template) { for (int i = 0; i < timeTemplates.length; i++) { if (template.indexOf(timeTemplates[i]) >= 0) { return true; } } return false; }
class class_name[name] begin[{] method[hasTimeTemplate, return_type[type[boolean]], modifier[public static], parameter[template]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=timeTempl...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasTimeTemplate] operator[SEP] identifier[String] identifier[template] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[timeTemplates] operator[SEP] identifier[...
private static boolean adjustNumber(Class<?>[] paramTypes, Object[] args, int index) { if (paramTypes[index].isPrimitive()) { if (paramTypes[index] == int.class) { args[index] = LdiIntegerConversionUtil.toInteger(args[index]); return true; } else if (param...
class class_name[name] begin[{] method[adjustNumber, return_type[type[boolean]], modifier[private static], parameter[paramTypes, args, index]] begin[{] if[member[.paramTypes]] begin[{] if[binary_operation[member[.paramTypes], ==, ClassReference(postfix_operators=[], pref...
Keyword[private] Keyword[static] Keyword[boolean] identifier[adjustNumber] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[paramTypes] , identifier[Object] operator[SEP] operator[SEP] identifier[args] , Keyword[int] identifier[index] operator[SEP] { Ke...
public Observable<JobResponseInner> getJobAsync(String resourceGroupName, String resourceName, String jobId) { return getJobWithServiceResponseAsync(resourceGroupName, resourceName, jobId).map(new Func1<ServiceResponse<JobResponseInner>, JobResponseInner>() { @Override public JobResponse...
class class_name[name] begin[{] method[getJobAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, resourceName, jobId]] begin[{] return[call[.getJobWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resourceName], member[.jobId]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[JobResponseInner] operator[>] identifier[getJobAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] , identifier[String] identifier[jobId] operator[SEP] { Keyword[return] identifier[getJ...
public List<Class> findClasses(Class cls, String[] pkgnames) { List<Class> result; int i; HashSet<Class> classes; result = new ArrayList<>(); classes = new HashSet<>(); for (i = 0; i < pkgnames.length; i++) classes.addAll(findClassesInPackage(cls, pkgnames[i])); // sort result ...
class class_name[name] begin[{] method[findClasses, return_type[type[List]], modifier[public], parameter[cls, pkgnames]] begin[{] local_variable[type[List], result] local_variable[type[int], i] local_variable[type[HashSet], classes] assign[member[.result], ClassCreator(a...
Keyword[public] identifier[List] operator[<] identifier[Class] operator[>] identifier[findClasses] operator[SEP] identifier[Class] identifier[cls] , identifier[String] operator[SEP] operator[SEP] identifier[pkgnames] operator[SEP] { identifier[List] operator[<] identifier[Class] operator[>] identifier[result] o...
public CompletableFuture<Object> postAsync(final Consumer<HttpConfig> configuration) { return CompletableFuture.supplyAsync(() -> post(configuration), getExecutor()); }
class class_name[name] begin[{] method[postAsync, return_type[type[CompletableFuture]], modifier[public], parameter[configuration]] begin[{] return[call[CompletableFuture.supplyAsync, parameter[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=configuration, postfix_operators=[],...
Keyword[public] identifier[CompletableFuture] operator[<] identifier[Object] operator[>] identifier[postAsync] operator[SEP] Keyword[final] identifier[Consumer] operator[<] identifier[HttpConfig] operator[>] identifier[configuration] operator[SEP] { Keyword[return] identifier[CompletableFuture] operator[SEP] ide...
public LocalVariable getLocalVariable(int useLocation, int number) { LocalVariableTableAttr table = mOldLocalVariableTable; if (table == null) { table = mLocalVariableTable; } if (table == null) { return null; } else { return table.getLocalVar...
class class_name[name] begin[{] method[getLocalVariable, return_type[type[LocalVariable]], modifier[public], parameter[useLocation, number]] begin[{] local_variable[type[LocalVariableTableAttr], table] if[binary_operation[member[.table], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[LocalVariable] identifier[getLocalVariable] operator[SEP] Keyword[int] identifier[useLocation] , Keyword[int] identifier[number] operator[SEP] { identifier[LocalVariableTableAttr] identifier[table] operator[=] identifier[mOldLocalVariableTable] operator[SEP] Keyword[if] operator[SEP] ...
void resolveBootUpdates(final ModelController controller, final ActiveOperation.CompletedCallback<ModelNode> callback) throws Exception { connection.openConnection(controller, callback); // Keep a reference to the the controller this.controller = controller; }
class class_name[name] begin[{] method[resolveBootUpdates, return_type[void], modifier[default], parameter[controller, callback]] begin[{] call[connection.openConnection, parameter[member[.controller], member[.callback]]] assign[THIS[member[None.controller]], member[.controller]...
Keyword[void] identifier[resolveBootUpdates] operator[SEP] Keyword[final] identifier[ModelController] identifier[controller] , Keyword[final] identifier[ActiveOperation] operator[SEP] identifier[CompletedCallback] operator[<] identifier[ModelNode] operator[>] identifier[callback] operator[SEP] Keyword[throws] identifi...
public java.lang.String getBodyrows() { return (java.lang.String) getStateHelper().eval(PropertyKeys.bodyrows); }
class class_name[name] begin[{] method[getBodyrows, return_type[type[java]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[], member=getStateHelper, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference...
Keyword[public] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[getBodyrows] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] operator[SEP] identifier[getStateHelper] operator[S...
public int getImageSize() { int filePages = (int) header.get(FILE_PAGES); int lastPageSize = (int) header.get(LAST_PAGE_SIZE); int imageSize = (filePages - 1) * PAGE_SIZE + lastPageSize; if (lastPageSize == 0) { imageSize += PAGE_SIZE; } return imageSize; }
class class_name[name] begin[{] method[getImageSize, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], filePages] local_variable[type[int], lastPageSize] local_variable[type[int], imageSize] if[binary_operation[member[.lastPageSize...
Keyword[public] Keyword[int] identifier[getImageSize] operator[SEP] operator[SEP] { Keyword[int] identifier[filePages] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[header] operator[SEP] identifier[get] operator[SEP] identifier[FILE_PAGES] operator[SEP] operator[SEP] Keyword[int] identifier[las...
public static double Clamp(double x, DoubleRange range) { return Clamp(x, range.getMin(), range.getMax()); }
class class_name[name] begin[{] method[Clamp, return_type[type[double]], modifier[public static], parameter[x, range]] begin[{] return[call[.Clamp, parameter[member[.x], call[range.getMin, parameter[]], call[range.getMax, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[Clamp] operator[SEP] Keyword[double] identifier[x] , identifier[DoubleRange] identifier[range] operator[SEP] { Keyword[return] identifier[Clamp] operator[SEP] identifier[x] , identifier[range] operator[SEP] identifier[getMin] operator[SEP] operator[SEP...
@XmlTransient public Boolean getFieldValueAsBoolean(String fieldNameParam) { Field fieldWithName = this.getField(fieldNameParam); return (fieldWithName == null) ? null : fieldWithName.getFieldValueAsBoolean(); }
class class_name[name] begin[{] method[getFieldValueAsBoolean, return_type[type[Boolean]], modifier[public], parameter[fieldNameParam]] begin[{] local_variable[type[Field], fieldWithName] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=fieldWithName, postfix_o...
annotation[@] identifier[XmlTransient] Keyword[public] identifier[Boolean] identifier[getFieldValueAsBoolean] operator[SEP] identifier[String] identifier[fieldNameParam] operator[SEP] { identifier[Field] identifier[fieldWithName] operator[=] Keyword[this] operator[SEP] identifier[getField] operator[SEP] identifi...
public void removeAllWriter(boolean close) { if (close) synchronized (writers) { for (final Iterator i = writers.iterator(); i.hasNext();) ((LogWriter) i.next()).close(); } writers = new Vector(); }
class class_name[name] begin[{] method[removeAllWriter, return_type[void], modifier[public], parameter[close]] begin[{] if[member[.close]] begin[{] SYNCHRONIZED[member[.writers]] BEGIN[{] ForStatement(body=StatementExpression(expression=Cast(expression=MethodInvocati...
Keyword[public] Keyword[void] identifier[removeAllWriter] operator[SEP] Keyword[boolean] identifier[close] operator[SEP] { Keyword[if] operator[SEP] identifier[close] operator[SEP] Keyword[synchronized] operator[SEP] identifier[writers] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identif...
private List fetchEntity(Class entityClass, Object rowId, EntityMetadata entityMetadata, List<String> relationNames, String tableName, List results, FilterList filter, Queue filterClausequeue, String... columns) throws IOException { results = new ArrayList(); List<AbstractMan...
class class_name[name] begin[{] method[fetchEntity, return_type[type[List]], modifier[private], parameter[entityClass, rowId, entityMetadata, relationNames, tableName, results, filter, filterClausequeue, columns]] begin[{] assign[member[.results], ClassCreator(arguments=[], body=None, construct...
Keyword[private] identifier[List] identifier[fetchEntity] operator[SEP] identifier[Class] identifier[entityClass] , identifier[Object] identifier[rowId] , identifier[EntityMetadata] identifier[entityMetadata] , identifier[List] operator[<] identifier[String] operator[>] identifier[relationNames] , identifier[String...
public void onClose() { RuntimeException ce = null; for (final Agent agent : agents) { try { agent.onClose(); } catch (final Exception ex) { if (ce == null) { ce = ...
class class_name[name] begin[{] method[onClose, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[RuntimeException], ce] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member...
Keyword[public] Keyword[void] identifier[onClose] operator[SEP] operator[SEP] { identifier[RuntimeException] identifier[ce] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Agent] identifier[agent] operator[:] identifier[agents] operator[SEP] { Keyword[try] ...
String getEffectiveNamespace() { String namespace = Tenant.getNamespace(); if (namespace == null) { namespace = datastore.getOptions().getNamespace(); } return namespace; }
class class_name[name] begin[{] method[getEffectiveNamespace, return_type[type[String]], modifier[default], parameter[]] begin[{] local_variable[type[String], namespace] if[binary_operation[member[.namespace], ==, literal[null]]] begin[{] assign[member[.namespace...
identifier[String] identifier[getEffectiveNamespace] operator[SEP] operator[SEP] { identifier[String] identifier[namespace] operator[=] identifier[Tenant] operator[SEP] identifier[getNamespace] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[namespace] operator[==] Other[null] oper...
@SuppressWarnings("unchecked") private ThreadContextDescriptor captureRaThreadContext(WSContextService contextSvc) { Map<String, String> execProps = new HashMap<String, String>(); execProps.put(WSContextService.DEFAULT_CONTEXT, WSContextService.ALL_CONTEXT_TYPES); execProps.put(WSContextServ...
class class_name[name] begin[{] method[captureRaThreadContext, return_type[type[ThreadContextDescriptor]], modifier[private], parameter[contextSvc]] begin[{] local_variable[type[Map], execProps] call[execProps.put, parameter[member[WSContextService.DEFAULT_CONTEXT], member[WSContextServ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[ThreadContextDescriptor] identifier[captureRaThreadContext] operator[SEP] identifier[WSContextService] identifier[contextSvc] operator[SEP] { identifier[Map] operator[<] identifier[String] , identi...
@Override public boolean containsValue(final Object value) { lock.readLock().lock(); try { return contains(value); } finally { lock.readLock().unlock(); } }
class class_name[name] begin[{] method[containsValue, return_type[type[boolean]], modifier[public], parameter[value]] begin[{] call[lock.readLock, parameter[]] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[containsValue] operator[SEP] Keyword[final] identifier[Object] identifier[value] operator[SEP] { identifier[lock] operator[SEP] identifier[readLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operator[SEP...
@Nonnull public static <T1, T2> LToLongBiFunction<T1, T2> toLongBiFunctionFrom(Consumer<LToLongBiFunctionBuilder<T1, T2>> buildingFunction) { LToLongBiFunctionBuilder builder = new LToLongBiFunctionBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[toLongBiFunctionFrom, return_type[type[LToLongBiFunction]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[LToLongBiFunctionBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] re...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] operator[>] identifier[LToLongBiFunction] operator[<] identifier[T1] , identifier[T2] operator[>] identifier[toLongBiFunctionFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LToLongBiFunctionBu...
public static String replaceVariables( final VariableResolver pResolver, final String pExpression, final String pOpen, final String pClose ) { final char[] open = pOpen.toCharArray(); final char[] close = pClose.toCharArray(); final StringBuilder out = new StringBuilder(); StringBuilder...
class class_name[name] begin[{] method[replaceVariables, return_type[type[String]], modifier[public static], parameter[pResolver, pExpression, pOpen, pClose]] begin[{] local_variable[type[char], open] local_variable[type[char], close] local_variable[type[StringBuilder], out] loc...
Keyword[public] Keyword[static] identifier[String] identifier[replaceVariables] operator[SEP] Keyword[final] identifier[VariableResolver] identifier[pResolver] , Keyword[final] identifier[String] identifier[pExpression] , Keyword[final] identifier[String] identifier[pOpen] , Keyword[final] identifier[String] identif...
public void setPropagatingVgws(java.util.Collection<PropagatingVgw> propagatingVgws) { if (propagatingVgws == null) { this.propagatingVgws = null; return; } this.propagatingVgws = new com.amazonaws.internal.SdkInternalList<PropagatingVgw>(propagatingVgws); }
class class_name[name] begin[{] method[setPropagatingVgws, return_type[void], modifier[public], parameter[propagatingVgws]] begin[{] if[binary_operation[member[.propagatingVgws], ==, literal[null]]] begin[{] assign[THIS[member[None.propagatingVgws]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setPropagatingVgws] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[PropagatingVgw] operator[>] identifier[propagatingVgws] operator[SEP] { Keyword[if] operator[SEP] identifier[propagatingVgws] oper...
public boolean isExists(String index) { IndicesExistsRequestBuilder indicesExistsRequestBuilder = admin().indices().prepareExists(index); return JMElasticsearchUtil .logRequestQueryAndReturn("isExists", indicesExistsRequestBuilder, ...
class class_name[name] begin[{] method[isExists, return_type[type[boolean]], modifier[public], parameter[index]] begin[{] local_variable[type[IndicesExistsRequestBuilder], indicesExistsRequestBuilder] return[call[JMElasticsearchUtil.logRequestQueryAndReturn, parameter[literal["isExists"], membe...
Keyword[public] Keyword[boolean] identifier[isExists] operator[SEP] identifier[String] identifier[index] operator[SEP] { identifier[IndicesExistsRequestBuilder] identifier[indicesExistsRequestBuilder] operator[=] identifier[admin] operator[SEP] operator[SEP] operator[SEP] identifier[indices] operator[SEP] operat...
public static final ReadableInterval getReadableInterval(ReadableInterval interval) { if (interval == null) { long now = DateTimeUtils.currentTimeMillis(); interval = new Interval(now, now); } return interval; }
class class_name[name] begin[{] method[getReadableInterval, return_type[type[ReadableInterval]], modifier[final public static], parameter[interval]] begin[{] if[binary_operation[member[.interval], ==, literal[null]]] begin[{] local_variable[type[long], now] a...
Keyword[public] Keyword[static] Keyword[final] identifier[ReadableInterval] identifier[getReadableInterval] operator[SEP] identifier[ReadableInterval] identifier[interval] operator[SEP] { Keyword[if] operator[SEP] identifier[interval] operator[==] Other[null] operator[SEP] { Keyword[long] identifier[n...
@Bind(optional = true, aggregate = true) public synchronized void bindDialect(IDialect dialect) { LOGGER.debug("Binding a new dialect using the prefix '{}' and containing {}", dialect.getPrefix(), dialect.getProcessors()); if (this.dialects.add(dialect)) { ...
class class_name[name] begin[{] method[bindDialect, return_type[void], modifier[synchronized public], parameter[dialect]] begin[{] call[LOGGER.debug, parameter[literal["Binding a new dialect using the prefix '{}' and containing {}"], call[dialect.getPrefix, parameter[]], call[dialect.getProcess...
annotation[@] identifier[Bind] operator[SEP] identifier[optional] operator[=] literal[boolean] , identifier[aggregate] operator[=] literal[boolean] operator[SEP] Keyword[public] Keyword[synchronized] Keyword[void] identifier[bindDialect] operator[SEP] identifier[IDialect] identifier[dialect] operator[SEP] { ide...
public ULocale canonicalize(ULocale ulocale) { // TODO Get the data from CLDR, use Java conventions. String lang = ulocale.getLanguage(); String lang2 = canonicalMap.get(lang); String script = ulocale.getScript(); String script2 = canonicalMap.get(script); String region =...
class class_name[name] begin[{] method[canonicalize, return_type[type[ULocale]], modifier[public], parameter[ulocale]] begin[{] local_variable[type[String], lang] local_variable[type[String], lang2] local_variable[type[String], script] local_variable[type[String], script2] ...
Keyword[public] identifier[ULocale] identifier[canonicalize] operator[SEP] identifier[ULocale] identifier[ulocale] operator[SEP] { identifier[String] identifier[lang] operator[=] identifier[ulocale] operator[SEP] identifier[getLanguage] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[lang...
public Long getLong(String column) { Number n = getNumber(column); return n != null ? n.longValue() : null; }
class class_name[name] begin[{] method[getLong, return_type[type[Long]], modifier[public], parameter[column]] begin[{] local_variable[type[Number], n] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, sel...
Keyword[public] identifier[Long] identifier[getLong] operator[SEP] identifier[String] identifier[column] operator[SEP] { identifier[Number] identifier[n] operator[=] identifier[getNumber] operator[SEP] identifier[column] operator[SEP] operator[SEP] Keyword[return] identifier[n] operator[!=] Other[null] operator[...
public static <T> Iterable<T> cycle(final Iterable<T> iterable) { checkNotNull(iterable); return new FluentIterable<T>() { @Override public Iterator<T> iterator() { return Iterators.cycle(iterable); } @Override public String toString() { return iterable.toString() ...
class class_name[name] begin[{] method[cycle, return_type[type[Iterable]], modifier[public static], parameter[iterable]] begin[{] call[.checkNotNull, parameter[member[.iterable]]] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Overri...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[cycle] operator[SEP] Keyword[final] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] operator[SEP] { identifier[checkNotNull] operator[SEP] id...
public static DateTimeFormatter ofLocalizedTime(FormatStyle timeStyle) { Jdk8Methods.requireNonNull(timeStyle, "timeStyle"); return new DateTimeFormatterBuilder().appendLocalized(null, timeStyle) .toFormatter().withChronology(IsoChronology.INSTANCE); }
class class_name[name] begin[{] method[ofLocalizedTime, return_type[type[DateTimeFormatter]], modifier[public static], parameter[timeStyle]] begin[{] call[Jdk8Methods.requireNonNull, parameter[member[.timeStyle], literal["timeStyle"]]] return[ClassCreator(arguments=[], body=None, constr...
Keyword[public] Keyword[static] identifier[DateTimeFormatter] identifier[ofLocalizedTime] operator[SEP] identifier[FormatStyle] identifier[timeStyle] operator[SEP] { identifier[Jdk8Methods] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[timeStyle] , literal[String] operator[SEP] operator[SEP]...
public List<Interceptors<BeansDescriptor>> getAllInterceptors() { List<Interceptors<BeansDescriptor>> list = new ArrayList<Interceptors<BeansDescriptor>>(); List<Node> nodeList = model.get("interceptors"); for (Node node : nodeList) { Interceptors<BeansDescriptor> type = new Intercep...
class class_name[name] begin[{] method[getAllInterceptors, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], list] local_variable[type[List], nodeList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations...
Keyword[public] identifier[List] operator[<] identifier[Interceptors] operator[<] identifier[BeansDescriptor] operator[>] operator[>] identifier[getAllInterceptors] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Interceptors] operator[<] identifier[BeansDescriptor] operator[>] operator[>] ...
@Override public InputStream render(Context context, Result result) throws RenderableException { try { return FileUtils.openInputStream(file); } catch (IOException e) { throw new RenderableException("Cannot read file " + file.getAbsolutePath(), e); } }
class class_name[name] begin[{] method[render, return_type[type[InputStream]], modifier[public], parameter[context, result]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
annotation[@] identifier[Override] Keyword[public] identifier[InputStream] identifier[render] operator[SEP] identifier[Context] identifier[context] , identifier[Result] identifier[result] operator[SEP] Keyword[throws] identifier[RenderableException] { Keyword[try] { Keyword[return] identifier[FileUti...
public VirtualAction createAction(ActionRuntime runtime, ActionResponseReflector reflector) { return newGodHandableAction(runtime, reflector, prepareVestibuleTxStage(), getRequestManager()); }
class class_name[name] begin[{] method[createAction, return_type[type[VirtualAction]], modifier[public], parameter[runtime, reflector]] begin[{] return[call[.newGodHandableAction, parameter[member[.runtime], member[.reflector], call[.prepareVestibuleTxStage, parameter[]], call[.getRequestManager, param...
Keyword[public] identifier[VirtualAction] identifier[createAction] operator[SEP] identifier[ActionRuntime] identifier[runtime] , identifier[ActionResponseReflector] identifier[reflector] operator[SEP] { Keyword[return] identifier[newGodHandableAction] operator[SEP] identifier[runtime] , identifier[reflector] ,...
public void getItemInfo(int[] ids, Callback<List<Item>> callback) throws GuildWars2Exception, NullPointerException { isParamValid(new ParamChecker(ids)); gw2API.getItemInfo(processIds(ids), GuildWars2.lang.getValue()).enqueue(callback); }
class class_name[name] begin[{] method[getItemInfo, return_type[void], modifier[public], parameter[ids, callback]] begin[{] call[.isParamValid, parameter[ClassCreator(arguments=[MemberReference(member=ids, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constru...
Keyword[public] Keyword[void] identifier[getItemInfo] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[ids] , identifier[Callback] operator[<] identifier[List] operator[<] identifier[Item] operator[>] operator[>] identifier[callback] operator[SEP] Keyword[throws] identifier[GuildWars2Exception] , ide...
@SuppressWarnings("unchecked") @Override public void run(Class<? extends Object> toRun, JobManager handler, Map<String, String> handlerParameters) { // initialize the spring context with all requested classes on first boot - // and only on first boot: the Spring context cannot be refreshed m...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[toRun, handler, handlerParameters]] begin[{] if[member[.refreshed]] begin[{] SYNCHRONIZED[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=R...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Object] operator[>] identifier[toRun] , identifier[JobManager] iden...
@InterfaceAudience.Public public SavedRevision getCurrentRevision() { if (currentRevision == null) currentRevision = getRevision(null); return currentRevision; }
class class_name[name] begin[{] method[getCurrentRevision, return_type[type[SavedRevision]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.currentRevision], ==, literal[null]]] begin[{] assign[member[.currentRevision], call[.getRevision, parameter[literal[null]...
annotation[@] identifier[InterfaceAudience] operator[SEP] identifier[Public] Keyword[public] identifier[SavedRevision] identifier[getCurrentRevision] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[currentRevision] operator[==] Other[null] operator[SEP] identifier[currentRevision] operator[=] ...
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:50:55+02:00", comments = "JAXB RI v2.2.11") public List<Haus> getHaus() { if (haus == null) { haus = new ArrayList<Haus>(); } return this.haus; }
class class_name[name] begin[{] method[getHaus, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.haus], ==, literal[null]]] begin[{] assign[member[.haus], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, p...
annotation[@] identifier[Generated] operator[SEP] identifier[value] operator[=] literal[String] , identifier[date] operator[=] literal[String] , identifier[comments] operator[=] literal[String] operator[SEP] Keyword[public] identifier[List] operator[<] identifier[Haus] operator[>] identifier[getHaus] operator[SEP] op...
Symbol addConstant(final Object value) { if (value instanceof Integer) { return addConstantInteger(((Integer) value).intValue()); } else if (value instanceof Byte) { return addConstantInteger(((Byte) value).intValue()); } else if (value instanceof Character) { return addConstantInteger(((C...
class class_name[name] begin[{] method[addConstant, return_type[type[Symbol]], modifier[default], parameter[value]] begin[{] if[binary_operation[member[.value], instanceof, type[Integer]]] begin[{] return[call[.addConstantInteger, parameter[Cast(expression=MemberReference(member=val...
identifier[Symbol] identifier[addConstant] operator[SEP] Keyword[final] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[Integer] operator[SEP] { Keyword[return] identifier[addConstantInteger] operator[SEP] operator[SEP] op...
private void trackFeatures(Image input, RectangleRotate_F64 region) { pairs.reset(); currentImage.process(input); for( int i = 0; i < currentImage.getNumLayers(); i++ ) { Image layer = currentImage.getLayer(i); gradient.process(layer,currentDerivX[i],currentDerivY[i]); } // convert to float to avoid e...
class class_name[name] begin[{] method[trackFeatures, return_type[void], modifier[private], parameter[input, region]] begin[{] call[pairs.reset, parameter[]] call[currentImage.process, parameter[member[.input]]] ForStatement(body=BlockStatement(label=None, statements=[Lo...
Keyword[private] Keyword[void] identifier[trackFeatures] operator[SEP] identifier[Image] identifier[input] , identifier[RectangleRotate_F64] identifier[region] operator[SEP] { identifier[pairs] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[currentImage] operator[SEP] ident...
@Nonnull public static <T> LObjIntConsumerBuilder<T> objIntConsumer(Consumer<LObjIntConsumer<T>> consumer) { return new LObjIntConsumerBuilder(consumer); }
class class_name[name] begin[{] method[objIntConsumer, return_type[type[LObjIntConsumerBuilder]], modifier[public static], parameter[consumer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=consumer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, cons...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[LObjIntConsumerBuilder] operator[<] identifier[T] operator[>] identifier[objIntConsumer] operator[SEP] identifier[Consumer] operator[<] identifier[LObjIntConsumer] operator[<] identifier[T] operator[>] ope...
@SuppressWarnings("deprecation") private static String getInputTypeFromCellType(final Cell cell) { String inputType = TieConstants.CELL_INPUT_TYPE_TEXT; if (cell.getCellTypeEnum() == CellType.NUMERIC) { inputType = TieConstants.CELL_INPUT_TYPE_DOUBLE; } CellStyle style = cell.getCellStyle(); if (...
class class_name[name] begin[{] method[getInputTypeFromCellType, return_type[type[String]], modifier[private static], parameter[cell]] begin[{] local_variable[type[String], inputType] if[binary_operation[call[cell.getCellTypeEnum, parameter[]], ==, member[CellType.NUMERIC]]] begin[{] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] identifier[String] identifier[getInputTypeFromCellType] operator[SEP] Keyword[final] identifier[Cell] identifier[cell] operator[SEP] { identifier[String] identifier[inputType] operator[=] ident...
@SuppressWarnings("fallthrough") protected DCReference reference(boolean allowMember) throws ParseException { int pos = bp; int depth = 0; // scan to find the end of the signature, by looking for the first // whitespace not enclosed in () or <>, or the end of the tag loop: ...
class class_name[name] begin[{] method[reference, return_type[type[DCReference]], modifier[protected], parameter[allowMember]] begin[{] local_variable[type[int], pos] local_variable[type[int], depth] while[binary_operation[member[.bp], <, member[.buflen]]] begin[{] S...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] identifier[DCReference] identifier[reference] operator[SEP] Keyword[boolean] identifier[allowMember] operator[SEP] Keyword[throws] identifier[ParseException] { Keyword[int] identifier[pos] operator[=] identi...
public void doMutation(double probability, BinarySolution solution) { for (int i = 0; i < solution.getNumberOfVariables(); i++) { for (int j = 0; j < solution.getVariableValue(i).getBinarySetLength(); j++) { if (randomGenerator.getRandomValue() <= probability) { solution.getVariableValu...
class class_name[name] begin[{] method[doMutation, return_type[void], modifier[public], parameter[probability, solution]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvoc...
Keyword[public] Keyword[void] identifier[doMutation] operator[SEP] Keyword[double] identifier[probability] , identifier[BinarySolution] identifier[solution] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[solution] ope...
@Nonnull public JSDefinedClass removeField (@Nonnull final JSFieldVar aField) { ValueEnforcer.notNull (aField, "Field"); if (m_aFields.remove (aField.name ()) != aField) throw new IllegalArgumentException ("Failed to remove field '" + aField.name () + ...
class class_name[name] begin[{] method[removeField, return_type[type[JSDefinedClass]], modifier[public], parameter[aField]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aField], literal["Field"]]] if[binary_operation[call[m_aFields.remove, parameter[call[aField.name, p...
annotation[@] identifier[Nonnull] Keyword[public] identifier[JSDefinedClass] identifier[removeField] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[JSFieldVar] identifier[aField] operator[SEP] { identifier[ValueEnforcer] operator[SEP] identifier[notNull] operator[SEP] identifier[aField...
public static void preApproveSubscriptionIfRequiredAndPossible(Roster roster, BareJid jid) throws NotLoggedInException, NotConnectedException, InterruptedException { if (!roster.isSubscriptionPreApprovalSupported()) { return; } RosterEntry entry = roster.getEntry(jid); ...
class class_name[name] begin[{] method[preApproveSubscriptionIfRequiredAndPossible, return_type[void], modifier[public static], parameter[roster, jid]] begin[{] if[call[roster.isSubscriptionPreApprovalSupported, parameter[]]] begin[{] return[None] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[void] identifier[preApproveSubscriptionIfRequiredAndPossible] operator[SEP] identifier[Roster] identifier[roster] , identifier[BareJid] identifier[jid] operator[SEP] Keyword[throws] identifier[NotLoggedInException] , identifier[NotConnectedException] , identifier[InterruptedEx...
public static void begin(ServletRequest request, ServletResponse response, String serviceName, String objectId) throws ServletException { ServiceContext context = (ServiceContext) _localContext.get(); if ...
class class_name[name] begin[{] method[begin, return_type[void], modifier[public static], parameter[request, response, serviceName, objectId]] begin[{] local_variable[type[ServiceContext], context] if[binary_operation[member[.context], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[begin] operator[SEP] identifier[ServletRequest] identifier[request] , identifier[ServletResponse] identifier[response] , identifier[String] identifier[serviceName] , identifier[String] identifier[objectId] operator[SEP] Keyword[throws] identifier[ServletExcept...
private void processRequireCall(NodeTraversal t, Node n, Node parent) { Node left = n.getFirstChild(); Node arg = left.getNext(); String method = left.getFirstChild().getNext().getString(); if (verifyLastArgumentIsString(left, arg)) { String ns = arg.getString(); ProvidedName provided = prov...
class class_name[name] begin[{] method[processRequireCall, return_type[void], modifier[private], parameter[t, n, parent]] begin[{] local_variable[type[Node], left] local_variable[type[Node], arg] local_variable[type[String], method] if[call[.verifyLastArgumentIsString, p...
Keyword[private] Keyword[void] identifier[processRequireCall] operator[SEP] identifier[NodeTraversal] identifier[t] , identifier[Node] identifier[n] , identifier[Node] identifier[parent] operator[SEP] { identifier[Node] identifier[left] operator[=] identifier[n] operator[SEP] identifier[getFirstChild] operator...
public PurgeQueueResult purgeQueue(PurgeQueueRequest purgeQueueRequest) throws AmazonServiceException, AmazonClientException { LOG.warn("Calling purgeQueue deletes SQS messages without deleting their payload from S3."); if (purgeQueueRequest == null) { String errorMessage = "purgeQueueRequest cannot be null....
class class_name[name] begin[{] method[purgeQueue, return_type[type[PurgeQueueResult]], modifier[public], parameter[purgeQueueRequest]] begin[{] call[LOG.warn, parameter[literal["Calling purgeQueue deletes SQS messages without deleting their payload from S3."]]] if[binary_operat...
Keyword[public] identifier[PurgeQueueResult] identifier[purgeQueue] operator[SEP] identifier[PurgeQueueRequest] identifier[purgeQueueRequest] operator[SEP] Keyword[throws] identifier[AmazonServiceException] , identifier[AmazonClientException] { identifier[LOG] operator[SEP] identifier[warn] operator[SEP] litera...
public Setup setEnvironment(final Environment environment) { switch (environment) { case SANDBOX : this.environment = SANDBOX_URL; break; case PRODUCTION : this.environment = PRODUCTION_URL; break; case CONNECT_SANDBOX : this.environment = CONNECT_SANDBOX_URL; break; ...
class class_name[name] begin[{] method[setEnvironment, return_type[type[Setup]], modifier[public], parameter[environment]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['SANDBOX'], statements=[StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=...
Keyword[public] identifier[Setup] identifier[setEnvironment] operator[SEP] Keyword[final] identifier[Environment] identifier[environment] operator[SEP] { Keyword[switch] operator[SEP] identifier[environment] operator[SEP] { Keyword[case] identifier[SANDBOX] operator[:] Keyword[this] operator[SEP] ide...
public Optional<NrqlAlertCondition> update(NrqlAlertCondition condition) { return HTTP.PUT(String.format("/v2/alerts_nrql_conditions/%d.json", condition.getId()), condition, NRQL_ALERT_CONDITION); }
class class_name[name] begin[{] method[update, return_type[type[Optional]], modifier[public], parameter[condition]] begin[{] return[call[HTTP.PUT, parameter[call[String.format, parameter[literal["/v2/alerts_nrql_conditions/%d.json"], call[condition.getId, parameter[]]]], member[.condition], member[.NRQ...
Keyword[public] identifier[Optional] operator[<] identifier[NrqlAlertCondition] operator[>] identifier[update] operator[SEP] identifier[NrqlAlertCondition] identifier[condition] operator[SEP] { Keyword[return] identifier[HTTP] operator[SEP] identifier[PUT] operator[SEP] identifier[String] operator[SEP] identifie...
final GoogleCredential getDefaultCredential(HttpTransport transport, JsonFactory jsonFactory) throws IOException { synchronized (this) { if (cachedCredential == null) { cachedCredential = getDefaultCredentialUnsynchronized(transport, jsonFactory); } if (cachedCredential != null) { ...
class class_name[name] begin[{] method[getDefaultCredential, return_type[type[GoogleCredential]], modifier[final], parameter[transport, jsonFactory]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] if[binary_operation[member[.cachedCredential], ==, literal[null]]] begin[{] ...
Keyword[final] identifier[GoogleCredential] identifier[getDefaultCredential] operator[SEP] identifier[HttpTransport] identifier[transport] , identifier[JsonFactory] identifier[jsonFactory] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { ...
@Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2009-05-25 16:01:00 EDT { id = 0; String X = null; L: switch (s.length()) { case 5: X="parse";id=Id_parse; break L; case 8: X="toSource";id=Id_toSource; break L; ...
class class_name[name] begin[{] method[findPrototypeId, return_type[type[int]], modifier[protected], parameter[s]] begin[{] local_variable[type[int], id] assign[member[.id], literal[0]] local_variable[type[String], X] SwitchStatement(cases=[SwitchStatementCase(ca...
annotation[@] identifier[Override] Keyword[protected] Keyword[int] identifier[findPrototypeId] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[int] identifier[id] operator[SEP] { identifier[id] operator[=] Other[0] operator[SEP] identifier[String] identifier[X] operator[=] Other...
private ChooseConfig searchAnnotatedConfig(ChooseConfig cc) { if((isNull(cc)||cc == ChooseConfig.DESTINATION) && Annotation.isInheritedMapped(destination)) return ChooseConfig.DESTINATION; if((isNull(cc)||cc == ChooseConfig.SOURCE) && Annotation.isInheritedMapped(source)) return ChooseConfig.S...
class class_name[name] begin[{] method[searchAnnotatedConfig, return_type[type[ChooseConfig]], modifier[private], parameter[cc]] begin[{] if[binary_operation[binary_operation[call[.isNull, parameter[member[.cc]]], ||, binary_operation[member[.cc], ==, member[ChooseConfig.DESTINATION]]], &&, cal...
Keyword[private] identifier[ChooseConfig] identifier[searchAnnotatedConfig] operator[SEP] identifier[ChooseConfig] identifier[cc] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[isNull] operator[SEP] identifier[cc] operator[SEP] operator[||] identifier[cc] operator[==] identifier[ChooseConfig]...
public boolean containsAll(Iterable<? extends C> values) { if (Iterables.isEmpty(values)) { return true; } // this optimizes testing equality of two range-backed sets if (values instanceof SortedSet) { SortedSet<? extends C> set = cast(values); Comparator<?> comparator = set.comparato...
class class_name[name] begin[{] method[containsAll, return_type[type[boolean]], modifier[public], parameter[values]] begin[{] if[call[Iterables.isEmpty, parameter[member[.values]]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_op...
Keyword[public] Keyword[boolean] identifier[containsAll] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[C] operator[>] identifier[values] operator[SEP] { Keyword[if] operator[SEP] identifier[Iterables] operator[SEP] identifier[isEmpty] operator[SEP] identifier[values] oper...
private static void updateFilterSDASet(double mib, List<SteepDownArea> sdaset, double ixi) { Iterator<SteepDownArea> iter = sdaset.iterator(); while(iter.hasNext()) { SteepDownArea sda = iter.next(); if(sda.getMaximum() * ixi <= mib) { iter.remove(); } else { // Update ...
class class_name[name] begin[{] method[updateFilterSDASet, return_type[void], modifier[private static], parameter[mib, sdaset, ixi]] begin[{] local_variable[type[Iterator], iter] while[call[iter.hasNext, parameter[]]] begin[{] local_variable[type[SteepDownArea], sda] ...
Keyword[private] Keyword[static] Keyword[void] identifier[updateFilterSDASet] operator[SEP] Keyword[double] identifier[mib] , identifier[List] operator[<] identifier[SteepDownArea] operator[>] identifier[sdaset] , Keyword[double] identifier[ixi] operator[SEP] { identifier[Iterator] operator[<] identifier[Steep...
public void getConversations(final EndpointConversationsCompletionListener completionListener) { if (!isConnected()) { getEndpointConversationsError(completionListener, "Can't complete request when not connected, " + "Please reconnect!"); return; } String...
class class_name[name] begin[{] method[getConversations, return_type[void], modifier[public], parameter[completionListener]] begin[{] if[call[.isConnected, parameter[]]] begin[{] call[.getEndpointConversationsError, parameter[member[.completionListener], binary_operation...
Keyword[public] Keyword[void] identifier[getConversations] operator[SEP] Keyword[final] identifier[EndpointConversationsCompletionListener] identifier[completionListener] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isConnected] operator[SEP] operator[SEP] operator[SEP] { identifie...
public Pager<Branch> getBranches(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException { return (new Pager<Branch>(this, Branch.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "repository", "branches")); }
class class_name[name] begin[{] method[getBranches, return_type[type[Pager]], modifier[public], parameter[projectIdOrPath, itemsPerPage]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_op...
Keyword[public] identifier[Pager] operator[<] identifier[Branch] operator[>] identifier[getBranches] operator[SEP] identifier[Object] identifier[projectIdOrPath] , Keyword[int] identifier[itemsPerPage] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[return] operator[SEP] Keyword[new] iden...
public Paragraph createParagraph(Object data, Collection<? extends BaseStyler> stylers) throws VectorPrintException { return initTextElementArray(styleHelper.style(new Paragraph(Float.NaN), data, stylers), data, stylers); }
class class_name[name] begin[{] method[createParagraph, return_type[type[Paragraph]], modifier[public], parameter[data, stylers]] begin[{] return[call[.initTextElementArray, parameter[call[styleHelper.style, parameter[ClassCreator(arguments=[MemberReference(member=NaN, postfix_operators=[], prefix_oper...
Keyword[public] identifier[Paragraph] identifier[createParagraph] operator[SEP] identifier[Object] identifier[data] , identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[BaseStyler] operator[>] identifier[stylers] operator[SEP] Keyword[throws] identifier[VectorPrintException] { Keyword[re...
Integer getVersionOrThrow(CMAResource resource, String action) { final Integer version = resource.getVersion(); if (version == null) { throw new IllegalArgumentException(String.format( "Cannot perform %s action on a resource that has no version associated.", action)); } return ...
class class_name[name] begin[{] method[getVersionOrThrow, return_type[type[Integer]], modifier[default], parameter[resource, action]] begin[{] local_variable[type[Integer], version] if[binary_operation[member[.version], ==, literal[null]]] begin[{] ThrowStatement(expression=...
identifier[Integer] identifier[getVersionOrThrow] operator[SEP] identifier[CMAResource] identifier[resource] , identifier[String] identifier[action] operator[SEP] { Keyword[final] identifier[Integer] identifier[version] operator[=] identifier[resource] operator[SEP] identifier[getVersion] operator[SEP] operator...
private int dpToPx(float dp) { final DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics(); float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); return Math.round(px); }
class class_name[name] begin[{] method[dpToPx, return_type[type[int]], modifier[private], parameter[dp]] begin[{] local_variable[type[DisplayMetrics], displayMetrics] local_variable[type[float], px] return[call[Math.round, parameter[member[.px]]]] end[}] END[}]
Keyword[private] Keyword[int] identifier[dpToPx] operator[SEP] Keyword[float] identifier[dp] operator[SEP] { Keyword[final] identifier[DisplayMetrics] identifier[displayMetrics] operator[=] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] identifier[getResources] operator[SEP] operator[SEP] opera...
private Message buildMapEntryMessage(Message.Builder mapBuilder, Field field, Object mapKey, Object mapValue) { FieldDescriptor keyFieldDescriptor = mapBuilder.getDescriptorForType().findFieldByName(MAP_KEY_FIELD_NAME); FieldDescriptor valueFieldDescriptor = ma...
class class_name[name] begin[{] method[buildMapEntryMessage, return_type[type[Message]], modifier[private], parameter[mapBuilder, field, mapKey, mapValue]] begin[{] local_variable[type[FieldDescriptor], keyFieldDescriptor] local_variable[type[FieldDescriptor], valueFieldDescriptor] loca...
Keyword[private] identifier[Message] identifier[buildMapEntryMessage] operator[SEP] identifier[Message] operator[SEP] identifier[Builder] identifier[mapBuilder] , identifier[Field] identifier[field] , identifier[Object] identifier[mapKey] , identifier[Object] identifier[mapValue] operator[SEP] { identifier[Fi...
@Override @SuppressWarnings("unchecked") public void setModifiedWith(PROCESS modifiedWith) { this.modifiedWith = assertNotNull(modifiedWith, () -> "Modified with is required"); this.lastModifiedWith = defaultIfNull(this.lastModifiedWith, this.modifiedWith); }
class class_name[name] begin[{] method[setModifiedWith, return_type[void], modifier[public], parameter[modifiedWith]] begin[{] assign[THIS[member[None.modifiedWith]], call[.assertNotNull, parameter[member[.modifiedWith], LambdaExpression(body=Literal(postfix_operators=[], prefix_operators=[], q...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[setModifiedWith] operator[SEP] identifier[PROCESS] identifier[modifiedWith] operator[SEP] { Keyword[this] operator[SEP] identifier[modifiedWith] opera...
private void compactByAge() { if (maxLogAge != null) { long currentTime = System.currentTimeMillis(); JournalSegment<LogEntry> compactSegment = null; Long compactIndex = null; for (JournalSegment<LogEntry> segment : journal.segments()) { if (currentTime - segment.descriptor().updated...
class class_name[name] begin[{] method[compactByAge, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.maxLogAge], !=, literal[null]]] begin[{] local_variable[type[long], currentTime] local_variable[type[JournalSegment], compactSegme...
Keyword[private] Keyword[void] identifier[compactByAge] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[maxLogAge] operator[!=] Other[null] operator[SEP] { Keyword[long] identifier[currentTime] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] ...
@Override public synchronized int executeUpdate(String query) throws DatabaseEngineException { String[] split = query.split(Constants.UNIT_SEPARATOR_CHARACTER + ""); int i = -1; for (String s : split) { if (StringUtils.isNotBlank(s)) { i = super.executeUpdate(s); ...
class class_name[name] begin[{] method[executeUpdate, return_type[type[int]], modifier[synchronized public], parameter[query]] begin[{] local_variable[type[String], split] local_variable[type[int], i] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodI...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[int] identifier[executeUpdate] operator[SEP] identifier[String] identifier[query] operator[SEP] Keyword[throws] identifier[DatabaseEngineException] { identifier[String] operator[SEP] operator[SEP] identifier[split] operator[=] ident...
public static boolean reallyDifferent(JsonNode source, JsonNode dest, boolean ignoreTimestampMSDiffs) { if (source == null || source instanceof NullNode) { if (dest == null || dest instanceof NullNode) { return false; } else { return true; } ...
class class_name[name] begin[{] method[reallyDifferent, return_type[type[boolean]], modifier[public static], parameter[source, dest, ignoreTimestampMSDiffs]] begin[{] if[binary_operation[binary_operation[member[.source], ==, literal[null]], ||, binary_operation[member[.source], instanceof, type...
Keyword[public] Keyword[static] Keyword[boolean] identifier[reallyDifferent] operator[SEP] identifier[JsonNode] identifier[source] , identifier[JsonNode] identifier[dest] , Keyword[boolean] identifier[ignoreTimestampMSDiffs] operator[SEP] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] ...
public CreateIssueParams milestoneIds(List milestoneIds) { for (Object milestoneId : milestoneIds) { parameters.add(new NameValuePair("milestoneId[]", milestoneId.toString())); } return this; }
class class_name[name] begin[{] method[milestoneIds, return_type[type[CreateIssueParams]], modifier[public], parameter[milestoneIds]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[Literal(postfix_oper...
Keyword[public] identifier[CreateIssueParams] identifier[milestoneIds] operator[SEP] identifier[List] identifier[milestoneIds] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[milestoneId] operator[:] identifier[milestoneIds] operator[SEP] { identifier[parameters] operator[SEP...
public static <K1, V1, K2, V2> void setReducer(JobConf jobConf, Class<? extends Reducer<K1, V1, K2, V2>> klass, Class<? extends K1> inputKeyClass, Class<? extends V1> inputValueClass, Class<? extends K2> outputKeyCla...
class class_name[name] begin[{] method[setReducer, return_type[void], modifier[public static], parameter[jobConf, klass, inputKeyClass, inputValueClass, outputKeyClass, outputValueClass, byValue, reducerConf]] begin[{] local_variable[type[String], prefix] if[binary_operation[call[jobCon...
Keyword[public] Keyword[static] operator[<] identifier[K1] , identifier[V1] , identifier[K2] , identifier[V2] operator[>] Keyword[void] identifier[setReducer] operator[SEP] identifier[JobConf] identifier[jobConf] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Reducer] operator[<] identifier...
protected JvmIdentifiableElement doGetLinkedFeature(/* @Nullable */ XExpression featureOrConstructorCall) { if (linkingMap == null || featureOrConstructorCall == null || featureOrConstructorCall.eClass() == XbasePackage.Literals.XCLOSURE) return null; IApplicableCandidate candidate = linkingMap.get(featureOrCons...
class class_name[name] begin[{] method[doGetLinkedFeature, return_type[type[JvmIdentifiableElement]], modifier[protected], parameter[featureOrConstructorCall]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.linkingMap], ==, literal[null]], ||, binary_operation[member[.fe...
Keyword[protected] identifier[JvmIdentifiableElement] identifier[doGetLinkedFeature] operator[SEP] identifier[XExpression] identifier[featureOrConstructorCall] operator[SEP] { Keyword[if] operator[SEP] identifier[linkingMap] operator[==] Other[null] operator[||] identifier[featureOrConstructorCall] operator[==] ...
public void sendUserEvent(KeyValueCollection userData, String callUuid) throws WorkspaceApiException { this.sendUserEvent(userData, callUuid, null); }
class class_name[name] begin[{] method[sendUserEvent, return_type[void], modifier[public], parameter[userData, callUuid]] begin[{] THIS[call[None.sendUserEvent, parameter[member[.userData], member[.callUuid], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[sendUserEvent] operator[SEP] identifier[KeyValueCollection] identifier[userData] , identifier[String] identifier[callUuid] operator[SEP] Keyword[throws] identifier[WorkspaceApiException] { Keyword[this] operator[SEP] identifier[sendUserEvent] operator[SEP] identifier[use...
public void expandSuperTypes() { if (store.keySet().contains(index(SubTypesScanner.class))) { final Multimap<String, String> mmap = store.get(index(SubTypesScanner.class)); final Collection<String> values = mmap.values(); final Set<String> keys = Sets.difference(mmap.keySet() , new HashSet<>(value...
class class_name[name] begin[{] method[expandSuperTypes, return_type[void], modifier[public], parameter[]] begin[{] if[call[store.keySet, parameter[]]] begin[{] local_variable[type[Multimap], mmap] local_variable[type[Collection], values] local_variable[type[...
Keyword[public] Keyword[void] identifier[expandSuperTypes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[store] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[index] operator[SEP] identifier[SubTypesScanner] operator[S...
public static Boolean[] box(boolean[] array) { dbc.precondition(array != null, "cannot box a null boolean array"); final Boolean[] result = new Boolean[array.length]; for (int i = 0; i != result.length; ++i) { result[i] = array[i]; } return result; }
class class_name[name] begin[{] method[box, return_type[type[Boolean]], modifier[public static], parameter[array]] begin[{] call[dbc.precondition, parameter[binary_operation[member[.array], !=, literal[null]], literal["cannot box a null boolean array"]]] local_variable[type[Boolean], re...
Keyword[public] Keyword[static] identifier[Boolean] operator[SEP] operator[SEP] identifier[box] operator[SEP] Keyword[boolean] operator[SEP] operator[SEP] identifier[array] operator[SEP] { identifier[dbc] operator[SEP] identifier[precondition] operator[SEP] identifier[array] operator[!=] Other[null] , literal[S...
public static void PEMtoP12(File pem, String pemPassword, File toP12, String p12Password) throws IOException { if (!pem.exists()) throw new IllegalArgumentException("pem file does not exist: " + pem.getPath()); Execed openssl = Exec.utilityAs(null, OPENSSL, ...
class class_name[name] begin[{] method[PEMtoP12, return_type[void], modifier[public static], parameter[pem, pemPassword, toP12, p12Password]] begin[{] if[call[pem.exists, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=...
Keyword[public] Keyword[static] Keyword[void] identifier[PEMtoP12] operator[SEP] identifier[File] identifier[pem] , identifier[String] identifier[pemPassword] , identifier[File] identifier[toP12] , identifier[String] identifier[p12Password] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] o...
public static char getChar(String symbol) { CharInfo info = (CharInfo) fSymbolMap.get(symbol); return (info != null) ? (char) info.fCode : '\0'; }
class class_name[name] begin[{] method[getChar, return_type[type[char]], modifier[public static], parameter[symbol]] begin[{] local_variable[type[CharInfo], info] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=info, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] Keyword[char] identifier[getChar] operator[SEP] identifier[String] identifier[symbol] operator[SEP] { identifier[CharInfo] identifier[info] operator[=] operator[SEP] identifier[CharInfo] operator[SEP] identifier[fSymbolMap] operator[SEP] identifier[get] operator[SEP] identifier[sy...
public void runPendingTasks() { try { loop.runTasks(); } catch (Exception e) { recordException(e); } try { loop.runScheduledTasks(); } catch (Exception e) { recordException(e); } }
class class_name[name] begin[{] method[runPendingTasks, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=runTasks, postfix_operators=[], prefix_operators=[], qualifier=loop, selectors=[], type_arguments=N...
Keyword[public] Keyword[void] identifier[runPendingTasks] operator[SEP] operator[SEP] { Keyword[try] { identifier[loop] operator[SEP] identifier[runTasks] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { ...
public static Document toDocument(final String aFilePath, final String aPattern, final boolean aDeepConversion) throws FileNotFoundException, ParserConfigurationException { final Element element = toElement(aFilePath, aPattern, aDeepConversion); final Document document = element.getOwnerDocu...
class class_name[name] begin[{] method[toDocument, return_type[type[Document]], modifier[public static], parameter[aFilePath, aPattern, aDeepConversion]] begin[{] local_variable[type[Element], element] local_variable[type[Document], document] call[document.appendChild, parameter...
Keyword[public] Keyword[static] identifier[Document] identifier[toDocument] operator[SEP] Keyword[final] identifier[String] identifier[aFilePath] , Keyword[final] identifier[String] identifier[aPattern] , Keyword[final] Keyword[boolean] identifier[aDeepConversion] operator[SEP] Keyword[throws] identifier[FileNotFound...
protected VertCoordType getLevelType(int code) { VertCoordType result = wmoTable3.get(code); if (result == null) result = new VertCoordType(code, "unknownLayer"+code, null, "unknownLayer"+code, null, false, false); return result; }
class class_name[name] begin[{] method[getLevelType, return_type[type[VertCoordType]], modifier[protected], parameter[code]] begin[{] local_variable[type[VertCoordType], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] assign[member[.result], ClassCr...
Keyword[protected] identifier[VertCoordType] identifier[getLevelType] operator[SEP] Keyword[int] identifier[code] operator[SEP] { identifier[VertCoordType] identifier[result] operator[=] identifier[wmoTable3] operator[SEP] identifier[get] operator[SEP] identifier[code] operator[SEP] operator[SEP] Keyword[if] ope...
protected void doSend(Postcard postcard, SMailPostingMessage message) { logMailBefore(postcard, message); RuntimeException cause = null; try { retryableSend(postcard, message); } catch (RuntimeException e) { cause = e; if (postcard.isSuppressSendFailur...
class class_name[name] begin[{] method[doSend, return_type[void], modifier[protected], parameter[postcard, message]] begin[{] call[.logMailBefore, parameter[member[.postcard], member[.message]]] local_variable[type[RuntimeException], cause] TryStatement(block=[StatementExpressio...
Keyword[protected] Keyword[void] identifier[doSend] operator[SEP] identifier[Postcard] identifier[postcard] , identifier[SMailPostingMessage] identifier[message] operator[SEP] { identifier[logMailBefore] operator[SEP] identifier[postcard] , identifier[message] operator[SEP] operator[SEP] identifier[RuntimeExce...
public GeneralTimestamp<FrenchRepublicanCalendar> atTime( int hour, int minute ) { return this.at(PlainTime.of(hour, minute)); }
class class_name[name] begin[{] method[atTime, return_type[type[GeneralTimestamp]], modifier[public], parameter[hour, minute]] begin[{] return[THIS[call[None.at, parameter[call[PlainTime.of, parameter[member[.hour], member[.minute]]]]]]] end[}] END[}]
Keyword[public] identifier[GeneralTimestamp] operator[<] identifier[FrenchRepublicanCalendar] operator[>] identifier[atTime] operator[SEP] Keyword[int] identifier[hour] , Keyword[int] identifier[minute] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[at] operator[SEP] identifier[PlainTime...
private IQueryAtom matchExact(final IAtomContainer mol, final IAtom atom) { final IChemObjectBuilder bldr = atom.getBuilder(); int elem = atom.getAtomicNumber(); // attach atom skipped if (elem == 0) return null; int hcnt = atom.getImplicitHydrogenCount(); ...
class class_name[name] begin[{] method[matchExact, return_type[type[IQueryAtom]], modifier[private], parameter[mol, atom]] begin[{] local_variable[type[IChemObjectBuilder], bldr] local_variable[type[int], elem] if[binary_operation[member[.elem], ==, literal[0]]] begin[{] return[...
Keyword[private] identifier[IQueryAtom] identifier[matchExact] operator[SEP] Keyword[final] identifier[IAtomContainer] identifier[mol] , Keyword[final] identifier[IAtom] identifier[atom] operator[SEP] { Keyword[final] identifier[IChemObjectBuilder] identifier[bldr] operator[=] identifier[atom] operator[SEP] ide...
public void populateSalary(ResultSet row, ObjectNode s) throws SQLException { s.put("employeeId", row.getInt("emp_no")); s.put("salary", row.getInt("salary")); Calendar fromDate = Calendar.getInstance(); fromDate.setTime(row.getDate("from_date")); s.put("fromDate", dateFormat.format(fromDate.getTime...
class class_name[name] begin[{] method[populateSalary, return_type[void], modifier[public], parameter[row, s]] begin[{] call[s.put, parameter[literal["employeeId"], call[row.getInt, parameter[literal["emp_no"]]]]] call[s.put, parameter[literal["salary"], call[row.getInt, paramet...
Keyword[public] Keyword[void] identifier[populateSalary] operator[SEP] identifier[ResultSet] identifier[row] , identifier[ObjectNode] identifier[s] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[s] operator[SEP] identifier[put] operator[SEP] literal[String] , identifier[row] operator[SEP] ...