code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
protected static String getMethodSignature(String methodName, Class<?>[] parameterTypes, Class<?> returnType) { StringBuilder buffer = new StringBuilder(methodName); buffer.append("("); if (parameterTypes != null) { int index = 0; for (Class<?> parameterType : parameterTypes) { buff...
class class_name[name] begin[{] method[getMethodSignature, return_type[type[String]], modifier[static protected], parameter[methodName, parameterTypes, returnType]] begin[{] local_variable[type[StringBuilder], buffer] call[buffer.append, parameter[literal["("]]] if[binar...
Keyword[protected] Keyword[static] identifier[String] identifier[getMethodSignature] operator[SEP] identifier[String] identifier[methodName] , identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[parameterTypes] , identifier[Class] operator[<] operator[?] operator[>] identifier...
@Override public int compare(IAtomContainer a, IAtomContainer b) { Point2d p1 = center(a); Point2d p2 = center(b); if (p1.x > p2.x) return +1; if (p1.x < p2.x) return -1; if (p1.y > p2.y) return +1; if (p1.y < p2.y) return -1; return 0; }
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public], parameter[a, b]] begin[{] local_variable[type[Point2d], p1] local_variable[type[Point2d], p2] if[binary_operation[member[p1.x], >, member[p2.x]]] begin[{] return[literal[1]] else be...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compare] operator[SEP] identifier[IAtomContainer] identifier[a] , identifier[IAtomContainer] identifier[b] operator[SEP] { identifier[Point2d] identifier[p1] operator[=] identifier[center] operator[SEP] identifier[a] operator[SEP] operat...
private void linkSitesToGroups() { //System.out.println("LINK SITES TO GROUPS:" + siteToResidueMap.keySet().size()); //link the map of siteIds : <ResidueNumber> with the sites by using ResidueNumber to get the correct group back. //the return list if ( siteMap == null || siteToResidueMap == null){ logger....
class class_name[name] begin[{] method[linkSitesToGroups, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[binary_operation[member[.siteMap], ==, literal[null]], ||, binary_operation[member[.siteToResidueMap], ==, literal[null]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[linkSitesToGroups] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[siteMap] operator[==] Other[null] operator[||] identifier[siteToResidueMap] operator[==] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[info] operato...
private static <E extends Element> List<E> listFilter(Iterable<? extends Element> elements, Set<ElementKind> targetKinds, Class<E> clazz) { List<E> list = new ArrayList<E>(); for (Element ...
class class_name[name] begin[{] method[listFilter, return_type[type[List]], modifier[private static], parameter[elements, targetKinds, clazz]] begin[{] local_variable[type[List], list] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Met...
Keyword[private] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Element] operator[>] identifier[List] operator[<] identifier[E] operator[>] identifier[listFilter] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[Element] operator[>] identifier[elements] , id...
public int getRows() { if(sheetData == null) unmarshall(); int ret = 0; if(rows != null) ret = rows.size(); return ret; }
class class_name[name] begin[{] method[getRows, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.sheetData], ==, literal[null]]] begin[{] call[.unmarshall, parameter[]] else begin[{] None end[}] local_variable[type[i...
Keyword[public] Keyword[int] identifier[getRows] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[sheetData] operator[==] Other[null] operator[SEP] identifier[unmarshall] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[ret] operator[=] Other[0] operator[SEP] Keyword[if] operat...
public static KbObjectNotFoundException fromThrowable(String message, Throwable cause) { return (cause instanceof KbObjectNotFoundException && Objects.equals(message, cause.getMessage())) ? (KbObjectNotFoundException) cause : new KbObjectNotFoundException(message, cause); }
class class_name[name] begin[{] method[fromThrowable, return_type[type[KbObjectNotFoundException]], modifier[public static], parameter[message, cause]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=cause, postfix_operators=[], prefi...
Keyword[public] Keyword[static] identifier[KbObjectNotFoundException] identifier[fromThrowable] operator[SEP] identifier[String] identifier[message] , identifier[Throwable] identifier[cause] operator[SEP] { Keyword[return] operator[SEP] identifier[cause] Keyword[instanceof] identifier[KbObjectNotFoundException]...
@Override public EnumSet<Casts> prepareForDissect(final String inputname, final String outputname) { String name = extractFieldName(inputname, outputname); switch (name) { case "value": return STRING_ONLY; case "expires": return STRING_OR_LONG; case "path": r...
class class_name[name] begin[{] method[prepareForDissect, return_type[type[EnumSet]], modifier[public], parameter[inputname, outputname]] begin[{] local_variable[type[String], name] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=Non...
annotation[@] identifier[Override] Keyword[public] identifier[EnumSet] operator[<] identifier[Casts] operator[>] identifier[prepareForDissect] operator[SEP] Keyword[final] identifier[String] identifier[inputname] , Keyword[final] identifier[String] identifier[outputname] operator[SEP] { identifier[String] ident...
public Observable<List<String>> listDomainsAsync() { return listDomainsWithServiceResponseAsync().map(new Func1<ServiceResponse<List<String>>, List<String>>() { @Override public List<String> call(ServiceResponse<List<String>> response) { return response.body(); ...
class class_name[name] begin[{] method[listDomainsAsync, return_type[type[Observable]], modifier[public], parameter[]] begin[{] return[call[.listDomainsWithServiceResponseAsync, parameter[]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[listDomainsAsync] operator[SEP] operator[SEP] { Keyword[return] identifier[listDomainsWithServiceResponseAsync] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[...
public void marshall(ShareDetails shareDetails, ProtocolMarshaller protocolMarshaller) { if (shareDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(shareDetails.getSuccessfulShares(), SUCCESS...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[shareDetails, protocolMarshaller]] begin[{] if[binary_operation[member[.shareDetails], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_opera...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ShareDetails] identifier[shareDetails] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[shareDetails] operator[==] Other[null] operator[SEP] { Keyword[throw]...
private Map<PackageUrl, ComponentReport> requestReports(final Dependency[] dependencies) throws Exception { log.debug("Requesting component-reports for {} dependencies", dependencies.length); // create requests for each dependency which has a PURL identifier List<PackageUrl> packages = new Arra...
class class_name[name] begin[{] method[requestReports, return_type[type[Map]], modifier[private], parameter[dependencies]] begin[{] call[log.debug, parameter[literal["Requesting component-reports for {} dependencies"], member[dependencies.length]]] local_variable[type[List], packages] ...
Keyword[private] identifier[Map] operator[<] identifier[PackageUrl] , identifier[ComponentReport] operator[>] identifier[requestReports] operator[SEP] Keyword[final] identifier[Dependency] operator[SEP] operator[SEP] identifier[dependencies] operator[SEP] Keyword[throws] identifier[Exception] { identifier[log] ...
public void encode(OutputStream out, T obj) throws IOException { OutputStreamWriter writer = new OutputStreamWriter(out, JsonPullParser.DEFAULT_CHARSET); encodeNullToBlank(writer, obj); }
class class_name[name] begin[{] method[encode, return_type[void], modifier[public], parameter[out, obj]] begin[{] local_variable[type[OutputStreamWriter], writer] call[.encodeNullToBlank, parameter[member[.writer], member[.obj]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[encode] operator[SEP] identifier[OutputStream] identifier[out] , identifier[T] identifier[obj] operator[SEP] Keyword[throws] identifier[IOException] { identifier[OutputStreamWriter] identifier[writer] operator[=] Keyword[new] identifier[OutputStreamWriter] operator[SEP] ...
public final void mWHEN() throws RecognitionException { try { int _type = WHEN; int _channel = DEFAULT_TOKEN_CHANNEL; // hql.g:70:6: ( 'when' ) // hql.g:70:8: 'when' { match("when"); if (state.failed) return; } state.type = _type; state.channel = _channel; } finally { // do for sur...
class class_name[name] begin[{] method[mWHEN, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=WHEN, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[final] Keyword[void] identifier[mWHEN] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[WHEN] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKEN_...
public ListWebhooksResult withWebhooks(ListWebhookItem... webhooks) { if (this.webhooks == null) { setWebhooks(new java.util.ArrayList<ListWebhookItem>(webhooks.length)); } for (ListWebhookItem ele : webhooks) { this.webhooks.add(ele); } return this; }
class class_name[name] begin[{] method[withWebhooks, return_type[type[ListWebhooksResult]], modifier[public], parameter[webhooks]] begin[{] if[binary_operation[THIS[member[None.webhooks]], ==, literal[null]]] begin[{] call[.setWebhooks, parameter[ClassCreator(arguments=[...
Keyword[public] identifier[ListWebhooksResult] identifier[withWebhooks] operator[SEP] identifier[ListWebhookItem] operator[...] identifier[webhooks] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[webhooks] operator[==] Other[null] operator[SEP] { identifier[setWebhook...
public static Scalar<?> calculatePortfolioReturn(final PrimitiveMatrix assetWeights, final PrimitiveMatrix assetReturns) { return PrimitiveScalar.valueOf(assetWeights.dot(assetReturns)); }
class class_name[name] begin[{] method[calculatePortfolioReturn, return_type[type[Scalar]], modifier[public static], parameter[assetWeights, assetReturns]] begin[{] return[call[PrimitiveScalar.valueOf, parameter[call[assetWeights.dot, parameter[member[.assetReturns]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Scalar] operator[<] operator[?] operator[>] identifier[calculatePortfolioReturn] operator[SEP] Keyword[final] identifier[PrimitiveMatrix] identifier[assetWeights] , Keyword[final] identifier[PrimitiveMatrix] identifier[assetReturns] operator[SEP] { Keyword[return] iden...
@PostMapping(value = "/submit", produces = TEXT_PLAIN_VALUE) public ResponseEntity<String> submitMappingJob( @RequestParam String mappingProjectId, @RequestParam String targetEntityTypeId, @RequestParam(required = false) Boolean addSourceAttribute, @RequestParam(required = false, name = "packa...
class class_name[name] begin[{] method[submitMappingJob, return_type[type[ResponseEntity]], modifier[public], parameter[mappingProjectId, targetEntityTypeId, addSourceAttribute, packageId, label]] begin[{] local_variable[type[MappingJobExecution], mappingJobExecution] local_variable[type[User],...
annotation[@] identifier[PostMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[produces] operator[=] identifier[TEXT_PLAIN_VALUE] operator[SEP] Keyword[public] identifier[ResponseEntity] operator[<] identifier[String] operator[>] identifier[submitMappingJob] operator[SEP] annotation[@] ...
@Override public void cacheResult(List<CommerceDiscount> commerceDiscounts) { for (CommerceDiscount commerceDiscount : commerceDiscounts) { if (entityCache.getResult( CommerceDiscountModelImpl.ENTITY_CACHE_ENABLED, CommerceDiscountImpl.class, commerceDiscount.getPrimaryKey()) == null) { cach...
class class_name[name] begin[{] method[cacheResult, return_type[void], modifier[public], parameter[commerceDiscounts]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=ENTITY_CACHE_ENABLED...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[cacheResult] operator[SEP] identifier[List] operator[<] identifier[CommerceDiscount] operator[>] identifier[commerceDiscounts] operator[SEP] { Keyword[for] operator[SEP] identifier[CommerceDiscount] identifier[commerceDiscount] operator[...
private static void extractDirective(HashMap<String, String> map, String key, String value) throws SaslException { if (map.get(key) != null) { throw new SaslException("Peer sent more than one " + key + " directive"); } map.put(key, value); }
class class_name[name] begin[{] method[extractDirective, return_type[void], modifier[private static], parameter[map, key, value]] begin[{] if[binary_operation[call[map.get, parameter[member[.key]]], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Binar...
Keyword[private] Keyword[static] Keyword[void] identifier[extractDirective] operator[SEP] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[map] , identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] Keyword[throws] identifier[SaslExcept...
public Collection<String> clearSearchResultsByPage(TextPageCriteria criteria, Region<String,Collection<?>> pageRegion) { Collection<String> pageKeys = Querier.query("select * from /"+criteria.getPageRegionName()+".keySet() k where k like '"+criteria.getId()+"%'"); pageRegion.removeAll(pageKeys); retur...
class class_name[name] begin[{] method[clearSearchResultsByPage, return_type[type[Collection]], modifier[public], parameter[criteria, pageRegion]] begin[{] local_variable[type[Collection], pageKeys] call[pageRegion.removeAll, parameter[member[.pageKeys]]] return[member[.pageKeys...
Keyword[public] identifier[Collection] operator[<] identifier[String] operator[>] identifier[clearSearchResultsByPage] operator[SEP] identifier[TextPageCriteria] identifier[criteria] , identifier[Region] operator[<] identifier[String] , identifier[Collection] operator[<] operator[?] operator[>] operator[>] identifier...
public static MethodDelegation to(Object target, String fieldName) { return withDefaultConfiguration().to(target, fieldName); }
class class_name[name] begin[{] method[to, return_type[type[MethodDelegation]], modifier[public static], parameter[target, fieldName]] begin[{] return[call[.withDefaultConfiguration, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[MethodDelegation] identifier[to] operator[SEP] identifier[Object] identifier[target] , identifier[String] identifier[fieldName] operator[SEP] { Keyword[return] identifier[withDefaultConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[to] operator[SEP] i...
public Observable<Page<BlobContainerInner>> listStorageContainersNextAsync(final String nextPageLink) { return listStorageContainersNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<BlobContainerInner>>, Page<BlobContainerInner>>() { @Override ...
class class_name[name] begin[{] method[listStorageContainersNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listStorageContainersNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[BlobContainerInner] operator[>] operator[>] identifier[listStorageContainersNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[listStorageContaine...
protected Method resolveTargetMethod(Message message, FieldDescriptor payloadField) { Method targetMethod = fieldToMethod.get(payloadField); if (targetMethod == null) { // look up and cache target method; this block is called only once //...
class class_name[name] begin[{] method[resolveTargetMethod, return_type[type[Method]], modifier[protected], parameter[message, payloadField]] begin[{] local_variable[type[Method], targetMethod] if[binary_operation[member[.targetMethod], ==, literal[null]]] begin[{] ...
Keyword[protected] identifier[Method] identifier[resolveTargetMethod] operator[SEP] identifier[Message] identifier[message] , identifier[FieldDescriptor] identifier[payloadField] operator[SEP] { identifier[Method] identifier[targetMethod] operator[=] identifier[fieldToMethod] operator[SEP] identifier[get] opera...
@SuppressWarnings("unchecked") public <T> T getOptionValue(String name) { return (T) configurationOptions.get(name); }
class class_name[name] begin[{] method[getOptionValue, return_type[type[T]], modifier[public], parameter[name]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[getOptionValue] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[return] operator[SEP] identifier[T] operator[SEP] identif...
@Override void analyzeWords(AnalyzedText aText) { FastList<String> list = new FastList<String>(); FastSet<String> set = new FastSet<String>(); com.chenlb.mmseg4j.Word word = null; Reader sr = new StringReader(aText.getText()); synchronized(mmSeg){ mmSeg.reset(sr); try{ while((word=mmSeg....
class class_name[name] begin[{] method[analyzeWords, return_type[void], modifier[default], parameter[aText]] begin[{] local_variable[type[FastList], list] local_variable[type[FastSet], set] local_variable[type[com], word] local_variable[type[Reader], sr] SYNCHRON...
annotation[@] identifier[Override] Keyword[void] identifier[analyzeWords] operator[SEP] identifier[AnalyzedText] identifier[aText] operator[SEP] { identifier[FastList] operator[<] identifier[String] operator[>] identifier[list] operator[=] Keyword[new] identifier[FastList] operator[<] identifier[String] operator...
public static UUID fromString(String name) { String[] components = name.split("-"); if (components.length != 5) { throw new IllegalArgumentException("Invalid UUID string: " + name); } for (int i = 0; i < 5; i++) { components[i] = "0x" + components[i]; } long mostSigBits = Long.decode(compone...
class class_name[name] begin[{] method[fromString, return_type[type[UUID]], modifier[public static], parameter[name]] begin[{] local_variable[type[String], components] if[binary_operation[member[components.length], !=, literal[5]]] begin[{] ThrowStatement(expression=ClassCre...
Keyword[public] Keyword[static] identifier[UUID] identifier[fromString] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[components] operator[=] identifier[name] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] ...
@Override public T transformElement(Tuple2<AerospikeKey, AerospikeRecord> tuple, DeepJobConfig<T, ? extends DeepJobConfig> config) { try { return (T) UtilAerospike.getObjectFromAerospikeRecord(config.getEntityClass(), tuple._2(), (AerospikeDeepJobConfig) this.deepJobConfig); ...
class class_name[name] begin[{] method[transformElement, return_type[type[T]], modifier[public], parameter[tuple, config]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEntityClass, postfix_operators=[], pref...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[transformElement] operator[SEP] identifier[Tuple2] operator[<] identifier[AerospikeKey] , identifier[AerospikeRecord] operator[>] identifier[tuple] , identifier[DeepJobConfig] operator[<] identifier[T] , operator[?] Keyword[extends] identifi...
protected final PrcHasSeSellerSave<RS, IHasSeSeller<Object>, Object> lazyGetPrcHasSeSellerSave( final Map<String, Object> pAddParam) throws Exception { String beanName = PrcHasSeSellerSave.class.getSimpleName(); @SuppressWarnings("unchecked") PrcHasSeSellerSave<RS, IHasSeSeller<Object>, Object> pr...
class class_name[name] begin[{] method[lazyGetPrcHasSeSellerSave, return_type[type[PrcHasSeSellerSave]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[String], beanName] local_variable[type[PrcHasSeSellerSave], proc] if[binary_operation[member[.pr...
Keyword[protected] Keyword[final] identifier[PrcHasSeSellerSave] operator[<] identifier[RS] , identifier[IHasSeSeller] operator[<] identifier[Object] operator[>] , identifier[Object] operator[>] identifier[lazyGetPrcHasSeSellerSave] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identi...
public void editable(double seconds) { double end = System.currentTimeMillis() + (seconds * 1000); try { elementPresent(seconds); while (!element.is().editable() && System.currentTimeMillis() < end) ; double timeTook = Math.min((seconds * 1000) - (end - System.current...
class class_name[name] begin[{] method[editable, return_type[void], modifier[public], parameter[seconds]] begin[{] local_variable[type[double], end] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=seconds, postfix_operators=[], prefix_operat...
Keyword[public] Keyword[void] identifier[editable] operator[SEP] Keyword[double] identifier[seconds] operator[SEP] { Keyword[double] identifier[end] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[+] operator[SEP] identifier[seconds] operator[*] Oth...
private static CmsGallerySearchBean getSearchBeanFromDict() throws SerializationException { return (CmsGallerySearchBean)CmsRpcPrefetcher.getSerializedObjectFromDictionary( CmsGalleryController.getGalleryService(), CmsGallerySearchBean.DICT_NAME); }
class class_name[name] begin[{] method[getSearchBeanFromDict, return_type[type[CmsGallerySearchBean]], modifier[private static], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getGalleryService, postfix_operators=[], prefix_operators=[], q...
Keyword[private] Keyword[static] identifier[CmsGallerySearchBean] identifier[getSearchBeanFromDict] operator[SEP] operator[SEP] Keyword[throws] identifier[SerializationException] { Keyword[return] operator[SEP] identifier[CmsGallerySearchBean] operator[SEP] identifier[CmsRpcPrefetcher] operator[SEP] identifier[g...
public void setFilterCriteria(com.google.api.ads.admanager.axis.v201902.TrafficTimeSeriesFilterCriteria filterCriteria) { this.filterCriteria = filterCriteria; }
class class_name[name] begin[{] method[setFilterCriteria, return_type[void], modifier[public], parameter[filterCriteria]] begin[{] assign[THIS[member[None.filterCriteria]], member[.filterCriteria]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setFilterCriteria] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201902] operator[SEP] identifier[TrafficTime...
@Override public boolean complete(T value) { cancelTimeoutTask(); repository.removeRequest(requestId); return super.complete(value); }
class class_name[name] begin[{] method[complete, return_type[type[boolean]], modifier[public], parameter[value]] begin[{] call[.cancelTimeoutTask, parameter[]] call[repository.removeRequest, parameter[member[.requestId]]] return[SuperMethodInvocation(arguments=[MemberRef...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[complete] operator[SEP] identifier[T] identifier[value] operator[SEP] { identifier[cancelTimeoutTask] operator[SEP] operator[SEP] operator[SEP] identifier[repository] operator[SEP] identifier[removeRequest] operator[SEP] identifier[re...
public ServiceFuture<ImportExportResponseInner> createImportOperationAsync(String resourceGroupName, String serverName, String databaseName, ImportExtensionRequest parameters, final ServiceCallback<ImportExportResponseInner> serviceCallback) { return ServiceFuture.fromResponse(createImportOperationWithServiceRe...
class class_name[name] begin[{] method[createImportOperationAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, databaseName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.createImportOperationWithServiceRe...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[ImportExportResponseInner] operator[>] identifier[createImportOperationAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[databaseName] , identifier[ImportEx...
public synchronized Object getNextJob() { Object strJobDef = null; synchronized (this) { if (gvJobs.size() > 0) strJobDef = gvJobs.remove(0); } return strJobDef; }
class class_name[name] begin[{] method[getNextJob, return_type[type[Object]], modifier[synchronized public], parameter[]] begin[{] local_variable[type[Object], strJobDef] SYNCHRONIZED[THIS[]] BEGIN[{] if[binary_operation[call[gvJobs.size, parameter[]], >, literal...
Keyword[public] Keyword[synchronized] identifier[Object] identifier[getNextJob] operator[SEP] operator[SEP] { identifier[Object] identifier[strJobDef] operator[=] Other[null] operator[SEP] Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { Keyword[if] operator[SEP] identifier[gvJobs] op...
@Override public GetConfigResult getConfig(GetConfigRequest request) { request = beforeClientExecution(request); return executeGetConfig(request); }
class class_name[name] begin[{] method[getConfig, return_type[type[GetConfigResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetConfig, parameter[member[.request]]]] end[}...
annotation[@] identifier[Override] Keyword[public] identifier[GetConfigResult] identifier[getConfig] operator[SEP] identifier[GetConfigRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keywo...
@Override public void write(IChemObject object) throws CDKException { try { ProcessingInstruction processingInstruction = new ProcessingInstruction("xml-stylesheet", "href=\"http://www.w3.org/2000/08/w3c-synd/style.css\" type=\"text/css\""); Element rdfElement = n...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[object]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[IChemObject] identifier[object] operator[SEP] Keyword[throws] identifier[CDKException] { Keyword[try] { identifier[ProcessingInstruction] identifier[processingInstruction] operator[=] Keyword[ne...
private void onSetCompactionThreshold(CfDef cfDef, Properties cfProperties, StringBuilder builder) { String maxCompactionThreshold = cfProperties.getProperty(CassandraConstants.MAX_COMPACTION_THRESHOLD); if (maxCompactionThreshold != null) { try { if (...
class class_name[name] begin[{] method[onSetCompactionThreshold, return_type[void], modifier[private], parameter[cfDef, cfProperties, builder]] begin[{] local_variable[type[String], maxCompactionThreshold] if[binary_operation[member[.maxCompactionThreshold], !=, literal[null]]] begin[{]...
Keyword[private] Keyword[void] identifier[onSetCompactionThreshold] operator[SEP] identifier[CfDef] identifier[cfDef] , identifier[Properties] identifier[cfProperties] , identifier[StringBuilder] identifier[builder] operator[SEP] { identifier[String] identifier[maxCompactionThreshold] operator[=] identifier[cf...
public <T, S> CallResults call(InputHandler<T> inputHandler, OutputHandler<S> outputHandler) throws SQLException { return this.call(inputHandler, outputHandler, null, null, false); }
class class_name[name] begin[{] method[call, return_type[type[CallResults]], modifier[public], parameter[inputHandler, outputHandler]] begin[{] return[THIS[call[None.call, parameter[member[.inputHandler], member[.outputHandler], literal[null], literal[null], literal[false]]]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] , identifier[S] operator[>] identifier[CallResults] identifier[call] operator[SEP] identifier[InputHandler] operator[<] identifier[T] operator[>] identifier[inputHandler] , identifier[OutputHandler] operator[<] identifier[S] operator[>] identifier[outputHandler] operator[SEP]...
public void write(InputStream is, boolean escape, boolean noBackslashEscapes) throws IOException { byte[] array = new byte[4096]; int len; if (escape) { while ((len = is.read(array)) > 0) { writeBytesEscaped(array, len, noBackslashEscapes); } } else { while ((len = is.read(arra...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[is, escape, noBackslashEscapes]] begin[{] local_variable[type[byte], array] local_variable[type[int], len] if[member[.escape]] begin[{] while[binary_operation[ass...
Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[InputStream] identifier[is] , Keyword[boolean] identifier[escape] , Keyword[boolean] identifier[noBackslashEscapes] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[array] operat...
public static Collection.Key[] toKeys(String[] strArr, boolean trim) { Collection.Key[] keyArr = new Collection.Key[strArr.length]; for (int i = 0; i < keyArr.length; i++) { keyArr[i] = KeyImpl.init(trim ? strArr[i].trim() : strArr[i]); } return keyArr; }
class class_name[name] begin[{] method[toKeys, return_type[type[Collection]], modifier[public static], parameter[strArr, trim]] begin[{] local_variable[type[Collection], keyArr] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Member...
Keyword[public] Keyword[static] identifier[Collection] operator[SEP] identifier[Key] operator[SEP] operator[SEP] identifier[toKeys] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[strArr] , Keyword[boolean] identifier[trim] operator[SEP] { identifier[Collection] operator[SEP] identifier[...
private IndexOperator getOperator(String condition, boolean idPresent) { if (/* !idPresent && */condition.equals("=")) { return IndexOperator.EQ; } else if (/* !idPresent && */condition.equals(">")) { return IndexOperator.GT; } else if (/* !idPresent && */condition.equals...
class class_name[name] begin[{] method[getOperator, return_type[type[IndexOperator]], modifier[private], parameter[condition, idPresent]] begin[{] if[call[condition.equals, parameter[literal["="]]]] begin[{] return[member[IndexOperator.EQ]] else begin[{] if[call[...
Keyword[private] identifier[IndexOperator] identifier[getOperator] operator[SEP] identifier[String] identifier[condition] , Keyword[boolean] identifier[idPresent] operator[SEP] { Keyword[if] operator[SEP] identifier[condition] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator...
private NFSubstitution extractSubstitution(NFRuleSet owner, NFRule predecessor) { NFSubstitution result; int subStart; int subEnd; // search the rule's rule text for the first two characters of // a substi...
class class_name[name] begin[{] method[extractSubstitution, return_type[type[NFSubstitution]], modifier[private], parameter[owner, predecessor]] begin[{] local_variable[type[NFSubstitution], result] local_variable[type[int], subStart] local_variable[type[int], subEnd] as...
Keyword[private] identifier[NFSubstitution] identifier[extractSubstitution] operator[SEP] identifier[NFRuleSet] identifier[owner] , identifier[NFRule] identifier[predecessor] operator[SEP] { identifier[NFSubstitution] identifier[result] operator[SEP] Keyword[int] identifier[subStart] operator[SEP] Keyword[int] ...
public VarValueDef getBinding( VarDef var) { VarBindingDef binding = bindings_.get( var); return binding == null ? null : binding.getValueDef(); }
class class_name[name] begin[{] method[getBinding, return_type[type[VarValueDef]], modifier[public], parameter[var]] begin[{] local_variable[type[VarBindingDef], binding] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=binding, postfix_operators=[], prefix_ope...
Keyword[public] identifier[VarValueDef] identifier[getBinding] operator[SEP] identifier[VarDef] identifier[var] operator[SEP] { identifier[VarBindingDef] identifier[binding] operator[=] identifier[bindings_] operator[SEP] identifier[get] operator[SEP] identifier[var] operator[SEP] operator[SEP] Keyword[return] i...
public FutureData<PylonSample> sample(PylonSampleRequest sampleRequest) { if (sampleRequest == null || sampleRequest.recordingId == null) { throw new IllegalArgumentException( "A valid sample request object containing a recordingId is required to carry out a Pylon sample" ...
class class_name[name] begin[{] method[sample, return_type[type[FutureData]], modifier[public], parameter[sampleRequest]] begin[{] if[binary_operation[binary_operation[member[.sampleRequest], ==, literal[null]], ||, binary_operation[member[sampleRequest.recordingId], ==, literal[null]]]] begin[...
Keyword[public] identifier[FutureData] operator[<] identifier[PylonSample] operator[>] identifier[sample] operator[SEP] identifier[PylonSampleRequest] identifier[sampleRequest] operator[SEP] { Keyword[if] operator[SEP] identifier[sampleRequest] operator[==] Other[null] operator[||] identifier[sampleRequest] oper...
@Override public void writeBytes(byte[] bytes, int start, int len) throws IOException { for (int i = start; i < start + len; ++i) { if (bytes[i] == 0x00) { out.write(0); out.write(1); } else { out.write((int) bytes[i]); } } out.write(0); out.write(0); }
class class_name[name] begin[{] method[writeBytes, return_type[void], modifier[public], parameter[bytes, start, len]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bytes, postfix_operators=[], prefix_operators=[],...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeBytes] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[start] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] Ke...
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/waterbody/1.0", name = "_GenericApplicationPropertyOfWaterSurface") public JAXBElement<Object> create_GenericApplicationPropertyOfWaterSurface(Object value) { return new JAXBElement<Object>(__GenericApplicationPropertyOfWaterSurface_QNAME, Object.c...
class class_name[name] begin[{] method[create_GenericApplicationPropertyOfWaterSurface, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=__GenericApplicationPropertyOfWaterSurface_QNAME, postfix_operators=[], prefix_opera...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Object] operator[>] identifier[create_GenericApplicationPropertyOfWaterSurface] operator[S...
public static Role fromJSON(JsonReader jsonReader) { Role model; String type = jsonReader.optString("type").orElse(""); if ("gocd".equals(type)) { model = GoCDRoleConfigRepresenter.fromJSON(jsonReader.readJsonObject("attributes")); } else if ("plugin".equals(type)) { ...
class class_name[name] begin[{] method[fromJSON, return_type[type[Role]], modifier[public static], parameter[jsonReader]] begin[{] local_variable[type[Role], model] local_variable[type[String], type] if[literal["gocd"]] begin[{] assign[member[.model], cal...
Keyword[public] Keyword[static] identifier[Role] identifier[fromJSON] operator[SEP] identifier[JsonReader] identifier[jsonReader] operator[SEP] { identifier[Role] identifier[model] operator[SEP] identifier[String] identifier[type] operator[=] identifier[jsonReader] operator[SEP] identifier[optString] operator[SE...
@Override public CPInstance fetchCPInstanceByReferenceCode(long companyId, String externalReferenceCode) { return cpInstancePersistence.fetchByC_ERC(companyId, null); }
class class_name[name] begin[{] method[fetchCPInstanceByReferenceCode, return_type[type[CPInstance]], modifier[public], parameter[companyId, externalReferenceCode]] begin[{] return[call[cpInstancePersistence.fetchByC_ERC, parameter[member[.companyId], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CPInstance] identifier[fetchCPInstanceByReferenceCode] operator[SEP] Keyword[long] identifier[companyId] , identifier[String] identifier[externalReferenceCode] operator[SEP] { Keyword[return] identifier[cpInstancePersistence] operator[SEP] identifier...
@Handler(channels = NetworkChannel.class) public void onInput( Input<ByteBuffer> event, IOSubchannel netChannel) throws ProtocolException, InterruptedException { @SuppressWarnings("unchecked") final Optional<WebAppMsgChannel> appChannel = (Optional<WebAppMsgChanne...
class class_name[name] begin[{] method[onInput, return_type[void], modifier[public], parameter[event, netChannel]] begin[{] local_variable[type[Optional], appChannel] if[call[appChannel.isPresent, parameter[]]] begin[{] call[appChannel.get, parameter[]] e...
annotation[@] identifier[Handler] operator[SEP] identifier[channels] operator[=] identifier[NetworkChannel] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[void] identifier[onInput] operator[SEP] identifier[Input] operator[<] identifier[ByteBuffer] operator[>] identifier[event] , identifier[IOSubcha...
public void addReaderListener(ReaderListener readerListener) { if (readerListener == null) { return; } synchronized (listeners) { if (!listeners.contains(readerListener)) { listeners.add(readerListener); } } }
class class_name[name] begin[{] method[addReaderListener, return_type[void], modifier[public], parameter[readerListener]] begin[{] if[binary_operation[member[.readerListener], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] SYNCHRO...
Keyword[public] Keyword[void] identifier[addReaderListener] operator[SEP] identifier[ReaderListener] identifier[readerListener] operator[SEP] { Keyword[if] operator[SEP] identifier[readerListener] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } Keyword[synchroniz...
public static SiblingCounter alter( final SiblingCounter counter, final int delta ) { assert counter != null; return new SiblingCounter() { @Override public int countSiblingsNamed( Name childName ) { int count = counter.coun...
class class_name[name] begin[{] method[alter, return_type[type[SiblingCounter]], modifier[public static], parameter[counter, delta]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=counter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr...
Keyword[public] Keyword[static] identifier[SiblingCounter] identifier[alter] operator[SEP] Keyword[final] identifier[SiblingCounter] identifier[counter] , Keyword[final] Keyword[int] identifier[delta] operator[SEP] { Keyword[assert] identifier[counter] operator[!=] Other[null] operator[SEP] Keyword[return] Keyw...
public Vec getColumnView(final int j) { final Matrix M = this; return new Vec() { private static final long serialVersionUID = 7107290189250645384L; @Override public int length() { return rows(); } @Ov...
class class_name[name] begin[{] method[getColumnView, return_type[type[Vec]], modifier[public], parameter[j]] begin[{] local_variable[type[Matrix], M] return[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(post...
Keyword[public] identifier[Vec] identifier[getColumnView] operator[SEP] Keyword[final] Keyword[int] identifier[j] operator[SEP] { Keyword[final] identifier[Matrix] identifier[M] operator[=] Keyword[this] operator[SEP] Keyword[return] Keyword[new] identifier[Vec] operator[SEP] operator[SEP] { Keyword[p...
public static Result internalServerError(String content, String charset) { return status(INTERNAL_SERVER_ERROR, content, charset); }
class class_name[name] begin[{] method[internalServerError, return_type[type[Result]], modifier[public static], parameter[content, charset]] begin[{] return[call[.status, parameter[member[.INTERNAL_SERVER_ERROR], member[.content], member[.charset]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Result] identifier[internalServerError] operator[SEP] identifier[String] identifier[content] , identifier[String] identifier[charset] operator[SEP] { Keyword[return] identifier[status] operator[SEP] identifier[INTERNAL_SERVER_ERROR] , identifier[content] , identifier...
public static Marker addLatLngToMap(MapView map, GeoPoint latLng) { return addLatLngToMap(map, latLng, new MarkerOptions()); }
class class_name[name] begin[{] method[addLatLngToMap, return_type[type[Marker]], modifier[public static], parameter[map, latLng]] begin[{] return[call[.addLatLngToMap, parameter[member[.map], member[.latLng], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], ...
Keyword[public] Keyword[static] identifier[Marker] identifier[addLatLngToMap] operator[SEP] identifier[MapView] identifier[map] , identifier[GeoPoint] identifier[latLng] operator[SEP] { Keyword[return] identifier[addLatLngToMap] operator[SEP] identifier[map] , identifier[latLng] , Keyword[new] identifier[Mark...
Node<E> first() { restartFromHead: for (;;) for (Node<E> h = head, p = h, q;;) { if ((q = p.prev) != null && (q = (p = q).prev) != null) // Check for head updates every other hop. // If p == q, we are sure to follow ...
class class_name[name] begin[{] method[first, return_type[type[Node]], modifier[default], parameter[]] begin[{] ForStatement(body=ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=Assignment(expressionl=MemberReference(membe...
identifier[Node] operator[<] identifier[E] operator[>] identifier[first] operator[SEP] operator[SEP] { identifier[restartFromHead] operator[:] Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Node] operator[<] identifier[E] operator[>] identifier[h] oper...
protected void computeLRDs(KNNQuery<O> knnq, DBIDs ids, WritableDoubleDataStore lrds) { FiniteProgress lrdsProgress = LOG.isVerbose() ? new FiniteProgress("LRD", ids.size(), LOG) : null; for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) { final KNNList neighbors = knnq.getKNNForDBID(iter, krea...
class class_name[name] begin[{] method[computeLRDs, return_type[void], modifier[protected], parameter[knnq, ids, lrds]] begin[{] local_variable[type[FiniteProgress], lrdsProgress] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Vari...
Keyword[protected] Keyword[void] identifier[computeLRDs] operator[SEP] identifier[KNNQuery] operator[<] identifier[O] operator[>] identifier[knnq] , identifier[DBIDs] identifier[ids] , identifier[WritableDoubleDataStore] identifier[lrds] operator[SEP] { identifier[FiniteProgress] identifier[lrdsProgress] opera...
public Observable<ServiceResponse<List<WorkbookInner>>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName, CategoryType category, List<String> tags, Boolean canFetchContent) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.sub...
class class_name[name] begin[{] method[listByResourceGroupWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, category, tags, canFetchContent]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, l...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[WorkbookInner] operator[>] operator[>] operator[>] identifier[listByResourceGroupWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[Categ...
public static Uri getFileUri(Context context, File file) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return FileProvider.getUriForFile(context, context.getPackageName() + ".file.path.share", file); } return Uri.fromFile(file); }
class class_name[name] begin[{] method[getFileUri, return_type[type[Uri]], modifier[public static], parameter[context, file]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.N]]] begin[{] return[call[FileProvider.getUriForFile, parameter[me...
Keyword[public] Keyword[static] identifier[Uri] identifier[getFileUri] operator[SEP] identifier[Context] identifier[context] , identifier[File] identifier[file] operator[SEP] { Keyword[if] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION] operator[SEP] identifier[SDK_INT] operator[>=] identifier...
public KeyBundle updateKey(UpdateKeyRequest updateKeyRequest) { return updateKey(updateKeyRequest.vaultBaseUrl(), updateKeyRequest.keyName(), updateKeyRequest.keyVersion(), updateKeyRequest.keyOperations(), updateKeyRequest.keyAttributes(), updateKeyRequest.tags()); }
class class_name[name] begin[{] method[updateKey, return_type[type[KeyBundle]], modifier[public], parameter[updateKeyRequest]] begin[{] return[call[.updateKey, parameter[call[updateKeyRequest.vaultBaseUrl, parameter[]], call[updateKeyRequest.keyName, parameter[]], call[updateKeyRequest.keyVersion, para...
Keyword[public] identifier[KeyBundle] identifier[updateKey] operator[SEP] identifier[UpdateKeyRequest] identifier[updateKeyRequest] operator[SEP] { Keyword[return] identifier[updateKey] operator[SEP] identifier[updateKeyRequest] operator[SEP] identifier[vaultBaseUrl] operator[SEP] operator[SEP] , identifier[upd...
public void postDeregister() { _configuration=null; try { if (null!=_jettyServer) _jettyServer.stop(); } catch(Exception e) { log.warn(e); } finally { super.postDeregister(); } ...
class class_name[name] begin[{] method[postDeregister, return_type[void], modifier[public], parameter[]] begin[{] assign[member[._configuration], literal[null]] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[void] identifier[postDeregister] operator[SEP] operator[SEP] { identifier[_configuration] operator[=] Other[null] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[_jettyServer] operator[SEP] identifier[_jettyServer] operator[SEP] identi...
public int compareTo(MessageResourceBundle you) { final MessageResourceBundleObjectiveWrapper wrappedYou = (MessageResourceBundleObjectiveWrapper) you; final int byDefaultLang = compareToByDefaultLang(wrappedYou); if (byDefaultLang != 0) { return byDefaultLang; } fina...
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[you]] begin[{] local_variable[type[MessageResourceBundleObjectiveWrapper], wrappedYou] local_variable[type[int], byDefaultLang] if[binary_operation[member[.byDefaultLang], !=, l...
Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[MessageResourceBundle] identifier[you] operator[SEP] { Keyword[final] identifier[MessageResourceBundleObjectiveWrapper] identifier[wrappedYou] operator[=] operator[SEP] identifier[MessageResourceBundleObjectiveWrapper] operator[SEP] iden...
public void validate(KeyStore keyStore, Certificate cert) throws CertificateException { Certificate[] certChain = null; if (cert != null && cert instanceof X509Certificate) { ((X509Certificate)cert).checkValidity(); String certAlias = null; try { ...
class class_name[name] begin[{] method[validate, return_type[void], modifier[public], parameter[keyStore, cert]] begin[{] local_variable[type[Certificate], certChain] if[binary_operation[binary_operation[member[.cert], !=, literal[null]], &&, binary_operation[member[.cert], instanceof, ...
Keyword[public] Keyword[void] identifier[validate] operator[SEP] identifier[KeyStore] identifier[keyStore] , identifier[Certificate] identifier[cert] operator[SEP] Keyword[throws] identifier[CertificateException] { identifier[Certificate] operator[SEP] operator[SEP] identifier[certChain] operator[=] Other[null]...
public Object setProperty(String key, LangAlt value) { return super.setProperty(key, value.toString()); }
class class_name[name] begin[{] method[setProperty, return_type[type[Object]], modifier[public], parameter[key, value]] begin[{] return[SuperMethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], membe...
Keyword[public] identifier[Object] identifier[setProperty] operator[SEP] identifier[String] identifier[key] , identifier[LangAlt] identifier[value] operator[SEP] { Keyword[return] Keyword[super] operator[SEP] identifier[setProperty] operator[SEP] identifier[key] , identifier[value] operator[SEP] identifier[toS...
public static DMatrixRMaj rotX( double ang, DMatrixRMaj R ) { if( R == null ) R = new DMatrixRMaj( 3, 3 ); setRotX( ang, R ); return R; }
class class_name[name] begin[{] method[rotX, return_type[type[DMatrixRMaj]], modifier[public static], parameter[ang, R]] begin[{] if[binary_operation[member[.R], ==, literal[null]]] begin[{] assign[member[.R], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[static] identifier[DMatrixRMaj] identifier[rotX] operator[SEP] Keyword[double] identifier[ang] , identifier[DMatrixRMaj] identifier[R] operator[SEP] { Keyword[if] operator[SEP] identifier[R] operator[==] Other[null] operator[SEP] identifier[R] operator[=] Keyword[new] identifier[DMatrixR...
public static Class forName(Class clazz, ClassLoader classLoader) throws ClassNotFoundException, LinkageError { if(clazz == null) return null; if(classLoader == null) { classLoader = getDefaultClassLoader(); } if(clazz.getClassLoader() == null || clazz.getClassLoader().equals(cla...
class class_name[name] begin[{] method[forName, return_type[type[Class]], modifier[public static], parameter[clazz, classLoader]] begin[{] if[binary_operation[member[.clazz], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_o...
Keyword[public] Keyword[static] identifier[Class] identifier[forName] operator[SEP] identifier[Class] identifier[clazz] , identifier[ClassLoader] identifier[classLoader] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] , identifier[LinkageError] { Keyword[if] operator[SEP] identifier[clazz] ope...
public FilterByteBuffer putString(String str, Charset charset) throws IOException { byte[] bytes = str.getBytes(charset); put(bytes).put((byte)0); return this; }
class class_name[name] begin[{] method[putString, return_type[type[FilterByteBuffer]], modifier[public], parameter[str, charset]] begin[{] local_variable[type[byte], bytes] call[.put, parameter[member[.bytes]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[FilterByteBuffer] identifier[putString] operator[SEP] identifier[String] identifier[str] , identifier[Charset] identifier[charset] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] identifier[str] operator[S...
public static void acceptsNodeMultiple(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_N, OPT_NODE), "node id list") .withRequiredArg() .describedAs("node-id-list") .withValuesSeparatedBy(',') .ofType(Integer.class); }
class class_name[name] begin[{] method[acceptsNodeMultiple, return_type[void], modifier[public static], parameter[parser]] begin[{] call[parser.acceptsAll, parameter[call[Arrays.asList, parameter[member[.OPT_N], member[.OPT_NODE]]], literal["node id list"]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[acceptsNodeMultiple] operator[SEP] identifier[OptionParser] identifier[parser] operator[SEP] { identifier[parser] operator[SEP] identifier[acceptsAll] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[OPT_N] , iden...
public static Cell searchRowCell(Sheet sheet, int rowIndex, String searchKey) { if (StringUtils.isEmpty(searchKey)) return null; return searchRow(sheet.getRow(rowIndex), searchKey); }
class class_name[name] begin[{] method[searchRowCell, return_type[type[Cell]], modifier[public static], parameter[sheet, rowIndex, searchKey]] begin[{] if[call[StringUtils.isEmpty, parameter[member[.searchKey]]]] begin[{] return[literal[null]] else begin[{] None end[}] r...
Keyword[public] Keyword[static] identifier[Cell] identifier[searchRowCell] operator[SEP] identifier[Sheet] identifier[sheet] , Keyword[int] identifier[rowIndex] , identifier[String] identifier[searchKey] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isEmpty] operato...
@Override public void unset(String propName) { /* * Require a property name. */ if (propName == null || propName.trim().isEmpty()) { return; } if (propName.equals(PROP_MEMBERS)) { unsetMembers(); } if (propName.equals(PROP_D...
class class_name[name] begin[{] method[unset, return_type[void], modifier[public], parameter[propName]] begin[{] if[binary_operation[binary_operation[member[.propName], ==, literal[null]], ||, call[propName.trim, parameter[]]]] begin[{] return[None] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[unset] operator[SEP] identifier[String] identifier[propName] operator[SEP] { Keyword[if] operator[SEP] identifier[propName] operator[==] Other[null] operator[||] identifier[propName] operator[SEP] identifier[trim] operator[SEP] operator[...
public void chtype(String resourcename, I_CmsResourceType type) throws CmsException { CmsResource resource = readResource(resourcename, CmsResourceFilter.IGNORE_EXPIRATION); getResourceType(resource).chtype(this, m_securityManager, resource, type); }
class class_name[name] begin[{] method[chtype, return_type[void], modifier[public], parameter[resourcename, type]] begin[{] local_variable[type[CmsResource], resource] call[.getResourceType, parameter[member[.resource]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[chtype] operator[SEP] identifier[String] identifier[resourcename] , identifier[I_CmsResourceType] identifier[type] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[CmsResource] identifier[resource] operator[=] identifier[readResource] operator[SEP] ide...
public static snmptrap[] get(nitro_service service) throws Exception{ snmptrap obj = new snmptrap(); snmptrap[] response = (snmptrap[])obj.get_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[snmptrap]], modifier[public static], parameter[service]] begin[{] local_variable[type[snmptrap], obj] local_variable[type[snmptrap], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[snmptrap] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[snmptrap] identifier[obj] operator[=] Keyword[new] identifier[snmptrap] operator[SEP] opera...
public static Observable<JSONObject> sendDataInBackground(JSONObject data, AVQuery<? extends AVInstallation> query) { AVPush push = new AVPush(); push.setData(data); push.setQuery(query); return push.sendInBackground(); }
class class_name[name] begin[{] method[sendDataInBackground, return_type[type[Observable]], modifier[public static], parameter[data, query]] begin[{] local_variable[type[AVPush], push] call[push.setData, parameter[member[.data]]] call[push.setQuery, parameter[member[.que...
Keyword[public] Keyword[static] identifier[Observable] operator[<] identifier[JSONObject] operator[>] identifier[sendDataInBackground] operator[SEP] identifier[JSONObject] identifier[data] , identifier[AVQuery] operator[<] operator[?] Keyword[extends] identifier[AVInstallation] operator[>] identifier[query] operator[S...
public String summarize() { return String.format(SUMMARY_FORMAT, ticket, action, (client != null ? client.getServiceNumber() : 0), (client != null ? client.getNumber() : 0), (client != null ? client.getClientId() : 0), ...
class class_name[name] begin[{] method[summarize, return_type[type[String]], modifier[public], parameter[]] begin[{] return[call[String.format, parameter[member[.SUMMARY_FORMAT], member[.ticket], member[.action], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=client, postfi...
Keyword[public] identifier[String] identifier[summarize] operator[SEP] operator[SEP] { Keyword[return] identifier[String] operator[SEP] identifier[format] operator[SEP] identifier[SUMMARY_FORMAT] , identifier[ticket] , identifier[action] , operator[SEP] identifier[client] operator[!=] Other[null] operator[?] ...
protected int compareByTime(CalendarDate date) { long d1 = this.getDaysSinceEpochUTC(); long d2 = date.getDaysSinceEpochUTC(); return ((d1 < d2) ? -1 : ((d1 == d2) ? 0 : 1)); }
class class_name[name] begin[{] method[compareByTime, return_type[type[int]], modifier[protected], parameter[date]] begin[{] local_variable[type[long], d1] local_variable[type[long], d2] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=d1, postfix_opera...
Keyword[protected] Keyword[int] identifier[compareByTime] operator[SEP] identifier[CalendarDate] identifier[date] operator[SEP] { Keyword[long] identifier[d1] operator[=] Keyword[this] operator[SEP] identifier[getDaysSinceEpochUTC] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[d2] operator[=...
public static INDArray rsub(INDArray x, INDArray y, INDArray z, int... dimensions) { if(dimensions == null || dimensions.length == 0) { validateShapesNoDimCase(x,y,z); return Nd4j.getExecutioner().exec(new OldSubOp(x,y,z)); } return Nd4j.getExecutioner().exec(new Broadca...
class class_name[name] begin[{] method[rsub, return_type[type[INDArray]], modifier[public static], parameter[x, y, z, dimensions]] begin[{] if[binary_operation[binary_operation[member[.dimensions], ==, literal[null]], ||, binary_operation[member[dimensions.length], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[static] identifier[INDArray] identifier[rsub] operator[SEP] identifier[INDArray] identifier[x] , identifier[INDArray] identifier[y] , identifier[INDArray] identifier[z] , Keyword[int] operator[...] identifier[dimensions] operator[SEP] { Keyword[if] operator[SEP] identifier[dimensions] ...
private Level getLogLevel() { return isQuiet() ? Level.OFF : isVerbose() ? Level.DEBUG : Level.INFO; }
class class_name[name] begin[{] method[getLogLevel, return_type[type[Level]], modifier[private], parameter[]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=isQuiet, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), if_false=Te...
Keyword[private] identifier[Level] identifier[getLogLevel] operator[SEP] operator[SEP] { Keyword[return] identifier[isQuiet] operator[SEP] operator[SEP] operator[?] identifier[Level] operator[SEP] identifier[OFF] operator[:] identifier[isVerbose] operator[SEP] operator[SEP] operator[?] identifier[Level] operato...
@Override public CommercePriceList fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommercePriceListModelImpl.ENTITY_CACHE_ENABLED, CommercePriceListImpl.class, primaryKey); if (serializable == nullModel) { return null; } CommercePriceList commercePriceLi...
class class_name[name] begin[{] method[fetchByPrimaryKey, return_type[type[CommercePriceList]], modifier[public], parameter[primaryKey]] begin[{] local_variable[type[Serializable], serializable] if[binary_operation[member[.serializable], ==, member[.nullModel]]] begin[{] ret...
annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceList] identifier[fetchByPrimaryKey] operator[SEP] identifier[Serializable] identifier[primaryKey] operator[SEP] { identifier[Serializable] identifier[serializable] operator[=] identifier[entityCache] operator[SEP] identifier[getResult] op...
public static void foreachRandomInt(int streamSize, int inclusiveLowerBound, int exclusiveUpperBound, IntConsumer eachRandomIntConsumer) { foreachRandomInt(streamSize, new Random(), inclusiveLowerBound, exclusiveUpperBound, eachRandomIntConsumer); }
class class_name[name] begin[{] method[foreachRandomInt, return_type[void], modifier[public static], parameter[streamSize, inclusiveLowerBound, exclusiveUpperBound, eachRandomIntConsumer]] begin[{] call[.foreachRandomInt, parameter[member[.streamSize], ClassCreator(arguments=[], body=None, cons...
Keyword[public] Keyword[static] Keyword[void] identifier[foreachRandomInt] operator[SEP] Keyword[int] identifier[streamSize] , Keyword[int] identifier[inclusiveLowerBound] , Keyword[int] identifier[exclusiveUpperBound] , identifier[IntConsumer] identifier[eachRandomIntConsumer] operator[SEP] { identifier[fore...
public Object startupService(BundleContext bundleContext) { Map<String,Object> props = this.getServiceProperties(); return Environment.getEnvironment(props); // There is no need to check if it is already up (only 1 can run) }
class class_name[name] begin[{] method[startupService, return_type[type[Object]], modifier[public], parameter[bundleContext]] begin[{] local_variable[type[Map], props] return[call[Environment.getEnvironment, parameter[member[.props]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[startupService] operator[SEP] identifier[BundleContext] identifier[bundleContext] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[props] operator[=] Keyword[this] operator[SEP] identifier[getServicePropertie...
public NodeList nodelist() throws javax.xml.transform.TransformerException { error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST, new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!"); return null; }
class class_name[name] begin[{] method[nodelist, return_type[type[NodeList]], modifier[public], parameter[]] begin[{] call[.error, parameter[member[XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MethodInvocation(argum...
Keyword[public] identifier[NodeList] identifier[nodelist] operator[SEP] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[transform] operator[SEP] identifier[TransformerException] { identifier[error] operator[SEP] identifier[XPATHErrorResources] operator[SEP] ...
@SuppressWarnings("unchecked") public static <A> A create(Class<A> swaggerInterface, AzureServiceClient azureServiceClient) { return AzureProxy.create(swaggerInterface, azureServiceClient.azureEnvironment(), azureServiceClient.httpPipeline(), azureServiceClient.serializerAdapter()); }
class class_name[name] begin[{] method[create, return_type[type[A]], modifier[public static], parameter[swaggerInterface, azureServiceClient]] begin[{] return[call[AzureProxy.create, parameter[member[.swaggerInterface], call[azureServiceClient.azureEnvironment, parameter[]], call[azureServiceClient.htt...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[A] operator[>] identifier[A] identifier[create] operator[SEP] identifier[Class] operator[<] identifier[A] operator[>] identifier[swaggerInterface] , identifier[AzureServiceClien...
private static byte[] stringToBytes(String text) { byte[] data; try { data = text.getBytes(Charset.forName(StandardCharsets.UTF_8.name())); } catch (UnsupportedCharsetException ex) { data = text.getBytes(Charset.defaultCharset()); } return data; }
class class_name[name] begin[{] method[stringToBytes, return_type[type[byte]], modifier[private static], parameter[text]] begin[{] local_variable[type[byte], data] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=data, postfix_operators=[], prefix...
Keyword[private] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[stringToBytes] operator[SEP] identifier[String] identifier[text] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] Keyword[try] { identifier[data] operator[=] identifier[text] o...
private ColumnPrinter build(Map<String, Entry> entries) { ColumnPrinter printer = new ColumnPrinter(); printer.addColumn("PROPERTY"); printer.addColumn("FIELD"); printer.addColumn("DEFAULT"); printer.addColumn("VALUE"); printer.addColumn("DESCRIPTION"); Map<...
class class_name[name] begin[{] method[build, return_type[type[ColumnPrinter]], modifier[private], parameter[entries]] begin[{] local_variable[type[ColumnPrinter], printer] call[printer.addColumn, parameter[literal["PROPERTY"]]] call[printer.addColumn, parameter[literal[...
Keyword[private] identifier[ColumnPrinter] identifier[build] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Entry] operator[>] identifier[entries] operator[SEP] { identifier[ColumnPrinter] identifier[printer] operator[=] Keyword[new] identifier[ColumnPrinter] operator[SEP] operator[SE...
public ServiceFuture<RecommendedActionInner> updateAsync(String resourceGroupName, String serverName, String databaseName, String advisorName, String recommendedActionName, RecommendedActionStateInfo state, final ServiceCallback<RecommendedActionInner> serviceCallback) { return ServiceFuture.fromResponse(update...
class class_name[name] begin[{] method[updateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, databaseName, advisorName, recommendedActionName, state, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.updateWithServiceR...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[RecommendedActionInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[databaseName] , identifier[String] identifier[advisor...
@Nullable public static <T extends IdentifiedDataSerializable> ConfigSupplier<T> supplierFor(@Nonnull Class<T> cls) { return CONFIG_SUPPLIERS.get(cls); }
class class_name[name] begin[{] method[supplierFor, return_type[type[ConfigSupplier]], modifier[public static], parameter[cls]] begin[{] return[call[CONFIG_SUPPLIERS.get, parameter[member[.cls]]]] end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[IdentifiedDataSerializable] operator[>] identifier[ConfigSupplier] operator[<] identifier[T] operator[>] identifier[supplierFor] operator[SEP] annotation[@] identifier[Nonnull] identifier[Class] oper...
public static boolean excludePath(String path) { String[] excludePatterns = SiteProperties.getExcludePatterns(); if (ArrayUtils.isNotEmpty(excludePatterns)) { return RegexUtils.matchesAny(path, excludePatterns); } else { return false; } }
class class_name[name] begin[{] method[excludePath, return_type[type[boolean]], modifier[public static], parameter[path]] begin[{] local_variable[type[String], excludePatterns] if[call[ArrayUtils.isNotEmpty, parameter[member[.excludePatterns]]]] begin[{] return[call[RegexUti...
Keyword[public] Keyword[static] Keyword[boolean] identifier[excludePath] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[excludePatterns] operator[=] identifier[SiteProperties] operator[SEP] identifier[getExcludePatterns] operator[SEP] o...
@Override public String build(final RegisteredService service, final String extension) { return StringUtils.remove(service.getName(), ' ') + '-' + service.getId() + '.' + extension; }
class class_name[name] begin[{] method[build, return_type[type[String]], modifier[public], parameter[service, extension]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[call[StringUtils.remove, parameter[call[service.getName, parameter[]], literal[' ']]], +, literal...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[build] operator[SEP] Keyword[final] identifier[RegisteredService] identifier[service] , Keyword[final] identifier[String] identifier[extension] operator[SEP] { Keyword[return] identifier[StringUtils] operator[SEP] identifier[remove...
@Override public int getConnectedLonePairsCount(IAtom atom) { int count = 0; for (int i = 0; i < lonePairCount; i++) { if (lonePairs[i].contains(atom)) ++count; } return count; }
class class_name[name] begin[{] method[getConnectedLonePairsCount, return_type[type[int]], modifier[public], parameter[atom]] begin[{] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=lonePairs, postfix_operat...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[getConnectedLonePairsCount] operator[SEP] identifier[IAtom] identifier[atom] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] oper...
public String getRemoteClassName() { String strClassName = Appointment.class.getName().toString(); int iThinPos = strClassName.indexOf("thin."); return strClassName.substring(0, iThinPos) + strClassName.substring(iThinPos + 5); }
class class_name[name] begin[{] method[getRemoteClassName, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], strClassName] local_variable[type[int], iThinPos] return[binary_operation[call[strClassName.substring, parameter[literal[0], member[...
Keyword[public] identifier[String] identifier[getRemoteClassName] operator[SEP] operator[SEP] { identifier[String] identifier[strClassName] operator[=] identifier[Appointment] operator[SEP] Keyword[class] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SE...
private InterfaceHttpData findMultipartDelimiter(String delimiter, MultiPartStatus dispositionStatus, MultiPartStatus closeDelimiterStatus) { // --AaB03x or --AaB03x-- int readerIndex = undecodedChunk.readerIndex(); try { skipControlCharacters(undecodedChunk); } c...
class class_name[name] begin[{] method[findMultipartDelimiter, return_type[type[InterfaceHttpData]], modifier[private], parameter[delimiter, dispositionStatus, closeDelimiterStatus]] begin[{] local_variable[type[int], readerIndex] TryStatement(block=[StatementExpression(expression=MethodInvocat...
Keyword[private] identifier[InterfaceHttpData] identifier[findMultipartDelimiter] operator[SEP] identifier[String] identifier[delimiter] , identifier[MultiPartStatus] identifier[dispositionStatus] , identifier[MultiPartStatus] identifier[closeDelimiterStatus] operator[SEP] { Keyword[int] identifier[readerIndex...
public String getExplorerResource() { // get the current explorer mode String mode = getExplorerMode(); if (mode == null) { mode = CmsWorkplace.VIEW_EXPLORER; } if (CmsWorkplace.VIEW_EXPLORER.equals(mode)) { // append the current site to the key when in e...
class class_name[name] begin[{] method[getExplorerResource, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], mode] if[binary_operation[member[.mode], ==, literal[null]]] begin[{] assign[member[.mode], member[CmsWorkp...
Keyword[public] identifier[String] identifier[getExplorerResource] operator[SEP] operator[SEP] { identifier[String] identifier[mode] operator[=] identifier[getExplorerMode] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mode] operator[==] Other[null] operator[SEP] { ide...
@Override public void afterEach(ExtensionContext context) { context.getStore(MOCKITO).remove(SESSION, MockitoSession.class) .finishMocking(); }
class class_name[name] begin[{] method[afterEach, return_type[void], modifier[public], parameter[context]] begin[{] call[context.getStore, parameter[member[.MOCKITO]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[afterEach] operator[SEP] identifier[ExtensionContext] identifier[context] operator[SEP] { identifier[context] operator[SEP] identifier[getStore] operator[SEP] identifier[MOCKITO] operator[SEP] operator[SEP] identifier[remove] operator[SE...
@Override public RegisterRobotResult registerRobot(RegisterRobotRequest request) { request = beforeClientExecution(request); return executeRegisterRobot(request); }
class class_name[name] begin[{] method[registerRobot, return_type[type[RegisterRobotResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeRegisterRobot, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[RegisterRobotResult] identifier[registerRobot] operator[SEP] identifier[RegisterRobotRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
public final <K, V, M extends Map<K, V>> M toMap( final Function<? super T, ? extends K> keyFunction, final Function<? super T, ? extends V> valueFunction, final M map) { Preconditions.checkNotNull(keyFunction); Preconditions.checkNotNull(valueFunction); Preconditions.che...
class class_name[name] begin[{] method[toMap, return_type[type[M]], modifier[final public], parameter[keyFunction, valueFunction, map]] begin[{] call[Preconditions.checkNotNull, parameter[member[.keyFunction]]] call[Preconditions.checkNotNull, parameter[member[.valueFunction]]] ...
Keyword[public] Keyword[final] operator[<] identifier[K] , identifier[V] , identifier[M] Keyword[extends] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[M] identifier[toMap] operator[SEP] Keyword[final] identifier[Function] operator[<] operator[?] Keyword[super] identifi...
public void beginStart(String resourceGroupName, String applicationGatewayName) { beginStartWithServiceResponseAsync(resourceGroupName, applicationGatewayName).toBlocking().single().body(); }
class class_name[name] begin[{] method[beginStart, return_type[void], modifier[public], parameter[resourceGroupName, applicationGatewayName]] begin[{] call[.beginStartWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.applicationGatewayName]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[beginStart] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[applicationGatewayName] operator[SEP] { identifier[beginStartWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[applicationGatewayN...
public List<FieldReferenceExpression> getAllInputFields() { return fieldReferences.stream().flatMap(input -> input.values().stream()).collect(toList()); }
class class_name[name] begin[{] method[getAllInputFields, return_type[type[List]], modifier[public], parameter[]] begin[{] return[call[fieldReferences.stream, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[FieldReferenceExpression] operator[>] identifier[getAllInputFields] operator[SEP] operator[SEP] { Keyword[return] identifier[fieldReferences] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[flatMap] operator[SEP] identi...
public static Module<Factors> getFactorsModule(FactorGraph fg, Algebra s) { ForwardOnlyFactorsModule fm = new ForwardOnlyFactorsModule(null, fg, s); fm.forward(); return fm; }
class class_name[name] begin[{] method[getFactorsModule, return_type[type[Module]], modifier[public static], parameter[fg, s]] begin[{] local_variable[type[ForwardOnlyFactorsModule], fm] call[fm.forward, parameter[]] return[member[.fm]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Module] operator[<] identifier[Factors] operator[>] identifier[getFactorsModule] operator[SEP] identifier[FactorGraph] identifier[fg] , identifier[Algebra] identifier[s] operator[SEP] { identifier[ForwardOnlyFactorsModule] identifier[fm] operator[=] Keyword[new] identi...
public JSONBuilder object() { if( this.mode == 'i' ){ this.mode = 'o'; } if( this.mode == 'o' || this.mode == 'a' ){ this.append( "{" ); this.push( 'k' ); this.comma = false; return this; } throw new JSONException( "Misplaced object." ); }
class class_name[name] begin[{] method[object, return_type[type[JSONBuilder]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.mode]], ==, literal['i']]] begin[{] assign[THIS[member[None.mode]], literal['o']] else begin[{] None ...
Keyword[public] identifier[JSONBuilder] identifier[object] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mode] operator[==] literal[String] operator[SEP] { Keyword[this] operator[SEP] identifier[mode] operator[=] literal[String] operator[SEP] } ...
public void finish() { String length = CmsUploadButton.formatBytes(m_contentLength); int fileCount = m_orderedFilenamesToUpload.size(); m_bar.setValue(100); m_fileinfo.removeAllRows(); m_fileinfo.setHTML(0, 0, "<b>" + Messages.get().key(Messages.GUI_UPLOAD_FINISH_UPLOADED_...
class class_name[name] begin[{] method[finish, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[String], length] local_variable[type[int], fileCount] call[m_bar.setValue, parameter[literal[100]]] call[m_fileinfo.removeAllRows, parame...
Keyword[public] Keyword[void] identifier[finish] operator[SEP] operator[SEP] { identifier[String] identifier[length] operator[=] identifier[CmsUploadButton] operator[SEP] identifier[formatBytes] operator[SEP] identifier[m_contentLength] operator[SEP] operator[SEP] Keyword[int] identifier[fileCount] operator[=] i...
public boolean hasPermission(Authentication authentication, Object resource, Object privilege) { boolean logPermission = isLogPermission(resource); return checkRole(authentication, privilege, logPermission) || checkPermission(...
class class_name[name] begin[{] method[hasPermission, return_type[type[boolean]], modifier[public], parameter[authentication, resource, privilege]] begin[{] local_variable[type[boolean], logPermission] return[binary_operation[call[.checkRole, parameter[member[.authentication], member[.privilege...
Keyword[public] Keyword[boolean] identifier[hasPermission] operator[SEP] identifier[Authentication] identifier[authentication] , identifier[Object] identifier[resource] , identifier[Object] identifier[privilege] operator[SEP] { Keyword[boolean] identifier[logPermission] operator[=] identifier[isLogPermission] ...
@Override public DescribeRefreshSchemasStatusResult describeRefreshSchemasStatus(DescribeRefreshSchemasStatusRequest request) { request = beforeClientExecution(request); return executeDescribeRefreshSchemasStatus(request); }
class class_name[name] begin[{] method[describeRefreshSchemasStatus, return_type[type[DescribeRefreshSchemasStatusResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeRefr...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeRefreshSchemasStatusResult] identifier[describeRefreshSchemasStatus] operator[SEP] identifier[DescribeRefreshSchemasStatusRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[S...
public Object encode(final Object o) { if (o == null) { return null; } return encode(o.getClass(), o); }
class class_name[name] begin[{] method[encode, return_type[type[Object]], modifier[public], parameter[o]] begin[{] if[binary_operation[member[.o], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[.encode, parameter[call...
Keyword[public] identifier[Object] identifier[encode] operator[SEP] Keyword[final] identifier[Object] identifier[o] operator[SEP] { Keyword[if] operator[SEP] identifier[o] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[enco...