code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void modelNormalInstruction(Instruction ins, int numWordsConsumed, int numWordsProduced) { modelInstruction(ins, numWordsConsumed, numWordsProduced, getDefaultValue()); }
class class_name[name] begin[{] method[modelNormalInstruction, return_type[void], modifier[public], parameter[ins, numWordsConsumed, numWordsProduced]] begin[{] call[.modelInstruction, parameter[member[.ins], member[.numWordsConsumed], member[.numWordsProduced], call[.getDefaultValue, parameter...
Keyword[public] Keyword[void] identifier[modelNormalInstruction] operator[SEP] identifier[Instruction] identifier[ins] , Keyword[int] identifier[numWordsConsumed] , Keyword[int] identifier[numWordsProduced] operator[SEP] { identifier[modelInstruction] operator[SEP] identifier[ins] , identifier[numWordsConsume...
private void enhanceFAB(final FloatingActionButton fab, MotionEvent e) { if (hasAllItemsShown()) { if (fab.getVisibility() != View.VISIBLE) { fab.show(); } } }
class class_name[name] begin[{] method[enhanceFAB, return_type[void], modifier[private], parameter[fab, e]] begin[{] if[call[.hasAllItemsShown, parameter[]]] begin[{] if[binary_operation[call[fab.getVisibility, parameter[]], !=, member[View.VISIBLE]]] begin[{] ...
Keyword[private] Keyword[void] identifier[enhanceFAB] operator[SEP] Keyword[final] identifier[FloatingActionButton] identifier[fab] , identifier[MotionEvent] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[hasAllItemsShown] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] op...
public static ExecutorService createBackgroundExecutor() { final ExecutorService executor = Executors.newSingleThreadExecutor(new DaemonThreadFactory(DEFAULT_BACKGROUND_EXECUTOR_NAME)); BACKGROUND_EXECUTORS.add(executor); return executor; }
class class_name[name] begin[{] method[createBackgroundExecutor, return_type[type[ExecutorService]], modifier[public static], parameter[]] begin[{] local_variable[type[ExecutorService], executor] call[BACKGROUND_EXECUTORS.add, parameter[member[.executor]]] return[member[.executo...
Keyword[public] Keyword[static] identifier[ExecutorService] identifier[createBackgroundExecutor] operator[SEP] operator[SEP] { Keyword[final] identifier[ExecutorService] identifier[executor] operator[=] identifier[Executors] operator[SEP] identifier[newSingleThreadExecutor] operator[SEP] Keyword[new] identifier[...
@Override public void executeDemo(String text) { // We are going to list shares just so we can get the ID for a single share // Usually you would NOT do this as you would usually already have an ID (e.g. from a click on a list view) ShareUtils.getSharesByEntity(this, entity.getKey(), 0, 1, new ShareListListen...
class class_name[name] begin[{] method[executeDemo, return_type[void], modifier[public], parameter[text]] begin[{] call[ShareUtils.getSharesByEntity, parameter[THIS[], call[entity.getKey, parameter[]], literal[0], literal[1], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annot...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[executeDemo] operator[SEP] identifier[String] identifier[text] operator[SEP] { identifier[ShareUtils] operator[SEP] identifier[getSharesByEntity] operator[SEP] Keyword[this] , identifier[entity] operator[SEP] identifier[getKey] operator...
static int getClassCode(Class cla) { if (!cla.isPrimitive()) { return ArrayUtil.CLASS_CODE_OBJECT; } return classCodeMap.get(cla, -1); }
class class_name[name] begin[{] method[getClassCode, return_type[type[int]], modifier[static], parameter[cla]] begin[{] if[call[cla.isPrimitive, parameter[]]] begin[{] return[member[ArrayUtil.CLASS_CODE_OBJECT]] else begin[{] None end[}] return[call[classCode...
Keyword[static] Keyword[int] identifier[getClassCode] operator[SEP] identifier[Class] identifier[cla] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[cla] operator[SEP] identifier[isPrimitive] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ArrayUtil] operator[S...
@Deprecated public static String getClientHostName(AlluxioConfiguration conf) { if (conf.isSet(PropertyKey.USER_HOSTNAME)) { return conf.get(PropertyKey.USER_HOSTNAME); } return getLocalHostName((int) conf.getMs(PropertyKey.NETWORK_HOST_RESOLUTION_TIMEOUT_MS)); }
class class_name[name] begin[{] method[getClientHostName, return_type[type[String]], modifier[public static], parameter[conf]] begin[{] if[call[conf.isSet, parameter[member[PropertyKey.USER_HOSTNAME]]]] begin[{] return[call[conf.get, parameter[member[PropertyKey.USER_HOSTNAME]]]] ...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[String] identifier[getClientHostName] operator[SEP] identifier[AlluxioConfiguration] identifier[conf] operator[SEP] { Keyword[if] operator[SEP] identifier[conf] operator[SEP] identifier[isSet] operator[SEP] identifier[PropertyKey] op...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @BackpressureSupport(BackpressureKind.FULL) private static Completable merge0(Publisher<? extends CompletableSource> sources, int maxConcurrency, boolean delayErrors) { ObjectHelper.requireNonNull(sources, "sources is null"); ObjectH...
class class_name[name] begin[{] method[merge0, return_type[type[Completable]], modifier[private static], parameter[sources, maxConcurrency, delayErrors]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.sources], literal["sources is null"]]] call[ObjectHelper.verifyP...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] Keyword[priv...
@Override public StartChannelResult startChannel(StartChannelRequest request) { request = beforeClientExecution(request); return executeStartChannel(request); }
class class_name[name] begin[{] method[startChannel, return_type[type[StartChannelResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeStartChannel, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[StartChannelResult] identifier[startChannel] operator[SEP] identifier[StartChannelRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S...
public static base_response add(nitro_service client, nsacl6 resource) throws Exception { nsacl6 addresource = new nsacl6(); addresource.acl6name = resource.acl6name; addresource.acl6action = resource.acl6action; addresource.td = resource.td; addresource.srcipv6 = resource.srcipv6; addresource.srcipop = res...
class class_name[name] begin[{] method[add, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[nsacl6], addresource] assign[member[addresource.acl6name], member[resource.acl6name]] assign[member[addresourc...
Keyword[public] Keyword[static] identifier[base_response] identifier[add] operator[SEP] identifier[nitro_service] identifier[client] , identifier[nsacl6] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[nsacl6] identifier[addresource] operator[=] Keyword[new] identifier[nsac...
private void loadFullSizeImage(ImageView mHeaderImageView, Item mItem) { Picasso.with(this) .load(mItem.getPhotoUrl()) .noPlaceholder() .noFade() .into(mHeaderImageView); }
class class_name[name] begin[{] method[loadFullSizeImage, return_type[void], modifier[private], parameter[mHeaderImageView, mItem]] begin[{] call[Picasso.with, parameter[THIS[]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[loadFullSizeImage] operator[SEP] identifier[ImageView] identifier[mHeaderImageView] , identifier[Item] identifier[mItem] operator[SEP] { identifier[Picasso] operator[SEP] identifier[with] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[load] operator[...
public String getBitmap() { if (m_recTarget != null) { Record recTarget = null; if (m_recTarget.getBaseRecord().getTable().getCurrentTable() != null) recTarget = m_recTarget.getBaseRecord().getTable().getCurrentTable().getRecord(); if (recTarget !=...
class class_name[name] begin[{] method[getBitmap, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.m_recTarget], !=, literal[null]]] begin[{] local_variable[type[Record], recTarget] if[binary_operation[call[m_recT...
Keyword[public] identifier[String] identifier[getBitmap] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_recTarget] operator[!=] Other[null] operator[SEP] { identifier[Record] identifier[recTarget] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[m_recTar...
@RequestMapping(value = "sync/{branchId}", method = RequestMethod.POST) public Ack launchBuildSync(@PathVariable ID branchId) { return Ack.validate(gitService.launchBuildSync(branchId, false) != null); }
class class_name[name] begin[{] method[launchBuildSync, return_type[type[Ack]], modifier[public], parameter[branchId]] begin[{] return[call[Ack.validate, parameter[binary_operation[call[gitService.launchBuildSync, parameter[member[.branchId], literal[false]]], !=, literal[null]]]]] end[}] END[}]
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[POST] operator[SEP] Keyword[public] identifier[Ack] identifier[launchBuildSync] operator[SEP] annotation[@] identifier[PathVariable] i...
private boolean startNewThread(int bucketId) { // bucket is in process or doesnt exist if (isBucketProcessed(bucketId) || bucketId == -1) { log.debug( "Can't add BufferThread. Bucket {} does not exist or a bucket with the same id is already in processing.", ...
class class_name[name] begin[{] method[startNewThread, return_type[type[boolean]], modifier[private], parameter[bucketId]] begin[{] if[binary_operation[call[.isBucketProcessed, parameter[member[.bucketId]]], ||, binary_operation[member[.bucketId], ==, literal[1]]]] begin[{] ...
Keyword[private] Keyword[boolean] identifier[startNewThread] operator[SEP] Keyword[int] identifier[bucketId] operator[SEP] { Keyword[if] operator[SEP] identifier[isBucketProcessed] operator[SEP] identifier[bucketId] operator[SEP] operator[||] identifier[bucketId] operator[==] operator[-] Other[1] operator[SEP] ...
public final T setData(String attributeName, String value) { setAttribute(ATTRIBUTE_DATA_PREFIX + attributeName, value); return (T)this; }
class class_name[name] begin[{] method[setData, return_type[type[T]], modifier[final public], parameter[attributeName, value]] begin[{] call[.setAttribute, parameter[binary_operation[member[.ATTRIBUTE_DATA_PREFIX], +, member[.attributeName]], member[.value]]] return[Cast(expression=This...
Keyword[public] Keyword[final] identifier[T] identifier[setData] operator[SEP] identifier[String] identifier[attributeName] , identifier[String] identifier[value] operator[SEP] { identifier[setAttribute] operator[SEP] identifier[ATTRIBUTE_DATA_PREFIX] operator[+] identifier[attributeName] , identifier[value] o...
void initConfigs(String propertiesAbsoluteClassPath) { this.propertiesAbsoluteClassPath = propertiesAbsoluteClassPath; this.propertiesFilePath = ResourceUtil.getAbsolutePath(propertiesAbsoluteClassPath); loadConfigs(); }
class class_name[name] begin[{] method[initConfigs, return_type[void], modifier[default], parameter[propertiesAbsoluteClassPath]] begin[{] assign[THIS[member[None.propertiesAbsoluteClassPath]], member[.propertiesAbsoluteClassPath]] assign[THIS[member[None.propertiesFilePath]], c...
Keyword[void] identifier[initConfigs] operator[SEP] identifier[String] identifier[propertiesAbsoluteClassPath] operator[SEP] { Keyword[this] operator[SEP] identifier[propertiesAbsoluteClassPath] operator[=] identifier[propertiesAbsoluteClassPath] operator[SEP] Keyword[this] operator[SEP] identifier[propertiesFil...
private void free(FileEntry fe) throws IOException { if (fe != null) { // Invalidate entry on disk (by setting keyLen field to 0) // No need to wait for readers to unlock here, the FileEntry instance is not modified, // and allocate() won't return an entry as long as it has a reader. ...
class class_name[name] begin[{] method[free, return_type[void], modifier[private], parameter[fe]] begin[{] if[binary_operation[member[.fe], !=, literal[null]]] begin[{] call[channel.write, parameter[call[ByteBuffer.wrap, parameter[member[.ZERO_INT]]], binary_operation[me...
Keyword[private] Keyword[void] identifier[free] operator[SEP] identifier[FileEntry] identifier[fe] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[fe] operator[!=] Other[null] operator[SEP] { identifier[channel] operator[SEP] identifier[write] operator[SEP]...
public FixedDelayBuilder<P> delay(String... delays) { for (String d : delays) { if (d != null) { delayProps.add(d); } } return this; }
class class_name[name] begin[{] method[delay, return_type[type[FixedDelayBuilder]], modifier[public], parameter[delays]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], ...
Keyword[public] identifier[FixedDelayBuilder] operator[<] identifier[P] operator[>] identifier[delay] operator[SEP] identifier[String] operator[...] identifier[delays] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[d] operator[:] identifier[delays] operator[SEP] { Keyword[if...
public static String formatLongname(SftpFile file) throws SftpStatusException, SshException { return formatLongname(file.getAttributes(), file.getFilename()); }
class class_name[name] begin[{] method[formatLongname, return_type[type[String]], modifier[public static], parameter[file]] begin[{] return[call[.formatLongname, parameter[call[file.getAttributes, parameter[]], call[file.getFilename, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[formatLongname] operator[SEP] identifier[SftpFile] identifier[file] operator[SEP] Keyword[throws] identifier[SftpStatusException] , identifier[SshException] { Keyword[return] identifier[formatLongname] operator[SEP] identifier[file] operator[SEP] ide...
public void extractMetaTags(DocumentFragment doc) throws XPathExpressionException { NodeList nodes = (NodeList) expression.evaluate(doc, XPathConstants.NODESET); if (nodes == null) return; int numNodes = nodes.getLength(); for (int i = 0; i < numNo...
class class_name[name] begin[{] method[extractMetaTags, return_type[void], modifier[public], parameter[doc]] begin[{] local_variable[type[NodeList], nodes] if[binary_operation[member[.nodes], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] loc...
Keyword[public] Keyword[void] identifier[extractMetaTags] operator[SEP] identifier[DocumentFragment] identifier[doc] operator[SEP] Keyword[throws] identifier[XPathExpressionException] { identifier[NodeList] identifier[nodes] operator[=] operator[SEP] identifier[NodeList] operator[SEP] identifier[expression] oper...
public Structure getStructureForDomain(String scopId, ScopDatabase scopDatabase) throws IOException, StructureException { ScopDomain domain = scopDatabase.getDomainByScopID(scopId); return getStructureForDomain(domain, scopDatabase); }
class class_name[name] begin[{] method[getStructureForDomain, return_type[type[Structure]], modifier[public], parameter[scopId, scopDatabase]] begin[{] local_variable[type[ScopDomain], domain] return[call[.getStructureForDomain, parameter[member[.domain], member[.scopDatabase]]]] end[}] END...
Keyword[public] identifier[Structure] identifier[getStructureForDomain] operator[SEP] identifier[String] identifier[scopId] , identifier[ScopDatabase] identifier[scopDatabase] operator[SEP] Keyword[throws] identifier[IOException] , identifier[StructureException] { identifier[ScopDomain] identifier[domain] oper...
private static OCSPReq generateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) throws OCSPException, IOException, OperatorException, CertificateEncodingException { //Add provider BC Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); JcaD...
class class_name[name] begin[{] method[generateOCSPRequest, return_type[type[OCSPReq]], modifier[private static], parameter[issuerCert, serialNumber]] begin[{] call[Security.addProvider, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefi...
Keyword[private] Keyword[static] identifier[OCSPReq] identifier[generateOCSPRequest] operator[SEP] identifier[X509Certificate] identifier[issuerCert] , identifier[BigInteger] identifier[serialNumber] operator[SEP] Keyword[throws] identifier[OCSPException] , identifier[IOException] , identifier[OperatorException] , ...
public void errorOccurred(SIConnectionLostException exception, // F174602 int segmentType, int requestNumber, int priority, Conversation conversation) { if (tc.isEntryEnabled()) Si...
class class_name[name] begin[{] method[errorOccurred, return_type[void], modifier[public], parameter[exception, segmentType, requestNumber, priority, conversation]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], literal["e...
Keyword[public] Keyword[void] identifier[errorOccurred] operator[SEP] identifier[SIConnectionLostException] identifier[exception] , Keyword[int] identifier[segmentType] , Keyword[int] identifier[requestNumber] , Keyword[int] identifier[priority] , identifier[Conversation] identifier[conversation] operator[SEP] { ...
@Override protected void collapseDependencies(List<TypedDependency> list, boolean CCprocess) { if (DEBUG) { printListSorted("collapseDependencies: CCproc: " + CCprocess, list); } correctDependencies(list); if (DEBUG) { printListSorted("After correctDependencies:", list); } ...
class class_name[name] begin[{] method[collapseDependencies, return_type[void], modifier[protected], parameter[list, CCprocess]] begin[{] if[member[.DEBUG]] begin[{] call[.printListSorted, parameter[binary_operation[literal["collapseDependencies: CCproc: "], +, member[.C...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[collapseDependencies] operator[SEP] identifier[List] operator[<] identifier[TypedDependency] operator[>] identifier[list] , Keyword[boolean] identifier[CCprocess] operator[SEP] { Keyword[if] operator[SEP] identifier[DEBUG] operator[S...
public static Embedded embedded(final String rel, final List<? extends HalRepresentation> embeddedRepresentations) { return new Embedded(singletonMap(rel, new ArrayList<>(embeddedRepresentations))); }
class class_name[name] begin[{] method[embedded, return_type[type[Embedded]], modifier[public static], parameter[rel, embeddedRepresentations]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=rel, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[static] identifier[Embedded] identifier[embedded] operator[SEP] Keyword[final] identifier[String] identifier[rel] , Keyword[final] identifier[List] operator[<] operator[?] Keyword[extends] identifier[HalRepresentation] operator[>] identifier[embeddedRepresentations] operator[SEP] { Keywo...
private boolean isWithinSubtree(X500Name other) { if (this == other) { return true; } if (other == null) { return false; } if (other.names.length == 0) { return true; } if (this.names.length == 0) { return false; ...
class class_name[name] begin[{] method[isWithinSubtree, return_type[type[boolean]], modifier[private], parameter[other]] begin[{] if[binary_operation[THIS[], ==, member[.other]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_opera...
Keyword[private] Keyword[boolean] identifier[isWithinSubtree] operator[SEP] identifier[X500Name] identifier[other] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[==] identifier[other] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[...
@Override public final void start() throws JMSException { externalAccessLock.readLock().lock(); try { checkNotClosed(); if (started) return; started = true; } finally { externalAccessLock.readLock().unlock(); } transportEndpoint.blocki...
class class_name[name] begin[{] method[start, return_type[void], modifier[final public], parameter[]] begin[{] call[externalAccessLock.readLock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=checkNotClosed, postfix_operators=[], pr...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[start] operator[SEP] operator[SEP] Keyword[throws] identifier[JMSException] { identifier[externalAccessLock] operator[SEP] identifier[readLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] opera...
public static long compareDate(Date nearDate, Date farDate) { long nearMilli = nearDate.getTime(); long farMilli = farDate.getTime(); long result = nearMilli - farMilli; if (result < 0) { result = -result; } return result; }
class class_name[name] begin[{] method[compareDate, return_type[type[long]], modifier[public static], parameter[nearDate, farDate]] begin[{] local_variable[type[long], nearMilli] local_variable[type[long], farMilli] local_variable[type[long], result] if[binary_operation[...
Keyword[public] Keyword[static] Keyword[long] identifier[compareDate] operator[SEP] identifier[Date] identifier[nearDate] , identifier[Date] identifier[farDate] operator[SEP] { Keyword[long] identifier[nearMilli] operator[=] identifier[nearDate] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] oper...
public T remove(final int key) { final int hash = hashOf(key); int index = hash & mask; if (containsKey(key, index)) { return doRemove(index); } if (states[index] == FREE) { return missingEntries; } int j = index; for (int pertu...
class class_name[name] begin[{] method[remove, return_type[type[T]], modifier[public], parameter[key]] begin[{] local_variable[type[int], hash] local_variable[type[int], index] if[call[.containsKey, parameter[member[.key], member[.index]]]] begin[{] return[call[.doRe...
Keyword[public] identifier[T] identifier[remove] operator[SEP] Keyword[final] Keyword[int] identifier[key] operator[SEP] { Keyword[final] Keyword[int] identifier[hash] operator[=] identifier[hashOf] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[int] identifier[index] operator[=] identifier[ha...
public Reward getAsReward() { Reward reward = new Reward(); for (Map.Entry<Integer, Float> entry : this.map.entrySet()) { Integer dimension = entry.getKey(); Float reward_value = entry.getValue(); Value reward_entry = new Value(); reward_entry.setDimension...
class class_name[name] begin[{] method[getAsReward, return_type[type[Reward]], modifier[public], parameter[]] begin[{] local_variable[type[Reward], reward] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimension...
Keyword[public] identifier[Reward] identifier[getAsReward] operator[SEP] operator[SEP] { identifier[Reward] identifier[reward] operator[=] Keyword[new] identifier[Reward] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[In...
@Override public DetectTextResult detectText(DetectTextRequest request) { request = beforeClientExecution(request); return executeDetectText(request); }
class class_name[name] begin[{] method[detectText, return_type[type[DetectTextResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDetectText, parameter[member[.request]]]] en...
annotation[@] identifier[Override] Keyword[public] identifier[DetectTextResult] identifier[detectText] operator[SEP] identifier[DetectTextRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Ke...
@Override public ResponseToRoom param(String name, Object value) { addition.put(name, value); return this; }
class class_name[name] begin[{] method[param, return_type[type[ResponseToRoom]], modifier[public], parameter[name, value]] begin[{] call[addition.put, parameter[member[.name], member[.value]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[ResponseToRoom] identifier[param] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] { identifier[addition] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[value] operator...
public void removeAStarListener(AStarListener<ST, PT> listener) { if (this.listeners != null) { this.listeners.remove(listener); if (this.listeners.isEmpty()) { this.listeners = null; } } }
class class_name[name] begin[{] method[removeAStarListener, return_type[void], modifier[public], parameter[listener]] begin[{] if[binary_operation[THIS[member[None.listeners]], !=, literal[null]]] begin[{] THIS[member[None.listeners]call[None.remove, parameter[member[.li...
Keyword[public] Keyword[void] identifier[removeAStarListener] operator[SEP] identifier[AStarListener] operator[<] identifier[ST] , identifier[PT] operator[>] identifier[listener] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[listeners] operator[!=] Other[null] operator[SEP] {...
private void fireResponseReceived(final AbstractBody response) { assertUnlocked(); BOSHMessageEvent event = null; for (BOSHClientResponseListener listener : responseListeners) { if (event == null) { event = BOSHMessageEvent.createResponseReceivedEvent( ...
class class_name[name] begin[{] method[fireResponseReceived, return_type[void], modifier[private], parameter[response]] begin[{] call[.assertUnlocked, parameter[]] local_variable[type[BOSHMessageEvent], event] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(...
Keyword[private] Keyword[void] identifier[fireResponseReceived] operator[SEP] Keyword[final] identifier[AbstractBody] identifier[response] operator[SEP] { identifier[assertUnlocked] operator[SEP] operator[SEP] operator[SEP] identifier[BOSHMessageEvent] identifier[event] operator[=] Other[null] operator[SEP] Keyw...
@Override public void registerMailboxProviderKeeper(final MailboxProviderKeeper keeper) { if (this.mailboxProviderKeeper != null) { this.mailboxProviderKeeper.close(); } this.mailboxProviderKeeper = keeper; }
class class_name[name] begin[{] method[registerMailboxProviderKeeper, return_type[void], modifier[public], parameter[keeper]] begin[{] if[binary_operation[THIS[member[None.mailboxProviderKeeper]], !=, literal[null]]] begin[{] THIS[member[None.mailboxProviderKeeper]call[N...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerMailboxProviderKeeper] operator[SEP] Keyword[final] identifier[MailboxProviderKeeper] identifier[keeper] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mailboxProviderKeeper] operator[!=] Other[n...
public void printStackTrace(java.io.PrintStream s) { if (ex == null) super.printStackTrace(s); else { synchronized (s) { s.print(split(getClass().getName()) + ": "); ex.printStackTrace(s); } } }
class class_name[name] begin[{] method[printStackTrace, return_type[void], modifier[public], parameter[s]] begin[{] if[binary_operation[member[.ex], ==, literal[null]]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] Keyword[void] identifier[printStackTrace] operator[SEP] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[PrintStream] identifier[s] operator[SEP] { Keyword[if] operator[SEP] identifier[ex] operator[==] Other[null] operator[SEP] Keyword[super] operator[SEP] identifier[printSt...
public CreatePresetResponse createPreset( String presetName, String container, Clip clip, Audio audio, Encryption encryption) { return createPreset(presetName, null, container, false, clip, audio, null, encryption, null); }
class class_name[name] begin[{] method[createPreset, return_type[type[CreatePresetResponse]], modifier[public], parameter[presetName, container, clip, audio, encryption]] begin[{] return[call[.createPreset, parameter[member[.presetName], literal[null], member[.container], literal[false], member[.clip],...
Keyword[public] identifier[CreatePresetResponse] identifier[createPreset] operator[SEP] identifier[String] identifier[presetName] , identifier[String] identifier[container] , identifier[Clip] identifier[clip] , identifier[Audio] identifier[audio] , identifier[Encryption] identifier[encryption] operator[SEP] { ...
public void shutdown() { // Delete the cookie _session if there is one Response response = executeToResponse(Http.DELETE(new URIBase(clientUri).path("_session") .build())); if (!response.isOk()) { log.warning("Error deleting session on client shutdown."); } ...
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Response], response] if[call[response.isOk, parameter[]]] begin[{] call[log.warning, parameter[literal["Error deleting session on clien...
Keyword[public] Keyword[void] identifier[shutdown] operator[SEP] operator[SEP] { identifier[Response] identifier[response] operator[=] identifier[executeToResponse] operator[SEP] identifier[Http] operator[SEP] identifier[DELETE] operator[SEP] Keyword[new] identifier[URIBase] operator[SEP] identifier[clientUri] o...
public ValidatorContext<D, O> handleWith(final ResultHandler<O>... resultHandlers) { if (resultHandlers != null) { Collections.addAll(registeredResultHandlers, resultHandlers); } return this; }
class class_name[name] begin[{] method[handleWith, return_type[type[ValidatorContext]], modifier[public], parameter[resultHandlers]] begin[{] if[binary_operation[member[.resultHandlers], !=, literal[null]]] begin[{] call[Collections.addAll, parameter[member[.registeredRe...
Keyword[public] identifier[ValidatorContext] operator[<] identifier[D] , identifier[O] operator[>] identifier[handleWith] operator[SEP] Keyword[final] identifier[ResultHandler] operator[<] identifier[O] operator[>] operator[...] identifier[resultHandlers] operator[SEP] { Keyword[if] operator[SEP] identifier[res...
protected int selectFarthest( List<Point2D_I32> contour ) { int bestIndex = -1; int bestDistance = 0; int N = contour.size(); int half = N/2; for( int i = 0; i < half; i++ ) { int end = (i+half)%N; Point2D_I32 a = contour.get(i); Point2D_I32 b = contour.get(end); int dist = UtilPoint2D_I32.di...
class class_name[name] begin[{] method[selectFarthest, return_type[type[int]], modifier[protected], parameter[contour]] begin[{] local_variable[type[int], bestIndex] local_variable[type[int], bestDistance] local_variable[type[int], N] local_variable[type[int], half] ForS...
Keyword[protected] Keyword[int] identifier[selectFarthest] operator[SEP] identifier[List] operator[<] identifier[Point2D_I32] operator[>] identifier[contour] operator[SEP] { Keyword[int] identifier[bestIndex] operator[=] operator[-] Other[1] operator[SEP] Keyword[int] identifier[bestDistance] operator[=] Other[0...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME_TO_TYPE_PTR: return isSetNameToTypePtr(); } throw new IllegalStateException(); }
class class_name[name] begin[{] method[isSet, return_type[type[boolean]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, po...
Keyword[public] Keyword[boolean] identifier[isSet] operator[SEP] identifier[_Fields] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] opera...
@SuppressWarnings("checkstyle:nestedifdepth") public boolean putHaltOnRoad(BusItineraryHalt halt, RoadSegment road) { if (contains(halt)) { final BusStop stop = halt.getBusStop(); if (stop != null) { final Point2d stopPosition = stop.getPosition2D(); if (stopPosition != null) { final int idx = ind...
class class_name[name] begin[{] method[putHaltOnRoad, return_type[type[boolean]], modifier[public], parameter[halt, road]] begin[{] if[call[.contains, parameter[member[.halt]]]] begin[{] local_variable[type[BusStop], stop] if[binary_operation[member[.stop], !...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[boolean] identifier[putHaltOnRoad] operator[SEP] identifier[BusItineraryHalt] identifier[halt] , identifier[RoadSegment] identifier[road] operator[SEP] { Keyword[if] operator[SEP] identifier[contains] ...
public void assertValidControllable() throws SIMPControllableNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkValidControllable"); if(referenceItemStream == null || !referenceItemStream.isInStore()) { SIMPControllableNotFoundExcept...
class class_name[name] begin[{] method[assertValidControllable, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[membe...
Keyword[public] Keyword[void] identifier[assertValidControllable] operator[SEP] operator[SEP] Keyword[throws] identifier[SIMPControllableNotFoundException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] ...
public Elements getElementsByClass(String className) { Validate.notEmpty(className); return Collector.collect(new Evaluator.Class(className), this); }
class class_name[name] begin[{] method[getElementsByClass, return_type[type[Elements]], modifier[public], parameter[className]] begin[{] call[Validate.notEmpty, parameter[member[.className]]] return[call[Collector.collect, parameter[ClassCreator(arguments=[MemberReference(member=classNa...
Keyword[public] identifier[Elements] identifier[getElementsByClass] operator[SEP] identifier[String] identifier[className] operator[SEP] { identifier[Validate] operator[SEP] identifier[notEmpty] operator[SEP] identifier[className] operator[SEP] operator[SEP] Keyword[return] identifier[Collector] operator[SEP] id...
public final ProtoParser.annotation_keyval_return annotation_keyval(Proto proto, Annotation annotation) throws RecognitionException { ProtoParser.annotation_keyval_return retval = new ProtoParser.annotation_keyval_return(); retval.start = input.LT(1); Object root_0 = null; Token fid=nu...
class class_name[name] begin[{] method[annotation_keyval, return_type[type[ProtoParser]], modifier[final public], parameter[proto, annotation]] begin[{] local_variable[type[ProtoParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[t...
Keyword[public] Keyword[final] identifier[ProtoParser] operator[SEP] identifier[annotation_keyval_return] identifier[annotation_keyval] operator[SEP] identifier[Proto] identifier[proto] , identifier[Annotation] identifier[annotation] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[Pr...
public void error(SourceLocator srcLctr, String msg, Exception e) throws TransformerException { error(srcLctr, msg, null, e); }
class class_name[name] begin[{] method[error, return_type[void], modifier[public], parameter[srcLctr, msg, e]] begin[{] call[.error, parameter[member[.srcLctr], member[.msg], literal[null], member[.e]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[error] operator[SEP] identifier[SourceLocator] identifier[srcLctr] , identifier[String] identifier[msg] , identifier[Exception] identifier[e] operator[SEP] Keyword[throws] identifier[TransformerException] { identifier[error] operator[SEP] identifier[srcLctr] , identifi...
public static Object buildObjectInstance(String classname, Object[] params) { Object rets = null; Class<?>[] paramTypes = new Class[params.length]; for (int x = 0; x < params.length; x++) { paramTypes[x] = params[x].getClass(); } try { Class<?> clazz = getClass(classname); rets = clazz.getConstruct...
class class_name[name] begin[{] method[buildObjectInstance, return_type[type[Object]], modifier[public static], parameter[classname, params]] begin[{] local_variable[type[Object], rets] local_variable[type[Class], paramTypes] ForStatement(body=BlockStatement(label=None, statements=[Stat...
Keyword[public] Keyword[static] identifier[Object] identifier[buildObjectInstance] operator[SEP] identifier[String] identifier[classname] , identifier[Object] operator[SEP] operator[SEP] identifier[params] operator[SEP] { identifier[Object] identifier[rets] operator[=] Other[null] operator[SEP] identifier[Class...
public boolean add(int i) { boolean wasSet = bitSet.get(i); if (!wasSet) { bitSet.set(i); return true; } return false; }
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[i]] begin[{] local_variable[type[boolean], wasSet] if[member[.wasSet]] begin[{] call[bitSet.set, parameter[member[.i]]] return[literal[true]] e...
Keyword[public] Keyword[boolean] identifier[add] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[boolean] identifier[wasSet] operator[=] identifier[bitSet] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[wasSe...
@POST @Path("/{name}" + ServerAPI.GET_CORPORATE_GROUPIDS) public Response addCorporateGroupIdPrefix(@Auth final DbCredential credential, @PathParam("name") final String organizationId, final String corporateGroupId){ LOG.info("Got an add a corporate groupId prefix request for organization " + organizati...
class class_name[name] begin[{] method[addCorporateGroupIdPrefix, return_type[type[Response]], modifier[public], parameter[credential, organizationId, corporateGroupId]] begin[{] call[LOG.info, parameter[binary_operation[binary_operation[literal["Got an add a corporate groupId prefix request fo...
annotation[@] identifier[POST] annotation[@] identifier[Path] operator[SEP] literal[String] operator[+] identifier[ServerAPI] operator[SEP] identifier[GET_CORPORATE_GROUPIDS] operator[SEP] Keyword[public] identifier[Response] identifier[addCorporateGroupIdPrefix] operator[SEP] annotation[@] identifier[Auth] Keyword[fin...
public Categories addCategories(String... categories) { Categories prop = new Categories(categories); addProperty(prop); return prop; }
class class_name[name] begin[{] method[addCategories, return_type[type[Categories]], modifier[public], parameter[categories]] begin[{] local_variable[type[Categories], prop] call[.addProperty, parameter[member[.prop]]] return[member[.prop]] end[}] END[}]
Keyword[public] identifier[Categories] identifier[addCategories] operator[SEP] identifier[String] operator[...] identifier[categories] operator[SEP] { identifier[Categories] identifier[prop] operator[=] Keyword[new] identifier[Categories] operator[SEP] identifier[categories] operator[SEP] operator[SEP] identifie...
@Override public EClass getIfcSlab() { if (ifcSlabEClass == null) { ifcSlabEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(602); } return ifcSlabEClass; }
class class_name[name] begin[{] method[getIfcSlab, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcSlabEClass], ==, literal[null]]] begin[{] assign[member[.ifcSlabEClass], Cast(expression=MethodInvocation(arguments=[Membe...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcSlab] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcSlabEClass] operator[==] Other[null] operator[SEP] { identifier[ifcSlabEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] i...
@Handler public void onStart(Start event) { synchronized (this) { if (runner != null && !runner.isInterrupted()) { return; } runner = new Thread(this, Components.simpleObjectName(this)); runner.start(); } }
class class_name[name] begin[{] method[onStart, return_type[void], modifier[public], parameter[event]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] if[binary_operation[binary_operation[member[.runner], !=, literal[null]], &&, call[runner.isInterrupted, parameter[]]]] begin[{] ...
annotation[@] identifier[Handler] Keyword[public] Keyword[void] identifier[onStart] operator[SEP] identifier[Start] identifier[event] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { Keyword[if] operator[SEP] identifier[runner] operator[!=] Other[null] operator[&&] ope...
protected Object actuallyEvaluate(String exp, Map<String, ? extends Object> contextMap, LaContainer container, String firstName, Object firstComponent) { final ScriptEngine engine = prepareScriptEngineManager().getEngineByName("javascript"); if (firstName != null) { engine.put(fi...
class class_name[name] begin[{] method[actuallyEvaluate, return_type[type[Object]], modifier[protected], parameter[exp, contextMap, container, firstName, firstComponent]] begin[{] local_variable[type[ScriptEngine], engine] if[binary_operation[member[.firstName], !=, literal[null]]] begi...
Keyword[protected] identifier[Object] identifier[actuallyEvaluate] operator[SEP] identifier[String] identifier[exp] , identifier[Map] operator[<] identifier[String] , operator[?] Keyword[extends] identifier[Object] operator[>] identifier[contextMap] , identifier[LaContainer] identifier[container] , identifier[Strin...
private Attachment attachNewVersion (long sheetId, long attachmentId, InputStream inputStream, String contentType, long contentLength, String attachmentName) throws SmartsheetException { return super.attachFile("sheets/"+ sheetId + "/attachments/"+ attachmentId +"/versions", inputStream, contentType...
class class_name[name] begin[{] method[attachNewVersion, return_type[type[Attachment]], modifier[private], parameter[sheetId, attachmentId, inputStream, contentType, contentLength, attachmentName]] begin[{] return[SuperMethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Binary...
Keyword[private] identifier[Attachment] identifier[attachNewVersion] operator[SEP] Keyword[long] identifier[sheetId] , Keyword[long] identifier[attachmentId] , identifier[InputStream] identifier[inputStream] , identifier[String] identifier[contentType] , Keyword[long] identifier[contentLength] , identifier[String]...
@Override public List<ILonePair> getConnectedLonePairsList(IAtom atom) { logger.debug("Getting lone pairs at atom: atom=" + atom, " lone pairs=" + super.getConnectedLonePairsCount(atom)); return super.getConnectedLonePairsList(atom); }
class class_name[name] begin[{] method[getConnectedLonePairsList, return_type[type[List]], modifier[public], parameter[atom]] begin[{] call[logger.debug, parameter[binary_operation[literal["Getting lone pairs at atom: atom="], +, member[.atom]], binary_operation[literal[" lone pairs="], +, Supe...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[ILonePair] operator[>] identifier[getConnectedLonePairsList] operator[SEP] identifier[IAtom] identifier[atom] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] ide...
public List<Integer> until(int end) { List<Integer> list = new ArrayList<>(); for (int i = this.n; i < end; ++i) { list.add(i); } return list; }
class class_name[name] begin[{] method[until, return_type[type[List]], modifier[public], parameter[end]] begin[{] local_variable[type[List], list] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=i, postfi...
Keyword[public] identifier[List] operator[<] identifier[Integer] operator[>] identifier[until] operator[SEP] Keyword[int] identifier[end] operator[SEP] { identifier[List] operator[<] identifier[Integer] operator[>] identifier[list] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[S...
public static final String print(String start, String delim, String quotStart, String quotEnd, String end, Object... array) { try { StringBuilder out = new StringBuilder(); print(out, start, delim, quotStart, quotEnd, end, array); return out.toString(); ...
class class_name[name] begin[{] method[print, return_type[type[String]], modifier[final public static], parameter[start, delim, quotStart, quotEnd, end, array]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(...
Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[print] operator[SEP] identifier[String] identifier[start] , identifier[String] identifier[delim] , identifier[String] identifier[quotStart] , identifier[String] identifier[quotEnd] , identifier[String] identifier[end] , identifier[Object]...
@Override public Object setE(int key, Object value) throws ExpressionException { if (offset + key > arr.length) enlargeCapacity(key); if (key > size) size = key; arr[(offset + key) - 1] = checkValue(value); return value; }
class class_name[name] begin[{] method[setE, return_type[type[Object]], modifier[public], parameter[key, value]] begin[{] if[binary_operation[binary_operation[member[.offset], +, member[.key]], >, member[arr.length]]] begin[{] call[.enlargeCapacity, parameter[member[.key]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[setE] operator[SEP] Keyword[int] identifier[key] , identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[ExpressionException] { Keyword[if] operator[SEP] identifier[offset] operator[+] identifier[key] operat...
public static StreamSpecifier stream(StreamSpecifierType type, int index) { checkNotNull(type); return new StreamSpecifier(type.toString() + ":" + index); }
class class_name[name] begin[{] method[stream, return_type[type[StreamSpecifier]], modifier[public static], parameter[type, index]] begin[{] call[.checkNotNull, parameter[member[.type]]] return[ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(ar...
Keyword[public] Keyword[static] identifier[StreamSpecifier] identifier[stream] operator[SEP] identifier[StreamSpecifierType] identifier[type] , Keyword[int] identifier[index] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[type] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifi...
public static PascalTemplate mergeCliqueTemplates(DateTemplate dt, String location, InfoTemplate wi) { PascalTemplate pt = new PascalTemplate(); pt.setValue("workshopnotificationofacceptancedate", dt.noadate); pt.setValue("workshopcamerareadycopydate", dt.crcdate); pt.setValue("workshopdate", dt.wor...
class class_name[name] begin[{] method[mergeCliqueTemplates, return_type[type[PascalTemplate]], modifier[public static], parameter[dt, location, wi]] begin[{] local_variable[type[PascalTemplate], pt] call[pt.setValue, parameter[literal["workshopnotificationofacceptancedate"], member[dt....
Keyword[public] Keyword[static] identifier[PascalTemplate] identifier[mergeCliqueTemplates] operator[SEP] identifier[DateTemplate] identifier[dt] , identifier[String] identifier[location] , identifier[InfoTemplate] identifier[wi] operator[SEP] { identifier[PascalTemplate] identifier[pt] operator[=] Keyword[new...
private final void openRAF() throws LockFile.UnexpectedFileNotFoundException, LockFile.FileSecurityException { try { raf = new RandomAccessFile(file, "rw"); } catch (SecurityException ex) { throw new FileSecurityException(this, "openRAF", ex); } catch (Fil...
class class_name[name] begin[{] method[openRAF, return_type[void], modifier[final private], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=raf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cla...
Keyword[private] Keyword[final] Keyword[void] identifier[openRAF] operator[SEP] operator[SEP] Keyword[throws] identifier[LockFile] operator[SEP] identifier[UnexpectedFileNotFoundException] , identifier[LockFile] operator[SEP] identifier[FileSecurityException] { Keyword[try] { identifier[raf] operator...
private void report(final int error) { sendErrorBroadcast(error); if (mDisableNotification) return; // create or update notification: final String deviceAddress = mDeviceAddress; final String deviceName = mDeviceName != null ? mDeviceName : getString(R.string.dfu_unknown_name); final NotificationCompa...
class class_name[name] begin[{] method[report, return_type[void], modifier[private], parameter[error]] begin[{] call[.sendErrorBroadcast, parameter[member[.error]]] if[member[.mDisableNotification]] begin[{] return[None] else begin[{] None end[}] local_va...
Keyword[private] Keyword[void] identifier[report] operator[SEP] Keyword[final] Keyword[int] identifier[error] operator[SEP] { identifier[sendErrorBroadcast] operator[SEP] identifier[error] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mDisableNotification] operator[SEP] Keyword[return] operato...
private void calculateMaxViewport() { tempMaximumViewport.set(0, MAX_WIDTH_HEIGHT, MAX_WIDTH_HEIGHT, 0); maxSum = 0.0f; for (SliceValue sliceValue : dataProvider.getPieChartData().getValues()) { maxSum += Math.abs(sliceValue.getValue()); } }
class class_name[name] begin[{] method[calculateMaxViewport, return_type[void], modifier[private], parameter[]] begin[{] call[tempMaximumViewport.set, parameter[literal[0], member[.MAX_WIDTH_HEIGHT], member[.MAX_WIDTH_HEIGHT], literal[0]]] assign[member[.maxSum], literal[0.0f]] ...
Keyword[private] Keyword[void] identifier[calculateMaxViewport] operator[SEP] operator[SEP] { identifier[tempMaximumViewport] operator[SEP] identifier[set] operator[SEP] Other[0] , identifier[MAX_WIDTH_HEIGHT] , identifier[MAX_WIDTH_HEIGHT] , Other[0] operator[SEP] operator[SEP] identifier[maxSum] operator[=]...
private boolean isSchemaLocationAttributeForKnownNamespaceUri(final Attr attribute) { final Element parent = attribute.getOwnerElement(); // <xs:import namespace="http://yet/another/namespace" schemaLocation="schema1.xsd"/> return XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(parent.getNamesp...
class class_name[name] begin[{] method[isSchemaLocationAttributeForKnownNamespaceUri, return_type[type[boolean]], modifier[private], parameter[attribute]] begin[{] local_variable[type[Element], parent] return[binary_operation[binary_operation[binary_operation[call[XMLConstants.W3C_XML_SCHEMA_NS...
Keyword[private] Keyword[boolean] identifier[isSchemaLocationAttributeForKnownNamespaceUri] operator[SEP] Keyword[final] identifier[Attr] identifier[attribute] operator[SEP] { Keyword[final] identifier[Element] identifier[parent] operator[=] identifier[attribute] operator[SEP] identifier[getOwnerElement] operato...
void kickOffTimer() throws UnavailableException { final String methodName = "kickOffTimer"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_timerLock) { // Another ti...
class class_name[name] begin[{] method[kickOffTimer, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[String], methodName] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[TRACE.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[void] identifier[kickOffTimer] operator[SEP] operator[SEP] Keyword[throws] identifier[UnavailableException] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnable...
@Override public List<CPDefinitionLink> findByCPD_T(long CPDefinitionId, String type, int start, int end, OrderByComparator<CPDefinitionLink> orderByComparator, boolean retrieveFromCache) { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; if ((start == QueryUtil.ALL_P...
class class_name[name] begin[{] method[findByCPD_T, return_type[type[List]], modifier[public], parameter[CPDefinitionId, type, start, end, orderByComparator, retrieveFromCache]] begin[{] local_variable[type[boolean], pagination] local_variable[type[FinderPath], finderPath] local_variabl...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPDefinitionLink] operator[>] identifier[findByCPD_T] operator[SEP] Keyword[long] identifier[CPDefinitionId] , identifier[String] identifier[type] , Keyword[int] identifier[start] , Keyword[int] identifier[end] , identifier[O...
public static String printYearValue(BigInteger value) { if (value == null) throw new IllegalArgumentException("Can't print empty year value!"); if (value.compareTo(BigInteger.valueOf(1700L)) < 0) throw new IllegalArgumentException("Can't print year value '" + value + "' because i...
class class_name[name] begin[{] method[printYearValue, return_type[type[String]], modifier[public static], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators...
Keyword[public] Keyword[static] identifier[String] identifier[printYearValue] operator[SEP] identifier[BigInteger] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] li...
public SendGridBuilder password(String... password) { for (String p : password) { if (p != null) { passwords.add(p); } } return this; }
class class_name[name] begin[{] method[password, return_type[type[SendGridBuilder]], modifier[public], parameter[password]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[...
Keyword[public] identifier[SendGridBuilder] identifier[password] operator[SEP] identifier[String] operator[...] identifier[password] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[p] operator[:] identifier[password] operator[SEP] { Keyword[if] operator[SEP] identifier[p] ope...
public void run() throws IOException, ClassNotFoundException, Util.Exit { int i = 0; if (outFile != null) { /* Everything goes to one big file... */ ByteArrayOutputStream bout = new ByteArrayOutputStream(8192); writeFileTop(bout); /* only once */ for (Typ...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[int], i] if[binary_operation[member[.outFile], !=, literal[null]]] begin[{] local_variable[type[ByteArrayOutputStream], bout] ca...
Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] , identifier[Util] operator[SEP] identifier[Exit] { Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[outFile] ...
@UiThread @Override public void onBindParentViewHolder(@NonNull HorizontalParentViewHolder parentViewHolder, int parentPosition, @NonNull HorizontalParent horizontalParent) { parentViewHolder.bind(horizontalParent.getParentNumber(), horizontalParent.getParentText()...
class class_name[name] begin[{] method[onBindParentViewHolder, return_type[void], modifier[public], parameter[parentViewHolder, parentPosition, horizontalParent]] begin[{] call[parentViewHolder.bind, parameter[call[horizontalParent.getParentNumber, parameter[]], call[horizontalParent.getParentT...
annotation[@] identifier[UiThread] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onBindParentViewHolder] operator[SEP] annotation[@] identifier[NonNull] identifier[HorizontalParentViewHolder] identifier[parentViewHolder] , Keyword[int] identifier[parentPosition] , annotation[@] identifie...
public void parseSignaturesFile(InputStream in, String name) throws IOException,ParseException { forbiddenSignatures.parseSignaturesStream(in, name); }
class class_name[name] begin[{] method[parseSignaturesFile, return_type[void], modifier[public], parameter[in, name]] begin[{] call[forbiddenSignatures.parseSignaturesStream, parameter[member[.in], member[.name]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[parseSignaturesFile] operator[SEP] identifier[InputStream] identifier[in] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ParseException] { identifier[forbiddenSignatures] operator[SEP] identifier[parseSignaturesS...
public void setRobotApplications(java.util.Collection<RobotApplicationConfig> robotApplications) { if (robotApplications == null) { this.robotApplications = null; return; } this.robotApplications = new java.util.ArrayList<RobotApplicationConfig>(robotApplications); }
class class_name[name] begin[{] method[setRobotApplications, return_type[void], modifier[public], parameter[robotApplications]] begin[{] if[binary_operation[member[.robotApplications], ==, literal[null]]] begin[{] assign[THIS[member[None.robotApplications]], literal[null...
Keyword[public] Keyword[void] identifier[setRobotApplications] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[RobotApplicationConfig] operator[>] identifier[robotApplications] operator[SEP] { Keyword[if] operator[SEP] identifier[robotAppl...
private void parseThrowIOEForInboundConnections(Map<?, ?> props) { //PI57542 Object value = props.get(HttpConfigConstants.PROPNAME_THROW_IOE_FOR_INBOUND_CONNECTIONS); if (null != value) { this.throwIOEForInboundConnections = convertBoolean(value); if ((TraceComponent.isAn...
class class_name[name] begin[{] method[parseThrowIOEForInboundConnections, return_type[void], modifier[private], parameter[props]] begin[{] local_variable[type[Object], value] if[binary_operation[literal[null], !=, member[.value]]] begin[{] assign[THIS[member[Non...
Keyword[private] Keyword[void] identifier[parseThrowIOEForInboundConnections] operator[SEP] identifier[Map] operator[<] operator[?] , operator[?] operator[>] identifier[props] operator[SEP] { identifier[Object] identifier[value] operator[=] identifier[props] operator[SEP] identifier[get] operator[SEP] identifie...
public static void writeCSVColumns(XYChart chart, String path2Dir) { for (XYSeries xySeries : chart.getSeriesMap().values()) { writeCSVColumns(xySeries, path2Dir); } }
class class_name[name] begin[{] method[writeCSVColumns, return_type[void], modifier[public static], parameter[chart, path2Dir]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=xySeries, postfix_operators...
Keyword[public] Keyword[static] Keyword[void] identifier[writeCSVColumns] operator[SEP] identifier[XYChart] identifier[chart] , identifier[String] identifier[path2Dir] operator[SEP] { Keyword[for] operator[SEP] identifier[XYSeries] identifier[xySeries] operator[:] identifier[chart] operator[SEP] identifier[get...
@Scope(DocScope.IO) public <T> T read(final Class<T> projectionInterface) throws IOException { Class<?> callerClass = null; if (IOHelper.isResourceProtocol(url)) { callerClass = ReflectionHelper.getDirectCallerClass(); } Document document = IOHelper.getDocumentFromURL(pro...
class class_name[name] begin[{] method[read, return_type[type[T]], modifier[public], parameter[projectionInterface]] begin[{] local_variable[type[Class], callerClass] if[call[IOHelper.isResourceProtocol, parameter[member[.url]]]] begin[{] assign[member[.callerCla...
annotation[@] identifier[Scope] operator[SEP] identifier[DocScope] operator[SEP] identifier[IO] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[read] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[projectionInterface] operator...
public void dumpTo(AreaTree tree, PrintWriter out) { if (produceHeader) out.println("<?xml version=\"1.0\"?>"); out.println("<areaTree base=\"" + HTMLEntities(tree.getRoot().getPage().getSourceURL().toString()) + "\">"); recursiveDump(tree.getRoot(), 1, out); out.println(...
class class_name[name] begin[{] method[dumpTo, return_type[void], modifier[public], parameter[tree, out]] begin[{] if[member[.produceHeader]] begin[{] call[out.println, parameter[literal["<?xml version=\"1.0\"?>"]]] else begin[{] None end[}] call[out....
Keyword[public] Keyword[void] identifier[dumpTo] operator[SEP] identifier[AreaTree] identifier[tree] , identifier[PrintWriter] identifier[out] operator[SEP] { Keyword[if] operator[SEP] identifier[produceHeader] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operato...
public String getRootCauseMessage() { String rcmessage = null; if (getRootCause() != null) { if (getRootCause().getCause() != null) { rcmessage = getRootCause().getCause().getMessage(); } rcmessage = rcmessage == null ? getRootCause().getMessage() : rc...
class class_name[name] begin[{] method[getRootCauseMessage, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], rcmessage] if[binary_operation[call[.getRootCause, parameter[]], !=, literal[null]]] begin[{] if[binary_ope...
Keyword[public] identifier[String] identifier[getRootCauseMessage] operator[SEP] operator[SEP] { identifier[String] identifier[rcmessage] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[getRootCause] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keywor...
public final void makeAccentryMatchingReversed( final Map<String, Object> pReqVars, final String pEntryId, final BankStatementLine pBsl, final DateFormat pDateFormat, final String pLangDef) throws Exception { EBankEntryResultType resultRecordType = EBankEntryResultType.ACC_ENTRY; EBankEntryRes...
class class_name[name] begin[{] method[makeAccentryMatchingReversed, return_type[void], modifier[final public], parameter[pReqVars, pEntryId, pBsl, pDateFormat, pLangDef]] begin[{] local_variable[type[EBankEntryResultType], resultRecordType] local_variable[type[EBankEntryResultAction], resultAc...
Keyword[public] Keyword[final] Keyword[void] identifier[makeAccentryMatchingReversed] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pReqVars] , Keyword[final] identifier[String] identifier[pEntryId] , Keyword[final] identifier[BankStatementLin...
@Override public void sessionCreated(NextFilter nextFilter, IoSession session) throws Exception { LOGGER.debug("Session created: " + session); ProxyIoSession proxyIoSession = (ProxyIoSession) session .getAttribute(ProxyIoSession.PROXY_SESSION); LOGGER.debug(" get...
class class_name[name] begin[{] method[sessionCreated, return_type[void], modifier[public], parameter[nextFilter, session]] begin[{] call[LOGGER.debug, parameter[binary_operation[literal["Session created: "], +, member[.session]]]] local_variable[type[ProxyIoSession], proxyIoSession] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[sessionCreated] operator[SEP] identifier[NextFilter] identifier[nextFilter] , identifier[IoSession] identifier[session] operator[SEP] Keyword[throws] identifier[Exception] { identifier[LOGGER] operator[SEP] identifier[debug] operator[SE...
public ActiveMqQueueFactory<T, ID, DATA> setDefaultConnectionFactory( ActiveMQConnectionFactory connectionFactory) { return setDefaultConnectionFactory(connectionFactory, false); }
class class_name[name] begin[{] method[setDefaultConnectionFactory, return_type[type[ActiveMqQueueFactory]], modifier[public], parameter[connectionFactory]] begin[{] return[call[.setDefaultConnectionFactory, parameter[member[.connectionFactory], literal[false]]]] end[}] END[}]
Keyword[public] identifier[ActiveMqQueueFactory] operator[<] identifier[T] , identifier[ID] , identifier[DATA] operator[>] identifier[setDefaultConnectionFactory] operator[SEP] identifier[ActiveMQConnectionFactory] identifier[connectionFactory] operator[SEP] { Keyword[return] identifier[setDefaultConnectionFac...
public static void setupBaggingClassifiers(IteratedSingleClassifierEnhancer bagging) throws Exception { bagging.m_Classifiers = Classifier.makeCopies(bagging.m_Classifier, bagging.m_NumIterations); }
class class_name[name] begin[{] method[setupBaggingClassifiers, return_type[void], modifier[public static], parameter[bagging]] begin[{] assign[member[bagging.m_Classifiers], call[Classifier.makeCopies, parameter[member[bagging.m_Classifier], member[bagging.m_NumIterations]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setupBaggingClassifiers] operator[SEP] identifier[IteratedSingleClassifierEnhancer] identifier[bagging] operator[SEP] Keyword[throws] identifier[Exception] { identifier[bagging] operator[SEP] identifier[m_Classifiers] operator[=] identifier[Classifier] ope...
public void text(String expectedText) { String text = checkText(expectedText, 0, 0); assertNotNull(NO_ELEMENT_FOUND, text); assertEquals("Text Mismatch", expectedText, text); }
class class_name[name] begin[{] method[text, return_type[void], modifier[public], parameter[expectedText]] begin[{] local_variable[type[String], text] call[.assertNotNull, parameter[member[.NO_ELEMENT_FOUND], member[.text]]] call[.assertEquals, parameter[literal["Text Mi...
Keyword[public] Keyword[void] identifier[text] operator[SEP] identifier[String] identifier[expectedText] operator[SEP] { identifier[String] identifier[text] operator[=] identifier[checkText] operator[SEP] identifier[expectedText] , Other[0] , Other[0] operator[SEP] operator[SEP] identifier[assertNotNull] opera...
public Date getDate() { try { date = dateFormatter.parse(getText()); } catch (ParseException e) { date = null; } return date; }
class class_name[name] begin[{] method[getDate, return_type[type[Date]], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=date, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Met...
Keyword[public] identifier[Date] identifier[getDate] operator[SEP] operator[SEP] { Keyword[try] { identifier[date] operator[=] identifier[dateFormatter] operator[SEP] identifier[parse] operator[SEP] identifier[getText] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[cat...
public static void sendMail(String to, String title, String content) throws Exception { if (!Checker.isEmail(to)) { throw new Exception("this email address is not valid. please check it again"); } // 获取系统属性 Properties properties = System.getProperties(); // 设置邮件服务器 ...
class class_name[name] begin[{] method[sendMail, return_type[void], modifier[public static], parameter[to, title, content]] begin[{] if[call[Checker.isEmail, parameter[member[.to]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] Keyword[void] identifier[sendMail] operator[SEP] identifier[String] identifier[to] , identifier[String] identifier[title] , identifier[String] identifier[content] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] operator[!] identifier[Checker] oper...
@Override public <T> Handler<AsyncResult<T>> toHandler(Resolver<T> resolver) { return result -> { if (result.succeeded()) { resolver.resolve(result.result()); } else { resolver.reject(result.cause()); } }; }
class class_name[name] begin[{] method[toHandler, return_type[type[Handler]], modifier[public], parameter[resolver]] begin[{] return[LambdaExpression(body=[IfStatement(condition=MethodInvocation(arguments=[], member=succeeded, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], t...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[Handler] operator[<] identifier[AsyncResult] operator[<] identifier[T] operator[>] operator[>] identifier[toHandler] operator[SEP] identifier[Resolver] operator[<] identifier[T] operator[>] identifier[resolver] operator[...
private void publishRelations(JsonSimple response, String oid) throws TransactionException { log.debug("Publishing Children of '{}'", oid); JsonSimple data = getDataFromStorage(oid); if (data == null) { log.error("Error accessing item data! '{}'", oid); emailObjectLink(response, oid, "An error occured...
class class_name[name] begin[{] method[publishRelations, return_type[void], modifier[private], parameter[response, oid]] begin[{] call[log.debug, parameter[literal["Publishing Children of '{}'"], member[.oid]]] local_variable[type[JsonSimple], data] if[binary_operation[m...
Keyword[private] Keyword[void] identifier[publishRelations] operator[SEP] identifier[JsonSimple] identifier[response] , identifier[String] identifier[oid] operator[SEP] Keyword[throws] identifier[TransactionException] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[...
@Nullable private String _parseQuotedToken (final char cTerminator) { char ch; m_nIndex1 = m_nPos; m_nIndex2 = m_nPos; boolean bQuoted = false; boolean bCharEscaped = false; while (_hasChar ()) { ch = m_aChars[m_nPos]; if (!bQuoted && cTerminator == ch) break; ...
class class_name[name] begin[{] method[_parseQuotedToken, return_type[type[String]], modifier[private], parameter[cTerminator]] begin[{] local_variable[type[char], ch] assign[member[.m_nIndex1], member[.m_nPos]] assign[member[.m_nIndex2], member[.m_nPos]] local_v...
annotation[@] identifier[Nullable] Keyword[private] identifier[String] identifier[_parseQuotedToken] operator[SEP] Keyword[final] Keyword[char] identifier[cTerminator] operator[SEP] { Keyword[char] identifier[ch] operator[SEP] identifier[m_nIndex1] operator[=] identifier[m_nPos] operator[SEP] identifier[m_nIndex...
public void setRedirectViewProvider(final Function<String, RedirectView> redirectViewProvider) { Validate.notNull(redirectViewProvider, "RedirectView provider cannot be null"); this.redirectViewProvider = redirectViewProvider; }
class class_name[name] begin[{] method[setRedirectViewProvider, return_type[void], modifier[public], parameter[redirectViewProvider]] begin[{] call[Validate.notNull, parameter[member[.redirectViewProvider], literal["RedirectView provider cannot be null"]]] assign[THIS[member[Non...
Keyword[public] Keyword[void] identifier[setRedirectViewProvider] operator[SEP] Keyword[final] identifier[Function] operator[<] identifier[String] , identifier[RedirectView] operator[>] identifier[redirectViewProvider] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifi...
private static boolean hasTz( String pattern ) { boolean inQuote = false; for ( int i = 0; i < pattern.length(); i++ ) { char ch = pattern.charAt( i ); // If inside quote, except two quote connected, just copy or exit. if ( inQuote ) { if ( ch == '\'...
class class_name[name] begin[{] method[hasTz, return_type[type[boolean]], modifier[private static], parameter[pattern]] begin[{] local_variable[type[boolean], inQuote] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarat...
Keyword[private] Keyword[static] Keyword[boolean] identifier[hasTz] operator[SEP] identifier[String] identifier[pattern] operator[SEP] { Keyword[boolean] identifier[inQuote] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identif...
private double selectDivisor( double v[] , double param[] ) { double maxValue = 0; int maxIndex = 0; for( int i = 0; i < v.length; i++ ) { if( Math.abs(v[i]) > maxValue ) { maxValue = Math.abs(v[i]); maxIndex = i; } } double divisor = v[maxIndex]; int index = 0; for( int i = 0; i < v.leng...
class class_name[name] begin[{] method[selectDivisor, return_type[type[double]], modifier[private], parameter[v, param]] begin[{] local_variable[type[double], maxValue] local_variable[type[int], maxIndex] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Bin...
Keyword[private] Keyword[double] identifier[selectDivisor] operator[SEP] Keyword[double] identifier[v] operator[SEP] operator[SEP] , Keyword[double] identifier[param] operator[SEP] operator[SEP] operator[SEP] { Keyword[double] identifier[maxValue] operator[=] Other[0] operator[SEP] Keyword[int] identifier[maxIn...
@Override public synchronized void mark(final int limit) { try { in.mark(limit); } catch (IOException ioe) { throw new RuntimeException(ioe.getMessage()); } }
class class_name[name] begin[{] method[mark, return_type[void], modifier[synchronized public], parameter[limit]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=limit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], m...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[mark] operator[SEP] Keyword[final] Keyword[int] identifier[limit] operator[SEP] { Keyword[try] { identifier[in] operator[SEP] identifier[mark] operator[SEP] identifier[limit] operator[SEP] operator[SEP] ...
protected void computeTime() { if (!isLenient()) { validateFields(); } // Compute the Julian day int julianDay = computeJulianDay(); long millis = julianDayToMillis(julianDay); int millisInDay; // We only use MILLISECONDS_IN_DAY if it has been set ...
class class_name[name] begin[{] method[computeTime, return_type[void], modifier[protected], parameter[]] begin[{] if[call[.isLenient, parameter[]]] begin[{] call[.validateFields, parameter[]] else begin[{] None end[}] local_variable[type[int], jul...
Keyword[protected] Keyword[void] identifier[computeTime] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isLenient] operator[SEP] operator[SEP] operator[SEP] { identifier[validateFields] operator[SEP] operator[SEP] operator[SEP] } Keyword[int] identifier[ju...
public static <T, R, E extends Exception> Nullable<R> ifOrEmpty(final boolean b, final T init, final Try.Function<? super T, R, E> func) throws E { if (b) { return Nullable.of(func.apply(init)); } else { return Nullable.empty(); } }
class class_name[name] begin[{] method[ifOrEmpty, return_type[type[Nullable]], modifier[public static], parameter[b, init, func]] begin[{] if[member[.b]] begin[{] return[call[Nullable.of, parameter[call[func.apply, parameter[member[.init]]]]]] else begin[{] retur...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[R] , identifier[E] Keyword[extends] identifier[Exception] operator[>] identifier[Nullable] operator[<] identifier[R] operator[>] identifier[ifOrEmpty] operator[SEP] Keyword[final] Keyword[boolean] identifier[b] , Keyword[final] identifier[T] iden...
public DataLoader<K, V> prime(K key, V value) { Object cacheKey = getCacheKey(key); synchronized (this) { if (!futureCache.containsKey(cacheKey)) { futureCache.set(cacheKey, CompletableFuture.completedFuture(value)); } } return this; }
class class_name[name] begin[{] method[prime, return_type[type[DataLoader]], modifier[public], parameter[key, value]] begin[{] local_variable[type[Object], cacheKey] SYNCHRONIZED[THIS[]] BEGIN[{] if[call[futureCache.containsKey, parameter[member[.cacheKey]]]] beg...
Keyword[public] identifier[DataLoader] operator[<] identifier[K] , identifier[V] operator[>] identifier[prime] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] { identifier[Object] identifier[cacheKey] operator[=] identifier[getCacheKey] operator[SEP] identifier[key] ...
private boolean removeListenersOfCachedRequestToLaunch(final SpiceRequest<?> request) { synchronized (mapRequestToLaunchToRequestListener) { for (final CachedSpiceRequest<?> cachedSpiceRequest : mapRequestToLaunchToRequestListener.keySet()) { if (match(cachedSpiceRequest, request)) {...
class class_name[name] begin[{] method[removeListenersOfCachedRequestToLaunch, return_type[type[boolean]], modifier[private], parameter[request]] begin[{] SYNCHRONIZED[member[.mapRequestToLaunchToRequestListener]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[IfS...
Keyword[private] Keyword[boolean] identifier[removeListenersOfCachedRequestToLaunch] operator[SEP] Keyword[final] identifier[SpiceRequest] operator[<] operator[?] operator[>] identifier[request] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[mapRequestToLaunchToRequestListener] operator[SEP] { ...
public String getGroupName(int index, int length, int choice) { if (choice != UCharacterNameChoice.UNICODE_CHAR_NAME && choice != UCharacterNameChoice.EXTENDED_CHAR_NAME ) { if (';' >= m_tokentable_.length || m_tokentable_[';'] == 0xFFFF) { /* ...
class class_name[name] begin[{] method[getGroupName, return_type[type[String]], modifier[public], parameter[index, length, choice]] begin[{] if[binary_operation[binary_operation[member[.choice], !=, member[UCharacterNameChoice.UNICODE_CHAR_NAME]], &&, binary_operation[member[.choice], !=, membe...
Keyword[public] identifier[String] identifier[getGroupName] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[length] , Keyword[int] identifier[choice] operator[SEP] { Keyword[if] operator[SEP] identifier[choice] operator[!=] identifier[UCharacterNameChoice] operator[SEP] identifier[UNICOD...
public I_CmsDocumentFactory getDocumentFactory(CmsResource resource) { // first get the MIME type of the resource String mimeType = OpenCms.getResourceManager().getMimeType(resource.getRootPath(), null, "unknown"); String resourceType = null; try { resourceType = OpenCms.get...
class class_name[name] begin[{] method[getDocumentFactory, return_type[type[I_CmsDocumentFactory]], modifier[public], parameter[resource]] begin[{] local_variable[type[String], mimeType] local_variable[type[String], resourceType] TryStatement(block=[StatementExpression(expression=Assign...
Keyword[public] identifier[I_CmsDocumentFactory] identifier[getDocumentFactory] operator[SEP] identifier[CmsResource] identifier[resource] operator[SEP] { identifier[String] identifier[mimeType] operator[=] identifier[OpenCms] operator[SEP] identifier[getResourceManager] operator[SEP] operator[SEP] operator[SEP]...
public static <T> ObjIterator<T> limit(final Iterator<T> iter, final long offset, final long count) { N.checkArgNotNegative(count, "offset"); N.checkArgNotNegative(count, "count"); if (iter == null) { return ObjIterator.empty(); } return new ObjIterator<T>()...
class class_name[name] begin[{] method[limit, return_type[type[ObjIterator]], modifier[public static], parameter[iter, offset, count]] begin[{] call[N.checkArgNotNegative, parameter[member[.count], literal["offset"]]] call[N.checkArgNotNegative, parameter[member[.count], literal...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ObjIterator] operator[<] identifier[T] operator[>] identifier[limit] operator[SEP] Keyword[final] identifier[Iterator] operator[<] identifier[T] operator[>] identifier[iter] , Keyword[final] Keyword[long] identifier[offset] , Keyword[fin...
public static <A> Tuple7<A, A, A, A, A, A, A> fill(A a) { return tuple(a, a, a, a, a, a, a); }
class class_name[name] begin[{] method[fill, return_type[type[Tuple7]], modifier[public static], parameter[a]] begin[{] return[call[.tuple, parameter[member[.a], member[.a], member[.a], member[.a], member[.a], member[.a], member[.a]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[A] operator[>] identifier[Tuple7] operator[<] identifier[A] , identifier[A] , identifier[A] , identifier[A] , identifier[A] , identifier[A] , identifier[A] operator[>] identifier[fill] operator[SEP] identifier[A] identifier[a] operator[SEP] { Keyword[r...
public static RedisClient create(String uri) { LettuceAssert.notEmpty(uri, "URI must not be empty"); return new RedisClient(null, RedisURI.create(uri)); }
class class_name[name] begin[{] method[create, return_type[type[RedisClient]], modifier[public static], parameter[uri]] begin[{] call[LettuceAssert.notEmpty, parameter[member[.uri], literal["URI must not be empty"]]] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] identifier[RedisClient] identifier[create] operator[SEP] identifier[String] identifier[uri] operator[SEP] { identifier[LettuceAssert] operator[SEP] identifier[notEmpty] operator[SEP] identifier[uri] , literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identi...
private Span startTracing(String spanName) { if (!environment.operationTracingEnabled()) { return null; } Scope scope = environment.tracer() .buildSpan(spanName) .startActive(false); Span parent = scope.span(); scope.close(); return par...
class class_name[name] begin[{] method[startTracing, return_type[type[Span]], modifier[private], parameter[spanName]] begin[{] if[call[environment.operationTracingEnabled, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[t...
Keyword[private] identifier[Span] identifier[startTracing] operator[SEP] identifier[String] identifier[spanName] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[environment] operator[SEP] identifier[operationTracingEnabled] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] O...