code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private Set<MtasParserObject> processCRMSentence( MtasTokenIdFactory mtasTokenIdFactory, String name, String text, Integer currentOffset, List<MtasCRMParserFunctionOutput> functionOutputList, MtasCRMAncestors unknownAncestors, Map<String, List<MtasParserObject>> currentList, Map<Stri...
class class_name[name] begin[{] method[processCRMSentence, return_type[type[Set]], modifier[private], parameter[mtasTokenIdFactory, name, text, currentOffset, functionOutputList, unknownAncestors, currentList, updateList, idPositions, idOffsets, previous, previousClause]] begin[{] local_variable[type[M...
Keyword[private] identifier[Set] operator[<] identifier[MtasParserObject] operator[>] identifier[processCRMSentence] operator[SEP] identifier[MtasTokenIdFactory] identifier[mtasTokenIdFactory] , identifier[String] identifier[name] , identifier[String] identifier[text] , identifier[Integer] identifier[currentOffset] ...
public static <T, K> List<T> move(List<T> list, K key, K ref, Function<T, K> keyMapper, boolean before, Function<T, Integer> orderGet, OrderSetter<T> orderSet, int orderGap) { if (key == ref) return null; // { 找到要移动的项和参考项所在位置 int keyidx = -1; int refidx = -1; int idx = 0; for (T t : li...
class class_name[name] begin[{] method[move, return_type[type[List]], modifier[public static], parameter[list, key, ref, keyMapper, before, orderGet, orderSet, orderGap]] begin[{] if[binary_operation[member[.key], ==, member[.ref]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[K] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[move] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[list] , identifier[K] identifier[key] , identifier[K] identifier[ref] , identi...
public Options addxAxis(final Axis xAxis) { if (this.getxAxis() == null) { this.setxAxis(new ArrayList<Axis>()); } this.getxAxis().add(xAxis); return this; }
class class_name[name] begin[{] method[addxAxis, return_type[type[Options]], modifier[public], parameter[xAxis]] begin[{] if[binary_operation[THIS[call[None.getxAxis, parameter[]]], ==, literal[null]]] begin[{] THIS[call[None.setxAxis, parameter[ClassCreator(arguments=[]...
Keyword[public] identifier[Options] identifier[addxAxis] operator[SEP] Keyword[final] identifier[Axis] identifier[xAxis] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[getxAxis] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[this] operato...
@CheckReturnValue @BackpressureSupport(BackpressureKind.PASS_THROUGH) @SchedulerSupport(SchedulerSupport.NONE) public final Flowable<T> doOnNext(Consumer<? super T> onNext) { return doOnEach(onNext, Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION); }
class class_name[name] begin[{] method[doOnNext, return_type[type[Flowable]], modifier[final public], parameter[onNext]] begin[{] return[call[.doOnEach, parameter[member[.onNext], call[Functions.emptyConsumer, parameter[]], member[Functions.EMPTY_ACTION], member[Functions.EMPTY_ACTION]]]] end[}] EN...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[PASS_THROUGH] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyw...
public Observable<ServiceResponse<Frames>> getVideoFramesWithServiceResponseAsync(String teamName, String reviewId, GetVideoFramesOptionalParameter getVideoFramesOptionalParameter) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required ...
class class_name[name] begin[{] method[getVideoFramesWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[teamName, reviewId, getVideoFramesOptionalParameter]] begin[{] if[binary_operation[THIS[member[None.client]call[None.baseUrl, parameter[]]], ==, literal[null...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Frames] operator[>] operator[>] identifier[getVideoFramesWithServiceResponseAsync] operator[SEP] identifier[String] identifier[teamName] , identifier[String] identifier[reviewId] , identifier[GetVideoFramesOptionalPa...
public TemplateBuilder pe(Object o, Escape escape) { if (null != o) { if (o instanceof RawData) { return (TemplateBuilder) p(o); } if (null == escape) { escape = __defaultEscape(); } switch (escape) { cas...
class class_name[name] begin[{] method[pe, return_type[type[TemplateBuilder]], modifier[public], parameter[o, escape]] begin[{] if[binary_operation[literal[null], !=, member[.o]]] begin[{] if[binary_operation[member[.o], instanceof, type[RawData]]] begin[{] ...
Keyword[public] identifier[TemplateBuilder] identifier[pe] operator[SEP] identifier[Object] identifier[o] , identifier[Escape] identifier[escape] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[o] operator[SEP] { Keyword[if] operator[SEP] identifier[o] Keyword[instanceof...
public static boolean isValidDouble(@Nullable final String doubleStr) { if (StringUtils.isBlank(doubleStr)) { return false; } final String stripedDouble = StringUtils.strip(doubleStr); try { NumberUtils.createDouble(stripedDouble); return true; ...
class class_name[name] begin[{] method[isValidDouble, return_type[type[boolean]], modifier[public static], parameter[doubleStr]] begin[{] if[call[StringUtils.isBlank, parameter[member[.doubleStr]]]] begin[{] return[literal[false]] else begin[{] None end[}] lo...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValidDouble] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[doubleStr] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] identifier[doubleSt...
public void setBeans(Collection<?> beans) { if (!CollectionUtils.isEmpty(beans)) { for (Object bean : beans) { register(bean); } } }
class class_name[name] begin[{] method[setBeans, return_type[void], modifier[public], parameter[beans]] begin[{] if[call[CollectionUtils.isEmpty, parameter[member[.beans]]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvoca...
Keyword[public] Keyword[void] identifier[setBeans] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[beans] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[CollectionUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[beans] operator[SEP] operator[...
private void refreshTree(HttpServletRequest request, TreeControl control) throws Exception { String key = request.getParameter("key"); if (key != null) { ViewNode node = control.findNode(key); if (node != null) { Debug.logVerbose("[JdonFramework]Found Node: " + key, module); if...
class class_name[name] begin[{] method[refreshTree, return_type[void], modifier[private], parameter[request, control]] begin[{] local_variable[type[String], key] if[binary_operation[member[.key], !=, literal[null]]] begin[{] local_variable[type[ViewNode], node] ...
Keyword[private] Keyword[void] identifier[refreshTree] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[TreeControl] identifier[control] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[key] operator[=] identifier[request] operator[SEP] identifier[...
@SuppressWarnings("unchecked") public <REQ extends BasicMessage> Collection<WsCommand<REQ>> getCommands(Class<REQ> requestClass) throws NoCommandForMessageException { ArrayList<WsCommand<REQ>> results = new ArrayList<>(2); if (ResourceDestination.class.isAssignableFrom(requestClass)) {...
class class_name[name] begin[{] method[getCommands, return_type[type[Collection]], modifier[public], parameter[requestClass]] begin[{] local_variable[type[ArrayList], results] if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[REQ] Keyword[extends] identifier[BasicMessage] operator[>] identifier[Collection] operator[<] identifier[WsCommand] operator[<] identifier[REQ] operator[>] operator[>] identifier[getCommands] op...
public void matchSet(String[] elementNames, String[] elementValues, int op) throws DBException { // Delete the old search criteria criteria = new Criteria(); if (op == OR) { // For each of the elements in the array, create a leaf node f...
class class_name[name] begin[{] method[matchSet, return_type[void], modifier[public], parameter[elementNames, elementValues, op]] begin[{] assign[member[.criteria], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, ...
Keyword[public] Keyword[void] identifier[matchSet] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[elementNames] , identifier[String] operator[SEP] operator[SEP] identifier[elementValues] , Keyword[int] identifier[op] operator[SEP] Keyword[throws] identifier[DBException] { identifier[cr...
public static <T> void subscribe(Publisher<? extends T> o, Subscriber<? super T> subscriber) { final BlockingQueue<Object> queue = new LinkedBlockingQueue<Object>(); BlockingSubscriber<T> bs = new BlockingSubscriber<T>(queue); o.subscribe(bs); try { for (;;) { ...
class class_name[name] begin[{] method[subscribe, return_type[void], modifier[public static], parameter[o, subscriber]] begin[{] local_variable[type[BlockingQueue], queue] local_variable[type[BlockingSubscriber], bs] call[o.subscribe, parameter[member[.bs]]] TryStatement...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[subscribe] operator[SEP] identifier[Publisher] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[o] , identifier[Subscriber] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identi...
public static <T> Class<T> generate(final Class<T> type) { return generate(type, null); }
class class_name[name] begin[{] method[generate, return_type[type[Class]], modifier[public static], parameter[type]] begin[{] return[call[.generate, parameter[member[.type], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Class] operator[<] identifier[T] operator[>] identifier[generate] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] { Keyword[return] identifier[generate] operator[SE...
public static void start(FsSettings settings, ElasticsearchClient esClient) { // We create the service only one if (httpServer == null) { // create a resource config that scans for JAX-RS resources and providers // in fr.pilato.elasticsearch.crawler.fs.rest package fi...
class class_name[name] begin[{] method[start, return_type[void], modifier[public static], parameter[settings, esClient]] begin[{] if[binary_operation[member[.httpServer], ==, literal[null]]] begin[{] local_variable[type[ResourceConfig], rc] assign[member[.htt...
Keyword[public] Keyword[static] Keyword[void] identifier[start] operator[SEP] identifier[FsSettings] identifier[settings] , identifier[ElasticsearchClient] identifier[esClient] operator[SEP] { Keyword[if] operator[SEP] identifier[httpServer] operator[==] Other[null] operator[SEP] { Keyword[final] ide...
@javax.annotation.Nonnull public java.util.Optional<String> optionalFilePath() { return java.util.Optional.ofNullable(mFilePath); }
class class_name[name] begin[{] method[optionalFilePath, return_type[type[java]], modifier[public], parameter[]] begin[{] return[call[java.util.Optional.ofNullable, parameter[member[.mFilePath]]]] end[}] END[}]
annotation[@] identifier[javax] operator[SEP] identifier[annotation] operator[SEP] identifier[Nonnull] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Optional] operator[<] identifier[String] operator[>] identifier[optionalFilePath] operator[SEP] operator[SEP] { Keyword[r...
@Override public void initializeParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.TRANSACTIONS_1_0.getUriString(), TransactionSubsystem10Parser::new); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.TRANSACTIONS_1_1.getUriString(), Transacti...
class class_name[name] begin[{] method[initializeParsers, return_type[void], modifier[public], parameter[context]] begin[{] call[context.setSubsystemXmlMapping, parameter[member[.SUBSYSTEM_NAME], call[Namespace.TRANSACTIONS_1_0.getUriString, parameter[]], MethodReference(expression=MemberRefere...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initializeParsers] operator[SEP] identifier[ExtensionParsingContext] identifier[context] operator[SEP] { identifier[context] operator[SEP] identifier[setSubsystemXmlMapping] operator[SEP] identifier[SUBSYSTEM_NAME] , identifier[Namespac...
@Override public void executeDemo(String text) { // usually the name parameter would be a human readable name (i.e. not the same as the key). Entity e = Entity.newInstance(text, text); EntityUtils.saveEntity(this, e, new EntityAddListener() { @Override public void onError(SocializeException error...
class class_name[name] begin[{] method[executeDemo, return_type[void], modifier[public], parameter[text]] begin[{] local_variable[type[Entity], e] call[EntityUtils.saveEntity, parameter[THIS[], member[.e], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(elemen...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[executeDemo] operator[SEP] identifier[String] identifier[text] operator[SEP] { identifier[Entity] identifier[e] operator[=] identifier[Entity] operator[SEP] identifier[newInstance] operator[SEP] identifier[text] , identifier[text] opera...
private final int m() { int n = 0; int i = k0; while (true) { if (i > j) return n; if (!cons(i)) break; i++; } i++; while (true) { while (true) { if (i > j) return n; if (cons(i)) break; i++; } i++; n++; while (true) { if (i > j) return n; i...
class class_name[name] begin[{] method[m, return_type[type[int]], modifier[final private], parameter[]] begin[{] local_variable[type[int], n] local_variable[type[int], i] while[literal[true]] begin[{] if[binary_operation[member[.i], >, member[.j]]] begin[...
Keyword[private] Keyword[final] Keyword[int] identifier[m] operator[SEP] operator[SEP] { Keyword[int] identifier[n] operator[=] Other[0] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[k0] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { Keyword[if] operator[...
@Override public BlogResource newResource(final String name, final String contentType, final byte[] bytes) throws BlogClientException { if (resourcesCollection == null) { throw new BlogClientException("No resource collection"); } return resourcesCollection.newResource(name, conte...
class class_name[name] begin[{] method[newResource, return_type[type[BlogResource]], modifier[public], parameter[name, contentType, bytes]] begin[{] if[binary_operation[member[.resourcesCollection], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
annotation[@] identifier[Override] Keyword[public] identifier[BlogResource] identifier[newResource] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[String] identifier[contentType] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[SEP] Ke...
@Override public void close() throws IOException { if (out != null) { IOException ex = null; try { if (position > 0) { if (breakLines && lineLength >= Base64.MAX_LINE_LENGTH) { if (crlf) { out.wri...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.out], !=, literal[null]]] begin[{] local_variable[type[IOException], ex] TryStatement(block=[IfStatement(condition=BinaryOperation(operand...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[out] operator[!=] Other[null] operator[SEP] { identifier[IOException] identifier[ex] operator[=] Other[null] ope...
@Restricted(NoExternalUse.class) public boolean isUrlNull(){ JenkinsLocationConfiguration loc = JenkinsLocationConfiguration.get(); return loc.getUrl() == null; }
class class_name[name] begin[{] method[isUrlNull, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[JenkinsLocationConfiguration], loc] return[binary_operation[call[loc.getUrl, parameter[]], ==, literal[null]]] end[}] END[}]
annotation[@] identifier[Restricted] operator[SEP] identifier[NoExternalUse] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[boolean] identifier[isUrlNull] operator[SEP] operator[SEP] { identifier[JenkinsLocationConfiguration] identifier[loc] operator[=] identifier[JenkinsLocationConfiguration...
public ImmutableSet<ClassInfo> getTopLevelClassesRecursive(String packageName) { checkNotNull(packageName); String packagePrefix = packageName + '.'; ImmutableSet.Builder<ClassInfo> builder = ImmutableSet.builder(); ImmutableSet<ClassInfo> topLevelClasses = getTopLevelClasses(); List<String> debugDa...
class class_name[name] begin[{] method[getTopLevelClassesRecursive, return_type[type[ImmutableSet]], modifier[public], parameter[packageName]] begin[{] call[.checkNotNull, parameter[member[.packageName]]] local_variable[type[String], packagePrefix] local_variable[type[ImmutableS...
Keyword[public] identifier[ImmutableSet] operator[<] identifier[ClassInfo] operator[>] identifier[getTopLevelClassesRecursive] operator[SEP] identifier[String] identifier[packageName] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[packageName] operator[SEP] operator[SEP] identifier[String] ide...
@Override public EClass getIfcCoolingTower() { if (ifcCoolingTowerEClass == null) { ifcCoolingTowerEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(145); } return ifcCoolingTowerEClass; }
class class_name[name] begin[{] method[getIfcCoolingTower, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcCoolingTowerEClass], ==, literal[null]]] begin[{] assign[member[.ifcCoolingTowerEClass], Cast(expression=MethodInv...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcCoolingTower] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcCoolingTowerEClass] operator[==] Other[null] operator[SEP] { identifier[ifcCoolingTowerEClass] operator[=] operator[SEP] identifier...
public void addFieldQuery(String fieldName, String searchQuery, Occur occur) { CmsSearchFieldQuery newQuery = new CmsSearchFieldQuery(fieldName, searchQuery, occur); addFieldQuery(newQuery); }
class class_name[name] begin[{] method[addFieldQuery, return_type[void], modifier[public], parameter[fieldName, searchQuery, occur]] begin[{] local_variable[type[CmsSearchFieldQuery], newQuery] call[.addFieldQuery, parameter[member[.newQuery]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addFieldQuery] operator[SEP] identifier[String] identifier[fieldName] , identifier[String] identifier[searchQuery] , identifier[Occur] identifier[occur] operator[SEP] { identifier[CmsSearchFieldQuery] identifier[newQuery] operator[=] Keyword[new] identifier[CmsSearchFie...
public List<JobInstance> poll(DbConn cnx, Queue queue, int headSize) { return JobInstance.select(cnx, "ji_select_poll", queue.getId()); }
class class_name[name] begin[{] method[poll, return_type[type[List]], modifier[public], parameter[cnx, queue, headSize]] begin[{] return[call[JobInstance.select, parameter[member[.cnx], literal["ji_select_poll"], call[queue.getId, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[JobInstance] operator[>] identifier[poll] operator[SEP] identifier[DbConn] identifier[cnx] , identifier[Queue] identifier[queue] , Keyword[int] identifier[headSize] operator[SEP] { Keyword[return] identifier[JobInstance] operator[SEP] identifier[select] o...
final void push(UniCompletion<?,?> c) { if (c != null) { while (result == null && !tryPushStack(c)) lazySetNext(c, null); // clear on failure } }
class class_name[name] begin[{] method[push, return_type[void], modifier[final], parameter[c]] begin[{] if[binary_operation[member[.c], !=, literal[null]]] begin[{] while[binary_operation[binary_operation[member[.result], ==, literal[null]], &&, call[.tryPushStack, param...
Keyword[final] Keyword[void] identifier[push] operator[SEP] identifier[UniCompletion] operator[<] operator[?] , operator[?] operator[>] identifier[c] operator[SEP] { Keyword[if] operator[SEP] identifier[c] operator[!=] Other[null] operator[SEP] { Keyword[while] operator[SEP] identifier[result] operat...
void lifecycleAvailable(Lifecycle lifecycle) { LOG.debug("Lifecycle now available, draining queue"); // First, make sure we will not let any more listeners be added once the lifecycle starts going. lifecycle.addListener(LifecycleStage.CONFIGURE_STAGE, new LifecycleListener() { @Ove...
class class_name[name] begin[{] method[lifecycleAvailable, return_type[void], modifier[default], parameter[lifecycle]] begin[{] call[LOG.debug, parameter[literal["Lifecycle now available, draining queue"]]] call[lifecycle.addListener, parameter[member[LifecycleStage.CONFIGURE_ST...
Keyword[void] identifier[lifecycleAvailable] operator[SEP] identifier[Lifecycle] identifier[lifecycle] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[lifecycle] operator[SEP] identifier[addListener] operator[SEP] identifier[Lif...
void checkDifferenceAndReconcile() { resetDiffsAndStats(); checkDifference(); // now reconcile the differences for (Entry<Integer, LinkedList<ScanDifference>> entry : diffsPerNamespace.entrySet()) { Integer namespaceId = entry.getKey(); LinkedList<ScanDifference> diff = entry.getValue()...
class class_name[name] begin[{] method[checkDifferenceAndReconcile, return_type[void], modifier[default], parameter[]] begin[{] call[.resetDiffsAndStats, parameter[]] call[.checkDifference, parameter[]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariab...
Keyword[void] identifier[checkDifferenceAndReconcile] operator[SEP] operator[SEP] { identifier[resetDiffsAndStats] operator[SEP] operator[SEP] operator[SEP] identifier[checkDifference] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[Integer] , identi...
public java.util.List<String> getStatusList() { if (statusList == null) { statusList = new com.amazonaws.internal.SdkInternalList<String>(); } return statusList; }
class class_name[name] begin[{] method[getStatusList, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.statusList], ==, literal[null]]] begin[{] assign[member[.statusList], ClassCreator(arguments=[], body=None, constructor_type...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getStatusList] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[statusList] operator[==] Other[null] operator[SEP] { identifier[statusL...
@Override public void messagingEngineDestroyed(JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
class class_name[name] begin[{] method[messagingEngineDestroyed, return_type[void], modifier[public], parameter[messagingEngine]] begin[{] local_variable[type[String], methodName] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[TRACE.isEntryEnabled, p...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[messagingEngineDestroyed] operator[SEP] identifier[JsMessagingEngine] identifier[messagingEngine] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP...
@Override public void addHeader(String key, String value) { _conn.setRequestProperty(key, value); }
class class_name[name] begin[{] method[addHeader, return_type[void], modifier[public], parameter[key, value]] begin[{] call[_conn.setRequestProperty, parameter[member[.key], member[.value]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addHeader] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { identifier[_conn] operator[SEP] identifier[setRequestProperty] operator[SEP] identifier[key] , identifier[value] operato...
private void readOkPacket(Buffer buffer, Results results) { buffer.skipByte(); //fieldCount final long updateCount = buffer.getLengthEncodedNumeric(); final long insertId = buffer.getLengthEncodedNumeric(); serverStatus = buffer.readShort(); hasWarnings = (buffer.readShort() > 0); if ((serverS...
class class_name[name] begin[{] method[readOkPacket, return_type[void], modifier[private], parameter[buffer, results]] begin[{] call[buffer.skipByte, parameter[]] local_variable[type[long], updateCount] local_variable[type[long], insertId] assign[member[.serverSt...
Keyword[private] Keyword[void] identifier[readOkPacket] operator[SEP] identifier[Buffer] identifier[buffer] , identifier[Results] identifier[results] operator[SEP] { identifier[buffer] operator[SEP] identifier[skipByte] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[long] identifier[updateCoun...
private void makeTransitions(Integer currentState, Pair<Integer, I> inputTrans, Set<Integer> newStates, int inputLength, @Nullable WordBuilder<I> wb, StreamTokenizer streamTokenizer) throws FSMParseException { // indicate we have seen currentState newStates....
class class_name[name] begin[{] method[makeTransitions, return_type[void], modifier[private], parameter[currentState, inputTrans, newStates, inputLength, wb, streamTokenizer]] begin[{] call[newStates.remove, parameter[member[.currentState]]] local_variable[type[Collection], targets] ...
Keyword[private] Keyword[void] identifier[makeTransitions] operator[SEP] identifier[Integer] identifier[currentState] , identifier[Pair] operator[<] identifier[Integer] , identifier[I] operator[>] identifier[inputTrans] , identifier[Set] operator[<] identifier[Integer] operator[>] identifier[newStates] , Keyword[in...
@Override public Map<String, Object> getRequestCookieMap() { if (_requestCookieMap == null) { checkHttpServletRequest(); _requestCookieMap = new CookieMap(_httpServletRequest); } return _requestCookieMap; }
class class_name[name] begin[{] method[getRequestCookieMap, return_type[type[Map]], modifier[public], parameter[]] begin[{] if[binary_operation[member[._requestCookieMap], ==, literal[null]]] begin[{] call[.checkHttpServletRequest, parameter[]] as...
annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getRequestCookieMap] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_requestCookieMap] operator[==] Other[null] operator[SEP] { identifier[...
@Override public void dragOver(final DragEvent dragEvent) { // System.out.println("drag OVER"); if (dragEvent.getGestureSource() != controller().view().getBox() && dragEvent.getDragboard().hasContent(CustomDataFormat.DOCKABLE)) { dragEvent.acceptTransferModes(TransferMo...
class class_name[name] begin[{] method[dragOver, return_type[void], modifier[public], parameter[dragEvent]] begin[{] if[binary_operation[binary_operation[call[dragEvent.getGestureSource, parameter[]], !=, call[.controller, parameter[]]], &&, call[dragEvent.getDragboard, parameter[]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[dragOver] operator[SEP] Keyword[final] identifier[DragEvent] identifier[dragEvent] operator[SEP] { Keyword[if] operator[SEP] identifier[dragEvent] operator[SEP] identifier[getGestureSource] operator[SEP] operator[SEP] operator[!=] identi...
public void processAfterTypeDiscovery(@Observes AfterTypeDiscovery event) { if (!event.getInterceptors().contains(SwaggerRestApplicationInterceptor.class)) { event.getInterceptors().add(SwaggerRestApplicationInterceptor.class); } }
class class_name[name] begin[{] method[processAfterTypeDiscovery, return_type[void], modifier[public], parameter[event]] begin[{] if[call[event.getInterceptors, parameter[]]] begin[{] call[event.getInterceptors, parameter[]] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[processAfterTypeDiscovery] operator[SEP] annotation[@] identifier[Observes] identifier[AfterTypeDiscovery] identifier[event] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[event] operator[SEP] identifier[getInterceptors] operator[SEP] operator[SEP] opera...
public static void addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders, HttpVersion httpVersion, boolean isTrailer, boolean isRequest) throws Http2Exception { Http2ToHttpHeaderTranslator translator = new Http2ToHttpHeaderTranslator(streamId, outputHeaders, isRequ...
class class_name[name] begin[{] method[addHttp2ToHttpHeaders, return_type[void], modifier[public static], parameter[streamId, inputHeaders, outputHeaders, httpVersion, isTrailer, isRequest]] begin[{] local_variable[type[Http2ToHttpHeaderTranslator], translator] TryStatement(block=[ForStatement(...
Keyword[public] Keyword[static] Keyword[void] identifier[addHttp2ToHttpHeaders] operator[SEP] Keyword[int] identifier[streamId] , identifier[Http2Headers] identifier[inputHeaders] , identifier[HttpHeaders] identifier[outputHeaders] , identifier[HttpVersion] identifier[httpVersion] , Keyword[boolean] identifier[isTr...
public static final int getReponseCodeFor (final ErrorType errorType, final SenseDataFormat senseDataFormat) { if (senseDataFormat == SenseDataFormat.FIXED) { if (errorType == ErrorType.CURRENT) return 0x70; else // errorType == DEFERRED ...
class class_name[name] begin[{] method[getReponseCodeFor, return_type[type[int]], modifier[final public static], parameter[errorType, senseDataFormat]] begin[{] if[binary_operation[member[.senseDataFormat], ==, member[SenseDataFormat.FIXED]]] begin[{] if[binary_operation...
Keyword[public] Keyword[static] Keyword[final] Keyword[int] identifier[getReponseCodeFor] operator[SEP] Keyword[final] identifier[ErrorType] identifier[errorType] , Keyword[final] identifier[SenseDataFormat] identifier[senseDataFormat] operator[SEP] { Keyword[if] operator[SEP] identifier[senseDataFormat] operat...
@Override protected void doRemoveDelayedEnqueue(final String queue, final String msg) throws Exception { ensureJedisConnection(); doRemoveDelayedEnqueue(this.jedis, getNamespace(), queue, msg); }
class class_name[name] begin[{] method[doRemoveDelayedEnqueue, return_type[void], modifier[protected], parameter[queue, msg]] begin[{] call[.ensureJedisConnection, parameter[]] call[.doRemoveDelayedEnqueue, parameter[THIS[member[None.jedis]], call[.getNamespace, parameter[]], me...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doRemoveDelayedEnqueue] operator[SEP] Keyword[final] identifier[String] identifier[queue] , Keyword[final] identifier[String] identifier[msg] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ensureJedisConnection] ope...
public Matrix4f mul(Matrix4x3fc right, Matrix4f dest) { if ((properties & PROPERTY_IDENTITY) != 0) return dest.set(right); else if ((right.properties() & PROPERTY_IDENTITY) != 0) return dest.set(this); else if ((properties & PROPERTY_PERSPECTIVE) != 0 && (right.properties...
class class_name[name] begin[{] method[mul, return_type[type[Matrix4f]], modifier[public], parameter[right, dest]] begin[{] if[binary_operation[binary_operation[member[.properties], &, member[.PROPERTY_IDENTITY]], !=, literal[0]]] begin[{] return[call[dest.set, parameter[member[.right]]]] ...
Keyword[public] identifier[Matrix4f] identifier[mul] operator[SEP] identifier[Matrix4x3fc] identifier[right] , identifier[Matrix4f] identifier[dest] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[properties] operator[&] identifier[PROPERTY_IDENTITY] operator[SEP] operator[!=] Other[0] operat...
public TOTPGenerator.Mode getMode() throws GuacamoleException { return environment.getProperty(TOTP_MODE, TOTPGenerator.Mode.SHA1); }
class class_name[name] begin[{] method[getMode, return_type[type[TOTPGenerator]], modifier[public], parameter[]] begin[{] return[call[environment.getProperty, parameter[member[.TOTP_MODE], member[TOTPGenerator.Mode.SHA1]]]] end[}] END[}]
Keyword[public] identifier[TOTPGenerator] operator[SEP] identifier[Mode] identifier[getMode] operator[SEP] operator[SEP] Keyword[throws] identifier[GuacamoleException] { Keyword[return] identifier[environment] operator[SEP] identifier[getProperty] operator[SEP] identifier[TOTP_MODE] , identifier[TOTPGenerator] ...
public C regexMatchers(HttpMethod method, String... regexPatterns) { Assert.state(!this.anyRequestConfigured, "Can't configure regexMatchers after anyRequest"); return chainRequestMatchers(RequestMatchers.regexMatchers(method, regexPatterns)); }
class class_name[name] begin[{] method[regexMatchers, return_type[type[C]], modifier[public], parameter[method, regexPatterns]] begin[{] call[Assert.state, parameter[THIS[member[None.anyRequestConfigured]], literal["Can't configure regexMatchers after anyRequest"]]] return[call[.chainRe...
Keyword[public] identifier[C] identifier[regexMatchers] operator[SEP] identifier[HttpMethod] identifier[method] , identifier[String] operator[...] identifier[regexPatterns] operator[SEP] { identifier[Assert] operator[SEP] identifier[state] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[anyRequ...
public SparseDoubleVector getColumnVector(int col) { col = getIndexFromMap(colMaskMap, col); return new MaskedSparseDoubleVectorView( matrix.getColumnVector(col), rowMaskMap, reverseRowMaskMap); }
class class_name[name] begin[{] method[getColumnVector, return_type[type[SparseDoubleVector]], modifier[public], parameter[col]] begin[{] assign[member[.col], call[.getIndexFromMap, parameter[member[.colMaskMap], member[.col]]]] return[ClassCreator(arguments=[MethodInvocation(arguments=...
Keyword[public] identifier[SparseDoubleVector] identifier[getColumnVector] operator[SEP] Keyword[int] identifier[col] operator[SEP] { identifier[col] operator[=] identifier[getIndexFromMap] operator[SEP] identifier[colMaskMap] , identifier[col] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier...
@Override public Choice5<A, B, C, D, E> converge(Function<? super F, ? extends CoProduct5<A, B, C, D, E, ?>> convergenceFn) { return match(Choice5::a, Choice5::b, Choice5::c, Choice5::d, Choice5::e, conv...
class class_name[name] begin[{] method[converge, return_type[type[Choice5]], modifier[public], parameter[convergenceFn]] begin[{] return[call[.match, parameter[MethodReference(expression=MemberReference(member=Choice5, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberR...
annotation[@] identifier[Override] Keyword[public] identifier[Choice5] operator[<] identifier[A] , identifier[B] , identifier[C] , identifier[D] , identifier[E] operator[>] identifier[converge] operator[SEP] identifier[Function] operator[<] operator[?] Keyword[super] identifier[F] , operator[?] Keyword[extends] id...
public static String parentPathString(String path) { String[] split = componentsFromPathString(path); if (split.length > 1) { StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < split.length - 1; i++) { if (i > 0) { stringBui...
class class_name[name] begin[{] method[parentPathString, return_type[type[String]], modifier[public static], parameter[path]] begin[{] local_variable[type[String], split] if[binary_operation[member[split.length], >, literal[1]]] begin[{] local_variable[type[StringBuilder], s...
Keyword[public] Keyword[static] identifier[String] identifier[parentPathString] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[split] operator[=] identifier[componentsFromPathString] operator[SEP] identifier[path] operator[SEP] operator...
public static String removeTrailingDelimiter(String str, String delimiter) { if (!str.endsWith(delimiter)) { return str; } else { return str.substring(0, str.length() - delimiter.length()); } }
class class_name[name] begin[{] method[removeTrailingDelimiter, return_type[type[String]], modifier[public static], parameter[str, delimiter]] begin[{] if[call[str.endsWith, parameter[member[.delimiter]]]] begin[{] return[member[.str]] else begin[{] return[call[s...
Keyword[public] Keyword[static] identifier[String] identifier[removeTrailingDelimiter] operator[SEP] identifier[String] identifier[str] , identifier[String] identifier[delimiter] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[str] operator[SEP] identifier[endsWith] operator[SEP] identifier[del...
private void readTypeToFirstWait(CoronaSerializer coronaSerializer) throws IOException { coronaSerializer.readField("typeToFirstWait"); // Expecting the START_OBJECT token for typeToFirstWait coronaSerializer.readStartObjectToken("typeToFirstWait"); JsonToken current = coronaSerializer.nextToken(); ...
class class_name[name] begin[{] method[readTypeToFirstWait, return_type[void], modifier[private], parameter[coronaSerializer]] begin[{] call[coronaSerializer.readField, parameter[literal["typeToFirstWait"]]] call[coronaSerializer.readStartObjectToken, parameter[literal["typeToFi...
Keyword[private] Keyword[void] identifier[readTypeToFirstWait] operator[SEP] identifier[CoronaSerializer] identifier[coronaSerializer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[coronaSerializer] operator[SEP] identifier[readField] operator[SEP] literal[String] operator[SEP] operator[SEP]...
public static List<File> findFiles(final File dir, final String filenameToSearch) { final List<File> foundedFileList = new ArrayList<>(); final String regex = RegExExtensions.replaceWildcardsWithRE(filenameToSearch); final String[] children = dir.list(); for (final String filename : children) { if (filena...
class class_name[name] begin[{] method[findFiles, return_type[type[List]], modifier[public static], parameter[dir, filenameToSearch]] begin[{] local_variable[type[List], foundedFileList] local_variable[type[String], regex] local_variable[type[String], children] ForStatement(body...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[File] operator[>] identifier[findFiles] operator[SEP] Keyword[final] identifier[File] identifier[dir] , Keyword[final] identifier[String] identifier[filenameToSearch] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Fi...
private void findPluginsForDescriptor(final CommandLinePluginDescriptor<?> pluginDescriptor) { final ClassFinder classFinder = new ClassFinder(); pluginDescriptor.getPackageNames().forEach( pkg -> classFinder.find(pkg, pluginDescriptor.getPluginBaseClass())); final Set<Class<...
class class_name[name] begin[{] method[findPluginsForDescriptor, return_type[void], modifier[private], parameter[pluginDescriptor]] begin[{] local_variable[type[ClassFinder], classFinder] call[pluginDescriptor.getPackageNames, parameter[]] local_variable[type[Set], pluginClasses...
Keyword[private] Keyword[void] identifier[findPluginsForDescriptor] operator[SEP] Keyword[final] identifier[CommandLinePluginDescriptor] operator[<] operator[?] operator[>] identifier[pluginDescriptor] operator[SEP] { Keyword[final] identifier[ClassFinder] identifier[classFinder] operator[=] Keyword[new] identif...
public Reader getReader() { // PK33136 char[] charBuffer = new char[strBuffer.length()] ; strBuffer.getChars(0, strBuffer.length(), charBuffer, 0); //PK33136 return (writer == null) ? new CharArrayReader (charBuffer, 0, strBuffer.length()) : null; }
class class_name[name] begin[{] method[getReader, return_type[type[Reader]], modifier[public], parameter[]] begin[{] local_variable[type[char], charBuffer] call[strBuffer.getChars, parameter[literal[0], call[strBuffer.length, parameter[]], member[.charBuffer], literal[0]]] retur...
Keyword[public] identifier[Reader] identifier[getReader] operator[SEP] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[charBuffer] operator[=] Keyword[new] Keyword[char] operator[SEP] identifier[strBuffer] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SE...
private byte[] generateAesIv() { byte[] bytes = new byte[16]; if (!testMode) { SecureRandom random = new SecureRandom(); random.nextBytes(bytes); } else { bytes = "TEST1234TEST1234".getBytes(MESSAGE_ENCODING); } return bytes; }
class class_name[name] begin[{] method[generateAesIv, return_type[type[byte]], modifier[private], parameter[]] begin[{] local_variable[type[byte], bytes] if[member[.testMode]] begin[{] local_variable[type[SecureRandom], random] call[random.nextBytes, ...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[generateAesIv] operator[SEP] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[16] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifie...
public static boolean noLength(final String... strings) { if (strings == null) { return true; } for (final String string : strings) { if (!hasLength(string)) { return true; } } return false; }
class class_name[name] begin[{] method[noLength, return_type[type[boolean]], modifier[public static], parameter[strings]] begin[{] if[binary_operation[member[.strings], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] ForStatement(...
Keyword[public] Keyword[static] Keyword[boolean] identifier[noLength] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[strings] operator[SEP] { Keyword[if] operator[SEP] identifier[strings] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] ...
private void enableUnsafeSSLRenegotiationCheckBoxActionPerformed(java.awt.event.ActionEvent evt) { boolean enabled = enableUnsafeSSLRenegotiationCheckBox.isSelected(); if (enabled) { JOptionPane.showMessageDialog(null, new String[] { Constant.messages.getString("options.cert.label.enableunsafess...
class class_name[name] begin[{] method[enableUnsafeSSLRenegotiationCheckBoxActionPerformed, return_type[void], modifier[private], parameter[evt]] begin[{] local_variable[type[boolean], enabled] if[member[.enabled]] begin[{] call[JOptionPane.showMessageDialog, par...
Keyword[private] Keyword[void] identifier[enableUnsafeSSLRenegotiationCheckBoxActionPerformed] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionEvent] identifier[evt] operator[SEP] { Keyword[boolean] identifier[enabled] operator[=] identi...
protected static DefaultProcessDiagramCanvas.SHAPE_TYPE getShapeType(BaseElement baseElement) { if (baseElement instanceof Task || baseElement instanceof Activity || baseElement instanceof TextAnnotation) { return DefaultProcessDiagramCanvas.SHAPE_TYPE.Rectangle; } else if (baseElement insta...
class class_name[name] begin[{] method[getShapeType, return_type[type[DefaultProcessDiagramCanvas]], modifier[static protected], parameter[baseElement]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.baseElement], instanceof, type[Task]], ||, binary_operation[member[.bas...
Keyword[protected] Keyword[static] identifier[DefaultProcessDiagramCanvas] operator[SEP] identifier[SHAPE_TYPE] identifier[getShapeType] operator[SEP] identifier[BaseElement] identifier[baseElement] operator[SEP] { Keyword[if] operator[SEP] identifier[baseElement] Keyword[instanceof] identifier[Task] operator[||...
public synchronized void addEvent(WorkManagerEvent event) { if (trace) log.tracef("addEvent(%s)", event); List<WorkManagerEvent> e = events.get(event.getAddress().getWorkManagerName()); if (e == null) { e = new ArrayList<WorkManagerEvent>(); events.put(event.getAd...
class class_name[name] begin[{] method[addEvent, return_type[void], modifier[synchronized public], parameter[event]] begin[{] if[member[.trace]] begin[{] call[log.tracef, parameter[literal["addEvent(%s)"], member[.event]]] else begin[{] None end[}] local_vari...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[addEvent] operator[SEP] identifier[WorkManagerEvent] identifier[event] operator[SEP] { Keyword[if] operator[SEP] identifier[trace] operator[SEP] identifier[log] operator[SEP] identifier[tracef] operator[SEP] literal[String] , identifier[event] opera...
public static String getLogFileName() { try { Logger rootLogger = LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME); if (rootLogger instanceof ch.qos.logback.classic.Logger) { ch.qos.logback.classic.Logger logbackLogger = (ch.qos.logback.classic.Logger) rootLogge...
class class_name[name] begin[{] method[getLogFileName, return_type[type[String]], modifier[public static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ROO...
Keyword[public] Keyword[static] identifier[String] identifier[getLogFileName] operator[SEP] operator[SEP] { Keyword[try] { identifier[Logger] identifier[rootLogger] operator[=] identifier[LoggerFactory] operator[SEP] identifier[getLogger] operator[SEP] identifier[org] operator[SEP] identifier[slf4j] o...
@Override public R setValue(final R value) { final R result = getRight(); setRight(value); return result; }
class class_name[name] begin[{] method[setValue, return_type[type[R]], modifier[public], parameter[value]] begin[{] local_variable[type[R], result] call[.setRight, parameter[member[.value]]] return[member[.result]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[R] identifier[setValue] operator[SEP] Keyword[final] identifier[R] identifier[value] operator[SEP] { Keyword[final] identifier[R] identifier[result] operator[=] identifier[getRight] operator[SEP] operator[SEP] operator[SEP] identifier[setRight] operat...
protected <T extends Controller> void redirect(Class<T> controllerClass){ redirect(controllerClass, new HashMap<String, String>(0)); }
class class_name[name] begin[{] method[redirect, return_type[void], modifier[protected], parameter[controllerClass]] begin[{] call[.redirect, parameter[member[.controllerClass], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], b...
Keyword[protected] operator[<] identifier[T] Keyword[extends] identifier[Controller] operator[>] Keyword[void] identifier[redirect] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[controllerClass] operator[SEP] { identifier[redirect] operator[SEP] identifier[controllerClass] , K...
@Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.IRD__IMDATA: setIMdata((byte[])newValue); return; } super.eSet(featureID, newValue); }
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=IRD__IMDATA, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] oper...
@Nonnull protected static final byte [] pbkdf2 (@Nonnull final char [] aPassword, @Nonnull final byte [] aSalt, @Nonnegative final int nIterations, @Nonnegative final int nBytes) { try ...
class class_name[name] begin[{] method[pbkdf2, return_type[type[byte]], modifier[final static protected], parameter[aPassword, aSalt, nIterations, nBytes]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(argum...
annotation[@] identifier[Nonnull] Keyword[protected] Keyword[static] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[pbkdf2] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[aPassword] , annotation[@] identifier[Nonnull] Keyword[fin...
public final String entryRuleOpExponent() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleOpExponent = null; try { // InternalSARL.g:8951:50: (iv_ruleOpExponent= ruleOpExponent EOF ) // InternalSARL.g:8952:2: iv_ruleOpExponent= ruleOp...
class class_name[name] begin[{] method[entryRuleOpExponent, return_type[type[String]], modifier[final public], parameter[]] begin[{] local_variable[type[String], current] local_variable[type[AntlrDatatypeRuleToken], iv_ruleOpExponent] TryStatement(block=[BlockStatement(label=None, state...
Keyword[public] Keyword[final] identifier[String] identifier[entryRuleOpExponent] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[String] identifier[current] operator[=] Other[null] operator[SEP] identifier[AntlrDatatypeRuleToken] identifier[iv_ruleOpExponent] operator[=...
private DeleteVpcResponseType deleteVpc(final String vpcId) { DeleteVpcResponseType ret = new DeleteVpcResponseType(); ret.setRequestId(UUID.randomUUID().toString()); mockVpcController.deleteVpc(vpcId); return ret; }
class class_name[name] begin[{] method[deleteVpc, return_type[type[DeleteVpcResponseType]], modifier[private], parameter[vpcId]] begin[{] local_variable[type[DeleteVpcResponseType], ret] call[ret.setRequestId, parameter[call[UUID.randomUUID, parameter[]]]] call[mockVpcCo...
Keyword[private] identifier[DeleteVpcResponseType] identifier[deleteVpc] operator[SEP] Keyword[final] identifier[String] identifier[vpcId] operator[SEP] { identifier[DeleteVpcResponseType] identifier[ret] operator[=] Keyword[new] identifier[DeleteVpcResponseType] operator[SEP] operator[SEP] operator[SEP] identif...
public void cacheStatements(Closure closure) throws SQLException { boolean savedCacheStatements = cacheStatements; cacheStatements = true; Connection connection = null; try { connection = createConnection(); callClosurePossiblyWithConnection(closure, connection); ...
class class_name[name] begin[{] method[cacheStatements, return_type[void], modifier[public], parameter[closure]] begin[{] local_variable[type[boolean], savedCacheStatements] assign[member[.cacheStatements], literal[true]] local_variable[type[Connection], connection] TryS...
Keyword[public] Keyword[void] identifier[cacheStatements] operator[SEP] identifier[Closure] identifier[closure] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[boolean] identifier[savedCacheStatements] operator[=] identifier[cacheStatements] operator[SEP] identifier[cacheStatements] operator[=] ...
private Management getProxyChain(Management m) throws ModuleInitializationException { try { invocationHandlers = getInvocationHandlers(); return (Management) ProxyFactory.getProxy(m, invocationHandlers); } catch (Exception e) { throw new ModuleInitializati...
class class_name[name] begin[{] method[getProxyChain, return_type[type[Management]], modifier[private], parameter[m]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=invocationHandlers, postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[private] identifier[Management] identifier[getProxyChain] operator[SEP] identifier[Management] identifier[m] operator[SEP] Keyword[throws] identifier[ModuleInitializationException] { Keyword[try] { identifier[invocationHandlers] operator[=] identifier[getInvocationHandlers] operator[SEP] opera...
public void run() { while (running.get()) { try { Socket socket = ss.accept(); HandlerSocket hs = new HandlerSocket(handler, socket, this); active.add(hs); executorService.submit(hs); } catch (Exception e) { ...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] while[call[running.get, parameter[]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocat...
Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[while] operator[SEP] identifier[running] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { identifier[Socket] identifier[socket] operator[=] identifier[ss] operator...
@Override public boolean isLeapYear(long prolepticYear) { return Math.floorMod(prolepticYear + getISOLeapYearCount(prolepticYear) + yearZeroDifference, 7) == 0 || Math.floorMod(prolepticYear + getISOLeapYearCount(prolepticYear + 1) + yearZeroDifference, 7) == 0; }
class class_name[name] begin[{] method[isLeapYear, return_type[type[boolean]], modifier[public], parameter[prolepticYear]] begin[{] return[binary_operation[binary_operation[call[Math.floorMod, parameter[binary_operation[binary_operation[member[.prolepticYear], +, call[.getISOLeapYearCount, parameter[me...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isLeapYear] operator[SEP] Keyword[long] identifier[prolepticYear] operator[SEP] { Keyword[return] identifier[Math] operator[SEP] identifier[floorMod] operator[SEP] identifier[prolepticYear] operator[+] identifier[getISOLeapYearCount] ...
static void chooseRemaining(Relation<? extends NumberVector> relation, DBIDs ids, DistanceQuery<NumberVector> distQ, int k, List<NumberVector> means, WritableDoubleDataStore weights, double weightsum, Random random) { while(true) { if(weightsum > Double.MAX_VALUE) { throw new IllegalStateException("Co...
class class_name[name] begin[{] method[chooseRemaining, return_type[void], modifier[static], parameter[relation, ids, distQ, k, means, weights, weightsum, random]] begin[{] while[literal[true]] begin[{] if[binary_operation[member[.weightsum], >, member[Double.MAX_VALUE]]...
Keyword[static] Keyword[void] identifier[chooseRemaining] operator[SEP] identifier[Relation] operator[<] operator[?] Keyword[extends] identifier[NumberVector] operator[>] identifier[relation] , identifier[DBIDs] identifier[ids] , identifier[DistanceQuery] operator[<] identifier[NumberVector] operator[>] identifier[di...
public float progress() { update_from_remote(); float regularProgress = _work==0 ? 0f : Math.min(1,(float)_worked/_work); if (_max_runtime_msecs>0) return Math.min(1,Math.max(regularProgress, (float)msec()/_max_runtime_msecs)); return regularProgress; }
class class_name[name] begin[{] method[progress, return_type[type[float]], modifier[public], parameter[]] begin[{] call[.update_from_remote, parameter[]] local_variable[type[float], regularProgress] if[binary_operation[member[._max_runtime_msecs], >, literal[0]]] begin[{...
Keyword[public] Keyword[float] identifier[progress] operator[SEP] operator[SEP] { identifier[update_from_remote] operator[SEP] operator[SEP] operator[SEP] Keyword[float] identifier[regularProgress] operator[=] identifier[_work] operator[==] Other[0] operator[?] literal[Float] operator[:] identifier[Math] operat...
public static <T> T createInstance(Class<T> pClass, Object pParam) throws InvocationTargetException { return createInstance(pClass, new Object[] {pParam}); }
class class_name[name] begin[{] method[createInstance, return_type[type[T]], modifier[public static], parameter[pClass, pParam]] begin[{] return[call[.createInstance, parameter[member[.pClass], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=pParam, pos...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[createInstance] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[pClass] , identifier[Object] identifier[pParam] operator[SEP] Keyword[throws] identifier[InvocationTargetException] { Ke...
public void apply(FaceletContext ctx, UIComponent parent) throws IOException { for (int i = 0; i < len; i++) { this.children[i].apply(ctx, parent); } }
class class_name[name] begin[{] method[apply, return_type[void], modifier[public], parameter[ctx, parent]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=c...
Keyword[public] Keyword[void] identifier[apply] operator[SEP] identifier[FaceletContext] identifier[ctx] , identifier[UIComponent] identifier[parent] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] ope...
public Token dup() { Token token = new Token(this.type, this.text, this.startLine, this.startColumn); token.setMeaning(this.meaning); return token; }
class class_name[name] begin[{] method[dup, return_type[type[Token]], modifier[public], parameter[]] begin[{] local_variable[type[Token], token] call[token.setMeaning, parameter[THIS[member[None.meaning]]]] return[member[.token]] end[}] END[}]
Keyword[public] identifier[Token] identifier[dup] operator[SEP] operator[SEP] { identifier[Token] identifier[token] operator[=] Keyword[new] identifier[Token] operator[SEP] Keyword[this] operator[SEP] identifier[type] , Keyword[this] operator[SEP] identifier[text] , Keyword[this] operator[SEP] identifier[start...
protected void doBegin(Object transaction, TransactionDefinition definition) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doBegin(actualTransactionObject.getDataSourceTransactionObject(), def...
class class_name[name] begin[{] method[doBegin, return_type[void], modifier[protected], parameter[transaction, definition]] begin[{] local_variable[type[ContextSourceAndDataSourceTransactionObject], actualTransactionObject] SuperMethodInvocation(arguments=[MethodInvocation(arguments=[],...
Keyword[protected] Keyword[void] identifier[doBegin] operator[SEP] identifier[Object] identifier[transaction] , identifier[TransactionDefinition] identifier[definition] operator[SEP] { identifier[ContextSourceAndDataSourceTransactionObject] identifier[actualTransactionObject] operator[=] operator[SEP] identifie...
private void layoutComponents(int[] x, int[] y) { Rectangle cellBounds = new Rectangle(); for (Object element : constraintMap.entrySet()) { Map.Entry entry = (Map.Entry) element; Component component = (Component) entry.getKey(); CellConstraints constraints = (CellCons...
class class_name[name] begin[{] method[layoutComponents, return_type[void], modifier[private], parameter[x, y]] begin[{] local_variable[type[Rectangle], cellBounds] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(...
Keyword[private] Keyword[void] identifier[layoutComponents] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[x] , Keyword[int] operator[SEP] operator[SEP] identifier[y] operator[SEP] { identifier[Rectangle] identifier[cellBounds] operator[=] Keyword[new] identifier[Rectangle] operator[SEP] oper...
private JCBlock makeLambdaBody(JCLambda tree, JCMethodDecl lambdaMethodDecl) { return tree.getBodyKind() == JCLambda.BodyKind.EXPRESSION ? makeLambdaExpressionBody((JCExpression)tree.body, lambdaMethodDecl) : makeLambdaStatementBody((JCBlock)tree.body, lambdaMethodDecl, tree.canC...
class class_name[name] begin[{] method[makeLambdaBody, return_type[type[JCBlock]], modifier[private], parameter[tree, lambdaMethodDecl]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getBodyKind, postfix_operators=[], prefix_operators=[], qua...
Keyword[private] identifier[JCBlock] identifier[makeLambdaBody] operator[SEP] identifier[JCLambda] identifier[tree] , identifier[JCMethodDecl] identifier[lambdaMethodDecl] operator[SEP] { Keyword[return] identifier[tree] operator[SEP] identifier[getBodyKind] operator[SEP] operator[SEP] operator[==] identifier[J...
public final EObject ruleXFeatureCall() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_3=null; Token otherlv_5=null; Token lv_explicitOperationCall_7_0=null; Token otherlv_10=null; Token otherlv_12=null; EObject ...
class class_name[name] begin[{] method[ruleXFeatureCall, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_1] local_variable[type[Token], otherlv_3] local_variable[type[Token], oth...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXFeatureCall] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_1] operator[=] Other[null] operator[SEP...
@SuppressWarnings("nls") public static SSLSessionStrategy buildMutual(TLSOptions optionsMap) throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException, CertificateException, IOException, UnrecoverableKeyException { Args.notNull(optionsMap.getKeyStore(), "KeyStore"); ...
class class_name[name] begin[{] method[buildMutual, return_type[type[SSLSessionStrategy]], modifier[public static], parameter[optionsMap]] begin[{] call[Args.notNull, parameter[call[optionsMap.getKeyStore, parameter[]], literal["KeyStore"]]] call[Args.notEmpty, parameter[call[op...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[SSLSessionStrategy] identifier[buildMutual] operator[SEP] identifier[TLSOptions] identifier[optionsMap] operator[SEP] Keyword[throws] identifier[KeyManagementException] , identifier[NoSuchA...
private void updateCustomerAndSetDefaultSourceIfNecessary(@NonNull Customer customer) { // An inverted early return - we don't need to talk to the CustomerSession if there is // already a default source selected or we have no or more than one customer sources in our // list. if (!TextUti...
class class_name[name] begin[{] method[updateCustomerAndSetDefaultSourceIfNecessary, return_type[void], modifier[private], parameter[customer]] begin[{] if[binary_operation[call[TextUtils.isEmpty, parameter[call[customer.getDefaultSource, parameter[]]]], ||, binary_operation[call[customer.getSo...
Keyword[private] Keyword[void] identifier[updateCustomerAndSetDefaultSourceIfNecessary] operator[SEP] annotation[@] identifier[NonNull] identifier[Customer] identifier[customer] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[TextUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[...
public static transformpolicylabel[] get(nitro_service service) throws Exception{ transformpolicylabel obj = new transformpolicylabel(); transformpolicylabel[] response = (transformpolicylabel[])obj.get_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[transformpolicylabel]], modifier[public static], parameter[service]] begin[{] local_variable[type[transformpolicylabel], obj] local_variable[type[transformpolicylabel], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[transformpolicylabel] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[transformpolicylabel] identifier[obj] operator[=] Keyword[new] identifier[trans...
private List<Hit<Map<String, Object>, Void>> listEntities(String type, SearchSourceBuilder searchSourceBuilder) throws StorageException { try { String query = searchSourceBuilder.string(); Search search = new Search.Builder(query).addIndex(getIndexName()).addType(type).build(...
class class_name[name] begin[{] method[listEntities, return_type[type[List]], modifier[private], parameter[type, searchSourceBuilder]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=s...
Keyword[private] identifier[List] operator[<] identifier[Hit] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] , identifier[Void] operator[>] operator[>] identifier[listEntities] operator[SEP] identifier[String] identifier[type] , identifier[SearchSourceBuilder] identifier[...
public ByteBuffer getScaleKeyBuffer() { ByteBuffer buf = m_scaleKeys.duplicate(); buf.order(ByteOrder.nativeOrder()); return buf; }
class class_name[name] begin[{] method[getScaleKeyBuffer, return_type[type[ByteBuffer]], modifier[public], parameter[]] begin[{] local_variable[type[ByteBuffer], buf] call[buf.order, parameter[call[ByteOrder.nativeOrder, parameter[]]]] return[member[.buf]] end[}] END[}]
Keyword[public] identifier[ByteBuffer] identifier[getScaleKeyBuffer] operator[SEP] operator[SEP] { identifier[ByteBuffer] identifier[buf] operator[=] identifier[m_scaleKeys] operator[SEP] identifier[duplicate] operator[SEP] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[order] operator[SEP]...
public void mouseReleased (MouseEvent e) { // if the mouse was released within the bounds of the button, go // ahead and select it properly if (_selectedButton != null) { if (_selectedButton.contains(e.getX(), e.getY())) { // tell the model that the selection has ...
class class_name[name] begin[{] method[mouseReleased, return_type[void], modifier[public], parameter[e]] begin[{] if[binary_operation[member[._selectedButton], !=, literal[null]]] begin[{] if[call[_selectedButton.contains, parameter[call[e.getX, parameter[]], call[e.getY...
Keyword[public] Keyword[void] identifier[mouseReleased] operator[SEP] identifier[MouseEvent] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[_selectedButton] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[_selectedButton] operator[SEP] identifier[conta...
@Override public DescribeScheduledActionsResult describeScheduledActions(DescribeScheduledActionsRequest request) { request = beforeClientExecution(request); return executeDescribeScheduledActions(request); }
class class_name[name] begin[{] method[describeScheduledActions, return_type[type[DescribeScheduledActionsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeScheduledAct...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeScheduledActionsResult] identifier[describeScheduledActions] operator[SEP] identifier[DescribeScheduledActionsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifi...
private void addProblemFactsFromClass(List<Object> factList, Class<?> instanceClass) { if (instanceClass.equals(AbstractSolution.class)) { // The field score should not be included return; } for (Field field : instanceClass.getDeclaredFields()) { field.setAcce...
class class_name[name] begin[{] method[addProblemFactsFromClass, return_type[void], modifier[private], parameter[factList, instanceClass]] begin[{] if[call[instanceClass.equals, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(argu...
Keyword[private] Keyword[void] identifier[addProblemFactsFromClass] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[factList] , identifier[Class] operator[<] operator[?] operator[>] identifier[instanceClass] operator[SEP] { Keyword[if] operator[SEP] identifier[instanceClass]...
public static Class<?>[] readClasses(ObjectInput in) throws java.io.IOException, ClassNotFoundException { int i, len; Class<?>[] result; len = in.readByte(); result = new Class[len]; for (i = 0; i < len; i++) { result[i] = read(in); } retu...
class class_name[name] begin[{] method[readClasses, return_type[type[Class]], modifier[public static], parameter[in]] begin[{] local_variable[type[int], i] local_variable[type[Class], result] assign[member[.len], call[in.readByte, parameter[]]] assign[member[.res...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[readClasses] operator[SEP] identifier[ObjectInput] identifier[in] operator[SEP] Keyword[throws] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[IOException] , identifier[C...
protected MapTileModuleProviderBase findNextAppropriateProvider(final MapTileRequestState aState) { MapTileModuleProviderBase provider; boolean providerDoesntExist = false, providerCantGetDataConnection = false, providerCantServiceZoomlevel = false; // The logic of the while statement is // "Keep looping until ...
class class_name[name] begin[{] method[findNextAppropriateProvider, return_type[type[MapTileModuleProviderBase]], modifier[protected], parameter[aState]] begin[{] local_variable[type[MapTileModuleProviderBase], provider] local_variable[type[boolean], providerDoesntExist] do[bina...
Keyword[protected] identifier[MapTileModuleProviderBase] identifier[findNextAppropriateProvider] operator[SEP] Keyword[final] identifier[MapTileRequestState] identifier[aState] operator[SEP] { identifier[MapTileModuleProviderBase] identifier[provider] operator[SEP] Keyword[boolean] identifier[providerDoesntExist...
public static void setDeferredLoading(boolean loading) { single = new LoadingList(); InternalTextureLoader.get().setDeferredLoading(loading); SoundStore.get().setDeferredLoading(loading); }
class class_name[name] begin[{] method[setDeferredLoading, return_type[void], modifier[public static], parameter[loading]] begin[{] assign[member[.single], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors...
Keyword[public] Keyword[static] Keyword[void] identifier[setDeferredLoading] operator[SEP] Keyword[boolean] identifier[loading] operator[SEP] { identifier[single] operator[=] Keyword[new] identifier[LoadingList] operator[SEP] operator[SEP] operator[SEP] identifier[InternalTextureLoader] operator[SEP] identifier[...
@Nullable public ExpressionStatement rewrite(ExpressionStatement stat) { try { if (!isInteraction(stat)) return null; createBuilder(); setCount(); setCall(); addResponses(); build(); return register(); } catch (InvalidSpecCompileException e) { resources.getErro...
class class_name[name] begin[{] method[rewrite, return_type[type[ExpressionStatement]], modifier[public], parameter[stat]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=stat, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], m...
annotation[@] identifier[Nullable] Keyword[public] identifier[ExpressionStatement] identifier[rewrite] operator[SEP] identifier[ExpressionStatement] identifier[stat] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[isInteraction] operator[SEP] identifier[stat] operator[S...
public void mark(long n) { tickIfNecessary(); count.addAndGet(n); m15Rate.update(n); m120Rate.update(n); }
class class_name[name] begin[{] method[mark, return_type[void], modifier[public], parameter[n]] begin[{] call[.tickIfNecessary, parameter[]] call[count.addAndGet, parameter[member[.n]]] call[m15Rate.update, parameter[member[.n]]] call[m120Rate.upd...
Keyword[public] Keyword[void] identifier[mark] operator[SEP] Keyword[long] identifier[n] operator[SEP] { identifier[tickIfNecessary] operator[SEP] operator[SEP] operator[SEP] identifier[count] operator[SEP] identifier[addAndGet] operator[SEP] identifier[n] operator[SEP] operator[SEP] identifier[m15Rate] operator...
public static String getDisplayScript(String localeID, ULocale displayLocale) { return getDisplayScriptInternal(new ULocale(localeID), displayLocale); }
class class_name[name] begin[{] method[getDisplayScript, return_type[type[String]], modifier[public static], parameter[localeID, displayLocale]] begin[{] return[call[.getDisplayScriptInternal, parameter[ClassCreator(arguments=[MemberReference(member=localeID, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] identifier[String] identifier[getDisplayScript] operator[SEP] identifier[String] identifier[localeID] , identifier[ULocale] identifier[displayLocale] operator[SEP] { Keyword[return] identifier[getDisplayScriptInternal] operator[SEP] Keyword[new] identifier[ULocale] operator[SEP] ...
private Dimensions computeDef(final String propName) { final String property = definition.getProperty(propName); final Matcher multiMethodCallMatcher = CALLS.matcher(property); if (multiMethodCallMatcher.matches()) { final String[] methodsLiterals = property.split(CALL_REG); final String dependancyName = mu...
class class_name[name] begin[{] method[computeDef, return_type[type[Dimensions]], modifier[private], parameter[propName]] begin[{] local_variable[type[String], property] local_variable[type[Matcher], multiMethodCallMatcher] if[call[multiMethodCallMatcher.matches, parameter[]]] b...
Keyword[private] identifier[Dimensions] identifier[computeDef] operator[SEP] Keyword[final] identifier[String] identifier[propName] operator[SEP] { Keyword[final] identifier[String] identifier[property] operator[=] identifier[definition] operator[SEP] identifier[getProperty] operator[SEP] identifier[propName] op...
@Override public void onError(InvocationContext context, Exception error) { throw InvocationException.newInstance(context, error); }
class class_name[name] begin[{] method[onError, return_type[void], modifier[public], parameter[context, error]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=err...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onError] operator[SEP] identifier[InvocationContext] identifier[context] , identifier[Exception] identifier[error] operator[SEP] { Keyword[throw] identifier[InvocationException] operator[SEP] identifier[newInstance] operator[SEP] identi...
private State skipCommaSpaces(State state) throws IOException { wsp1: for (;;) { switch (state.current) { default: break wsp1; case 0x20: case 0x9: case 0xD: case 0xA: } state....
class class_name[name] begin[{] method[skipCommaSpaces, return_type[type[State]], modifier[private], parameter[state]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[], statements=[BreakStatement(goto=wsp1, label=None)]), SwitchStateme...
Keyword[private] identifier[State] identifier[skipCommaSpaces] operator[SEP] identifier[State] identifier[state] operator[SEP] Keyword[throws] identifier[IOException] { identifier[wsp1] operator[:] Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[switch] operator[SEP] id...
@SuppressWarnings("unchecked") public static <R> R invoke(Object obj, Method method, Object... args) { try { if (obj instanceof Class) { return (R) method.invoke(null, args); } else { return (R) method.invoke(obj, args); } } catch (...
class class_name[name] begin[{] method[invoke, return_type[type[R]], modifier[public static], parameter[obj, method, args]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=obj, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), opera...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[R] operator[>] identifier[R] identifier[invoke] operator[SEP] identifier[Object] identifier[obj] , identifier[Method] identifier[method] , identifier[Object] operator[...] iden...
public static void accept(SARLQuickfixProvider provider, Issue issue, IssueResolutionAcceptor acceptor) { final CapacityReferenceRemoveModification modification = new CapacityReferenceRemoveModification(); modification.setIssue(issue); modification.setTools(provider); acceptor.accept(issue, Messages.SARLQui...
class class_name[name] begin[{] method[accept, return_type[void], modifier[public static], parameter[provider, issue, acceptor]] begin[{] local_variable[type[CapacityReferenceRemoveModification], modification] call[modification.setIssue, parameter[member[.issue]]] call[m...
Keyword[public] Keyword[static] Keyword[void] identifier[accept] operator[SEP] identifier[SARLQuickfixProvider] identifier[provider] , identifier[Issue] identifier[issue] , identifier[IssueResolutionAcceptor] identifier[acceptor] operator[SEP] { Keyword[final] identifier[CapacityReferenceRemoveModification] id...
@SuppressWarnings("unchecked") public Repository getRegisteredRepository(Repository repository, String identifier) throws GreenPepperServerException { Vector params = CollectionUtil.toVector(repository.marshallize()); log.debug("Retrieving Registered Repository: " + repository.getUid()); ...
class class_name[name] begin[{] method[getRegisteredRepository, return_type[type[Repository]], modifier[public], parameter[repository, identifier]] begin[{] local_variable[type[Vector], params] call[log.debug, parameter[binary_operation[literal["Retrieving Registered Repository: "], +, ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Repository] identifier[getRegisteredRepository] operator[SEP] identifier[Repository] identifier[repository] , identifier[String] identifier[identifier] operator[SEP] Keyword[throws] identifier[GreenPepperS...
@SuppressWarnings({ "rawtypes", "unchecked" }) protected Object manageListIfNecessary(Object value) { List list = (List)value; boolean containsRuntimeRefs = false; for (Object e : list) { if (e instanceof RuntimeBeanReference) { containsRuntimeRefs = true; ...
class class_name[name] begin[{] method[manageListIfNecessary, return_type[type[Object]], modifier[protected], parameter[value]] begin[{] local_variable[type[List], list] local_variable[type[boolean], containsRuntimeRefs] ForStatement(body=BlockStatement(label=None, statements=[IfStateme...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[protected] identifier[Object] identifier[manageListIfNecessary] operator[SEP] identifier[Object] identifier[value] operator[SEP] { identifier[List] identifier[list] operator[=] operator...
public void setImage(Image image) { column.setText(null); table = null; this.image = image; }
class class_name[name] begin[{] method[setImage, return_type[void], modifier[public], parameter[image]] begin[{] call[column.setText, parameter[literal[null]]] assign[member[.table], literal[null]] assign[THIS[member[None.image]], member[.image]] end[}] END[}...
Keyword[public] Keyword[void] identifier[setImage] operator[SEP] identifier[Image] identifier[image] operator[SEP] { identifier[column] operator[SEP] identifier[setText] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[table] operator[=] Other[null] operator[SEP] Keyword[this] operator[SEP] ident...
public void setSkipHours(final List<Integer> skipHours) { if (skipHours != null) { for (int i = 0; i < skipHours.size(); i++) { final Integer iHour = skipHours.get(i); if (iHour != null) { final int hour = iHour.intValue(); if (...
class class_name[name] begin[{] method[setSkipHours, return_type[void], modifier[public], parameter[skipHours]] begin[{] if[binary_operation[member[.skipHours], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations...
Keyword[public] Keyword[void] identifier[setSkipHours] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Integer] operator[>] identifier[skipHours] operator[SEP] { Keyword[if] operator[SEP] identifier[skipHours] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Key...
protected void autoReportZero() { MetricCollector collector = MetricManager.getCollector(); if (collector != null) { collector.autoReportZero(identity); } }
class class_name[name] begin[{] method[autoReportZero, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[MetricCollector], collector] if[binary_operation[member[.collector], !=, literal[null]]] begin[{] call[collector.autoReportZer...
Keyword[protected] Keyword[void] identifier[autoReportZero] operator[SEP] operator[SEP] { identifier[MetricCollector] identifier[collector] operator[=] identifier[MetricManager] operator[SEP] identifier[getCollector] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[collector] operat...
public void storeToYAML(final Properties props, final OutputStream os, final String header, final String encoding) throws IOException { try { ((PrefixedProperties) props).storeToYAML(os, header, encoding); } catch (final ClassCastException err) { throw new IOException( "Cannot store properties JSON fi...
class class_name[name] begin[{] method[storeToYAML, return_type[void], modifier[public], parameter[props, os, header, encoding]] begin[{] TryStatement(block=[StatementExpression(expression=Cast(expression=MemberReference(member=props, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[void] identifier[storeToYAML] operator[SEP] Keyword[final] identifier[Properties] identifier[props] , Keyword[final] identifier[OutputStream] identifier[os] , Keyword[final] identifier[String] identifier[header] , Keyword[final] identifier[String] identifier[encoding] operator[SEP] Keyword[th...