code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public List<CPRule> findAll(int start, int end) { return findAll(start, end, null); }
class class_name[name] begin[{] method[findAll, return_type[type[List]], modifier[public], parameter[start, end]] begin[{] return[call[.findAll, parameter[member[.start], member[.end], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPRule] operator[>] identifier[findAll] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] identifier[findAll] operator[SEP] identifier[start] , identifier[end] , ...
private int[] getNptsInLine(Grib1Gds gds) { int numPts; if ((gds.getScanMode() & 32) == 0) { // bit3 = 0 : Adjacent points in i direction are consecutive numPts = gds.getNy(); } else { // bit3 = 1 : Adjacent points in j direction are consecutive numPts = gds.getN...
class class_name[name] begin[{] method[getNptsInLine, return_type[type[int]], modifier[private], parameter[gds]] begin[{] local_variable[type[int], numPts] if[binary_operation[binary_operation[call[gds.getScanMode, parameter[]], &, literal[32]], ==, literal[0]]] begin[{] ...
Keyword[private] Keyword[int] operator[SEP] operator[SEP] identifier[getNptsInLine] operator[SEP] identifier[Grib1Gds] identifier[gds] operator[SEP] { Keyword[int] identifier[numPts] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[gds] operator[SEP] identifier[getScanMode] operator[SEP] operator...
public User update(Map<String, Object> params) throws EasyPostException { return update(params, null); }
class class_name[name] begin[{] method[update, return_type[type[User]], modifier[public], parameter[params]] begin[{] return[call[.update, parameter[member[.params], literal[null]]]] end[}] END[}]
Keyword[public] identifier[User] identifier[update] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[params] operator[SEP] Keyword[throws] identifier[EasyPostException] { Keyword[return] identifier[update] operator[SEP] identifier[params] , Other[null] op...
@Override public void destroy() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "destroy : " + this); if (state == DESTROYED) { if (isTraceOn && tc.isEntryEnabled()) Tr.exit(tc, "des...
class class_name[name] begin[{] method[destroy, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[member[.tc...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[destroy] operator[SEP] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] Keyword[if] opera...
public synchronized PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { checkClosed(); try { return new JDBCPreparedStatement(this, sql, resultSetType, result...
class class_name[name] begin[{] method[prepareStatement, return_type[type[PreparedStatement]], modifier[synchronized public], parameter[sql, resultSetType, resultSetConcurrency, resultSetHoldability]] begin[{] call[.checkClosed, parameter[]] TryStatement(block=[ReturnStatement(expressio...
Keyword[public] Keyword[synchronized] identifier[PreparedStatement] identifier[prepareStatement] operator[SEP] identifier[String] identifier[sql] , Keyword[int] identifier[resultSetType] , Keyword[int] identifier[resultSetConcurrency] , Keyword[int] identifier[resultSetHoldability] operator[SEP] Keyword[throws] iden...
private static void assertProfilingWorks(CallStackElement cse) { if (cse.getChildren().isEmpty() || !cse.getChildren().get(0).getSignature().contains("method1")) { throw new IllegalStateException("profiling did not work! " + ManagementFactory.getRuntimeMXBean().getInputArguments() + "\n" + cse); } }
class class_name[name] begin[{] method[assertProfilingWorks, return_type[void], modifier[private static], parameter[cse]] begin[{] if[binary_operation[call[cse.getChildren, parameter[]], ||, call[cse.getChildren, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(argumen...
Keyword[private] Keyword[static] Keyword[void] identifier[assertProfilingWorks] operator[SEP] identifier[CallStackElement] identifier[cse] operator[SEP] { Keyword[if] operator[SEP] identifier[cse] operator[SEP] identifier[getChildren] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SEP] op...
@Override public GetHealthCheckResult getHealthCheck(GetHealthCheckRequest request) { request = beforeClientExecution(request); return executeGetHealthCheck(request); }
class class_name[name] begin[{] method[getHealthCheck, return_type[type[GetHealthCheckResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetHealthCheck, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[GetHealthCheckResult] identifier[getHealthCheck] operator[SEP] identifier[GetHealthCheckRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
public static <T> Set<List<T>> permutations(Iterable<T> self) { Set<List<T>> ans = new HashSet<List<T>>(); PermutationGenerator<T> generator = new PermutationGenerator<T>(self); while (generator.hasNext()) { ans.add(generator.next()); } return ans; }
class class_name[name] begin[{] method[permutations, return_type[type[Set]], modifier[public static], parameter[self]] begin[{] local_variable[type[Set], ans] local_variable[type[PermutationGenerator], generator] while[call[generator.hasNext, parameter[]]] begin[{] ...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Set] operator[<] identifier[List] operator[<] identifier[T] operator[>] operator[>] identifier[permutations] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[self] operator[SEP] { identifier[Set] o...
public static Clock fixed(Instant fixedInstant, ZoneId zone) { Objects.requireNonNull(fixedInstant, "fixedInstant"); Objects.requireNonNull(zone, "zone"); return new FixedClock(fixedInstant, zone); }
class class_name[name] begin[{] method[fixed, return_type[type[Clock]], modifier[public static], parameter[fixedInstant, zone]] begin[{] call[Objects.requireNonNull, parameter[member[.fixedInstant], literal["fixedInstant"]]] call[Objects.requireNonNull, parameter[member[.zone], ...
Keyword[public] Keyword[static] identifier[Clock] identifier[fixed] operator[SEP] identifier[Instant] identifier[fixedInstant] , identifier[ZoneId] identifier[zone] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[fixedInstant] , literal[String] operator[SEP...
public static Pattern compile(String pattern) throws IllegalArgumentException { if (pattern == null) { throw new IllegalArgumentException("Pattern can not be null"); } if (pattern.startsWith("/") && pattern.endsWith("/") && pattern.length() > 1) { // This is a regular ex...
class class_name[name] begin[{] method[compile, return_type[type[Pattern]], modifier[public static], parameter[pattern]] begin[{] if[binary_operation[member[.pattern], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix...
Keyword[public] Keyword[static] identifier[Pattern] identifier[compile] operator[SEP] identifier[String] identifier[pattern] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] identifier[pattern] operator[==] Other[null] operator[SEP] { Keyword[throw] Keywor...
public static void consumeStream(InputStream is) { if (is != null) { try { // Copy the stream to a null destination long copied = IOUtils.copyLarge(is, NullOutputStream.NULL_OUTPUT_STREAM); if (copied > 0) { logger.log(Level.WARNING...
class class_name[name] begin[{] method[consumeStream, return_type[void], modifier[public static], parameter[is]] begin[{] if[binary_operation[member[.is], !=, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimens...
Keyword[public] Keyword[static] Keyword[void] identifier[consumeStream] operator[SEP] identifier[InputStream] identifier[is] operator[SEP] { Keyword[if] operator[SEP] identifier[is] operator[!=] Other[null] operator[SEP] { Keyword[try] { Keyword[long] identifier[copied] operator[=] iden...
@Override public String getName(String languageId, boolean useDefault) { return _commerceOrderItem.getName(languageId, useDefault); }
class class_name[name] begin[{] method[getName, return_type[type[String]], modifier[public], parameter[languageId, useDefault]] begin[{] return[call[_commerceOrderItem.getName, parameter[member[.languageId], member[.useDefault]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getName] operator[SEP] identifier[String] identifier[languageId] , Keyword[boolean] identifier[useDefault] operator[SEP] { Keyword[return] identifier[_commerceOrderItem] operator[SEP] identifier[getName] operator[SEP] identifier[la...
@SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:magicnumber"}) public List<DBaseFileField> readDBFFields() throws IOException, EOFException { if (this.fields != null) { return this.fields; } if (this.finished) { throw new EOFDBaseFileException(); } if (this.fieldCount == -1) { throw new...
class class_name[name] begin[{] method[readDBFFields, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.fields]], !=, literal[null]]] begin[{] return[THIS[member[None.fields]]] else begin[{] None end[}] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] identifier[List] operator[<] identifier[DBaseFileField] operator[>] identifier[readDBFFields] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[EOFExcep...
protected final Buckets createBuckets(Stopwatch stopwatch) { if (stopwatch.getCounter() > warmupCounter) { Buckets buckets = createBucketsAfterWarmup(stopwatch); // Add retained splits to buckets buckets.addValues(getBucketsValues(stopwatch)); removeBucketsValues(stopwatch); return buckets; } ...
class class_name[name] begin[{] method[createBuckets, return_type[type[Buckets]], modifier[final protected], parameter[stopwatch]] begin[{] if[binary_operation[call[stopwatch.getCounter, parameter[]], >, member[.warmupCounter]]] begin[{] local_variable[type[Buckets], buckets] ...
Keyword[protected] Keyword[final] identifier[Buckets] identifier[createBuckets] operator[SEP] identifier[Stopwatch] identifier[stopwatch] operator[SEP] { Keyword[if] operator[SEP] identifier[stopwatch] operator[SEP] identifier[getCounter] operator[SEP] operator[SEP] operator[>] identifier[warmupCounter] operator...
public static String getContentMimeType(final java.io.File file, final String name) throws IOException { String mimeType; // try name first, if not null if (name != null) { mimeType = mimeTypeMap.getContentType(name); if (mimeType != null && !UNKNOWN_MIME_TYPE.equals(mimeType)) { return mimeType; }...
class class_name[name] begin[{] method[getContentMimeType, return_type[type[String]], modifier[public static], parameter[file, name]] begin[{] local_variable[type[String], mimeType] if[binary_operation[member[.name], !=, literal[null]]] begin[{] assign[member[.mi...
Keyword[public] Keyword[static] identifier[String] identifier[getContentMimeType] operator[SEP] Keyword[final] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[File] identifier[file] , Keyword[final] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] { ...
protected void processIntersectionsSplitHorizontal() { boolean change; do { Vector<Separator> newsep = new Vector<Separator>(hsep.size()); change = false; for (Separator hs : hsep) { boolean split = false; for (Sepa...
class class_name[name] begin[{] method[processIntersectionsSplitHorizontal, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[boolean], change] do[member[.change]] begin[{] local_variable[type[Vector], newsep] assign[me...
Keyword[protected] Keyword[void] identifier[processIntersectionsSplitHorizontal] operator[SEP] operator[SEP] { Keyword[boolean] identifier[change] operator[SEP] Keyword[do] { identifier[Vector] operator[<] identifier[Separator] operator[>] identifier[newsep] operator[=] Keyword[new] identifier[Vector]...
public static void cursorDoubleToContentValues(Cursor cursor, String field, ContentValues values, String key) { int colIndex = cursor.getColumnIndex(field); if (!cursor.isNull(colIndex)) { values.put(key, cursor.getDouble(colIndex)); } else { values.put(key, (...
class class_name[name] begin[{] method[cursorDoubleToContentValues, return_type[void], modifier[public static], parameter[cursor, field, values, key]] begin[{] local_variable[type[int], colIndex] if[call[cursor.isNull, parameter[member[.colIndex]]]] begin[{] call...
Keyword[public] Keyword[static] Keyword[void] identifier[cursorDoubleToContentValues] operator[SEP] identifier[Cursor] identifier[cursor] , identifier[String] identifier[field] , identifier[ContentValues] identifier[values] , identifier[String] identifier[key] operator[SEP] { Keyword[int] identifier[colIndex]...
public void setJobStatesToNotify(java.util.Collection<String> jobStatesToNotify) { if (jobStatesToNotify == null) { this.jobStatesToNotify = null; return; } this.jobStatesToNotify = new java.util.ArrayList<String>(jobStatesToNotify); }
class class_name[name] begin[{] method[setJobStatesToNotify, return_type[void], modifier[public], parameter[jobStatesToNotify]] begin[{] if[binary_operation[member[.jobStatesToNotify], ==, literal[null]]] begin[{] assign[THIS[member[None.jobStatesToNotify]], literal[null...
Keyword[public] Keyword[void] identifier[setJobStatesToNotify] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[jobStatesToNotify] operator[SEP] { Keyword[if] operator[SEP] identifier[jobStatesToNotify] operat...
public Long pexpireAt(Object key, long millisecondsTimestamp) { Jedis jedis = getJedis(); try { return jedis.pexpireAt(keyToBytes(key), millisecondsTimestamp); } finally {close(jedis);} }
class class_name[name] begin[{] method[pexpireAt, return_type[type[Long]], modifier[public], parameter[key, millisecondsTimestamp]] begin[{] local_variable[type[Jedis], jedis] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(...
Keyword[public] identifier[Long] identifier[pexpireAt] operator[SEP] identifier[Object] identifier[key] , Keyword[long] identifier[millisecondsTimestamp] operator[SEP] { identifier[Jedis] identifier[jedis] operator[=] identifier[getJedis] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keywo...
public synchronized I_CmsSearchDocument getDocument(String fieldname, String term, String[] fls) { try { SolrQuery query = new SolrQuery(); if (CmsSearchField.FIELD_PATH.equals(fieldname)) { query.setQuery(fieldname + ":\"" + term + "\""); } else { ...
class class_name[name] begin[{] method[getDocument, return_type[type[I_CmsSearchDocument]], modifier[synchronized public], parameter[fieldname, term, fls]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(argum...
Keyword[public] Keyword[synchronized] identifier[I_CmsSearchDocument] identifier[getDocument] operator[SEP] identifier[String] identifier[fieldname] , identifier[String] identifier[term] , identifier[String] operator[SEP] operator[SEP] identifier[fls] operator[SEP] { Keyword[try] { identifier[SolrQu...
protected Element createLinkWrapperElement(final Document document, final Node node, final String cssClass) { // Create the bug/editor link root element final Element linkElement = document.createElement("para"); if (cssClass != null) { linkElement.setAttribute("role", cssClass); ...
class class_name[name] begin[{] method[createLinkWrapperElement, return_type[type[Element]], modifier[protected], parameter[document, node, cssClass]] begin[{] local_variable[type[Element], linkElement] if[binary_operation[member[.cssClass], !=, literal[null]]] begin[{] ...
Keyword[protected] identifier[Element] identifier[createLinkWrapperElement] operator[SEP] Keyword[final] identifier[Document] identifier[document] , Keyword[final] identifier[Node] identifier[node] , Keyword[final] identifier[String] identifier[cssClass] operator[SEP] { Keyword[final] identifier[Element] ident...
public static String decapitalize(String s) { if (s == null) { return null; } return Introspector.decapitalize(s); }
class class_name[name] begin[{] method[decapitalize, return_type[type[String]], modifier[public static], parameter[s]] begin[{] if[binary_operation[member[.s], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[Introspect...
Keyword[public] Keyword[static] identifier[String] identifier[decapitalize] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifi...
public ServiceFuture<Void> beginFailoverAsync(String resourceGroupName, String serverName, String disasterRecoveryConfigurationName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginFailoverWithServiceResponseAsync(resourceGroupName, serverName, disasterRecoveryConfiguration...
class class_name[name] begin[{] method[beginFailoverAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, disasterRecoveryConfigurationName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.beginFailoverWithServiceResponseA...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[beginFailoverAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[disasterRecoveryConfigurationName] , Keyword[final] identifier[S...
private int getTokenQueuePosFromMap(int i) { int pos = m_patternMap[i]; return (pos >= TARGETEXTRA) ? (pos - TARGETEXTRA) : pos; }
class class_name[name] begin[{] method[getTokenQueuePosFromMap, return_type[type[int]], modifier[private], parameter[i]] begin[{] local_variable[type[int], pos] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qua...
Keyword[private] Keyword[int] identifier[getTokenQueuePosFromMap] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[int] identifier[pos] operator[=] identifier[m_patternMap] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[pos] operator[>=] identifie...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.GSLE__LINEEND: return LINEEND_EDEFAULT == null ? lineend != null : !LINEEND_EDEFAULT.equals(lineend); } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GSLE__LINEEND, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statemen...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[GSLE__LINEEND] op...
public Class<?> getClass(String pName, Class<?> defaultValue) { String pValue = _properties.getProperty(pName); return parseClass(pName, pValue, defaultValue); }
class class_name[name] begin[{] method[getClass, return_type[type[Class]], modifier[public], parameter[pName, defaultValue]] begin[{] local_variable[type[String], pValue] return[call[.parseClass, parameter[member[.pName], member[.pValue], member[.defaultValue]]]] end[}] END[}]
Keyword[public] identifier[Class] operator[<] operator[?] operator[>] identifier[getClass] operator[SEP] identifier[String] identifier[pName] , identifier[Class] operator[<] operator[?] operator[>] identifier[defaultValue] operator[SEP] { identifier[String] identifier[pValue] operator[=] identifier[_properties]...
@Override public boolean isNPC(String username) { User sfsUser = getZone().getUserByName(username); if(sfsUser != null) return sfsUser.isNpc(); return false; }
class class_name[name] begin[{] method[isNPC, return_type[type[boolean]], modifier[public], parameter[username]] begin[{] local_variable[type[User], sfsUser] if[binary_operation[member[.sfsUser], !=, literal[null]]] begin[{] return[call[sfsUser.isNpc, parameter[]]] else begin[{]...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isNPC] operator[SEP] identifier[String] identifier[username] operator[SEP] { identifier[User] identifier[sfsUser] operator[=] identifier[getZone] operator[SEP] operator[SEP] operator[SEP] identifier[getUserByName] operator[SEP] identi...
public static void setCharsetEncoding(String charset) { try { String test = "123456890"; test.getBytes(charset); CHARSET_ENCODING = charset; encode = true; } catch (UnsupportedEncodingException ex) { // Reset the encoding to default CHARSET_ENCODING = ""; encode = false; } }
class class_name[name] begin[{] method[setCharsetEncoding, return_type[void], modifier[public static], parameter[charset]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] Keyword[void] identifier[setCharsetEncoding] operator[SEP] identifier[String] identifier[charset] operator[SEP] { Keyword[try] { identifier[String] identifier[test] operator[=] literal[String] operator[SEP] identifier[test] operator[SEP] identifier[getBytes] operator[SE...
public void setInto(ReadWritablePeriod writablePeriod, Object object, Chronology chrono) { ReadableDuration dur = (ReadableDuration) object; chrono = DateTimeUtils.getChronology(chrono); long duration = dur.getMillis(); int[] values = chrono.get(writablePeriod, duration); for (in...
class class_name[name] begin[{] method[setInto, return_type[void], modifier[public], parameter[writablePeriod, object, chrono]] begin[{] local_variable[type[ReadableDuration], dur] assign[member[.chrono], call[DateTimeUtils.getChronology, parameter[member[.chrono]]]] local_varia...
Keyword[public] Keyword[void] identifier[setInto] operator[SEP] identifier[ReadWritablePeriod] identifier[writablePeriod] , identifier[Object] identifier[object] , identifier[Chronology] identifier[chrono] operator[SEP] { identifier[ReadableDuration] identifier[dur] operator[=] operator[SEP] identifier[Readabl...
public static MozuUrl updateSynonymDefinitionUrl(String responseFields, Integer synonymId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/search/synonyms/{synonymId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("synony...
class class_name[name] begin[{] method[updateSynonymDefinitionUrl, return_type[type[MozuUrl]], modifier[public static], parameter[responseFields, synonymId]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["responseFields"], member[.res...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[updateSynonymDefinitionUrl] operator[SEP] identifier[String] identifier[responseFields] , identifier[Integer] identifier[synonymId] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] oper...
public static byte[] decryptAES(SecretKey key, byte[] iv, byte[] encryptedBytes) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException { Cipher aesCipher = Cipher.getInstance("AES/C...
class class_name[name] begin[{] method[decryptAES, return_type[type[byte]], modifier[public static], parameter[key, iv, encryptedBytes]] begin[{] local_variable[type[Cipher], aesCipher] local_variable[type[IvParameterSpec], ivParameter] local_variable[type[Key], encryptionKey] ...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decryptAES] operator[SEP] identifier[SecretKey] identifier[key] , Keyword[byte] operator[SEP] operator[SEP] identifier[iv] , Keyword[byte] operator[SEP] operator[SEP] identifier[encryptedBytes] operator[SEP] Keyword[throws] identifie...
public static Bit2Array convertNSequenceToBit2Array(NucleotideSequence seq) { if (seq.containWildcards()) throw new IllegalArgumentException("Sequences with wildcards are not supported."); Bit2Array bar = new Bit2Array(seq.size()); for (int i = 0; i < seq.size(); i++) bar...
class class_name[name] begin[{] method[convertNSequenceToBit2Array, return_type[type[Bit2Array]], modifier[public static], parameter[seq]] begin[{] if[call[seq.containWildcards, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operato...
Keyword[public] Keyword[static] identifier[Bit2Array] identifier[convertNSequenceToBit2Array] operator[SEP] identifier[NucleotideSequence] identifier[seq] operator[SEP] { Keyword[if] operator[SEP] identifier[seq] operator[SEP] identifier[containWildcards] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] ...
void launchTasklet(final Tasklet tasklet) { lock.lock(); try { if (!terminated) { Optional<String> workerId; while(true) { workerId = schedulingPolicy.trySchedule(tasklet); if (!workerId.isPresent()) { try { noWorkerOrResource.await(); ...
class class_name[name] begin[{] method[launchTasklet, return_type[void], modifier[default], parameter[tasklet]] begin[{] call[lock.lock, parameter[]] TryStatement(block=[IfStatement(condition=MemberReference(member=terminated, postfix_operators=[], prefix_operators=['!'], qualifier=, se...
Keyword[void] identifier[launchTasklet] operator[SEP] Keyword[final] identifier[Tasklet] identifier[tasklet] operator[SEP] { identifier[lock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[terminated] operator[SE...
public void lock() { locked = true; forAllObservables(new Consumer<ManagedObservable<?>>() { @Override public void accept(ManagedObservable<?> managedObservable) { managedObservable.lock(); } }); }
class class_name[name] begin[{] method[lock, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.locked], literal[true]] call[.forAllObservables, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Overrid...
Keyword[public] Keyword[void] identifier[lock] operator[SEP] operator[SEP] { identifier[locked] operator[=] literal[boolean] operator[SEP] identifier[forAllObservables] operator[SEP] Keyword[new] identifier[Consumer] operator[<] identifier[ManagedObservable] operator[<] operator[?] operator[>] operator[>] operat...
public static void iterate(File zip, String[] entryNames, ZipEntryCallback action) { iterate(zip, entryNames, action, null); }
class class_name[name] begin[{] method[iterate, return_type[void], modifier[public static], parameter[zip, entryNames, action]] begin[{] call[.iterate, parameter[member[.zip], member[.entryNames], member[.action], literal[null]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[iterate] operator[SEP] identifier[File] identifier[zip] , identifier[String] operator[SEP] operator[SEP] identifier[entryNames] , identifier[ZipEntryCallback] identifier[action] operator[SEP] { identifier[iterate] operator[SEP] identifier[zip] , identif...
@Override public void startField(String field, int index) { logOpen(field); delegate.startField(field, index); }
class class_name[name] begin[{] method[startField, return_type[void], modifier[public], parameter[field, index]] begin[{] call[.logOpen, parameter[member[.field]]] call[delegate.startField, parameter[member[.field], member[.index]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[startField] operator[SEP] identifier[String] identifier[field] , Keyword[int] identifier[index] operator[SEP] { identifier[logOpen] operator[SEP] identifier[field] operator[SEP] operator[SEP] identifier[delegate] operator[SEP] identifie...
public final void doWrites(QueuedMediaData[] slice) { // empty the queue for (QueuedMediaData queued : slice) { int tmpTs = queued.getTimestamp(); if (lastWrittenTs <= tmpTs) { if (queued.hasData()) { // write the data ...
class class_name[name] begin[{] method[doWrites, return_type[void], modifier[final public], parameter[slice]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=...
Keyword[public] Keyword[final] Keyword[void] identifier[doWrites] operator[SEP] identifier[QueuedMediaData] operator[SEP] operator[SEP] identifier[slice] operator[SEP] { Keyword[for] operator[SEP] identifier[QueuedMediaData] identifier[queued] operator[:] identifier[slice] operator[SEP] { Keyword[int...
private FileStatus findStatusForSegment(String segmentName, boolean enforceExistence) throws IOException { FileStatus[] rawFiles = findAllRaw(segmentName); if (rawFiles == null || rawFiles.length == 0) { if (enforceExistence) { throw HDFSExceptionHelpers.segmentNotExistsExcep...
class class_name[name] begin[{] method[findStatusForSegment, return_type[type[FileStatus]], modifier[private], parameter[segmentName, enforceExistence]] begin[{] local_variable[type[FileStatus], rawFiles] if[binary_operation[binary_operation[member[.rawFiles], ==, literal[null]], ||, bi...
Keyword[private] identifier[FileStatus] identifier[findStatusForSegment] operator[SEP] identifier[String] identifier[segmentName] , Keyword[boolean] identifier[enforceExistence] operator[SEP] Keyword[throws] identifier[IOException] { identifier[FileStatus] operator[SEP] operator[SEP] identifier[rawFiles] operat...
private InstalledPlugin[] listInstalledPlugins() { Profiler profiler = Profiler.create(LOG).startInfo("Load plugins index"); GetRequest getRequest = new GetRequest(PLUGINS_WS_URL); InstalledPlugins installedPlugins; try (Reader reader = wsClient.call(getRequest).contentReader()) { installedPlugins...
class class_name[name] begin[{] method[listInstalledPlugins, return_type[type[InstalledPlugin]], modifier[private], parameter[]] begin[{] local_variable[type[Profiler], profiler] local_variable[type[GetRequest], getRequest] local_variable[type[InstalledPlugins], installedPlugins] ...
Keyword[private] identifier[InstalledPlugin] operator[SEP] operator[SEP] identifier[listInstalledPlugins] operator[SEP] operator[SEP] { identifier[Profiler] identifier[profiler] operator[=] identifier[Profiler] operator[SEP] identifier[create] operator[SEP] identifier[LOG] operator[SEP] operator[SEP] identifier[...
public static final boolean valueIsNotDefault(FieldType type, Object value) { boolean result = true; if (value == null) { result = false; } else { DataType dataType = type.getDataType(); switch (dataType) { case BOOLEAN: ...
class class_name[name] begin[{] method[valueIsNotDefault, return_type[type[boolean]], modifier[final public static], parameter[type, value]] begin[{] local_variable[type[boolean], result] if[binary_operation[member[.value], ==, literal[null]]] begin[{] assign[mem...
Keyword[public] Keyword[static] Keyword[final] Keyword[boolean] identifier[valueIsNotDefault] operator[SEP] identifier[FieldType] identifier[type] , identifier[Object] identifier[value] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] ident...
@SuppressWarnings({ "checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity" }) public static IClasspathEntry elementDecode(Element element, String projectName, IPath projectRootAbsoluteFullPath, Map<IPath, UnknownXmlElements> unknownElements) { final IPath projectPath = projectRootAbsolu...
class class_name[name] begin[{] method[elementDecode, return_type[type[IClasspathEntry]], modifier[public static], parameter[element, projectName, projectRootAbsoluteFullPath, unknownElements]] begin[{] local_variable[type[IPath], projectPath] local_variable[type[NamedNodeMap], attributes] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[static] identifier[IClasspathEntry] identifier[elementDecode] operator[SEP] identifier[Element] identifier[element] , identifier[String] identifier[projectName] , identifier[...
@NotNull @ObjectiveCName("addEndpoint:") public ConfigurationBuilder addEndpoint(@NotNull String url) { try { endpoints.addEndpoint(url); } catch (ConnectionEndpointArray.UnknownSchemeException e) { throw new RuntimeException(e.getMessage()); } return this...
class class_name[name] begin[{] method[addEndpoint, return_type[type[ConfigurationBuilder]], modifier[public], parameter[url]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=url, postfix_operators=[], prefix_operators=[], qualifier=, selec...
annotation[@] identifier[NotNull] annotation[@] identifier[ObjectiveCName] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[ConfigurationBuilder] identifier[addEndpoint] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[url] operator[SEP] { Keyword[try] { ...
public void setTargetWindow(com.google.api.ads.admanager.axis.v201811.AdUnitTargetWindow targetWindow) { this.targetWindow = targetWindow; }
class class_name[name] begin[{] method[setTargetWindow, return_type[void], modifier[public], parameter[targetWindow]] begin[{] assign[THIS[member[None.targetWindow]], member[.targetWindow]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setTargetWindow] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201811] operator[SEP] identifier[AdUnitTargetW...
public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocol_ = b; return b; ...
class class_name[name] begin[{] method[getProtocolBytes, return_type[type[com]], modifier[public], parameter[]] begin[{] local_variable[type[java], ref] if[binary_operation[member[.ref], instanceof, type[java]]] begin[{] local_variable[type[com], b] a...
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[protobuf] operator[SEP] identifier[ByteString] identifier[getProtocolBytes] operator[SEP] operator[SEP] { identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] identifi...
public void dumpLogBuffer(String identifier) { final ArrayList<LogRecord> logBufferCopy; final PrintWriter logDumper; final OutputStream outStream; Formatter formatter = this.getFormatter(); // Check if compression of dump file is enabled boolean disableCompression = System.getPropert...
class class_name[name] begin[{] method[dumpLogBuffer, return_type[void], modifier[public], parameter[identifier]] begin[{] local_variable[type[ArrayList], logBufferCopy] local_variable[type[PrintWriter], logDumper] local_variable[type[OutputStream], outStream] local_variable[typ...
Keyword[public] Keyword[void] identifier[dumpLogBuffer] operator[SEP] identifier[String] identifier[identifier] operator[SEP] { Keyword[final] identifier[ArrayList] operator[<] identifier[LogRecord] operator[>] identifier[logBufferCopy] operator[SEP] Keyword[final] identifier[PrintWriter] identifier[logDumper] o...
private String getExtends(String pid) { RegistryEntry re = getRegistryEntry(pid); return re == null ? null : re.getExtends(); }
class class_name[name] begin[{] method[getExtends, return_type[type[String]], modifier[private], parameter[pid]] begin[{] local_variable[type[RegistryEntry], re] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=re, postfix_operators=[], prefix_operators=[], qua...
Keyword[private] identifier[String] identifier[getExtends] operator[SEP] identifier[String] identifier[pid] operator[SEP] { identifier[RegistryEntry] identifier[re] operator[=] identifier[getRegistryEntry] operator[SEP] identifier[pid] operator[SEP] operator[SEP] Keyword[return] identifier[re] operator[==] Other...
private static ClassLoader getPlatformClassLoader() { if (JavaInfo.majorVersion() >= 9) { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader pcl = null; tr...
class class_name[name] begin[{] method[getPlatformClassLoader, return_type[type[ClassLoader]], modifier[private static], parameter[]] begin[{] if[binary_operation[call[JavaInfo.majorVersion, parameter[]], >=, literal[9]]] begin[{] return[call[AccessController.doPrivileged, parameter...
Keyword[private] Keyword[static] identifier[ClassLoader] identifier[getPlatformClassLoader] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[JavaInfo] operator[SEP] identifier[majorVersion] operator[SEP] operator[SEP] operator[>=] Other[9] operator[SEP] { Keyword[return] identifier[A...
private void encodeStringLiteral(ByteBuf out, CharSequence string) { int huffmanLength = hpackHuffmanEncoder.getEncodedLength(string); if (huffmanLength < string.length()) { encodeInteger(out, 0x80, 7, huffmanLength); hpackHuffmanEncoder.encode(out, string); } else { ...
class class_name[name] begin[{] method[encodeStringLiteral, return_type[void], modifier[private], parameter[out, string]] begin[{] local_variable[type[int], huffmanLength] if[binary_operation[member[.huffmanLength], <, call[string.length, parameter[]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[encodeStringLiteral] operator[SEP] identifier[ByteBuf] identifier[out] , identifier[CharSequence] identifier[string] operator[SEP] { Keyword[int] identifier[huffmanLength] operator[=] identifier[hpackHuffmanEncoder] operator[SEP] identifier[getEncodedLength] operator[SE...
private Collection<org.ironjacamar.core.api.deploymentrepository.ConfigProperty> injectConfigProperties(Object o, Collection<org.ironjacamar.common.api.metadata.spec.ConfigProperty> configProperties, Map<String, String> overrides, ...
class class_name[name] begin[{] method[injectConfigProperties, return_type[type[Collection]], modifier[private], parameter[o, configProperties, overrides, classLoader]] begin[{] local_variable[type[Collection], dcps] if[binary_operation[binary_operation[member[.configProperties], !=, li...
Keyword[private] identifier[Collection] operator[<] identifier[org] operator[SEP] identifier[ironjacamar] operator[SEP] identifier[core] operator[SEP] identifier[api] operator[SEP] identifier[deploymentrepository] operator[SEP] identifier[ConfigProperty] operator[>] identifier[injectConfigProperties] operator[SEP] iden...
public static void closeQuietly(final ImageOutputStream aImageOutputStream) { if (aImageOutputStream != null) { try { aImageOutputStream.close(); } catch (final IOException details) { LOGGER.error(details.getMessage(), details); } } ...
class class_name[name] begin[{] method[closeQuietly, return_type[void], modifier[public static], parameter[aImageOutputStream]] begin[{] if[binary_operation[member[.aImageOutputStream], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(...
Keyword[public] Keyword[static] Keyword[void] identifier[closeQuietly] operator[SEP] Keyword[final] identifier[ImageOutputStream] identifier[aImageOutputStream] operator[SEP] { Keyword[if] operator[SEP] identifier[aImageOutputStream] operator[!=] Other[null] operator[SEP] { Keyword[try] { ...
public ApiResponse<ApiSuccessResponse> mgtCompleteWithHttpInfo(MgtCancel1 mgtCancel) throws ApiException { com.squareup.okhttp.Call call = mgtCompleteValidateBeforeCall(mgtCancel, null, null); Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType(); return apiClient.execute(cal...
class class_name[name] begin[{] method[mgtCompleteWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[mgtCancel]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execute, parameter[member[.call], member[...
Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[mgtCompleteWithHttpInfo] operator[SEP] identifier[MgtCancel1] identifier[mgtCancel] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] operator[SEP] identifier[squareup] operator[SEP] i...
public static void completeBackgroundTasks(long timeoutMillis) { boolean fifoEmpty = false; boolean asyncThreadsCompleted = false; long absTimeout = System.currentTimeMillis() + timeoutMillis; while (System.currentTimeMillis() < absTimeout) { synchronized (f...
class class_name[name] begin[{] method[completeBackgroundTasks, return_type[void], modifier[public static], parameter[timeoutMillis]] begin[{] local_variable[type[boolean], fifoEmpty] local_variable[type[boolean], asyncThreadsCompleted] local_variable[type[long], absTimeout] ...
Keyword[public] Keyword[static] Keyword[void] identifier[completeBackgroundTasks] operator[SEP] Keyword[long] identifier[timeoutMillis] operator[SEP] { Keyword[boolean] identifier[fifoEmpty] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[asyncThreadsCompleted] operator[=] literal[boolean]...
public final CommitResponse commit( SessionName session, TransactionOptions singleUseTransaction, List<Mutation> mutations) { CommitRequest request = CommitRequest.newBuilder() .setSession(session == null ? null : session.toString()) .setSingleUseTransaction(singleUseTransacti...
class class_name[name] begin[{] method[commit, return_type[type[CommitResponse]], modifier[final public], parameter[session, singleUseTransaction, mutations]] begin[{] local_variable[type[CommitRequest], request] return[call[.commit, parameter[member[.request]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[CommitResponse] identifier[commit] operator[SEP] identifier[SessionName] identifier[session] , identifier[TransactionOptions] identifier[singleUseTransaction] , identifier[List] operator[<] identifier[Mutation] operator[>] identifier[mutations] operator[SEP] { identifi...
@Test(groups = {SAMPLES}) public void getMonitoringStatisticsByAllDatacenters() { List<MonitoringStatsEntry> summarize = statisticsService .monitoringStats() .forDataCenters( new DataCenterFilter() .dataCenters(DE_FRANKFURT, US_EAST_STERLING) ...
class class_name[name] begin[{] method[getMonitoringStatisticsByAllDatacenters, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[List], summarize] call[.assertNotNull, parameter[member[.summarize]]] end[}] END[}]
annotation[@] identifier[Test] operator[SEP] identifier[groups] operator[=] { identifier[SAMPLES] } operator[SEP] Keyword[public] Keyword[void] identifier[getMonitoringStatisticsByAllDatacenters] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[MonitoringStatsEntry] operator[>] ide...
@SuppressWarnings("deprecation") public static SaveOptions getOptions(Map<?, ?> saveOptions) { if (saveOptions == null || saveOptions.isEmpty()) return defaultOptions(); if (saveOptions.containsKey(KEY)) return (SaveOptions) saveOptions.get(KEY); if (saveOptions.containsKey(XtextResource.OPTION_SERIALIZATI...
class class_name[name] begin[{] method[getOptions, return_type[type[SaveOptions]], modifier[public static], parameter[saveOptions]] begin[{] if[binary_operation[binary_operation[member[.saveOptions], ==, literal[null]], ||, call[saveOptions.isEmpty, parameter[]]]] begin[{] return[call[.defaultO...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[SaveOptions] identifier[getOptions] operator[SEP] identifier[Map] operator[<] operator[?] , operator[?] operator[>] identifier[saveOptions] operator[SEP] { Keyword[if] operator[SEP] ...
private ContentType parseContentType(String value) { String[] pcs = value.split("\\;"); String mimeType = pcs[0].trim(); String charSet = "UTF-8"; for (int i = 1; i < pcs.length; i++) { String s = pcs[i].trim().toUpperCase(); if (s.startsWith...
class class_name[name] begin[{] method[parseContentType, return_type[type[ContentType]], modifier[private], parameter[value]] begin[{] local_variable[type[String], pcs] local_variable[type[String], mimeType] local_variable[type[String], charSet] ForStatement(body=BlockStatement(...
Keyword[private] identifier[ContentType] identifier[parseContentType] operator[SEP] identifier[String] identifier[value] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[pcs] operator[=] identifier[value] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operato...
public base_response perform_operation(nitro_service service, options option) throws Exception { if (!service.isLogin() && !get_object_type().equals("login")) service.login(); base_response response = post_request(service, option); return response; }
class class_name[name] begin[{] method[perform_operation, return_type[type[base_response]], modifier[public], parameter[service, option]] begin[{] if[binary_operation[call[service.isLogin, parameter[]], &&, call[.get_object_type, parameter[]]]] begin[{] call[service.login, parameter...
Keyword[public] identifier[base_response] identifier[perform_operation] operator[SEP] identifier[nitro_service] identifier[service] , identifier[options] identifier[option] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] operator[!] identifier[service] operator[SEP] identifier[is...
@VisibleForTesting static long calculateTargetReps(long reps, long nanos, long targetNanos, double gaussian) { double targetReps = (((double) reps) / nanos) * targetNanos; return Math.max(1L, Math.round((gaussian * (targetReps / 5)) + targetReps)); }
class class_name[name] begin[{] method[calculateTargetReps, return_type[type[long]], modifier[static], parameter[reps, nanos, targetNanos, gaussian]] begin[{] local_variable[type[double], targetReps] return[call[Math.max, parameter[literal[1L], call[Math.round, parameter[binary_operation[binary...
annotation[@] identifier[VisibleForTesting] Keyword[static] Keyword[long] identifier[calculateTargetReps] operator[SEP] Keyword[long] identifier[reps] , Keyword[long] identifier[nanos] , Keyword[long] identifier[targetNanos] , Keyword[double] identifier[gaussian] operator[SEP] { Keyword[double] identifier[tar...
public void addField(String fieldName, TypeID tid) { sTid.getFieldTypeInfos().add(new FieldTypeInfo(fieldName, tid)); }
class class_name[name] begin[{] method[addField, return_type[void], modifier[public], parameter[fieldName, tid]] begin[{] call[sTid.getFieldTypeInfos, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addField] operator[SEP] identifier[String] identifier[fieldName] , identifier[TypeID] identifier[tid] operator[SEP] { identifier[sTid] operator[SEP] identifier[getFieldTypeInfos] operator[SEP] operator[SEP] operator[SEP] identifier[add] operator[SEP] Keyword[new] identif...
public static void chainRequestDispatchers(RequestDispatcher[] dispatchers, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ for(int i=0; i<dispatchers.length-1; i++) { ChainedResponse chainedResp = new ChainedResponse(request, response); ...
class class_name[name] begin[{] method[chainRequestDispatchers, return_type[void], modifier[public static], parameter[dispatchers, request, response]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[]...
Keyword[public] Keyword[static] Keyword[void] identifier[chainRequestDispatchers] operator[SEP] identifier[RequestDispatcher] operator[SEP] operator[SEP] identifier[dispatchers] , identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] Keyword[throws] id...
public static String formatResourceNames(CmsRequestContext context, List<CmsResource> resources) { if (resources == null) { return null; } StringBuffer result = new StringBuffer(128); Iterator<CmsResource> i = resources.iterator(); while (i.hasNext()) { C...
class class_name[name] begin[{] method[formatResourceNames, return_type[type[String]], modifier[public static], parameter[context, resources]] begin[{] if[binary_operation[member[.resources], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}...
Keyword[public] Keyword[static] identifier[String] identifier[formatResourceNames] operator[SEP] identifier[CmsRequestContext] identifier[context] , identifier[List] operator[<] identifier[CmsResource] operator[>] identifier[resources] operator[SEP] { Keyword[if] operator[SEP] identifier[resources] operator[==]...
public static CommerceShipment[] findByGroupId_PrevAndNext( long commerceShipmentId, long groupId, OrderByComparator<CommerceShipment> orderByComparator) throws com.liferay.commerce.exception.NoSuchShipmentException { return getPersistence() .findByGroupId_PrevAndNext(commerceShipmentId, groupId, orde...
class class_name[name] begin[{] method[findByGroupId_PrevAndNext, return_type[type[CommerceShipment]], modifier[public static], parameter[commerceShipmentId, groupId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceShipment] operator[SEP] operator[SEP] identifier[findByGroupId_PrevAndNext] operator[SEP] Keyword[long] identifier[commerceShipmentId] , Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CommerceShipment] operator[>] identifier[...
public Section addBuildingBlockViewSection(SoftwareSystem softwareSystem, File... files) throws IOException { return addSection(softwareSystem, "Building Block View", files); }
class class_name[name] begin[{] method[addBuildingBlockViewSection, return_type[type[Section]], modifier[public], parameter[softwareSystem, files]] begin[{] return[call[.addSection, parameter[member[.softwareSystem], literal["Building Block View"], member[.files]]]] end[}] END[}]
Keyword[public] identifier[Section] identifier[addBuildingBlockViewSection] operator[SEP] identifier[SoftwareSystem] identifier[softwareSystem] , identifier[File] operator[...] identifier[files] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[addSection] operator[SEP] identifi...
@Override public long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) { return cpDefinitionLinkPersistence.countWithDynamicQuery(dynamicQuery, projection); }
class class_name[name] begin[{] method[dynamicQueryCount, return_type[type[long]], modifier[public], parameter[dynamicQuery, projection]] begin[{] return[call[cpDefinitionLinkPersistence.countWithDynamicQuery, parameter[member[.dynamicQuery], member[.projection]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[dynamicQueryCount] operator[SEP] identifier[DynamicQuery] identifier[dynamicQuery] , identifier[Projection] identifier[projection] operator[SEP] { Keyword[return] identifier[cpDefinitionLinkPersistence] operator[SEP] identifier[countWit...
public static double cosineOrHaversineDeg(double lat1, double lon1, double lat2, double lon2) { return cosineOrHaversineRad(deg2rad(lat1), deg2rad(lon1), deg2rad(lat2), deg2rad(lon2)); }
class class_name[name] begin[{] method[cosineOrHaversineDeg, return_type[type[double]], modifier[public static], parameter[lat1, lon1, lat2, lon2]] begin[{] return[call[.cosineOrHaversineRad, parameter[call[.deg2rad, parameter[member[.lat1]]], call[.deg2rad, parameter[member[.lon1]]], call[.deg2rad, pa...
Keyword[public] Keyword[static] Keyword[double] identifier[cosineOrHaversineDeg] operator[SEP] Keyword[double] identifier[lat1] , Keyword[double] identifier[lon1] , Keyword[double] identifier[lat2] , Keyword[double] identifier[lon2] operator[SEP] { Keyword[return] identifier[cosineOrHaversineRad] operator[SEP...
public static <T> Callable<T> decorate(final Callable<T> callable) { return new ContextPropagatingCallable<T>(callable); }
class class_name[name] begin[{] method[decorate, return_type[type[Callable]], modifier[public static], parameter[callable]] begin[{] return[ClassCreator(arguments=[MemberReference(member=callable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_argumen...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Callable] operator[<] identifier[T] operator[>] identifier[decorate] operator[SEP] Keyword[final] identifier[Callable] operator[<] identifier[T] operator[>] identifier[callable] operator[SEP] { Keyword[return] Keyword[new] identifie...
public GlobusResource getResource(String location) { GlobusResource returnResource; URL resourceURL; if (location.startsWith("classpath:")) { resourceURL = getClass().getClassLoader().getResource(location.replaceFirst("classpath:/", "")); returnResource = new GlobusResour...
class class_name[name] begin[{] method[getResource, return_type[type[GlobusResource]], modifier[public], parameter[location]] begin[{] local_variable[type[GlobusResource], returnResource] local_variable[type[URL], resourceURL] if[call[location.startsWith, parameter[literal["clas...
Keyword[public] identifier[GlobusResource] identifier[getResource] operator[SEP] identifier[String] identifier[location] operator[SEP] { identifier[GlobusResource] identifier[returnResource] operator[SEP] identifier[URL] identifier[resourceURL] operator[SEP] Keyword[if] operator[SEP] identifier[location] operato...
public void toPdf(PdfWriter writer, OutputStream os) throws IOException { if (bytes != null) os.write(bytes); }
class class_name[name] begin[{] method[toPdf, return_type[void], modifier[public], parameter[writer, os]] begin[{] if[binary_operation[member[.bytes], !=, literal[null]]] begin[{] call[os.write, parameter[member[.bytes]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[toPdf] operator[SEP] identifier[PdfWriter] identifier[writer] , identifier[OutputStream] identifier[os] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[bytes] operator[!=] Other[null] operator[SEP] identifier[os] operator[SEP]...
@Override public RandomVariable cap(double cap) { return apply(new DoubleUnaryOperator() { @Override public double applyAsDouble(double x) { return Math.min(x, cap); } }); }
class class_name[name] begin[{] method[cap, return_type[type[RandomVariable]], modifier[public], parameter[cap]] begin[{] return[call[.apply, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvoca...
annotation[@] identifier[Override] Keyword[public] identifier[RandomVariable] identifier[cap] operator[SEP] Keyword[double] identifier[cap] operator[SEP] { Keyword[return] identifier[apply] operator[SEP] Keyword[new] identifier[DoubleUnaryOperator] operator[SEP] operator[SEP] { annotation[@] identifie...
@Deprecated public /*abstract*/ void parseAssociatedNames(Job<?, ?> job, Collection<GitHubRepositoryName> result) { parseAssociatedNames((Item) job, result); }
class class_name[name] begin[{] method[parseAssociatedNames, return_type[void], modifier[public], parameter[job, result]] begin[{] call[.parseAssociatedNames, parameter[Cast(expression=MemberReference(member=job, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=Referen...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[parseAssociatedNames] operator[SEP] identifier[Job] operator[<] operator[?] , operator[?] operator[>] identifier[job] , identifier[Collection] operator[<] identifier[GitHubRepositoryName] operator[>] identifier[result] operator[SEP] { ...
private String[] split(final String sCommandLine) { return it.jnrpe.utils.StringUtils.split(sCommandLine, '!', false); }
class class_name[name] begin[{] method[split, return_type[type[String]], modifier[private], parameter[sCommandLine]] begin[{] return[call[it.jnrpe.utils.StringUtils.split, parameter[member[.sCommandLine], literal['!'], literal[false]]]] end[}] END[}]
Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[split] operator[SEP] Keyword[final] identifier[String] identifier[sCommandLine] operator[SEP] { Keyword[return] identifier[it] operator[SEP] identifier[jnrpe] operator[SEP] identifier[utils] operator[SEP] identifier[StringUtils] operator[...
public Builder<T> descending() { this.query.append(" DESC"); return new Builder<T>(shillelagh, tableObject, query); }
class class_name[name] begin[{] method[descending, return_type[type[Builder]], modifier[public], parameter[]] begin[{] THIS[member[None.query]call[None.append, parameter[literal[" DESC"]]]] return[ClassCreator(arguments=[MemberReference(member=shillelagh, postfix_operators=[], prefix_op...
Keyword[public] identifier[Builder] operator[<] identifier[T] operator[>] identifier[descending] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[query] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[Builder] ...
public int getScale(final int param) throws SQLException { try { return this.parameters.get(param-1).scale; } catch (NullPointerException e) { throw new SQLException("Parameter is not set: " + param); } catch (IndexOutOfBoundsException out) { throw new SQLExce...
class class_name[name] begin[{] method[getScale, return_type[type[int]], modifier[public], parameter[param]] begin[{] TryStatement(block=[ReturnStatement(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=parameters, postfix_operators=None, pref...
Keyword[public] Keyword[int] identifier[getScale] operator[SEP] Keyword[final] Keyword[int] identifier[param] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[try] { Keyword[return] Keyword[this] operator[SEP] identifier[parameters] operator[SEP] identifier[get] operator[SEP] identifie...
public static PrivateKey readPemPrivateKey(final File file) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException { final String privateKeyAsString = readPemFileAsBase64(file); final byte[] decoded = new Base64().decode(privateKeyAsString); return readPrivateKey(decoded...
class class_name[name] begin[{] method[readPemPrivateKey, return_type[type[PrivateKey]], modifier[public static], parameter[file]] begin[{] local_variable[type[String], privateKeyAsString] local_variable[type[byte], decoded] return[call[.readPrivateKey, parameter[member[.decoded]]]] ...
Keyword[public] Keyword[static] identifier[PrivateKey] identifier[readPemPrivateKey] operator[SEP] Keyword[final] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NoSuchAlgorithmException] , identifier[InvalidKeySpecException] , identifier[NoSuchProviderException] ...
public java.util.List<ReservedCacheNode> getReservedCacheNodes() { if (reservedCacheNodes == null) { reservedCacheNodes = new com.amazonaws.internal.SdkInternalList<ReservedCacheNode>(); } return reservedCacheNodes; }
class class_name[name] begin[{] method[getReservedCacheNodes, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.reservedCacheNodes], ==, literal[null]]] begin[{] assign[member[.reservedCacheNodes], ClassCreator(arguments=[], bod...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[ReservedCacheNode] operator[>] identifier[getReservedCacheNodes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[reservedCacheNodes] operator[==] Other[null] operator[SEP] { ...
public boolean authenticate(HttpServletRequest request) throws MnoException { String authHeader = request.getHeader("Authorization"); if (authHeader == null || authHeader.isEmpty()) { return false; } String[] auth = authHeader.trim().split("\\s+"); if (auth == null || auth.length != 2 || !auth[0].equalsIg...
class class_name[name] begin[{] method[authenticate, return_type[type[boolean]], modifier[public], parameter[request]] begin[{] local_variable[type[String], authHeader] if[binary_operation[binary_operation[member[.authHeader], ==, literal[null]], ||, call[authHeader.isEmpty, parameter[]...
Keyword[public] Keyword[boolean] identifier[authenticate] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] Keyword[throws] identifier[MnoException] { identifier[String] identifier[authHeader] operator[=] identifier[request] operator[SEP] identifier[getHeader] operator[SEP] literal[S...
public static List<Field> getAllFields(Class<?> clas) { JK.fixMe("add caching.."); List<Field> list = new Vector<>(); // start by fields from the super class if (clas.getSuperclass() != null) { list.addAll(getAllFields(clas.getSuperclass())); } Field[] fields = clas.getDeclaredFields(); for (Fi...
class class_name[name] begin[{] method[getAllFields, return_type[type[List]], modifier[public static], parameter[clas]] begin[{] call[JK.fixMe, parameter[literal["add caching.."]]] local_variable[type[List], list] if[binary_operation[call[clas.getSuperclass, parameter[]]...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Field] operator[>] identifier[getAllFields] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clas] operator[SEP] { identifier[JK] operator[SEP] identifier[fixMe] operator[SEP] literal[String] operator[SEP] opera...
@Override public EClass getIfcPositiveRatioMeasure() { if (ifcPositiveRatioMeasureEClass == null) { ifcPositiveRatioMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(903); } return ifcPositiveRatioMeasureEClass; }
class class_name[name] begin[{] method[getIfcPositiveRatioMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcPositiveRatioMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcPositiveRatioMeasureEClass], C...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcPositiveRatioMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcPositiveRatioMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcPositiveRatioMeasureEClass] operator[=] ...
public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts,boolean jsonify) throws AttributeNotFoundException { int length = pConverter.getCollectionLength(Array.getLength(pValue)); String pathPart = pPathParts.isEmpty() ? null : pPathParts.pop(); if (p...
class class_name[name] begin[{] method[extractObject, return_type[type[Object]], modifier[public], parameter[pConverter, pValue, pPathParts, jsonify]] begin[{] local_variable[type[int], length] local_variable[type[String], pathPart] if[binary_operation[member[.pathPart], !=, lit...
Keyword[public] identifier[Object] identifier[extractObject] operator[SEP] identifier[ObjectToJsonConverter] identifier[pConverter] , identifier[Object] identifier[pValue] , identifier[Stack] operator[<] identifier[String] operator[>] identifier[pPathParts] , Keyword[boolean] identifier[jsonify] operator[SEP] Keywor...
@Override public long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) { return commerceNotificationQueueEntryPersistence.countWithDynamicQuery(dynamicQuery, projection); }
class class_name[name] begin[{] method[dynamicQueryCount, return_type[type[long]], modifier[public], parameter[dynamicQuery, projection]] begin[{] return[call[commerceNotificationQueueEntryPersistence.countWithDynamicQuery, parameter[member[.dynamicQuery], member[.projection]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[dynamicQueryCount] operator[SEP] identifier[DynamicQuery] identifier[dynamicQuery] , identifier[Projection] identifier[projection] operator[SEP] { Keyword[return] identifier[commerceNotificationQueueEntryPersistence] operator[SEP] ident...
public static tunneltrafficpolicy get(nitro_service service, String name) throws Exception{ tunneltrafficpolicy obj = new tunneltrafficpolicy(); obj.set_name(name); tunneltrafficpolicy response = (tunneltrafficpolicy) obj.get_resource(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[tunneltrafficpolicy]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[tunneltrafficpolicy], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type[tunneltrafficpolicy], r...
Keyword[public] Keyword[static] identifier[tunneltrafficpolicy] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[tunneltrafficpolicy] identifier[obj] operator[=] Keyword[new] identif...
private static Term getUpperTerm(String upperName) { String text; if (upperName == null) { text = "\uFFFF"; } else { text = upperName; } return new Term(FieldNames.LOCAL_NAME, text); }
class class_name[name] begin[{] method[getUpperTerm, return_type[type[Term]], modifier[private static], parameter[upperName]] begin[{] local_variable[type[String], text] if[binary_operation[member[.upperName], ==, literal[null]]] begin[{] assign[member[.text], li...
Keyword[private] Keyword[static] identifier[Term] identifier[getUpperTerm] operator[SEP] identifier[String] identifier[upperName] operator[SEP] { identifier[String] identifier[text] operator[SEP] Keyword[if] operator[SEP] identifier[upperName] operator[==] Other[null] operator[SEP] { identifier[text] ...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.OBJECT_COUNT__SUB_OBJ: return getSubObj(); case AfplibPackage.OBJECT_COUNT__SOBJ_NUM: return getSObjNum(); case AfplibPackage.OBJECT_COUNT__SOBJ_NM_HI: return getSobjNmHi(); ...
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=OBJECT_COUNT__SUB_OBJ, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, ...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
public Log getInstance(String name) throws LogConfigurationException { Log log = loggers.get(name); if (log == null) { log = new Jdk14Logger(name); Log log2 = loggers.putIfAbsent(name, log); if (log2 != null) { return log2; ...
class class_name[name] begin[{] method[getInstance, return_type[type[Log]], modifier[public], parameter[name]] begin[{] local_variable[type[Log], log] if[binary_operation[member[.log], ==, literal[null]]] begin[{] assign[member[.log], ClassCreator(arguments=[Memb...
Keyword[public] identifier[Log] identifier[getInstance] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[LogConfigurationException] { identifier[Log] identifier[log] operator[=] identifier[loggers] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP...
public static void check(String namespace, String name, DatasetDescriptor descriptor) { checkDatasetName(namespace, name); checkDescriptor(descriptor); }
class class_name[name] begin[{] method[check, return_type[void], modifier[public static], parameter[namespace, name, descriptor]] begin[{] call[.checkDatasetName, parameter[member[.namespace], member[.name]]] call[.checkDescriptor, parameter[member[.descriptor]]] end[}] END[...
Keyword[public] Keyword[static] Keyword[void] identifier[check] operator[SEP] identifier[String] identifier[namespace] , identifier[String] identifier[name] , identifier[DatasetDescriptor] identifier[descriptor] operator[SEP] { identifier[checkDatasetName] operator[SEP] identifier[namespace] , identifier[name...
public void addProperty(String propertyType) { if (m_properties == null) { // this list will be used and clean up in the importResource method m_properties = new HashMap<String, CmsProperty>(); } try { if ((m_propertyName == null) || getIgnoredProperties().co...
class class_name[name] begin[{] method[addProperty, return_type[void], modifier[public], parameter[propertyType]] begin[{] if[binary_operation[member[.m_properties], ==, literal[null]]] begin[{] assign[member[.m_properties], ClassCreator(arguments=[], body=None, construc...
Keyword[public] Keyword[void] identifier[addProperty] operator[SEP] identifier[String] identifier[propertyType] operator[SEP] { Keyword[if] operator[SEP] identifier[m_properties] operator[==] Other[null] operator[SEP] { identifier[m_properties] operator[=] Keyword[new] identifier[HashMap] operator[<] ...
void backfillEvents() { @Nullable Lifecycle.Event correspondingEvent; switch (lifecycle.getCurrentState()) { case INITIALIZED: correspondingEvent = ON_CREATE; break; case CREATED: correspondingEvent = ON_START; break; case STARTED: case RESUMED: co...
class class_name[name] begin[{] method[backfillEvents, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[Lifecycle], correspondingEvent] SwitchStatement(cases=[SwitchStatementCase(case=['INITIALIZED'], statements=[StatementExpression(expression=Assignment(expressio...
Keyword[void] identifier[backfillEvents] operator[SEP] operator[SEP] { annotation[@] identifier[Nullable] identifier[Lifecycle] operator[SEP] identifier[Event] identifier[correspondingEvent] operator[SEP] Keyword[switch] operator[SEP] identifier[lifecycle] operator[SEP] identifier[getCurrentState] operator[SEP] ...
public static Reference createAmbiguousReference (String shortDefaultBinding, List<J2EEName> j2eeNames) { String message = "The short-form default binding '" + shortDefaultBinding + "' is ambiguous because multiple beans implement the interfa...
class class_name[name] begin[{] method[createAmbiguousReference, return_type[type[Reference]], modifier[public static], parameter[shortDefaultBinding, j2eeNames]] begin[{] local_variable[type[String], message] local_variable[type[StringRefAddr], refAddr] local_variable[type[Reference], ...
Keyword[public] Keyword[static] identifier[Reference] identifier[createAmbiguousReference] operator[SEP] identifier[String] identifier[shortDefaultBinding] , identifier[List] operator[<] identifier[J2EEName] operator[>] identifier[j2eeNames] operator[SEP] { identifier[String] identifier[message] operator[=] lit...
private Future<?> submit(FLVFinalizer flvFinalizer) { if (executor != null && !executor.isTerminated()) { return executor.submit(flvFinalizer); } return null; }
class class_name[name] begin[{] method[submit, return_type[type[Future]], modifier[private], parameter[flvFinalizer]] begin[{] if[binary_operation[binary_operation[member[.executor], !=, literal[null]], &&, call[executor.isTerminated, parameter[]]]] begin[{] return[call[executor.sub...
Keyword[private] identifier[Future] operator[<] operator[?] operator[>] identifier[submit] operator[SEP] identifier[FLVFinalizer] identifier[flvFinalizer] operator[SEP] { Keyword[if] operator[SEP] identifier[executor] operator[!=] Other[null] operator[&&] operator[!] identifier[executor] operator[SEP] identifier...
public void updateRowId(final String columnLabel, final java.sql.RowId x) throws SQLException { throw SQLExceptionMapper.getFeatureNotSupportedException("Updates are not supported"); }
class class_name[name] begin[{] method[updateRowId, return_type[void], modifier[public], parameter[columnLabel, x]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Updates are not supported")], member...
Keyword[public] Keyword[void] identifier[updateRowId] operator[SEP] Keyword[final] identifier[String] identifier[columnLabel] , Keyword[final] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[RowId] identifier[x] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[throw] iden...
private void validateInterceptorBindings() throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "validateInterceptorBindings"); } // d630872 - Build a list of metho...
class class_name[name] begin[{] method[validateInterceptorBindings, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ca...
Keyword[private] Keyword[void] identifier[validateInterceptorBindings] operator[SEP] operator[SEP] Keyword[throws] identifier[EJBConfigurationException] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] opera...
public static ExtractFromRow extractFullText( final int indexInRow, final NodeCache cache, TypeSystem types, final BinaryStore binaries ) { final TypeFactory<Stri...
class class_name[name] begin[{] method[extractFullText, return_type[type[ExtractFromRow]], modifier[public static], parameter[indexInRow, cache, types, binaries]] begin[{] local_variable[type[TypeFactory], type] local_variable[type[boolean], trace] return[ClassCreator(arguments=[], body...
Keyword[public] Keyword[static] identifier[ExtractFromRow] identifier[extractFullText] operator[SEP] Keyword[final] Keyword[int] identifier[indexInRow] , Keyword[final] identifier[NodeCache] identifier[cache] , identifier[TypeSystem] identifier[types] , Keyword[final] identifier[BinaryStore] identifier[binaries] ope...
protected void addSessionValue(final HttpServletRequest request, final String key, final Object value) { List l = (List) request.getSession(true).getAttribute(key); if (l == null) { l = new ArrayList(); } l.add(value); request.getSession(true).setAttribute(key, l); }
class class_name[name] begin[{] method[addSessionValue, return_type[void], modifier[protected], parameter[request, key, value]] begin[{] local_variable[type[List], l] if[binary_operation[member[.l], ==, literal[null]]] begin[{] assign[member[.l], ClassCreator(arg...
Keyword[protected] Keyword[void] identifier[addSessionValue] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[Object] identifier[value] operator[SEP] { identifier[List] identifier[l] operator[=] opera...
private void buildGui() { setTitle(I18nProvider.getGlobal().commandError()); setHeaderIcon(WidgetLayout.iconError); setIsModal(true); setShowModalMask(true); setModalMaskOpacity(WidgetLayout.modalMaskOpacity); setWidth(WidgetLayout.exceptionWindowWidth); setHeight(WidgetLayout.exceptionWindowHeightNormal)...
class class_name[name] begin[{] method[buildGui, return_type[void], modifier[private], parameter[]] begin[{] call[.setTitle, parameter[call[I18nProvider.getGlobal, parameter[]]]] call[.setHeaderIcon, parameter[member[WidgetLayout.iconError]]] call[.setIsModal, pa...
Keyword[private] Keyword[void] identifier[buildGui] operator[SEP] operator[SEP] { identifier[setTitle] operator[SEP] identifier[I18nProvider] operator[SEP] identifier[getGlobal] operator[SEP] operator[SEP] operator[SEP] identifier[commandError] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[s...
public VarDefBuilder has( String name, Object value) { varDef_.setAnnotation( name, Objects.toString( value, null)); return this; }
class class_name[name] begin[{] method[has, return_type[type[VarDefBuilder]], modifier[public], parameter[name, value]] begin[{] call[varDef_.setAnnotation, parameter[member[.name], call[Objects.toString, parameter[member[.value], literal[null]]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[VarDefBuilder] identifier[has] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] { identifier[varDef_] operator[SEP] identifier[setAnnotation] operator[SEP] identifier[name] , identifier[Objects] operator[SEP] identifier[toString] ...
@ObjectiveCName("formatContentTextWithSenderId:withContentType:withText:withRelatedUid:withIsChannel:") public String formatContentText(int senderId, ContentType contentType, String text, int relatedUid, boolean isChannel) { String groupKey = isChannel ? "channels" : "gr...
class class_name[name] begin[{] method[formatContentText, return_type[type[String]], modifier[public], parameter[senderId, contentType, text, relatedUid, isChannel]] begin[{] local_variable[type[String], groupKey] SwitchStatement(cases=[SwitchStatementCase(case=['TEXT'], statements=[ReturnState...
annotation[@] identifier[ObjectiveCName] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[String] identifier[formatContentText] operator[SEP] Keyword[int] identifier[senderId] , identifier[ContentType] identifier[contentType] , identifier[String] identifier[text] , Keyword[int] identifier[relat...
@Override public CompletableFuture<Void> mutateRow(RowMutations rowMutations) { return toCompletableFuture(clientWrapper.mutateRowAsync(hbaseAdapter.adapt(rowMutations))); }
class class_name[name] begin[{] method[mutateRow, return_type[type[CompletableFuture]], modifier[public], parameter[rowMutations]] begin[{] return[call[.toCompletableFuture, parameter[call[clientWrapper.mutateRowAsync, parameter[call[hbaseAdapter.adapt, parameter[member[.rowMutations]]]]]]]] end[}]...
annotation[@] identifier[Override] Keyword[public] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] identifier[mutateRow] operator[SEP] identifier[RowMutations] identifier[rowMutations] operator[SEP] { Keyword[return] identifier[toCompletableFuture] operator[SEP] identifier[clientWrapper] o...
private HtmlResponse asListHtml() { return asHtml(path_AdminWebauth_AdminWebauthJsp).renderWith(data -> { RenderDataUtil.register(data, "webAuthenticationItems", webAuthenticationService.getWebAuthenticationList(webAuthPager)); // page navi RenderDataUtil.register(data, "displayCreat...
class class_name[name] begin[{] method[asListHtml, return_type[type[HtmlResponse]], modifier[private], parameter[]] begin[{] return[call[.asHtml, parameter[member[.path_AdminWebauth_AdminWebauthJsp]]]] end[}] END[}]
Keyword[private] identifier[HtmlResponse] identifier[asListHtml] operator[SEP] operator[SEP] { Keyword[return] identifier[asHtml] operator[SEP] identifier[path_AdminWebauth_AdminWebauthJsp] operator[SEP] operator[SEP] identifier[renderWith] operator[SEP] identifier[data] operator[->] { identifier[Rend...
public void marshall(UpdateFlowSourceRequest updateFlowSourceRequest, ProtocolMarshaller protocolMarshaller) { if (updateFlowSourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateFlow...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateFlowSourceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateFlowSourceRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateFlowSourceRequest] identifier[updateFlowSourceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateFlowSourceRequest] operator[==] Other[null] operator...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.GSLE__LINEEND: setLINEEND(LINEEND_EDEFAULT); return; } super.eUnset(featureID); }
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GSLE__LINEEND, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[State...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[GSLE__LINEEND] opera...