code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void visitDefault(GroovySourceAST t,int visit) { if (visit == OPENING_VISIT) { print(t,visit,"<" + tokenNames[t.getType()] + ">"); //out.print("<" + t.getType() + ">"); } else { print(t,visit,"</" + tokenNames[t.getType()] + ">"); //out.print("</" +...
class class_name[name] begin[{] method[visitDefault, return_type[void], modifier[public], parameter[t, visit]] begin[{] if[binary_operation[member[.visit], ==, member[.OPENING_VISIT]]] begin[{] call[.print, parameter[member[.t], member[.visit], binary_operation[binary_op...
Keyword[public] Keyword[void] identifier[visitDefault] operator[SEP] identifier[GroovySourceAST] identifier[t] , Keyword[int] identifier[visit] operator[SEP] { Keyword[if] operator[SEP] identifier[visit] operator[==] identifier[OPENING_VISIT] operator[SEP] { identifier[print] operator[SEP] identifier...
@Override public void run() { if (!stateUpdater.compareAndSet(this, 1, 2)) { return; } List<JDBCLogAttribute> messages = new ArrayList<>(); JDBCLogAttribute msg = null; //only grab at most 1000 messages at a time for (int i = 0; i < 1000; ++i) { ...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] if[call[stateUpdater.compareAndSet, parameter[THIS[], literal[1], literal[2]]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[List], m...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[stateUpdater] operator[SEP] identifier[compareAndSet] operator[SEP] Keyword[this] , Other[1] , Other[2] operator[SEP] operator[SEP] { Keywor...
@VisibleForTesting @SuppressWarnings("unchecked") @Override public int numKeyValueStateEntries() { int sum = 0; for (StateSnapshotRestore state : registeredKVStates.values()) { sum += ((StateTable<?, ?, ?>) state).size(); } return sum; }
class class_name[name] begin[{] method[numKeyValueStateEntries, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], sum] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=su...
annotation[@] identifier[VisibleForTesting] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[numKeyValueStateEntries] operator[SEP] operator[SEP] { Keyword[int] identifier[sum] operator[=] Other[0] op...
public static <T> Query<T> queryWithPage(ExpressionList<T> expressionList, Pageable pageable) { Assert.notNull(expressionList, "expressionList must not null"); Assert.notNull(pageable, "pageable must not null"); return expressionList.setMaxRows(pageable.getPageSize()) .setFir...
class class_name[name] begin[{] method[queryWithPage, return_type[type[Query]], modifier[public static], parameter[expressionList, pageable]] begin[{] call[Assert.notNull, parameter[member[.expressionList], literal["expressionList must not null"]]] call[Assert.notNull, parameter...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Query] operator[<] identifier[T] operator[>] identifier[queryWithPage] operator[SEP] identifier[ExpressionList] operator[<] identifier[T] operator[>] identifier[expressionList] , identifier[Pageable] identifier[pageable] operator[SEP] { ...
@VisibleForTesting void killTopologyHandler(String topologyName) throws TopologyRuntimeManagementException { Scheduler.KillTopologyRequest killTopologyRequest = Scheduler.KillTopologyRequest.newBuilder() .setTopologyName(topologyName).build(); if (!schedulerClient.killTopology(killTopologyRequest)) {...
class class_name[name] begin[{] method[killTopologyHandler, return_type[void], modifier[default], parameter[topologyName]] begin[{] local_variable[type[Scheduler], killTopologyRequest] if[call[schedulerClient.killTopology, parameter[member[.killTopologyRequest]]]] begin[{] T...
annotation[@] identifier[VisibleForTesting] Keyword[void] identifier[killTopologyHandler] operator[SEP] identifier[String] identifier[topologyName] operator[SEP] Keyword[throws] identifier[TopologyRuntimeManagementException] { identifier[Scheduler] operator[SEP] identifier[KillTopologyRequest] identifier[killTop...
public static MatchResult doMatch(final String requestURI, final String httpMethod) { MatchResult ret; final int segs = StringUtils.countMatches(requestURI, "/"); ContextHandlerMeta contextHandlerMeta; String concreteKey = httpMethod + "." + requestURI; switch (segs) { ...
class class_name[name] begin[{] method[doMatch, return_type[type[MatchResult]], modifier[public static], parameter[requestURI, httpMethod]] begin[{] local_variable[type[MatchResult], ret] local_variable[type[int], segs] local_variable[type[ContextHandlerMeta], contextHandlerMeta] ...
Keyword[public] Keyword[static] identifier[MatchResult] identifier[doMatch] operator[SEP] Keyword[final] identifier[String] identifier[requestURI] , Keyword[final] identifier[String] identifier[httpMethod] operator[SEP] { identifier[MatchResult] identifier[ret] operator[SEP] Keyword[final] Keyword[int] identifi...
public static xen_image delete(nitro_service client, xen_image resource) throws Exception { resource.validate("delete"); return ((xen_image[]) resource.delete_resource(client))[0]; }
class class_name[name] begin[{] method[delete, return_type[type[xen_image]], modifier[public static], parameter[client, resource]] begin[{] call[resource.validate, parameter[literal["delete"]]] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=client, postfix_ope...
Keyword[public] Keyword[static] identifier[xen_image] identifier[delete] operator[SEP] identifier[nitro_service] identifier[client] , identifier[xen_image] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[resource] operator[SEP] identifier[validate] operator[SEP] literal[Str...
public Field getFieldById(Long fieldIdParam) { Field field = new Field(fieldIdParam); //Set for Payara server... field.setFieldValue(new MultiChoice()); if(this.serviceTicket != null) { field.setServiceTicket(this.serviceTicket); } return new Field(this.postJson( field, Version1.getById())); }
class class_name[name] begin[{] method[getFieldById, return_type[type[Field]], modifier[public], parameter[fieldIdParam]] begin[{] local_variable[type[Field], field] call[field.setFieldValue, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operat...
Keyword[public] identifier[Field] identifier[getFieldById] operator[SEP] identifier[Long] identifier[fieldIdParam] operator[SEP] { identifier[Field] identifier[field] operator[=] Keyword[new] identifier[Field] operator[SEP] identifier[fieldIdParam] operator[SEP] operator[SEP] identifier[field] operator[SEP] iden...
public List<T> elementList() { if (m_cache != null) { return m_cache; } if (m_relativeOrdered) { List<T> objectList = new ArrayList<T>(); Iterator<CmsIdObjectElement<T>> itObjs = m_orderedObjectList.iterator(); while (itObjs.hasNext()) { ...
class class_name[name] begin[{] method[elementList, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.m_cache], !=, literal[null]]] begin[{] return[member[.m_cache]] else begin[{] None end[}] if[member[.m_rel...
Keyword[public] identifier[List] operator[<] identifier[T] operator[>] identifier[elementList] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_cache] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[m_cache] operator[SEP] } Keyword[if] operator[SEP...
public static AjaxUrlInfo getAjaxUrl(ServletContext servletContext, ServletRequest request, Object nameable) { ArrayList/*< URLRewriter >*/ rewriters = getRewriters( request ); if ( rewriters != null ) { for ( Iterator i = rewriters.iterator(); i.hasNext(); ) { ...
class class_name[name] begin[{] method[getAjaxUrl, return_type[type[AjaxUrlInfo]], modifier[public static], parameter[servletContext, request, nameable]] begin[{] local_variable[type[ArrayList], rewriters] if[binary_operation[member[.rewriters], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[AjaxUrlInfo] identifier[getAjaxUrl] operator[SEP] identifier[ServletContext] identifier[servletContext] , identifier[ServletRequest] identifier[request] , identifier[Object] identifier[nameable] operator[SEP] { identifier[ArrayList] identifier[rewriters] operator[=] i...
public CsvRow nextRow() throws IORuntimeException { long startingLineNo; List<String> currentFields; int fieldCount; while (false == finished) { startingLineNo = ++lineNo; currentFields = readLine(); if(null == currentFields) { break; } fieldCount = currentFields.size(); // 末尾 if (field...
class class_name[name] begin[{] method[nextRow, return_type[type[CsvRow]], modifier[public], parameter[]] begin[{] local_variable[type[long], startingLineNo] local_variable[type[List], currentFields] local_variable[type[int], fieldCount] while[binary_operation[literal[fa...
Keyword[public] identifier[CsvRow] identifier[nextRow] operator[SEP] operator[SEP] Keyword[throws] identifier[IORuntimeException] { Keyword[long] identifier[startingLineNo] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[currentFields] operator[SEP] Keyword[int] identifier[fi...
private static boolean isAsyncMethod(Method method) { Class<?>[] parameterTypes = method.getParameterTypes(); for (Class<?> c : parameterTypes) { if (c.isAssignableFrom(javax.ws.rs.container.AsyncResponse.class)) return true; } return false; }
class class_name[name] begin[{] method[isAsyncMethod, return_type[type[boolean]], modifier[private static], parameter[method]] begin[{] local_variable[type[Class], parameterTypes] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[ClassRef...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isAsyncMethod] operator[SEP] identifier[Method] identifier[method] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[parameterTypes] operator[=] identifier[method] operator[SEP] identifier[getP...
public void writeLargeString( String s ) { final byte[] bytes = DynamicByteBufferHelper.bytes( s ); this.add( bytes.length ); this.add( bytes ); }
class class_name[name] begin[{] method[writeLargeString, return_type[void], modifier[public], parameter[s]] begin[{] local_variable[type[byte], bytes] THIS[call[None.add, parameter[member[bytes.length]]]] THIS[call[None.add, parameter[member[.bytes]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[writeLargeString] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] identifier[DynamicByteBufferHelper] operator[SEP] identifier[bytes] operator[SEP] identifier[s] operator...
private Properties setDocevalProperties(final String model, final String testset, String clearFeatures) { final Properties parsevalProperties = new Properties(); parsevalProperties.setProperty("model", model); parsevalProperties.setProperty("testset", testset); parsevalProperties.setProperty("clea...
class class_name[name] begin[{] method[setDocevalProperties, return_type[type[Properties]], modifier[private], parameter[model, testset, clearFeatures]] begin[{] local_variable[type[Properties], parsevalProperties] call[parsevalProperties.setProperty, parameter[literal["model"], member[...
Keyword[private] identifier[Properties] identifier[setDocevalProperties] operator[SEP] Keyword[final] identifier[String] identifier[model] , Keyword[final] identifier[String] identifier[testset] , identifier[String] identifier[clearFeatures] operator[SEP] { Keyword[final] identifier[Properties] identifier[pars...
public static Object getParent(TreeModel treeModel, Object node) { return getParent(treeModel, node, treeModel.getRoot()); }
class class_name[name] begin[{] method[getParent, return_type[type[Object]], modifier[public static], parameter[treeModel, node]] begin[{] return[call[.getParent, parameter[member[.treeModel], member[.node], call[treeModel.getRoot, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[getParent] operator[SEP] identifier[TreeModel] identifier[treeModel] , identifier[Object] identifier[node] operator[SEP] { Keyword[return] identifier[getParent] operator[SEP] identifier[treeModel] , identifier[node] , identifier[treeModel] operator...
@Override public T visitFragment_(Fragment_Context ctx) { //on(ctx); appendAst(ctx, tok(FRAGMENT_PART)); return super.visitFragment_(ctx); }
class class_name[name] begin[{] method[visitFragment_, return_type[type[T]], modifier[public], parameter[ctx]] begin[{] call[.appendAst, parameter[member[.ctx], call[.tok, parameter[member[.FRAGMENT_PART]]]]] return[SuperMethodInvocation(arguments=[MemberReference(member=ctx, postfix_op...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[visitFragment_] operator[SEP] identifier[Fragment_Context] identifier[ctx] operator[SEP] { identifier[appendAst] operator[SEP] identifier[ctx] , identifier[tok] operator[SEP] identifier[FRAGMENT_PART] operator[SEP] operator[SEP] operato...
protected final Table createBlankTable(HsqlName name) { Table table = new Table(database, name, TableBase.SYSTEM_TABLE); return table; }
class class_name[name] begin[{] method[createBlankTable, return_type[type[Table]], modifier[final protected], parameter[name]] begin[{] local_variable[type[Table], table] return[member[.table]] end[}] END[}]
Keyword[protected] Keyword[final] identifier[Table] identifier[createBlankTable] operator[SEP] identifier[HsqlName] identifier[name] operator[SEP] { identifier[Table] identifier[table] operator[=] Keyword[new] identifier[Table] operator[SEP] identifier[database] , identifier[name] , identifier[TableBase] opera...
public static String base64ToString(String base64Value) { Utils.require(base64Value.length() % 4 == 0, "Invalid base64 value (must be a multiple of 4 chars): " + base64Value); byte[] utf8String = DatatypeConverter.parseBase64Binary(base64Value); return toString(utf8Stri...
class class_name[name] begin[{] method[base64ToString, return_type[type[String]], modifier[public static], parameter[base64Value]] begin[{] call[Utils.require, parameter[binary_operation[binary_operation[call[base64Value.length, parameter[]], %, literal[4]], ==, literal[0]], binary_operation[li...
Keyword[public] Keyword[static] identifier[String] identifier[base64ToString] operator[SEP] identifier[String] identifier[base64Value] operator[SEP] { identifier[Utils] operator[SEP] identifier[require] operator[SEP] identifier[base64Value] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[%]...
public IonReader build(byte[] ionData, int offset, int length) { return makeReader(validateCatalog(), ionData, offset, length); }
class class_name[name] begin[{] method[build, return_type[type[IonReader]], modifier[public], parameter[ionData, offset, length]] begin[{] return[call[.makeReader, parameter[call[.validateCatalog, parameter[]], member[.ionData], member[.offset], member[.length]]]] end[}] END[}]
Keyword[public] identifier[IonReader] identifier[build] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[ionData] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { Keyword[return] identifier[makeReader] operator[SEP] identifier[validateCatalog] operator[SEP] ...
@Pure protected int compareSegments(ST s1, ST s2) { assert s1 != null && s2 != null; return s1.hashCode() - s2.hashCode(); }
class class_name[name] begin[{] method[compareSegments, return_type[type[int]], modifier[protected], parameter[s1, s2]] begin[{] AssertStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=s1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), o...
annotation[@] identifier[Pure] Keyword[protected] Keyword[int] identifier[compareSegments] operator[SEP] identifier[ST] identifier[s1] , identifier[ST] identifier[s2] operator[SEP] { Keyword[assert] identifier[s1] operator[!=] Other[null] operator[&&] identifier[s2] operator[!=] Other[null] operator[SEP] Keywor...
public EClass getIfcRegularTimeSeries() { if (ifcRegularTimeSeriesEClass == null) { ifcRegularTimeSeriesEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(431); } return ifcRegularTimeSeriesEClass; }
class class_name[name] begin[{] method[getIfcRegularTimeSeries, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRegularTimeSeriesEClass], ==, literal[null]]] begin[{] assign[member[.ifcRegularTimeSeriesEClass], Cast(expre...
Keyword[public] identifier[EClass] identifier[getIfcRegularTimeSeries] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRegularTimeSeriesEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRegularTimeSeriesEClass] operator[=] operator[SEP] identifier[EClass] operator[SE...
public Deferred execute(final GwtCommand command, final CommandCallback... callback) { final Deferred deferred = new Deferred(); for (CommandCallback successCallback : callback) { try { deferred.addCallback(successCallback); } catch (Throwable t) { Log.logError("Command failed on success callback", t)...
class class_name[name] begin[{] method[execute, return_type[type[Deferred]], modifier[public], parameter[command, callback]] begin[{] local_variable[type[Deferred], deferred] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvoca...
Keyword[public] identifier[Deferred] identifier[execute] operator[SEP] Keyword[final] identifier[GwtCommand] identifier[command] , Keyword[final] identifier[CommandCallback] operator[...] identifier[callback] operator[SEP] { Keyword[final] identifier[Deferred] identifier[deferred] operator[=] Keyword[new] ident...
@Override public void createCollisionDraw() { clearCollisionDraw(); final Collection<CollisionFormula> formulas = mapCollision.getCollisionFormulas(); collisionCache = new HashMap<>(formulas.size()); for (final CollisionFormula collision : formulas) { ...
class class_name[name] begin[{] method[createCollisionDraw, return_type[void], modifier[public], parameter[]] begin[{] call[.clearCollisionDraw, parameter[]] local_variable[type[Collection], formulas] assign[member[.collisionCache], ClassCreator(arguments=[MethodInvocati...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[createCollisionDraw] operator[SEP] operator[SEP] { identifier[clearCollisionDraw] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[CollisionFormula] operator[>] identifier[formulas] o...
@Override protected void populateFaxActionType2ReponseDataPathMappings() { //populate map FaxActionType[] faxActionTypes=new FaxActionType[]{FaxActionType.SUBMIT_FAX_JOB, FaxActionType.SUSPEND_FAX_JOB, ...
class class_name[name] begin[{] method[populateFaxActionType2ReponseDataPathMappings, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[FaxActionType], faxActionTypes] local_variable[type[Enum], configurationKeys] THIS[call[None.populateFaxActionT...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[populateFaxActionType2ReponseDataPathMappings] operator[SEP] operator[SEP] { identifier[FaxActionType] operator[SEP] operator[SEP] identifier[faxActionTypes] operator[=] Keyword[new] identifier[FaxActionType] operator[SEP] operator[SE...
public static <K, T> StreamMerger<K, T> create(Function<T, K> keyFunction, Comparator<K> keyComparator, boolean distinct) { return new StreamMerger<>(keyFunction, keyComparator, distinct); }
class class_name[name] begin[{] method[create, return_type[type[StreamMerger]], modifier[public static], parameter[keyFunction, keyComparator, distinct]] begin[{] return[ClassCreator(arguments=[MemberReference(member=keyFunction, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Mem...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[T] operator[>] identifier[StreamMerger] operator[<] identifier[K] , identifier[T] operator[>] identifier[create] operator[SEP] identifier[Function] operator[<] identifier[T] , identifier[K] operator[>] identifier[keyFunction] , identifier[Compar...
private void checkForHashCodeChange(Entry<K, V> e) { K key = extractKeyObj(e); if (extractIntKeyValue(key, modifiedHash(key.hashCode())) != e.hashCode) { if (keyMutationCnt == 0) { getLog().warn("Key mismatch! Key hashcode changed! keyClass=" + e.getKey().getClass().getName()); String s; ...
class class_name[name] begin[{] method[checkForHashCodeChange, return_type[void], modifier[private], parameter[e]] begin[{] local_variable[type[K], key] if[binary_operation[call[.extractIntKeyValue, parameter[member[.key], call[.modifiedHash, parameter[call[key.hashCode, parameter[]]]]]...
Keyword[private] Keyword[void] identifier[checkForHashCodeChange] operator[SEP] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] identifier[e] operator[SEP] { identifier[K] identifier[key] operator[=] identifier[extractKeyObj] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keywor...
@Indexable(type = IndexableType.REINDEX) @Override public CommerceWishList addCommerceWishList( CommerceWishList commerceWishList) { commerceWishList.setNew(true); return commerceWishListPersistence.update(commerceWishList); }
class class_name[name] begin[{] method[addCommerceWishList, return_type[type[CommerceWishList]], modifier[public], parameter[commerceWishList]] begin[{] call[commerceWishList.setNew, parameter[literal[true]]] return[call[commerceWishListPersistence.update, parameter[member[.commerceWish...
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[REINDEX] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceWishList] identifier[addCommerceWishList] operator[SEP] identifier[CommerceWishList] identifier[c...
private void doRemoveMailServer() throws PageException { admin.removeMailServer(getString("admin", action, "hostname"), getString("username", null)); store(); adminSync.broadcast(attributes, config); }
class class_name[name] begin[{] method[doRemoveMailServer, return_type[void], modifier[private], parameter[]] begin[{] call[admin.removeMailServer, parameter[call[.getString, parameter[literal["admin"], member[.action], literal["hostname"]]], call[.getString, parameter[literal["username"], lite...
Keyword[private] Keyword[void] identifier[doRemoveMailServer] operator[SEP] operator[SEP] Keyword[throws] identifier[PageException] { identifier[admin] operator[SEP] identifier[removeMailServer] operator[SEP] identifier[getString] operator[SEP] literal[String] , identifier[action] , literal[String] operator[SE...
public EClass getIfcFrequencyMeasure() { if (ifcFrequencyMeasureEClass == null) { ifcFrequencyMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(680); } return ifcFrequencyMeasureEClass; }
class class_name[name] begin[{] method[getIfcFrequencyMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcFrequencyMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcFrequencyMeasureEClass], Cast(expressi...
Keyword[public] identifier[EClass] identifier[getIfcFrequencyMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcFrequencyMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcFrequencyMeasureEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] ...
public static Map<String, String> getCapabilities(HttpServletRequest request, String ddsUrl) throws IOException { URL url; try { url = new URL(ddsUrl + "/get_capabilities?capability=resolution_width&capability=model_name&capability=xhtml_support_level&" + "headers=" + URLEncoder.encode(...
class class_name[name] begin[{] method[getCapabilities, return_type[type[Map]], modifier[public static], parameter[request, ddsUrl]] begin[{] local_variable[type[URL], url] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=url, postfix_operators=[]...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getCapabilities] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[String] identifier[ddsUrl] operator[SEP] Keyword[throws] identifier[IOException] { identifier...
@Nonnull public MarkdownProcessingResult process (@Nonnull @WillClose final Reader aReader) throws IOException { try { final Block aParent = _readLines (aReader); aParent.removeSurroundingEmptyLines (); _recurse (aParent, false); final MarkdownHCStack aOut = new MarkdownHCStack (); ...
class class_name[name] begin[{] method[process, return_type[type[MarkdownProcessingResult]], modifier[public], parameter[aReader]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference...
annotation[@] identifier[Nonnull] Keyword[public] identifier[MarkdownProcessingResult] identifier[process] operator[SEP] annotation[@] identifier[Nonnull] annotation[@] identifier[WillClose] Keyword[final] identifier[Reader] identifier[aReader] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try]...
public static <T> void applyFilter(MultivaluedMap<String, String> queryParams, SpiQuery<T> query, InjectionManager manager) { List<String> wheres = queryParams.get(FILTER_PARAM_NAME); if (wheres != null && wheres.size() > 0) {...
class class_name[name] begin[{] method[applyFilter, return_type[void], modifier[public static], parameter[queryParams, query, manager]] begin[{] local_variable[type[List], wheres] if[binary_operation[binary_operation[member[.wheres], !=, literal[null]], &&, binary_operation[call[wheres....
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[applyFilter] operator[SEP] identifier[MultivaluedMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[queryParams] , identifier[SpiQuery] operator[<] identifier[T] operator[>] identifier[query] , ...
@Override protected Control createContents(Composite parent) { Composite myComposite = new Composite(parent, SWT.NONE); GridData gd = new GridData(GridData.FILL_HORIZONTAL); myComposite.setLayoutData(gd); GridLayout layout = new GridLayout(); layout.makeColumnsEqualWidth = false; layout.numColumns = 2; ...
class class_name[name] begin[{] method[createContents, return_type[type[Control]], modifier[protected], parameter[parent]] begin[{] local_variable[type[Composite], myComposite] local_variable[type[GridData], gd] call[myComposite.setLayoutData, parameter[member[.gd]]] loc...
annotation[@] identifier[Override] Keyword[protected] identifier[Control] identifier[createContents] operator[SEP] identifier[Composite] identifier[parent] operator[SEP] { identifier[Composite] identifier[myComposite] operator[=] Keyword[new] identifier[Composite] operator[SEP] identifier[parent] , identifier[S...
public List<SpringCamelContext> getSpringCamelContexts() { List<SpringCamelContext> beans = new ArrayList<>(); for (String name : applicationContext.getBeanNamesForType(SpringCamelContext.class)) { beans.add(applicationContext.getBean(name, SpringCamelContext.class)); } retu...
class class_name[name] begin[{] method[getSpringCamelContexts, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], beans] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(...
Keyword[public] identifier[List] operator[<] identifier[SpringCamelContext] operator[>] identifier[getSpringCamelContexts] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[SpringCamelContext] operator[>] identifier[beans] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>]...
public void open(String closer) { // always perform the check for valid API usage... if (closer == null) { throw new NullPointerException("closer == null"); } // ...but avoid allocating an allocationSite if disabled if (this == NOOP || !ENABLED) { return; ...
class class_name[name] begin[{] method[open, return_type[void], modifier[public], parameter[closer]] begin[{] if[binary_operation[member[.closer], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[void] identifier[open] operator[SEP] identifier[String] identifier[closer] operator[SEP] { Keyword[if] operator[SEP] identifier[closer] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] operator[S...
public ForeignKey<JoinTable<T>> getOrCreateInverseForeignKey() { Node node = childNode.getOrCreate("inverse-foreign-key"); ForeignKey<JoinTable<T>> inverseForeignKey = new ForeignKeyImpl<JoinTable<T>>(this, "inverse-foreign-key", childNode, node); return inverseForeignKey; }
class class_name[name] begin[{] method[getOrCreateInverseForeignKey, return_type[type[ForeignKey]], modifier[public], parameter[]] begin[{] local_variable[type[Node], node] local_variable[type[ForeignKey], inverseForeignKey] return[member[.inverseForeignKey]] end[}] END[}]
Keyword[public] identifier[ForeignKey] operator[<] identifier[JoinTable] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateInverseForeignKey] operator[SEP] operator[SEP] { identifier[Node] identifier[node] operator[=] identifier[childNode] operator[SEP] identifier[getOrCreate] operator[SEP]...
public Transactions getTransactions(final TransactionState state, final TransactionType type, final QueryParams params) { if (state != null) params.put("state", state.getType()); if (type != null) params.put("type", type.getType()); return doGET(Transactions.TRANSACTIONS_RESOURCE, Transactions....
class class_name[name] begin[{] method[getTransactions, return_type[type[Transactions]], modifier[public], parameter[state, type, params]] begin[{] if[binary_operation[member[.state], !=, literal[null]]] begin[{] call[params.put, parameter[literal["state"], call[state.getType, param...
Keyword[public] identifier[Transactions] identifier[getTransactions] operator[SEP] Keyword[final] identifier[TransactionState] identifier[state] , Keyword[final] identifier[TransactionType] identifier[type] , Keyword[final] identifier[QueryParams] identifier[params] operator[SEP] { Keyword[if] operator[SEP] id...
@With(PassArgAction.class) public static Result passArgIndex(Http.Request request) { User user = request.attrs().get(Attrs.USER); return ok(Json.toJson(user)); }
class class_name[name] begin[{] method[passArgIndex, return_type[type[Result]], modifier[public static], parameter[request]] begin[{] local_variable[type[User], user] return[call[.ok, parameter[call[Json.toJson, parameter[member[.user]]]]]] end[}] END[}]
annotation[@] identifier[With] operator[SEP] identifier[PassArgAction] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[static] identifier[Result] identifier[passArgIndex] operator[SEP] identifier[Http] operator[SEP] identifier[Request] identifier[request] operator[SEP] { identifier[User] ident...
public static void mergeTypeClassPaths( List<String> destinationPaths, final List<String> sourcePaths, final String rootPath) { if (sourcePaths != null) { for (String jar : sourcePaths) { File file = new File(jar); if (!file.isAbsolute()) { file = new File(rootPath + File.separ...
class class_name[name] begin[{] method[mergeTypeClassPaths, return_type[void], modifier[public static], parameter[destinationPaths, sourcePaths, rootPath]] begin[{] if[binary_operation[member[.sourcePaths], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, st...
Keyword[public] Keyword[static] Keyword[void] identifier[mergeTypeClassPaths] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[destinationPaths] , Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[sourcePaths] , Keyword[final] identifier[String] ...
@Override public String get(String key, String defaultValue) { String value = _map.get(key); if (value != null) { return value; } else { return defaultValue; } }
class class_name[name] begin[{] method[get, return_type[type[String]], modifier[public], parameter[key, defaultValue]] begin[{] local_variable[type[String], value] if[binary_operation[member[.value], !=, literal[null]]] begin[{] return[member[.value]] else begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[get] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[defaultValue] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[_map] operator[SEP] identifier[get] operator[SEP] ident...
public void subtractCosts(Costs other) { if (this.networkCost != UNKNOWN && other.networkCost != UNKNOWN) { this.networkCost -= other.networkCost; if (this.networkCost < 0) { throw new IllegalArgumentException("Cannot subtract more cost then there is."); } } if (this.diskCost != UNKNOWN && other.disk...
class class_name[name] begin[{] method[subtractCosts, return_type[void], modifier[public], parameter[other]] begin[{] if[binary_operation[binary_operation[THIS[member[None.networkCost]], !=, member[.UNKNOWN]], &&, binary_operation[member[other.networkCost], !=, member[.UNKNOWN]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[subtractCosts] operator[SEP] identifier[Costs] identifier[other] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[networkCost] operator[!=] identifier[UNKNOWN] operator[&&] identifier[other] operator[SEP] identifier[networkCost] operator[!=...
public R setUnsharedAt(Date unsharedAt) throws ParseException { JsonObject jsonObject = getSharedLinkJsonObject(); if (unsharedAt == null){ jsonObject.add(BoxSharedLink.FIELD_UNSHARED_AT, JsonValue.NULL); } else { jsonObject.add(BoxSharedLink.FIELD_UNSHARED_AT, BoxDateFor...
class class_name[name] begin[{] method[setUnsharedAt, return_type[type[R]], modifier[public], parameter[unsharedAt]] begin[{] local_variable[type[JsonObject], jsonObject] if[binary_operation[member[.unsharedAt], ==, literal[null]]] begin[{] call[jsonObject.add, p...
Keyword[public] identifier[R] identifier[setUnsharedAt] operator[SEP] identifier[Date] identifier[unsharedAt] operator[SEP] Keyword[throws] identifier[ParseException] { identifier[JsonObject] identifier[jsonObject] operator[=] identifier[getSharedLinkJsonObject] operator[SEP] operator[SEP] operator[SEP] Keyword[...
@Internal public static Interceptor[] resolveIntroductionInterceptors(BeanContext beanContext, ExecutableMethod<?, ?> method, Interceptor... interceptors) { instrumentAnnotationMetadata(beanContext, method); Interceptor[] aroundInterceptors = resolveAroundInterceptors(beanContext, method, intercepto...
class class_name[name] begin[{] method[resolveIntroductionInterceptors, return_type[type[Interceptor]], modifier[public static], parameter[beanContext, method, interceptors]] begin[{] call[.instrumentAnnotationMetadata, parameter[member[.beanContext], member[.method]]] local_variable[ty...
annotation[@] identifier[Internal] Keyword[public] Keyword[static] identifier[Interceptor] operator[SEP] operator[SEP] identifier[resolveIntroductionInterceptors] operator[SEP] identifier[BeanContext] identifier[beanContext] , identifier[ExecutableMethod] operator[<] operator[?] , operator[?] operator[>] identifier[m...
@Deprecated byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { final Signature s = Signature.getInstance(algorithm); s.initSign(privateKey); s.update(contentBytes); return ...
class class_name[name] begin[{] method[createSignatureFor, return_type[type[byte]], modifier[default], parameter[algorithm, privateKey, contentBytes]] begin[{] local_variable[type[Signature], s] call[s.initSign, parameter[member[.privateKey]]] call[s.update, parameter[me...
annotation[@] identifier[Deprecated] Keyword[byte] operator[SEP] operator[SEP] identifier[createSignatureFor] operator[SEP] identifier[String] identifier[algorithm] , identifier[PrivateKey] identifier[privateKey] , Keyword[byte] operator[SEP] operator[SEP] identifier[contentBytes] operator[SEP] Keyword[throws] identi...
private boolean gavExists() { return groupId != null && !"".equals(groupId) && artifactId != null && !"".equals(artifactId) && version != null && !"".equals(version); }
class class_name[name] begin[{] method[gavExists, return_type[type[boolean]], modifier[private], parameter[]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.groupId], !=, literal[null]], &&, literal[""]], &&, binary_operatio...
Keyword[private] Keyword[boolean] identifier[gavExists] operator[SEP] operator[SEP] { Keyword[return] identifier[groupId] operator[!=] Other[null] operator[&&] operator[!] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[groupId] operator[SEP] operator[&&] identifier[artifactId] operator...
public static long round(SoyValue value) { if (value instanceof IntegerData) { return value.longValue(); } else { return Math.round(value.numberValue()); } }
class class_name[name] begin[{] method[round, return_type[type[long]], modifier[public static], parameter[value]] begin[{] if[binary_operation[member[.value], instanceof, type[IntegerData]]] begin[{] return[call[value.longValue, parameter[]]] else begin[{] return...
Keyword[public] Keyword[static] Keyword[long] identifier[round] operator[SEP] identifier[SoyValue] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[IntegerData] operator[SEP] { Keyword[return] identifier[value] operator[SEP] identifier[longVa...
@Override public void destroy() { try { try { if (myPubSubGateway != null) { myPubSubGateway.punsubscribe(); long now = System.currentTimeMillis(); while (myPubSubGateway.isSubscribed() && Sys...
class class_name[name] begin[{] method[destroy, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=myPubSubGateway, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[destroy] operator[SEP] operator[SEP] { Keyword[try] { Keyword[try] { Keyword[if] operator[SEP] identifier[myPubSubGateway] operator[!=] Other[null] operator[SEP] { identifier[myPubSubGateway] ...
public void setSelectors(java.util.Collection<Selector> selectors) { if (selectors == null) { this.selectors = null; return; } this.selectors = new com.amazonaws.internal.SdkInternalList<Selector>(selectors); }
class class_name[name] begin[{] method[setSelectors, return_type[void], modifier[public], parameter[selectors]] begin[{] if[binary_operation[member[.selectors], ==, literal[null]]] begin[{] assign[THIS[member[None.selectors]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setSelectors] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[Selector] operator[>] identifier[selectors] operator[SEP] { Keyword[if] operator[SEP] identifier[selectors] operator[==] Other[null] ope...
@Override public void initialize(Configuration conf, InputSplit split) throws IOException, InterruptedException { recordReader.initialize(conf, split); }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[conf, split]] begin[{] call[recordReader.initialize, parameter[member[.conf], member[.split]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[Configuration] identifier[conf] , identifier[InputSplit] identifier[split] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { identifier[recordReader] operato...
public void marshall(UnarchiveFindingsRequest unarchiveFindingsRequest, ProtocolMarshaller protocolMarshaller) { if (unarchiveFindingsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(unarchi...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[unarchiveFindingsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.unarchiveFindingsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UnarchiveFindingsRequest] identifier[unarchiveFindingsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[unarchiveFindingsRequest] operator[==] Other[null] opera...
@Override public void toWriter(boolean wholeDocument, Writer writer, Properties outputProperties) { try { super.toWriter(wholeDocument, writer, outputProperties); } catch (TransformerException e) { throw wrapExceptionAsRuntimeException(e); } }
class class_name[name] begin[{] method[toWriter, return_type[void], modifier[public], parameter[wholeDocument, writer, outputProperties]] begin[{] TryStatement(block=[StatementExpression(expression=SuperMethodInvocation(arguments=[MemberReference(member=wholeDocument, postfix_operators=[], prefix_opera...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[toWriter] operator[SEP] Keyword[boolean] identifier[wholeDocument] , identifier[Writer] identifier[writer] , identifier[Properties] identifier[outputProperties] operator[SEP] { Keyword[try] { Keyword[super] operator[SEP] ide...
public static DMatrixRMaj[] span(int dimen, int numVectors , Random rand ) { if( dimen < numVectors ) throw new IllegalArgumentException("The number of vectors must be less than or equal to the dimension"); DMatrixRMaj u[] = new DMatrixRMaj[numVectors]; u[0] = RandomMatrices_DDRM.r...
class class_name[name] begin[{] method[span, return_type[type[DMatrixRMaj]], modifier[public static], parameter[dimen, numVectors, rand]] begin[{] if[binary_operation[member[.dimen], <, member[.numVectors]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[]...
Keyword[public] Keyword[static] identifier[DMatrixRMaj] operator[SEP] operator[SEP] identifier[span] operator[SEP] Keyword[int] identifier[dimen] , Keyword[int] identifier[numVectors] , identifier[Random] identifier[rand] operator[SEP] { Keyword[if] operator[SEP] identifier[dimen] operator[<] identifier[numVec...
public static <G extends Gene<?, G>, C extends Comparable<? super C>> EvolutionStart<G, C> of( final ISeq<Phenotype<G, C>> population, final long generation ) { return new EvolutionStart<>(population, generation); }
class class_name[name] begin[{] method[of, return_type[type[EvolutionStart]], modifier[public static], parameter[population, generation]] begin[{] return[ClassCreator(arguments=[MemberReference(member=population, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(memb...
Keyword[public] Keyword[static] operator[<] identifier[G] Keyword[extends] identifier[Gene] operator[<] operator[?] , identifier[G] operator[>] , identifier[C] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[C] operator[>] operator[>] identifier[EvolutionStart] operator[<] id...
public final void enqueue(Object obj) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "enqueue", obj); // m_array has at least one position in it that is free. m_array[m_tail++] = obj; if (m_tail == m_array.length) m_tail = 0; if (m_head == m_tail) expand_array(); // if (tc.isE...
class class_name[name] begin[{] method[enqueue, return_type[void], modifier[final public], parameter[obj]] begin[{] assign[member[.m_array], member[.obj]] if[binary_operation[member[.m_tail], ==, member[m_array.length]]] begin[{] assign[member[.m_tail], literal[0]] ...
Keyword[public] Keyword[final] Keyword[void] identifier[enqueue] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { identifier[m_array] operator[SEP] identifier[m_tail] operator[++] operator[SEP] operator[=] identifier[obj] operator[SEP] Keyword[if] operator[SEP] identifier[m_tail] operator[==] ide...
private void _addProfileDependencies(MavenProfileDescriptor profileDescriptor, List<Dependency> dependencies, ScannerContext scannerContext) { for (Dependency dependency : dependencies) { MavenArtifactDescriptor dependencyArtifactDescriptor = getMavenArtifactDescriptor(dependency, scannerContext); ...
class class_name[name] begin[{] method[_addProfileDependencies, return_type[void], modifier[private], parameter[profileDescriptor, dependencies, scannerContext]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(di...
Keyword[private] Keyword[void] identifier[_addProfileDependencies] operator[SEP] identifier[MavenProfileDescriptor] identifier[profileDescriptor] , identifier[List] operator[<] identifier[Dependency] operator[>] identifier[dependencies] , identifier[ScannerContext] identifier[scannerContext] operator[SEP] { Ke...
@XmlElementDecl(namespace = "http://www.w3.org/1998/Math/MathML", name = "csymbol") public JAXBElement<CsymbolType> createCsymbol(CsymbolType value) { return new JAXBElement<CsymbolType>(_Csymbol_QNAME, CsymbolType.class, null, value); }
class class_name[name] begin[{] method[createCsymbol, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Csymbol_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[CsymbolType] operator[>] identifier[createCsymbol] operator[SEP] identifier[CsymbolType] i...
@Override public EClass getIfcRectangularTrimmedSurface() { if (ifcRectangularTrimmedSurfaceEClass == null) { ifcRectangularTrimmedSurfaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(505); } return ifcRectangularTrimmedSurfaceEClass; }
class class_name[name] begin[{] method[getIfcRectangularTrimmedSurface, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRectangularTrimmedSurfaceEClass], ==, literal[null]]] begin[{] assign[member[.ifcRectangularTrimmedSu...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcRectangularTrimmedSurface] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRectangularTrimmedSurfaceEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRectangularTrimmedSurfaceEClas...
private static List<CollectionJsonQuery> findQueries(RepresentationModel<?> resource) { if (!resource.hasLink(IanaLinkRelations.SELF)) { return Collections.emptyList(); } Link selfLink = resource.getRequiredLink(IanaLinkRelations.SELF); return selfLink.getAffordances().stream() // .map(it -> it.getAff...
class class_name[name] begin[{] method[findQueries, return_type[type[List]], modifier[private static], parameter[resource]] begin[{] if[call[resource.hasLink, parameter[member[IanaLinkRelations.SELF]]]] begin[{] return[call[Collections.emptyList, parameter[]]] else begin[{] ...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[CollectionJsonQuery] operator[>] identifier[findQueries] operator[SEP] identifier[RepresentationModel] operator[<] operator[?] operator[>] identifier[resource] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[resource] opera...
public final Mono<T> retryWhen(Function<Flux<Throwable>, ? extends Publisher<?>> whenFactory) { return onAssembly(new MonoRetryWhen<>(this, whenFactory)); }
class class_name[name] begin[{] method[retryWhen, return_type[type[Mono]], modifier[final public], parameter[whenFactory]] begin[{] return[call[.onAssembly, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=whenFactor...
Keyword[public] Keyword[final] identifier[Mono] operator[<] identifier[T] operator[>] identifier[retryWhen] operator[SEP] identifier[Function] operator[<] identifier[Flux] operator[<] identifier[Throwable] operator[>] , operator[?] Keyword[extends] identifier[Publisher] operator[<] operator[?] operator[>] operator[>] ...
public static <T> SerializedCheckpointData[] fromDeque( ArrayDeque<Tuple2<Long, Set<T>>> checkpoints, TypeSerializer<T> serializer, DataOutputSerializer outputBuffer) throws IOException { SerializedCheckpointData[] serializedCheckpoints = new SerializedCheckpointData[checkpoints.size()]; int pos = 0; f...
class class_name[name] begin[{] method[fromDeque, return_type[type[SerializedCheckpointData]], modifier[public static], parameter[checkpoints, serializer, outputBuffer]] begin[{] local_variable[type[SerializedCheckpointData], serializedCheckpoints] local_variable[type[int], pos] ForStat...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[SerializedCheckpointData] operator[SEP] operator[SEP] identifier[fromDeque] operator[SEP] identifier[ArrayDeque] operator[<] identifier[Tuple2] operator[<] identifier[Long] , identifier[Set] operator[<] identifier[T] operator[>] operator[...
private PreparedStatement prepareUpdate(String tableName, Update update) { StringBuilder cql = new StringBuilder(); switch (update) { case INSERT_ROW: // INSERT INTO <keyspace>.<table> (key,column1,value) VALUES (<key>, <colname>, <colvalue>); cql.append("INSERT INTO "); ...
class class_name[name] begin[{] method[prepareUpdate, return_type[type[PreparedStatement]], modifier[private], parameter[tableName, update]] begin[{] local_variable[type[StringBuilder], cql] SwitchStatement(cases=[SwitchStatementCase(case=['INSERT_ROW'], statements=[StatementExpression(expressi...
Keyword[private] identifier[PreparedStatement] identifier[prepareUpdate] operator[SEP] identifier[String] identifier[tableName] , identifier[Update] identifier[update] operator[SEP] { identifier[StringBuilder] identifier[cql] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operato...
public @CheckForNull User getUser(String name) { return User.get(name, User.ALLOW_USER_CREATION_VIA_URL && hasPermission(ADMINISTER)); }
class class_name[name] begin[{] method[getUser, return_type[type[User]], modifier[public], parameter[name]] begin[{] return[call[User.get, parameter[member[.name], binary_operation[member[User.ALLOW_USER_CREATION_VIA_URL], &&, call[.hasPermission, parameter[member[.ADMINISTER]]]]]]] end[}] END[}]
Keyword[public] annotation[@] identifier[CheckForNull] identifier[User] identifier[getUser] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[User] operator[SEP] identifier[get] operator[SEP] identifier[name] , identifier[User] operator[SEP] identifier[ALLOW_USER_CREAT...
private void installPackage() { AndPermission.with(this) .install() .file(new File(Environment.getExternalStorageDirectory(), "android.apk")) .rationale(new InstallRationale()) .onGranted(new Action<File>() { @Override public void o...
class class_name[name] begin[{] method[installPackage, return_type[void], modifier[private], parameter[]] begin[{] call[AndPermission.with, parameter[THIS[]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[installPackage] operator[SEP] operator[SEP] { identifier[AndPermission] operator[SEP] identifier[with] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[install] operator[SEP] operator[SEP] operator[SEP] identifier[file] operator[SEP] Keyword[new] identi...
private Map<String, SortedSet<String>> getNamesPerSurnameMap( final String surname) { if (!surnameIndex.containsKey(surname)) { return Collections.emptyMap(); } return surnameIndex.get(surname); }
class class_name[name] begin[{] method[getNamesPerSurnameMap, return_type[type[Map]], modifier[private], parameter[surname]] begin[{] if[call[surnameIndex.containsKey, parameter[member[.surname]]]] begin[{] return[call[Collections.emptyMap, parameter[]]] else begin[{] None ...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[SortedSet] operator[<] identifier[String] operator[>] operator[>] identifier[getNamesPerSurnameMap] operator[SEP] Keyword[final] identifier[String] identifier[surname] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[su...
public static void main(String[] args) throws Exception { prepareTestDb(); JDBCExample tut = new JDBCExample(); JobExecutionResult res = LocalExecutor.execute(tut, args); System.out.println("runtime: " + res.getNetRuntime()); System.exit(0); }
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] call[.prepareTestDb, parameter[]] local_variable[type[JDBCExample], tut] local_variable[type[JobExecutionResult], res] call[System.out.println, para...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[prepareTestDb] operator[SEP] operator[SEP] operator[SEP] identifier[JDBCExample] identifier[tut] operator[=...
private static int port(final File file) throws Exception { while (!file.exists()) { TimeUnit.MILLISECONDS.sleep(1L); } final int port; try (InputStream input = Files.newInputStream(file.toPath())) { // @checkstyle MagicNumber (1 line) final byte[] buf...
class class_name[name] begin[{] method[port, return_type[type[int]], modifier[private static], parameter[file]] begin[{] while[call[file.exists, parameter[]]] begin[{] call[TimeUnit.MILLISECONDS.sleep, parameter[literal[1L]]] end[}] local_variable[type[in...
Keyword[private] Keyword[static] Keyword[int] identifier[port] operator[SEP] Keyword[final] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[while] operator[SEP] operator[!] identifier[file] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] ...
static public void appendHexString(StringBuilder buffer, byte[] bytes, int offset, int length) { assertNotNull(buffer); if (bytes == null) { return; // do nothing (a noop) } assertOffsetLengthValid(offset, length, bytes.length); int end = offset + length; ...
class class_name[name] begin[{] method[appendHexString, return_type[void], modifier[public static], parameter[buffer, bytes, offset, length]] begin[{] call[.assertNotNull, parameter[member[.buffer]]] if[binary_operation[member[.bytes], ==, literal[null]]] begin[{] re...
Keyword[static] Keyword[public] Keyword[void] identifier[appendHexString] operator[SEP] identifier[StringBuilder] identifier[buffer] , Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { identifier[assertNotNull] opera...
private List<Object[]> getDataListByFilter(DataProviderFilter dataFilter) { logger.entering(dataFilter); List<Object[]> allObjs = new ArrayList<>(); if ((null == resource.getCls()) && (null != resource.getXpathMap())) { Document doc = getDocument(); for (Entry<String, Cl...
class class_name[name] begin[{] method[getDataListByFilter, return_type[type[List]], modifier[private], parameter[dataFilter]] begin[{] call[logger.entering, parameter[member[.dataFilter]]] local_variable[type[List], allObjs] if[binary_operation[binary_operation[literal[...
Keyword[private] identifier[List] operator[<] identifier[Object] operator[SEP] operator[SEP] operator[>] identifier[getDataListByFilter] operator[SEP] identifier[DataProviderFilter] identifier[dataFilter] operator[SEP] { identifier[logger] operator[SEP] identifier[entering] operator[SEP] identifier[dataFilter] o...
public String serviceName_reboot_POST(String serviceName, Boolean hard) throws IOException { String qPath = "/hosting/reseller/{serviceName}/reboot"; StringBuilder sb = path(qPath, serviceName); query(sb, "hard", hard); String resp = exec(qPath, "POST", sb.toString(), null); return convertTo(resp, String.clas...
class class_name[name] begin[{] method[serviceName_reboot_POST, return_type[type[String]], modifier[public], parameter[serviceName, hard]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.query, parameter[member[.sb], literal["hard"], me...
Keyword[public] identifier[String] identifier[serviceName_reboot_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[Boolean] identifier[hard] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier...
protected synchronized void bindFilterConfiguration(final FilterConfiguration config) { if (filterConfigurations == null) { filterConfigurations = new ArrayList<>(); } filterConfigurations.add(config); String key = config.getName(); ResourceFilter filter = config.getF...
class class_name[name] begin[{] method[bindFilterConfiguration, return_type[void], modifier[synchronized protected], parameter[config]] begin[{] if[binary_operation[member[.filterConfigurations], ==, literal[null]]] begin[{] assign[member[.filterConfigurations], ClassCre...
Keyword[protected] Keyword[synchronized] Keyword[void] identifier[bindFilterConfiguration] operator[SEP] Keyword[final] identifier[FilterConfiguration] identifier[config] operator[SEP] { Keyword[if] operator[SEP] identifier[filterConfigurations] operator[==] Other[null] operator[SEP] { identifier[filt...
final String printToString(boolean reportMismatchesOnly) { StringBuilder sb = new StringBuilder(); if (!isMatched()) { sb.append("Differences were found:\n"); printContents(/* includeMatches = */ false, /* fieldPrefix = */ "", sb); if (!reportMismatchesOnly && isAnyChildMatched()) { ...
class class_name[name] begin[{] method[printToString, return_type[type[String]], modifier[final], parameter[reportMismatchesOnly]] begin[{] local_variable[type[StringBuilder], sb] if[call[.isMatched, parameter[]]] begin[{] call[sb.append, parameter[literal["Diffe...
Keyword[final] identifier[String] identifier[printToString] operator[SEP] Keyword[boolean] identifier[reportMismatchesOnly] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] i...
public static int countCodePoint(char source[], int start, int limit) { if (source == null || source.length == 0) { return 0; } return findCodePointOffset(source, start, limit, limit - start); }
class class_name[name] begin[{] method[countCodePoint, return_type[type[int]], modifier[public static], parameter[source, start, limit]] begin[{] if[binary_operation[binary_operation[member[.source], ==, literal[null]], ||, binary_operation[member[source.length], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[int] identifier[countCodePoint] operator[SEP] Keyword[char] identifier[source] operator[SEP] operator[SEP] , Keyword[int] identifier[start] , Keyword[int] identifier[limit] operator[SEP] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[||]...
public static String domainToAscii(String input) { try { String result = IDN.toASCII(input).toLowerCase(Locale.US); if (result.isEmpty()) return null; // Confirm that the IDN ToASCII result doesn't contain any illegal characters. if (containsInvalidHostnameAsciiCodes(result)) { retu...
class class_name[name] begin[{] method[domainToAscii, return_type[type[String]], modifier[public static], parameter[input]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member...
Keyword[public] Keyword[static] identifier[String] identifier[domainToAscii] operator[SEP] identifier[String] identifier[input] operator[SEP] { Keyword[try] { identifier[String] identifier[result] operator[=] identifier[IDN] operator[SEP] identifier[toASCII] operator[SEP] identifier[input] operator[SE...
public static String serialise(Object object) { Gson gson = getBuilder().create(); return gson.toJson(object); }
class class_name[name] begin[{] method[serialise, return_type[type[String]], modifier[public static], parameter[object]] begin[{] local_variable[type[Gson], gson] return[call[gson.toJson, parameter[member[.object]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[serialise] operator[SEP] identifier[Object] identifier[object] operator[SEP] { identifier[Gson] identifier[gson] operator[=] identifier[getBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[create] operator[SEP] operator[SEP] operator[SEP] ...
public boolean fbml_refreshRefUrl(URL url) throws FacebookException, IOException { return extractBoolean(this.callMethod(FacebookMethod.FBML_REFRESH_REF_URL, new Pair<String, CharSequence>("url", url.toString()))); }
class class_name[name] begin[{] method[fbml_refreshRefUrl, return_type[type[boolean]], modifier[public], parameter[url]] begin[{] return[call[.extractBoolean, parameter[THIS[call[None.callMethod, parameter[member[FacebookMethod.FBML_REFRESH_REF_URL], ClassCreator(arguments=[Literal(postfix_operators=[]...
Keyword[public] Keyword[boolean] identifier[fbml_refreshRefUrl] operator[SEP] identifier[URL] identifier[url] operator[SEP] Keyword[throws] identifier[FacebookException] , identifier[IOException] { Keyword[return] identifier[extractBoolean] operator[SEP] Keyword[this] operator[SEP] identifier[callMethod] operat...
public Observable<ServiceResponse<Object>> generateUpgradedDefinitionWithServiceResponseAsync(String resourceGroupName, String workflowName, String targetSchemaVersion) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is require...
class class_name[name] begin[{] method[generateUpgradedDefinitionWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, workflowName, targetSchemaVersion]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Object] operator[>] operator[>] identifier[generateUpgradedDefinitionWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[workflowName] , identifier...
public static Reader newReader(ReadableByteChannel ch, String csName) { checkNotNull(csName, "csName"); return newReader(ch, Charset.forName(csName).newDecoder(), -1); }
class class_name[name] begin[{] method[newReader, return_type[type[Reader]], modifier[public static], parameter[ch, csName]] begin[{] call[.checkNotNull, parameter[member[.csName], literal["csName"]]] return[call[.newReader, parameter[member[.ch], call[Charset.forName, parameter[member[...
Keyword[public] Keyword[static] identifier[Reader] identifier[newReader] operator[SEP] identifier[ReadableByteChannel] identifier[ch] , identifier[String] identifier[csName] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[csName] , literal[String] operator[SEP] operator[SEP] Keyword[return] i...
void displayUserPermissions(CmsUser user) { CmsPermissionView view = buildPermissionEntryForm(user.getId(), buildPermissionsForCurrentUser(), false, false); view.hideDeniedColumn(); m_userPermissions.addComponent(view); }
class class_name[name] begin[{] method[displayUserPermissions, return_type[void], modifier[default], parameter[user]] begin[{] local_variable[type[CmsPermissionView], view] call[view.hideDeniedColumn, parameter[]] call[m_userPermissions.addComponent, parameter[member[.vi...
Keyword[void] identifier[displayUserPermissions] operator[SEP] identifier[CmsUser] identifier[user] operator[SEP] { identifier[CmsPermissionView] identifier[view] operator[=] identifier[buildPermissionEntryForm] operator[SEP] identifier[user] operator[SEP] identifier[getId] operator[SEP] operator[SEP] , identif...
private String getShapeString(int[] shape) { StringBuilder buf = new StringBuilder(); for (int i = 0; i < shape.length; i++) { if (i != 0) buf.append(" "); buf.append(shape[i]); } return buf.toString(); }
class class_name[name] begin[{] method[getShapeString, return_type[type[String]], modifier[private], parameter[shape]] begin[{] local_variable[type[StringBuilder], buf] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member...
Keyword[private] identifier[String] identifier[getShapeString] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[shape] operator[SEP] { identifier[StringBuilder] identifier[buf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP]...
public static BufferedImage getIndexedImage(BufferedImage pImage, int pNumberOfColors, int pHints) { return getIndexedImage(pImage, pNumberOfColors, null, pHints); }
class class_name[name] begin[{] method[getIndexedImage, return_type[type[BufferedImage]], modifier[public static], parameter[pImage, pNumberOfColors, pHints]] begin[{] return[call[.getIndexedImage, parameter[member[.pImage], member[.pNumberOfColors], literal[null], member[.pHints]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[BufferedImage] identifier[getIndexedImage] operator[SEP] identifier[BufferedImage] identifier[pImage] , Keyword[int] identifier[pNumberOfColors] , Keyword[int] identifier[pHints] operator[SEP] { Keyword[return] identifier[getIndexedImage] operator[SEP] identifier[pIma...
protected int getNumberOfLockedMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getNumberOfLockedMessages"); int count = 0; synchronized(this) { LMEMessage message; message = firstMsg; while(message != null) { count...
class class_name[name] begin[{] method[getNumberOfLockedMessages, return_type[type[int]], modifier[protected], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, param...
Keyword[protected] Keyword[int] identifier[getNumberOfLockedMessages] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] ope...
@Override public void clearCache() { entityCache.clearCache(CProductImpl.class); finderCache.clearCache(FINDER_CLASS_NAME_ENTITY); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); }
class class_name[name] begin[{] method[clearCache, return_type[void], modifier[public], parameter[]] begin[{] call[entityCache.clearCache, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CProd...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[clearCache] operator[SEP] operator[SEP] { identifier[entityCache] operator[SEP] identifier[clearCache] operator[SEP] identifier[CProductImpl] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[finderCache] operator[SEP] ...
public DescribeServices getAvailableServices() { if (services == null) { Set<String> keys = this.getRegisteredConfigurations().keySet(); Iterator<String> it = keys.iterator(); String id = null; services = new DescribeServices(); while (it.hasNext()) { id = it.next(); services.put(id, this.get...
class class_name[name] begin[{] method[getAvailableServices, return_type[type[DescribeServices]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.services], ==, literal[null]]] begin[{] local_variable[type[Set], keys] local_variable[type[Iterator], it...
Keyword[public] identifier[DescribeServices] identifier[getAvailableServices] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[services] operator[==] Other[null] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[keys] operator[=] Keyword[this] oper...
public LogWatchBuilder withDelayBetweenSweeps(final int length, final TimeUnit unit) { this.delayBetweenSweeps = LogWatchBuilder.getDelay(length, unit); return this; }
class class_name[name] begin[{] method[withDelayBetweenSweeps, return_type[type[LogWatchBuilder]], modifier[public], parameter[length, unit]] begin[{] assign[THIS[member[None.delayBetweenSweeps]], call[LogWatchBuilder.getDelay, parameter[member[.length], member[.unit]]]] return[THIS[]] ...
Keyword[public] identifier[LogWatchBuilder] identifier[withDelayBetweenSweeps] operator[SEP] Keyword[final] Keyword[int] identifier[length] , Keyword[final] identifier[TimeUnit] identifier[unit] operator[SEP] { Keyword[this] operator[SEP] identifier[delayBetweenSweeps] operator[=] identifier[LogWatchBuilder] op...
public Request moveIndexAsync(final @NonNull String srcIndexName, final @NonNull String dstIndexName, @Nullable final RequestOptions requestOptions, CompletionHandler completionHandler) { return new AsyncTaskRequest(completionHandler) { @NonNull @Override protected JSONObject...
class class_name[name] begin[{] method[moveIndexAsync, return_type[type[Request]], modifier[public], parameter[srcIndexName, dstIndexName, requestOptions, completionHandler]] begin[{] return[ClassCreator(arguments=[MemberReference(member=completionHandler, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] identifier[Request] identifier[moveIndexAsync] operator[SEP] Keyword[final] annotation[@] identifier[NonNull] identifier[String] identifier[srcIndexName] , Keyword[final] annotation[@] identifier[NonNull] identifier[String] identifier[dstIndexName] , annotation[@] identifier[Nullable] Keyword[final] i...
protected TaskBase endOfProcessDetected(ProcessInstance processInstance, Audit currentAudit) { TaskBase ret = null; TaskBase currentTask = getCurrentTask(processInstance); ProcessInstanceUtils.clearQueue(processInstance, TaskStatus.DONE); currentAudit.setStatus(TaskStatus.DONE); // End of process can mean jus...
class class_name[name] begin[{] method[endOfProcessDetected, return_type[type[TaskBase]], modifier[protected], parameter[processInstance, currentAudit]] begin[{] local_variable[type[TaskBase], ret] local_variable[type[TaskBase], currentTask] call[ProcessInstanceUtils.clearQueue,...
Keyword[protected] identifier[TaskBase] identifier[endOfProcessDetected] operator[SEP] identifier[ProcessInstance] identifier[processInstance] , identifier[Audit] identifier[currentAudit] operator[SEP] { identifier[TaskBase] identifier[ret] operator[=] Other[null] operator[SEP] identifier[TaskBase] identifier[c...
public ISrvPersistListElementsUml<IAsmElementUmlInteractive<ShapeFullVarious<UseCase>, DRI, SD, PRI>, DRI, SD, PRI, ShapeFullVarious<UseCase>> getSrvPersistListAsmUseCasesFull() { return srvPersistListAsmUseCasesFull; }
class class_name[name] begin[{] method[getSrvPersistListAsmUseCasesFull, return_type[type[ISrvPersistListElementsUml]], modifier[public], parameter[]] begin[{] return[member[.srvPersistListAsmUseCasesFull]] end[}] END[}]
Keyword[public] identifier[ISrvPersistListElementsUml] operator[<] identifier[IAsmElementUmlInteractive] operator[<] identifier[ShapeFullVarious] operator[<] identifier[UseCase] operator[>] , identifier[DRI] , identifier[SD] , identifier[PRI] operator[>] , identifier[DRI] , identifier[SD] , identifier[PRI] , ide...
public ByteArray removeLast() { Node node = bas.removeLast(); return node == null ? null : node.getByteArray(); }
class class_name[name] begin[{] method[removeLast, return_type[type[ByteArray]], modifier[public], parameter[]] begin[{] local_variable[type[Node], node] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] identifier[ByteArray] identifier[removeLast] operator[SEP] operator[SEP] { identifier[Node] identifier[node] operator[=] identifier[bas] operator[SEP] identifier[removeLast] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[node] operator[==] Other[null] operator[?] Other[null]...
public static double variance(int[] histogram, double mean , int N ) { return variance(histogram, mean, count(histogram,N), N); }
class class_name[name] begin[{] method[variance, return_type[type[double]], modifier[public static], parameter[histogram, mean, N]] begin[{] return[call[.variance, parameter[member[.histogram], member[.mean], call[.count, parameter[member[.histogram], member[.N]]], member[.N]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[variance] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[histogram] , Keyword[double] identifier[mean] , Keyword[int] identifier[N] operator[SEP] { Keyword[return] identifier[variance] operator[SEP] identifier[histogram] , identifie...
protected void scheduleTimeout(TimerImpl timer, boolean newTimer) { synchronized (scheduledTimerFutures) { if (!newTimer && !scheduledTimerFutures.containsKey(timer.getId())) { //this timer has been cancelled by another thread. We just return return; } ...
class class_name[name] begin[{] method[scheduleTimeout, return_type[void], modifier[protected], parameter[timer, newTimer]] begin[{] SYNCHRONIZED[member[.scheduledTimerFutures]] BEGIN[{] if[binary_operation[member[.newTimer], &&, call[scheduledTimerFutures.containsKey, p...
Keyword[protected] Keyword[void] identifier[scheduleTimeout] operator[SEP] identifier[TimerImpl] identifier[timer] , Keyword[boolean] identifier[newTimer] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[scheduledTimerFutures] operator[SEP] { Keyword[if] operator[SEP] operator[!] identi...
public static void stream(String path, String method, ApiClient client, SocketListener listener) throws ApiException, IOException { stream(path, method, new ArrayList<Pair>(), client, listener); }
class class_name[name] begin[{] method[stream, return_type[void], modifier[public static], parameter[path, method, client, listener]] begin[{] call[.stream, parameter[member[.path], member[.method], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], pre...
Keyword[public] Keyword[static] Keyword[void] identifier[stream] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[method] , identifier[ApiClient] identifier[client] , identifier[SocketListener] identifier[listener] operator[SEP] Keyword[throws] identifier[ApiException] , identifier[...
@NonNull public final synchronized ChronosListener getListener(final int id) { ChronosListener chronosListener = mListeners.get(id); if (chronosListener == null) { chronosListener = new ChronosListener(id); mListeners.put(id, chronosListener); } return chronos...
class class_name[name] begin[{] method[getListener, return_type[type[ChronosListener]], modifier[synchronized final public], parameter[id]] begin[{] local_variable[type[ChronosListener], chronosListener] if[binary_operation[member[.chronosListener], ==, literal[null]]] begin[{] ...
annotation[@] identifier[NonNull] Keyword[public] Keyword[final] Keyword[synchronized] identifier[ChronosListener] identifier[getListener] operator[SEP] Keyword[final] Keyword[int] identifier[id] operator[SEP] { identifier[ChronosListener] identifier[chronosListener] operator[=] identifier[mListeners] operator[S...
public void setModified(DateTime date) throws InvalidArgumentException { if (date == null) { throw new InvalidArgumentException("Date cannot be empty"); } copyConditions.put("x-amz-copy-source-if-modified-since", date.toString(DateFormat.HTTP_HEADER_DATE_FORMAT)); }
class class_name[name] begin[{] method[setModified, return_type[void], modifier[public], parameter[date]] begin[{] if[binary_operation[member[.date], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qua...
Keyword[public] Keyword[void] identifier[setModified] operator[SEP] identifier[DateTime] identifier[date] operator[SEP] Keyword[throws] identifier[InvalidArgumentException] { Keyword[if] operator[SEP] identifier[date] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[Inva...
private void refresh() { synchronized (mTileAreas) { int index = 0; for (final MapTileArea area : mCache.getAdditionalMapTileList().getList()) { final MapTileArea copy; if (index < mTileAreas.getList().size()) { copy = mTileAreas.getLis...
class class_name[name] begin[{] method[refresh, return_type[void], modifier[private], parameter[]] begin[{] SYNCHRONIZED[member[.mTileAreas]] BEGIN[{] local_variable[type[int], index] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annot...
Keyword[private] Keyword[void] identifier[refresh] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[mTileAreas] operator[SEP] { Keyword[int] identifier[index] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[MapTileArea] identifier[are...
private static boolean keyIsValid(final BinaryRequest request) { if (request.keyBytes() == null || request.keyBytes().length < MIN_KEY_BYTES) { request.observable().onError(new IllegalArgumentException("The Document ID must not be null or empty.")); return false; } if (r...
class class_name[name] begin[{] method[keyIsValid, return_type[type[boolean]], modifier[private static], parameter[request]] begin[{] if[binary_operation[binary_operation[call[request.keyBytes, parameter[]], ==, literal[null]], ||, binary_operation[call[request.keyBytes, parameter[]], <, member...
Keyword[private] Keyword[static] Keyword[boolean] identifier[keyIsValid] operator[SEP] Keyword[final] identifier[BinaryRequest] identifier[request] operator[SEP] { Keyword[if] operator[SEP] identifier[request] operator[SEP] identifier[keyBytes] operator[SEP] operator[SEP] operator[==] Other[null] operator[||] id...
public static char bytesToChar(byte[] bytes, int offset) { char result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (char) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
class class_name[name] begin[{] method[bytesToChar, return_type[type[char]], modifier[public static], parameter[bytes, offset]] begin[{] local_variable[type[char], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberRefere...
Keyword[public] Keyword[static] Keyword[char] identifier[bytesToChar] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[offset] operator[SEP] { Keyword[char] identifier[result] operator[=] literal[Integer] operator[SEP] Keyword[for] operator[SEP] Keyword[int] id...
@SuppressWarnings("unchecked") public <T extends IEvaluation> T[] doEvaluationMDS(JavaRDD<MultiDataSet> data, int evalBatchSize, T... emptyEvaluations) { return doEvaluationMDS(data, getDefaultEvaluationWorkers(), evalBatchSize, emptyEvaluations); }
class class_name[name] begin[{] method[doEvaluationMDS, return_type[type[T]], modifier[public], parameter[data, evalBatchSize, emptyEvaluations]] begin[{] return[call[.doEvaluationMDS, parameter[member[.data], call[.getDefaultEvaluationWorkers, parameter[]], member[.evalBatchSize], member[.emptyEvaluat...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[IEvaluation] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[doEvaluationMDS] operator[SEP] identifier[JavaRDD] operator[<] identifier[MultiDataSe...
private static boolean isTargetValid(File fi, boolean ignoreCase, String... fileExt) { if (fi == null || fileExt == null || fileExt.length == 0) return true; String ext = getExtension(fi); for (String str : fileExt) { if (ignoreCase ? ext.equalsIgnoreCase(str) : ext.equ...
class class_name[name] begin[{] method[isTargetValid, return_type[type[boolean]], modifier[private static], parameter[fi, ignoreCase, fileExt]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.fi], ==, literal[null]], ||, binary_operation[member[.fileExt], ==, literal[null...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isTargetValid] operator[SEP] identifier[File] identifier[fi] , Keyword[boolean] identifier[ignoreCase] , identifier[String] operator[...] identifier[fileExt] operator[SEP] { Keyword[if] operator[SEP] identifier[fi] operator[==] Other[null] operator[|...
public Response setLocation(String photoId, Float lat, Float lon, Integer accuracy, JinxConstants.GeoContext context) throws JinxException { JinxUtils.validateParams(photoId, lat, lon); Map<String, String> params = new TreeMap<>(); params.put("method", "flickr.photos.geo.setLocation"); params.put("photo...
class class_name[name] begin[{] method[setLocation, return_type[type[Response]], modifier[public], parameter[photoId, lat, lon, accuracy, context]] begin[{] call[JinxUtils.validateParams, parameter[member[.photoId], member[.lat], member[.lon]]] local_variable[type[Map], params] ...
Keyword[public] identifier[Response] identifier[setLocation] operator[SEP] identifier[String] identifier[photoId] , identifier[Float] identifier[lat] , identifier[Float] identifier[lon] , identifier[Integer] identifier[accuracy] , identifier[JinxConstants] operator[SEP] identifier[GeoContext] identifier[context] op...
public static List<Map.Entry<Integer, byte[]>> parseTemplatesShallow(ByteBuf bb) { final ImmutableList.Builder<Map.Entry<Integer, byte[]>> templates = ImmutableList.builder(); int len = bb.readUnsignedShort(); int p = 4; // flow set id and length field itself while (p < len) { ...
class class_name[name] begin[{] method[parseTemplatesShallow, return_type[type[List]], modifier[public static], parameter[bb]] begin[{] local_variable[type[ImmutableList], templates] local_variable[type[int], len] local_variable[type[int], p] while[binary_operation[membe...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Integer] , Keyword[byte] operator[SEP] operator[SEP] operator[>] operator[>] identifier[parseTemplatesShallow] operator[SEP] identifier[ByteBuf] identifier[bb] operator[SEP] { Keyw...