code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public boolean isNodeType(InternalQName qName) throws RepositoryException { checkValid(); return session.getWorkspace().getNodeTypesHolder().isNodeType(qName, nodeData().getPrimaryTypeName(), nodeData().getMixinTypeNames()); }
class class_name[name] begin[{] method[isNodeType, return_type[type[boolean]], modifier[public], parameter[qName]] begin[{] call[.checkValid, parameter[]] return[call[session.getWorkspace, parameter[]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isNodeType] operator[SEP] identifier[InternalQName] identifier[qName] operator[SEP] Keyword[throws] identifier[RepositoryException] { identifier[checkValid] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[session] operator[SEP] identifier[getWorksp...
public BatchGetItemResult withResponses(java.util.Map<String,BatchResponse> responses) { setResponses(responses); return this; }
class class_name[name] begin[{] method[withResponses, return_type[type[BatchGetItemResult]], modifier[public], parameter[responses]] begin[{] call[.setResponses, parameter[member[.responses]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[BatchGetItemResult] identifier[withResponses] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[BatchResponse] operator[>] identifier[responses] operator[SEP] { identifier[setResponses] operator[SEP]...
protected void renderItemIcon(AbstractRenderAppender writer, TreeElement node, AttributeRenderer attrs, InheritableState state) { renderItemIconPrefix(writer, node); // There should always be one u...
class class_name[name] begin[{] method[renderItemIcon, return_type[void], modifier[protected], parameter[writer, node, attrs, state]] begin[{] call[.renderItemIconPrefix, parameter[member[.writer], member[.node]]] local_variable[type[String], icon] if[binary_operation[me...
Keyword[protected] Keyword[void] identifier[renderItemIcon] operator[SEP] identifier[AbstractRenderAppender] identifier[writer] , identifier[TreeElement] identifier[node] , identifier[AttributeRenderer] identifier[attrs] , identifier[InheritableState] identifier[state] operator[SEP] { identifier[renderItemIco...
private Properties getHotRodConfiguration(Map<?, ?> configurationMap, ConfigurationPropertyReader propertyReader, URL configurationResourceUrl) { Properties hotRodConfiguration = new Properties(); loadResourceFile( configurationResourceUrl, hotRodConfiguration ); setAdditionalProperties( configurationMap, propert...
class class_name[name] begin[{] method[getHotRodConfiguration, return_type[type[Properties]], modifier[private], parameter[configurationMap, propertyReader, configurationResourceUrl]] begin[{] local_variable[type[Properties], hotRodConfiguration] call[.loadResourceFile, parameter[member...
Keyword[private] identifier[Properties] identifier[getHotRodConfiguration] operator[SEP] identifier[Map] operator[<] operator[?] , operator[?] operator[>] identifier[configurationMap] , identifier[ConfigurationPropertyReader] identifier[propertyReader] , identifier[URL] identifier[configurationResourceUrl] operator[...
public List findUndeliveredList(long tick, JsMessage message) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "findUndeliveredList", new Object[] { Long.valueOf(tick), message }); int priority = message.getPriority().intValue(); // The pri...
class class_name[name] begin[{] method[findUndeliveredList, return_type[type[List]], modifier[public], parameter[tick, message]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, ...
Keyword[public] identifier[List] identifier[findUndeliveredList] operator[SEP] Keyword[long] identifier[tick] , identifier[JsMessage] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] id...
@Override public Object invoke(MethodInvocation invocation) throws Throwable { if (isNestedInvoke(invocation)) { return invocation.proceed(); } if (isOutOfPointcut(invocation)) { return invocation.proceed(); } return doAllowedInvoke(invocation); }
class class_name[name] begin[{] method[invoke, return_type[type[Object]], modifier[public], parameter[invocation]] begin[{] if[call[.isNestedInvoke, parameter[member[.invocation]]]] begin[{] return[call[invocation.proceed, parameter[]]] else begin[{] None end[}] ...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[invoke] operator[SEP] identifier[MethodInvocation] identifier[invocation] operator[SEP] Keyword[throws] identifier[Throwable] { Keyword[if] operator[SEP] identifier[isNestedInvoke] operator[SEP] identifier[invocation] operator[SEP] ...
public static ScheduledExecutorService defaultExecutorService() { ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(getCpuCount()); Runtime.getRuntime().addShutdownHook(new Thread(() -> shutdown(scheduledExecutorService))); return scheduledExe...
class class_name[name] begin[{] method[defaultExecutorService, return_type[type[ScheduledExecutorService]], modifier[public static], parameter[]] begin[{] local_variable[type[ScheduledExecutorService], scheduledExecutorService] call[Runtime.getRuntime, parameter[]] return[member...
Keyword[public] Keyword[static] identifier[ScheduledExecutorService] identifier[defaultExecutorService] operator[SEP] operator[SEP] { identifier[ScheduledExecutorService] identifier[scheduledExecutorService] operator[=] identifier[Executors] operator[SEP] identifier[newScheduledThreadPool] operator[SEP] identifi...
@Override public Relationship createRelationship(Node first, Node second) { return first.createRelationshipTo(second, relationshipType); }
class class_name[name] begin[{] method[createRelationship, return_type[type[Relationship]], modifier[public], parameter[first, second]] begin[{] return[call[first.createRelationshipTo, parameter[member[.second], member[.relationshipType]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Relationship] identifier[createRelationship] operator[SEP] identifier[Node] identifier[first] , identifier[Node] identifier[second] operator[SEP] { Keyword[return] identifier[first] operator[SEP] identifier[createRelationshipTo] operator[SEP] identif...
static float powerOfTwoF(int n) { assert(n >= FloatConsts.MIN_EXPONENT && n <= FloatConsts.MAX_EXPONENT); return Float.intBitsToFloat(((n + FloatConsts.EXP_BIAS) << (FloatConsts.SIGNIFICAND_WIDTH-1)) & FloatConsts.EXP_BIT_MASK); ...
class class_name[name] begin[{] method[powerOfTwoF, return_type[type[float]], modifier[static], parameter[n]] begin[{] AssertStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Mem...
Keyword[static] Keyword[float] identifier[powerOfTwoF] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[assert] operator[SEP] identifier[n] operator[>=] identifier[FloatConsts] operator[SEP] identifier[MIN_EXPONENT] operator[&&] identifier[n] operator[<=] identifier[FloatConsts] operator[SEP] ide...
private String serializePostParam(IExtendedRequest req, String reqURL, boolean keepInput) throws IOException, UnsupportedEncodingException, IllegalStateException { String output = null; HashMap params = req.getInputStreamData(); if (params != null) { long size = req.sizeInputStreamData(params); byte[] reqUR...
class class_name[name] begin[{] method[serializePostParam, return_type[type[String]], modifier[private], parameter[req, reqURL, keepInput]] begin[{] local_variable[type[String], output] local_variable[type[HashMap], params] if[binary_operation[member[.params], !=, literal[null]]...
Keyword[private] identifier[String] identifier[serializePostParam] operator[SEP] identifier[IExtendedRequest] identifier[req] , identifier[String] identifier[reqURL] , Keyword[boolean] identifier[keepInput] operator[SEP] Keyword[throws] identifier[IOException] , identifier[UnsupportedEncodingException] , identifier...
public void setEncoding(String enc) throws IOException { if (source != null) //applicapble to URL streams only { String current = encoding; if (current == null) current = Charset.defaultCharset().name(); if (!current.equalsIgnoreCase(enc)) { ...
class class_name[name] begin[{] method[setEncoding, return_type[void], modifier[public], parameter[enc]] begin[{] if[binary_operation[member[.source], !=, literal[null]]] begin[{] local_variable[type[String], current] if[binary_operation[member[.current], ==,...
Keyword[public] Keyword[void] identifier[setEncoding] operator[SEP] identifier[String] identifier[enc] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[source] operator[!=] Other[null] operator[SEP] { identifier[String] identifier[current] operator[=] identi...
@Override protected void initGraphics() { // Set initial size if (Double.compare(clock.getPrefWidth(), 0.0) <= 0 || Double.compare(clock.getPrefHeight(), 0.0) <= 0 || Double.compare(clock.getWidth(), 0.0) <= 0 || Double.compare(clock.getHeight(), 0.0) <= 0) { if (clock.getPrefWid...
class class_name[name] begin[{] method[initGraphics, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[call[Double.compare, parameter[call[clock.getPrefWidth, parameter[]], literal[0.0]]], <=, literal[0]], ||, bi...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[initGraphics] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Double] operator[SEP] identifier[compare] operator[SEP] identifier[clock] operator[SEP] identifier[getPrefWidth] operator[SEP] operator[SEP] , literal[F...
private void updateClusterRoot() { ArrayList<ServerHeartbeat> serverList = new ArrayList<>(); for (ServerHeartbeat server : _serverSelf.getCluster().getServers()) { serverList.add(server); } Collections.sort(serverList, (x,y)->compareClusterRoot(x,y)); UpdatePodBuilder builder...
class class_name[name] begin[{] method[updateClusterRoot, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[ArrayList], serverList] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(m...
Keyword[private] Keyword[void] identifier[updateClusterRoot] operator[SEP] operator[SEP] { identifier[ArrayList] operator[<] identifier[ServerHeartbeat] operator[>] identifier[serverList] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for]...
public static void unescapeUriPathSegment(final String text, final Writer writer, final String encoding) throws IOException { if (writer == null) { throw new IllegalArgumentException("Argument 'writer' cannot be null"); } if (encoding == null) { throw new Il...
class class_name[name] begin[{] method[unescapeUriPathSegment, return_type[void], modifier[public static], parameter[text, writer, encoding]] begin[{] if[binary_operation[member[.writer], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_...
Keyword[public] Keyword[static] Keyword[void] identifier[unescapeUriPathSegment] operator[SEP] Keyword[final] identifier[String] identifier[text] , Keyword[final] identifier[Writer] identifier[writer] , Keyword[final] identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IOException] { ...
public Set<Privilege> scan() { StopWatch stopWatch = StopWatch.createStarted(); Set<Privilege> preAuthPrivileges = reflections.getMethodsAnnotatedWith(PreAuthorize.class).stream() .map(element -> element.getAnnotation(PreAuthorize.class)) .map(PreAuthorize::value) .ma...
class class_name[name] begin[{] method[scan, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[StopWatch], stopWatch] local_variable[type[Set], preAuthPrivileges] local_variable[type[Set], postAuthPrivileges] local_variable[type[Set], findPrivil...
Keyword[public] identifier[Set] operator[<] identifier[Privilege] operator[>] identifier[scan] operator[SEP] operator[SEP] { identifier[StopWatch] identifier[stopWatch] operator[=] identifier[StopWatch] operator[SEP] identifier[createStarted] operator[SEP] operator[SEP] operator[SEP] identifier[Set] operator[<] ...
public static Subject getSubject() { if (SUBJECT.get() != null) { return SUBJECT.get().peek(); } else { AccessControlContext acc = AccessController.getContext(); if (System.getSecurityManager() == null) { return Subject.getSubject(acc); } else { re...
class class_name[name] begin[{] method[getSubject, return_type[type[Subject]], modifier[public static], parameter[]] begin[{] if[binary_operation[call[SUBJECT.get, parameter[]], !=, literal[null]]] begin[{] return[call[SUBJECT.get, parameter[]]] else begin[{] loc...
Keyword[public] Keyword[static] identifier[Subject] identifier[getSubject] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[SUBJECT] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[SUBJECT] operator[SEP] id...
public MultiChangeBuilder<PS, SEG, S> deleteText(int start, int end) { return replaceText(start, end, ""); }
class class_name[name] begin[{] method[deleteText, return_type[type[MultiChangeBuilder]], modifier[public], parameter[start, end]] begin[{] return[call[.replaceText, parameter[member[.start], member[.end], literal[""]]]] end[}] END[}]
Keyword[public] identifier[MultiChangeBuilder] operator[<] identifier[PS] , identifier[SEG] , identifier[S] operator[>] identifier[deleteText] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] identifier[replaceText] operator[SEP] identifier[start] , ...
public KeyStoreCredentialResolverBuilder addKeyPassword(String name, String password) { requireNonNull(name, "name"); requireNonNull(password, "password"); checkArgument(!keyPasswords.containsKey(name), "key already exists: %s", name); keyPasswords.put(name, password); return thi...
class class_name[name] begin[{] method[addKeyPassword, return_type[type[KeyStoreCredentialResolverBuilder]], modifier[public], parameter[name, password]] begin[{] call[.requireNonNull, parameter[member[.name], literal["name"]]] call[.requireNonNull, parameter[member[.password], ...
Keyword[public] identifier[KeyStoreCredentialResolverBuilder] identifier[addKeyPassword] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[password] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[name] , literal[String] operator[SEP] operator[SEP] identifier...
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "extension", scope = ApplyACL.class) public JAXBElement<CmisExtensionType> createApplyACLExtension( CmisExtensionType value) { return new JAXBElement<CmisExtensionType>( _GetPropertiesExtension_QNAME, CmisExtensionT...
class class_name[name] begin[{] method[createApplyACLExtension, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_GetPropertiesExtension_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassRe...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[ApplyACL] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[CmisExt...
private Map<Invariant, SortedSet<Integer>> getInvariants(Partition partition, Set<Integer> targetBlock) { Map<Invariant, SortedSet<Integer>> setList = new HashMap<Invariant, SortedSet<Integer>>(); for (int u : partition.getCell(currentBlockIndex)) { Invariant h = refinable.neighboursInBlock(...
class class_name[name] begin[{] method[getInvariants, return_type[type[Map]], modifier[private], parameter[partition, targetBlock]] begin[{] local_variable[type[Map], setList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Variable...
Keyword[private] identifier[Map] operator[<] identifier[Invariant] , identifier[SortedSet] operator[<] identifier[Integer] operator[>] operator[>] identifier[getInvariants] operator[SEP] identifier[Partition] identifier[partition] , identifier[Set] operator[<] identifier[Integer] operator[>] identifier[targetBlock] o...
public void pushLoop(List<String> labelNames) { pushState(); continueLabel = new Label(); breakLabel = new Label(); if (labelNames != null) { for (String labelName : labelNames) { initLoopLabels(labelName); } } }
class class_name[name] begin[{] method[pushLoop, return_type[void], modifier[public], parameter[labelNames]] begin[{] call[.pushState, parameter[]] assign[member[.continueLabel], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_...
Keyword[public] Keyword[void] identifier[pushLoop] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[labelNames] operator[SEP] { identifier[pushState] operator[SEP] operator[SEP] operator[SEP] identifier[continueLabel] operator[=] Keyword[new] identifier[Label] operator[SEP] op...
public static Pointer retrieveDevicePointer(DataBuffer buffer, CudaContext context) { return allocator.getPointer(buffer, context); }
class class_name[name] begin[{] method[retrieveDevicePointer, return_type[type[Pointer]], modifier[public static], parameter[buffer, context]] begin[{] return[call[allocator.getPointer, parameter[member[.buffer], member[.context]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Pointer] identifier[retrieveDevicePointer] operator[SEP] identifier[DataBuffer] identifier[buffer] , identifier[CudaContext] identifier[context] operator[SEP] { Keyword[return] identifier[allocator] operator[SEP] identifier[getPointer] operator[SEP] identifier[buffer] ...
public void setNextTimeout(Date next) { if(next == null) { setTimerState(TimerState.EXPIRED, null); } this.nextExpiration = next; }
class class_name[name] begin[{] method[setNextTimeout, return_type[void], modifier[public], parameter[next]] begin[{] if[binary_operation[member[.next], ==, literal[null]]] begin[{] call[.setTimerState, parameter[member[TimerState.EXPIRED], literal[null]]] else b...
Keyword[public] Keyword[void] identifier[setNextTimeout] operator[SEP] identifier[Date] identifier[next] operator[SEP] { Keyword[if] operator[SEP] identifier[next] operator[==] Other[null] operator[SEP] { identifier[setTimerState] operator[SEP] identifier[TimerState] operator[SEP] identifier[EXPIRED] ...
public void debug(Object m, Throwable t) { logger.debug(String.valueOf(m), t); }
class class_name[name] begin[{] method[debug, return_type[void], modifier[public], parameter[m, t]] begin[{] call[logger.debug, parameter[call[String.valueOf, parameter[member[.m]]], member[.t]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[debug] operator[SEP] identifier[Object] identifier[m] , identifier[Throwable] identifier[t] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[m] operator[SEP] , ...
protected long readTerminalCount(final BitInputStream in, final long size) throws IOException { if (SERIALIZATION_CHECKS) { in.expect(SerializationChecks.BeforeTerminal); } final long readBoundedLong = in.readBoundedLong(1 + size); if (SERIALIZATION_CHECKS) { in.expect(SerializationCheck...
class class_name[name] begin[{] method[readTerminalCount, return_type[type[long]], modifier[protected], parameter[in, size]] begin[{] if[member[.SERIALIZATION_CHECKS]] begin[{] call[in.expect, parameter[member[SerializationChecks.BeforeTerminal]]] else begin[{] N...
Keyword[protected] Keyword[long] identifier[readTerminalCount] operator[SEP] Keyword[final] identifier[BitInputStream] identifier[in] , Keyword[final] Keyword[long] identifier[size] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[SERIALIZATION_CHECKS] operator[SEP] ...
public ClosableIterator<NodeWithEmbeddedNodes> findEntities(HttpNeo4jClient executionEngine, EntityKey[] keys, Long txId) { if ( singlePropertyKey ) { return singlePropertyIdFindEntities( executionEngine, keys, txId ); } else { return multiPropertiesIdFindEntities( executionEngine, keys, txId ); } }
class class_name[name] begin[{] method[findEntities, return_type[type[ClosableIterator]], modifier[public], parameter[executionEngine, keys, txId]] begin[{] if[member[.singlePropertyKey]] begin[{] return[call[.singlePropertyIdFindEntities, parameter[member[.executionEngine], member[...
Keyword[public] identifier[ClosableIterator] operator[<] identifier[NodeWithEmbeddedNodes] operator[>] identifier[findEntities] operator[SEP] identifier[HttpNeo4jClient] identifier[executionEngine] , identifier[EntityKey] operator[SEP] operator[SEP] identifier[keys] , identifier[Long] identifier[txId] operator[SEP] ...
@Nullable private Module getModuleFromScopeRoot(Node moduleBody) { if (moduleBody.isModuleBody()) { // TODO(b/128633181): handle ES modules here Node scriptNode = moduleBody.getParent(); checkState( scriptNode.getBooleanProp(Node.GOOG_MODULE), "Typechecking of non-goog-module...
class class_name[name] begin[{] method[getModuleFromScopeRoot, return_type[type[Module]], modifier[private], parameter[moduleBody]] begin[{] if[call[moduleBody.isModuleBody, parameter[]]] begin[{] local_variable[type[Node], scriptNode] call[.checkState, param...
annotation[@] identifier[Nullable] Keyword[private] identifier[Module] identifier[getModuleFromScopeRoot] operator[SEP] identifier[Node] identifier[moduleBody] operator[SEP] { Keyword[if] operator[SEP] identifier[moduleBody] operator[SEP] identifier[isModuleBody] operator[SEP] operator[SEP] operator[SEP] { ...
public static void writeShortBigEndian(ByteBuffer io, short value) { io.put((byte)((value >> 8) & 0xFF)); io.put((byte)(value & 0xFF)); }
class class_name[name] begin[{] method[writeShortBigEndian, return_type[void], modifier[public static], parameter[io, value]] begin[{] call[io.put, parameter[Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[static] Keyword[void] identifier[writeShortBigEndian] operator[SEP] identifier[ByteBuffer] identifier[io] , Keyword[short] identifier[value] operator[SEP] { identifier[io] operator[SEP] identifier[put] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] id...
@Override public boolean reschedule() { if (swappedIn != null && swappedIn.getRunState() == RunState.TIMESTEP) { return false; // Can't schedule anything else and we're idle. } if (policy.reschedule()) { ISchedulableThread best = policy.getThread(); if (swappedIn != best) { if (swappedIn !...
class class_name[name] begin[{] method[reschedule, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.swappedIn], !=, literal[null]], &&, binary_operation[call[swappedIn.getRunState, parameter[]], ==, member[RunState.TIMESTEP]]]] beg...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[reschedule] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[swappedIn] operator[!=] Other[null] operator[&&] identifier[swappedIn] operator[SEP] identifier[getRunState] operator[SEP] operator[SEP] operator[==] ident...
public static THttpService of(Object implementation, SerializationFormat defaultSerializationFormat) { return new THttpService(ThriftCallService.of(implementation), newAllowedSerializationFormats(defaultSerializationFormat, ...
class class_name[name] begin[{] method[of, return_type[type[THttpService]], modifier[public static], parameter[implementation, defaultSerializationFormat]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=implementation, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] identifier[THttpService] identifier[of] operator[SEP] identifier[Object] identifier[implementation] , identifier[SerializationFormat] identifier[defaultSerializationFormat] operator[SEP] { Keyword[return] Keyword[new] identifier[THttpService] operator[SEP] identifier[ThriftCallSe...
public static Boolean toBooleanObject(String str, Boolean defaultValue) { return str != null ? Boolean.valueOf(str) : defaultValue; }
class class_name[name] begin[{] method[toBooleanObject, return_type[type[Boolean]], modifier[public static], parameter[str, defaultValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] Keyword[static] identifier[Boolean] identifier[toBooleanObject] operator[SEP] identifier[String] identifier[str] , identifier[Boolean] identifier[defaultValue] operator[SEP] { Keyword[return] identifier[str] operator[!=] Other[null] operator[?] identifier[Boolean] operator[SEP] identifier[valueO...
@Api public void setUseCache(boolean useCache) { if (null == cacheManagerService && useCache) { log.warn("The caching plugin needs to be available to cache WMS requests. Not setting useCache."); } else { this.useCache = useCache; } }
class class_name[name] begin[{] method[setUseCache, return_type[void], modifier[public], parameter[useCache]] begin[{] if[binary_operation[binary_operation[literal[null], ==, member[.cacheManagerService]], &&, member[.useCache]]] begin[{] call[log.warn, parameter[literal...
annotation[@] identifier[Api] Keyword[public] Keyword[void] identifier[setUseCache] operator[SEP] Keyword[boolean] identifier[useCache] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[cacheManagerService] operator[&&] identifier[useCache] operator[SEP] { identifier[log] o...
public FaunusPipeline back(final String step) { this.state.assertNotLocked(); this.state.assertNoProperty(); this.compiler.addMapReduce(BackFilterMapReduce.Map.class, BackFilterMapReduce.Combiner.class, BackFilterMapReduce.Reduce.class, LongWritab...
class class_name[name] begin[{] method[back, return_type[type[FaunusPipeline]], modifier[public], parameter[step]] begin[{] THIS[member[None.state]call[None.assertNotLocked, parameter[]]] THIS[member[None.state]call[None.assertNoProperty, parameter[]]] THIS[membe...
Keyword[public] identifier[FaunusPipeline] identifier[back] operator[SEP] Keyword[final] identifier[String] identifier[step] operator[SEP] { Keyword[this] operator[SEP] identifier[state] operator[SEP] identifier[assertNotLocked] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[sta...
public static EntryElement makeEntryElement(Object value) { Class<?> type = ClassUtils.primitiveToWrapper(value.getClass()); return new EntryElement(type.getName(), value.toString()); }
class class_name[name] begin[{] method[makeEntryElement, return_type[type[EntryElement]], modifier[public static], parameter[value]] begin[{] local_variable[type[Class], type] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[static] identifier[EntryElement] identifier[makeEntryElement] operator[SEP] identifier[Object] identifier[value] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[=] identifier[ClassUtils] operator[SEP] identifier[primitiveToWrapper] operator[...
public static ClassLoader getClassLoader(final Class<?> clazz) { // Context class loader can be null final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); if (contextClassLoader != null) { return contextClassLoader; } if (clazz != null...
class class_name[name] begin[{] method[getClassLoader, return_type[type[ClassLoader]], modifier[public static], parameter[clazz]] begin[{] local_variable[type[ClassLoader], contextClassLoader] if[binary_operation[member[.contextClassLoader], !=, literal[null]]] begin[{] retu...
Keyword[public] Keyword[static] identifier[ClassLoader] identifier[getClassLoader] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { Keyword[final] identifier[ClassLoader] identifier[contextClassLoader] operator[=] identifier[Thread] operator[SEP...
private StringBuilder renderFacets() throws IOException { StringBuilder sb = new StringBuilder(); if( ! this.applicationTemplate.getGraphs().getFacetNameToFacet().isEmpty()) { sb.append( renderTitle1( this.messages.get( "facets" ))); //$NON-NLS-1$ sb.append( renderParagraph( this.messages.get( "facets.intro...
class class_name[name] begin[{] method[renderFacets, return_type[type[StringBuilder]], modifier[private], parameter[]] begin[{] local_variable[type[StringBuilder], sb] if[THIS[member[None.applicationTemplate]call[None.getGraphs, parameter[]]call[None.getFacetNameToFacet, parameter[]]cal...
Keyword[private] identifier[StringBuilder] identifier[renderFacets] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] Key...
@Trivial @Reference(name = "remoteIp", service = ChannelConfiguration.class, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY, cardinality = ReferenceCardinality.MANDATORY) protected void setRemoteIp(ChannelConfiguration co...
class class_name[name] begin[{] method[setRemoteIp, return_type[void], modifier[protected], parameter[config]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEventEnabled, parameter[]]]] begin[{] call[Tr.event, parameter...
annotation[@] identifier[Trivial] annotation[@] identifier[Reference] operator[SEP] identifier[name] operator[=] literal[String] , identifier[service] operator[=] identifier[ChannelConfiguration] operator[SEP] Keyword[class] , identifier[policy] operator[=] identifier[ReferencePolicy] operator[SEP] identifier[DYNAMIC...
@Override protected String doBuildColumnString(String dm) { StringBuilder sb = new StringBuilder(); sb.append(dm).append(authRealm); sb.append(dm).append(createdBy); sb.append(dm).append(createdTime); sb.append(dm).append(hostname); sb.append(dm).append(parameters); ...
class class_name[name] begin[{] method[doBuildColumnString, return_type[type[String]], modifier[protected], parameter[dm]] begin[{] local_variable[type[StringBuilder], sb] call[sb.append, parameter[member[.dm]]] call[sb.append, parameter[member[.dm]]] cal...
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[doBuildColumnString] operator[SEP] identifier[String] identifier[dm] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier...
@Override public void store(DefaultExternalIssue externalIssue) { if (externalIssue.primaryLocation().inputComponent() instanceof DefaultInputFile) { DefaultInputFile defaultInputFile = (DefaultInputFile) externalIssue.primaryLocation().inputComponent(); defaultInputFile.setPublished(true); } ...
class class_name[name] begin[{] method[store, return_type[void], modifier[public], parameter[externalIssue]] begin[{] if[binary_operation[call[externalIssue.primaryLocation, parameter[]], instanceof, type[DefaultInputFile]]] begin[{] local_variable[type[DefaultInputFile], defaultInp...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[store] operator[SEP] identifier[DefaultExternalIssue] identifier[externalIssue] operator[SEP] { Keyword[if] operator[SEP] identifier[externalIssue] operator[SEP] identifier[primaryLocation] operator[SEP] operator[SEP] operator[SEP] ident...
public static String replaceResources(String string, ResourceBundle reg, Map<String, Object> map, PropertyOwner propertyOwner, boolean systemProperties) { if (string != null) if (string.indexOf('{') == -1) return string; return Utility.replaceResources(new StringBuilder(s...
class class_name[name] begin[{] method[replaceResources, return_type[type[String]], modifier[public static], parameter[string, reg, map, propertyOwner, systemProperties]] begin[{] if[binary_operation[member[.string], !=, literal[null]]] begin[{] if[binary_operation[call[string.index...
Keyword[public] Keyword[static] identifier[String] identifier[replaceResources] operator[SEP] identifier[String] identifier[string] , identifier[ResourceBundle] identifier[reg] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] , identifier[PropertyOwner] identifier[pr...
@TargetApi(VERSION_CODES.KITKAT) public static void hideSystemUI(Activity activity) { // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hideSelf and show. View decorView = activity.getWindow().getD...
class class_name[name] begin[{] method[hideSystemUI, return_type[void], modifier[public static], parameter[activity]] begin[{] local_variable[type[View], decorView] call[decorView.setSystemUiVisibility, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary...
annotation[@] identifier[TargetApi] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[KITKAT] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[hideSystemUI] operator[SEP] identifier[Activity] identifier[activity] operator[SEP] { identifier[View] identifier[decorView] operator...
public final void entryRuleAbstractTokenWithCardinality() throws RecognitionException { try { // InternalXtext.g:446:1: ( ruleAbstractTokenWithCardinality EOF ) // InternalXtext.g:447:1: ruleAbstractTokenWithCardinality EOF { before(grammarAccess.getAbstractToken...
class class_name[name] begin[{] method[entryRuleAbstractTokenWithCardinality, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getA...
Keyword[public] Keyword[final] Keyword[void] identifier[entryRuleAbstractTokenWithCardinality] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { { identifier[before] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAbstractT...
public static BenchmarkExecutor getExecutor(final BenchmarkElement meth) { if (BENCHRES == null) { throw new IllegalStateException("Call initialize method first!"); } // check if new instance needs to be created if (!EXECUTOR.containsKey(meth.getMeth())) { EXECUT...
class class_name[name] begin[{] method[getExecutor, return_type[type[BenchmarkExecutor]], modifier[public static], parameter[meth]] begin[{] if[binary_operation[member[.BENCHRES], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operator...
Keyword[public] Keyword[static] identifier[BenchmarkExecutor] identifier[getExecutor] operator[SEP] Keyword[final] identifier[BenchmarkElement] identifier[meth] operator[SEP] { Keyword[if] operator[SEP] identifier[BENCHRES] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifie...
public TransparentDataEncryptionInner createOrUpdate(String resourceGroupName, String serverName, String databaseName) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName).toBlocking().single().body(); }
class class_name[name] begin[{] method[createOrUpdate, return_type[type[TransparentDataEncryptionInner]], modifier[public], parameter[resourceGroupName, serverName, databaseName]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.serverName], me...
Keyword[public] identifier[TransparentDataEncryptionInner] identifier[createOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[databaseName] operator[SEP] { Keyword[return] identifier[createOrUpdateWithServiceResp...
public Set<WebSocketChannel> getChannels(String uri) { Objects.requireNonNull(uri, Required.URI.toString()); final Set<WebSocketChannel> channels = this.cache.get(Default.WSS_CACHE_PREFIX.toString() + uri); return (channels == null) ? new HashSet<>() : channels; }
class class_name[name] begin[{] method[getChannels, return_type[type[Set]], modifier[public], parameter[uri]] begin[{] call[Objects.requireNonNull, parameter[member[.uri], call[Required.URI.toString, parameter[]]]] local_variable[type[Set], channels] return[TernaryExpression(con...
Keyword[public] identifier[Set] operator[<] identifier[WebSocketChannel] operator[>] identifier[getChannels] operator[SEP] identifier[String] identifier[uri] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[uri] , identifier[Required] operator[SEP] identifier...
@Override public CompletableFuture<RegistrationResponse> registerJobManager( final JobMasterId jobMasterId, final ResourceID jobManagerResourceId, final String jobManagerAddress, final JobID jobId, final Time timeout) { checkNotNull(jobMasterId); checkNotNull(jobManagerResourceId); checkNotNull(j...
class class_name[name] begin[{] method[registerJobManager, return_type[type[CompletableFuture]], modifier[public], parameter[jobMasterId, jobManagerResourceId, jobManagerAddress, jobId, timeout]] begin[{] call[.checkNotNull, parameter[member[.jobMasterId]]] call[.checkNotNull, p...
annotation[@] identifier[Override] Keyword[public] identifier[CompletableFuture] operator[<] identifier[RegistrationResponse] operator[>] identifier[registerJobManager] operator[SEP] Keyword[final] identifier[JobMasterId] identifier[jobMasterId] , Keyword[final] identifier[ResourceID] identifier[jobManagerResourceId] ...
public static double elementMax( DMatrix3x3 a ) { double max = a.a11; if( a.a12 > max ) max = a.a12; if( a.a13 > max ) max = a.a13; if( a.a21 > max ) max = a.a21; if( a.a22 > max ) max = a.a22; if( a.a23 > max ) max = a.a23; if( a.a31 > max ) max = a.a31; ...
class class_name[name] begin[{] method[elementMax, return_type[type[double]], modifier[public static], parameter[a]] begin[{] local_variable[type[double], max] if[binary_operation[member[a.a12], >, member[.max]]] begin[{] assign[member[.max], member[a.a12]] else begi...
Keyword[public] Keyword[static] Keyword[double] identifier[elementMax] operator[SEP] identifier[DMatrix3x3] identifier[a] operator[SEP] { Keyword[double] identifier[max] operator[=] identifier[a] operator[SEP] identifier[a11] operator[SEP] Keyword[if] operator[SEP] identifier[a] operator[SEP] identifier[a12] ope...
public static Button createPhoneNumberButton(String title, String phoneNumber) { return new PostbackButton(title, ButtonType.PHONE_NUMBER, phoneNumber); }
class class_name[name] begin[{] method[createPhoneNumberButton, return_type[type[Button]], modifier[public static], parameter[title, phoneNumber]] begin[{] return[ClassCreator(arguments=[MemberReference(member=title, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(...
Keyword[public] Keyword[static] identifier[Button] identifier[createPhoneNumberButton] operator[SEP] identifier[String] identifier[title] , identifier[String] identifier[phoneNumber] operator[SEP] { Keyword[return] Keyword[new] identifier[PostbackButton] operator[SEP] identifier[title] , identifier[ButtonType]...
public void printInputControl(PrintWriter out, String strFieldDesc, String strFieldName, String strSize, String strMaxSize, String strValue, String strControlType, int iHtmlAttributes) { if (!HtmlConstants.BUTTON.equalsIgnoreCase(strControlType)) { strFieldName = DBParams.COMMAND; ...
class class_name[name] begin[{] method[printInputControl, return_type[void], modifier[public], parameter[out, strFieldDesc, strFieldName, strSize, strMaxSize, strValue, strControlType, iHtmlAttributes]] begin[{] if[call[HtmlConstants.BUTTON.equalsIgnoreCase, parameter[member[.strControlType]]]]...
Keyword[public] Keyword[void] identifier[printInputControl] operator[SEP] identifier[PrintWriter] identifier[out] , identifier[String] identifier[strFieldDesc] , identifier[String] identifier[strFieldName] , identifier[String] identifier[strSize] , identifier[String] identifier[strMaxSize] , identifier[String] ide...
@Nonnull public DescribeCommand apply(@Nullable GitDescribeConfig config) { if (config != null) { always(config.isAlways()); dirty(config.getDirty()); abbrev(config.getAbbrev()); forceLongFormat(config.getForceLongFormat()); tags(config.getTags()); match(config.getMatch()); ...
class class_name[name] begin[{] method[apply, return_type[type[DescribeCommand]], modifier[public], parameter[config]] begin[{] if[binary_operation[member[.config], !=, literal[null]]] begin[{] call[.always, parameter[call[config.isAlways, parameter[]]]] ...
annotation[@] identifier[Nonnull] Keyword[public] identifier[DescribeCommand] identifier[apply] operator[SEP] annotation[@] identifier[Nullable] identifier[GitDescribeConfig] identifier[config] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[!=] Other[null] operator[SEP] { identi...
public int getNumberOfCategorizedArticles(Wikipedia pWiki, CategoryGraph catGraph) throws WikiApiException{ if (categorizedArticleSet == null) { // has not been initialized yet iterateCategoriesGetArticles(pWiki, catGraph); } return categorizedArticleSet.size(); }
class class_name[name] begin[{] method[getNumberOfCategorizedArticles, return_type[type[int]], modifier[public], parameter[pWiki, catGraph]] begin[{] if[binary_operation[member[.categorizedArticleSet], ==, literal[null]]] begin[{] call[.iterateCategoriesGetArticles, para...
Keyword[public] Keyword[int] identifier[getNumberOfCategorizedArticles] operator[SEP] identifier[Wikipedia] identifier[pWiki] , identifier[CategoryGraph] identifier[catGraph] operator[SEP] Keyword[throws] identifier[WikiApiException] { Keyword[if] operator[SEP] identifier[categorizedArticleSet] operator[==] Oth...
protected PredicateLevelProposal proposeForGroupingMap( ImmutableMultimap<ImmutableList<VariableOrGroundTerm>, ExtensionalDataNode> groupingMap) throws AtomUnificationException { ImmutableCollection<Collection<ExtensionalDataNode>> dataNodeGroups = groupingMap.asMap().values(); try { ...
class class_name[name] begin[{] method[proposeForGroupingMap, return_type[type[PredicateLevelProposal]], modifier[protected], parameter[groupingMap]] begin[{] local_variable[type[ImmutableCollection], dataNodeGroups] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Vari...
Keyword[protected] identifier[PredicateLevelProposal] identifier[proposeForGroupingMap] operator[SEP] identifier[ImmutableMultimap] operator[<] identifier[ImmutableList] operator[<] identifier[VariableOrGroundTerm] operator[>] , identifier[ExtensionalDataNode] operator[>] identifier[groupingMap] operator[SEP] Keyword[...
@Override public VoltTable runDML(String dml) { String modifiedDml = transformDML(dml); printTransformedSql(dml, modifiedDml); return super.runDML(modifiedDml, false); }
class class_name[name] begin[{] method[runDML, return_type[type[VoltTable]], modifier[public], parameter[dml]] begin[{] local_variable[type[String], modifiedDml] call[.printTransformedSql, parameter[member[.dml], member[.modifiedDml]]] return[SuperMethodInvocation(arguments=[Mem...
annotation[@] identifier[Override] Keyword[public] identifier[VoltTable] identifier[runDML] operator[SEP] identifier[String] identifier[dml] operator[SEP] { identifier[String] identifier[modifiedDml] operator[=] identifier[transformDML] operator[SEP] identifier[dml] operator[SEP] operator[SEP] identifier[printTr...
public static <E> Iterator<E> drop(long howMany, E... array) { return new FilteringIterator<E>(new ArrayIterator<E>(array), new DropWhile<E>(new UntilCount<E>(howMany))); }
class class_name[name] begin[{] method[drop, return_type[type[Iterator]], modifier[public static], parameter[howMany, array]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, c...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Iterator] operator[<] identifier[E] operator[>] identifier[drop] operator[SEP] Keyword[long] identifier[howMany] , identifier[E] operator[...] identifier[array] operator[SEP] { Keyword[return] Keyword[new] identifier[FilteringItera...
private void clearStoreNFC( final Set<String> sourcePaths, ArtifactStore store ) throws IndyDataException { Set<String> paths = sourcePaths.stream() .map( sp -> sp.startsWith( "/" ) && sp.length() > 1 ? sp.substring( 1 ) : sp ) ...
class class_name[name] begin[{] method[clearStoreNFC, return_type[void], modifier[private], parameter[sourcePaths, store]] begin[{] local_variable[type[Set], paths] call[paths.forEach, parameter[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclara...
Keyword[private] Keyword[void] identifier[clearStoreNFC] operator[SEP] Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[sourcePaths] , identifier[ArtifactStore] identifier[store] operator[SEP] Keyword[throws] identifier[IndyDataException] { identifier[Set] operator[<] identif...
public void start(BundleContext context) throws Exception { super.start(context); repositoryAdmin = this.getRepositoryAdmin(context, this); if (repositoryAdmin != null) { // The repository is up, I can get to work (otherwise, I'll be waiting) this.addBootstrapRepo...
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[context]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=start, postfix_operators=[], prefix_oper...
Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[BundleContext] identifier[context] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[super] operator[SEP] identifier[start] operator[SEP] identifier[context] operator[SEP] operator[SEP] identifier[repositoryAdmin] operator[=] Ke...
public String binaryToString(Object objData) { initGlobals(); if (objData == null) return Constants.BLANK; String strReturn = null; synchronized (gIntegerFormat) { strReturn = gIntegerFormat.format(((Short)objData).shortValue()); } ret...
class class_name[name] begin[{] method[binaryToString, return_type[type[String]], modifier[public], parameter[objData]] begin[{] call[.initGlobals, parameter[]] if[binary_operation[member[.objData], ==, literal[null]]] begin[{] return[member[Constants.BLANK]] else begin[...
Keyword[public] identifier[String] identifier[binaryToString] operator[SEP] identifier[Object] identifier[objData] operator[SEP] { identifier[initGlobals] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[objData] operator[==] Other[null] operator[SEP] Keyword[return] identifier[Cons...
@Override public EClass getIfcWarpingConstantMeasure() { if (ifcWarpingConstantMeasureEClass == null) { ifcWarpingConstantMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(893); } return ifcWarpingConstantMeasureEClass; }
class class_name[name] begin[{] method[getIfcWarpingConstantMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcWarpingConstantMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcWarpingConstantMeasureECla...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcWarpingConstantMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcWarpingConstantMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcWarpingConstantMeasureEClass] operat...
public void unsetAsynchConsumer(boolean stoppable) //SIB0115d.comms throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIErrorException, SIIncorrec...
class class_name[name] begin[{] method[unsetAsynchConsumer, return_type[void], modifier[public], parameter[stoppable]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[...
Keyword[public] Keyword[void] identifier[unsetAsynchConsumer] operator[SEP] Keyword[boolean] identifier[stoppable] operator[SEP] Keyword[throws] identifier[SISessionUnavailableException] , identifier[SISessionDroppedException] , identifier[SIConnectionUnavailableException] , identifier[SIConnectionDroppedException] ...
public final boolean isItemInsideView(int position) { float x = (getXForItemAtPosition(position) + offsetX); float y = (getYForItemAtPosition(position) + offsetY); float itemSize = getNoxItemSize(); int viewWidth = shapeConfig.getViewWidth(); boolean matchesHorizontally = x + itemSize >= 0 && x <= v...
class class_name[name] begin[{] method[isItemInsideView, return_type[type[boolean]], modifier[final public], parameter[position]] begin[{] local_variable[type[float], x] local_variable[type[float], y] local_variable[type[float], itemSize] local_variable[type[int], viewWidth] ...
Keyword[public] Keyword[final] Keyword[boolean] identifier[isItemInsideView] operator[SEP] Keyword[int] identifier[position] operator[SEP] { Keyword[float] identifier[x] operator[=] operator[SEP] identifier[getXForItemAtPosition] operator[SEP] identifier[position] operator[SEP] operator[+] identifier[offsetX] op...
public void assertNotGreaterThan(Description description, Character actual, char other) { assertNotNull(description, actual); if (isGreaterThan(actual, other)) { throw failures.failure(description, shouldNotBeGreaterThan(actual, other)); } }
class class_name[name] begin[{] method[assertNotGreaterThan, return_type[void], modifier[public], parameter[description, actual, other]] begin[{] call[.assertNotNull, parameter[member[.description], member[.actual]]] if[call[.isGreaterThan, parameter[member[.actual], member[.oth...
Keyword[public] Keyword[void] identifier[assertNotGreaterThan] operator[SEP] identifier[Description] identifier[description] , identifier[Character] identifier[actual] , Keyword[char] identifier[other] operator[SEP] { identifier[assertNotNull] operator[SEP] identifier[description] , identifier[actual] operato...
public static byte[] dec(Pointer _s, final int _len) { int len = _len; byte[] sb = _s.buffer; int s = _s.start; int a = -1,b = -1,c = 0,d; byte[] ptrb = new byte[len]; System.arraycopy(sb, s, ptrb, 0, len); int ptr = 0; int end = 0; int se...
class class_name[name] begin[{] method[dec, return_type[type[byte]], modifier[public static], parameter[_s, _len]] begin[{] local_variable[type[int], len] local_variable[type[byte], sb] local_variable[type[int], s] local_variable[type[int], a] local_variable[type[byte], ...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[dec] operator[SEP] identifier[Pointer] identifier[_s] , Keyword[final] Keyword[int] identifier[_len] operator[SEP] { Keyword[int] identifier[len] operator[=] identifier[_len] operator[SEP] Keyword[byte] operator[SEP] operator[S...
void formatMonth(StringBuilder b, ZonedDateTime d, int width, FieldVariants months) { int month = d.getMonth().getValue(); switch (width) { case 5: b.append(months.narrow[month-1]); break; case 4: b.append(months.wide[month-1]); break; case 3: b.append...
class class_name[name] begin[{] method[formatMonth, return_type[void], modifier[default], parameter[b, d, width, months]] begin[{] local_variable[type[int], month] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], v...
Keyword[void] identifier[formatMonth] operator[SEP] identifier[StringBuilder] identifier[b] , identifier[ZonedDateTime] identifier[d] , Keyword[int] identifier[width] , identifier[FieldVariants] identifier[months] operator[SEP] { Keyword[int] identifier[month] operator[=] identifier[d] operator[SEP] identifie...
public static com.liferay.commerce.model.CommerceSubscriptionEntry fetchCommerceSubscriptionEntryByUuidAndGroupId( String uuid, long groupId) { return getService() .fetchCommerceSubscriptionEntryByUuidAndGroupId(uuid, groupId); }
class class_name[name] begin[{] method[fetchCommerceSubscriptionEntryByUuidAndGroupId, return_type[type[com]], modifier[public static], parameter[uuid, groupId]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[model] operator[SEP] identifier[CommerceSubscriptionEntry] identifier[fetchCommerceSubscriptionEntryByUuidAndGroupId] operator[SEP] identifier[String] identifier[uuid] , Keyword...
protected boolean editorErrorMatches(final EditorError perror) { return perror != null && perror.getEditor() != null && (equals(perror.getEditor()) || perror.getEditor().equals(editor)); }
class class_name[name] begin[{] method[editorErrorMatches, return_type[type[boolean]], modifier[protected], parameter[perror]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.perror], !=, literal[null]], &&, binary_operation[call[perror.getEditor, parameter[]], !=, literal[nu...
Keyword[protected] Keyword[boolean] identifier[editorErrorMatches] operator[SEP] Keyword[final] identifier[EditorError] identifier[perror] operator[SEP] { Keyword[return] identifier[perror] operator[!=] Other[null] operator[&&] identifier[perror] operator[SEP] identifier[getEditor] operator[SEP] operator[SEP] op...
public static <T> long addCap(AtomicLongFieldUpdater<T> updater, T instance, long toAdd) { long r, u; for (;;) { r = updater.get(instance); if (r == Long.MAX_VALUE) { return Long.MAX_VALUE; } u = addCap(r, toAdd); if (updater.compareAndSet(instance, r, u)) { return r; } } }
class class_name[name] begin[{] method[addCap, return_type[type[long]], modifier[public static], parameter[updater, instance, toAdd]] begin[{] local_variable[type[long], r] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberRefer...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[long] identifier[addCap] operator[SEP] identifier[AtomicLongFieldUpdater] operator[<] identifier[T] operator[>] identifier[updater] , identifier[T] identifier[instance] , Keyword[long] identifier[toAdd] operator[SEP] { Keyword[long] ...
public static ns_cluster[] get_filtered(nitro_service service, String filter) throws Exception { ns_cluster obj = new ns_cluster(); options option = new options(); option.set_filter(filter); ns_cluster[] response = (ns_cluster[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[ns_cluster]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[ns_cluster], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] ...
Keyword[public] Keyword[static] identifier[ns_cluster] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ns_cluster] identifier[obj] operator[=]...
public Set<Map.Entry<K,V>> entrySet() { return SyncUtils.synchronizeRead(lock, new Callback<Set<Map.Entry<K,V>>>() { @Override protected void doAction() { FilterableSet<Map.Entry<K,V>> _set = (FilterableSet<Map.Entry<K,V>>)map.entrySet(); _return(new ...
class class_name[name] begin[{] method[entrySet, return_type[type[Set]], modifier[public], parameter[]] begin[{] return[call[SyncUtils.synchronizeRead, parameter[member[.lock], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableD...
Keyword[public] identifier[Set] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[entrySet] operator[SEP] operator[SEP] { Keyword[return] identifier[SyncUtils] operator[SEP] identifier[synchronizeRead] operator[SEP] identifie...
public String asString() throws TwitterException { if (null == responseAsString) { BufferedReader br = null; InputStream stream = null; try { stream = asStream(); if (null == stream) { return null; } ...
class class_name[name] begin[{] method[asString, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[literal[null], ==, member[.responseAsString]]] begin[{] local_variable[type[BufferedReader], br] local_variable[type[InputStream], stre...
Keyword[public] identifier[String] identifier[asString] operator[SEP] operator[SEP] Keyword[throws] identifier[TwitterException] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[responseAsString] operator[SEP] { identifier[BufferedReader] identifier[br] operator[=] Other[null] operator[...
@Override public void shutdown() throws BatchContainerServiceException { logger.entering(CLASSNAME, "shutdown"); logger.fine("do nothing"); logger.exiting(CLASSNAME, "shutdown"); }
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[public], parameter[]] begin[{] call[logger.entering, parameter[member[.CLASSNAME], literal["shutdown"]]] call[logger.fine, parameter[literal["do nothing"]]] call[logger.exiting, paramete...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[shutdown] operator[SEP] operator[SEP] Keyword[throws] identifier[BatchContainerServiceException] { identifier[logger] operator[SEP] identifier[entering] operator[SEP] identifier[CLASSNAME] , literal[String] operator[SEP] operator[SEP] i...
public static <T extends Comparable<? super T>> void descDeep(final T[] comparableArray) { if (ArrayUtils.isEmpty(comparableArray)) { return; } descByReflex(comparableArray); }
class class_name[name] begin[{] method[descDeep, return_type[void], modifier[public static], parameter[comparableArray]] begin[{] if[call[ArrayUtils.isEmpty, parameter[member[.comparableArray]]]] begin[{] return[None] else begin[{] None end[}] call[.d...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[T] operator[>] operator[>] Keyword[void] identifier[descDeep] operator[SEP] Keyword[final] identifier[T] operator[SEP] operator[SEP] identifier[comparableArray] operator[SE...
public final void init(int opmode, Key key) throws InvalidKeyException { init(opmode, key, JceSecurity.RANDOM); }
class class_name[name] begin[{] method[init, return_type[void], modifier[final public], parameter[opmode, key]] begin[{] call[.init, parameter[member[.opmode], member[.key], member[JceSecurity.RANDOM]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[init] operator[SEP] Keyword[int] identifier[opmode] , identifier[Key] identifier[key] operator[SEP] Keyword[throws] identifier[InvalidKeyException] { identifier[init] operator[SEP] identifier[opmode] , identifier[key] , identifier[JceSecurity] operator[S...
private void addAttributeInternal(EntityType entityType, Attribute attr) { if (!isPersisted(attr)) { return; } if (isMultipleReferenceType(attr)) { createJunctionTable(entityType, attr); if (attr.getDefaultValue() != null && !attr.isNillable()) { @SuppressWarnings("unchecked") ...
class class_name[name] begin[{] method[addAttributeInternal, return_type[void], modifier[private], parameter[entityType, attr]] begin[{] if[call[.isPersisted, parameter[member[.attr]]]] begin[{] return[None] else begin[{] None end[}] if[call[.isMultip...
Keyword[private] Keyword[void] identifier[addAttributeInternal] operator[SEP] identifier[EntityType] identifier[entityType] , identifier[Attribute] identifier[attr] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isPersisted] operator[SEP] identifier[attr] operator[SEP] operator[SEP] { ...
public void updateChannelConfiguration(UpdateChannelConfiguration updateChannelConfiguration, Orderer orderer, byte[]... signers) throws TransactionException, InvalidArgumentException { checkChannelState(); checkOrderer(orderer); try { final long startLastConfigIndex = getLastConf...
class class_name[name] begin[{] method[updateChannelConfiguration, return_type[void], modifier[public], parameter[updateChannelConfiguration, orderer, signers]] begin[{] call[.checkChannelState, parameter[]] call[.checkOrderer, parameter[member[.orderer]]] TryStatement(b...
Keyword[public] Keyword[void] identifier[updateChannelConfiguration] operator[SEP] identifier[UpdateChannelConfiguration] identifier[updateChannelConfiguration] , identifier[Orderer] identifier[orderer] , Keyword[byte] operator[SEP] operator[SEP] operator[...] identifier[signers] operator[SEP] Keyword[throws] identif...
public void marshall(DeleteNotebookInstanceRequest deleteNotebookInstanceRequest, ProtocolMarshaller protocolMarshaller) { if (deleteNotebookInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteNotebookInstanceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteNotebookInstanceRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreato...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteNotebookInstanceRequest] identifier[deleteNotebookInstanceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteNotebookInstanceRequest] operator[==] Ot...
public synchronized final V get(K key) { if (key == null) { throw new NullPointerException("key == null"); } V result = map.get(key); if (result != null) { return result; } result = create(key); if (result != null) { map.put(...
class class_name[name] begin[{] method[get, return_type[type[V]], modifier[synchronized final public], parameter[key]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_opera...
Keyword[public] Keyword[synchronized] Keyword[final] identifier[V] identifier[get] operator[SEP] identifier[K] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] l...
public static String hump2Underline(String string) { if (string == null) return null; if (string.trim().length() == 0) return ""; string = toFirstLower(string); StringBuilder sb = new StringBuilder(); char[] arr = string.toCharArray(); for (char c : arr) { if (c >= 65 && c <=90) { c += 32; sb.app...
class class_name[name] begin[{] method[hump2Underline, return_type[type[String]], modifier[public static], parameter[string]] begin[{] if[binary_operation[member[.string], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_oper...
Keyword[public] Keyword[static] identifier[String] identifier[hump2Underline] operator[SEP] identifier[String] identifier[string] operator[SEP] { Keyword[if] operator[SEP] identifier[string] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[stri...
public void startTaskForm() { Map<String, String> requestParameterMap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); String taskId = requestParameterMap.get("taskId"); String callbackUrl = requestParameterMap.get("callbackUrl"); if (taskId==null || callbackUrl == nul...
class class_name[name] begin[{] method[startTaskForm, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Map], requestParameterMap] local_variable[type[String], taskId] local_variable[type[String], callbackUrl] if[binary_operation[binary_opera...
Keyword[public] Keyword[void] identifier[startTaskForm] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[requestParameterMap] operator[=] identifier[FacesContext] operator[SEP] identifier[getCurrentInstance] operator[SEP] operator[SEP] oper...
public static boolean delete(Path targetPath) { debug(log, "delete", targetPath); try { Files.delete(targetPath); return true; } catch (Exception e) { return JMExceptionManager.handleExceptionAndReturnFalse(log, e, "delete", targetPath); ...
class class_name[name] begin[{] method[delete, return_type[type[boolean]], modifier[public static], parameter[targetPath]] begin[{] call[.debug, parameter[member[.log], literal["delete"], member[.targetPath]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments...
Keyword[public] Keyword[static] Keyword[boolean] identifier[delete] operator[SEP] identifier[Path] identifier[targetPath] operator[SEP] { identifier[debug] operator[SEP] identifier[log] , literal[String] , identifier[targetPath] operator[SEP] operator[SEP] Keyword[try] { identifier[Files] operator[S...
public void put_property(String name, DbDatum[] properties) throws DevFailed { databaseDAO.put_property(this, name, properties); }
class class_name[name] begin[{] method[put_property, return_type[void], modifier[public], parameter[name, properties]] begin[{] call[databaseDAO.put_property, parameter[THIS[], member[.name], member[.properties]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[put_property] operator[SEP] identifier[String] identifier[name] , identifier[DbDatum] operator[SEP] operator[SEP] identifier[properties] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[databaseDAO] operator[SEP] identifier[put_property] operator[SEP] Key...
public void computeCoarsestStablePartition() { Block curr; while ((curr = poll()) != null) { int blockRange = curr.high - curr.low; // copy blockData, because #moveLeft() may change its data while we iterate over it // TODO maybe find an implementation that does not n...
class class_name[name] begin[{] method[computeCoarsestStablePartition, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Block], curr] while[binary_operation[assign[member[.curr], call[.poll, parameter[]]], !=, literal[null]]] begin[{] local_vari...
Keyword[public] Keyword[void] identifier[computeCoarsestStablePartition] operator[SEP] operator[SEP] { identifier[Block] identifier[curr] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[curr] operator[=] identifier[poll] operator[SEP] operator[SEP] operator[SEP] operator[!=] Other[null] opera...
public static ECKey fromNodeId(byte[] nodeId) { check(nodeId.length == 64, "Expected a 64 byte node id"); byte[] pubBytes = new byte[65]; System.arraycopy(nodeId, 0, pubBytes, 1, nodeId.length); pubBytes[0] = 0x04; // uncompressed return ECKey.fromPublicOnly(pubBytes); }
class class_name[name] begin[{] method[fromNodeId, return_type[type[ECKey]], modifier[public static], parameter[nodeId]] begin[{] call[.check, parameter[binary_operation[member[nodeId.length], ==, literal[64]], literal["Expected a 64 byte node id"]]] local_variable[type[byte], pubBytes]...
Keyword[public] Keyword[static] identifier[ECKey] identifier[fromNodeId] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[nodeId] operator[SEP] { identifier[check] operator[SEP] identifier[nodeId] operator[SEP] identifier[length] operator[==] Other[64] , literal[String] operator[SEP] operator[...
@Override public ResourceSet<Day> read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); }
class class_name[name] begin[{] method[read, return_type[type[ResourceSet]], modifier[public], parameter[client]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=client, postfix_operators=[], prefix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[ResourceSet] operator[<] identifier[Day] operator[>] identifier[read] operator[SEP] Keyword[final] identifier[TwilioRestClient] identifier[client] operator[SEP] { Keyword[return] Keyword[new] identifier[ResourceSet] operator[<] operator[>] operator[SE...
protected void _format(EObject obj, IFormattableDocument document) { for (EObject child : obj.eContents()) document.format(child); }
class class_name[name] begin[{] method[_format, return_type[void], modifier[protected], parameter[obj, document]] begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=child, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], me...
Keyword[protected] Keyword[void] identifier[_format] operator[SEP] identifier[EObject] identifier[obj] , identifier[IFormattableDocument] identifier[document] operator[SEP] { Keyword[for] operator[SEP] identifier[EObject] identifier[child] operator[:] identifier[obj] operator[SEP] identifier[eContents] operato...
private boolean isDecompYesAndZeroCC(int norm16) { return norm16<minYesNo || norm16==JAMO_VT || (minMaybeYes<=norm16 && norm16<=MIN_NORMAL_MAYBE_YES); }
class class_name[name] begin[{] method[isDecompYesAndZeroCC, return_type[type[boolean]], modifier[private], parameter[norm16]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.norm16], <, member[.minYesNo]], ||, binary_operation[member[.norm16], ==, member[.JAMO_VT]]], ||, bin...
Keyword[private] Keyword[boolean] identifier[isDecompYesAndZeroCC] operator[SEP] Keyword[int] identifier[norm16] operator[SEP] { Keyword[return] identifier[norm16] operator[<] identifier[minYesNo] operator[||] identifier[norm16] operator[==] identifier[JAMO_VT] operator[||] operator[SEP] identifier[minMaybeYes] ...
public Prop setProp() { Assert.isTrue(getFirstChild(root, new String[] {"allprop", "propname"}) == null); //$NON-NLS-1$ //$NON-NLS-2$ Element prop = setChild(root, "prop", new String[] {"prop"}, true); //$NON-NLS-1$ //$NON-NLS-2$ try { return new Prop(prop); } catch (Malforme...
class class_name[name] begin[{] method[setProp, return_type[type[Prop]], modifier[public], parameter[]] begin[{] call[Assert.isTrue, parameter[binary_operation[call[.getFirstChild, parameter[member[.root], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[Literal(postfi...
Keyword[public] identifier[Prop] identifier[setProp] operator[SEP] operator[SEP] { identifier[Assert] operator[SEP] identifier[isTrue] operator[SEP] identifier[getFirstChild] operator[SEP] identifier[root] , Keyword[new] identifier[String] operator[SEP] operator[SEP] { literal[String] , literal[Stri...
@Pure public static int getSelectionColor() { final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class); if (prefs != null) { final String str = prefs.get("SELECTION_COLOR", null); //$NON-NLS-1$ if (str != null) { try { return Integer.valueOf(str); } catch (Throwable exce...
class class_name[name] begin[{] method[getSelectionColor, return_type[type[int]], modifier[public static], parameter[]] begin[{] local_variable[type[Preferences], prefs] if[binary_operation[member[.prefs], !=, literal[null]]] begin[{] local_variable[type[String], str] ...
annotation[@] identifier[Pure] Keyword[public] Keyword[static] Keyword[int] identifier[getSelectionColor] operator[SEP] operator[SEP] { Keyword[final] identifier[Preferences] identifier[prefs] operator[=] identifier[Preferences] operator[SEP] identifier[userNodeForPackage] operator[SEP] identifier[BusLayerConsta...
public void concatCTM(float a, float b, float c, float d, float e, float f) { content.append(a).append(' ').append(b).append(' ').append(c).append(' '); content.append(d).append(' ').append(e).append(' ').append(f).append(" cm").append_i(separator); }
class class_name[name] begin[{] method[concatCTM, return_type[void], modifier[public], parameter[a, b, c, d, e, f]] begin[{] call[content.append, parameter[member[.a]]] call[content.append, parameter[member[.d]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[concatCTM] operator[SEP] Keyword[float] identifier[a] , Keyword[float] identifier[b] , Keyword[float] identifier[c] , Keyword[float] identifier[d] , Keyword[float] identifier[e] , Keyword[float] identifier[f] operator[SEP] { identifier[content] operator[SEP] identifi...
public static String getMD5Hash(final String input) throws HibiscusException { String hashValue = null; try { final MessageDigest messageDigest = MessageDigest.getInstance(MESSAGE_DIGEST_ALGORITHM_MD5); byte[] md5Hash = new byte[BYTE_LENGTH_MD5]; messageDigest.up...
class class_name[name] begin[{] method[getMD5Hash, return_type[type[String]], modifier[public static], parameter[input]] begin[{] local_variable[type[String], hashValue] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Metho...
Keyword[public] Keyword[static] identifier[String] identifier[getMD5Hash] operator[SEP] Keyword[final] identifier[String] identifier[input] operator[SEP] Keyword[throws] identifier[HibiscusException] { identifier[String] identifier[hashValue] operator[=] Other[null] operator[SEP] Keyword[try] { Keywor...
@Override protected Component newListComponent(final String id, final ListItem<ResourceBundleKey> item) { return ComponentFactory.newLabel(id, ResourceModelFactory.newResourceModel(item.getModel().getObject(), this)); }
class class_name[name] begin[{] method[newListComponent, return_type[type[Component]], modifier[protected], parameter[id, item]] begin[{] return[call[ComponentFactory.newLabel, parameter[member[.id], call[ResourceModelFactory.newResourceModel, parameter[call[item.getModel, parameter[]], THIS[]]]]]] ...
annotation[@] identifier[Override] Keyword[protected] identifier[Component] identifier[newListComponent] operator[SEP] Keyword[final] identifier[String] identifier[id] , Keyword[final] identifier[ListItem] operator[<] identifier[ResourceBundleKey] operator[>] identifier[item] operator[SEP] { Keyword[return] ide...
@SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL, Long.MAX_VALUE); }
class class_name[name] begin[{] method[newResourceLeakDetector, return_type[type[ResourceLeakDetector]], modifier[public], parameter[resource, samplingInterval]] begin[{] return[call[.newResourceLeakDetector, parameter[member[.resource], member[ResourceLeakDetector.SAMPLING_INTERVAL], member[Long.MAX_V...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[ResourceLeakDetector] operator[<] identifier[T] operator[>] identifier[newResourceLeakDetector] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] id...
public static void deleteFeatureTileLinkExtension(GeoPackageCore geoPackage) { FeatureTileLinkDao featureTileLinkDao = geoPackage .getFeatureTileLinkDao(); ExtensionsDao extensionsDao = geoPackage.getExtensionsDao(); try { if (featureTileLinkDao.isTableExists()) { geoPackage.dropTable(featureTileLinkD...
class class_name[name] begin[{] method[deleteFeatureTileLinkExtension, return_type[void], modifier[public static], parameter[geoPackage]] begin[{] local_variable[type[FeatureTileLinkDao], featureTileLinkDao] local_variable[type[ExtensionsDao], extensionsDao] TryStatement(block=[IfStatem...
Keyword[public] Keyword[static] Keyword[void] identifier[deleteFeatureTileLinkExtension] operator[SEP] identifier[GeoPackageCore] identifier[geoPackage] operator[SEP] { identifier[FeatureTileLinkDao] identifier[featureTileLinkDao] operator[=] identifier[geoPackage] operator[SEP] identifier[getFeatureTileLinkDao]...
public Collection<Story> getStories(StoryFilter filter, boolean includeSubprojects) { filter = (filter != null) ? filter : new StoryFilter(); return getInstance().get().story( getFilter(filter, includeSubprojects)); }
class class_name[name] begin[{] method[getStories, return_type[type[Collection]], modifier[public], parameter[filter, includeSubprojects]] begin[{] assign[member[.filter], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=filter, postfix_operators=[], prefix_operators=...
Keyword[public] identifier[Collection] operator[<] identifier[Story] operator[>] identifier[getStories] operator[SEP] identifier[StoryFilter] identifier[filter] , Keyword[boolean] identifier[includeSubprojects] operator[SEP] { identifier[filter] operator[=] operator[SEP] identifier[filter] operator[!=] Other[nu...
@Pure @SuppressWarnings("unchecked") protected static <VALUET> VALUET maskNull(VALUET value) { return (value == null) ? (VALUET) NULL_VALUE : value; }
class class_name[name] begin[{] method[maskNull, return_type[type[VALUET]], modifier[static protected], parameter[value]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Lit...
annotation[@] identifier[Pure] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[static] operator[<] identifier[VALUET] operator[>] identifier[VALUET] identifier[maskNull] operator[SEP] identifier[VALUET] identifier[value] operator[SEP] { Keyword[re...
@Override public final DataSource getJtaDataSource() { if (ivJtaDataSource == null || ivJtaDataSource instanceof GenericDataSource) { // d455055 ivJtaDataSource = getJPADataSource(ivJtaDataSourceJNDIName); } return ivJtaDataSource; }
class class_name[name] begin[{] method[getJtaDataSource, return_type[type[DataSource]], modifier[final public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.ivJtaDataSource], ==, literal[null]], ||, binary_operation[member[.ivJtaDataSource], instanceof, type[GenericDataSou...
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[DataSource] identifier[getJtaDataSource] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ivJtaDataSource] operator[==] Other[null] operator[||] identifier[ivJtaDataSource] Keyword[instanceof] identifier[GenericDataSou...
public WriteSegmentRequest withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
class class_name[name] begin[{] method[withTags, return_type[type[WriteSegmentRequest]], modifier[public], parameter[tags]] begin[{] call[.setTags, parameter[member[.tags]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[WriteSegmentRequest] identifier[withTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tags] operator[SEP] { identifier[setTags] operator[SEP] identifier[tags] ope...
public <T> MutateInBuilder arrayPrepend(String path, T value) { asyncBuilder.arrayPrepend(path, value); return this; }
class class_name[name] begin[{] method[arrayPrepend, return_type[type[MutateInBuilder]], modifier[public], parameter[path, value]] begin[{] call[asyncBuilder.arrayPrepend, parameter[member[.path], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] operator[<] identifier[T] operator[>] identifier[MutateInBuilder] identifier[arrayPrepend] operator[SEP] identifier[String] identifier[path] , identifier[T] identifier[value] operator[SEP] { identifier[asyncBuilder] operator[SEP] identifier[arrayPrepend] operator[SEP] identifier[path] , identif...
public static Set<String> scanClassPathWithExcludes(final String classPath, final Set<String> excludeJarSet, final Set<String> excludePrefixes) { final Set<String> pathSet = new HashSet<String>(); // Defer to JDKPaths to do the actual classpath scanning. __JDKPaths.processClassPathItem(classPath...
class class_name[name] begin[{] method[scanClassPathWithExcludes, return_type[type[Set]], modifier[public static], parameter[classPath, excludeJarSet, excludePrefixes]] begin[{] local_variable[type[Set], pathSet] call[__JDKPaths.processClassPathItem, parameter[member[.classPath], member...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[String] operator[>] identifier[scanClassPathWithExcludes] operator[SEP] Keyword[final] identifier[String] identifier[classPath] , Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[excludeJarSet] , Keyword[final] ...
private void rePrimeNF7(AxiomSet as, IConceptMap<IConceptSet> subsumptions) { int size = as.getNf7Axioms().size(); if (size == 0) return; IConceptMap<MonotonicCollection<NF7>> deltaNF7 = new SparseConceptMap<MonotonicCollection<NF7>>(size); for (NF7 nf7 : as.getNf7Axioms()) {...
class class_name[name] begin[{] method[rePrimeNF7, return_type[void], modifier[private], parameter[as, subsumptions]] begin[{] local_variable[type[int], size] if[binary_operation[member[.size], ==, literal[0]]] begin[{] return[None] else begin[{] None end[}] loca...
Keyword[private] Keyword[void] identifier[rePrimeNF7] operator[SEP] identifier[AxiomSet] identifier[as] , identifier[IConceptMap] operator[<] identifier[IConceptSet] operator[>] identifier[subsumptions] operator[SEP] { Keyword[int] identifier[size] operator[=] identifier[as] operator[SEP] identifier[getNf7Axiom...
public <T1> Mutable<T1> mapInputToObj(final Function<T1, Float> fn) { final MutableFloat host = this; return new Mutable<T1>() { @Override public Mutable<T1> set(final T1 value) { host.set(fn.apply(value)); return this; } }; ...
class class_name[name] begin[{] method[mapInputToObj, return_type[type[Mutable]], modifier[public], parameter[fn]] begin[{] local_variable[type[MutableFloat], host] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementEx...
Keyword[public] operator[<] identifier[T1] operator[>] identifier[Mutable] operator[<] identifier[T1] operator[>] identifier[mapInputToObj] operator[SEP] Keyword[final] identifier[Function] operator[<] identifier[T1] , identifier[Float] operator[>] identifier[fn] operator[SEP] { Keyword[final] identifier[Mutabl...