code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public Set<String> getNodesByUri(final String uri) throws RepositoryException { Set<String> result; final int defaultClauseCount = BooleanQuery.getMaxClauseCount(); try { // final LocationFactory locationFactory = new // LocationFactory(this); final ValueF...
class class_name[name] begin[{] method[getNodesByUri, return_type[type[Set]], modifier[public], parameter[uri]] begin[{] local_variable[type[Set], result] local_variable[type[int], defaultClauseCount] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getNodesByUri] operator[SEP] Keyword[final] identifier[String] identifier[uri] operator[SEP] Keyword[throws] identifier[RepositoryException] { identifier[Set] operator[<] identifier[String] operator[>] identifier[result] operat...
protected void upgradeAnhangElements(Document doc) throws JaxenException { List nodes = XmlUtils.newXPath( "/io:openimmo/io:anbieter/io:anhang/io:daten/io:pfad | " + "/io:openimmo/io:anbieter/io:immobilie/io:anhaenge/io:anhang/io:daten/io:pfad", doc).selec...
class class_name[name] begin[{] method[upgradeAnhangElements, return_type[void], modifier[protected], parameter[doc]] begin[{] local_variable[type[List], nodes] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dime...
Keyword[protected] Keyword[void] identifier[upgradeAnhangElements] operator[SEP] identifier[Document] identifier[doc] operator[SEP] Keyword[throws] identifier[JaxenException] { identifier[List] identifier[nodes] operator[=] identifier[XmlUtils] operator[SEP] identifier[newXPath] operator[SEP] literal[String] ope...
private static Locale getAnnotationLocaleValue( IAnnotationBinding annotation, String varName) { String fieldName = getEnumAnnotationFieldName(annotation, varName); if (fieldName == null) { return Locale.getDefault(); } Locale resultLocale = Locale.valueOf(fieldNa...
class class_name[name] begin[{] method[getAnnotationLocaleValue, return_type[type[Locale]], modifier[private static], parameter[annotation, varName]] begin[{] local_variable[type[String], fieldName] if[binary_operation[member[.fieldName], ==, literal[null]]] begin[{] return[...
Keyword[private] Keyword[static] identifier[Locale] identifier[getAnnotationLocaleValue] operator[SEP] identifier[IAnnotationBinding] identifier[annotation] , identifier[String] identifier[varName] operator[SEP] { identifier[String] identifier[fieldName] operator[=] identifier[getEnumAnnotationFieldName] operat...
protected void open(int remoteid, long remotewindow, int remotepacket, byte[] responsedata) throws IOException { open(remoteid, remotewindow, remotepacket); }
class class_name[name] begin[{] method[open, return_type[void], modifier[protected], parameter[remoteid, remotewindow, remotepacket, responsedata]] begin[{] call[.open, parameter[member[.remoteid], member[.remotewindow], member[.remotepacket]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[open] operator[SEP] Keyword[int] identifier[remoteid] , Keyword[long] identifier[remotewindow] , Keyword[int] identifier[remotepacket] , Keyword[byte] operator[SEP] operator[SEP] identifier[responsedata] operator[SEP] Keyword[throws] identifier[IOException] { identi...
public void writeEntry(Object entity, String requestContextURL) throws ODataRenderException { checkNotNull(entity); this.contextURL = checkNotNull(requestContextURL); try { writeEntry(entity, false); } catch (XMLStreamException | IllegalAccessException | NoSuchF...
class class_name[name] begin[{] method[writeEntry, return_type[void], modifier[public], parameter[entity, requestContextURL]] begin[{] call[.checkNotNull, parameter[member[.entity]]] assign[THIS[member[None.contextURL]], call[.checkNotNull, parameter[member[.requestContextURL]]]...
Keyword[public] Keyword[void] identifier[writeEntry] operator[SEP] identifier[Object] identifier[entity] , identifier[String] identifier[requestContextURL] operator[SEP] Keyword[throws] identifier[ODataRenderException] { identifier[checkNotNull] operator[SEP] identifier[entity] operator[SEP] operator[SEP] Keywo...
@Override public CreateUpdateEntitiesResult updateEntities(String entityInstanceDefinition) throws AtlasException { entityInstanceDefinition = ParamChecker.notEmpty(entityInstanceDefinition, "Entity instance definition"); ITypedReferenceableInstance[] typedInstances = deserializeClassInstances(entit...
class class_name[name] begin[{] method[updateEntities, return_type[type[CreateUpdateEntitiesResult]], modifier[public], parameter[entityInstanceDefinition]] begin[{] assign[member[.entityInstanceDefinition], call[ParamChecker.notEmpty, parameter[member[.entityInstanceDefinition], literal["Entit...
annotation[@] identifier[Override] Keyword[public] identifier[CreateUpdateEntitiesResult] identifier[updateEntities] operator[SEP] identifier[String] identifier[entityInstanceDefinition] operator[SEP] Keyword[throws] identifier[AtlasException] { identifier[entityInstanceDefinition] operator[=] identifier[ParamCh...
public URL getURL(final String columnLabel) throws SQLException { try { return new URL(getValueObject(columnLabel).getString()); } catch (MalformedURLException e) { throw SQLExceptionMapper.getSQLException("Could not parse as URL"); } }
class class_name[name] begin[{] method[getURL, return_type[type[URL]], modifier[public], parameter[columnLabel]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=columnLabel, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] identifier[URL] identifier[getURL] operator[SEP] Keyword[final] identifier[String] identifier[columnLabel] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[try] { Keyword[return] Keyword[new] identifier[URL] operator[SEP] identifier[getValueObject] operator[SEP] identif...
public static <T> ParallelFlux<T> from(Publisher<? extends T> source) { return from(source, Runtime.getRuntime() .availableProcessors(), Queues.SMALL_BUFFER_SIZE, Queues.small()); }
class class_name[name] begin[{] method[from, return_type[type[ParallelFlux]], modifier[public static], parameter[source]] begin[{] return[call[.from, parameter[member[.source], call[Runtime.getRuntime, parameter[]], member[Queues.SMALL_BUFFER_SIZE], call[Queues.small, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ParallelFlux] operator[<] identifier[T] operator[>] identifier[from] operator[SEP] identifier[Publisher] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[source] operator[SEP] { Keyword[return] identifie...
@SuppressWarnings("unchecked") @Override public EList<IfcProductRepresentation> getOfProductRepresentation() { return (EList<IfcProductRepresentation>) eGet( Ifc4Package.Literals.IFC_REPRESENTATION__OF_PRODUCT_REPRESENTATION, true); }
class class_name[name] begin[{] method[getOfProductRepresentation, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_REPRESENTATION__OF_PRODUCT_REPRESENTATION, postfix_operators=[], prefix_operators=[], qualif...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcProductRepresentation] operator[>] identifier[getOfProductRepresentation] operator[SEP] operator[SEP] { Keyword[return] operator[SE...
public final double sampleSigma(int n) { synchronized (_lock) { long count = _count.get(); long lastCount = _lastStdCount; _lastStdCount = count; double sum = _sum.get(); double lastSum = _lastStdSum; _lastStdSum = sum; double sumSquare = _sumSquare; _sumSquare = ...
class class_name[name] begin[{] method[sampleSigma, return_type[type[double]], modifier[final public], parameter[n]] begin[{] SYNCHRONIZED[member[._lock]] BEGIN[{] local_variable[type[long], count] local_variable[type[long], lastCount] assign[memb...
Keyword[public] Keyword[final] Keyword[double] identifier[sampleSigma] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[_lock] operator[SEP] { Keyword[long] identifier[count] operator[=] identifier[_count] operator[SEP] identifier[get] operator[SE...
private T createEmpty(Class<?> clazz) { T emptyInstance = null; if (clazz.isInterface()) { throw new IllegalArgumentException("Specified class is an interface: " + clazz.getName()); } try { emptyInstance = (T) clazz.newInstance(); } catch (InstantiationE...
class class_name[name] begin[{] method[createEmpty, return_type[type[T]], modifier[private], parameter[clazz]] begin[{] local_variable[type[T], emptyInstance] if[call[clazz.isInterface, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(...
Keyword[private] identifier[T] identifier[createEmpty] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[T] identifier[emptyInstance] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[clazz] operator[SEP] identifier[isInterfa...
public int size() { restartFromHead: for (;;) { int count = 0; for (Node<E> p = first(); p != null;) { if (p.item != null) if (++count == Integer.MAX_VALUE) break; // @see Collection.size() if (p == (p = p.next)...
class class_name[name] begin[{] method[size, return_type[type[int]], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_...
Keyword[public] Keyword[int] identifier[size] operator[SEP] operator[SEP] { identifier[restartFromHead] operator[:] Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[Node] oper...
private void resolveAllUnresolvedBindings(GinjectorBindings collection) throws UnableToCompleteException { // Create known/explicit bindings before descending into children. This ensures that they are // available to any children that may need to depend on them. createBindingsForFactories(collection...
class class_name[name] begin[{] method[resolveAllUnresolvedBindings, return_type[void], modifier[private], parameter[collection]] begin[{] call[.createBindingsForFactories, parameter[member[.collection]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expre...
Keyword[private] Keyword[void] identifier[resolveAllUnresolvedBindings] operator[SEP] identifier[GinjectorBindings] identifier[collection] operator[SEP] Keyword[throws] identifier[UnableToCompleteException] { identifier[createBindingsForFactories] operator[SEP] identifier[collection] operator[SEP] operator[SEP] ...
public static Iterable<BoxWebHook.Info> all(final BoxAPIConnection api) { return new BoxResourceIterable<BoxWebHook.Info>(api, WEBHOOKS_URL_TEMPLATE.build(api.getBaseURL()), 64) { @Override protected BoxWebHook.Info factory(JsonObject jsonObject) { BoxWebHook webHook = n...
class class_name[name] begin[{] method[all, return_type[type[Iterable]], modifier[public static], parameter[api]] begin[{] return[ClassCreator(arguments=[MemberReference(member=api, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MethodInvocation(argume...
Keyword[public] Keyword[static] identifier[Iterable] operator[<] identifier[BoxWebHook] operator[SEP] identifier[Info] operator[>] identifier[all] operator[SEP] Keyword[final] identifier[BoxAPIConnection] identifier[api] operator[SEP] { Keyword[return] Keyword[new] identifier[BoxResourceIterable] operator[<] ide...
public static PageSearchResult pageSearch(String accessToken, PageSearch pageSearch) { return pageSearch(accessToken, JsonUtil.toJSONString(pageSearch)); }
class class_name[name] begin[{] method[pageSearch, return_type[type[PageSearchResult]], modifier[public static], parameter[accessToken, pageSearch]] begin[{] return[call[.pageSearch, parameter[member[.accessToken], call[JsonUtil.toJSONString, parameter[member[.pageSearch]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[PageSearchResult] identifier[pageSearch] operator[SEP] identifier[String] identifier[accessToken] , identifier[PageSearch] identifier[pageSearch] operator[SEP] { Keyword[return] identifier[pageSearch] operator[SEP] identifier[accessToken] , identifier[JsonUtil] operat...
@Override public CommerceCurrency fetchCommerceCurrencyByUuidAndGroupId(String uuid, long groupId) { return commerceCurrencyPersistence.fetchByUUID_G(uuid, groupId); }
class class_name[name] begin[{] method[fetchCommerceCurrencyByUuidAndGroupId, return_type[type[CommerceCurrency]], modifier[public], parameter[uuid, groupId]] begin[{] return[call[commerceCurrencyPersistence.fetchByUUID_G, parameter[member[.uuid], member[.groupId]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CommerceCurrency] identifier[fetchCommerceCurrencyByUuidAndGroupId] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] operator[SEP] { Keyword[return] identifier[commerceCurrencyPersistence] operator[SEP] identifier...
@Override protected void indexNode(Node node, EntityMetadata entityMetadata) { // Do nothing as if (this.indexManager.getIndexer() != null && !this.indexManager.getIndexer().getClass().getSimpleName().equals("RedisIndexer")) { super.indexNode(node, entityMetad...
class class_name[name] begin[{] method[indexNode, return_type[void], modifier[protected], parameter[node, entityMetadata]] begin[{] if[binary_operation[binary_operation[THIS[member[None.indexManager]call[None.getIndexer, parameter[]]], !=, literal[null]], &&, THIS[member[None.indexManager]call[...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[indexNode] operator[SEP] identifier[Node] identifier[node] , identifier[EntityMetadata] identifier[entityMetadata] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[indexManager] operator[SEP] identifie...
private void hitCountChanged() { if (!fHitValueButton.getSelection()) { removeErrorMessage(fgHitCountErrorMessage); return; } String hitCountText = fHitValueText.getText(); int hitCount = -1; try { hitCount = Integer.parseInt(hitCountText); } catch (NumberFormatException e1) { addErrorMes...
class class_name[name] begin[{] method[hitCountChanged, return_type[void], modifier[private], parameter[]] begin[{] if[call[fHitValueButton.getSelection, parameter[]]] begin[{] call[.removeErrorMessage, parameter[member[.fgHitCountErrorMessage]]] return[None]...
Keyword[private] Keyword[void] identifier[hitCountChanged] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[fHitValueButton] operator[SEP] identifier[getSelection] operator[SEP] operator[SEP] operator[SEP] { identifier[removeErrorMessage] operator[SEP] identifier[fgHitCou...
synchronized Collection<KeyValue> getAll(long index) { incrementLastAppliedIndex(index); Collection<KeyValue> copiedEntries = Lists.newArrayListWithCapacity(entries.size()); for (Map.Entry<String, String> entry : entries.entrySet()) { copiedEntries.add(new KeyValue(entry.getKey(), e...
class class_name[name] begin[{] method[getAll, return_type[type[Collection]], modifier[synchronized], parameter[index]] begin[{] call[.incrementLastAppliedIndex, parameter[member[.index]]] local_variable[type[Collection], copiedEntries] ForStatement(body=BlockStatement(label=Non...
Keyword[synchronized] identifier[Collection] operator[<] identifier[KeyValue] operator[>] identifier[getAll] operator[SEP] Keyword[long] identifier[index] operator[SEP] { identifier[incrementLastAppliedIndex] operator[SEP] identifier[index] operator[SEP] operator[SEP] identifier[Collection] operator[<] identifie...
public void addSayCommand(String message) { StringBuilder buf = new StringBuilder(); buf.append("(say "); buf.append(message); buf.append(')'); fifo.add(fifo.size(), buf.toString()); }
class class_name[name] begin[{] method[addSayCommand, return_type[void], modifier[public], parameter[message]] begin[{] local_variable[type[StringBuilder], buf] call[buf.append, parameter[literal["(say "]]] call[buf.append, parameter[member[.message]]] ca...
Keyword[public] Keyword[void] identifier[addSayCommand] operator[SEP] identifier[String] identifier[message] operator[SEP] { identifier[StringBuilder] identifier[buf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buf] operator[SEP] identifier[append] oper...
private void breakBond(IAtom atom, IAtomContainer molecule) { Iterator<IBond> bonds = molecule.bonds().iterator(); while (bonds.hasNext()) { IBond bond = (IBond) bonds.next(); if (bond.contains(atom)) { molecule.removeElectronContainer(bond); break...
class class_name[name] begin[{] method[breakBond, return_type[void], modifier[private], parameter[atom, molecule]] begin[{] local_variable[type[Iterator], bonds] while[call[bonds.hasNext, parameter[]]] begin[{] local_variable[type[IBond], bond] if[cal...
Keyword[private] Keyword[void] identifier[breakBond] operator[SEP] identifier[IAtom] identifier[atom] , identifier[IAtomContainer] identifier[molecule] operator[SEP] { identifier[Iterator] operator[<] identifier[IBond] operator[>] identifier[bonds] operator[=] identifier[molecule] operator[SEP] identifier[bonds...
public final void mRIGHT_JOIN() throws RecognitionException { try { int _type = RIGHT_JOIN; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:655:13: ( ( 'RIGHT_JOIN' | 'right_join' ) ) // druidG.g:655:15: ( 'RIGHT_JOIN' | 'right_join' ) { // druidG.g:655:15: ( 'RIGHT_JOIN' | 'right_join' ) int a...
class class_name[name] begin[{] method[mRIGHT_JOIN, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=RIGHT_JOIN, postfix_operators=[], prefix_op...
Keyword[public] Keyword[final] Keyword[void] identifier[mRIGHT_JOIN] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[RIGHT_JOIN] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DE...
public static <T extends AbstractJaxb> void replaceDescendants(T target, String clazz, T replace) throws TagTypeUnmatchException { execute(target, null, clazz, replace); }
class class_name[name] begin[{] method[replaceDescendants, return_type[void], modifier[public static], parameter[target, clazz, replace]] begin[{] call[.execute, parameter[member[.target], literal[null], member[.clazz], member[.replace]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[AbstractJaxb] operator[>] Keyword[void] identifier[replaceDescendants] operator[SEP] identifier[T] identifier[target] , identifier[String] identifier[clazz] , identifier[T] identifier[replace] operator[SEP] Keyword[throws] identifie...
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException { String sql = "SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, NON_UNIQUE, " + " TABLE_SCHEMA INDEX_QUALIFIER, INDEX_NAME, 3 TYPE," ...
class class_name[name] begin[{] method[getIndexInfo, return_type[type[ResultSet]], modifier[public], parameter[catalog, schema, table, unique, approximate]] begin[{] local_variable[type[String], sql] return[call[.executeQuery, parameter[member[.sql]]]] end[}] END[}]
Keyword[public] identifier[ResultSet] identifier[getIndexInfo] operator[SEP] identifier[String] identifier[catalog] , identifier[String] identifier[schema] , identifier[String] identifier[table] , Keyword[boolean] identifier[unique] , Keyword[boolean] identifier[approximate] operator[SEP] Keyword[throws] identifier...
public FacesConfigNavigationRuleType<WebFacesConfigDescriptor> getOrCreateNavigationRule() { List<Node> nodeList = model.get("navigation-rule"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigNavigationRuleTypeImpl<WebFacesConfigDescriptor>(this, "navigation-rule", m...
class class_name[name] begin[{] method[getOrCreateNavigationRule, return_type[type[FacesConfigNavigationRuleType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operati...
Keyword[public] identifier[FacesConfigNavigationRuleType] operator[<] identifier[WebFacesConfigDescriptor] operator[>] identifier[getOrCreateNavigationRule] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[model] operator[SEP] ide...
public Vector getValues() { Vector v = new Vector(); for (int i = 0; i != values.size(); i++) { v.addElement(values.elementAt(i)); } return v; }
class class_name[name] begin[{] method[getValues, return_type[type[Vector]], modifier[public], parameter[]] begin[{] local_variable[type[Vector], v] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Me...
Keyword[public] identifier[Vector] identifier[getValues] operator[SEP] operator[SEP] { identifier[Vector] identifier[v] operator[=] Keyword[new] identifier[Vector] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] oper...
private boolean isExcludedLogger(String loggerName) { for (Pattern excludedLoggerPattern : EXCLUDED_LOGGER_PATTERNS) { if (excludedLoggerPattern.matcher(loggerName).matches()) { return true; } } return false; }
class class_name[name] begin[{] method[isExcludedLogger, return_type[type[boolean]], modifier[private], parameter[loggerName]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=loggerName, postfix_operators=[], pre...
Keyword[private] Keyword[boolean] identifier[isExcludedLogger] operator[SEP] identifier[String] identifier[loggerName] operator[SEP] { Keyword[for] operator[SEP] identifier[Pattern] identifier[excludedLoggerPattern] operator[:] identifier[EXCLUDED_LOGGER_PATTERNS] operator[SEP] { Keyword[if] operator...
static void getLuma03(byte[] pic, int picW, byte[] blk, int blkOff, int blkStride, int x, int y, int blkW, int blkH) { getLuma02(pic, picW, blk, blkOff, blkStride, x, y, blkW, blkH); int off = y * picW + x; for (int j = 0; j < blkH; j++) { for (int i = 0; i < blkW; i++) { ...
class class_name[name] begin[{] method[getLuma03, return_type[void], modifier[static], parameter[pic, picW, blk, blkOff, blkStride, x, y, blkW, blkH]] begin[{] call[.getLuma02, parameter[member[.pic], member[.picW], member[.blk], member[.blkOff], member[.blkStride], member[.x], member[.y], memb...
Keyword[static] Keyword[void] identifier[getLuma03] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[pic] , Keyword[int] identifier[picW] , Keyword[byte] operator[SEP] operator[SEP] identifier[blk] , Keyword[int] identifier[blkOff] , Keyword[int] identifier[blkStride] , Keyword[int] identifier[x]...
public Group create(String name) { String url = WxEndpoint.get("url.group.create"); String json = String.format("{\"group\":{\"name\":\"%s\"}}", name); logger.debug("create group: {}", json); String response = wxClient.post(url, json); return JsonMapper.defaultUnwrapRootMa...
class class_name[name] begin[{] method[create, return_type[type[Group]], modifier[public], parameter[name]] begin[{] local_variable[type[String], url] local_variable[type[String], json] call[logger.debug, parameter[literal["create group: {}"], member[.json]]] local_varia...
Keyword[public] identifier[Group] identifier[create] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[String] identifier[url] operator[=] identifier[WxEndpoint] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] identifier[json] ...
public static Object initialize(Class clazz, Object record) { try { if (record == null) { record = createNewInstance(clazz); } return record; } catch (Exception e) { throw new PersistenceException("Er...
class class_name[name] begin[{] method[initialize, return_type[type[Object]], modifier[public static], parameter[clazz, record]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=record, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] Keyword[static] identifier[Object] identifier[initialize] operator[SEP] identifier[Class] identifier[clazz] , identifier[Object] identifier[record] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[record] operator[==] Other[null] operator[SEP] { ident...
public void writeVariableEntries(DAS das, DDS dds) { // This writes the text `Variables:' and then sets up the table // so that the first variable's section is written into column two. pWrt.print("<tr>\n" + "<td align=\"right\" valign=\"top\">\n" + "<h3><a ...
class class_name[name] begin[{] method[writeVariableEntries, return_type[void], modifier[public], parameter[das, dds]] begin[{] call[pWrt.print, parameter[binary_operation[binary_operation[binary_operation[literal["<tr>\n"], +, literal["<td align=\"right\" valign=\"top\">\n"]], +, literal["<h3>...
Keyword[public] Keyword[void] identifier[writeVariableEntries] operator[SEP] identifier[DAS] identifier[das] , identifier[DDS] identifier[dds] operator[SEP] { identifier[pWrt] operator[SEP] identifier[print] operator[SEP] literal[String] operator[+] literal[String] operator[+] literal[String] operator[+] litera...
public RasterLayerInfo asLayerInfo(TileMap tileMap) { RasterLayerInfo layerInfo = new RasterLayerInfo(); layerInfo.setCrs(tileMap.getSrs()); layerInfo.setDataSourceName(tileMap.getTitle()); layerInfo.setLayerType(LayerType.RASTER); layerInfo.setMaxExtent(asBbox(tileMap.getBoundingBox())); layerInfo.setTile...
class class_name[name] begin[{] method[asLayerInfo, return_type[type[RasterLayerInfo]], modifier[public], parameter[tileMap]] begin[{] local_variable[type[RasterLayerInfo], layerInfo] call[layerInfo.setCrs, parameter[call[tileMap.getSrs, parameter[]]]] call[layerInfo.set...
Keyword[public] identifier[RasterLayerInfo] identifier[asLayerInfo] operator[SEP] identifier[TileMap] identifier[tileMap] operator[SEP] { identifier[RasterLayerInfo] identifier[layerInfo] operator[=] Keyword[new] identifier[RasterLayerInfo] operator[SEP] operator[SEP] operator[SEP] identifier[layerInfo] operator...
public static <T> T isTrueArgument(final String name, final T value, final boolean condition) { if (!condition) { throw new IllegalArgumentException("state should be: " + name); } return value; }
class class_name[name] begin[{] method[isTrueArgument, return_type[type[T]], modifier[public static], parameter[name, value, condition]] begin[{] if[member[.condition]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], ...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[isTrueArgument] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[T] identifier[value] , Keyword[final] Keyword[boolean] identifier[condition] operator[SEP] { Keyword[if] op...
@CheckResult @NonNull public final PowerAdapter prepend(@NonNull PowerAdapter... adapters) { checkNotNull(adapters, "adapters"); if (adapters.length == 0) { return this; } return new ConcatAdapterBuilder().addAll(adapters).add(this).build(); }
class class_name[name] begin[{] method[prepend, return_type[type[PowerAdapter]], modifier[final public], parameter[adapters]] begin[{] call[.checkNotNull, parameter[member[.adapters], literal["adapters"]]] if[binary_operation[member[adapters.length], ==, literal[0]]] begin[{] ...
annotation[@] identifier[CheckResult] annotation[@] identifier[NonNull] Keyword[public] Keyword[final] identifier[PowerAdapter] identifier[prepend] operator[SEP] annotation[@] identifier[NonNull] identifier[PowerAdapter] operator[...] identifier[adapters] operator[SEP] { identifier[checkNotNull] operator[SEP] id...
public void removeModified(String entryId) { CmsListItem item = getModified().getItem(entryId); if (item != null) { // remove getModified().removeItem(item); } if (getModified().getWidgetCount() == 0) { m_clipboardButton.enableClearModified(false); ...
class class_name[name] begin[{] method[removeModified, return_type[void], modifier[public], parameter[entryId]] begin[{] local_variable[type[CmsListItem], item] if[binary_operation[member[.item], !=, literal[null]]] begin[{] call[.getModified, parameter[]] ...
Keyword[public] Keyword[void] identifier[removeModified] operator[SEP] identifier[String] identifier[entryId] operator[SEP] { identifier[CmsListItem] identifier[item] operator[=] identifier[getModified] operator[SEP] operator[SEP] operator[SEP] identifier[getItem] operator[SEP] identifier[entryId] operator[SEP] ...
public void accessRestriction_u2f_id_PUT(Long id, OvhU2FAccount body) throws IOException { String qPath = "/me/accessRestriction/u2f/{id}"; StringBuilder sb = path(qPath, id); exec(qPath, "PUT", sb.toString(), body); }
class class_name[name] begin[{] method[accessRestriction_u2f_id_PUT, return_type[void], modifier[public], parameter[id, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.exec, parameter[member[.qPath], literal["PUT"], call[sb.toStr...
Keyword[public] Keyword[void] identifier[accessRestriction_u2f_id_PUT] operator[SEP] identifier[Long] identifier[id] , identifier[OvhU2FAccount] identifier[body] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[Stri...
public <T> T findByName(String name, Class<T> clazz) { for (Entry<String, Object> entry : contextMap.entrySet()) { if (entry.getKey().equals(name) && clazz.isInstance(entry.getValue())) { return clazz.cast(entry.getValue()); } } return null; }
class class_name[name] begin[{] method[findByName, return_type[type[T]], modifier[public], parameter[name, clazz]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[findByName] operator[SEP] identifier[String] identifier[name] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] { Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[String] , ...
protected byte[] selectAID(final byte[] pAid) throws CommunicationException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Select AID: " + BytesUtils.bytesToString(pAid)); } return template.get().getProvider().transceive(new CommandApdu(CommandEnum.SELECT, pAid, 0).toBytes()); }
class class_name[name] begin[{] method[selectAID, return_type[type[byte]], modifier[protected], parameter[pAid]] begin[{] if[call[LOGGER.isDebugEnabled, parameter[]]] begin[{] call[LOGGER.debug, parameter[binary_operation[literal["Select AID: "], +, call[BytesUtils.bytes...
Keyword[protected] Keyword[byte] operator[SEP] operator[SEP] identifier[selectAID] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[pAid] operator[SEP] Keyword[throws] identifier[CommunicationException] { Keyword[if] operator[SEP] identifier[LOGGER] operator[SEP] identifier[isDeb...
@Override public void visit(final Attribute attribute) { if (type.isEmpty() || type.equals(attribute.getString())) { for (final GedObject gedObject : attribute.getAttributes()) { gedObject.accept(this); if (!dateString.isEmpty()) { break; ...
class class_name[name] begin[{] method[visit, return_type[void], modifier[public], parameter[attribute]] begin[{] if[binary_operation[call[type.isEmpty, parameter[]], ||, call[type.equals, parameter[call[attribute.getString, parameter[]]]]]] begin[{] ForStatement(body=BlockStatement...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visit] operator[SEP] Keyword[final] identifier[Attribute] identifier[attribute] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[||] identifier[type] operat...
public static boolean objectIsMutable(Object object) { if (object == null) { return false; } Class<?> clazz = object.getClass(); return Collection.class.isAssignableFrom(clazz); }
class class_name[name] begin[{] method[objectIsMutable, return_type[type[boolean]], modifier[public static], parameter[object]] begin[{] if[binary_operation[member[.object], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] local_v...
Keyword[public] Keyword[static] Keyword[boolean] identifier[objectIsMutable] operator[SEP] identifier[Object] identifier[object] operator[SEP] { Keyword[if] operator[SEP] identifier[object] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifi...
public static XmlReport parse( File file ) throws Exception { Reader in = BOMUtil.newReader( file ); try { return parse( in ); } finally { IOUtil.closeQuietly( in ); } }
class class_name[name] begin[{] method[parse, return_type[type[XmlReport]], modifier[public static], parameter[file]] begin[{] local_variable[type[Reader], in] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=in, postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] identifier[XmlReport] identifier[parse] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Reader] identifier[in] operator[=] identifier[BOMUtil] operator[SEP] identifier[newReader] operator[SEP] identifier[file] operat...
public void connect(Connection c) { schemaFilter = null; if (c == null) { return; } if (cConn != null) { try { cConn.close(); } catch (SQLException e) { // Added: (weconsultants@users) CommonSwing.er...
class class_name[name] begin[{] method[connect, return_type[void], modifier[public], parameter[c]] begin[{] assign[member[.schemaFilter], literal[null]] if[binary_operation[member[.c], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}...
Keyword[public] Keyword[void] identifier[connect] operator[SEP] identifier[Connection] identifier[c] operator[SEP] { identifier[schemaFilter] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } ...
@Override public ProjectionRect latLonToProjBB(LatLonRect rect) { BoundingBoxHelper bbhelper = new BoundingBoxHelper(this, maxR); return bbhelper.latLonToProjBB(rect); }
class class_name[name] begin[{] method[latLonToProjBB, return_type[type[ProjectionRect]], modifier[public], parameter[rect]] begin[{] local_variable[type[BoundingBoxHelper], bbhelper] return[call[bbhelper.latLonToProjBB, parameter[member[.rect]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[ProjectionRect] identifier[latLonToProjBB] operator[SEP] identifier[LatLonRect] identifier[rect] operator[SEP] { identifier[BoundingBoxHelper] identifier[bbhelper] operator[=] Keyword[new] identifier[BoundingBoxHelper] operator[SEP] Keyword[this] , i...
public void addChild(Paintable p) { if (null == p) { throw new IllegalArgumentException("Please provide a paintable."); } if (this.equals(p)) { throw new IllegalArgumentException("Cannot add itself as a child."); } if (children.contains(p)) { return; } // nothing changes, no exception if (p insta...
class class_name[name] begin[{] method[addChild, return_type[void], modifier[public], parameter[p]] begin[{] if[binary_operation[literal[null], ==, member[.p]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=No...
Keyword[public] Keyword[void] identifier[addChild] operator[SEP] identifier[Paintable] identifier[p] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[p] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[...
public PackingPlan createPackingPlan(final Config config, final Config runtime) throws PackingException { // Create an instance of the packing class String packingClass = Context.packingClass(config); IPacking packing; try { // create an instance of the packing class packing = Reflection...
class class_name[name] begin[{] method[createPackingPlan, return_type[type[PackingPlan]], modifier[public], parameter[config, runtime]] begin[{] local_variable[type[String], packingClass] local_variable[type[IPacking], packing] TryStatement(block=[StatementExpression(expression=Assignme...
Keyword[public] identifier[PackingPlan] identifier[createPackingPlan] operator[SEP] Keyword[final] identifier[Config] identifier[config] , Keyword[final] identifier[Config] identifier[runtime] operator[SEP] Keyword[throws] identifier[PackingException] { identifier[String] identifier[packingClass] operator[=] id...
@Override public String[] getAsyncAppenderImplementationNames() { return CONFIGURATION .getStringProperty( BLITZ4J_ASYNC_APPENDERS, this.getPropertyValue(BLITZ4J_ASYNC_APPENDERS, "com.netflix.blitz4j.AsyncAppende...
class class_name[name] begin[{] method[getAsyncAppenderImplementationNames, return_type[type[String]], modifier[public], parameter[]] begin[{] return[call[CONFIGURATION.getStringProperty, parameter[member[.BLITZ4J_ASYNC_APPENDERS], THIS[call[None.getPropertyValue, parameter[member[.BLITZ4J_ASYNC_APPEND...
annotation[@] identifier[Override] Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getAsyncAppenderImplementationNames] operator[SEP] operator[SEP] { Keyword[return] identifier[CONFIGURATION] operator[SEP] identifier[getStringProperty] operator[SEP] identifier[BLITZ4J_ASYNC_APPENDERS] ,...
public synchronized byte[] allocate(int minSize) { if (minSize <= MAX_SIZE) { for (int i = 0; i < SIZES.length; i++) { if (minSize < SIZES[i]) { if (!fastBuffers.get(SIZES[i]).isEmpty()) { Iterator<byte[]> interator = fastBuffers.get(SIZES[...
class class_name[name] begin[{] method[allocate, return_type[type[byte]], modifier[synchronized public], parameter[minSize]] begin[{] if[binary_operation[member[.minSize], <=, member[.MAX_SIZE]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition...
Keyword[public] Keyword[synchronized] Keyword[byte] operator[SEP] operator[SEP] identifier[allocate] operator[SEP] Keyword[int] identifier[minSize] operator[SEP] { Keyword[if] operator[SEP] identifier[minSize] operator[<=] identifier[MAX_SIZE] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] id...
private boolean affectsTarget(List<Integer> targetIds, int currentId) { return targetIds == null || targetIds.isEmpty() || targetIds.contains(currentId); }
class class_name[name] begin[{] method[affectsTarget, return_type[type[boolean]], modifier[private], parameter[targetIds, currentId]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.targetIds], ==, literal[null]], ||, call[targetIds.isEmpty, parameter[]]], ||, call[targetIds....
Keyword[private] Keyword[boolean] identifier[affectsTarget] operator[SEP] identifier[List] operator[<] identifier[Integer] operator[>] identifier[targetIds] , Keyword[int] identifier[currentId] operator[SEP] { Keyword[return] identifier[targetIds] operator[==] Other[null] operator[||] identifier[targetIds] oper...
public Coin getValue(TransactionBag wallet) throws ScriptException { // FIXME: TEMP PERF HACK FOR ANDROID - this crap can go away once we have a real payments API. boolean isAndroid = Utils.isAndroidRuntime(); if (isAndroid && cachedValue != null && cachedForBag == wallet) return cac...
class class_name[name] begin[{] method[getValue, return_type[type[Coin]], modifier[public], parameter[wallet]] begin[{] local_variable[type[boolean], isAndroid] if[binary_operation[binary_operation[member[.isAndroid], &&, binary_operation[member[.cachedValue], !=, literal[null]]], &&, b...
Keyword[public] identifier[Coin] identifier[getValue] operator[SEP] identifier[TransactionBag] identifier[wallet] operator[SEP] Keyword[throws] identifier[ScriptException] { Keyword[boolean] identifier[isAndroid] operator[=] identifier[Utils] operator[SEP] identifier[isAndroidRuntime] operator[SEP] operator[SEP]...
public Build withSecondaryArtifacts(BuildArtifacts... secondaryArtifacts) { if (this.secondaryArtifacts == null) { setSecondaryArtifacts(new java.util.ArrayList<BuildArtifacts>(secondaryArtifacts.length)); } for (BuildArtifacts ele : secondaryArtifacts) { this.secondaryAr...
class class_name[name] begin[{] method[withSecondaryArtifacts, return_type[type[Build]], modifier[public], parameter[secondaryArtifacts]] begin[{] if[binary_operation[THIS[member[None.secondaryArtifacts]], ==, literal[null]]] begin[{] call[.setSecondaryArtifacts, paramet...
Keyword[public] identifier[Build] identifier[withSecondaryArtifacts] operator[SEP] identifier[BuildArtifacts] operator[...] identifier[secondaryArtifacts] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[secondaryArtifacts] operator[==] Other[null] operator[SEP] { ident...
void addWorker(final VortexWorkerManager vortexWorkerManager) { lock.lock(); try { if (!terminated) { if (!removedBeforeAddedWorkers.contains(vortexWorkerManager.getId())) { this.runningWorkers.put(vortexWorkerManager.getId(), vortexWorkerManager); this.schedulingPolicy.workerA...
class class_name[name] begin[{] method[addWorker, return_type[void], modifier[default], parameter[vortexWorkerManager]] begin[{] call[lock.lock, parameter[]] TryStatement(block=[IfStatement(condition=MemberReference(member=terminated, postfix_operators=[], prefix_operators=['!'], qualif...
Keyword[void] identifier[addWorker] operator[SEP] Keyword[final] identifier[VortexWorkerManager] identifier[vortexWorkerManager] operator[SEP] { identifier[lock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[ter...
private Date getBuildReferenceDate() throws MojoExecutionException { // Pick up an existing build date created by fabric8:build previously File tsFile = new File(project.getBuild().getDirectory(), AbstractDockerMojo.DOCKER_BUILD_TIMESTAMP); if (!tsFile.exists()) { return new Date(); ...
class class_name[name] begin[{] method[getBuildReferenceDate, return_type[type[Date]], modifier[private], parameter[]] begin[{] local_variable[type[File], tsFile] if[call[tsFile.exists, parameter[]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_argu...
Keyword[private] identifier[Date] identifier[getBuildReferenceDate] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] { identifier[File] identifier[tsFile] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[project] operator[SEP] identifier[getBuild] operator[SEP] ope...
public void setupKeys() { KeyAreaInfo keyArea = null; keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY); keyArea.addKeyField(ID, Constants.ASCENDING); keyArea = new KeyAreaInfo(this, Constants.UNIQUE, FILE_NAME_KEY); keyArea.addKeyField(FILE_NAME, Constants.ASCENDING)...
class class_name[name] begin[{] method[setupKeys, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[KeyAreaInfo], keyArea] assign[member[.keyArea], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberR...
Keyword[public] Keyword[void] identifier[setupKeys] operator[SEP] operator[SEP] { identifier[KeyAreaInfo] identifier[keyArea] operator[=] Other[null] operator[SEP] identifier[keyArea] operator[=] Keyword[new] identifier[KeyAreaInfo] operator[SEP] Keyword[this] , identifier[Constants] operator[SEP] identifier[UN...
public MigrationInstruction getInstructionFor(String scopeId) { List<MigrationInstruction> instructions = instructionsBySourceScope.get(scopeId); if (instructions == null || instructions.isEmpty()) { return null; } else { return instructions.get(0); } }
class class_name[name] begin[{] method[getInstructionFor, return_type[type[MigrationInstruction]], modifier[public], parameter[scopeId]] begin[{] local_variable[type[List], instructions] if[binary_operation[binary_operation[member[.instructions], ==, literal[null]], ||, call[instruction...
Keyword[public] identifier[MigrationInstruction] identifier[getInstructionFor] operator[SEP] identifier[String] identifier[scopeId] operator[SEP] { identifier[List] operator[<] identifier[MigrationInstruction] operator[>] identifier[instructions] operator[=] identifier[instructionsBySourceScope] operator[SEP] id...
private void processSyncMessageChunk(CommsByteBuffer buffer, Conversation conversation, boolean connectionMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "processSyncMessageChunk", ...
class class_name[name] begin[{] method[processSyncMessageChunk, return_type[void], modifier[private], parameter[buffer, conversation, connectionMessage]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[processSyncMessageChunk] operator[SEP] identifier[CommsByteBuffer] identifier[buffer] , identifier[Conversation] identifier[conversation] , Keyword[boolean] identifier[connectionMessage] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP]...
@BetaApi public final Operation deleteNetworkEndpointGroup(String networkEndpointGroup) { DeleteNetworkEndpointGroupHttpRequest request = DeleteNetworkEndpointGroupHttpRequest.newBuilder() .setNetworkEndpointGroup(networkEndpointGroup) .build(); return deleteNetworkEndpointGro...
class class_name[name] begin[{] method[deleteNetworkEndpointGroup, return_type[type[Operation]], modifier[final public], parameter[networkEndpointGroup]] begin[{] local_variable[type[DeleteNetworkEndpointGroupHttpRequest], request] return[call[.deleteNetworkEndpointGroup, parameter[member[.requ...
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[Operation] identifier[deleteNetworkEndpointGroup] operator[SEP] identifier[String] identifier[networkEndpointGroup] operator[SEP] { identifier[DeleteNetworkEndpointGroupHttpRequest] identifier[request] operator[=] identifier[DeleteNetwor...
public BeanDiscoveryMode getBeanDiscoveryMode(CDIRuntime cdiRuntime, BeansXml beansXml) { BeanDiscoveryMode mode = BeanDiscoveryMode.ANNOTATED; if (beansXml != null) { mode = beansXml.getBeanDiscoveryMode(); } else if (cdiRuntime.isImplicitBeanArchivesScanningDisabled(this)) { ...
class class_name[name] begin[{] method[getBeanDiscoveryMode, return_type[type[BeanDiscoveryMode]], modifier[public], parameter[cdiRuntime, beansXml]] begin[{] local_variable[type[BeanDiscoveryMode], mode] if[binary_operation[member[.beansXml], !=, literal[null]]] begin[{] ...
Keyword[public] identifier[BeanDiscoveryMode] identifier[getBeanDiscoveryMode] operator[SEP] identifier[CDIRuntime] identifier[cdiRuntime] , identifier[BeansXml] identifier[beansXml] operator[SEP] { identifier[BeanDiscoveryMode] identifier[mode] operator[=] identifier[BeanDiscoveryMode] operator[SEP] identifier...
@NonNull public <T> CharSequence join(@NonNull Iterable<T> items, @Nullable Formatter<T> formatter) { checkNotNullOrEmpty(items); return joinIterableWithSize(items, getSize(items), formatter); }
class class_name[name] begin[{] method[join, return_type[type[CharSequence]], modifier[public], parameter[items, formatter]] begin[{] call[.checkNotNullOrEmpty, parameter[member[.items]]] return[call[.joinIterableWithSize, parameter[member[.items], call[.getSize, parameter[member[.items...
annotation[@] identifier[NonNull] Keyword[public] operator[<] identifier[T] operator[>] identifier[CharSequence] identifier[join] operator[SEP] annotation[@] identifier[NonNull] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[items] , annotation[@] identifier[Nullable] identifier[Formatter] opera...
public int[] trimAndGet() { if (size < elementData.length) { elementData = Arrays.copyOf(elementData, size); } return elementData; }
class class_name[name] begin[{] method[trimAndGet, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.size], <, member[elementData.length]]] begin[{] assign[member[.elementData], call[Arrays.copyOf, parameter[member[.elementData],...
Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[trimAndGet] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[size] operator[<] identifier[elementData] operator[SEP] identifier[length] operator[SEP] { identifier[elementData] operator[=] identifier[Arrays] operator[...
public OutputVariable getOutputVariable(String name) { for (OutputVariable outputVariable : this.outputVariables) { if (outputVariable.getName().equals(name)) { return outputVariable; } } throw new RuntimeException(String.format( "[engine e...
class class_name[name] begin[{] method[getOutputVariable, return_type[type[OutputVariable]], modifier[public], parameter[name]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[...
Keyword[public] identifier[OutputVariable] identifier[getOutputVariable] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[for] operator[SEP] identifier[OutputVariable] identifier[outputVariable] operator[:] Keyword[this] operator[SEP] identifier[outputVariables] operator[SEP] { ...
public Email bcc(final EmailAddress to) { this.bcc = ArraysUtil.append(this.bcc, to); return _this(); }
class class_name[name] begin[{] method[bcc, return_type[type[Email]], modifier[public], parameter[to]] begin[{] assign[THIS[member[None.bcc]], call[ArraysUtil.append, parameter[THIS[member[None.bcc]], member[.to]]]] return[call[._this, parameter[]]] end[}] END[}]
Keyword[public] identifier[Email] identifier[bcc] operator[SEP] Keyword[final] identifier[EmailAddress] identifier[to] operator[SEP] { Keyword[this] operator[SEP] identifier[bcc] operator[=] identifier[ArraysUtil] operator[SEP] identifier[append] operator[SEP] Keyword[this] operator[SEP] identifier[bcc] , ident...
@Override public void setAdminunitSecondline(String adminunitSecondline) { this.adminunitSecondline = this.prepareForAssignment(this.adminunitSecondline, this.createXSString(AdminunitSecondline.class, adminunitSecondline)); }
class class_name[name] begin[{] method[setAdminunitSecondline, return_type[void], modifier[public], parameter[adminunitSecondline]] begin[{] assign[THIS[member[None.adminunitSecondline]], THIS[call[None.prepareForAssignment, parameter[THIS[member[None.adminunitSecondline]], THIS[call[None.creat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setAdminunitSecondline] operator[SEP] identifier[String] identifier[adminunitSecondline] operator[SEP] { Keyword[this] operator[SEP] identifier[adminunitSecondline] operator[=] Keyword[this] operator[SEP] identifier[prepareForAssignment]...
private boolean isCompatibleClass(Class checkClass) { // // If the check class is equal to or a super-interface of the map class, then // they are compatible. // if (_mapClass.isAssignableFrom(checkClass)) return true; // // If the check class is ...
class class_name[name] begin[{] method[isCompatibleClass, return_type[type[boolean]], modifier[private], parameter[checkClass]] begin[{] if[call[_mapClass.isAssignableFrom, parameter[member[.checkClass]]]] begin[{] return[literal[true]] else begin[{] None end[}] ...
Keyword[private] Keyword[boolean] identifier[isCompatibleClass] operator[SEP] identifier[Class] identifier[checkClass] operator[SEP] { Keyword[if] operator[SEP] identifier[_mapClass] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[checkClass] operator[SEP] operator[SEP] Keyword[return] litera...
public static BoundingBox getProjectedBoundingBox(Long projectionEpsg, int x, int y, int zoom) { return getProjectedBoundingBox(ProjectionConstants.AUTHORITY_EPSG, projectionEpsg, x, y, zoom); }
class class_name[name] begin[{] method[getProjectedBoundingBox, return_type[type[BoundingBox]], modifier[public static], parameter[projectionEpsg, x, y, zoom]] begin[{] return[call[.getProjectedBoundingBox, parameter[member[ProjectionConstants.AUTHORITY_EPSG], member[.projectionEpsg], member[.x], membe...
Keyword[public] Keyword[static] identifier[BoundingBox] identifier[getProjectedBoundingBox] operator[SEP] identifier[Long] identifier[projectionEpsg] , Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[zoom] operator[SEP] { Keyword[return] identifier[getProjectedBoundingBox] op...
public void read(InputStream is, String encoding, final TagListener listener) { mSaxHandler.initialize(); Reader reader = null; try { reader = new InputStreamReader(is, encoding); SAXParserFactory spf = SAXParserFactory.newInstance(); // To correspond to a big entities spf.setFeature(XMLConstant...
class class_name[name] begin[{] method[read, return_type[void], modifier[public], parameter[is, encoding, listener]] begin[{] call[mSaxHandler.initialize, parameter[]] local_variable[type[Reader], reader] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=...
Keyword[public] Keyword[void] identifier[read] operator[SEP] identifier[InputStream] identifier[is] , identifier[String] identifier[encoding] , Keyword[final] identifier[TagListener] identifier[listener] operator[SEP] { identifier[mSaxHandler] operator[SEP] identifier[initialize] operator[SEP] operator[SEP] op...
@Override public EClass getIfcCoveringType() { if (ifcCoveringTypeEClass == null) { ifcCoveringTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(153); } return ifcCoveringTypeEClass; }
class class_name[name] begin[{] method[getIfcCoveringType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcCoveringTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcCoveringTypeEClass], Cast(expression=MethodInv...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcCoveringType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcCoveringTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcCoveringTypeEClass] operator[=] operator[SEP] identifier...
private void deleteStalePbdFile(File file) throws IOException { try { PBDSegment.setFinal(file, false); if (m_usageSpecificLog.isDebugEnabled()) { m_usageSpecificLog.debug("Segment " + file.getName() + " (final: " + PBDSegment.isFinal(file) + "), will be c...
class class_name[name] begin[{] method[deleteStalePbdFile, return_type[void], modifier[private], parameter[file]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Li...
Keyword[private] Keyword[void] identifier[deleteStalePbdFile] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[PBDSegment] operator[SEP] identifier[setFinal] operator[SEP] identifier[file] , literal[boolean] operator[SEP...
public static double dotProductWithAddition(double[] pointA1, double[] pointA2, double[] pointB1, double[] pointB2) { assert (pointA1.length == pointA2.length && pointB1.length == pointB2.length && pointA1.length == pointB1.length); double product = 0.0; for (int i = 0; i < pointA1.length; i++) { produc...
class class_name[name] begin[{] method[dotProductWithAddition, return_type[type[double]], modifier[public static], parameter[pointA1, pointA2, pointB1, pointB2]] begin[{] AssertStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=length, ...
Keyword[public] Keyword[static] Keyword[double] identifier[dotProductWithAddition] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[pointA1] , Keyword[double] operator[SEP] operator[SEP] identifier[pointA2] , Keyword[double] operator[SEP] operator[SEP] identifier[pointB1] , Keyword[double] operat...
public @NonNull List<PluginWrapper.PluginDisableResult> disablePlugins(@NonNull PluginWrapper.PluginDisableStrategy strategy, @NonNull List<String> plugins) throws IOException { // Where we store the results of each plugin disablement List<PluginWrapper.PluginDisableResult> results = new ArrayList<>(plu...
class class_name[name] begin[{] method[disablePlugins, return_type[type[List]], modifier[public], parameter[strategy, plugins]] begin[{] local_variable[type[List], results] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDec...
Keyword[public] annotation[@] identifier[NonNull] identifier[List] operator[<] identifier[PluginWrapper] operator[SEP] identifier[PluginDisableResult] operator[>] identifier[disablePlugins] operator[SEP] annotation[@] identifier[NonNull] identifier[PluginWrapper] operator[SEP] identifier[PluginDisableStrategy] identifi...
@Override public IScan getScanByNumLower(int scanNum) { IScan scan = getNum2scan().lowerEntry(scanNum).getValue(); if (scan != null) { return scan; } return null; }
class class_name[name] begin[{] method[getScanByNumLower, return_type[type[IScan]], modifier[public], parameter[scanNum]] begin[{] local_variable[type[IScan], scan] if[binary_operation[member[.scan], !=, literal[null]]] begin[{] return[member[.scan]] else begin[{] No...
annotation[@] identifier[Override] Keyword[public] identifier[IScan] identifier[getScanByNumLower] operator[SEP] Keyword[int] identifier[scanNum] operator[SEP] { identifier[IScan] identifier[scan] operator[=] identifier[getNum2scan] operator[SEP] operator[SEP] operator[SEP] identifier[lowerEntry] operator[SEP] i...
public static void registerKey(Binder binder, Key<DruidNode> key) { DruidBinders.discoveryAnnouncementBinder(binder).addBinding().toInstance(new KeyHolder<>(key)); LifecycleModule.register(binder, ServiceAnnouncer.class); }
class class_name[name] begin[{] method[registerKey, return_type[void], modifier[public static], parameter[binder, key]] begin[{] call[DruidBinders.discoveryAnnouncementBinder, parameter[member[.binder]]] call[LifecycleModule.register, parameter[member[.binder], ClassReference(po...
Keyword[public] Keyword[static] Keyword[void] identifier[registerKey] operator[SEP] identifier[Binder] identifier[binder] , identifier[Key] operator[<] identifier[DruidNode] operator[>] identifier[key] operator[SEP] { identifier[DruidBinders] operator[SEP] identifier[discoveryAnnouncementBinder] operator[SEP] i...
public int addNodeInDocOrder(Node node, XPathContext support) { if (!m_mutable) throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_NOT_MUTABLE, null)); //"This NodeSet is not mutable!"); return addNodeInDocOrder(node, true, support); }
class class_name[name] begin[{] method[addNodeInDocOrder, return_type[type[int]], modifier[public], parameter[node, support]] begin[{] if[member[.m_mutable]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=ER_NODESET_NOT_MUTABLE, pos...
Keyword[public] Keyword[int] identifier[addNodeInDocOrder] operator[SEP] identifier[Node] identifier[node] , identifier[XPathContext] identifier[support] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_mutable] operator[SEP] Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SE...
private void addSecurityRoleChecksToModel(PortletRequest req, Map<String, Object> model) { PortletPreferences prefs = req.getPreferences(); String[] securityRoles = prefs.getValues(PREF_SECURITY_ROLE_NAMES, new String[] {}); for (int i = 0; i < securityRoles.length; i++) { model.put(...
class class_name[name] begin[{] method[addSecurityRoleChecksToModel, return_type[void], modifier[private], parameter[req, model]] begin[{] local_variable[type[PortletPreferences], prefs] local_variable[type[String], securityRoles] ForStatement(body=BlockStatement(label=None, statements=...
Keyword[private] Keyword[void] identifier[addSecurityRoleChecksToModel] operator[SEP] identifier[PortletRequest] identifier[req] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[model] operator[SEP] { identifier[PortletPreferences] identifier[prefs] operator[=] ident...
protected void scheduleTtl(K key, MapEntryValue value) { if (value.ttl() > 0) { value.timer = getScheduler().schedule(Duration.ofMillis(value.ttl()), () -> { entries().remove(key, value); publish(new AtomicMapEvent<>(AtomicMapEvent.Type.REMOVE, key, null, toVersioned(value))); }); } ...
class class_name[name] begin[{] method[scheduleTtl, return_type[void], modifier[protected], parameter[key, value]] begin[{] if[binary_operation[call[value.ttl, parameter[]], >, literal[0]]] begin[{] assign[member[value.timer], call[.getScheduler, parameter[]]] el...
Keyword[protected] Keyword[void] identifier[scheduleTtl] operator[SEP] identifier[K] identifier[key] , identifier[MapEntryValue] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[SEP] identifier[ttl] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { ...
protected void buildJsonResourceItems(List<CmsResource> resourceitems, String parentFolder) { if (resourceitems == null) { resourceitems = new ArrayList<CmsResource>(); } boolean isPublishEnabled = false; boolean hasDirectPublish = false; boolean hasWritePermission ...
class class_name[name] begin[{] method[buildJsonResourceItems, return_type[void], modifier[protected], parameter[resourceitems, parentFolder]] begin[{] if[binary_operation[member[.resourceitems], ==, literal[null]]] begin[{] assign[member[.resourceitems], ClassCreator(ar...
Keyword[protected] Keyword[void] identifier[buildJsonResourceItems] operator[SEP] identifier[List] operator[<] identifier[CmsResource] operator[>] identifier[resourceitems] , identifier[String] identifier[parentFolder] operator[SEP] { Keyword[if] operator[SEP] identifier[resourceitems] operator[==] Other[null] ...
@Override public final S containsSequence(Object... sequence) { collections.assertContainsSequence(description, actual, sequence); return myself; }
class class_name[name] begin[{] method[containsSequence, return_type[type[S]], modifier[final public], parameter[sequence]] begin[{] call[collections.assertContainsSequence, parameter[member[.description], member[.actual], member[.sequence]]] return[member[.myself]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[S] identifier[containsSequence] operator[SEP] identifier[Object] operator[...] identifier[sequence] operator[SEP] { identifier[collections] operator[SEP] identifier[assertContainsSequence] operator[SEP] identifier[description] , identi...
@Override public int compareTo( ScheduledJob job ) { int result; if( this.jobName == null && job.jobName == null ) result = 0; else if( this.jobName == null ) result = -1; else if( job.jobName == null ) result = 1; else result = this.jobName.compareTo( job.jobName ); return result; }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[job]] begin[{] local_variable[type[int], result] if[binary_operation[binary_operation[THIS[member[None.jobName]], ==, literal[null]], &&, binary_operation[member[job.jobName], ==, liter...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[ScheduledJob] identifier[job] operator[SEP] { Keyword[int] identifier[result] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[jobName] operator[==] Other[null] operator[&&...
public InputStream executeToInputStream(HttpConnection connection) throws CouchDbException { try { return execute(connection).responseAsInputStream(); } catch (IOException ioe) { throw new CouchDbException("Error retrieving server response", ioe); } }
class class_name[name] begin[{] method[executeToInputStream, return_type[type[InputStream]], modifier[public], parameter[connection]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=connection, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] identifier[InputStream] identifier[executeToInputStream] operator[SEP] identifier[HttpConnection] identifier[connection] operator[SEP] Keyword[throws] identifier[CouchDbException] { Keyword[try] { Keyword[return] identifier[execute] operator[SEP] identifier[connection] operator[SEP] op...
public static WarInfo getWarInfo(File war) throws Exception { WarInfo info = new WarInfo(); info.setWarName(war.getName()); CadmiumWar warHelper = null; try { if(war != null && war.exists()) { warHelper = new FileBasedCadmiumWar(war); } else { warHelper = new ClasspathCadmium...
class class_name[name] begin[{] method[getWarInfo, return_type[type[WarInfo]], modifier[public static], parameter[war]] begin[{] local_variable[type[WarInfo], info] call[info.setWarName, parameter[call[war.getName, parameter[]]]] local_variable[type[CadmiumWar], warHelper] ...
Keyword[public] Keyword[static] identifier[WarInfo] identifier[getWarInfo] operator[SEP] identifier[File] identifier[war] operator[SEP] Keyword[throws] identifier[Exception] { identifier[WarInfo] identifier[info] operator[=] Keyword[new] identifier[WarInfo] operator[SEP] operator[SEP] operator[SEP] identifier[in...
public boolean is(@NotNull Key<?> key) { final Optional<?> v = get(key); return v.isPresent() && !v.get().equals(Boolean.FALSE); }
class class_name[name] begin[{] method[is, return_type[type[boolean]], modifier[public], parameter[key]] begin[{] local_variable[type[Optional], v] return[binary_operation[call[v.isPresent, parameter[]], &&, call[v.get, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[is] operator[SEP] annotation[@] identifier[NotNull] identifier[Key] operator[<] operator[?] operator[>] identifier[key] operator[SEP] { Keyword[final] identifier[Optional] operator[<] operator[?] operator[>] identifier[v] operator[=] identifier[get] operator[SEP] ident...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "verticalDatumType") public JAXBElement<VerticalDatumTypeType> createVerticalDatumType(VerticalDatumTypeType value) { return new JAXBElement<VerticalDatumTypeType>(_VerticalDatumType_QNAME, VerticalDatumTypeType.class, null, value); }
class class_name[name] begin[{] method[createVerticalDatumType, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_VerticalDatumType_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReferen...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[VerticalDatumTypeType] operator[>] identifier[createVerticalDatumType] operator[SEP] ident...
public String getAsText() { LocalDate value = (LocalDate) getValue(); return (value != null ? value.toString(this.formatter) : ""); }
class class_name[name] begin[{] method[getAsText, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[LocalDate], value] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] identifier[String] identifier[getAsText] operator[SEP] operator[SEP] { identifier[LocalDate] identifier[value] operator[=] operator[SEP] identifier[LocalDate] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[value] operator[!=] ...
public Observable<ServiceResponse<TransparentDataEncryptionInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is requ...
class class_name[name] begin[{] method[createOrUpdateWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, serverName, databaseName]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[TransparentDataEncryptionInner] operator[>] operator[>] identifier[createOrUpdateWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , ...
public RouteMatcher get(String pattern, Handler<HttpServerRequest> handler) { addPattern(pattern, handler, getBindings); return this; }
class class_name[name] begin[{] method[get, return_type[type[RouteMatcher]], modifier[public], parameter[pattern, handler]] begin[{] call[.addPattern, parameter[member[.pattern], member[.handler], member[.getBindings]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[RouteMatcher] identifier[get] operator[SEP] identifier[String] identifier[pattern] , identifier[Handler] operator[<] identifier[HttpServerRequest] operator[>] identifier[handler] operator[SEP] { identifier[addPattern] operator[SEP] identifier[pattern] , identifier[handler] , identif...
@Override public Dimension maximumLayoutSize(Container target) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
class class_name[name] begin[{] method[maximumLayoutSize, return_type[type[Dimension]], modifier[public], parameter[target]] begin[{] return[ClassCreator(arguments=[MemberReference(member=MAX_VALUE, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[]), MemberReference(member=MAX_...
annotation[@] identifier[Override] Keyword[public] identifier[Dimension] identifier[maximumLayoutSize] operator[SEP] identifier[Container] identifier[target] operator[SEP] { Keyword[return] Keyword[new] identifier[Dimension] operator[SEP] identifier[Integer] operator[SEP] identifier[MAX_VALUE] , identifier[Inte...
public static String resolveMacros(final String input, I_CmsMacroResolver resolver) { if ((input == null) || (input.length() < 3)) { // macro must have at last 3 chars "${}" or "%()" return input; } int pn = input.indexOf(I_CmsMacroResolver.MACRO_DELIMITER); int...
class class_name[name] begin[{] method[resolveMacros, return_type[type[String]], modifier[public static], parameter[input, resolver]] begin[{] if[binary_operation[binary_operation[member[.input], ==, literal[null]], ||, binary_operation[call[input.length, parameter[]], <, literal[3]]]] begin[{]...
Keyword[public] Keyword[static] identifier[String] identifier[resolveMacros] operator[SEP] Keyword[final] identifier[String] identifier[input] , identifier[I_CmsMacroResolver] identifier[resolver] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] op...
public void clearAllSubscriptions() { SubscriptionTreeCollector subsCollector = new SubscriptionTreeCollector(); bfsVisit(subscriptions, subsCollector); List<Subscription> allSubscriptions = subsCollector.getResult(); for (Subscription subscription : allSubscriptions) { ...
class class_name[name] begin[{] method[clearAllSubscriptions, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[SubscriptionTreeCollector], subsCollector] call[.bfsVisit, parameter[member[.subscriptions], member[.subsCollector]]] local_variable[type[...
Keyword[public] Keyword[void] identifier[clearAllSubscriptions] operator[SEP] operator[SEP] { identifier[SubscriptionTreeCollector] identifier[subsCollector] operator[=] Keyword[new] identifier[SubscriptionTreeCollector] operator[SEP] operator[SEP] operator[SEP] identifier[bfsVisit] operator[SEP] identifier[subs...
public static String[] copyArrayCutFirst(String[] arr) { if(arr.length > 1) { String[] arrCopy = new String[arr.length - 1]; System.arraycopy(arr, 1, arrCopy, 0, arrCopy.length); return arrCopy; } else { return new String[0]; } }
class class_name[name] begin[{] method[copyArrayCutFirst, return_type[type[String]], modifier[public static], parameter[arr]] begin[{] if[binary_operation[member[arr.length], >, literal[1]]] begin[{] local_variable[type[String], arrCopy] call[System.arraycopy...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[copyArrayCutFirst] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[arr] operator[SEP] { Keyword[if] operator[SEP] identifier[arr] operator[SEP] identifier[length] operator[>] Other[1] operator[SEP] ...
@Deprecated public void deleteProjectMembership(Membership membership) throws RedmineException { transport.deleteObject(Membership.class, membership.getId().toString()); }
class class_name[name] begin[{] method[deleteProjectMembership, return_type[void], modifier[public], parameter[membership]] begin[{] call[transport.deleteObject, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dime...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[deleteProjectMembership] operator[SEP] identifier[Membership] identifier[membership] operator[SEP] Keyword[throws] identifier[RedmineException] { identifier[transport] operator[SEP] identifier[deleteObject] operator[SEP] identifier[Mem...
@UiHandler("m_okButton") protected void onOk(ClickEvent event) { if (!((m_croppingParam.getTargetWidth() > 0) && (m_croppingParam.getTargetHeight() > 0))) { if (m_croppingParam.getTargetWidth() > 0) { m_croppingParam.setTargetHeight( (int)Math.floor( ...
class class_name[name] begin[{] method[onOk, return_type[void], modifier[protected], parameter[event]] begin[{] if[binary_operation[binary_operation[call[m_croppingParam.getTargetWidth, parameter[]], >, literal[0]], &&, binary_operation[call[m_croppingParam.getTargetHeight, parameter[]], >, lit...
annotation[@] identifier[UiHandler] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[void] identifier[onOk] operator[SEP] identifier[ClickEvent] identifier[event] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] operator[SEP] identifier[m_croppingParam] operator[SEP] iden...
public Key withAttribute(String attributeName, AttributeValue value) { if (this.attributes == null) { this.attributes = new HashMap<String, AttributeValue>(); } attributes.put(attributeName, value); return this; }
class class_name[name] begin[{] method[withAttribute, return_type[type[Key]], modifier[public], parameter[attributeName, value]] begin[{] if[binary_operation[THIS[member[None.attributes]], ==, literal[null]]] begin[{] assign[THIS[member[None.attributes]], ClassCreator(ar...
Keyword[public] identifier[Key] identifier[withAttribute] operator[SEP] identifier[String] identifier[attributeName] , identifier[AttributeValue] identifier[value] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[attributes] operator[==] Other[null] operator[SEP] { Key...
@Deprecated public void startTask(String taskId, String callbackUrl) { if (taskId==null || callbackUrl == null) { if (FacesContext.getCurrentInstance().isPostback()) { // if this is an AJAX request ignore it, since we will receive multiple calls to this bean if it is added // as preRenderVie...
class class_name[name] begin[{] method[startTask, return_type[void], modifier[public], parameter[taskId, callbackUrl]] begin[{] if[binary_operation[binary_operation[member[.taskId], ==, literal[null]], ||, binary_operation[member[.callbackUrl], ==, literal[null]]]] begin[{] ...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[startTask] operator[SEP] identifier[String] identifier[taskId] , identifier[String] identifier[callbackUrl] operator[SEP] { Keyword[if] operator[SEP] identifier[taskId] operator[==] Other[null] operator[||] identifier[callbackUrl] ope...
public final boolean containsEntry(Object key, Object value) { long hash, allocIndex; Segment<K, V> segment; V v; return (allocIndex = (segment = segment(segmentIndex(hash = keyHashCode(key)))) .find(this, hash, key)) > 0 && ((v = segment.readValue(allocIn...
class class_name[name] begin[{] method[containsEntry, return_type[type[boolean]], modifier[final public], parameter[key, value]] begin[{] local_variable[type[long], hash] local_variable[type[Segment], segment] local_variable[type[V], v] return[binary_operation[binary_operation[a...
Keyword[public] Keyword[final] Keyword[boolean] identifier[containsEntry] operator[SEP] identifier[Object] identifier[key] , identifier[Object] identifier[value] operator[SEP] { Keyword[long] identifier[hash] , identifier[allocIndex] operator[SEP] identifier[Segment] operator[<] identifier[K] , identifier[V] ...
public Entry getPrevious() { checkEntryParent(); Entry entry = null; if(!isFirst()) { entry = previous; } return entry; }
class class_name[name] begin[{] method[getPrevious, return_type[type[Entry]], modifier[public], parameter[]] begin[{] call[.checkEntryParent, parameter[]] local_variable[type[Entry], entry] if[call[.isFirst, parameter[]]] begin[{] assign[member[.e...
Keyword[public] identifier[Entry] identifier[getPrevious] operator[SEP] operator[SEP] { identifier[checkEntryParent] operator[SEP] operator[SEP] operator[SEP] identifier[Entry] identifier[entry] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[isFirst] operator[SEP] operator...
public Set<InterceptorDescription> getAllContainerInterceptors() { if (this.allContainerInterceptors == null) { this.allContainerInterceptors = new HashSet<InterceptorDescription>(); this.allContainerInterceptors.addAll(this.classLevelContainerInterceptors); if (!this.exclude...
class class_name[name] begin[{] method[getAllContainerInterceptors, return_type[type[Set]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.allContainerInterceptors]], ==, literal[null]]] begin[{] assign[THIS[member[None.allContainerIntercept...
Keyword[public] identifier[Set] operator[<] identifier[InterceptorDescription] operator[>] identifier[getAllContainerInterceptors] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[allContainerInterceptors] operator[==] Other[null] operator[SEP] { Keyword[t...
public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { int diff = Time.THURSDAY - firstDayOfWeek; if (diff < 0) { diff += 7; } int refDay = Time.EPOCH_JULIAN_DAY - diff; return (julianDay - refDay) / 7; }
class class_name[name] begin[{] method[getWeeksSinceEpochFromJulianDay, return_type[type[int]], modifier[public static], parameter[julianDay, firstDayOfWeek]] begin[{] local_variable[type[int], diff] if[binary_operation[member[.diff], <, literal[0]]] begin[{] ass...
Keyword[public] Keyword[static] Keyword[int] identifier[getWeeksSinceEpochFromJulianDay] operator[SEP] Keyword[int] identifier[julianDay] , Keyword[int] identifier[firstDayOfWeek] operator[SEP] { Keyword[int] identifier[diff] operator[=] identifier[Time] operator[SEP] identifier[THURSDAY] operator[-] identifier...
public ServiceFuture<Void> removeNodesAsync(String poolId, NodeRemoveParameter nodeRemoveParameter, PoolRemoveNodesOptions poolRemoveNodesOptions, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromHeaderResponse(removeNodesWithServiceResponseAsync(poolId, nodeRemoveParameter, poolRemoveNod...
class class_name[name] begin[{] method[removeNodesAsync, return_type[type[ServiceFuture]], modifier[public], parameter[poolId, nodeRemoveParameter, poolRemoveNodesOptions, serviceCallback]] begin[{] return[call[ServiceFuture.fromHeaderResponse, parameter[call[.removeNodesWithServiceResponseAsync, param...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[removeNodesAsync] operator[SEP] identifier[String] identifier[poolId] , identifier[NodeRemoveParameter] identifier[nodeRemoveParameter] , identifier[PoolRemoveNodesOptions] identifier[poolRemoveNodesOptions] , Keyword[final...
public void marshall(GrantEntitlementRequest grantEntitlementRequest, ProtocolMarshaller protocolMarshaller) { if (grantEntitlementRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(grantEntit...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[grantEntitlementRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.grantEntitlementRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GrantEntitlementRequest] identifier[grantEntitlementRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[grantEntitlementRequest] operator[==] Other[null] operator...
public @CheckForNull <U extends T> U get(@Nonnull Class<U> type) { for (T ext : this) if(ext.getClass()==type) return type.cast(ext); return null; }
class class_name[name] begin[{] method[get, return_type[type[U]], modifier[public], parameter[type]] begin[{] ForStatement(body=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=ext, selectors=[], type_arg...
Keyword[public] annotation[@] identifier[CheckForNull] operator[<] identifier[U] Keyword[extends] identifier[T] operator[>] identifier[U] identifier[get] operator[SEP] annotation[@] identifier[Nonnull] identifier[Class] operator[<] identifier[U] operator[>] identifier[type] operator[SEP] { Keyword[for] operator[...
public static Optional<SaltVersion> parse(String versionString) { Matcher matcher = SALT_VERSION_REGEX.matcher(versionString); if (matcher.matches()) { int year = Integer.parseInt(matcher.group(1)); int month = Integer.parseInt(matcher.group(2)); int bugfix = Integer....
class class_name[name] begin[{] method[parse, return_type[type[Optional]], modifier[public static], parameter[versionString]] begin[{] local_variable[type[Matcher], matcher] if[call[matcher.matches, parameter[]]] begin[{] local_variable[type[int], year] local_var...
Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[SaltVersion] operator[>] identifier[parse] operator[SEP] identifier[String] identifier[versionString] operator[SEP] { identifier[Matcher] identifier[matcher] operator[=] identifier[SALT_VERSION_REGEX] operator[SEP] identifier[matcher] op...