code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void registerMessageListener(MessageListenerDefinition messageListenerDefinition) { checkNotNull(messageListenerDefinition); ConnectionDefinition connectionDefinition = connectionDefinitions.get(messageListenerDefinition.getConnectionName()); if (connectionDefinition.isJeeMode() && messa...
class class_name[name] begin[{] method[registerMessageListener, return_type[void], modifier[public], parameter[messageListenerDefinition]] begin[{] call[.checkNotNull, parameter[member[.messageListenerDefinition]]] local_variable[type[ConnectionDefinition], connectionDefinition] ...
Keyword[public] Keyword[void] identifier[registerMessageListener] operator[SEP] identifier[MessageListenerDefinition] identifier[messageListenerDefinition] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[messageListenerDefinition] operator[SEP] operator[SEP] identifier[ConnectionDefinition] ide...
public List<MtasTreeHit<String>> getPositionedTermsByPrefixesAndPositionRange( String field, int docId, List<String> prefixes, int startPosition, int endPosition) throws IOException { IndexDoc doc = getDoc(field, docId); IndexInput inIndexObjectPosition = indexInputList .get("indexObjectPosi...
class class_name[name] begin[{] method[getPositionedTermsByPrefixesAndPositionRange, return_type[type[List]], modifier[public], parameter[field, docId, prefixes, startPosition, endPosition]] begin[{] local_variable[type[IndexDoc], doc] local_variable[type[IndexInput], inIndexObjectPosition] ...
Keyword[public] identifier[List] operator[<] identifier[MtasTreeHit] operator[<] identifier[String] operator[>] operator[>] identifier[getPositionedTermsByPrefixesAndPositionRange] operator[SEP] identifier[String] identifier[field] , Keyword[int] identifier[docId] , identifier[List] operator[<] identifier[String] ope...
public TransactionInfoBaseMessage nextTask() throws IOException { if (!hasMoreEntries()) { return null; } ByteBuffer bb = m_container.b(); int position = bb.position(); int length = bb.getInt(); long sourceHSId = bb.getLong(); VoltDbMessageFactory fa...
class class_name[name] begin[{] method[nextTask, return_type[type[TransactionInfoBaseMessage]], modifier[public], parameter[]] begin[{] if[call[.hasMoreEntries, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[ByteBuf...
Keyword[public] identifier[TransactionInfoBaseMessage] identifier[nextTask] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[hasMoreEntries] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] ...
private long getSpaceCount(ContentStore store, String spaceId) throws ContentStoreException { SpaceStatsDTOList stats = store.getSpaceStats(spaceId, new Date(System.currentTimeMillis() - (24 * 60 * 60 * 1000)), new Date()); long count = 0; if (stats != null && stats.size() ...
class class_name[name] begin[{] method[getSpaceCount, return_type[type[long]], modifier[private], parameter[store, spaceId]] begin[{] local_variable[type[SpaceStatsDTOList], stats] local_variable[type[long], count] if[binary_operation[binary_operation[member[.stats], !=, literal...
Keyword[private] Keyword[long] identifier[getSpaceCount] operator[SEP] identifier[ContentStore] identifier[store] , identifier[String] identifier[spaceId] operator[SEP] Keyword[throws] identifier[ContentStoreException] { identifier[SpaceStatsDTOList] identifier[stats] operator[=] identifier[store] operator[SEP]...
@Override public ExtensionProcessor createExtensionProcessor(IServletContext webapp) throws Exception { ExtensionFactory delegate = this.delegate; if (delegate != null) return delegate.createExtensionProcessor(webapp); return null; }
class class_name[name] begin[{] method[createExtensionProcessor, return_type[type[ExtensionProcessor]], modifier[public], parameter[webapp]] begin[{] local_variable[type[ExtensionFactory], delegate] if[binary_operation[member[.delegate], !=, literal[null]]] begin[{] return[call[delegate...
annotation[@] identifier[Override] Keyword[public] identifier[ExtensionProcessor] identifier[createExtensionProcessor] operator[SEP] identifier[IServletContext] identifier[webapp] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ExtensionFactory] identifier[delegate] operator[=] Keyword[this] ope...
public static String lookupParameterValue(String key, String string) { Pattern p = Pattern.compile("\\[" + key + "=[^\\]]*\\]"); Matcher m = p.matcher(string); m.find(); String f = m.group(); int p1 = f.indexOf('='); int p2 = f.indexOf(']'); return f.substring(p1+1, p2); }
class class_name[name] begin[{] method[lookupParameterValue, return_type[type[String]], modifier[public static], parameter[key, string]] begin[{] local_variable[type[Pattern], p] local_variable[type[Matcher], m] call[m.find, parameter[]] local_variable[type[String], f] ...
Keyword[public] Keyword[static] identifier[String] identifier[lookupParameterValue] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[string] operator[SEP] { identifier[Pattern] identifier[p] operator[=] identifier[Pattern] operator[SEP] identifier[compile] operator[SEP] literal[S...
private static Object invokeDefaultMethodUsingPrivateLookup(Class<?> declaringClass, Object o, Method m, Object[] params) throws WrappedException, NoSuchMethodException { try { final Method privateLookup = MethodHandles .class .getDeclaredMethod("privateL...
class class_name[name] begin[{] method[invokeDefaultMethodUsingPrivateLookup, return_type[type[Object]], modifier[private static], parameter[declaringClass, o, m, params]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cl...
Keyword[private] Keyword[static] identifier[Object] identifier[invokeDefaultMethodUsingPrivateLookup] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[declaringClass] , identifier[Object] identifier[o] , identifier[Method] identifier[m] , identifier[Object] operator[SEP] operator[SEP] i...
@Implementation protected boolean isActiveNetworkMetered() { if (defaultNetworkActive && activeNetworkInfo != null) { return activeNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE; } else { return false; } }
class class_name[name] begin[{] method[isActiveNetworkMetered, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] if[binary_operation[member[.defaultNetworkActive], &&, binary_operation[member[.activeNetworkInfo], !=, literal[null]]]] begin[{] return[binary_opera...
annotation[@] identifier[Implementation] Keyword[protected] Keyword[boolean] identifier[isActiveNetworkMetered] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[defaultNetworkActive] operator[&&] identifier[activeNetworkInfo] operator[!=] Other[null] operator[SEP] { Keyword[return] i...
public synchronized InputStreamHandle executeSelect(SPARQLQueryDefinition qdef, InputStreamHandle handle, Long offset, Long limit) { if (limit == null) { this.sparqlQueryManager.clearPageLength(); } else { this.sparqlQueryManager.setPageLength(limit); } ...
class class_name[name] begin[{] method[executeSelect, return_type[type[InputStreamHandle]], modifier[synchronized public], parameter[qdef, handle, offset, limit]] begin[{] if[binary_operation[member[.limit], ==, literal[null]]] begin[{] THIS[member[None.sparqlQueryManage...
Keyword[public] Keyword[synchronized] identifier[InputStreamHandle] identifier[executeSelect] operator[SEP] identifier[SPARQLQueryDefinition] identifier[qdef] , identifier[InputStreamHandle] identifier[handle] , identifier[Long] identifier[offset] , identifier[Long] identifier[limit] operator[SEP] { Keyword[i...
private void destroyProcessors() throws Exception { for (final ResourcePreProcessor processor : processorsFactory.getPreProcessors()) { if (processor instanceof Destroyable) { ((Destroyable) processor).destroy(); } } for (final ResourcePostProcessor processor : processorsFactory.getPostP...
class class_name[name] begin[{] method[destroyProcessors, return_type[void], modifier[private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=processor, postfix_operators=[], prefix_operators=[], qual...
Keyword[private] Keyword[void] identifier[destroyProcessors] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[for] operator[SEP] Keyword[final] identifier[ResourcePreProcessor] identifier[processor] operator[:] identifier[processorsFactory] operator[SEP] identifier[getPreProcessors] o...
public void getKey(int keyIndex, Quaternionf q) { int index = keyIndex * mFloatsPerKey; q.x = mKeys[index + 1]; q.y = mKeys[index + 2]; q.z = mKeys[index + 3]; q.w = mKeys[index + 4]; }
class class_name[name] begin[{] method[getKey, return_type[void], modifier[public], parameter[keyIndex, q]] begin[{] local_variable[type[int], index] assign[member[q.x], member[.mKeys]] assign[member[q.y], member[.mKeys]] assign[member[q.z], member[.mKeys...
Keyword[public] Keyword[void] identifier[getKey] operator[SEP] Keyword[int] identifier[keyIndex] , identifier[Quaternionf] identifier[q] operator[SEP] { Keyword[int] identifier[index] operator[=] identifier[keyIndex] operator[*] identifier[mFloatsPerKey] operator[SEP] identifier[q] operator[SEP] identifier[x] o...
protected Example doFilter( Example example ) { for (Example table = example.nextSibling(); table != null; table = table.nextSibling()) { if (END_INFO.equalsIgnoreCase( contentOf( table.at( 0, 0, 0 ) ) )) return table.nextSibling(); } return null; }
class class_name[name] begin[{] method[doFilter, return_type[type[Example]], modifier[protected], parameter[example]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postf...
Keyword[protected] identifier[Example] identifier[doFilter] operator[SEP] identifier[Example] identifier[example] operator[SEP] { Keyword[for] operator[SEP] identifier[Example] identifier[table] operator[=] identifier[example] operator[SEP] identifier[nextSibling] operator[SEP] operator[SEP] operator[SEP] identi...
private FastRequestHandler verifyBase(URL baseUrl, String baseSupplied) { if (null == baseUrl) { if ("META-INF/resources/webjars".equalsIgnoreCase(baseSupplied)) { // webjars not provided, just ignore it. } else { logger.warn("URL base not exists: " + base...
class class_name[name] begin[{] method[verifyBase, return_type[type[FastRequestHandler]], modifier[private], parameter[baseUrl, baseSupplied]] begin[{] if[binary_operation[literal[null], ==, member[.baseUrl]]] begin[{] if[literal["META-INF/resources/webjars"]] begin[{] ...
Keyword[private] identifier[FastRequestHandler] identifier[verifyBase] operator[SEP] identifier[URL] identifier[baseUrl] , identifier[String] identifier[baseSupplied] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[baseUrl] operator[SEP] { Keyword[if] operator[SEP] liter...
void addDriver(String name, String path, int slot, int slotListIndex) { names.add(name); paths.add(path); slots.add(slot); slotListIndexes.add(slotListIndex); updateConfiguration(); }
class class_name[name] begin[{] method[addDriver, return_type[void], modifier[default], parameter[name, path, slot, slotListIndex]] begin[{] call[names.add, parameter[member[.name]]] call[paths.add, parameter[member[.path]]] call[slots.add, parameter[member[.slot...
Keyword[void] identifier[addDriver] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[path] , Keyword[int] identifier[slot] , Keyword[int] identifier[slotListIndex] operator[SEP] { identifier[names] operator[SEP] identifier[add] operator[SEP] identifier[name] operator[SEP] oper...
@Override public void write(List<? extends SnapshotContentItem> items) throws Exception { for (SnapshotContentItem item : items) { Map<String, String> props = PropertiesSerializer.deserialize(item.getMetadata()); String contentId = item.getContentId(); String checksum = p...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[items]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodIn...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[SnapshotContentItem] operator[>] identifier[items] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[for] operator[SEP] identifier[Snap...
public void moveChildView(View pChildView, float pScale_Left, float pScale_Top) { ScalableLayout.LayoutParams lSLLP = getChildLayoutParams(pChildView); lSLLP.mScale_Left = pScale_Left; lSLLP.mScale_Top = pScale_Top; postInvalidate(); }
class class_name[name] begin[{] method[moveChildView, return_type[void], modifier[public], parameter[pChildView, pScale_Left, pScale_Top]] begin[{] local_variable[type[ScalableLayout], lSLLP] assign[member[lSLLP.mScale_Left], member[.pScale_Left]] assign[member[lSLLP.mSc...
Keyword[public] Keyword[void] identifier[moveChildView] operator[SEP] identifier[View] identifier[pChildView] , Keyword[float] identifier[pScale_Left] , Keyword[float] identifier[pScale_Top] operator[SEP] { identifier[ScalableLayout] operator[SEP] identifier[LayoutParams] identifier[lSLLP] operator[=] identifi...
@Override public Object getObjectInstance(Object o, Name n, Context c, Hashtable<?, ?> envmt) throws Exception { // by OSGi JNDI spec Name and Context should be null // if they are not then this code is being called in // the wrong way if (n != null || c != null) return n...
class class_name[name] begin[{] method[getObjectInstance, return_type[type[Object]], modifier[public], parameter[o, n, c, envmt]] begin[{] if[binary_operation[binary_operation[member[.n], !=, literal[null]], ||, binary_operation[member[.c], !=, literal[null]]]] begin[{] return[literal[null]] ...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getObjectInstance] operator[SEP] identifier[Object] identifier[o] , identifier[Name] identifier[n] , identifier[Context] identifier[c] , identifier[Hashtable] operator[<] operator[?] , operator[?] operator[>] identifier[envmt] operator...
public String generateHELMFromFastaPeptide(String notation) throws FastaFormatException, MonomerLoadingException, ChemistryException { String result = FastaFormat.generatePeptidePolymersFromFASTAFormatHELM1(notation).toHELM2(); setMonomerFactoryToDefault(notation); return result; }
class class_name[name] begin[{] method[generateHELMFromFastaPeptide, return_type[type[String]], modifier[public], parameter[notation]] begin[{] local_variable[type[String], result] call[.setMonomerFactoryToDefault, parameter[member[.notation]]] return[member[.result]] end[}]...
Keyword[public] identifier[String] identifier[generateHELMFromFastaPeptide] operator[SEP] identifier[String] identifier[notation] operator[SEP] Keyword[throws] identifier[FastaFormatException] , identifier[MonomerLoadingException] , identifier[ChemistryException] { identifier[String] identifier[result] operato...
public CRCResourceManagementFmtQual createCRCResourceManagementFmtQualFromString(EDataType eDataType, String initialValue) { CRCResourceManagementFmtQual result = CRCResourceManagementFmtQual.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid e...
class class_name[name] begin[{] method[createCRCResourceManagementFmtQualFromString, return_type[type[CRCResourceManagementFmtQual]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[CRCResourceManagementFmtQual], result] if[binary_operation[member[.res...
Keyword[public] identifier[CRCResourceManagementFmtQual] identifier[createCRCResourceManagementFmtQualFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[CRCResourceManagementFmtQual] identifier[result] operator[=] identi...
private static boolean isTokenNtlm(final byte[] token) { if (token == null || token.length < NTLM_TOKEN_MAX_LENGTH) { return false; } return IntStream.range(0, NTLM_TOKEN_MAX_LENGTH).noneMatch(i -> NTLMSSP_SIGNATURE[i] != token[i]); }
class class_name[name] begin[{] method[isTokenNtlm, return_type[type[boolean]], modifier[private static], parameter[token]] begin[{] if[binary_operation[binary_operation[member[.token], ==, literal[null]], ||, binary_operation[member[token.length], <, member[.NTLM_TOKEN_MAX_LENGTH]]]] begin[{] ...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isTokenNtlm] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[token] operator[SEP] { Keyword[if] operator[SEP] identifier[token] operator[==] Other[null] operator[||] identifier[token] operator[SEP] identifier[length] o...
public int getMaximumNumberOfInstances(final InstanceType instanceType) { final Integer val = this.maximumMap.get(instanceType); if (val != null) { return val.intValue(); } return 0; }
class class_name[name] begin[{] method[getMaximumNumberOfInstances, return_type[type[int]], modifier[public], parameter[instanceType]] begin[{] local_variable[type[Integer], val] if[binary_operation[member[.val], !=, literal[null]]] begin[{] return[call[val.intValue, paramet...
Keyword[public] Keyword[int] identifier[getMaximumNumberOfInstances] operator[SEP] Keyword[final] identifier[InstanceType] identifier[instanceType] operator[SEP] { Keyword[final] identifier[Integer] identifier[val] operator[=] Keyword[this] operator[SEP] identifier[maximumMap] operator[SEP] identifier[get] opera...
private static void longToByteArray(long l, byte[] ba, int offset) { for (int i = 0; i < SIZE_OF_LONG; ++i) { final int shift = i << 3; // i * 8 ba[offset + SIZE_OF_LONG - 1 - i] = (byte) ((l & (0xffL << shift)) >>> shift); } }
class class_name[name] begin[{] method[longToByteArray, return_type[void], modifier[private static], parameter[l, ba, offset]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOper...
Keyword[private] Keyword[static] Keyword[void] identifier[longToByteArray] operator[SEP] Keyword[long] identifier[l] , Keyword[byte] operator[SEP] operator[SEP] identifier[ba] , Keyword[int] identifier[offset] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[S...
public ByteArrayOutputStream toJSON() throws IOException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); mapper.writeValue(out, this); return out; }
class class_name[name] begin[{] method[toJSON, return_type[type[ByteArrayOutputStream]], modifier[public], parameter[]] begin[{] local_variable[type[ByteArrayOutputStream], out] call[mapper.writeValue, parameter[member[.out], THIS[]]] return[member[.out]] end[}] END[}]
Keyword[public] identifier[ByteArrayOutputStream] identifier[toJSON] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[ByteArrayOutputStream] identifier[out] operator[=] Keyword[new] identifier[ByteArrayOutputStream] operator[SEP] operator[SEP] operator[SEP] identifi...
public static int count(String keyword, String srcText) { int count = 0; int leng = srcText.length(); int j = 0; for (int i = 0; i < leng; i++) { if (srcText.charAt(i) == keyword.charAt(j)) { j++; if (j == keyword.length...
class class_name[name] begin[{] method[count, return_type[type[int]], modifier[public static], parameter[keyword, srcText]] begin[{] local_variable[type[int], count] local_variable[type[int], leng] local_variable[type[int], j] ForStatement(body=BlockStatement(label=None, stateme...
Keyword[public] Keyword[static] Keyword[int] identifier[count] operator[SEP] identifier[String] identifier[keyword] , identifier[String] identifier[srcText] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[int] identifier[leng] operator[=] identifier[srcText] operator[SE...
@Override public Value get(Object key) { if (key instanceof String) { String name = (String) key; return get(name); } return fields.get(key); }
class class_name[name] begin[{] method[get, return_type[type[Value]], modifier[public], parameter[key]] begin[{] if[binary_operation[member[.key], instanceof, type[String]]] begin[{] local_variable[type[String], name] return[call[.get, parameter[member[.name]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[Value] identifier[get] operator[SEP] identifier[Object] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[key] Keyword[instanceof] identifier[String] operator[SEP] { identifier[String] identifier[name] operator[=] operato...
public void sort () { int size = size(); if (DEBUG_SORT) { log.info("Sorting dirty item list", "size", size); } // if we've only got one item, we need to do no sorting if (size > 1) { // get items sorted by increasing origin x-coordinate ...
class class_name[name] begin[{] method[sort, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[int], size] if[member[.DEBUG_SORT]] begin[{] call[log.info, parameter[literal["Sorting dirty item list"], literal["size"], member[.size]]] ...
Keyword[public] Keyword[void] identifier[sort] operator[SEP] operator[SEP] { Keyword[int] identifier[size] operator[=] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[DEBUG_SORT] operator[SEP] { identifier[log] operator[SEP] identifier[info] operator[SEP...
public ByteBuffer read(long offset, int length, ByteBuffer block) throws IllegalArgumentException, IllegalStateException, IOException { if (!this.valid) { throw new IllegalStateException("Attempting to read an " + "known-to-be invalid piece!"); } return this._read(offset, leng...
class class_name[name] begin[{] method[read, return_type[type[ByteBuffer]], modifier[public], parameter[offset, length, block]] begin[{] if[THIS[member[None.valid]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], pre...
Keyword[public] identifier[ByteBuffer] identifier[read] operator[SEP] Keyword[long] identifier[offset] , Keyword[int] identifier[length] , identifier[ByteBuffer] identifier[block] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] , identifier[IllegalStateException] , identifier[IOException] { ...
private void updateLastAccessTime(boolean creation) { if (creation) { cacheData.putObject(NODE_MAP_KEY_LAST_ACCESS, Long.valueOf(System.currentTimeMillis())); } else { ActivityManagementConfiguration configuration = factory .getConfiguration(); Long lastUpdate = (Long) cacheData .getObject(N...
class class_name[name] begin[{] method[updateLastAccessTime, return_type[void], modifier[private], parameter[creation]] begin[{] if[member[.creation]] begin[{] call[cacheData.putObject, parameter[member[.NODE_MAP_KEY_LAST_ACCESS], call[Long.valueOf, parameter[call[System...
Keyword[private] Keyword[void] identifier[updateLastAccessTime] operator[SEP] Keyword[boolean] identifier[creation] operator[SEP] { Keyword[if] operator[SEP] identifier[creation] operator[SEP] { identifier[cacheData] operator[SEP] identifier[putObject] operator[SEP] identifier[NODE_MAP_KEY_LAST_ACCESS...
private Object populateEntityFromHBaseData(Object entity, HBaseDataWrapper hbaseData, EntityMetadata m, Object rowKey) { try { Map<String, Object> relations = new HashMap<String, Object>(); if (entity.getClass().isAssignableFrom(EnhanceEntity.class)) {...
class class_name[name] begin[{] method[populateEntityFromHBaseData, return_type[type[Object]], modifier[private], parameter[entity, hbaseData, m, rowKey]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(argume...
Keyword[private] identifier[Object] identifier[populateEntityFromHBaseData] operator[SEP] identifier[Object] identifier[entity] , identifier[HBaseDataWrapper] identifier[hbaseData] , identifier[EntityMetadata] identifier[m] , identifier[Object] identifier[rowKey] operator[SEP] { Keyword[try] { iden...
public void setObservations( List<Point2D_F64> observations, List<DMatrixRMaj> essential ) { this.observations = observations; this.essential = essential; }
class class_name[name] begin[{] method[setObservations, return_type[void], modifier[public], parameter[observations, essential]] begin[{] assign[THIS[member[None.observations]], member[.observations]] assign[THIS[member[None.essential]], member[.essential]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setObservations] operator[SEP] identifier[List] operator[<] identifier[Point2D_F64] operator[>] identifier[observations] , identifier[List] operator[<] identifier[DMatrixRMaj] operator[>] identifier[essential] operator[SEP] { Keyword[this] operator[SEP] identifier[observ...
@Override public PutAppLaunchConfigurationResult putAppLaunchConfiguration(PutAppLaunchConfigurationRequest request) { request = beforeClientExecution(request); return executePutAppLaunchConfiguration(request); }
class class_name[name] begin[{] method[putAppLaunchConfiguration, return_type[type[PutAppLaunchConfigurationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executePutAppLaunchConfig...
annotation[@] identifier[Override] Keyword[public] identifier[PutAppLaunchConfigurationResult] identifier[putAppLaunchConfiguration] operator[SEP] identifier[PutAppLaunchConfigurationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] ident...
Configuration copy(Configuration configuration) { Configuration copy = new Configuration(); copy.restoreState(configuration); return copy; }
class class_name[name] begin[{] method[copy, return_type[type[Configuration]], modifier[default], parameter[configuration]] begin[{] local_variable[type[Configuration], copy] call[copy.restoreState, parameter[member[.configuration]]] return[member[.copy]] end[}] END[}]
identifier[Configuration] identifier[copy] operator[SEP] identifier[Configuration] identifier[configuration] operator[SEP] { identifier[Configuration] identifier[copy] operator[=] Keyword[new] identifier[Configuration] operator[SEP] operator[SEP] operator[SEP] identifier[copy] operator[SEP] identifier[restoreSta...
@Override public String getUserSecurityName(String uniqueUserId) throws EntryNotFoundException, RegistryException { if (uniqueUserId == null) { throw new IllegalArgumentException("uniqueUserId is null"); } if (uniqueUserId.isEmpty()) { throw new IllegalArgumentExcepti...
class class_name[name] begin[{] method[getUserSecurityName, return_type[type[String]], modifier[public], parameter[uniqueUserId]] begin[{] if[binary_operation[member[.uniqueUserId], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getUserSecurityName] operator[SEP] identifier[String] identifier[uniqueUserId] operator[SEP] Keyword[throws] identifier[EntryNotFoundException] , identifier[RegistryException] { Keyword[if] operator[SEP] identifier[uniqueUserId] op...
@Override public void setEnabled(boolean enabled) { if (enabled == false) { closePopup(); } setTextFieldToValidStateIfNeeded(); super.setEnabled(enabled); toggleTimeMenuButton.setEnabled(enabled); timeTextField.setEnabled(enabled); zDrawTextFieldIn...
class class_name[name] begin[{] method[setEnabled, return_type[void], modifier[public], parameter[enabled]] begin[{] if[binary_operation[member[.enabled], ==, literal[false]]] begin[{] call[.closePopup, parameter[]] else begin[{] None end[}] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setEnabled] operator[SEP] Keyword[boolean] identifier[enabled] operator[SEP] { Keyword[if] operator[SEP] identifier[enabled] operator[==] literal[boolean] operator[SEP] { identifier[closePopup] operator[SEP] operator[SEP] oper...
public JandexAssert hasNullabilityInfoOnAllMethods() { // Precondition isNotNull(); final RuleMethodHasNullabilityInfo rule = new RuleMethodHasNullabilityInfo(); final StringBuilder sb = new StringBuilder(); boolean ok = true; final Collection<ClassInfo> classes = actu...
class class_name[name] begin[{] method[hasNullabilityInfoOnAllMethods, return_type[type[JandexAssert]], modifier[public], parameter[]] begin[{] call[.isNotNull, parameter[]] local_variable[type[RuleMethodHasNullabilityInfo], rule] local_variable[type[StringBuilder], sb] ...
Keyword[public] identifier[JandexAssert] identifier[hasNullabilityInfoOnAllMethods] operator[SEP] operator[SEP] { identifier[isNotNull] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[RuleMethodHasNullabilityInfo] identifier[rule] operator[=] Keyword[new] identifier[RuleMethodHasNullabilityIn...
public static String toBase58WithChecksum(byte[] b) { byte[] cs = Hash.hash(b); byte[] extended = new byte[b.length + 4]; System.arraycopy(b, 0, extended, 0, b.length); System.arraycopy(cs, 0, extended, b.length, 4); return toBase58(extended); }
class class_name[name] begin[{] method[toBase58WithChecksum, return_type[type[String]], modifier[public static], parameter[b]] begin[{] local_variable[type[byte], cs] local_variable[type[byte], extended] call[System.arraycopy, parameter[member[.b], literal[0], member[.extended],...
Keyword[public] Keyword[static] identifier[String] identifier[toBase58WithChecksum] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[cs] operator[=] identifier[Hash] operator[SEP] identifier[hash] operator[SEP] identifier[b...
public static boolean iterateOnChildDirs(File parentDir,FileIterator iterator) { if (parentDir==null){ log.warn("Parent dir is null"); return true; } // verify that we can read dir. String message=verifyReadDir(parentDir); if (message !=null){ log.warn(message); return true; } ...
class class_name[name] begin[{] method[iterateOnChildDirs, return_type[type[boolean]], modifier[public static], parameter[parentDir, iterator]] begin[{] if[binary_operation[member[.parentDir], ==, literal[null]]] begin[{] call[log.warn, parameter[literal["Parent dir is n...
Keyword[public] Keyword[static] Keyword[boolean] identifier[iterateOnChildDirs] operator[SEP] identifier[File] identifier[parentDir] , identifier[FileIterator] identifier[iterator] operator[SEP] { Keyword[if] operator[SEP] identifier[parentDir] operator[==] Other[null] operator[SEP] { identifier[log]...
public synchronized void shutdown() { // mark this as no longer running active = false; // close the socket try { if (socketNode != null) { socketNode.close(); socketNode = null; } } catch (Exception e) { getLogger().info("Excpetion closing socket", e); // ig...
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[synchronized public], parameter[]] begin[{] assign[member[.active], literal[false]] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=socketNode, postfix_operators=[], pr...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[shutdown] operator[SEP] operator[SEP] { identifier[active] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] identifier[socketNode] operator[!=] Other[null] operator[SEP] { identifier[socket...
public static <T> T toEntity(final Class<T> targetClass, final JsonDocument jsonDocument) { final T result = toEntity(targetClass, jsonDocument.content()); final String id = jsonDocument.id(); if (N.notNullOrEmpty(id) && result != null) { if (Map.class.isAssignableFrom(targetCl...
class class_name[name] begin[{] method[toEntity, return_type[type[T]], modifier[public static], parameter[targetClass, jsonDocument]] begin[{] local_variable[type[T], result] local_variable[type[String], id] if[binary_operation[call[N.notNullOrEmpty, parameter[member[.id]]], &&,...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[toEntity] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[targetClass] , Keyword[final] identifier[JsonDocument] identifier[jsonDocument] operator[SEP] { Keyword[final] ...
@Override public <T> T createSpyComponent(final T instance) { checkArgument(instance != null, "instance must not be null!"); if (isFinalOrPrimitive(instance.getClass())) { LOG.warn("Skipping creation of a spy : {} as it is final or primitive type.", instance.getClass() ...
class class_name[name] begin[{] method[createSpyComponent, return_type[type[T]], modifier[public], parameter[instance]] begin[{] call[.checkArgument, parameter[binary_operation[member[.instance], !=, literal[null]], literal["instance must not be null!"]]] if[call[.isFinalOrPrimi...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[createSpyComponent] operator[SEP] Keyword[final] identifier[T] identifier[instance] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[instance] operator[!=] Other[null] , literal[St...
public <A, E extends SimpleExpression<A>> ListPath<A, E> getList(String property, Class<A> type, Class<? super E> queryType) { validate(property, List.class); return super.createList(property, type, queryType, PathInits.DIRECT); }
class class_name[name] begin[{] method[getList, return_type[type[ListPath]], modifier[public], parameter[property, type, queryType]] begin[{] call[.validate, parameter[member[.property], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(argum...
Keyword[public] operator[<] identifier[A] , identifier[E] Keyword[extends] identifier[SimpleExpression] operator[<] identifier[A] operator[>] operator[>] identifier[ListPath] operator[<] identifier[A] , identifier[E] operator[>] identifier[getList] operator[SEP] identifier[String] identifier[property] , identifier[C...
protected MatchResult checkConsistent(Variable field, Variable value, BindingSet bindingSet) { // Ensure that the field and value variables are consistent with // previous definitions (if any) bindingSet = addOrCheckDefinition(fieldVarName, field, bindingSet); if (bindingSet == null) { ...
class class_name[name] begin[{] method[checkConsistent, return_type[type[MatchResult]], modifier[protected], parameter[field, value, bindingSet]] begin[{] assign[member[.bindingSet], call[.addOrCheckDefinition, parameter[member[.fieldVarName], member[.field], member[.bindingSet]]]] ...
Keyword[protected] identifier[MatchResult] identifier[checkConsistent] operator[SEP] identifier[Variable] identifier[field] , identifier[Variable] identifier[value] , identifier[BindingSet] identifier[bindingSet] operator[SEP] { identifier[bindingSet] operator[=] identifier[addOrCheckDefinition] operator[SEP] ...
private void updateCoord(MouseEvent event) { oldX = x; oldY = y; x = event.getX(); y = event.getY(); mx = x - oldX; my = y - oldY; }
class class_name[name] begin[{] method[updateCoord, return_type[void], modifier[private], parameter[event]] begin[{] assign[member[.oldX], member[.x]] assign[member[.oldY], member[.y]] assign[member[.x], call[event.getX, parameter[]]] assign[membe...
Keyword[private] Keyword[void] identifier[updateCoord] operator[SEP] identifier[MouseEvent] identifier[event] operator[SEP] { identifier[oldX] operator[=] identifier[x] operator[SEP] identifier[oldY] operator[=] identifier[y] operator[SEP] identifier[x] operator[=] identifier[event] operator[SEP] identifier[getX...
private void assertSortedByDistance(DoubleDBIDList results) { // TODO: sort results instead? double dist = -1.0; boolean sorted = true; for(DoubleDBIDListIter it = results.iter(); it.valid(); it.advance()) { double qr = it.doubleValue(); if(qr < dist) { sorted = false; } ...
class class_name[name] begin[{] method[assertSortedByDistance, return_type[void], modifier[private], parameter[results]] begin[{] local_variable[type[double], dist] local_variable[type[boolean], sorted] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(an...
Keyword[private] Keyword[void] identifier[assertSortedByDistance] operator[SEP] identifier[DoubleDBIDList] identifier[results] operator[SEP] { Keyword[double] identifier[dist] operator[=] operator[-] literal[Float] operator[SEP] Keyword[boolean] identifier[sorted] operator[=] literal[boolean] operator[SEP] Keywo...
private Context getURLContextOrFail(String name) throws NamingException { Context urlContext = null; if (name.contains(":")) { urlContext = getURLContext(name); if (urlContext == null) { fail(name); } } else { fail(name); }...
class class_name[name] begin[{] method[getURLContextOrFail, return_type[type[Context]], modifier[private], parameter[name]] begin[{] local_variable[type[Context], urlContext] if[call[name.contains, parameter[literal[":"]]]] begin[{] assign[member[.urlContext], ca...
Keyword[private] identifier[Context] identifier[getURLContextOrFail] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[NamingException] { identifier[Context] identifier[urlContext] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[name] operator[S...
private OutputStream checkAndMarkRunningBalancer() throws IOException { try { DataOutputStream out = fs.create(BALANCER_ID_PATH); out. writeBytes(InetAddress.getLocalHost().getHostName()); out.flush(); return out; } catch(RemoteException e) { if(AlreadyBeingCreatedException.class.g...
class class_name[name] begin[{] method[checkAndMarkRunningBalancer, return_type[type[OutputStream]], modifier[private], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReferen...
Keyword[private] identifier[OutputStream] identifier[checkAndMarkRunningBalancer] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[DataOutputStream] identifier[out] operator[=] identifier[fs] operator[SEP] identifier[create] operator[SEP] identifier[BALAN...
protected void addValue(String name, ValuePanel valuePanel) { named.put(name, valuePanel); valuePanel.setBounds(0,10+yPos,280,63); valuePanel.addListener(this); add(valuePanel); yPos+=63; }
class class_name[name] begin[{] method[addValue, return_type[void], modifier[protected], parameter[name, valuePanel]] begin[{] call[named.put, parameter[member[.name], member[.valuePanel]]] call[valuePanel.setBounds, parameter[literal[0], binary_operation[literal[10], +, member[...
Keyword[protected] Keyword[void] identifier[addValue] operator[SEP] identifier[String] identifier[name] , identifier[ValuePanel] identifier[valuePanel] operator[SEP] { identifier[named] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[valuePanel] operator[SEP] operator[SEP] identifier[...
public synchronized void addOpenChannels(List<FileIOChannel> toOpen) { checkArgument(!closed); for (FileIOChannel channel : toOpen) { openChannels.add(channel); channels.remove(channel.getChannelID()); } }
class class_name[name] begin[{] method[addOpenChannels, return_type[void], modifier[synchronized public], parameter[toOpen]] begin[{] call[.checkArgument, parameter[member[.closed]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[addOpenChannels] operator[SEP] identifier[List] operator[<] identifier[FileIOChannel] operator[>] identifier[toOpen] operator[SEP] { identifier[checkArgument] operator[SEP] operator[!] identifier[closed] operator[SEP] operator[SEP] Keyword[for] opera...
public void fireStatementErrorOccured(Statement st, SQLException ex) { if (st instanceof PreparedStatement) { StatementEvent event = new StatementEvent(this, (PreparedStatement) st, ex); for (StatementEventListener listener : statementEventListeners) { listener.statementErrorOccurred(event); ...
class class_name[name] begin[{] method[fireStatementErrorOccured, return_type[void], modifier[public], parameter[st, ex]] begin[{] if[binary_operation[member[.st], instanceof, type[PreparedStatement]]] begin[{] local_variable[type[StatementEvent], event] ForStatement(bod...
Keyword[public] Keyword[void] identifier[fireStatementErrorOccured] operator[SEP] identifier[Statement] identifier[st] , identifier[SQLException] identifier[ex] operator[SEP] { Keyword[if] operator[SEP] identifier[st] Keyword[instanceof] identifier[PreparedStatement] operator[SEP] { identifier[Statem...
public boolean isEagerSingleton(Stage stage) { if (this == EAGER_SINGLETON) { return true; } if (stage == Stage.PRODUCTION) { return this == SINGLETON_ANNOTATION || this == SINGLETON_INSTANCE; } return false; }
class class_name[name] begin[{] method[isEagerSingleton, return_type[type[boolean]], modifier[public], parameter[stage]] begin[{] if[binary_operation[THIS[], ==, member[.EAGER_SINGLETON]]] begin[{] return[literal[true]] else begin[{] None end[}] if[bi...
Keyword[public] Keyword[boolean] identifier[isEagerSingleton] operator[SEP] identifier[Stage] identifier[stage] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[==] identifier[EAGER_SINGLETON] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] op...
private Document prepareTBXDocument() throws ParserConfigurationException { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document tbxDocument = builder.newDocument(); Element martif = tbxDocument.createElement("martif"); martif...
class class_name[name] begin[{] method[prepareTBXDocument, return_type[type[Document]], modifier[private], parameter[]] begin[{] local_variable[type[DocumentBuilderFactory], factory] local_variable[type[DocumentBuilder], builder] local_variable[type[Document], tbxDocument] local...
Keyword[private] identifier[Document] identifier[prepareTBXDocument] operator[SEP] operator[SEP] Keyword[throws] identifier[ParserConfigurationException] { identifier[DocumentBuilderFactory] identifier[factory] operator[=] identifier[DocumentBuilderFactory] operator[SEP] identifier[newInstance] operator[SEP] ope...
@Override public CheckedFunction1<Object[], Object> decorate(CheckedFunction1<Object[], Object> invocationCall, Method method, MethodHandler methodHandler, Target<?> target) { final Method fallbackMethod; validateFallback(method); fallbackMethod = getFallb...
class class_name[name] begin[{] method[decorate, return_type[type[CheckedFunction1]], modifier[public], parameter[invocationCall, method, methodHandler, target]] begin[{] local_variable[type[Method], fallbackMethod] call[.validateFallback, parameter[member[.method]]] ass...
annotation[@] identifier[Override] Keyword[public] identifier[CheckedFunction1] operator[<] identifier[Object] operator[SEP] operator[SEP] , identifier[Object] operator[>] identifier[decorate] operator[SEP] identifier[CheckedFunction1] operator[<] identifier[Object] operator[SEP] operator[SEP] , identifier[Object] op...
public String[][] load(String[][] options, DocErrorReporter errorReporter) { LinkedList<String[]> optionsList = new LinkedList<>(Arrays.asList(options)); Iterator<String[]> optionsIter = optionsList.iterator(); while ( optionsIter.hasNext() ) { String[] opt = optionsIter.next(); ...
class class_name[name] begin[{] method[load, return_type[type[String]], modifier[public], parameter[options, errorReporter]] begin[{] local_variable[type[LinkedList], optionsList] local_variable[type[Iterator], optionsIter] while[call[optionsIter.hasNext, parameter[]]] begin[{] ...
Keyword[public] identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[load] operator[SEP] identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[options] , identifier[DocErrorReporter] identifier[errorReporter] operator[SEP] { identifier[LinkedList]...
public CmsUrlNameMappingFilter filterLocale(String locale) { if (locale == null) { throw new IllegalArgumentException(); } CmsUrlNameMappingFilter result = new CmsUrlNameMappingFilter(this); result.m_locale = locale; return result; }
class class_name[name] begin[{] method[filterLocale, return_type[type[CmsUrlNameMappingFilter]], modifier[public], parameter[locale]] begin[{] if[binary_operation[member[.locale], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructo...
Keyword[public] identifier[CmsUrlNameMappingFilter] identifier[filterLocale] operator[SEP] identifier[String] identifier[locale] operator[SEP] { Keyword[if] operator[SEP] identifier[locale] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operat...
@Override public void failExternally(Throwable cause) { LOG.info("Attempting to fail task externally {} ({}).", taskNameWithSubtask, executionId); cancelOrFailAndCancelInvokable(ExecutionState.FAILED, cause); }
class class_name[name] begin[{] method[failExternally, return_type[void], modifier[public], parameter[cause]] begin[{] call[LOG.info, parameter[literal["Attempting to fail task externally {} ({})."], member[.taskNameWithSubtask], member[.executionId]]] call[.cancelOrFailAndCance...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[failExternally] operator[SEP] identifier[Throwable] identifier[cause] operator[SEP] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[taskNameWithSubtask] , identifier[executionId] operator[SEP...
private static JsonNode federatedFlowStep1(LoginInput loginInput) throws SnowflakeSQLException { JsonNode dataNode = null; try { URIBuilder fedUriBuilder = new URIBuilder(loginInput.getServerUrl()); fedUriBuilder.setPath(SF_PATH_AUTHENTICATOR_REQUEST); URI fedUrlUri = fedUriBuilder.bui...
class class_name[name] begin[{] method[federatedFlowStep1, return_type[type[JsonNode]], modifier[private static], parameter[loginInput]] begin[{] local_variable[type[JsonNode], dataNode] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], ...
Keyword[private] Keyword[static] identifier[JsonNode] identifier[federatedFlowStep1] operator[SEP] identifier[LoginInput] identifier[loginInput] operator[SEP] Keyword[throws] identifier[SnowflakeSQLException] { identifier[JsonNode] identifier[dataNode] operator[=] Other[null] operator[SEP] Keyword[try] { ...
@Deprecated public ResponseMessageBuilder headers(Map<String, ModelReference> headers) { this.headers.putAll(nullToEmptyMap(headers).entrySet().stream() .map(toHeaderEntry()) .collect(toMap(Map.Entry::getKey, Map.Entry::getValue))); return this; }
class class_name[name] begin[{] method[headers, return_type[type[ResponseMessageBuilder]], modifier[public], parameter[headers]] begin[{] THIS[member[None.headers]call[None.putAll, parameter[call[.nullToEmptyMap, parameter[member[.headers]]]]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] identifier[ResponseMessageBuilder] identifier[headers] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[ModelReference] operator[>] identifier[headers] operator[SEP] { Keyword[this] operator[SEP] identifier[headers] operator[SEP] iden...
protected static void validateNumerical(String opName, SDVariable v1, SDVariable v2) { if (v1.dataType() == DataType.BOOL || v1.dataType() == DataType.UTF8 || v2.dataType() == DataType.BOOL || v2.dataType() == DataType.UTF8) throw new IllegalStateException("Cannot perform operation \"" + opName + "\...
class class_name[name] begin[{] method[validateNumerical, return_type[void], modifier[static protected], parameter[opName, v1, v2]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[call[v1.dataType, parameter[]], ==, member[DataType.BOOL]], ||, binary_operation[ca...
Keyword[protected] Keyword[static] Keyword[void] identifier[validateNumerical] operator[SEP] identifier[String] identifier[opName] , identifier[SDVariable] identifier[v1] , identifier[SDVariable] identifier[v2] operator[SEP] { Keyword[if] operator[SEP] identifier[v1] operator[SEP] identifier[dataType] operator...
public <T extends Post> T newPost(String blogName, Class<T> klass) throws IllegalAccessException, InstantiationException { T post = klass.newInstance(); post.setClient(this); post.setBlogName(blogName); return post; }
class class_name[name] begin[{] method[newPost, return_type[type[T]], modifier[public], parameter[blogName, klass]] begin[{] local_variable[type[T], post] call[post.setClient, parameter[THIS[]]] call[post.setBlogName, parameter[member[.blogName]]] return[member[....
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Post] operator[>] identifier[T] identifier[newPost] operator[SEP] identifier[String] identifier[blogName] , identifier[Class] operator[<] identifier[T] operator[>] identifier[klass] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , ...
public void triggerSessionCreated(JingleSession jingleSession) { jingleSessions.add(jingleSession); jingleSession.addListener(this); for (CreatedJingleSessionListener createdJingleSessionListener : creationListeners) { try { createdJingleSessionListener.sessionCreated...
class class_name[name] begin[{] method[triggerSessionCreated, return_type[void], modifier[public], parameter[jingleSession]] begin[{] call[jingleSessions.add, parameter[member[.jingleSession]]] call[jingleSession.addListener, parameter[THIS[]]] ForStatement(body=BlockSta...
Keyword[public] Keyword[void] identifier[triggerSessionCreated] operator[SEP] identifier[JingleSession] identifier[jingleSession] operator[SEP] { identifier[jingleSessions] operator[SEP] identifier[add] operator[SEP] identifier[jingleSession] operator[SEP] operator[SEP] identifier[jingleSession] operator[SEP] id...
public Observable<AgentRegistrationInner> regenerateKeyAsync(String resourceGroupName, String automationAccountName, AgentRegistrationRegenerateKeyParameter parameters) { return regenerateKeyWithServiceResponseAsync(resourceGroupName, automationAccountName, parameters).map(new Func1<ServiceResponse<AgentRegistr...
class class_name[name] begin[{] method[regenerateKeyAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, automationAccountName, parameters]] begin[{] return[call[.regenerateKeyWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.automationAccountName],...
Keyword[public] identifier[Observable] operator[<] identifier[AgentRegistrationInner] operator[>] identifier[regenerateKeyAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[automationAccountName] , identifier[AgentRegistrationRegenerateKeyParameter] identifier[parame...
@SuppressWarnings("unchecked") public <T extends WebLocatorAbstractBuilder> T setTemplate(final String key, final String value) { pathBuilder.setTemplate(key, value); return (T) this; }
class class_name[name] begin[{] method[setTemplate, return_type[type[T]], modifier[public], parameter[key, value]] begin[{] call[pathBuilder.setTemplate, parameter[member[.key], member[.value]]] return[Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selec...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[WebLocatorAbstractBuilder] operator[>] identifier[T] identifier[setTemplate] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] iden...
@XmlElementDecl(namespace = "", name = "objektnr_intern") public JAXBElement<String> createObjektnrIntern(String value) { return new JAXBElement<String>(_ObjektnrIntern_QNAME, String.class, null, value); }
class class_name[name] begin[{] method[createObjektnrIntern, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_ObjektnrIntern_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(pos...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[String] operator[>] identifier[createObjektnrIntern] operator[SEP] identifier[String] iden...
protected int numFreeEntries() { int res = 0; for (int i = 0; i < entries.length; i++) { Entry entry = entries[i]; if (entry.isEmpty()) { res++; } } assert (NUMBER_ENTRIES == entries.length); return res; }
class class_name[name] begin[{] method[numFreeEntries, return_type[type[int]], modifier[protected], parameter[]] begin[{] local_variable[type[int], res] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[...
Keyword[protected] Keyword[int] identifier[numFreeEntries] operator[SEP] operator[SEP] { Keyword[int] identifier[res] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[entries] operator[SEP] identifier[...
public Point getPoint(String id) { for (Point point : points) if (id.equals(point.getId())) return point; return null; }
class class_name[name] begin[{] method[getPoint, return_type[type[Point]], modifier[public], parameter[id]] begin[{] ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefix_operators=[], qualifier=point, selectors=[],...
Keyword[public] identifier[Point] identifier[getPoint] operator[SEP] identifier[String] identifier[id] operator[SEP] { Keyword[for] operator[SEP] identifier[Point] identifier[point] operator[:] identifier[points] operator[SEP] Keyword[if] operator[SEP] identifier[id] operator[SEP] identifier[equals] operator[SE...
public void setTriggersNotFound(java.util.Collection<String> triggersNotFound) { if (triggersNotFound == null) { this.triggersNotFound = null; return; } this.triggersNotFound = new java.util.ArrayList<String>(triggersNotFound); }
class class_name[name] begin[{] method[setTriggersNotFound, return_type[void], modifier[public], parameter[triggersNotFound]] begin[{] if[binary_operation[member[.triggersNotFound], ==, literal[null]]] begin[{] assign[THIS[member[None.triggersNotFound]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setTriggersNotFound] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[triggersNotFound] operator[SEP] { Keyword[if] operator[SEP] identifier[triggersNotFound] operator[...
private TextField buildField(String label, CmsAccountInfo info) { TextField field = (TextField)m_binder.buildAndBind(label, info); field.setConverter(new CmsNullToEmptyConverter()); field.setWidth("100%"); boolean editable = (m_editLevel == EditLevel.all) || (info.isEditable...
class class_name[name] begin[{] method[buildField, return_type[type[TextField]], modifier[private], parameter[label, info]] begin[{] local_variable[type[TextField], field] call[field.setConverter, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_o...
Keyword[private] identifier[TextField] identifier[buildField] operator[SEP] identifier[String] identifier[label] , identifier[CmsAccountInfo] identifier[info] operator[SEP] { identifier[TextField] identifier[field] operator[=] operator[SEP] identifier[TextField] operator[SEP] identifier[m_binder] operator[SEP] ...
private void calcChannelsStats(List<TaskRec> tasks) { for (ChannelWorkContext wc : channelContextMap.values()) { wc.lastGotCount = 0; } for (TaskRec taskRec : tasks) { ChannelWorkContext wc = channelContextMap.get(taskRec.channel); if (wc == null) { wc = new ChannelWorkContext(taskRec.channel); c...
class class_name[name] begin[{] method[calcChannelsStats, return_type[void], modifier[private], parameter[tasks]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=lastGotCount, postfix_operators=[], prefix_ope...
Keyword[private] Keyword[void] identifier[calcChannelsStats] operator[SEP] identifier[List] operator[<] identifier[TaskRec] operator[>] identifier[tasks] operator[SEP] { Keyword[for] operator[SEP] identifier[ChannelWorkContext] identifier[wc] operator[:] identifier[channelContextMap] operator[SEP] identifier[va...
protected URI createRedirectUri(String servletpath, UserGroupInformation ugi, DatanodeID host, HttpServletRequest request, NameNode nn) throws URISyntaxException { final String hostname = host instanceof DatanodeInfo? ((DatanodeInfo)host).getHostName(): host.getHost(); final String scheme = reques...
class class_name[name] begin[{] method[createRedirectUri, return_type[type[URI]], modifier[protected], parameter[servletpath, ugi, host, request, nn]] begin[{] local_variable[type[String], hostname] local_variable[type[String], scheme] local_variable[type[int], port] local_varia...
Keyword[protected] identifier[URI] identifier[createRedirectUri] operator[SEP] identifier[String] identifier[servletpath] , identifier[UserGroupInformation] identifier[ugi] , identifier[DatanodeID] identifier[host] , identifier[HttpServletRequest] identifier[request] , identifier[NameNode] identifier[nn] operator[S...
public static synchronized void setOpenHelperClass(Class<? extends OrmLiteSqliteOpenHelper> openHelperClass) { if (openHelperClass == null) { helperClass = null; } else { innerSetHelperClass(openHelperClass); } }
class class_name[name] begin[{] method[setOpenHelperClass, return_type[void], modifier[synchronized public static], parameter[openHelperClass]] begin[{] if[binary_operation[member[.openHelperClass], ==, literal[null]]] begin[{] assign[member[.helperClass], literal[null]]...
Keyword[public] Keyword[static] Keyword[synchronized] Keyword[void] identifier[setOpenHelperClass] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[OrmLiteSqliteOpenHelper] operator[>] identifier[openHelperClass] operator[SEP] { Keyword[if] operator[SEP] identifier[openHelperCl...
public final CClassLoader removeLoader(final String loaderToRemove) { if (loaderToRemove.trim().length() == 0) { throw new NullPointerException(); } return (CClassLoader) this.childrenMap.remove(loaderToRemove); }
class class_name[name] begin[{] method[removeLoader, return_type[type[CClassLoader]], modifier[final public], parameter[loaderToRemove]] begin[{] if[binary_operation[call[loaderToRemove.trim, parameter[]], ==, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[]...
Keyword[public] Keyword[final] identifier[CClassLoader] identifier[removeLoader] operator[SEP] Keyword[final] identifier[String] identifier[loaderToRemove] operator[SEP] { Keyword[if] operator[SEP] identifier[loaderToRemove] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] identifier[leng...
@Override public ReplicationGroup modifyReplicationGroup(ModifyReplicationGroupRequest request) { request = beforeClientExecution(request); return executeModifyReplicationGroup(request); }
class class_name[name] begin[{] method[modifyReplicationGroup, return_type[type[ReplicationGroup]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeModifyReplicationGroup, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[ReplicationGroup] identifier[modifyReplicationGroup] operator[SEP] identifier[ModifyReplicationGroupRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public static BoxUser.Info createAppUser(BoxAPIConnection api, String name) { return createAppUser(api, name, new CreateUserParams()); }
class class_name[name] begin[{] method[createAppUser, return_type[type[BoxUser]], modifier[public static], parameter[api, name]] begin[{] return[call[.createAppUser, parameter[member[.api], member[.name], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefi...
Keyword[public] Keyword[static] identifier[BoxUser] operator[SEP] identifier[Info] identifier[createAppUser] operator[SEP] identifier[BoxAPIConnection] identifier[api] , identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[createAppUser] operator[SEP] identifier[api] , identifier[name...
public Iterator<URL> getResources(String name) { ArrayList<URL> collectedResources = new ArrayList<URL>(); try { synchronized (bundles) { Collection<Bundle> values = bundles.values(); for (Bundle bundle : values) { final Enumeration<URL> en...
class class_name[name] begin[{] method[getResources, return_type[type[Iterator]], modifier[public], parameter[name]] begin[{] local_variable[type[ArrayList], collectedResources] TryStatement(block=[SynchronizedStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar...
Keyword[public] identifier[Iterator] operator[<] identifier[URL] operator[>] identifier[getResources] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[ArrayList] operator[<] identifier[URL] operator[>] identifier[collectedResources] operator[=] Keyword[new] identifier[ArrayList] opera...
public void applyPattern(String primaryPattern, String[] alternativePatterns, char decimalSeparator, char groupingSeparator) { m_symbols.setDecimalSeparator(decimalSeparator); m_symbols.setGroupingSeparator(groupingSeparator); setDecimalFormatSymbols(m_symbols); applyPattern(primaryPattern);...
class class_name[name] begin[{] method[applyPattern, return_type[void], modifier[public], parameter[primaryPattern, alternativePatterns, decimalSeparator, groupingSeparator]] begin[{] call[m_symbols.setDecimalSeparator, parameter[member[.decimalSeparator]]] call[m_symbols.setGro...
Keyword[public] Keyword[void] identifier[applyPattern] operator[SEP] identifier[String] identifier[primaryPattern] , identifier[String] operator[SEP] operator[SEP] identifier[alternativePatterns] , Keyword[char] identifier[decimalSeparator] , Keyword[char] identifier[groupingSeparator] operator[SEP] { identif...
private void writeObject(ObjectOutputStream stream) throws IOException { /* * Since this is a simple class all we have to do is write each member to the stream. * the order has to remain identical to readObject, so I've just gone alphabetically. * * If we change the serialve...
class class_name[name] begin[{] method[writeObject, return_type[void], modifier[private], parameter[stream]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[THIS[], member[.tc], literal["writeObject"], member[.stream]]] else be...
Keyword[private] Keyword[void] identifier[writeObject] operator[SEP] identifier[ObjectOutputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] { i...
@Override public Set<java.util.Map.Entry<Long, V>> entrySet() { return this.timeSeriesMap.entrySet(); }
class class_name[name] begin[{] method[entrySet, return_type[type[Set]], modifier[public], parameter[]] begin[{] return[THIS[member[None.timeSeriesMap]call[None.entrySet, parameter[]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Long] , identifier[V] operator[>] operator[>] identifier[entrySet] operator[SEP] operator[SEP] { Key...
private ICondition makeConditionWithSymbolOperand(String key, String operand, String valueString, boolean ipAddress) throws FilterException { if (operand.equals("==")) { return new EqualCondition(key, makeValue(valueString, ipAddress), operand); ...
class class_name[name] begin[{] method[makeConditionWithSymbolOperand, return_type[type[ICondition]], modifier[private], parameter[key, operand, valueString, ipAddress]] begin[{] if[call[operand.equals, parameter[literal["=="]]]] begin[{] return[ClassCreator(arguments=[MemberReferen...
Keyword[private] identifier[ICondition] identifier[makeConditionWithSymbolOperand] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[operand] , identifier[String] identifier[valueString] , Keyword[boolean] identifier[ipAddress] operator[SEP] Keyword[throws] identifier[FilterException] ...
public static <S, I, O> ADTNode<S, I, O> buildADSFromObservation(final Word<I> input, final Word<O> output, final S finalState) { if (input.size() != output.size()) { ...
class class_name[name] begin[{] method[buildADSFromObservation, return_type[type[ADTNode]], modifier[public static], parameter[input, output, finalState]] begin[{] if[binary_operation[call[input.size, parameter[]], !=, call[output.size, parameter[]]]] begin[{] ThrowStatement(express...
Keyword[public] Keyword[static] operator[<] identifier[S] , identifier[I] , identifier[O] operator[>] identifier[ADTNode] operator[<] identifier[S] , identifier[I] , identifier[O] operator[>] identifier[buildADSFromObservation] operator[SEP] Keyword[final] identifier[Word] operator[<] identifier[I] operator[>] iden...
public Double getAvgDelayNumber() { Double avgDelayNumber = 0.0; if (items.size() != 0) { for (DelayStat item : items) { avgDelayNumber += item.getDelayNumber(); } avgDelayNumber = avgDelayNumber / items.size(); } return avgDelayNumber;...
class class_name[name] begin[{] method[getAvgDelayNumber, return_type[type[Double]], modifier[public], parameter[]] begin[{] local_variable[type[Double], avgDelayNumber] if[binary_operation[call[items.size, parameter[]], !=, literal[0]]] begin[{] ForStatement(body=BlockState...
Keyword[public] identifier[Double] identifier[getAvgDelayNumber] operator[SEP] operator[SEP] { identifier[Double] identifier[avgDelayNumber] operator[=] literal[Float] operator[SEP] Keyword[if] operator[SEP] identifier[items] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] Other[0] operat...
public T attr(Attribute attribute) { Iterator<Attribute> iterator = attributes.iterator(); String name = attribute.getName(); if (name != null) { // name == null is allowed, but those Attributes are not rendered. So we add them anyway. while (iterator.hasNext()) { ...
class class_name[name] begin[{] method[attr, return_type[type[T]], modifier[public], parameter[attribute]] begin[{] local_variable[type[Iterator], iterator] local_variable[type[String], name] if[binary_operation[member[.name], !=, literal[null]]] begin[{] ...
Keyword[public] identifier[T] identifier[attr] operator[SEP] identifier[Attribute] identifier[attribute] operator[SEP] { identifier[Iterator] operator[<] identifier[Attribute] operator[>] identifier[iterator] operator[=] identifier[attributes] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operat...
public CronDefinition instance() { final Set<CronConstraint> validations = new HashSet<>(); validations.addAll(cronConstraints); final List<FieldDefinition> values = new ArrayList<>(fields.values()); values.sort(FieldDefinition.createFieldDefinitionComparator()); return new CronD...
class class_name[name] begin[{] method[instance, return_type[type[CronDefinition]], modifier[public], parameter[]] begin[{] local_variable[type[Set], validations] call[validations.addAll, parameter[member[.cronConstraints]]] local_variable[type[List], values] cal...
Keyword[public] identifier[CronDefinition] identifier[instance] operator[SEP] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[CronConstraint] operator[>] identifier[validations] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] id...
public String getString(int id) { Activity activity = activityUtils.getCurrentActivity(false); if(activity == null){ return ""; } return activity.getString(id); }
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[public], parameter[id]] begin[{] local_variable[type[Activity], activity] if[binary_operation[member[.activity], ==, literal[null]]] begin[{] return[literal[""]] else begin[{] None ...
Keyword[public] identifier[String] identifier[getString] operator[SEP] Keyword[int] identifier[id] operator[SEP] { identifier[Activity] identifier[activity] operator[=] identifier[activityUtils] operator[SEP] identifier[getCurrentActivity] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[if] op...
protected void onClickSave() { Timer timer = new Timer() { @Override public void run() { m_aliasList.clearValidationErrors(); m_aliasValidationStatus = VALIDATION_RUNNING; m_propertyValidationStatus = VALIDATION_RUNNING; ...
class class_name[name] begin[{] method[onClickSave, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[Timer], timer] call[timer.schedule, parameter[literal[20]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[onClickSave] operator[SEP] operator[SEP] { identifier[Timer] identifier[timer] operator[=] Keyword[new] identifier[Timer] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SE...
public void marshall(BurninDestinationSettings burninDestinationSettings, ProtocolMarshaller protocolMarshaller) { if (burninDestinationSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(burn...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[burninDestinationSettings, protocolMarshaller]] begin[{] if[binary_operation[member[.burninDestinationSettings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BurninDestinationSettings] identifier[burninDestinationSettings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[burninDestinationSettings] operator[==] Other[null] op...
private SOAPElement constructSoapHeader( Map<String, Object> headerData, AdManagerServiceDescriptor adManagerServiceDescriptor) { String requestHeaderNamespace = adManagerApiConfiguration.getNamespacePrefix() + "/" + adManagerServiceDescriptor.getVersion(); try { SOA...
class class_name[name] begin[{] method[constructSoapHeader, return_type[type[SOAPElement]], modifier[private], parameter[headerData, adManagerServiceDescriptor]] begin[{] local_variable[type[String], requestHeaderNamespace] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarator...
Keyword[private] identifier[SOAPElement] identifier[constructSoapHeader] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[headerData] , identifier[AdManagerServiceDescriptor] identifier[adManagerServiceDescriptor] operator[SEP] { identifier[String] identi...
public void registerType(Class<?> type) { if (type == null) { throw new NullPointerException("Cannot register null type class."); } TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type); if (typeInfo instanceof PojoTypeInfo) { config.registerPojoType(type); } else { config.registerKryoTy...
class class_name[name] begin[{] method[registerType, return_type[void], modifier[public], parameter[type]] begin[{] if[binary_operation[member[.type], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qu...
Keyword[public] Keyword[void] identifier[registerType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] o...
public static String fixEncodedTagsInNameAfterPrefix(final String name) { if (name == null) return name; int tagStart = name.indexOf("TAG("); if (tagStart == -1) return name; // no tags in this name if (tagStart == 0) return name; // tag string is a...
class class_name[name] begin[{] method[fixEncodedTagsInNameAfterPrefix, return_type[type[String]], modifier[public static], parameter[name]] begin[{] if[binary_operation[member[.name], ==, literal[null]]] begin[{] return[member[.name]] else begin[{] None end[}] local_var...
Keyword[public] Keyword[static] identifier[String] identifier[fixEncodedTagsInNameAfterPrefix] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] Keyword[return] identifier[name] operator[SEP] Keyword[...
protected void removeModule(String moduleName, I_CmsReport report) throws CmsException { if (OpenCms.getModuleManager().getModule(moduleName) != null) { OpenCms.getModuleManager().deleteModule( m_cms, moduleName, true, m_preserveLibMod...
class class_name[name] begin[{] method[removeModule, return_type[void], modifier[protected], parameter[moduleName, report]] begin[{] if[binary_operation[call[OpenCms.getModuleManager, parameter[]], !=, literal[null]]] begin[{] call[OpenCms.getModuleManager, parameter[]] ...
Keyword[protected] Keyword[void] identifier[removeModule] operator[SEP] identifier[String] identifier[moduleName] , identifier[I_CmsReport] identifier[report] operator[SEP] Keyword[throws] identifier[CmsException] { Keyword[if] operator[SEP] identifier[OpenCms] operator[SEP] identifier[getModuleManager] operato...
public Deferred<Boolean> syncToStorage(final TSDB tsdb, final boolean overwrite) { if (uid == null || uid.isEmpty()) { throw new IllegalArgumentException("Missing UID"); } if (type == null) { throw new IllegalArgumentException("Missing type"); } boolean has_changes = false; f...
class class_name[name] begin[{] method[syncToStorage, return_type[type[Deferred]], modifier[public], parameter[tsdb, overwrite]] begin[{] if[binary_operation[binary_operation[member[.uid], ==, literal[null]], ||, call[uid.isEmpty, parameter[]]]] begin[{] ThrowStatement(expression=Cl...
Keyword[public] identifier[Deferred] operator[<] identifier[Boolean] operator[>] identifier[syncToStorage] operator[SEP] Keyword[final] identifier[TSDB] identifier[tsdb] , Keyword[final] Keyword[boolean] identifier[overwrite] operator[SEP] { Keyword[if] operator[SEP] identifier[uid] operator[==] Other[null] ope...
public static Modifiers getInstance(int bitmask) { switch (bitmask) { case 0: return NONE; case Modifier.PUBLIC: return PUBLIC; case Modifier.PUBLIC | Modifier.ABSTRACT: return PUBLIC_ABSTRACT; case Modifier.PUBLIC | Modifier.STATIC: ...
class class_name[name] begin[{] method[getInstance, return_type[type[Modifiers]], modifier[public static], parameter[bitmask]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[ReturnStatemen...
Keyword[public] Keyword[static] identifier[Modifiers] identifier[getInstance] operator[SEP] Keyword[int] identifier[bitmask] operator[SEP] { Keyword[switch] operator[SEP] identifier[bitmask] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[return] identifier[NONE] operator[SEP] Keyword[case...
@Override public final <R2> Either<L, R2> pure(R2 r2) { return right(r2); }
class class_name[name] begin[{] method[pure, return_type[type[Either]], modifier[final public], parameter[r2]] begin[{] return[call[.right, parameter[member[.r2]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[final] operator[<] identifier[R2] operator[>] identifier[Either] operator[<] identifier[L] , identifier[R2] operator[>] identifier[pure] operator[SEP] identifier[R2] identifier[r2] operator[SEP] { Keyword[return] identifier[right] operator[SEP] identifi...
public Set<T> resolve(Matcher<T> matcher) throws IOException { Set<T> classes = new HashSet<T>(); for (URL url : paths) { if (url.toString().endsWith(".jar")) { // System.out.println(url); JarFile jarFile = new JarFile(URLDecoder.decode(url.getPath(), "UTF-8")); Manifest manifest = jarFile.getManif...
class class_name[name] begin[{] method[resolve, return_type[type[Set]], modifier[public], parameter[matcher]] begin[{] local_variable[type[Set], classes] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=toString, postfix_operat...
Keyword[public] identifier[Set] operator[<] identifier[T] operator[>] identifier[resolve] operator[SEP] identifier[Matcher] operator[<] identifier[T] operator[>] identifier[matcher] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Set] operator[<] identifier[T] operator[>] identifier[classes] o...
public void set(Object obj, Object val, Object... args) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, BeanPropertyException, NoSuchMethodException { boolean noValue[] = new boolean[1]; val = convert(val, getTypeCode(), noValue); if (noValue[0]) retu...
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[obj, val, args]] begin[{] local_variable[type[boolean], noValue] assign[member[.val], call[.convert, parameter[member[.val], call[.getTypeCode, parameter[]], member[.noValue]]]] if...
Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[Object] identifier[obj] , identifier[Object] identifier[val] , identifier[Object] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[SQLException] , identifier[IllegalArgumentException] , identifier[IllegalAccessException] ,...
protected void addActionKeyBinding(KeyStroke key, String actionKey, Action action) { getInputMap().put(key, actionKey); getActionMap().put(actionKey, action); }
class class_name[name] begin[{] method[addActionKeyBinding, return_type[void], modifier[protected], parameter[key, actionKey, action]] begin[{] call[.getInputMap, parameter[]] call[.getActionMap, parameter[]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[addActionKeyBinding] operator[SEP] identifier[KeyStroke] identifier[key] , identifier[String] identifier[actionKey] , identifier[Action] identifier[action] operator[SEP] { identifier[getInputMap] operator[SEP] operator[SEP] operator[SEP] identifier[put] operator[SEP]...
boolean containsPoint(@Nonnull final Point p) { if (!p.isDefined()) { return false; } final int latMicroDeg = p.getLatMicroDeg(); if ((latMicroDegMin > latMicroDeg) || (latMicroDeg >= latMicroDegMax)) { return false; } final int lonMicroDeg = p.get...
class class_name[name] begin[{] method[containsPoint, return_type[type[boolean]], modifier[default], parameter[p]] begin[{] if[call[p.isDefined, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[int], latMicroDeg] ...
Keyword[boolean] identifier[containsPoint] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Point] identifier[p] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[p] operator[SEP] identifier[isDefined] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] ...
@Nonnull public static ApiError parseError(@Nullable String errorBody, int statusCode, @Nullable String message) { if (errorBody == null) { return new ApiError(null, statusCode, message); } Moshi moshi = new Moshi.Builder().build(); JsonAdapter<CompatibilityApiError> old...
class class_name[name] begin[{] method[parseError, return_type[type[ApiError]], modifier[public static], parameter[errorBody, statusCode, message]] begin[{] if[binary_operation[member[.errorBody], ==, literal[null]]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[ApiError] identifier[parseError] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[errorBody] , Keyword[int] identifier[statusCode] , annotation[@] identifier[Nullable] identifier[String] identifier[message] oper...
public Set<String> getIndices(final IndexSet indexSet, final String... statusFilter) { final List<String> status = Arrays.asList(statusFilter); final Cat catRequest = new Cat.IndicesBuilder() .addIndex(indexSet.getIndexWildcard()) .setParameter("h", "index,status") ...
class class_name[name] begin[{] method[getIndices, return_type[type[Set]], modifier[public], parameter[indexSet, statusFilter]] begin[{] local_variable[type[List], status] local_variable[type[Cat], catRequest] local_variable[type[CatResult], result] return[call[StreamSupport.str...
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getIndices] operator[SEP] Keyword[final] identifier[IndexSet] identifier[indexSet] , Keyword[final] identifier[String] operator[...] identifier[statusFilter] operator[SEP] { Keyword[final] identifier[List] operator[<] identifi...
public static String format(ITemplate template, Date date, String pattern, Locale locale, String timezone) { if (null == date) throw new NullPointerException(); RythmEngine engine = null == template ? RythmEngine.get() : template.__engine(); DateFormat df = (null == engine ? IDateFormatFactory....
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[template, date, pattern, locale, timezone]] begin[{] if[binary_operation[literal[null], ==, member[.date]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, const...
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] identifier[ITemplate] identifier[template] , identifier[Date] identifier[date] , identifier[String] identifier[pattern] , identifier[Locale] identifier[locale] , identifier[String] identifier[timezone] operator[SEP] { Keyword...
private void startGeneralJobConfigFileMonitor() throws Exception { SchedulerUtils.addPathAlterationObserver(this.pathAlterationDetector, this.listener, jobConfigFileDirPath); this.pathAlterationDetector.start(); this.closer.register(new Closeable() { @Override public void close() throws IO...
class class_name[name] begin[{] method[startGeneralJobConfigFileMonitor, return_type[void], modifier[private], parameter[]] begin[{] call[SchedulerUtils.addPathAlterationObserver, parameter[THIS[member[None.pathAlterationDetector]], THIS[member[None.listener]], member[.jobConfigFileDirPath]]] ...
Keyword[private] Keyword[void] identifier[startGeneralJobConfigFileMonitor] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[SchedulerUtils] operator[SEP] identifier[addPathAlterationObserver] operator[SEP] Keyword[this] operator[SEP] identifier[pathAlterationDetector] , Keyword[th...