code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public final int indexOf(@ColorInt final int color) { for (int i = 0; i < colorPalette.length; i++) { if (colorPalette[i] == color) { return i; } } return -1; }
class class_name[name] begin[{] method[indexOf, return_type[type[int]], modifier[final public], parameter[color]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=colorPalette, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[final] Keyword[int] identifier[indexOf] operator[SEP] annotation[@] identifier[ColorInt] Keyword[final] Keyword[int] identifier[color] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[colorPalette...
@Override public ConfigBuilder withSources(ConfigSource... sources) { synchronized (this) { for (ConfigSource source : sources) { addSource(source); } } return this; }
class class_name[name] begin[{] method[withSources, return_type[type[ConfigBuilder]], modifier[public], parameter[sources]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Memb...
annotation[@] identifier[Override] Keyword[public] identifier[ConfigBuilder] identifier[withSources] operator[SEP] identifier[ConfigSource] operator[...] identifier[sources] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { Keyword[for] operator[SEP] identifier[ConfigSo...
@Deprecated public static synchronized String hash(String data) { return org.jivesoftware.smack.util.SHA1.hex(data); }
class class_name[name] begin[{] method[hash, return_type[type[String]], modifier[synchronized public static], parameter[data]] begin[{] return[call[org.jivesoftware.smack.util.SHA1.hex, parameter[member[.data]]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[synchronized] identifier[String] identifier[hash] operator[SEP] identifier[String] identifier[data] operator[SEP] { Keyword[return] identifier[org] operator[SEP] identifier[jivesoftware] operator[SEP] identifier[smack] operator[SEP] ide...
private Object invokeTarget(Object target, Method method, Object[] args) throws Throwable { Object returnValue; try { returnValue = method.invoke(target, args); } catch(InvocationTargetException ite) { throw ite.getTargetException(); } return returnValue; ...
class class_name[name] begin[{] method[invokeTarget, return_type[type[Object]], modifier[private], parameter[target, method, args]] begin[{] local_variable[type[Object], returnValue] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=returnValue, po...
Keyword[private] identifier[Object] identifier[invokeTarget] operator[SEP] identifier[Object] identifier[target] , identifier[Method] identifier[method] , identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Throwable] { identifier[Object] identifier[returnVa...
public ProfileRequest getProfileAfter(@NonNull AuthenticationRequest authenticationRequest) { final ParameterizableRequest<UserProfile, AuthenticationException> profileRequest = profileRequest(); return new ProfileRequest(authenticationRequest, profileRequest); }
class class_name[name] begin[{] method[getProfileAfter, return_type[type[ProfileRequest]], modifier[public], parameter[authenticationRequest]] begin[{] local_variable[type[ParameterizableRequest], profileRequest] return[ClassCreator(arguments=[MemberReference(member=authenticationRequest, postf...
Keyword[public] identifier[ProfileRequest] identifier[getProfileAfter] operator[SEP] annotation[@] identifier[NonNull] identifier[AuthenticationRequest] identifier[authenticationRequest] operator[SEP] { Keyword[final] identifier[ParameterizableRequest] operator[<] identifier[UserProfile] , identifier[Authentica...
public EClass getIfcCalendarDate() { if (ifcCalendarDateEClass == null) { ifcCalendarDateEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(66); } return ifcCalendarDateEClass; }
class class_name[name] begin[{] method[getIfcCalendarDate, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcCalendarDateEClass], ==, literal[null]]] begin[{] assign[member[.ifcCalendarDateEClass], Cast(expression=MethodInv...
Keyword[public] identifier[EClass] identifier[getIfcCalendarDate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcCalendarDateEClass] operator[==] Other[null] operator[SEP] { identifier[ifcCalendarDateEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[E...
public BoxRequestsFolder.GetTrashedFolder getTrashedFolderRequest(String id) { BoxRequestsFolder.GetTrashedFolder request = new BoxRequestsFolder.GetTrashedFolder(id, getTrashedFolderUrl(id), mSession); return request; }
class class_name[name] begin[{] method[getTrashedFolderRequest, return_type[type[BoxRequestsFolder]], modifier[public], parameter[id]] begin[{] local_variable[type[BoxRequestsFolder], request] return[member[.request]] end[}] END[}]
Keyword[public] identifier[BoxRequestsFolder] operator[SEP] identifier[GetTrashedFolder] identifier[getTrashedFolderRequest] operator[SEP] identifier[String] identifier[id] operator[SEP] { identifier[BoxRequestsFolder] operator[SEP] identifier[GetTrashedFolder] identifier[request] operator[=] Keyword[new] identi...
@Deprecated public TableDescription waitForActiveOrDelete() throws InterruptedException { try { for (;;) { TableDescription desc = describe(); final String status = desc.getTableStatus(); if (TableStatus.fromValue(status) == TableStatus.ACTIVE) ...
class class_name[name] begin[{] method[waitForActiveOrDelete, return_type[type[TableDescription]], modifier[public], parameter[]] begin[{] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[],...
annotation[@] identifier[Deprecated] Keyword[public] identifier[TableDescription] identifier[waitForActiveOrDelete] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[try] { Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identi...
private static void setDefaultProperties(CitrusAppConfiguration configuration) { for (Map.Entry<String, String> entry : configuration.getDefaultProperties().entrySet()) { log.debug(String.format("Setting application property %s=%s", entry.getKey(), entry.getValue())); System.setProperty(...
class class_name[name] begin[{] method[setDefaultProperties, return_type[void], modifier[private static], parameter[configuration]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_op...
Keyword[private] Keyword[static] Keyword[void] identifier[setDefaultProperties] operator[SEP] identifier[CitrusAppConfiguration] identifier[configuration] operator[SEP] { Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] id...
public static <T> void makeAccessible(final Constructor<T> constructor) { if (!Modifier.isPublic(constructor.getModifiers()) || !Modifier.isPublic(constructor.getDeclaringClass() .getModifiers())) { constructor.setAccessible(true); } }
class class_name[name] begin[{] method[makeAccessible, return_type[void], modifier[public static], parameter[constructor]] begin[{] if[binary_operation[call[Modifier.isPublic, parameter[call[constructor.getModifiers, parameter[]]]], ||, call[Modifier.isPublic, parameter[call[constructor.getDecl...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[makeAccessible] operator[SEP] Keyword[final] identifier[Constructor] operator[<] identifier[T] operator[>] identifier[constructor] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[Modifier] operator[SEP...
public static String capitalize( String text ) { if (text == null || text.length() == 0) return text; if (Character.isLowerCase(text.charAt(0))) return Character.toUpperCase(text.charAt(0)) + text.substring(1); else return text; }
class class_name[name] begin[{] method[capitalize, return_type[type[String]], modifier[public static], parameter[text]] begin[{] if[binary_operation[binary_operation[member[.text], ==, literal[null]], ||, binary_operation[call[text.length, parameter[]], ==, literal[0]]]] begin[{] return[member[...
Keyword[public] Keyword[static] identifier[String] identifier[capitalize] operator[SEP] identifier[String] identifier[text] operator[SEP] { Keyword[if] operator[SEP] identifier[text] operator[==] Other[null] operator[||] identifier[text] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] O...
public String delete(MappedStatement ms) { Class<?> entityClass = getEntityClass(ms); StringBuilder sql = new StringBuilder(); //如果设置了安全删除,就不允许执行不带查询条件的 delete 方法 if (getConfig().isSafeDelete()) { sql.append(SqlHelper.notAllNullParameterCheck("_parameter", EntityHelper.getCol...
class class_name[name] begin[{] method[delete, return_type[type[String]], modifier[public], parameter[ms]] begin[{] local_variable[type[Class], entityClass] local_variable[type[StringBuilder], sql] if[call[.getConfig, parameter[]]] begin[{] call[sql.appen...
Keyword[public] identifier[String] identifier[delete] operator[SEP] identifier[MappedStatement] identifier[ms] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[entityClass] operator[=] identifier[getEntityClass] operator[SEP] identifier[ms] operator[SEP] operator[SEP] identifier[S...
public Map<String, List<String>> parse(final InputStream mapping) { final Properties mappingProperties = new Properties(); try { mappingProperties.load(mapping); final Map<String, List<String>> serializedContent = new HashMap<>(); final Set<String> kinds = mappingP...
class class_name[name] begin[{] method[parse, return_type[type[Map]], modifier[public], parameter[mapping]] begin[{] local_variable[type[Properties], mappingProperties] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operato...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[parse] operator[SEP] Keyword[final] identifier[InputStream] identifier[mapping] operator[SEP] { Keyword[final] identifier[Properties] identifier[mappingProperties] ...
public long numArcs() { if(CACHING && (cachedNumArcs != -1)) { return cachedNumArcs; } long numArcs = 0; for(Vertex v : vertices()) { numArcs += getForwardNavigator().next(v).size(); } if(CACHING) { cachedNumArcs = numArcs; } return numArcs; }
class class_name[name] begin[{] method[numArcs, return_type[type[long]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.CACHING], &&, binary_operation[member[.cachedNumArcs], !=, literal[1]]]] begin[{] return[member[.cachedNumArcs]] else begin[{] None ...
Keyword[public] Keyword[long] identifier[numArcs] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[CACHING] operator[&&] operator[SEP] identifier[cachedNumArcs] operator[!=] operator[-] Other[1] operator[SEP] operator[SEP] { Keyword[return] identifier[cachedNumArcs] operator[SEP] ...
public RECORD parse(final String value) throws DissectionFailure, InvalidDissectorException, MissingDissectorsException { assembleDissectors(); final Parsable<RECORD> parsable = createParsable(); if (parsable == null) { return null; } parsable.setRootDissectio...
class class_name[name] begin[{] method[parse, return_type[type[RECORD]], modifier[public], parameter[value]] begin[{] call[.assembleDissectors, parameter[]] local_variable[type[Parsable], parsable] if[binary_operation[member[.parsable], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[RECORD] identifier[parse] operator[SEP] Keyword[final] identifier[String] identifier[value] operator[SEP] Keyword[throws] identifier[DissectionFailure] , identifier[InvalidDissectorException] , identifier[MissingDissectorsException] { identifier[assembleDissectors] operator[SEP] oper...
void reportTaskFinished(TaskAttemptID taskid, boolean commitPending) { TaskInProgress tip; synchronized (this) { tip = tasks.get(taskid); } if (tip != null) { tip.reportTaskFinished(commitPending); } else { LOG.warn("Unknown child task finished: "+taskid+". Ignored."); } }
class class_name[name] begin[{] method[reportTaskFinished, return_type[void], modifier[default], parameter[taskid, commitPending]] begin[{] local_variable[type[TaskInProgress], tip] SYNCHRONIZED[THIS[]] BEGIN[{] assign[member[.tip], call[tasks.get, parameter[memb...
Keyword[void] identifier[reportTaskFinished] operator[SEP] identifier[TaskAttemptID] identifier[taskid] , Keyword[boolean] identifier[commitPending] operator[SEP] { identifier[TaskInProgress] identifier[tip] operator[SEP] Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { identifier[ti...
public BaasDocument put(String name, JsonArray value) { data.put(checkKey(name), value); return this; }
class class_name[name] begin[{] method[put, return_type[type[BaasDocument]], modifier[public], parameter[name, value]] begin[{] call[data.put, parameter[call[.checkKey, parameter[member[.name]]], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[BaasDocument] identifier[put] operator[SEP] identifier[String] identifier[name] , identifier[JsonArray] identifier[value] operator[SEP] { identifier[data] operator[SEP] identifier[put] operator[SEP] identifier[checkKey] operator[SEP] identifier[name] operator[SEP] , identifier[value]...
@Override public void exitScope() { Map<Key<?>, Object> scopeMap = scopeStackCache.get().peek(); performDisposal(scopeMap); scopeStackCache.get().pop(); log.debug("Exited scope."); }
class class_name[name] begin[{] method[exitScope, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Map], scopeMap] call[.performDisposal, parameter[member[.scopeMap]]] call[scopeStackCache.get, parameter[]] call[log.debug, pa...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[exitScope] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[Key] operator[<] operator[?] operator[>] , identifier[Object] operator[>] identifier[scopeMap] operator[=] identifier[scopeStackCache] operator[SEP] identif...
public void reset() { for (LifeCycle component : components) { if (component.isStarted()) { component.stop(); } } components.clear(); }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=isStarted, postfix_operators=[], prefix_operators=[], qualifier=component, select...
Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[LifeCycle] identifier[component] operator[:] identifier[components] operator[SEP] { Keyword[if] operator[SEP] identifier[component] operator[SEP] identifier[isStarted] operator[SEP] ope...
private Path getTaskLogFileFromId(String taskId) { return new Path(mergePaths(config.getDirectory(), taskId.replace(':', '_'))); }
class class_name[name] begin[{] method[getTaskLogFileFromId, return_type[type[Path]], modifier[private], parameter[taskId]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDirectory, postfix_operators=[], prefix_operators=[], qualifier=config...
Keyword[private] identifier[Path] identifier[getTaskLogFileFromId] operator[SEP] identifier[String] identifier[taskId] operator[SEP] { Keyword[return] Keyword[new] identifier[Path] operator[SEP] identifier[mergePaths] operator[SEP] identifier[config] operator[SEP] identifier[getDirectory] operator[SEP] operator[...
private void basic(String operator, MtasFunctionParserItem item) throws ParseException { if (!defined()) { String type = item.getType(); MtasFunctionParserFunction parser; tmpOperatorList.add(operator); if (operator.equals(BASIC_OPERATOR_DIVIDE)) { dataType = CodecUtil.DATA_TYP...
class class_name[name] begin[{] method[basic, return_type[void], modifier[private], parameter[operator, item]] begin[{] if[call[.defined, parameter[]]] begin[{] local_variable[type[String], type] local_variable[type[MtasFunctionParserFunction], parser] ...
Keyword[private] Keyword[void] identifier[basic] operator[SEP] identifier[String] identifier[operator] , identifier[MtasFunctionParserItem] identifier[item] operator[SEP] Keyword[throws] identifier[ParseException] { Keyword[if] operator[SEP] operator[!] identifier[defined] operator[SEP] operator[SEP] operator[S...
protected final void doValues(final Map<K, ? extends V> entries) { apply(entries.isEmpty() ? Nop.instance() : new Values<>(entries)); }
class class_name[name] begin[{] method[doValues, return_type[void], modifier[final protected], parameter[entries]] begin[{] call[.apply, parameter[TernaryExpression(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=[], qualifier=entries, selectors=[...
Keyword[protected] Keyword[final] Keyword[void] identifier[doValues] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[K] , operator[?] Keyword[extends] identifier[V] operator[>] identifier[entries] operator[SEP] { identifier[apply] operator[SEP] identifier[entries] operator[SEP] identifier[is...
public CurrencyUnit getCurrency(CurrencyQuery query) { Set<CurrencyUnit> currencies = getCurrencies(query); if (currencies.isEmpty()) { return null; } if (currencies.size() == 1) { return currencies.iterator().next(); } throw new MonetaryException(...
class class_name[name] begin[{] method[getCurrency, return_type[type[CurrencyUnit]], modifier[public], parameter[query]] begin[{] local_variable[type[Set], currencies] if[call[currencies.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] identifier[CurrencyUnit] identifier[getCurrency] operator[SEP] identifier[CurrencyQuery] identifier[query] operator[SEP] { identifier[Set] operator[<] identifier[CurrencyUnit] operator[>] identifier[currencies] operator[=] identifier[getCurrencies] operator[SEP] identifier[query] operator[SEP] op...
public static SimpleFeature tofeature( LasRecord r, Integer featureId, CoordinateReferenceSystem crs ) { final Point point = toGeometry(r); double elev = r.z; if (!Double.isNaN(r.groundElevation)) { elev = r.groundElevation; } if (featureId == null) { feat...
class class_name[name] begin[{] method[tofeature, return_type[type[SimpleFeature]], modifier[public static], parameter[r, featureId, crs]] begin[{] local_variable[type[Point], point] local_variable[type[double], elev] if[call[Double.isNaN, parameter[member[r.groundElevation]]]] ...
Keyword[public] Keyword[static] identifier[SimpleFeature] identifier[tofeature] operator[SEP] identifier[LasRecord] identifier[r] , identifier[Integer] identifier[featureId] , identifier[CoordinateReferenceSystem] identifier[crs] operator[SEP] { Keyword[final] identifier[Point] identifier[point] operator[=] id...
public Observable<List<Mail>> getMailsOfLabel(final String l) { return getFilteredMailList(new Func1<Mail, Boolean>() { @Override public Boolean call(Mail mail) { return mail.getLabel().equals(l); } }); }
class class_name[name] begin[{] method[getMailsOfLabel, return_type[type[Observable]], modifier[public], parameter[l]] begin[{] return[call[.getFilteredMailList, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(exp...
Keyword[public] identifier[Observable] operator[<] identifier[List] operator[<] identifier[Mail] operator[>] operator[>] identifier[getMailsOfLabel] operator[SEP] Keyword[final] identifier[String] identifier[l] operator[SEP] { Keyword[return] identifier[getFilteredMailList] operator[SEP] Keyword[new] identifier[...
private RequestContext createRequestContext(final HttpServletRequest req) { return new RequestContext() { @Override public String getCharacterEncoding() { return req.getCharacterEncoding(); } @Override public String getContentType() { ...
class class_name[name] begin[{] method[createRequestContext, return_type[type[RequestContext]], modifier[private], parameter[req]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(...
Keyword[private] identifier[RequestContext] identifier[createRequestContext] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[req] operator[SEP] { Keyword[return] Keyword[new] identifier[RequestContext] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[publ...
public String getSQLFields(int iType, boolean bUseCurrentValues) { String strFields = DBConstants.BLANK; boolean bAllSelected = this.isAllSelected(); boolean bIsQueryRecord = this.isQueryRecord(); if (iType != DBConstants.SQL_SELECT_TYPE) bAllSelected = false; if ...
class class_name[name] begin[{] method[getSQLFields, return_type[type[String]], modifier[public], parameter[iType, bUseCurrentValues]] begin[{] local_variable[type[String], strFields] local_variable[type[boolean], bAllSelected] local_variable[type[boolean], bIsQueryRecord] ...
Keyword[public] identifier[String] identifier[getSQLFields] operator[SEP] Keyword[int] identifier[iType] , Keyword[boolean] identifier[bUseCurrentValues] operator[SEP] { identifier[String] identifier[strFields] operator[=] identifier[DBConstants] operator[SEP] identifier[BLANK] operator[SEP] Keyword[boolean] id...
@Override public E take() throws InterruptedException { synchronized (waiting) { if (closed) throw new InterruptedException("Channel closed"); waiting.add(Thread.currentThread()); } E e = super.take(); synchronized (waiting) { waiting.remove(Thread.currentThread()); } return e; }
class class_name[name] begin[{] method[take, return_type[type[E]], modifier[public], parameter[]] begin[{] SYNCHRONIZED[member[.waiting]] BEGIN[{] if[member[.closed]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operator...
annotation[@] identifier[Override] Keyword[public] identifier[E] identifier[take] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[synchronized] operator[SEP] identifier[waiting] operator[SEP] { Keyword[if] operator[SEP] identifier[closed] operator[SEP] Keyword[th...
public com.squareup.okhttp.Call postUiOpenwindowInformationAsync(Integer targetId, String datasource, String token, final ApiCallback<Void> callback) throws ApiException { com.squareup.okhttp.Call call = postUiOpenwindowInformationValidateBeforeCall(targetId, datasource, token, call...
class class_name[name] begin[{] method[postUiOpenwindowInformationAsync, return_type[type[com]], modifier[public], parameter[targetId, datasource, token, callback]] begin[{] local_variable[type[com], call] call[apiClient.executeAsync, parameter[member[.call], member[.callback]]] ...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[postUiOpenwindowInformationAsync] operator[SEP] identifier[Integer] identifier[targetId] , identifier[String] identifier[datasource] , identifier[String] identifier[token] , K...
public static void multOuter(DMatrix1Row a , DMatrix1Row c ) { c.reshape(a.numRows,a.numRows); MatrixMultProduct_DDRM.outer(a, c); }
class class_name[name] begin[{] method[multOuter, return_type[void], modifier[public static], parameter[a, c]] begin[{] call[c.reshape, parameter[member[a.numRows], member[a.numRows]]] call[MatrixMultProduct_DDRM.outer, parameter[member[.a], member[.c]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[multOuter] operator[SEP] identifier[DMatrix1Row] identifier[a] , identifier[DMatrix1Row] identifier[c] operator[SEP] { identifier[c] operator[SEP] identifier[reshape] operator[SEP] identifier[a] operator[SEP] identifier[numRows] , identifier[a] operator[...
public final void run() { _interrupted = null; _age = 0; while (true) { try { _strategy.observe(_age); if (_preparation != null) _preparation.run(); _result = execute(); if (_age > 0) { _reporting.emi...
class class_name[name] begin[{] method[run, return_type[void], modifier[final public], parameter[]] begin[{] assign[member[._interrupted], literal[null]] assign[member[._age], literal[0]] while[literal[true]] begin[{] TryStatement(block=[StatementExpr...
Keyword[public] Keyword[final] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[_interrupted] operator[=] Other[null] operator[SEP] identifier[_age] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { Keyword[try] { iden...
public PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination) throws SmartsheetException { return this.listSheets(includes, pagination, null); }
class class_name[name] begin[{] method[listSheets, return_type[type[PagedResult]], modifier[public], parameter[includes, pagination]] begin[{] return[THIS[call[None.listSheets, parameter[member[.includes], member[.pagination], literal[null]]]]] end[}] END[}]
Keyword[public] identifier[PagedResult] operator[<] identifier[Sheet] operator[>] identifier[listSheets] operator[SEP] identifier[EnumSet] operator[<] identifier[SourceInclusion] operator[>] identifier[includes] , identifier[PaginationParameters] identifier[pagination] operator[SEP] Keyword[throws] identifier[Smartshe...
public void setPriority(byte value) { priority = Byte.valueOf(value); cacheData.setPriority(priority); if (log.isDebugEnabled()) { log.debug("Sbb entity "+getSbbEntityId()+" priority set to " + priority); } }
class class_name[name] begin[{] method[setPriority, return_type[void], modifier[public], parameter[value]] begin[{] assign[member[.priority], call[Byte.valueOf, parameter[member[.value]]]] call[cacheData.setPriority, parameter[member[.priority]]] if[call[log.isDe...
Keyword[public] Keyword[void] identifier[setPriority] operator[SEP] Keyword[byte] identifier[value] operator[SEP] { identifier[priority] operator[=] identifier[Byte] operator[SEP] identifier[valueOf] operator[SEP] identifier[value] operator[SEP] operator[SEP] identifier[cacheData] operator[SEP] identifier[setPri...
public Observable<Integer> getImagePerformanceCountAsync(UUID projectId, UUID iterationId, GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter) { return getImagePerformanceCountWithServiceResponseAsync(projectId, iterationId, getImagePerformanceCountOptionalParameter).map(new Fun...
class class_name[name] begin[{] method[getImagePerformanceCountAsync, return_type[type[Observable]], modifier[public], parameter[projectId, iterationId, getImagePerformanceCountOptionalParameter]] begin[{] return[call[.getImagePerformanceCountWithServiceResponseAsync, parameter[member[.projectId], memb...
Keyword[public] identifier[Observable] operator[<] identifier[Integer] operator[>] identifier[getImagePerformanceCountAsync] operator[SEP] identifier[UUID] identifier[projectId] , identifier[UUID] identifier[iterationId] , identifier[GetImagePerformanceCountOptionalParameter] identifier[getImagePerformanceCountOption...
public static <T> void restoreInstanceState(@NonNull T target, @Nullable Bundle state) { IMPL.restoreInstanceState(target, state); }
class class_name[name] begin[{] method[restoreInstanceState, return_type[void], modifier[public static], parameter[target, state]] begin[{] call[IMPL.restoreInstanceState, parameter[member[.target], member[.state]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[restoreInstanceState] operator[SEP] annotation[@] identifier[NonNull] identifier[T] identifier[target] , annotation[@] identifier[Nullable] identifier[Bundle] identifier[state] operator[SEP] { identifier[IMPL] operato...
public String transform(String source) { Map<String,Object> o = match.match(source); return o == null ? null : template.template(o); }
class class_name[name] begin[{] method[transform, return_type[type[String]], modifier[public], parameter[source]] begin[{] local_variable[type[Map], o] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] identifier[String] identifier[transform] operator[SEP] identifier[String] identifier[source] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[o] operator[=] identifier[match] operator[SEP] identifier[match] operator[SEP] identifier[source...
public java.util.List<PolicyRole> getPolicyRoles() { if (policyRoles == null) { policyRoles = new com.amazonaws.internal.SdkInternalList<PolicyRole>(); } return policyRoles; }
class class_name[name] begin[{] method[getPolicyRoles, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.policyRoles], ==, literal[null]]] begin[{] assign[member[.policyRoles], ClassCreator(arguments=[], body=None, constructor_t...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[PolicyRole] operator[>] identifier[getPolicyRoles] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[policyRoles] operator[==] Other[null] operator[SEP] { identifier[p...
private int getFixedDataFieldSize(FieldType type) { int result = 0; DataType dataType = type.getDataType(); if (dataType != null) { switch (dataType) { case DATE: case INTEGER: case DURATION: { result = 4; ...
class class_name[name] begin[{] method[getFixedDataFieldSize, return_type[type[int]], modifier[private], parameter[type]] begin[{] local_variable[type[int], result] local_variable[type[DataType], dataType] if[binary_operation[member[.dataType], !=, literal[null]]] begin[{] ...
Keyword[private] Keyword[int] identifier[getFixedDataFieldSize] operator[SEP] identifier[FieldType] identifier[type] operator[SEP] { Keyword[int] identifier[result] operator[=] Other[0] operator[SEP] identifier[DataType] identifier[dataType] operator[=] identifier[type] operator[SEP] identifier[getDataType] oper...
public EList<JvmMember> getMembers() { if (members == null) { members = new EObjectContainmentWithInverseEList<JvmMember>(JvmMember.class, this, TypesPackage.JVM_DECLARED_TYPE__MEMBERS, TypesPackage.JVM_MEMBER__DECLARING_TYPE); } return members; }
class class_name[name] begin[{] method[getMembers, return_type[type[EList]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.members], ==, literal[null]]] begin[{] assign[member[.members], ClassCreator(arguments=[ClassReference(postfix_operators=[], p...
Keyword[public] identifier[EList] operator[<] identifier[JvmMember] operator[>] identifier[getMembers] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[members] operator[==] Other[null] operator[SEP] { identifier[members] operator[=] Keyword[new] identifier[EObjectContainmentWithInve...
@SuppressWarnings("unchecked") public EList<IfcValue> getListValues() { return (EList<IfcValue>) eGet(Ifc2x3tc1Package.Literals.IFC_IRREGULAR_TIME_SERIES_VALUE__LIST_VALUES, true); }
class class_name[name] begin[{] method[getListValues, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_IRREGULAR_TIME_SERIES_VALUE__LIST_VALUES, postfix_operators=[], prefix_operators=[], qualifier=Ifc2x3tc1P...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EList] operator[<] identifier[IfcValue] operator[>] identifier[getListValues] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList] operator[<] identifier[IfcValue] operator[>...
static public SFTimestamp getSFTimestamp(String timestampStr, int scale, int internalColumnType, long resultVersion, TimeZone sessionTZ, SFSession s...
class class_name[name] begin[{] method[getSFTimestamp, return_type[type[SFTimestamp]], modifier[public static], parameter[timestampStr, scale, internalColumnType, resultVersion, sessionTZ, session]] begin[{] call[logger.debug, parameter[literal["public Timestamp getTimestamp(int columnIndex)"]]...
Keyword[static] Keyword[public] identifier[SFTimestamp] identifier[getSFTimestamp] operator[SEP] identifier[String] identifier[timestampStr] , Keyword[int] identifier[scale] , Keyword[int] identifier[internalColumnType] , Keyword[long] identifier[resultVersion] , identifier[TimeZone] identifier[sessionTZ] , identi...
private void dumpServerConversation(IncidentStream is, Conversation conv) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dumpServerConversation", new Object[]{is, conv}); final ConversationState convState = (ConversationState) conv.getAttachment(); ...
class class_name[name] begin[{] method[dumpServerConversation, return_type[void], modifier[private], parameter[is, conv]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, paramet...
Keyword[private] Keyword[void] identifier[dumpServerConversation] operator[SEP] identifier[IncidentStream] identifier[is] , identifier[Conversation] identifier[conv] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] ope...
public LinkedList<Diff> diff_main(String text1, String text2) { return diff_main(text1, text2, true); }
class class_name[name] begin[{] method[diff_main, return_type[type[LinkedList]], modifier[public], parameter[text1, text2]] begin[{] return[call[.diff_main, parameter[member[.text1], member[.text2], literal[true]]]] end[}] END[}]
Keyword[public] identifier[LinkedList] operator[<] identifier[Diff] operator[>] identifier[diff_main] operator[SEP] identifier[String] identifier[text1] , identifier[String] identifier[text2] operator[SEP] { Keyword[return] identifier[diff_main] operator[SEP] identifier[text1] , identifier[text2] , literal[bo...
protected void update(DocumentEvent event) { String text; try { text = event.getDocument().getText(event.getDocument().getStartPosition().getOffset(), event.getDocument().getEndPosition().getOffset() - 1); model.setObject(text); } catch (BadLocationException e1) { log.log(Level.SEVERE, "so...
class class_name[name] begin[{] method[update, return_type[void], modifier[protected], parameter[event]] begin[{] local_variable[type[String], text] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=text, postfix_operators=[], prefix_operators=[], ...
Keyword[protected] Keyword[void] identifier[update] operator[SEP] identifier[DocumentEvent] identifier[event] operator[SEP] { identifier[String] identifier[text] operator[SEP] Keyword[try] { identifier[text] operator[=] identifier[event] operator[SEP] identifier[getDocument] operator[SEP] operator[SEP...
public final Mono<ByteBuffer> asByteBuffer() { return handle((bb, sink) -> { try { sink.next(bb.nioBuffer()); } catch (IllegalReferenceCountException e) { sink.complete(); } }); }
class class_name[name] begin[{] method[asByteBuffer, return_type[type[Mono]], modifier[final public], parameter[]] begin[{] return[call[.handle, parameter[LambdaExpression(body=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=nioBuffe...
Keyword[public] Keyword[final] identifier[Mono] operator[<] identifier[ByteBuffer] operator[>] identifier[asByteBuffer] operator[SEP] operator[SEP] { Keyword[return] identifier[handle] operator[SEP] operator[SEP] identifier[bb] , identifier[sink] operator[SEP] operator[->] { Keyword[try] { ...
public static ParameterizedType getSuperParameterizedType(Type type, Class<?> superClass) { if (type instanceof Class<?> || type instanceof ParameterizedType) { outer: while (type != null && type != Object.class) { Class<?> rawType; if (type instanceof Class<?>) { // type is a ...
class class_name[name] begin[{] method[getSuperParameterizedType, return_type[type[ParameterizedType]], modifier[public static], parameter[type, superClass]] begin[{] if[binary_operation[binary_operation[member[.type], instanceof, type[Class]], ||, binary_operation[member[.type], instanceof, ty...
Keyword[public] Keyword[static] identifier[ParameterizedType] identifier[getSuperParameterizedType] operator[SEP] identifier[Type] identifier[type] , identifier[Class] operator[<] operator[?] operator[>] identifier[superClass] operator[SEP] { Keyword[if] operator[SEP] identifier[type] Keyword[instanceof] identi...
public boolean add(Object o) { try { this.addElement((Element) o); return true; } catch(ClassCastException cce) { throw new ClassCastException("You can only add objects that implement the Element interface."); } catch(BadElementException bee) { throw new ClassCastException(bee.getMessage()); } ...
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[o]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[Cast(expression=MemberReference(memb...
Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[Object] identifier[o] operator[SEP] { Keyword[try] { Keyword[this] operator[SEP] identifier[addElement] operator[SEP] operator[SEP] identifier[Element] operator[SEP] identifier[o] operator[SEP] operator[SEP] Keyword[return] lite...
@Override public String getProviderName() { return _asset.getProvider() == null ? null : _asset.getProvider().getName(); }
class class_name[name] begin[{] method[getProviderName, return_type[type[String]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getProvider, postfix_operators=[], prefix_operators=[], qualifier=_asset, selector...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getProviderName] operator[SEP] operator[SEP] { Keyword[return] identifier[_asset] operator[SEP] identifier[getProvider] operator[SEP] operator[SEP] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[_asset] ope...
public static KubernetesMessage response(String command, String error) { KubernetesResponse response = new KubernetesResponse(); response.setCommand(command); response.setError(error); return new KubernetesMessage(response); }
class class_name[name] begin[{] method[response, return_type[type[KubernetesMessage]], modifier[public static], parameter[command, error]] begin[{] local_variable[type[KubernetesResponse], response] call[response.setCommand, parameter[member[.command]]] call[response.set...
Keyword[public] Keyword[static] identifier[KubernetesMessage] identifier[response] operator[SEP] identifier[String] identifier[command] , identifier[String] identifier[error] operator[SEP] { identifier[KubernetesResponse] identifier[response] operator[=] Keyword[new] identifier[KubernetesResponse] operator[SEP]...
public void zero() { ((Buffer) buffer).mark(); ((Buffer) buffer).position(0); buffer.put(ZEROS, 0, buffer.remaining()); ((Buffer) buffer).reset(); }
class class_name[name] begin[{] method[zero, return_type[void], modifier[public], parameter[]] begin[{] Cast(expression=MemberReference(member=buffer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Buffer, sub_type=No...
Keyword[public] Keyword[void] identifier[zero] operator[SEP] operator[SEP] { operator[SEP] operator[SEP] identifier[Buffer] operator[SEP] identifier[buffer] operator[SEP] operator[SEP] identifier[mark] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Buffer] operator[SEP] identifi...
static byte[] toBytes(final String s) { try { return (byte[]) toBytes.invoke(null, s); } catch (Exception e) { throw new RuntimeException("toBytes=" + toBytes, e); } }
class class_name[name] begin[{] method[toBytes, return_type[type[byte]], modifier[static], parameter[s]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), Memb...
Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[toBytes] operator[SEP] Keyword[final] identifier[String] identifier[s] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] identifier[toBytes] operator[SEP] identifier[...
public <U> U forStream( String fileName, Map<String, Object> params, Function<? super Stream<Map<String, Object>>, U> handleStream) { String sql = getTemplate(fileName, params); SqlParameterSource sps = paramBuilder.byMap(params); RowMapper<Map<String, Object>...
class class_name[name] begin[{] method[forStream, return_type[type[U]], modifier[public], parameter[fileName, params, handleStream]] begin[{] local_variable[type[String], sql] local_variable[type[SqlParameterSource], sps] local_variable[type[RowMapper], mapper] return[call[.quer...
Keyword[public] operator[<] identifier[U] operator[>] identifier[U] identifier[forStream] operator[SEP] identifier[String] identifier[fileName] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[params] , identifier[Function] operator[<] operator[?] Keyword[super] identifier...
public boolean isAnimate() { Boolean value = (Boolean) getStateHelper().eval(PropertyKeys.animate, false); return (boolean) value; }
class class_name[name] begin[{] method[isAnimate, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[Boolean], value] return[Cast(expression=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(di...
Keyword[public] Keyword[boolean] identifier[isAnimate] operator[SEP] operator[SEP] { identifier[Boolean] identifier[value] operator[=] operator[SEP] identifier[Boolean] operator[SEP] identifier[getStateHelper] operator[SEP] operator[SEP] operator[SEP] identifier[eval] operator[SEP] identifier[PropertyKeys] opera...
public @Nullable Page getPage(@Nullable Predicate<Page> filter, @Nullable Page basePage) { List<Page> suffixPages = getPages(filter, basePage); if (suffixPages.isEmpty()) { return null; } else { return suffixPages.get(0); } }
class class_name[name] begin[{] method[getPage, return_type[type[Page]], modifier[public], parameter[filter, basePage]] begin[{] local_variable[type[List], suffixPages] if[call[suffixPages.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] ...
Keyword[public] annotation[@] identifier[Nullable] identifier[Page] identifier[getPage] operator[SEP] annotation[@] identifier[Nullable] identifier[Predicate] operator[<] identifier[Page] operator[>] identifier[filter] , annotation[@] identifier[Nullable] identifier[Page] identifier[basePage] operator[SEP] { id...
@Override public XmlStringBuilder toXML() { XmlStringBuilder buf = new XmlStringBuilder(); buf.halfOpenElement(ELEMENT).xmlnsAttribute(NAMESPACE).rightAngleBracket(); for (BookmarkedURL urlStorage : getBookmarkedURLS()) { if (urlStorage.isShared()) { continue; ...
class class_name[name] begin[{] method[toXML, return_type[type[XmlStringBuilder]], modifier[public], parameter[]] begin[{] local_variable[type[XmlStringBuilder], buf] call[buf.halfOpenElement, parameter[member[.ELEMENT]]] ForStatement(body=BlockStatement(label=None, statements=[...
annotation[@] identifier[Override] Keyword[public] identifier[XmlStringBuilder] identifier[toXML] operator[SEP] operator[SEP] { identifier[XmlStringBuilder] identifier[buf] operator[=] Keyword[new] identifier[XmlStringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[hal...
public static void customizeCache(Context context, int memoryCacheSizeInKB, String defaultDiskCachePath, int defaultDiskCacheSizeInKB) { customizeCache(context, memoryCacheSizeInKB, defaultDiskCachePath, defaultDiskCacheSizeInKB, null, 0); }
class class_name[name] begin[{] method[customizeCache, return_type[void], modifier[public static], parameter[context, memoryCacheSizeInKB, defaultDiskCachePath, defaultDiskCacheSizeInKB]] begin[{] call[.customizeCache, parameter[member[.context], member[.memoryCacheSizeInKB], member[.defaultDis...
Keyword[public] Keyword[static] Keyword[void] identifier[customizeCache] operator[SEP] identifier[Context] identifier[context] , Keyword[int] identifier[memoryCacheSizeInKB] , identifier[String] identifier[defaultDiskCachePath] , Keyword[int] identifier[defaultDiskCacheSizeInKB] operator[SEP] { identifier[cus...
protected void removeDialogFromDistributedCache(String dialogId) { if(getStackLogger().isLoggingEnabled(StackLogger.TRACE_DEBUG)) { getStackLogger().logDebug("sipStack " + this + " removing the dialog " + dialogId + " from the distributed cache"); } // remove the corresponding dialog from the cache instance ...
class class_name[name] begin[{] method[removeDialogFromDistributedCache, return_type[void], modifier[protected], parameter[dialogId]] begin[{] if[call[.getStackLogger, parameter[]]] begin[{] call[.getStackLogger, parameter[]] else begin[{] None end[}] ...
Keyword[protected] Keyword[void] identifier[removeDialogFromDistributedCache] operator[SEP] identifier[String] identifier[dialogId] operator[SEP] { Keyword[if] operator[SEP] identifier[getStackLogger] operator[SEP] operator[SEP] operator[SEP] identifier[isLoggingEnabled] operator[SEP] identifier[StackLogger] ope...
public static RegressionDataSet readR(int numeric_target_column, Reader reader, char delimiter, int lines_to_skip, char comment, Set<Integer> cat_cols) throws IOException { return (RegressionDataSet) readCSV(reader, lines_to_skip, delimiter, comment, cat_cols, numeric_target_column, -1); }
class class_name[name] begin[{] method[readR, return_type[type[RegressionDataSet]], modifier[public static], parameter[numeric_target_column, reader, delimiter, lines_to_skip, comment, cat_cols]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=reader, postfix_operator...
Keyword[public] Keyword[static] identifier[RegressionDataSet] identifier[readR] operator[SEP] Keyword[int] identifier[numeric_target_column] , identifier[Reader] identifier[reader] , Keyword[char] identifier[delimiter] , Keyword[int] identifier[lines_to_skip] , Keyword[char] identifier[comment] , identifier[Set] o...
public void release() { IPhynixxManagedConnection<C> con= this.connection; if (connection != null) { this.connection.removeConnectionListener(this); } this.connection = null; // return con; }
class class_name[name] begin[{] method[release, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[IPhynixxManagedConnection], con] if[binary_operation[member[.connection], !=, literal[null]]] begin[{] THIS[member[None.connection]call[...
Keyword[public] Keyword[void] identifier[release] operator[SEP] operator[SEP] { identifier[IPhynixxManagedConnection] operator[<] identifier[C] operator[>] identifier[con] operator[=] Keyword[this] operator[SEP] identifier[connection] operator[SEP] Keyword[if] operator[SEP] identifier[connection] operator[!=] Ot...
private CompletableFuture<Iterator<Operation>> readData(Void ignored) { long traceId = LoggerHelpers.traceEnterWithContext(log, this.traceObjectId, "readData"); try { Duration readTimeout = getReadTimeout(); return this.dataSource .read(this.state.getLastReadS...
class class_name[name] begin[{] method[readData, return_type[type[CompletableFuture]], modifier[private], parameter[ignored]] begin[{] local_variable[type[long], traceId] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Meth...
Keyword[private] identifier[CompletableFuture] operator[<] identifier[Iterator] operator[<] identifier[Operation] operator[>] operator[>] identifier[readData] operator[SEP] identifier[Void] identifier[ignored] operator[SEP] { Keyword[long] identifier[traceId] operator[=] identifier[LoggerHelpers] operator[SEP] i...
@Override public void onCompleted(AbstractBuild<?, ?> build, TaskListener listener) { Map<String, String> envVars = returnEnvironmentVars(build, listener); if (envVars == null) { return; } try { returnGhprbSimpleStatus(envVars).onBuildComplete(build, listener...
class class_name[name] begin[{] method[onCompleted, return_type[void], modifier[public], parameter[build, listener]] begin[{] local_variable[type[Map], envVars] if[binary_operation[member[.envVars], ==, literal[null]]] begin[{] return[None] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onCompleted] operator[SEP] identifier[AbstractBuild] operator[<] operator[?] , operator[?] operator[>] identifier[build] , identifier[TaskListener] identifier[listener] operator[SEP] { identifier[Map] operator[<] identifier[String] , ...
@TargetApi(8) public static File getExternalCacheDir(Context context) { // Do we have a built-in external cache dir method. if (Android.isAPI(8)) { File cacheDir = context.getExternalCacheDir(); if (cacheDir != null) { return cacheDir; } } ...
class class_name[name] begin[{] method[getExternalCacheDir, return_type[type[File]], modifier[public static], parameter[context]] begin[{] if[call[Android.isAPI, parameter[literal[8]]]] begin[{] local_variable[type[File], cacheDir] if[binary_operation[member[...
annotation[@] identifier[TargetApi] operator[SEP] Other[8] operator[SEP] Keyword[public] Keyword[static] identifier[File] identifier[getExternalCacheDir] operator[SEP] identifier[Context] identifier[context] operator[SEP] { Keyword[if] operator[SEP] identifier[Android] operator[SEP] identifier[isAPI] operator[SE...
public static <E> List<E> all(E[] array) { final Function<Iterator<E>, ArrayList<E>> consumer = new ConsumeIntoCollection<>(new ArrayListFactory<E>()); return consumer.apply(new ArrayIterator<>(array)); }
class class_name[name] begin[{] method[all, return_type[type[List]], modifier[public static], parameter[array]] begin[{] local_variable[type[Function], consumer] return[call[consumer.apply, parameter[ClassCreator(arguments=[MemberReference(member=array, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[List] operator[<] identifier[E] operator[>] identifier[all] operator[SEP] identifier[E] operator[SEP] operator[SEP] identifier[array] operator[SEP] { Keyword[final] identifier[Function] operator[<] identifier[Iterator] operator[<] i...
@Override public String getMessage() { StringBuilder builder = new StringBuilder( super.getMessage() ); for( LessFilePosition pos : positions ) { builder.append( "\n\t on line " ).append( pos.getLine() ).append( ", column " ).append( pos.getColumn() ); if( pos.getFilename() !...
class class_name[name] begin[{] method[getMessage, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], builder] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getMessage] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Keyword[super] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP]...
public void initialise(Identifier rootId, boolean enableCache) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry(cclass, "initialise", new Object[] {rootId, new Boolean(enableCache)}); switch (rootId.getType()) { case Selector.UNKNOWN : case Selector.OBJECT : ...
class class_name[name] begin[{] method[initialise, return_type[void], modifier[public], parameter[rootId, enableCache]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[tc.entry, parameter[me...
Keyword[public] Keyword[void] identifier[initialise] operator[SEP] identifier[Identifier] identifier[rootId] , Keyword[boolean] identifier[enableCache] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] iden...
public static lbvserver_appfwpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_appfwpolicy_binding obj = new lbvserver_appfwpolicy_binding(); obj.set_name(name); lbvserver_appfwpolicy_binding response[] = (lbvserver_appfwpolicy_binding[]) obj.get_resources(service); return res...
class class_name[name] begin[{] method[get, return_type[type[lbvserver_appfwpolicy_binding]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[lbvserver_appfwpolicy_binding], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type[lbv...
Keyword[public] Keyword[static] identifier[lbvserver_appfwpolicy_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[lbvserver_appfwpolicy_binding] ...
public I_CmsTemplateContextProvider getTemplateContextProvider(String providerName) { providerName = providerName.trim(); providerName = removePropertyPrefix(providerName); String providerClassName = providerName; String providerConfig = ""; // get provider configuration...
class class_name[name] begin[{] method[getTemplateContextProvider, return_type[type[I_CmsTemplateContextProvider]], modifier[public], parameter[providerName]] begin[{] assign[member[.providerName], call[providerName.trim, parameter[]]] assign[member[.providerName], call[.removeP...
Keyword[public] identifier[I_CmsTemplateContextProvider] identifier[getTemplateContextProvider] operator[SEP] identifier[String] identifier[providerName] operator[SEP] { identifier[providerName] operator[=] identifier[providerName] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifi...
static Set<String> findFilesToImport( File searchDirectory, String fileExtension, File editedFile, String fileContent ) { // Find all the files Set<String> result = new TreeSet<> (); if( searchDirectory.exists()) { for( File f : Utils.listAllFiles( searchDirectory, fileExtension )) { if( f.eq...
class class_name[name] begin[{] method[findFilesToImport, return_type[type[Set]], modifier[static], parameter[searchDirectory, fileExtension, editedFile, fileContent]] begin[{] local_variable[type[Set], result] if[call[searchDirectory.exists, parameter[]]] begin[{] ForStatem...
Keyword[static] identifier[Set] operator[<] identifier[String] operator[>] identifier[findFilesToImport] operator[SEP] identifier[File] identifier[searchDirectory] , identifier[String] identifier[fileExtension] , identifier[File] identifier[editedFile] , identifier[String] identifier[fileContent] operator[SEP] { ...
public void addField(String name, Object value, Object type) { if (value == null) { this.fields.add(new Field(name, null, null)); } else { this.fields.add(new Field(name, value.toString(), type.toString())); } }
class class_name[name] begin[{] method[addField, return_type[void], modifier[public], parameter[name, value, type]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] THIS[member[None.fields]call[None.add, parameter[ClassCreator(arguments=[MemberRe...
Keyword[public] Keyword[void] identifier[addField] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] , identifier[Object] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[this] operato...
public JWSHeader setJwk(String jwk) { this.jwk = jwk; this.put(HeaderConstants.JWK, jwk); return this; }
class class_name[name] begin[{] method[setJwk, return_type[type[JWSHeader]], modifier[public], parameter[jwk]] begin[{] assign[THIS[member[None.jwk]], member[.jwk]] THIS[call[None.put, parameter[member[HeaderConstants.JWK], member[.jwk]]]] return[THIS[]] end[}] END[}...
Keyword[public] identifier[JWSHeader] identifier[setJwk] operator[SEP] identifier[String] identifier[jwk] operator[SEP] { Keyword[this] operator[SEP] identifier[jwk] operator[=] identifier[jwk] operator[SEP] Keyword[this] operator[SEP] identifier[put] operator[SEP] identifier[HeaderConstants] operator[SEP] ident...
@Check @Override public void checkDefaultSuperConstructor(XtendClass xtendClass) { checkSuperConstructor( xtendClass, XTEND_TYPE_DECLARATION__NAME, doGetConstructorParameterTypes(Object.class, xtendClass)); }
class class_name[name] begin[{] method[checkDefaultSuperConstructor, return_type[void], modifier[public], parameter[xtendClass]] begin[{] call[.checkSuperConstructor, parameter[member[.xtendClass], member[.XTEND_TYPE_DECLARATION__NAME], call[.doGetConstructorParameterTypes, parameter[ClassRefer...
annotation[@] identifier[Check] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[checkDefaultSuperConstructor] operator[SEP] identifier[XtendClass] identifier[xtendClass] operator[SEP] { identifier[checkSuperConstructor] operator[SEP] identifier[xtendClass] , identifier[XTEND_TYPE_DEC...
public DataType getAttributeType(int index) { final VertexAttribute attribute = getAttribute(index); if (attribute == null) { return null; } return attribute.getType(); }
class class_name[name] begin[{] method[getAttributeType, return_type[type[DataType]], modifier[public], parameter[index]] begin[{] local_variable[type[VertexAttribute], attribute] if[binary_operation[member[.attribute], ==, literal[null]]] begin[{] return[literal[null]] ...
Keyword[public] identifier[DataType] identifier[getAttributeType] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[final] identifier[VertexAttribute] identifier[attribute] operator[=] identifier[getAttribute] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[if] operator[SEP...
private void importTable(PdfPTable table) { this.rows = new ArrayList(); this.tableWidthPercent = table.getWidthPercentage(); // this.tableWidthPercent = table.getWidth(); this.proportionalWidths = table.getAbsoluteWidths(); // this.proportionalWidths = table.getProportionalWidths(...
class class_name[name] begin[{] method[importTable, return_type[void], modifier[private], parameter[table]] begin[{] assign[THIS[member[None.rows]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], ty...
Keyword[private] Keyword[void] identifier[importTable] operator[SEP] identifier[PdfPTable] identifier[table] operator[SEP] { Keyword[this] operator[SEP] identifier[rows] operator[=] Keyword[new] identifier[ArrayList] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[tableWidthPerce...
public FessMessages addConstraintsSizeMessage(String property, String min, String max) { assertPropertyNotNull(property); add(property, new UserMessage(CONSTRAINTS_Size_MESSAGE, min, max)); return this; }
class class_name[name] begin[{] method[addConstraintsSizeMessage, return_type[type[FessMessages]], modifier[public], parameter[property, min, max]] begin[{] call[.assertPropertyNotNull, parameter[member[.property]]] call[.add, parameter[member[.property], ClassCreator(arguments=...
Keyword[public] identifier[FessMessages] identifier[addConstraintsSizeMessage] operator[SEP] identifier[String] identifier[property] , identifier[String] identifier[min] , identifier[String] identifier[max] operator[SEP] { identifier[assertPropertyNotNull] operator[SEP] identifier[property] operator[SEP] opera...
public NamedMethodType<InitMethodType<T>> getOrCreateCreateMethod() { Node node = childNode.getOrCreate("create-method"); NamedMethodType<InitMethodType<T>> createMethod = new NamedMethodTypeImpl<InitMethodType<T>>(this, "create-method", childNode, node); return createMethod; }
class class_name[name] begin[{] method[getOrCreateCreateMethod, return_type[type[NamedMethodType]], modifier[public], parameter[]] begin[{] local_variable[type[Node], node] local_variable[type[NamedMethodType], createMethod] return[member[.createMethod]] end[}] END[}]
Keyword[public] identifier[NamedMethodType] operator[<] identifier[InitMethodType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateCreateMethod] operator[SEP] operator[SEP] { identifier[Node] identifier[node] operator[=] identifier[childNode] operator[SEP] identifier[getOrCreate] operator...
public static Comparator<File> fileLastModifiedComparator() { return (fileOne, fileTwo) -> Long.valueOf(fileOne.lastModified()).compareTo(fileTwo.lastModified()); }
class class_name[name] begin[{] method[fileLastModifiedComparator, return_type[type[Comparator]], modifier[public static], parameter[]] begin[{] return[LambdaExpression(body=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=lastModified, postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[static] identifier[Comparator] operator[<] identifier[File] operator[>] identifier[fileLastModifiedComparator] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[fileOne] , identifier[fileTwo] operator[SEP] operator[->] identifier[Long] operator[SEP] identifier[valueO...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.EPS__PSEG_NAME: return PSEG_NAME_EDEFAULT == null ? psegName != null : !PSEG_NAME_EDEFAULT.equals(psegName); } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=EPS__PSEG_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], stateme...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[EPS__PSEG_NAME] o...
private Class<?> loadClass(String className) { try { return EDBUtils.class.getClassLoader().loadClass(className); } catch (ClassNotFoundException e) { LOGGER.debug("Class {} can not be found by the EDB. This object type is not supported by the EDB." + " Maybe the ...
class class_name[name] begin[{] method[loadClass, return_type[type[Class]], modifier[private], parameter[className]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getClassLoa...
Keyword[private] identifier[Class] operator[<] operator[?] operator[>] identifier[loadClass] operator[SEP] identifier[String] identifier[className] operator[SEP] { Keyword[try] { Keyword[return] identifier[EDBUtils] operator[SEP] Keyword[class] operator[SEP] identifier[getClassLoader] operator[SEP] op...
public void deleteServerGroup(int id) { try { sqlService.executeUpdate("DELETE FROM " + Constants.DB_TABLE_SERVER_GROUPS + " WHERE " + Constants.GENERIC_ID + " = " + id + ";"); sqlService.executeUpdate("DELETE FROM " + Constants.DB_TABLE_SERVERS ...
class class_name[name] begin[{] method[deleteServerGroup, return_type[void], modifier[public], parameter[id]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Binar...
Keyword[public] Keyword[void] identifier[deleteServerGroup] operator[SEP] Keyword[int] identifier[id] operator[SEP] { Keyword[try] { identifier[sqlService] operator[SEP] identifier[executeUpdate] operator[SEP] literal[String] operator[+] identifier[Constants] operator[SEP] identifier[DB_TABLE_SERVER_G...
public Key getPrivateKey(String alias, String password) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException { return this.keystore.getKey(alias, password.toCharArray()); }
class class_name[name] begin[{] method[getPrivateKey, return_type[type[Key]], modifier[public], parameter[alias, password]] begin[{] return[THIS[member[None.keystore]call[None.getKey, parameter[member[.alias], call[password.toCharArray, parameter[]]]]]] end[}] END[}]
Keyword[public] identifier[Key] identifier[getPrivateKey] operator[SEP] identifier[String] identifier[alias] , identifier[String] identifier[password] operator[SEP] Keyword[throws] identifier[UnrecoverableKeyException] , identifier[KeyStoreException] , identifier[NoSuchAlgorithmException] { Keyword[return] Ke...
public static boolean valueChanged(Enum<?> before, Enum<?> after) { if (before == null && after == null) { return false; } if (after == null) { return false; } if (before == null && after != null) { return true; } return !(befor...
class class_name[name] begin[{] method[valueChanged, return_type[type[boolean]], modifier[public static], parameter[before, after]] begin[{] if[binary_operation[binary_operation[member[.before], ==, literal[null]], &&, binary_operation[member[.after], ==, literal[null]]]] begin[{] r...
Keyword[public] Keyword[static] Keyword[boolean] identifier[valueChanged] operator[SEP] identifier[Enum] operator[<] operator[?] operator[>] identifier[before] , identifier[Enum] operator[<] operator[?] operator[>] identifier[after] operator[SEP] { Keyword[if] operator[SEP] identifier[before] operator[==] Other...
public static synchronized JawrCacheManager resetCacheManager(JawrConfig config, String resourceType) { String cacheMgrAttributeName = CACHE_ATTR_PREFIX + resourceType.toUpperCase() + CACHE_ATTR_SUFFIX; JawrCacheManager cacheManager = (JawrCacheManager) config.getContext().getAttribute(cacheMgrAttributeName); if...
class class_name[name] begin[{] method[resetCacheManager, return_type[type[JawrCacheManager]], modifier[synchronized public static], parameter[config, resourceType]] begin[{] local_variable[type[String], cacheMgrAttributeName] local_variable[type[JawrCacheManager], cacheManager] ...
Keyword[public] Keyword[static] Keyword[synchronized] identifier[JawrCacheManager] identifier[resetCacheManager] operator[SEP] identifier[JawrConfig] identifier[config] , identifier[String] identifier[resourceType] operator[SEP] { identifier[String] identifier[cacheMgrAttributeName] operator[=] identifier[CACHE...
@Override public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { context.startSubsystemElement(InfinispanSchema.CURRENT.getNamespaceUri(), false); ModelNode model = context.getModelNode(); if (model.isDefined()) { ...
class class_name[name] begin[{] method[writeContent, return_type[void], modifier[public], parameter[writer, context]] begin[{] call[context.startSubsystemElement, parameter[call[InfinispanSchema.CURRENT.getNamespaceUri, parameter[]], literal[false]]] local_variable[type[ModelNode], mode...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeContent] operator[SEP] identifier[XMLExtendedStreamWriter] identifier[writer] , identifier[SubsystemMarshallingContext] identifier[context] operator[SEP] Keyword[throws] identifier[XMLStreamException] { identifier[context] operator...
@Nullable public T orElse(@Nullable T other) { return value != null ? value : other; }
class class_name[name] begin[{] method[orElse, return_type[type[T]], modifier[public], parameter[other]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_oper...
annotation[@] identifier[Nullable] Keyword[public] identifier[T] identifier[orElse] operator[SEP] annotation[@] identifier[Nullable] identifier[T] identifier[other] operator[SEP] { Keyword[return] identifier[value] operator[!=] Other[null] operator[?] identifier[value] operator[:] identifier[other] operator[SEP...
byte[] readSignResponse() throws IOException { // Read the first 9 bytes from the InputStream which are the SSH2_AGENT_SIGN_RESPONSE headers. final byte[] headerBytes = readBytes(9, "SSH2_AGENT_SIGN_RESPONSE"); log.debug("Received SSH2_AGENT_SIGN_RESPONSE message from ssh-agent."); final SignResponseHea...
class class_name[name] begin[{] method[readSignResponse, return_type[type[byte]], modifier[default], parameter[]] begin[{] local_variable[type[byte], headerBytes] call[log.debug, parameter[literal["Received SSH2_AGENT_SIGN_RESPONSE message from ssh-agent."]]] local_variable[type...
Keyword[byte] operator[SEP] operator[SEP] identifier[readSignResponse] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[headerBytes] operator[=] identifier[readBytes] operator[SEP] Other[9] , literal[String] operator[SEP] o...
public Matrix4d perspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne) { return perspectiveLH(fovy, aspect, zNear, zFar, zZeroToOne, this); }
class class_name[name] begin[{] method[perspectiveLH, return_type[type[Matrix4d]], modifier[public], parameter[fovy, aspect, zNear, zFar, zZeroToOne]] begin[{] return[call[.perspectiveLH, parameter[member[.fovy], member[.aspect], member[.zNear], member[.zFar], member[.zZeroToOne], THIS[]]]] end[}] ...
Keyword[public] identifier[Matrix4d] identifier[perspectiveLH] operator[SEP] Keyword[double] identifier[fovy] , Keyword[double] identifier[aspect] , Keyword[double] identifier[zNear] , Keyword[double] identifier[zFar] , Keyword[boolean] identifier[zZeroToOne] operator[SEP] { Keyword[return] identifier[perspe...
public Observable<ExpressRouteConnectionInner> createOrUpdateAsync(String resourceGroupName, String expressRouteGatewayName, String connectionName, ExpressRouteConnectionInner putExpressRouteConnectionParameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, expressRouteGatewayName, connect...
class class_name[name] begin[{] method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, expressRouteGatewayName, connectionName, putExpressRouteConnectionParameters]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resour...
Keyword[public] identifier[Observable] operator[<] identifier[ExpressRouteConnectionInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[expressRouteGatewayName] , identifier[String] identifier[connectionName] , identifier[E...
protected String toGenModelProjectPath(String path) { return null == path || "".equals(path) || path.startsWith("/") || !path.contains("/") ? path : path.substring(path.indexOf("/")); }
class class_name[name] begin[{] method[toGenModelProjectPath, return_type[type[String]], modifier[protected], parameter[path]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], pr...
Keyword[protected] identifier[String] identifier[toGenModelProjectPath] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[return] Other[null] operator[==] identifier[path] operator[||] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[path] operator[SEP] operator[|...
public static int findLabelColumn(MultipleObjectsBundle bundle) { for(int i = 0; i < bundle.metaLength(); i++) { if(TypeUtil.GUESSED_LABEL.isAssignableFromType(bundle.meta(i))) { return i; } } return -1; }
class class_name[name] begin[{] method[findLabelColumn, return_type[type[int]], modifier[public static], parameter[bundle]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_o...
Keyword[public] Keyword[static] Keyword[int] identifier[findLabelColumn] operator[SEP] identifier[MultipleObjectsBundle] identifier[bundle] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[bundle] operator[SEP] identifie...
private String loadConvert (char[] in, int off, int len, char[] convtBuf) { if (convtBuf.length < len) { int newLen = len * 2; if (newLen < 0) { newLen = Integer.MAX_VALUE; } convtBuf = new char[newLen]; } char aChar; char[]...
class class_name[name] begin[{] method[loadConvert, return_type[type[String]], modifier[private], parameter[in, off, len, convtBuf]] begin[{] if[binary_operation[member[convtBuf.length], <, member[.len]]] begin[{] local_variable[type[int], newLen] if[binary_o...
Keyword[private] identifier[String] identifier[loadConvert] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[in] , Keyword[int] identifier[off] , Keyword[int] identifier[len] , Keyword[char] operator[SEP] operator[SEP] identifier[convtBuf] operator[SEP] { Keyword[if] operator[SEP] identifier...
public Ticket add(long delay, TimerHandler handler, Object... args) { if (handler == null) { return null; } Utils.checkArgument(delay > 0, "Delay of a ticket has to be strictly greater than 0"); final Ticket ticket = new Ticket(this, now(), delay, handler, args); ...
class class_name[name] begin[{] method[add, return_type[type[Ticket]], modifier[public], parameter[delay, handler, args]] begin[{] if[binary_operation[member[.handler], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] call[...
Keyword[public] identifier[Ticket] identifier[add] operator[SEP] Keyword[long] identifier[delay] , identifier[TimerHandler] identifier[handler] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[if] operator[SEP] identifier[handler] operator[==] Other[null] operator[SEP] { K...
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/bridge/2.0", name = "BridgeRoom", substitutionHeadNamespace = "http://www.opengis.net/citygml/2.0", substitutionHeadName = "_CityObject") public JAXBElement<BridgeRoomType> createBridgeRoom(BridgeRoomType value) { return new JAXBElement<BridgeRoomT...
class class_name[name] begin[{] method[createBridgeRoom, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_BridgeRoom_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_ope...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden...
public List<Way> getWays(Collection<Long> wayIds) { if(wayIds.isEmpty()) return Collections.emptyList(); return getSomeElements(WAY + "s?" + WAY + "s=" + toCommaList(wayIds), Way.class); }
class class_name[name] begin[{] method[getWays, return_type[type[List]], modifier[public], parameter[wayIds]] begin[{] if[call[wayIds.isEmpty, parameter[]]] begin[{] return[call[Collections.emptyList, parameter[]]] else begin[{] None end[}] return[call[.getSomeElements, ...
Keyword[public] identifier[List] operator[<] identifier[Way] operator[>] identifier[getWays] operator[SEP] identifier[Collection] operator[<] identifier[Long] operator[>] identifier[wayIds] operator[SEP] { Keyword[if] operator[SEP] identifier[wayIds] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] ...
private void encodeArray(GeneratorAdapter mg, TypeToken<?> componentType, Schema componentSchema, int value, int encoder, int schemaLocal, int seenRefs) { // Encode and store the array length locally mg.loadArg(value); mg.arrayLength(); int length = mg.newLocal(Type.INT_TYPE);...
class class_name[name] begin[{] method[encodeArray, return_type[void], modifier[private], parameter[mg, componentType, componentSchema, value, encoder, schemaLocal, seenRefs]] begin[{] call[mg.loadArg, parameter[member[.value]]] call[mg.arrayLength, parameter[]] local_va...
Keyword[private] Keyword[void] identifier[encodeArray] operator[SEP] identifier[GeneratorAdapter] identifier[mg] , identifier[TypeToken] operator[<] operator[?] operator[>] identifier[componentType] , identifier[Schema] identifier[componentSchema] , Keyword[int] identifier[value] , Keyword[int] identifier[encoder] ...
public static String createHtmlSequencePlots(String title, Schema schema, List<List<Writable>> sequence) throws Exception { Configuration cfg = new Configuration(new Version(2, 3, 23)); // Where do we load the templates from: cfg.setClassForTemplateLoading(HtmlSequencePlotti...
class class_name[name] begin[{] method[createHtmlSequencePlots, return_type[type[String]], modifier[public static], parameter[title, schema, sequence]] begin[{] local_variable[type[Configuration], cfg] call[cfg.setClassForTemplateLoading, parameter[ClassReference(postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[String] identifier[createHtmlSequencePlots] operator[SEP] identifier[String] identifier[title] , identifier[Schema] identifier[schema] , identifier[List] operator[<] identifier[List] operator[<] identifier[Writable] operator[>] operator[>] identifier[sequence] operator[SEP] ...
private void addSlaveJulLogRecords(Container result, List<java.util.concurrent.Callable<List<FileContent>>> tasks, final Node node, final SmartLogFetcher logFetcher) { final FilePath rootPath = node.getRootPath(); if (rootPath != null) { // rotated log files stored on the disk ta...
class class_name[name] begin[{] method[addSlaveJulLogRecords, return_type[void], modifier[private], parameter[result, tasks, node, logFetcher]] begin[{] local_variable[type[FilePath], rootPath] if[binary_operation[member[.rootPath], !=, literal[null]]] begin[{] c...
Keyword[private] Keyword[void] identifier[addSlaveJulLogRecords] operator[SEP] identifier[Container] identifier[result] , identifier[List] operator[<] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Callable] operator[<] identifier[List] operator[<] identif...
public void redeemRewards(int count, BranchReferralStateChangedListener callback) { redeemRewards(Defines.Jsonkey.DefaultBucket.getKey(), count, callback); }
class class_name[name] begin[{] method[redeemRewards, return_type[void], modifier[public], parameter[count, callback]] begin[{] call[.redeemRewards, parameter[call[Defines.Jsonkey.DefaultBucket.getKey, parameter[]], member[.count], member[.callback]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[redeemRewards] operator[SEP] Keyword[int] identifier[count] , identifier[BranchReferralStateChangedListener] identifier[callback] operator[SEP] { identifier[redeemRewards] operator[SEP] identifier[Defines] operator[SEP] identifier[Jsonkey] operator[SEP] identifier[Defaul...
final Optional<Expression> getTypeAssertion(Expression value, Generator codeGenerator) { return predicate.maybeCheck(value, codeGenerator); }
class class_name[name] begin[{] method[getTypeAssertion, return_type[type[Optional]], modifier[final], parameter[value, codeGenerator]] begin[{] return[call[predicate.maybeCheck, parameter[member[.value], member[.codeGenerator]]]] end[}] END[}]
Keyword[final] identifier[Optional] operator[<] identifier[Expression] operator[>] identifier[getTypeAssertion] operator[SEP] identifier[Expression] identifier[value] , identifier[Generator] identifier[codeGenerator] operator[SEP] { Keyword[return] identifier[predicate] operator[SEP] identifier[maybeCheck] oper...
@Override public ConstraintReport addConstraintReport(Constraints constraints, Date date, HttpRequest request) { ConstraintReportId reportId = nextConstraintReportId(); return new JPAConstraintReport(reportId,date, request, constraints); }
class class_name[name] begin[{] method[addConstraintReport, return_type[type[ConstraintReport]], modifier[public], parameter[constraints, date, request]] begin[{] local_variable[type[ConstraintReportId], reportId] return[ClassCreator(arguments=[MemberReference(member=reportId, postfix_operators...
annotation[@] identifier[Override] Keyword[public] identifier[ConstraintReport] identifier[addConstraintReport] operator[SEP] identifier[Constraints] identifier[constraints] , identifier[Date] identifier[date] , identifier[HttpRequest] identifier[request] operator[SEP] { identifier[ConstraintReportId] identifi...
private InterfaceDeclaration getMostDerivedControlInterface( InterfaceDeclaration controlIntfOrExt ) { Queue<InterfaceDeclaration> q = new LinkedList<InterfaceDeclaration>(); InterfaceDeclaration id = controlIntfOrExt; while ( id != null ) { if ( id.getAnnotation(Control...
class class_name[name] begin[{] method[getMostDerivedControlInterface, return_type[type[InterfaceDeclaration]], modifier[private], parameter[controlIntfOrExt]] begin[{] local_variable[type[Queue], q] local_variable[type[InterfaceDeclaration], id] while[binary_operation[member[.i...
Keyword[private] identifier[InterfaceDeclaration] identifier[getMostDerivedControlInterface] operator[SEP] identifier[InterfaceDeclaration] identifier[controlIntfOrExt] operator[SEP] { identifier[Queue] operator[<] identifier[InterfaceDeclaration] operator[>] identifier[q] operator[=] Keyword[new] identifier[Lin...