code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void check(String locator) { getDispatcher().beforeCheck(this, locator); this.check(); validatePresenceOfAlert(); WebDriverWaitUtils.waitUntilElementIsPresent(locator); getDispatcher().afterUncheck(this, locator); }
class class_name[name] begin[{] method[check, return_type[void], modifier[public], parameter[locator]] begin[{] call[.getDispatcher, parameter[]] THIS[call[None.check, parameter[]]] call[.validatePresenceOfAlert, parameter[]] call[WebDriverWaitUti...
Keyword[public] Keyword[void] identifier[check] operator[SEP] identifier[String] identifier[locator] operator[SEP] { identifier[getDispatcher] operator[SEP] operator[SEP] operator[SEP] identifier[beforeCheck] operator[SEP] Keyword[this] , identifier[locator] operator[SEP] operator[SEP] Keyword[this] operator[SE...
public void addFlush() { // There is no need to process all entries if there was already a flush before and no new messages // where added in the meantime. // // See https://github.com/netty/netty/issues/2577 Entry entry = unflushedEntry; if (entry != null) { ...
class class_name[name] begin[{] method[addFlush, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Entry], entry] if[binary_operation[member[.entry], !=, literal[null]]] begin[{] if[binary_operation[member[.flushedEntry], ==, literal[...
Keyword[public] Keyword[void] identifier[addFlush] operator[SEP] operator[SEP] { identifier[Entry] identifier[entry] operator[=] identifier[unflushedEntry] operator[SEP] Keyword[if] operator[SEP] identifier[entry] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[flushedEnt...
@Override public GetSMSAttributesResult getSMSAttributes(GetSMSAttributesRequest request) { request = beforeClientExecution(request); return executeGetSMSAttributes(request); }
class class_name[name] begin[{] method[getSMSAttributes, return_type[type[GetSMSAttributesResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetSMSAttributes, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[GetSMSAttributesResult] identifier[getSMSAttributes] operator[SEP] identifier[GetSMSAttributesRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
@Override public Long rpush(final byte[] key, final byte[]... strings) { checkIsInMultiOrPipeline(); client.rpush(key, strings); return client.getIntegerReply(); }
class class_name[name] begin[{] method[rpush, return_type[type[Long]], modifier[public], parameter[key, strings]] begin[{] call[.checkIsInMultiOrPipeline, parameter[]] call[client.rpush, parameter[member[.key], member[.strings]]] return[call[client.getIntegerReply, param...
annotation[@] identifier[Override] Keyword[public] identifier[Long] identifier[rpush] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] operator[...] identifier[strings] operator[SEP] { identifier[checkIsInMultiOrPip...
public static void writeField(final Field field, final Object target, final Object value) throws IllegalAccessException { writeField(field, target, value, false); }
class class_name[name] begin[{] method[writeField, return_type[void], modifier[public static], parameter[field, target, value]] begin[{] call[.writeField, parameter[member[.field], member[.target], member[.value], literal[false]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[writeField] operator[SEP] Keyword[final] identifier[Field] identifier[field] , Keyword[final] identifier[Object] identifier[target] , Keyword[final] identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[IllegalAccessException] { i...
public static String guessMimeTypeFromExtension(String extension) { if (extension == null || extension.isEmpty()) { return null; } return extensionToMimeTypeMap.get(extension); }
class class_name[name] begin[{] method[guessMimeTypeFromExtension, return_type[type[String]], modifier[public static], parameter[extension]] begin[{] if[binary_operation[binary_operation[member[.extension], ==, literal[null]], ||, call[extension.isEmpty, parameter[]]]] begin[{] retu...
Keyword[public] Keyword[static] identifier[String] identifier[guessMimeTypeFromExtension] operator[SEP] identifier[String] identifier[extension] operator[SEP] { Keyword[if] operator[SEP] identifier[extension] operator[==] Other[null] operator[||] identifier[extension] operator[SEP] identifier[isEmpty] operator[S...
public TaskCounts getTaskCounts(String jobId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { JobGetTaskCountsOptions options = new JobGetTaskCountsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bh...
class class_name[name] begin[{] method[getTaskCounts, return_type[type[TaskCounts]], modifier[public], parameter[jobId, additionalBehaviors]] begin[{] local_variable[type[JobGetTaskCountsOptions], options] local_variable[type[BehaviorManager], bhMgr] call[bhMgr.applyRequestBehav...
Keyword[public] identifier[TaskCounts] identifier[getTaskCounts] operator[SEP] identifier[String] identifier[jobId] , identifier[Iterable] operator[<] identifier[BatchClientBehavior] operator[>] identifier[additionalBehaviors] operator[SEP] Keyword[throws] identifier[BatchErrorException] , identifier[IOException] { ...
public String convertIfcWorkScheduleTypeEnumToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
class class_name[name] begin[{] method[convertIfcWorkScheduleTypeEnumToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operat...
Keyword[public] identifier[String] identifier[convertIfcWorkScheduleTypeEnumToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] { Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] i...
public static PdfAction createSubmitForm(String file, Object names[], int flags) { PdfAction action = new PdfAction(); action.put(PdfName.S, PdfName.SUBMITFORM); PdfDictionary dic = new PdfDictionary(); dic.put(PdfName.F, new PdfString(file)); dic.put(PdfName.FS, PdfName.URL); ...
class class_name[name] begin[{] method[createSubmitForm, return_type[type[PdfAction]], modifier[public static], parameter[file, names, flags]] begin[{] local_variable[type[PdfAction], action] call[action.put, parameter[member[PdfName.S], member[PdfName.SUBMITFORM]]] local_variab...
Keyword[public] Keyword[static] identifier[PdfAction] identifier[createSubmitForm] operator[SEP] identifier[String] identifier[file] , identifier[Object] identifier[names] operator[SEP] operator[SEP] , Keyword[int] identifier[flags] operator[SEP] { identifier[PdfAction] identifier[action] operator[=] Keyword[n...
public List<MeasureDto> selectPastMeasures(DbSession dbSession, PastMeasureQuery query) { return mapper(dbSession).selectPastMeasuresOnSeveralAnalyses(query); }
class class_name[name] begin[{] method[selectPastMeasures, return_type[type[List]], modifier[public], parameter[dbSession, query]] begin[{] return[call[.mapper, parameter[member[.dbSession]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[MeasureDto] operator[>] identifier[selectPastMeasures] operator[SEP] identifier[DbSession] identifier[dbSession] , identifier[PastMeasureQuery] identifier[query] operator[SEP] { Keyword[return] identifier[mapper] operator[SEP] identifier[dbSession] operato...
public static Certificate readCertificate(String type, InputStream in) { try { return getCertificateFactory(type).generateCertificate(in); } catch (CertificateException e) { throw new CryptoException(e); } }
class class_name[name] begin[{] method[readCertificate, return_type[type[Certificate]], modifier[public static], parameter[type, in]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, s...
Keyword[public] Keyword[static] identifier[Certificate] identifier[readCertificate] operator[SEP] identifier[String] identifier[type] , identifier[InputStream] identifier[in] operator[SEP] { Keyword[try] { Keyword[return] identifier[getCertificateFactory] operator[SEP] identifier[type] operator[SEP] ...
public CertificateAuthSettings x509HostnameVerifier(X509HostnameVerifier x509HostnameVerifier) { return new CertificateAuthSettings(keystoreType, trustStoreType, port, trustStore, keyStore, x509HostnameVerifier, sslSocketFactory); }
class class_name[name] begin[{] method[x509HostnameVerifier, return_type[type[CertificateAuthSettings]], modifier[public], parameter[x509HostnameVerifier]] begin[{] return[ClassCreator(arguments=[MemberReference(member=keystoreType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ...
Keyword[public] identifier[CertificateAuthSettings] identifier[x509HostnameVerifier] operator[SEP] identifier[X509HostnameVerifier] identifier[x509HostnameVerifier] operator[SEP] { Keyword[return] Keyword[new] identifier[CertificateAuthSettings] operator[SEP] identifier[keystoreType] , identifier[trustStoreType...
public org.glassfish.jersey.server.monitoring.RequestEvent.ExceptionCause getExceptionCause() { return event.getExceptionCause(); }
class class_name[name] begin[{] method[getExceptionCause, return_type[type[org]], modifier[public], parameter[]] begin[{] return[call[event.getExceptionCause, parameter[]]] end[}] END[}]
Keyword[public] identifier[org] operator[SEP] identifier[glassfish] operator[SEP] identifier[jersey] operator[SEP] identifier[server] operator[SEP] identifier[monitoring] operator[SEP] identifier[RequestEvent] operator[SEP] identifier[ExceptionCause] identifier[getExceptionCause] operator[SEP] operator[SEP] { Ke...
private void executeTaskAsync() { final String taskId = currentTask.getId(); ListenableFuture<?> future = taskExecutorService.submit(currentTask); pendingTasks.put(taskId, future); future.addListener(new Runnable() { @Override public void run() { ...
class class_name[name] begin[{] method[executeTaskAsync, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], taskId] local_variable[type[ListenableFuture], future] call[pendingTasks.put, parameter[member[.taskId], member[.future]]] ...
Keyword[private] Keyword[void] identifier[executeTaskAsync] operator[SEP] operator[SEP] { Keyword[final] identifier[String] identifier[taskId] operator[=] identifier[currentTask] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] identifier[ListenableFuture] operator[<] operator[?] operato...
public void subscribe(final Class<? extends Notification> notificationClass, final Subscription subscription) { if (!SUBSCRIPTION_MAP.containsKey(notificationClass)) { SUBSCRIPTION_MAP.put(notificationClass, new ArrayList<>()); } final ArrayList<Subscription> subscriptions = SUBSCRIP...
class class_name[name] begin[{] method[subscribe, return_type[void], modifier[public], parameter[notificationClass, subscription]] begin[{] if[call[SUBSCRIPTION_MAP.containsKey, parameter[member[.notificationClass]]]] begin[{] call[SUBSCRIPTION_MAP.put, parameter[member[...
Keyword[public] Keyword[void] identifier[subscribe] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Notification] operator[>] identifier[notificationClass] , Keyword[final] identifier[Subscription] identifier[subscription] operator[SEP] { Keyword[if] operator[S...
public AwsSecurityFindingFilters withNetworkDestinationPort(NumberFilter... networkDestinationPort) { if (this.networkDestinationPort == null) { setNetworkDestinationPort(new java.util.ArrayList<NumberFilter>(networkDestinationPort.length)); } for (NumberFilter ele : networkDestinati...
class class_name[name] begin[{] method[withNetworkDestinationPort, return_type[type[AwsSecurityFindingFilters]], modifier[public], parameter[networkDestinationPort]] begin[{] if[binary_operation[THIS[member[None.networkDestinationPort]], ==, literal[null]]] begin[{] call...
Keyword[public] identifier[AwsSecurityFindingFilters] identifier[withNetworkDestinationPort] operator[SEP] identifier[NumberFilter] operator[...] identifier[networkDestinationPort] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[networkDestinationPort] operator[==] Other[null] op...
protected boolean getBufferEnabled(Dsn dsn) { String bufferEnabled = Lookup.lookup(BUFFER_ENABLED_OPTION, dsn); if (bufferEnabled != null) { return Boolean.parseBoolean(bufferEnabled); } return BUFFER_ENABLED_DEFAULT; }
class class_name[name] begin[{] method[getBufferEnabled, return_type[type[boolean]], modifier[protected], parameter[dsn]] begin[{] local_variable[type[String], bufferEnabled] if[binary_operation[member[.bufferEnabled], !=, literal[null]]] begin[{] return[call[Boolean.parseBo...
Keyword[protected] Keyword[boolean] identifier[getBufferEnabled] operator[SEP] identifier[Dsn] identifier[dsn] operator[SEP] { identifier[String] identifier[bufferEnabled] operator[=] identifier[Lookup] operator[SEP] identifier[lookup] operator[SEP] identifier[BUFFER_ENABLED_OPTION] , identifier[dsn] operator[S...
private static <S, L> void updateBlockReferences(Block<S, L> block) { UnorderedCollection<State<S, L>> states = block.getStates(); for (ElementReference ref : states.references()) { State<S, L> state = states.get(ref); state.setBlockReference(ref); state.setBlock(bloc...
class class_name[name] begin[{] method[updateBlockReferences, return_type[void], modifier[private static], parameter[block]] begin[{] local_variable[type[UnorderedCollection], states] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[...
Keyword[private] Keyword[static] operator[<] identifier[S] , identifier[L] operator[>] Keyword[void] identifier[updateBlockReferences] operator[SEP] identifier[Block] operator[<] identifier[S] , identifier[L] operator[>] identifier[block] operator[SEP] { identifier[UnorderedCollection] operator[<] identifier[S...
public WebElement findExpectedElement(By by, boolean includeHiddenElements) { log.debug("findExpectedElement() called with: " + by); waitForLoaders(); try { WebElement foundElement = new WebDriverWait(getWebDriver(), getSeleniumManager().getTimeout()) .until(ExpectedConditions.presenceOfElementLocated(...
class class_name[name] begin[{] method[findExpectedElement, return_type[type[WebElement]], modifier[public], parameter[by, includeHiddenElements]] begin[{] call[log.debug, parameter[binary_operation[literal["findExpectedElement() called with: "], +, member[.by]]]] call[.waitForL...
Keyword[public] identifier[WebElement] identifier[findExpectedElement] operator[SEP] identifier[By] identifier[by] , Keyword[boolean] identifier[includeHiddenElements] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[by] operator[SEP] operator[...
private int read() { int curByte = 0; try { curByte = rawData.get() & 0xFF; } catch (Exception e) { header.status = GifDecoder.STATUS_FORMAT_ERROR; } return curByte; }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[int], curByte] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=curByte, postfix_operators=[], prefix_operators=[], q...
Keyword[private] Keyword[int] identifier[read] operator[SEP] operator[SEP] { Keyword[int] identifier[curByte] operator[=] Other[0] operator[SEP] Keyword[try] { identifier[curByte] operator[=] identifier[rawData] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[&] literal[Integer] ope...
public void setPosition(String position) { if (position == null) { String message = Logging.getMessage("nullValue.PositionIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } this.position = position; c...
class class_name[name] begin[{] method[setPosition, return_type[void], modifier[public], parameter[position]] begin[{] if[binary_operation[member[.position], ==, literal[null]]] begin[{] local_variable[type[String], message] call[Logging.logger, parameter[]] ...
Keyword[public] Keyword[void] identifier[setPosition] operator[SEP] identifier[String] identifier[position] operator[SEP] { Keyword[if] operator[SEP] identifier[position] operator[==] Other[null] operator[SEP] { identifier[String] identifier[message] operator[=] identifier[Logging] operator[SEP] ident...
@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE) public static Observable<Connectivity> observeNetworkConnectivity(final Context context) { final NetworkObservingStrategy strategy; if (Preconditions.isAtLeastAndroidMarshmallow()) { strategy = new MarshmallowNetworkObservingStrategy(); ...
class class_name[name] begin[{] method[observeNetworkConnectivity, return_type[type[Observable]], modifier[public static], parameter[context]] begin[{] local_variable[type[NetworkObservingStrategy], strategy] if[call[Preconditions.isAtLeastAndroidMarshmallow, parameter[]]] begin[{] ...
annotation[@] identifier[RequiresPermission] operator[SEP] identifier[Manifest] operator[SEP] identifier[permission] operator[SEP] identifier[ACCESS_NETWORK_STATE] operator[SEP] Keyword[public] Keyword[static] identifier[Observable] operator[<] identifier[Connectivity] operator[>] identifier[observeNetworkConnectivity]...
public byte[] unsign(byte[] data, Key key) throws AuditSigningException { byte[] unsignedData = null; if (data != null) { try { unsignedData = decrypt(data, key); } catch (AuditDecryptionException ade) { throw new AuditSigningException(ade); ...
class class_name[name] begin[{] method[unsign, return_type[type[byte]], modifier[public], parameter[data, key]] begin[{] local_variable[type[byte], unsignedData] if[binary_operation[member[.data], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expressio...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[unsign] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , identifier[Key] identifier[key] operator[SEP] Keyword[throws] identifier[AuditSigningException] { Keyword[byte] operator[SEP] operator[SEP] identifier[unsignedD...
@VisibleForTesting boolean couldUseFlatGlob(Path fixedPath) { // Only works for filesystems where the base Hadoop Path scheme matches the underlying URI // scheme for GCS. if (!getUri().getScheme().equals(GoogleCloudStorageFileSystem.SCHEME)) { logger.atFine().log( "Flat glob is on, but do...
class class_name[name] begin[{] method[couldUseFlatGlob, return_type[type[boolean]], modifier[default], parameter[fixedPath]] begin[{] if[call[.getUri, parameter[]]] begin[{] call[logger.atFine, parameter[]] return[literal[false]] else begin[{] None ...
annotation[@] identifier[VisibleForTesting] Keyword[boolean] identifier[couldUseFlatGlob] operator[SEP] identifier[Path] identifier[fixedPath] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[getUri] operator[SEP] operator[SEP] operator[SEP] identifier[getScheme] operator[SEP] operator[SEP] opera...
@Override public com.liferay.commerce.product.model.CPRuleAssetCategoryRel addCPRuleAssetCategoryRel( com.liferay.commerce.product.model.CPRuleAssetCategoryRel cpRuleAssetCategoryRel) { return _cpRuleAssetCategoryRelLocalService.addCPRuleAssetCategoryRel(cpRuleAssetCategoryRel); }
class class_name[name] begin[{] method[addCPRuleAssetCategoryRel, return_type[type[com]], modifier[public], parameter[cpRuleAssetCategoryRel]] begin[{] return[call[_cpRuleAssetCategoryRelLocalService.addCPRuleAssetCategoryRel, parameter[member[.cpRuleAssetCategoryRel]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CPRuleAssetCategoryRel] identifier[addCPRuleAssetCategoryRel] operator[SEP] identifier[com] o...
private static Status getStatus(Throwable throwable) { Status status = Status.UNKNOWN; if (throwable instanceof StatusRuntimeException) { status = ((StatusRuntimeException) throwable).getStatus(); } else if (throwable instanceof StatusException) { status = ((StatusException) throwable).getStatu...
class class_name[name] begin[{] method[getStatus, return_type[type[Status]], modifier[private static], parameter[throwable]] begin[{] local_variable[type[Status], status] if[binary_operation[member[.throwable], instanceof, type[StatusRuntimeException]]] begin[{] ...
Keyword[private] Keyword[static] identifier[Status] identifier[getStatus] operator[SEP] identifier[Throwable] identifier[throwable] operator[SEP] { identifier[Status] identifier[status] operator[=] identifier[Status] operator[SEP] identifier[UNKNOWN] operator[SEP] Keyword[if] operator[SEP] identifier[throwable] ...
@Override public AudioFileFormat getAudioFileFormat(InputStream inputStream, long medialength) throws UnsupportedAudioFileException, IOException { return getAudioFileFormat(inputStream, (int) medialength, AudioSystem.NOT_SPECIFIED); }
class class_name[name] begin[{] method[getAudioFileFormat, return_type[type[AudioFileFormat]], modifier[public], parameter[inputStream, medialength]] begin[{] return[call[.getAudioFileFormat, parameter[member[.inputStream], Cast(expression=MemberReference(member=medialength, postfix_operators=[], prefi...
annotation[@] identifier[Override] Keyword[public] identifier[AudioFileFormat] identifier[getAudioFileFormat] operator[SEP] identifier[InputStream] identifier[inputStream] , Keyword[long] identifier[medialength] operator[SEP] Keyword[throws] identifier[UnsupportedAudioFileException] , identifier[IOException] { ...
@Override public int compareTo(Vulnerability v) { return new CompareToBuilder() .append(this.name, v.name) .toComparison(); }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[v]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[This(postfix...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[Vulnerability] identifier[v] operator[SEP] { Keyword[return] Keyword[new] identifier[CompareToBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[append] operator[SEP] Keyword[this] operator[S...
public JSONArray construct(boolean server) { JSONArray dnd = new JSONArray(); if (server){ JSONObject srv = new JSONObject(); srv.put("start_hour", start.getHourOfDay()); srv.put("start_minute", start.getMinuteOfHour()); srv.put("end_hour", end.getHourOfDa...
class class_name[name] begin[{] method[construct, return_type[type[JSONArray]], modifier[public], parameter[server]] begin[{] local_variable[type[JSONArray], dnd] if[member[.server]] begin[{] local_variable[type[JSONObject], srv] call[srv.put, paramet...
Keyword[public] identifier[JSONArray] identifier[construct] operator[SEP] Keyword[boolean] identifier[server] operator[SEP] { identifier[JSONArray] identifier[dnd] operator[=] Keyword[new] identifier[JSONArray] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[server] operator[SEP] ...
public void start(int requestNumber, boolean deliverImmediately, boolean sendReply, SendListener sendListener, boolean restart) //471642 { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "start", new Object[]{requestNumber, ...
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[requestNumber, deliverImmediately, sendReply, sendListener, restart]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin...
Keyword[public] Keyword[void] identifier[start] operator[SEP] Keyword[int] identifier[requestNumber] , Keyword[boolean] identifier[deliverImmediately] , Keyword[boolean] identifier[sendReply] , identifier[SendListener] identifier[sendListener] , Keyword[boolean] identifier[restart] operator[SEP] { Keyword[if...
public RequestMatcher endpointsMatcher() { ServiceProviderEndpoints endpoints = Optional.of(serviceProviderBuilder) .map(builder -> builder.getSharedObject(ServiceProviderEndpoints.class)) .orElseThrow(() -> new IllegalStateException("Can't find SAML Endpoints")); return ...
class class_name[name] begin[{] method[endpointsMatcher, return_type[type[RequestMatcher]], modifier[public], parameter[]] begin[{] local_variable[type[ServiceProviderEndpoints], endpoints] return[ClassCreator(arguments=[MemberReference(member=endpoints, postfix_operators=[], prefix_operators=[...
Keyword[public] identifier[RequestMatcher] identifier[endpointsMatcher] operator[SEP] operator[SEP] { identifier[ServiceProviderEndpoints] identifier[endpoints] operator[=] identifier[Optional] operator[SEP] identifier[of] operator[SEP] identifier[serviceProviderBuilder] operator[SEP] operator[SEP] identifier[ma...
public Iterable<DContact> queryByFirstName(Object parent, java.lang.String firstName) { return queryByField(parent, DContactMapper.Field.FIRSTNAME.getFieldName(), firstName); }
class class_name[name] begin[{] method[queryByFirstName, return_type[type[Iterable]], modifier[public], parameter[parent, firstName]] begin[{] return[call[.queryByField, parameter[member[.parent], call[DContactMapper.Field.FIRSTNAME.getFieldName, parameter[]], member[.firstName]]]] end[}] END[}]
Keyword[public] identifier[Iterable] operator[<] identifier[DContact] operator[>] identifier[queryByFirstName] operator[SEP] identifier[Object] identifier[parent] , identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[firstName] operator[SEP] { Keyword[return] identifier[q...
protected void includeClassFile(PackageSymbol p, JavaFileObject file) { if ((p.flags_field & EXISTS) == 0) for (Symbol q = p; q != null && q.kind == PCK; q = q.owner) q.flags_field |= EXISTS; JavaFileObject.Kind kind = file.getKind(); int seen; if (kind == Jav...
class class_name[name] begin[{] method[includeClassFile, return_type[void], modifier[protected], parameter[p, file]] begin[{] if[binary_operation[binary_operation[member[p.flags_field], &, member[.EXISTS]], ==, literal[0]]] begin[{] ForStatement(body=StatementExpression(expression=Assignment(ex...
Keyword[protected] Keyword[void] identifier[includeClassFile] operator[SEP] identifier[PackageSymbol] identifier[p] , identifier[JavaFileObject] identifier[file] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[p] operator[SEP] identifier[flags_field] operator[&] identifier[EXISTS] operator[SE...
public static void fill( DMatrix4 a , double v ) { a.a1 = v; a.a2 = v; a.a3 = v; a.a4 = v; }
class class_name[name] begin[{] method[fill, return_type[void], modifier[public static], parameter[a, v]] begin[{] assign[member[a.a1], member[.v]] assign[member[a.a2], member[.v]] assign[member[a.a3], member[.v]] assign[member[a.a4], member[.v]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[fill] operator[SEP] identifier[DMatrix4] identifier[a] , Keyword[double] identifier[v] operator[SEP] { identifier[a] operator[SEP] identifier[a1] operator[=] identifier[v] operator[SEP] identifier[a] operator[SEP] identifier[a2] operator[=] identifier[v] ...
private void handleResponse(Sms message, Response response) throws IOException, JsonProcessingException, MessageNotSentException { if (response.getStatus().isSuccess()) { JsonNode json = mapper.readTree(response.getBody()); int ovhStatus = json.get("status").asInt(); // 100 <= ovh status < 200 ====> OK -> ju...
class class_name[name] begin[{] method[handleResponse, return_type[void], modifier[private], parameter[message, response]] begin[{] if[call[response.getStatus, parameter[]]] begin[{] local_variable[type[JsonNode], json] local_variable[type[int], ovhStatus] ...
Keyword[private] Keyword[void] identifier[handleResponse] operator[SEP] identifier[Sms] identifier[message] , identifier[Response] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JsonProcessingException] , identifier[MessageNotSentException] { Keyword[if] operator[SEP] ...
public void addNotBetween(Object attribute, Object value1, Object value2) { // PAW // addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getAlias())); addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getUserAlias(attribute))); ...
class class_name[name] begin[{] method[addNotBetween, return_type[void], modifier[public], parameter[attribute, value1, value2]] begin[{] call[.addSelectionCriteria, parameter[call[ValueCriteria.buildNotBeweenCriteria, parameter[member[.attribute], member[.value1], member[.value2], call[.getUse...
Keyword[public] Keyword[void] identifier[addNotBetween] operator[SEP] identifier[Object] identifier[attribute] , identifier[Object] identifier[value1] , identifier[Object] identifier[value2] operator[SEP] { identifier[addSelectionCriteria] operator[SEP] identifier[ValueCriteria] operator[SEP] identifier[buildN...
public static double[] flatten(double[][] array) { int size = 0; for (double[] a : array) { size += a.length; } double[] newArray = new double[size]; int i = 0; for (double[] a : array) { for (double d : a) { newArray[i++] = d; } } return newArray; ...
class class_name[name] begin[{] method[flatten, return_type[type[double]], modifier[public static], parameter[array]] begin[{] local_variable[type[int], size] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=si...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[flatten] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[array] operator[SEP] { Keyword[int] identifier[size] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keywo...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case RESULT_CODE: return isSetResultCode(); case MESSAGE: return isSetMessage(); } 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...
public T header(final String name, final String value) { headers.put(name, value); return _this(); }
class class_name[name] begin[{] method[header, return_type[type[T]], modifier[public], parameter[name, value]] begin[{] call[headers.put, parameter[member[.name], member[.value]]] return[call[._this, parameter[]]] end[}] END[}]
Keyword[public] identifier[T] identifier[header] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[String] identifier[value] operator[SEP] { identifier[headers] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[value] operator[SEP] operator[SEP...
public OvhSOTPAccount accessRestriction_backupCode_GET() throws IOException { String qPath = "/me/accessRestriction/backupCode"; StringBuilder sb = path(qPath); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhSOTPAccount.class); }
class class_name[name] begin[{] method[accessRestriction_backupCode_GET, return_type[type[OvhSOTPAccount]], modifier[public], parameter[]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.convert...
Keyword[public] identifier[OvhSOTPAccount] identifier[accessRestriction_backupCode_GET] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] identifier[path] operat...
public ApiResponse<ApiSuccessResponse> deleteAllStandardResponseFavoritesWithHttpInfo(RemoveAllFavoritesData removeAllFavoritesData) throws ApiException { com.squareup.okhttp.Call call = deleteAllStandardResponseFavoritesValidateBeforeCall(removeAllFavoritesData, null, null); Type localVarReturnType = n...
class class_name[name] begin[{] method[deleteAllStandardResponseFavoritesWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[removeAllFavoritesData]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execu...
Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[deleteAllStandardResponseFavoritesWithHttpInfo] operator[SEP] identifier[RemoveAllFavoritesData] identifier[removeAllFavoritesData] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] op...
public ZealotKhala likePattern(String field, String pattern) { return this.doLikePattern(ZealotConst.ONE_SPACE, field, pattern, true, true); }
class class_name[name] begin[{] method[likePattern, return_type[type[ZealotKhala]], modifier[public], parameter[field, pattern]] begin[{] return[THIS[call[None.doLikePattern, parameter[member[ZealotConst.ONE_SPACE], member[.field], member[.pattern], literal[true], literal[true]]]]] end[}] END[}]
Keyword[public] identifier[ZealotKhala] identifier[likePattern] operator[SEP] identifier[String] identifier[field] , identifier[String] identifier[pattern] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[doLikePattern] operator[SEP] identifier[ZealotConst] operator[SEP] identifier[ONE_SPA...
public List<PointIndex2D_F64> getLandmarkByIndex( QrCode qr) { pixelControl.get(0).set(qr.ppCorner.get(0)); pixelControl.get(1).set(qr.ppCorner.get(1)); pixelControl.get(2).set(qr.ppCorner.get(2)); pixelControl.get(3).set(qr.ppCorner.get(3)); pixelControl.get(4).set(qr.ppRight.get(0)); pixelControl.get(5)....
class class_name[name] begin[{] method[getLandmarkByIndex, return_type[type[List]], modifier[public], parameter[qr]] begin[{] call[pixelControl.get, parameter[literal[0]]] call[pixelControl.get, parameter[literal[1]]] call[pixelControl.get, parameter[literal[2]]]...
Keyword[public] identifier[List] operator[<] identifier[PointIndex2D_F64] operator[>] identifier[getLandmarkByIndex] operator[SEP] identifier[QrCode] identifier[qr] operator[SEP] { identifier[pixelControl] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[set] operator[S...
@Override protected void doIterationProcedure (final int n) { if (n == 1) return; // already initialized if (m_fFalse < 0) { m_fXNeg = m_fXFalse; // the root is in the xPos side m_fNeg = m_fFalse; } else { m_fXPos = m_fXFalse; // the root is in the xNeg side m_...
class class_name[name] begin[{] method[doIterationProcedure, return_type[void], modifier[protected], parameter[n]] begin[{] if[binary_operation[member[.n], ==, literal[1]]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[member[.m_fFalse], <, ...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doIterationProcedure] operator[SEP] Keyword[final] Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[==] Other[1] operator[SEP] Keyword[return] operator[SEP] Keyword[if] operator[SEP] identifi...
public static boolean datasetAlreadyCompacted(FileSystem fs, Dataset dataset, boolean renameSourceEnable) { if (renameSourceEnable) { return checkAlreadyCompactedBasedOnSourceDirName (fs, dataset); } else { return checkAlreadyCompactedBasedOnCompletionFile(fs, dataset); } }
class class_name[name] begin[{] method[datasetAlreadyCompacted, return_type[type[boolean]], modifier[public static], parameter[fs, dataset, renameSourceEnable]] begin[{] if[member[.renameSourceEnable]] begin[{] return[call[.checkAlreadyCompactedBasedOnSourceDirName, parameter[member...
Keyword[public] Keyword[static] Keyword[boolean] identifier[datasetAlreadyCompacted] operator[SEP] identifier[FileSystem] identifier[fs] , identifier[Dataset] identifier[dataset] , Keyword[boolean] identifier[renameSourceEnable] operator[SEP] { Keyword[if] operator[SEP] identifier[renameSourceEnable] operator[...
public static List<List<Writable>> toRecords(DataSet dataSet) { if (isClassificationDataSet(dataSet)) { return getClassificationWritableMatrix(dataSet); } else { return getRegressionWritableMatrix(dataSet); } }
class class_name[name] begin[{] method[toRecords, return_type[type[List]], modifier[public static], parameter[dataSet]] begin[{] if[call[.isClassificationDataSet, parameter[member[.dataSet]]]] begin[{] return[call[.getClassificationWritableMatrix, parameter[member[.dataSet]]]] ...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[List] operator[<] identifier[Writable] operator[>] operator[>] identifier[toRecords] operator[SEP] identifier[DataSet] identifier[dataSet] operator[SEP] { Keyword[if] operator[SEP] identifier[isClassificationDataSet] operator[SEP] identifier...
public void example() { News news = new News(); // tag::cache-set[] cache.set("item.key", news, 60 * 15); // end::cache-set[] // tag::cache-get[] News cached = cache.get("item.key"); // end::cache-get[] // tag::cache-remove[] cache.remove("item.k...
class class_name[name] begin[{] method[example, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[News], news] call[cache.set, parameter[literal["item.key"], member[.news], binary_operation[literal[60], *, literal[15]]]] local_variable[type[News], ca...
Keyword[public] Keyword[void] identifier[example] operator[SEP] operator[SEP] { identifier[News] identifier[news] operator[=] Keyword[new] identifier[News] operator[SEP] operator[SEP] operator[SEP] identifier[cache] operator[SEP] identifier[set] operator[SEP] literal[String] , identifier[news] , Other[60] oper...
@Deprecated public Membership addUserToProject(int projectId, int userId, Collection<Role> roles) throws RedmineException { return new Membership(transport) .setProject(new Project(transport).setId(projectId)) .setUserId(userId) .addRoles(roles) ...
class class_name[name] begin[{] method[addUserToProject, return_type[type[Membership]], modifier[public], parameter[projectId, userId, roles]] begin[{] return[ClassCreator(arguments=[MemberReference(member=transport, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, cons...
annotation[@] identifier[Deprecated] Keyword[public] identifier[Membership] identifier[addUserToProject] operator[SEP] Keyword[int] identifier[projectId] , Keyword[int] identifier[userId] , identifier[Collection] operator[<] identifier[Role] operator[>] identifier[roles] operator[SEP] Keyword[throws] identifier[Redmi...
protected void handleOperation(Map<String, String> map, String operation) throws Exception { int index=operation.indexOf('.'); if(index == -1) throw new IllegalArgumentException("operation " + operation + " is missing the protocol name"); String prot_name=operation.substring(0, index...
class class_name[name] begin[{] method[handleOperation, return_type[void], modifier[protected], parameter[map, operation]] begin[{] local_variable[type[int], index] if[binary_operation[member[.index], ==, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOper...
Keyword[protected] Keyword[void] identifier[handleOperation] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[map] , identifier[String] identifier[operation] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[index] operator[=] ...
@Beta public static <T> boolean isInOrder(Iterable<? extends T> iterable, Comparator<T> comparator) { checkNotNull(comparator); Iterator<? extends T> it = iterable.iterator(); if (it.hasNext()) { T prev = it.next(); while (it.hasNext()) { T next = it.next(); if (comparator.comp...
class class_name[name] begin[{] method[isInOrder, return_type[type[boolean]], modifier[public static], parameter[iterable, comparator]] begin[{] call[.checkNotNull, parameter[member[.comparator]]] local_variable[type[Iterator], it] if[call[it.hasNext, parameter[]]] begin...
annotation[@] identifier[Beta] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[isInOrder] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[iterable] , identifier[Comparator] operator[<] identifier[T] opera...
public final EObject ruleXOrExpression() throws RecognitionException { EObject current = null; EObject this_XAndExpression_0 = null; EObject lv_rightOperand_3_0 = null; enterRule(); try { // InternalPureXbase.g:1027:2: ( (this_XAndExpression_0= ruleXAndExpressi...
class class_name[name] begin[{] method[ruleXOrExpression, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], this_XAndExpression_0] local_variable[type[EObject], lv_rightOperand_3_0] ...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXOrExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[this_XAndExpression_0] operator[=] Other[nul...
@SuppressWarnings("unchecked") @Override public EList<IfcPhysicalQuantity> getQuantities() { return (EList<IfcPhysicalQuantity>) eGet(Ifc4Package.Literals.IFC_ELEMENT_QUANTITY__QUANTITIES, true); }
class class_name[name] begin[{] method[getQuantities, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_ELEMENT_QUANTITY__QUANTITIES, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package.Literals, ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcPhysicalQuantity] operator[>] identifier[getQuantities] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[ELis...
public static void fe_sq(int[] h, int[] f) { int f0 = f[0]; int f1 = f[1]; int f2 = f[2]; int f3 = f[3]; int f4 = f[4]; int f5 = f[5]; int f6 = f[6]; int f7 = f[7]; int f8 = f[8]; int f9 = f[9]; int f0_2 = 2 * f0; int f1_2 =...
class class_name[name] begin[{] method[fe_sq, return_type[void], modifier[public static], parameter[h, f]] begin[{] local_variable[type[int], f0] local_variable[type[int], f1] local_variable[type[int], f2] local_variable[type[int], f3] local_variable[type[int], f4] ...
Keyword[public] Keyword[static] Keyword[void] identifier[fe_sq] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[h] , Keyword[int] operator[SEP] operator[SEP] identifier[f] operator[SEP] { Keyword[int] identifier[f0] operator[=] identifier[f] operator[SEP] Other[0] operator[SEP] operator[SEP] K...
public <T extends FMLEvent> void registerCallback(Class<T> clazz, IFMLEventCallback<T> consumer) { super.registerCallback(consumer, CallbackOption.of((FMLEventPredicate<T>) clazz::isInstance)); }
class class_name[name] begin[{] method[registerCallback, return_type[void], modifier[public], parameter[clazz, consumer]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=consumer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[FMLEvent] operator[>] Keyword[void] identifier[registerCallback] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] , identifier[IFMLEventCallback] operator[<] identifier[T] operator[>] identifier[consumer] opera...
public void setTemplate(ElemTemplate v) { if (null == m_templates) m_templates = new Vector(); m_templates.addElement(v); v.setStylesheet(this); }
class class_name[name] begin[{] method[setTemplate, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[literal[null], ==, member[.m_templates]]] begin[{] assign[member[.m_templates], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, ...
Keyword[public] Keyword[void] identifier[setTemplate] operator[SEP] identifier[ElemTemplate] identifier[v] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[m_templates] operator[SEP] identifier[m_templates] operator[=] Keyword[new] identifier[Vector] operator[SEP] operator[SEP] opera...
public GV3CompressedFunction<T> build() throws IOException { if (built) throw new IllegalStateException("This builder has been already used"); if (codec == null) codec = new Codec.Huffman(); built = true; if (transform == null) { if (chunkedHashStore != null) transform = chunkedHashStore.transform(); ...
class class_name[name] begin[{] method[build, return_type[type[GV3CompressedFunction]], modifier[public], parameter[]] begin[{] if[member[.built]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="T...
Keyword[public] identifier[GV3CompressedFunction] operator[<] identifier[T] operator[>] identifier[build] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[built] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] lit...
private static RowMapper getMapper(Class<? extends RowMapper> rowMapper, ResultSet rs, Class returnType, Calendar cal) { Constructor c = null; try { c = rowMapper.getDeclaredConstructor(_params); return (RowMapper) c.newInstance(new Object[]{rs, returnType, cal}); } c...
class class_name[name] begin[{] method[getMapper, return_type[type[RowMapper]], modifier[private static], parameter[rowMapper, rs, returnType, cal]] begin[{] local_variable[type[Constructor], c] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=c, ...
Keyword[private] Keyword[static] identifier[RowMapper] identifier[getMapper] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[RowMapper] operator[>] identifier[rowMapper] , identifier[ResultSet] identifier[rs] , identifier[Class] identifier[returnType] , identifier[Calendar] identi...
@SuppressWarnings({ "unchecked", "rawtypes" }) public Option<ReactiveSeq<V>> reactiveSeq(final K key) { return get(key).map(a -> a.stream()); }
class class_name[name] begin[{] method[reactiveSeq, return_type[type[Option]], modifier[public], parameter[key]] begin[{] return[call[.get, parameter[member[.key]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] identifier[Option] operator[<] identifier[ReactiveSeq] operator[<] identifier[V] operator[>] operator[>] identifier[reactiveSeq] operator[SEP] Keyword[final] identifier[K] identifier[k...
@Override @InService(PageServiceImpl.class) void writeImpl(TableKelp table, PageServiceImpl pageServiceImpl, TableWriterService readWrite, SegmentStream sOut, long oldSequence, int saveLength, int saveTail) { ...
class class_name[name] begin[{] method[writeImpl, return_type[void], modifier[default], parameter[table, pageServiceImpl, readWrite, sOut, oldSequence, saveLength, saveTail]] begin[{] call[Objects.requireNonNull, parameter[member[.sOut]]] if[binary_operation[binary_operation[bin...
annotation[@] identifier[Override] annotation[@] identifier[InService] operator[SEP] identifier[PageServiceImpl] operator[SEP] Keyword[class] operator[SEP] Keyword[void] identifier[writeImpl] operator[SEP] identifier[TableKelp] identifier[table] , identifier[PageServiceImpl] identifier[pageServiceImpl] , identifier[T...
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) public int getMaxWidth (){ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) return mInputView.getMaxWidth(); return -1; }
class class_name[name] begin[{] method[getMaxWidth, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.JELLY_BEAN]]] begin[{] return[call[mInputView.getMaxWidth, parameter[]]] else begin[{] No...
annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[JELLY_BEAN] operator[SEP] Keyword[public] Keyword[int] identifier[getMaxWidth] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Build] operator[SEP] identifier[VE...
protected String getAlternatePrincipal(final X509Certificate certificate) { if (alternatePrincipalAttribute == null) { return null; } val attributes = extractPersonAttributes(certificate); val attribute = attributes.get(alternatePrincipalAttribute); if (attribute == n...
class class_name[name] begin[{] method[getAlternatePrincipal, return_type[type[String]], modifier[protected], parameter[certificate]] begin[{] if[binary_operation[member[.alternatePrincipalAttribute], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[protected] identifier[String] identifier[getAlternatePrincipal] operator[SEP] Keyword[final] identifier[X509Certificate] identifier[certificate] operator[SEP] { Keyword[if] operator[SEP] identifier[alternatePrincipalAttribute] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null...
@Override public NavigableMap<Integer, IScan> getScansByNumSpanAtMsLevel(int numStart, int numEnd, int msLevel) { NavigableMap<Integer, IScan> subMap = null; TreeMap<Integer, IScan> msLevelMap = getMapMsLevel2index().get(msLevel).getNum2scan(); if (msLevelMap != null) { subMap = msLevelMap.sub...
class class_name[name] begin[{] method[getScansByNumSpanAtMsLevel, return_type[type[NavigableMap]], modifier[public], parameter[numStart, numEnd, msLevel]] begin[{] local_variable[type[NavigableMap], subMap] local_variable[type[TreeMap], msLevelMap] if[binary_operation[member[.m...
annotation[@] identifier[Override] Keyword[public] identifier[NavigableMap] operator[<] identifier[Integer] , identifier[IScan] operator[>] identifier[getScansByNumSpanAtMsLevel] operator[SEP] Keyword[int] identifier[numStart] , Keyword[int] identifier[numEnd] , Keyword[int] identifier[msLevel] operator[SEP] { ...
public static void setLogStdOut(boolean log) { if (log) { if (!(System.out instanceof LogStream)) System.setOut(new LogStream.STDOUT()); } else System.setOut(STDOUT_STREAM); }
class class_name[name] begin[{] method[setLogStdOut, return_type[void], modifier[public static], parameter[log]] begin[{] if[member[.log]] begin[{] if[binary_operation[member[System.out], instanceof, type[LogStream]]] begin[{] call[System.setOut, paramete...
Keyword[public] Keyword[static] Keyword[void] identifier[setLogStdOut] operator[SEP] Keyword[boolean] identifier[log] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[System] operator[SEP] identifier[out] Keyword[i...
@Override public void setupModule(SetupContext context) { FindSerializers serializers = new FindSerializers(jsonContext); locator.inject(serializers); locator.postConstruct(serializers); context.addSerializers(serializers); FindDeserializers deserializers = new FindDeseriali...
class class_name[name] begin[{] method[setupModule, return_type[void], modifier[public], parameter[context]] begin[{] local_variable[type[FindSerializers], serializers] call[locator.inject, parameter[member[.serializers]]] call[locator.postConstruct, parameter[member[.se...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setupModule] operator[SEP] identifier[SetupContext] identifier[context] operator[SEP] { identifier[FindSerializers] identifier[serializers] operator[=] Keyword[new] identifier[FindSerializers] operator[SEP] identifier[jsonContext] operat...
protected @Nonnull <T> Provider<T> getBeanProvider(@Nullable BeanResolutionContext resolutionContext, @Nonnull Class<T> beanType) { return getBeanProvider(resolutionContext, beanType, null); }
class class_name[name] begin[{] method[getBeanProvider, return_type[type[Provider]], modifier[protected], parameter[resolutionContext, beanType]] begin[{] return[call[.getBeanProvider, parameter[member[.resolutionContext], member[.beanType], literal[null]]]] end[}] END[}]
Keyword[protected] annotation[@] identifier[Nonnull] operator[<] identifier[T] operator[>] identifier[Provider] operator[<] identifier[T] operator[>] identifier[getBeanProvider] operator[SEP] annotation[@] identifier[Nullable] identifier[BeanResolutionContext] identifier[resolutionContext] , annotation[@] identifier[N...
public void setFormatForDatesBeforeCommonEra(DateTimeFormatter formatForDatesBeforeCommonEra) { this.formatForDatesBeforeCommonEraStrict = formatForDatesBeforeCommonEra.withResolverStyle(ResolverStyle.STRICT); if (parentDatePicker != null) { parentDatePicker.setTextFieldToValidSt...
class class_name[name] begin[{] method[setFormatForDatesBeforeCommonEra, return_type[void], modifier[public], parameter[formatForDatesBeforeCommonEra]] begin[{] assign[THIS[member[None.formatForDatesBeforeCommonEraStrict]], call[formatForDatesBeforeCommonEra.withResolverStyle, parameter[member[...
Keyword[public] Keyword[void] identifier[setFormatForDatesBeforeCommonEra] operator[SEP] identifier[DateTimeFormatter] identifier[formatForDatesBeforeCommonEra] operator[SEP] { Keyword[this] operator[SEP] identifier[formatForDatesBeforeCommonEraStrict] operator[=] identifier[formatForDatesBeforeCommonEra] operat...
@Override public void sendCommand(final BitfinexCommand command) { try { if (command instanceof BitfinexStreamSymbolToChannelIdResolverAware) { final BitfinexStreamSymbolToChannelIdResolverAware aware = (BitfinexStreamSymbolToChannelIdResolverAware) command; aware.setResolver(symbol -> { final Intege...
class class_name[name] begin[{] method[sendCommand, return_type[void], modifier[public], parameter[command]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=command, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Referen...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[sendCommand] operator[SEP] Keyword[final] identifier[BitfinexCommand] identifier[command] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[command] Keyword[instanceof] identifier[BitfinexStreamSymbolToChanne...
public void setMappings(Map<String, String> patternMap) { this.mappings = new HashMap<String, String>(patternMap); for (String key : mappings.keySet()) { String result = mappings.get(key); if (result.startsWith(FORWARD)) { result = result.substring(FORWARD.length()); } if (result.startsWith(REDIRECT...
class class_name[name] begin[{] method[setMappings, return_type[void], modifier[public], parameter[patternMap]] begin[{] assign[THIS[member[None.mappings]], ClassCreator(arguments=[MemberReference(member=patternMap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=Non...
Keyword[public] Keyword[void] identifier[setMappings] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[patternMap] operator[SEP] { Keyword[this] operator[SEP] identifier[mappings] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] ...
@Override public Request<ModifyVolumeRequest> getDryRunRequest() { Request<ModifyVolumeRequest> request = new ModifyVolumeRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
class class_name[name] begin[{] method[getDryRunRequest, return_type[type[Request]], modifier[public], parameter[]] begin[{] local_variable[type[Request], request] call[request.addParameter, parameter[literal["DryRun"], call[Boolean.toString, parameter[literal[true]]]]] return[m...
annotation[@] identifier[Override] Keyword[public] identifier[Request] operator[<] identifier[ModifyVolumeRequest] operator[>] identifier[getDryRunRequest] operator[SEP] operator[SEP] { identifier[Request] operator[<] identifier[ModifyVolumeRequest] operator[>] identifier[request] operator[=] Keyword[new] identi...
private static List<String> toList(String propertyName, ValueExpression expression, Object value) { if (value instanceof String) { String strValue = (String)value; // If the value contains no spaces, we can optimize. ...
class class_name[name] begin[{] method[toList, return_type[type[List]], modifier[private static], parameter[propertyName, expression, value]] begin[{] if[binary_operation[member[.value], instanceof, type[String]]] begin[{] local_variable[type[String], strValue] ...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[toList] operator[SEP] identifier[String] identifier[propertyName] , identifier[ValueExpression] identifier[expression] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identif...
@Override public boolean hasLink(String name1, String name2, String... domain) { if (domain.length == 1) { name1 = domain[0] + "::" + name1; name2 = domain[0] + "::" + name2; } else if (domain.length > 1) { throw new Error("error: domain should be 1 parameter"); ...
class class_name[name] begin[{] method[hasLink, return_type[type[boolean]], modifier[public], parameter[name1, name2, domain]] begin[{] if[binary_operation[member[domain.length], ==, literal[1]]] begin[{] assign[member[.name1], binary_operation[binary_operation[member[.d...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[hasLink] operator[SEP] identifier[String] identifier[name1] , identifier[String] identifier[name2] , identifier[String] operator[...] identifier[domain] operator[SEP] { Keyword[if] operator[SEP] identifier[domain] operator[SEP] iden...
public static <K, VV, EV> Graph<K, VV, EV> fromDataSet(DataSet<Edge<K, EV>> edges, final MapFunction<K, VV> vertexValueInitializer, ExecutionEnvironment context) { TypeInformation<K> keyType = ((TupleTypeInfo<?>) edges.getType()).getTypeAt(0); TypeInformation<VV> valueType = TypeExtractor.createTypeInfo( M...
class class_name[name] begin[{] method[fromDataSet, return_type[type[Graph]], modifier[public static], parameter[edges, vertexValueInitializer, context]] begin[{] local_variable[type[TypeInformation], keyType] local_variable[type[TypeInformation], valueType] local_variable[type[TypeInfo...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[VV] , identifier[EV] operator[>] identifier[Graph] operator[<] identifier[K] , identifier[VV] , identifier[EV] operator[>] identifier[fromDataSet] operator[SEP] identifier[DataSet] operator[<] identifier[Edge] operator[<] identifier[K] , identi...
private void processClassesInWebXML(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, WebAppConfig webAppConfig, JaxWsModuleInfo jaxWsModuleInfo, Set<String> presentedServices) throws UnableToAdaptException { Iterator<IServletConfig> cfgIter = webA...
class class_name[name] begin[{] method[processClassesInWebXML, return_type[void], modifier[private], parameter[endpointInfoBuilder, ctx, webAppConfig, jaxWsModuleInfo, presentedServices]] begin[{] local_variable[type[Iterator], cfgIter] while[call[cfgIter.hasNext, parameter[]]] begin[{]...
Keyword[private] Keyword[void] identifier[processClassesInWebXML] operator[SEP] identifier[EndpointInfoBuilder] identifier[endpointInfoBuilder] , identifier[EndpointInfoBuilderContext] identifier[ctx] , identifier[WebAppConfig] identifier[webAppConfig] , identifier[JaxWsModuleInfo] identifier[jaxWsModuleInfo] , ide...
public void fillPublishList(CmsDbContext dbc, CmsPublishList publishList) throws CmsException { if (!publishList.isDirectPublish()) { // when publishing a project // all modified resources with the last change done in the current project are candidates if unlocked List<CmsRe...
class class_name[name] begin[{] method[fillPublishList, return_type[void], modifier[public], parameter[dbc, publishList]] begin[{] if[call[publishList.isDirectPublish, parameter[]]] begin[{] local_variable[type[List], folderList] local_variable[type[List], fileList] ...
Keyword[public] Keyword[void] identifier[fillPublishList] operator[SEP] identifier[CmsDbContext] identifier[dbc] , identifier[CmsPublishList] identifier[publishList] operator[SEP] Keyword[throws] identifier[CmsException] { Keyword[if] operator[SEP] operator[!] identifier[publishList] operator[SEP] identifier[is...
public static void notNull(Object object, String message) { if (object == null) throw new IllegalArgumentException(message); /* * 如果是字符串,我不希望你的字符串是一个空字符串,那样没有任何意义, * 但是你仍然坚持要为空,那你可以添加一个空格(" ")试试 * */ if (object instanceof String) if (StringUtils.is...
class class_name[name] begin[{] method[notNull, return_type[void], modifier[public static], parameter[object, message]] begin[{] if[binary_operation[member[.object], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=message, postfix_operators=...
Keyword[public] Keyword[static] Keyword[void] identifier[notNull] operator[SEP] identifier[Object] identifier[object] , identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[object] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumen...
@Deprecated public static Scriptable newObjectLiteral(Object[] propertyIds, Object[] propertyValues, Context cx, Scriptable scope) { // Passing null for getterSetters means no getters or setters return ne...
class class_name[name] begin[{] method[newObjectLiteral, return_type[type[Scriptable]], modifier[public static], parameter[propertyIds, propertyValues, cx, scope]] begin[{] return[call[.newObjectLiteral, parameter[member[.propertyIds], member[.propertyValues], literal[null], member[.cx], member[.scope]...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[Scriptable] identifier[newObjectLiteral] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[propertyIds] , identifier[Object] operator[SEP] operator[SEP] identifier[propertyValues] , identifier[Context] identifier[cx]...
public final Module loadAddonModule(Addon addon) throws ModuleLoadException { try { this.currentAddon.set(addon); ModuleIdentifier moduleId = moduleCache.getModuleId(addon); Module result = loadModule(moduleId); return result; } catch (ModuleLoadException e...
class class_name[name] begin[{] method[loadAddonModule, return_type[type[Module]], modifier[final public], parameter[addon]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=currentAddon, postfi...
Keyword[public] Keyword[final] identifier[Module] identifier[loadAddonModule] operator[SEP] identifier[Addon] identifier[addon] operator[SEP] Keyword[throws] identifier[ModuleLoadException] { Keyword[try] { Keyword[this] operator[SEP] identifier[currentAddon] operator[SEP] identifier[set] operator[SEP...
protected ServiceRegistration registerProxy(Object objectProxy, Class clazz) { Dictionary<String, Object> props = new Hashtable<String, Object>(); ServiceRegistration registration; registration = context.registerService(clazz, objectProxy, props); return registration; }
class class_name[name] begin[{] method[registerProxy, return_type[type[ServiceRegistration]], modifier[protected], parameter[objectProxy, clazz]] begin[{] local_variable[type[Dictionary], props] local_variable[type[ServiceRegistration], registration] assign[member[.registration]...
Keyword[protected] identifier[ServiceRegistration] identifier[registerProxy] operator[SEP] identifier[Object] identifier[objectProxy] , identifier[Class] identifier[clazz] operator[SEP] { identifier[Dictionary] operator[<] identifier[String] , identifier[Object] operator[>] identifier[props] operator[=] Keywor...
public void initialize(URI name, Configuration conf) throws IOException { //decode the name underLyingURI = decodeHarURI(name, conf); // we got the right har Path- now check if this is //truly a har filesystem Path harPath = archivePath( new Path(name.getScheme(), name.getAuthority(), name.ge...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[name, conf]] begin[{] assign[member[.underLyingURI], call[.decodeHarURI, parameter[member[.name], member[.conf]]]] local_variable[type[Path], harPath] if[binary_operation[me...
Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[URI] identifier[name] , identifier[Configuration] identifier[conf] operator[SEP] Keyword[throws] identifier[IOException] { identifier[underLyingURI] operator[=] identifier[decodeHarURI] operator[SEP] identifier[name] , identifier[con...
private Context current(boolean fail) { Context context = Context.CONTEXT.get(); if (context == null && fail) { throw new IllegalStateException("No context"); } return context; }
class class_name[name] begin[{] method[current, return_type[type[Context]], modifier[private], parameter[fail]] begin[{] local_variable[type[Context], context] if[binary_operation[binary_operation[member[.context], ==, literal[null]], &&, member[.fail]]] begin[{] ThrowStatem...
Keyword[private] identifier[Context] identifier[current] operator[SEP] Keyword[boolean] identifier[fail] operator[SEP] { identifier[Context] identifier[context] operator[=] identifier[Context] operator[SEP] identifier[CONTEXT] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] op...
private boolean removeFromNewEntries(final OIdentifiable identifiable) { OModifiableInteger counter = newEntries.get(identifiable); if (counter == null) { return false; } else { if (counter.getValue() == 1) { newEntries.remove(identifiable); } else { counter.decrement(); ...
class class_name[name] begin[{] method[removeFromNewEntries, return_type[type[boolean]], modifier[private], parameter[identifiable]] begin[{] local_variable[type[OModifiableInteger], counter] if[binary_operation[member[.counter], ==, literal[null]]] begin[{] return[literal[f...
Keyword[private] Keyword[boolean] identifier[removeFromNewEntries] operator[SEP] Keyword[final] identifier[OIdentifiable] identifier[identifiable] operator[SEP] { identifier[OModifiableInteger] identifier[counter] operator[=] identifier[newEntries] operator[SEP] identifier[get] operator[SEP] identifier[identifia...
public void marshall(BackupPlansListMember backupPlansListMember, ProtocolMarshaller protocolMarshaller) { if (backupPlansListMember == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backupPlansListM...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[backupPlansListMember, protocolMarshaller]] begin[{] if[binary_operation[member[.backupPlansListMember], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BackupPlansListMember] identifier[backupPlansListMember] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[backupPlansListMember] operator[==] Other[null] operator[SEP] ...
@Override public INDArray exec(RandomOp op, Random rng) { if (!(rng instanceof CpuNativeRandom)) throw new IllegalStateException( "You should use one of NativeRandom classes for NativeOperations execution. Op class: " + op.getClass().getName()); long st = profilingCo...
class class_name[name] begin[{] method[exec, return_type[type[INDArray]], modifier[public], parameter[op, rng]] begin[{] if[binary_operation[member[.rng], instanceof, type[CpuNativeRandom]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_oper...
annotation[@] identifier[Override] Keyword[public] identifier[INDArray] identifier[exec] operator[SEP] identifier[RandomOp] identifier[op] , identifier[Random] identifier[rng] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[rng] Keyword[instanceof] identifier[CpuNativeRandom] oper...
public void doAddListener(BaseListener listener) { if (m_nextListener != null) m_nextListener.doAddListener(listener); else m_nextListener = listener; }
class class_name[name] begin[{] method[doAddListener, return_type[void], modifier[public], parameter[listener]] begin[{] if[binary_operation[member[.m_nextListener], !=, literal[null]]] begin[{] call[m_nextListener.doAddListener, parameter[member[.listener]]] else begin[{] ...
Keyword[public] Keyword[void] identifier[doAddListener] operator[SEP] identifier[BaseListener] identifier[listener] operator[SEP] { Keyword[if] operator[SEP] identifier[m_nextListener] operator[!=] Other[null] operator[SEP] identifier[m_nextListener] operator[SEP] identifier[doAddListener] operator[SEP] identifi...
private Attribute getGlobalAttribute(MappedField configuredField, Class<?> configuredClass){ Global global = null; Map<String, Global> globals = loadGlobals(); for (Class<?> clazz : getAllsuperClasses(configuredClass)) { global = globals.get(clazz.getName()); if(!isNull(global))break; } ...
class class_name[name] begin[{] method[getGlobalAttribute, return_type[type[Attribute]], modifier[private], parameter[configuredField, configuredClass]] begin[{] local_variable[type[Global], global] local_variable[type[Map], globals] ForStatement(body=BlockStatement(label=None, statemen...
Keyword[private] identifier[Attribute] identifier[getGlobalAttribute] operator[SEP] identifier[MappedField] identifier[configuredField] , identifier[Class] operator[<] operator[?] operator[>] identifier[configuredClass] operator[SEP] { identifier[Global] identifier[global] operator[=] Other[null] operator[SEP] ...
protected HTTPResponse submitHTTPRequestImpl(HTTPRequest httpRequest,HTTPMethod httpMethod) { return this.httpClient.submitHTTPRequest(httpRequest,this.httpClientConfiguration,httpMethod); }
class class_name[name] begin[{] method[submitHTTPRequestImpl, return_type[type[HTTPResponse]], modifier[protected], parameter[httpRequest, httpMethod]] begin[{] return[THIS[member[None.httpClient]call[None.submitHTTPRequest, parameter[member[.httpRequest], THIS[member[None.httpClientConfiguration]], me...
Keyword[protected] identifier[HTTPResponse] identifier[submitHTTPRequestImpl] operator[SEP] identifier[HTTPRequest] identifier[httpRequest] , identifier[HTTPMethod] identifier[httpMethod] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[httpClient] operator[SEP] identifier[submitHTTPReques...
protected void checkSpecifiedUrlPattern(Method executeMethod, String specifiedUrlPattern, List<Class<?>> pathParamTypeList) { if (specifiedUrlPattern != null) { if (canBeAbbreviatedUrlPattern(specifiedUrlPattern)) { throwUrlPatternNonsenseSettingException(executeMethod, specifiedUrlP...
class class_name[name] begin[{] method[checkSpecifiedUrlPattern, return_type[void], modifier[protected], parameter[executeMethod, specifiedUrlPattern, pathParamTypeList]] begin[{] if[binary_operation[member[.specifiedUrlPattern], !=, literal[null]]] begin[{] if[call[.can...
Keyword[protected] Keyword[void] identifier[checkSpecifiedUrlPattern] operator[SEP] identifier[Method] identifier[executeMethod] , identifier[String] identifier[specifiedUrlPattern] , identifier[List] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[pathParamTypeList] operator[...
public Where<T, ID> notIn(String columnName, Iterable<?> objects) throws SQLException { addClause(new In(columnName, findColumnFieldType(columnName), objects, false)); return this; }
class class_name[name] begin[{] method[notIn, return_type[type[Where]], modifier[public], parameter[columnName, objects]] begin[{] call[.addClause, parameter[ClassCreator(arguments=[MemberReference(member=columnName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodIn...
Keyword[public] identifier[Where] operator[<] identifier[T] , identifier[ID] operator[>] identifier[notIn] operator[SEP] identifier[String] identifier[columnName] , identifier[Iterable] operator[<] operator[?] operator[>] identifier[objects] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[a...
public void registerMetrics(MetricRegistry metricRegistry) { if (id() != null) { metricName = MetricRegistry.name(Pipeline.class, id(), "executed"); executed = metricRegistry.meter(metricName); } }
class class_name[name] begin[{] method[registerMetrics, return_type[void], modifier[public], parameter[metricRegistry]] begin[{] if[binary_operation[call[.id, parameter[]], !=, literal[null]]] begin[{] assign[member[.metricName], call[MetricRegistry.name, parameter[Class...
Keyword[public] Keyword[void] identifier[registerMetrics] operator[SEP] identifier[MetricRegistry] identifier[metricRegistry] operator[SEP] { Keyword[if] operator[SEP] identifier[id] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[metricName] operator[=] identifier[Metr...
protected void ensureColumns(List columns, List existingColumns) { if (columns == null || columns.isEmpty()) { return; } Iterator iter = columns.iterator(); while (iter.hasNext()) { FieldHelper cf = (FieldHelper) iter.next(...
class class_name[name] begin[{] method[ensureColumns, return_type[void], modifier[protected], parameter[columns, existingColumns]] begin[{] if[binary_operation[binary_operation[member[.columns], ==, literal[null]], ||, call[columns.isEmpty, parameter[]]]] begin[{] return[None] ...
Keyword[protected] Keyword[void] identifier[ensureColumns] operator[SEP] identifier[List] identifier[columns] , identifier[List] identifier[existingColumns] operator[SEP] { Keyword[if] operator[SEP] identifier[columns] operator[==] Other[null] operator[||] identifier[columns] operator[SEP] identifier[isEmpty] o...
public boolean validLogin(String identifier, String password, String hash) { Objects.requireNonNull(identifier, Required.USERNAME.toString()); Objects.requireNonNull(password, Required.PASSWORD.toString()); Objects.requireNonNull(hash, Required.HASH.toString()); Cache cache = Applicatio...
class class_name[name] begin[{] method[validLogin, return_type[type[boolean]], modifier[public], parameter[identifier, password, hash]] begin[{] call[Objects.requireNonNull, parameter[member[.identifier], call[Required.USERNAME.toString, parameter[]]]] call[Objects.requireNonNul...
Keyword[public] Keyword[boolean] identifier[validLogin] operator[SEP] identifier[String] identifier[identifier] , identifier[String] identifier[password] , identifier[String] identifier[hash] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[identifier] , id...
public static void addBindingUpdateError( ServletRequest request, String expression, String message, Throwable cause ) { Map errors = ( Map ) request.getAttribute( BINDING_UPDATE_ERRORS_ATTR ); if ( errors == null ) { errors = new LinkedHashMap(); request.setAttribut...
class class_name[name] begin[{] method[addBindingUpdateError, return_type[void], modifier[public static], parameter[request, expression, message, cause]] begin[{] local_variable[type[Map], errors] if[binary_operation[member[.errors], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[addBindingUpdateError] operator[SEP] identifier[ServletRequest] identifier[request] , identifier[String] identifier[expression] , identifier[String] identifier[message] , identifier[Throwable] identifier[cause] operator[SEP] { identifier[Map] identifier...
private static int toContext(int style) { switch (style) { case Calendar.SHORT_FORMAT: case Calendar.NARROW_FORMAT: case Calendar.LONG_FORMAT: return DateFormatSymbols.FORMAT; case Calendar.SHORT_STANDALONE: case Calendar.NARROW_STANDAL...
class class_name[name] begin[{] method[toContext, return_type[type[int]], modifier[private static], parameter[style]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=SHORT_FORMAT, postfix_operators=[], prefix_operators=[], qualifier=Calendar, selectors=[]), MemberRefere...
Keyword[private] Keyword[static] Keyword[int] identifier[toContext] operator[SEP] Keyword[int] identifier[style] operator[SEP] { Keyword[switch] operator[SEP] identifier[style] operator[SEP] { Keyword[case] identifier[Calendar] operator[SEP] identifier[SHORT_FORMAT] operator[:] Keyword[case] identifi...
private int processTemplate() { ServletRequest req = pageContext.getRequest(); Template.TemplateContext tc = (Template.TemplateContext) req.getAttribute(TEMPLATE_SECTIONS); if (tc.secs == null) { tc.secs = new HashMap(); } assert (tc.secs != null...
class class_name[name] begin[{] method[processTemplate, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[ServletRequest], req] local_variable[type[Template], tc] if[binary_operation[member[tc.secs], ==, literal[null]]] begin[{] ...
Keyword[private] Keyword[int] identifier[processTemplate] operator[SEP] operator[SEP] { identifier[ServletRequest] identifier[req] operator[=] identifier[pageContext] operator[SEP] identifier[getRequest] operator[SEP] operator[SEP] operator[SEP] identifier[Template] operator[SEP] identifier[TemplateContext] iden...
public static final long getLongAttribute(Path path, String attribute, long def, LinkOption... options) throws IOException { attribute = attribute.startsWith("user:") ? attribute : "user:"+attribute; byte[] attr = (byte[]) Files.getAttribute(path, attribute, options); if (attr == null) ...
class class_name[name] begin[{] method[getLongAttribute, return_type[type[long]], modifier[final public static], parameter[path, attribute, def, options]] begin[{] assign[member[.attribute], TernaryExpression(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] Keyword[final] Keyword[long] identifier[getLongAttribute] operator[SEP] identifier[Path] identifier[path] , identifier[String] identifier[attribute] , Keyword[long] identifier[def] , identifier[LinkOption] operator[...] identifier[options] operator[SEP] Keyword[throws] identifier[IOEx...
public static String doPost(String url, Map<String, String> header, String param) throws KeyManagementException, NoSuchAlgorithmException, IOException { String result = null; HttpClient httpClient = new SSLClient(); httpClient.getParams().setParameter(CoreConnectionPNames.CONNECTION...
class class_name[name] begin[{] method[doPost, return_type[type[String]], modifier[public static], parameter[url, header, param]] begin[{] local_variable[type[String], result] local_variable[type[HttpClient], httpClient] call[httpClient.getParams, parameter[]] ca...
Keyword[public] Keyword[static] identifier[String] identifier[doPost] operator[SEP] identifier[String] identifier[url] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[header] , identifier[String] identifier[param] operator[SEP] Keyword[throws] identifier[KeyManagementExce...
private static String patternMatching(String ptnName, String input) { String suffix = ""; if (ptnNumber == null) patternCompile(); Matcher matcher; if (ptnName.equals("number")) { matcher = ptnNumber.matcher(input); if (matcher.matches()) suffix = ":number"; } else if (ptnName.equals("...
class class_name[name] begin[{] method[patternMatching, return_type[type[String]], modifier[private static], parameter[ptnName, input]] begin[{] local_variable[type[String], suffix] if[binary_operation[member[.ptnNumber], ==, literal[null]]] begin[{] call[.patternCompile, pa...
Keyword[private] Keyword[static] identifier[String] identifier[patternMatching] operator[SEP] identifier[String] identifier[ptnName] , identifier[String] identifier[input] operator[SEP] { identifier[String] identifier[suffix] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[ptnNumb...
@Override public ConfListVo getConfVo(Long configId) { Config config = configDao.get(configId); App app = appMgr.getById(config.getAppId()); Env env = envMgr.getById(config.getEnvId()); return convert(config, app.getName(), env.getName(), null); }
class class_name[name] begin[{] method[getConfVo, return_type[type[ConfListVo]], modifier[public], parameter[configId]] begin[{] local_variable[type[Config], config] local_variable[type[App], app] local_variable[type[Env], env] return[call[.convert, parameter[member[.config], ca...
annotation[@] identifier[Override] Keyword[public] identifier[ConfListVo] identifier[getConfVo] operator[SEP] identifier[Long] identifier[configId] operator[SEP] { identifier[Config] identifier[config] operator[=] identifier[configDao] operator[SEP] identifier[get] operator[SEP] identifier[configId] operator[SEP...
public static String convertNewLines(String string) { int index; // Replace with \n StringBuffer newStringBuffer = new StringBuffer(); while ((index = string.indexOf('\n')) != -1) { if (index > 0) { newStringBuffer.append(string.substring(0, index)); } newStringBuffer.append('\\'); ...
class class_name[name] begin[{] method[convertNewLines, return_type[type[String]], modifier[public static], parameter[string]] begin[{] local_variable[type[int], index] local_variable[type[StringBuffer], newStringBuffer] while[binary_operation[assign[member[.index], call[string....
Keyword[public] Keyword[static] identifier[String] identifier[convertNewLines] operator[SEP] identifier[String] identifier[string] operator[SEP] { Keyword[int] identifier[index] operator[SEP] identifier[StringBuffer] identifier[newStringBuffer] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] oper...
public void marshall(Connection connection, ProtocolMarshaller protocolMarshaller) { if (connection == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(connection.getReplicationInstanceArn(), REPLICATI...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[connection, protocolMarshaller]] begin[{] if[binary_operation[member[.connection], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Connection] identifier[connection] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[connection] operator[==] Other[null] operator[SEP] { Keyword[throw] Keywo...