code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public void registerBlueprint(Object blueprint) throws RegisterBlueprintException { SpringBlueprint springBlueprint = blueprint.getClass().getAnnotation(SpringBlueprint.class); if ( springBlueprint != null && springBlueprint.autowire() ) { logger.debug( "Autowiring blueprint {}...
class class_name[name] begin[{] method[registerBlueprint, return_type[void], modifier[public], parameter[blueprint]] begin[{] local_variable[type[SpringBlueprint], springBlueprint] if[binary_operation[binary_operation[member[.springBlueprint], !=, literal[null]], &&, call[springBlueprin...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerBlueprint] operator[SEP] identifier[Object] identifier[blueprint] operator[SEP] Keyword[throws] identifier[RegisterBlueprintException] { identifier[SpringBlueprint] identifier[springBlueprint] operator[=] identifier[blueprint] op...
public void setPersistenceClass(String persistenceClass) throws Exception { this.persistenceClass = persistenceClass; if (persistenceClass != null) { store = PersistenceUtils.getPersistenceStore(this, persistenceClass); } }
class class_name[name] begin[{] method[setPersistenceClass, return_type[void], modifier[public], parameter[persistenceClass]] begin[{] assign[THIS[member[None.persistenceClass]], member[.persistenceClass]] if[binary_operation[member[.persistenceClass], !=, literal[null]]] begin[...
Keyword[public] Keyword[void] identifier[setPersistenceClass] operator[SEP] identifier[String] identifier[persistenceClass] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[this] operator[SEP] identifier[persistenceClass] operator[=] identifier[persistenceClass] operator[SEP] Keyword[if] operator[SE...
public static boolean isSetterMethod(final Method method) { final String methodName = method.getName(); if(!methodName.startsWith("set")) { return false; } else if(methodName.length() <= 3) { return false; } if(meth...
class class_name[name] begin[{] method[isSetterMethod, return_type[type[boolean]], modifier[public static], parameter[method]] begin[{] local_variable[type[String], methodName] if[call[methodName.startsWith, parameter[literal["set"]]]] begin[{] return[literal[false]] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isSetterMethod] operator[SEP] Keyword[final] identifier[Method] identifier[method] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] identifier[method] operator[SEP] identifier[getName] operator[SEP] operator[SEP] oper...
@Pure public Direction1D getRoadSegmentDirectionAt(int index) { if (index >= 0) { int b = 0; for (final RoadPath p : this.paths) { final int e = b + p.size(); if (index < e) { return p.getSegmentDirectionAt(index - b); } b = e; } } throw new IndexOutOfBoundsException(); }
class class_name[name] begin[{] method[getRoadSegmentDirectionAt, return_type[type[Direction1D]], modifier[public], parameter[index]] begin[{] if[binary_operation[member[.index], >=, literal[0]]] begin[{] local_variable[type[int], b] ForStatement(body=BlockStatement(labe...
annotation[@] identifier[Pure] Keyword[public] identifier[Direction1D] identifier[getRoadSegmentDirectionAt] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[>=] Other[0] operator[SEP] { Keyword[int] identifier[b] operator[=] Other[0] op...
private boolean isJoda(Class<?> clazz) { for (Constructor<?> each : clazz.getConstructors()) { Class<?>[] parameterTypes = each.getParameterTypes(); if (parameterTypes.length > 0) { if (parameterTypes[0].getName().startsWith("org.joda.time.")) { return...
class class_name[name] begin[{] method[isJoda, return_type[type[boolean]], modifier[private], parameter[clazz]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argument...
Keyword[private] Keyword[boolean] identifier[isJoda] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { Keyword[for] operator[SEP] identifier[Constructor] operator[<] operator[?] operator[>] identifier[each] operator[:] identifier[clazz] operator[SEP] identifie...
public static void main(String[] args) { if (args.length == 0) { System.out.println( "Usage: BGZFBlockIndex [BGZF block indices...]\n\n"+ "Writes a few statistics about each BGZF block index."); return; } for (String arg : args) { final File f = new File(arg); if (f.isFile() && f.canRead()) ...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] if[binary_operation[member[args.length], ==, literal[0]]] begin[{] call[System.out.println, parameter[binary_operation[literal["Usage: BGZFBlockIndex [BGZF ...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[if] operator[SEP] identifier[args] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { identifier[System] operator[SEP...
@Override public SQLProperty findPropertyByName(String name) { name = name.toLowerCase(); for (SQLProperty item : properties) { if (item.getName().toLowerCase().equals(name)) { return item; } } return null; }
class class_name[name] begin[{] method[findPropertyByName, return_type[type[SQLProperty]], modifier[public], parameter[name]] begin[{] assign[member[.name], call[name.toLowerCase, parameter[]]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocati...
annotation[@] identifier[Override] Keyword[public] identifier[SQLProperty] identifier[findPropertyByName] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[name] operator[=] identifier[name] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] Keyword[for] op...
private long[] computeContentSummary(long[] summary, Set<Long> visitedCtx) { if (children != null) { for (INode child : children) { if (child.isDirectory()) { // Process the directory with the visited hard link context ((INodeDirectory)child).computeContentSummary(summary, visi...
class class_name[name] begin[{] method[computeContentSummary, return_type[type[long]], modifier[private], parameter[summary, visitedCtx]] begin[{] if[binary_operation[member[.children], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement...
Keyword[private] Keyword[long] operator[SEP] operator[SEP] identifier[computeContentSummary] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[summary] , identifier[Set] operator[<] identifier[Long] operator[>] identifier[visitedCtx] operator[SEP] { Keyword[if] operator[SEP] identifier[children...
public final void mUNIFY() throws RecognitionException { try { int _type = UNIFY; int _channel = DEFAULT_TOKEN_CHANNEL; // src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:188:5: ( ':=' ) // src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:188:7: ':=' { match(":="); if (state.failed) r...
class class_name[name] begin[{] method[mUNIFY, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=UNIFY, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[final] Keyword[void] identifier[mUNIFY] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[UNIFY] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKE...
public void marshall(CloudWatchDimensionConfiguration cloudWatchDimensionConfiguration, ProtocolMarshaller protocolMarshaller) { if (cloudWatchDimensionConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[cloudWatchDimensionConfiguration, protocolMarshaller]] begin[{] if[binary_operation[member[.cloudWatchDimensionConfiguration], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CloudWatchDimensionConfiguration] identifier[cloudWatchDimensionConfiguration] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[cloudWatchDimensionConfiguration] operat...
public static String getDeclaredCharset(String contentType) { if (contentType == null) { return null; } Matcher matcher = CHARSET_PATT.matcher(contentType); if (matcher.find()) { String encstr = matcher.group(1); return encstr; ...
class class_name[name] begin[{] method[getDeclaredCharset, return_type[type[String]], modifier[public static], parameter[contentType]] begin[{] if[binary_operation[member[.contentType], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[String] identifier[getDeclaredCharset] operator[SEP] identifier[String] identifier[contentType] operator[SEP] { Keyword[if] operator[SEP] identifier[contentType] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } ...
public FieldErrorBuilder address(final Optional<CellPosition> address) { address.ifPresent(a -> address(a)); return this; }
class class_name[name] begin[{] method[address, return_type[type[FieldErrorBuilder]], modifier[public], parameter[address]] begin[{] call[address.ifPresent, parameter[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] identifier[FieldErrorBuilder] identifier[address] operator[SEP] Keyword[final] identifier[Optional] operator[<] identifier[CellPosition] operator[>] identifier[address] operator[SEP] { identifier[address] operator[SEP] identifier[ifPresent] operator[SEP] identifier[a] operator[->] identifier[addr...
private void createNewUser() throws CmsException { //Password was checked by validator before String ou = m_ou.getValue(); if (!ou.endsWith("/")) { ou += "/"; } CmsUser user = m_cms.createUser(ou + m_loginname.getValue(), m_pw.getPassword1(), "", null); updat...
class class_name[name] begin[{] method[createNewUser, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], ou] if[call[ou.endsWith, parameter[literal["/"]]]] begin[{] assign[member[.ou], literal["/"]] else begin[{] None...
Keyword[private] Keyword[void] identifier[createNewUser] operator[SEP] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[String] identifier[ou] operator[=] identifier[m_ou] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identif...
@Override public MoveSelector buildBaseMoveSelector(HeuristicConfigPolicy configPolicy, SelectionCacheType minimumCacheType, boolean randomSelection) { EntitySelectorConfig entitySelectorConfig_ = entitySelectorConfig == null ? new EntitySelectorConfig() : entitySelectorConfig; ...
class class_name[name] begin[{] method[buildBaseMoveSelector, return_type[type[MoveSelector]], modifier[public], parameter[configPolicy, minimumCacheType, randomSelection]] begin[{] local_variable[type[EntitySelectorConfig], entitySelectorConfig_] local_variable[type[EntitySelector], entitySele...
annotation[@] identifier[Override] Keyword[public] identifier[MoveSelector] identifier[buildBaseMoveSelector] operator[SEP] identifier[HeuristicConfigPolicy] identifier[configPolicy] , identifier[SelectionCacheType] identifier[minimumCacheType] , Keyword[boolean] identifier[randomSelection] operator[SEP] { ide...
public static boolean handle(File zip, String name, ZipEntryCallback action) { ZipFile zf = null; try { zf = new ZipFile(zip); ZipEntry ze = zf.getEntry(name); if (ze == null) { return false; // entry not found } InputStream in = new BufferedInputStream(zf.getInputStream(...
class class_name[name] begin[{] method[handle, return_type[type[boolean]], modifier[public static], parameter[zip, name, action]] begin[{] local_variable[type[ZipFile], zf] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=zf, postfix_operators=[],...
Keyword[public] Keyword[static] Keyword[boolean] identifier[handle] operator[SEP] identifier[File] identifier[zip] , identifier[String] identifier[name] , identifier[ZipEntryCallback] identifier[action] operator[SEP] { identifier[ZipFile] identifier[zf] operator[=] Other[null] operator[SEP] Keyword[try] { ...
private String buildMapClickMessage(LatLng latLng, double zoom, BoundingBox boundingBox, double tolerance, Projection projection) { String message = null; // Verify the features are indexed and we are getting information if (isIndexed() && (maxFeaturesInfo || featuresInfo)) { if (i...
class class_name[name] begin[{] method[buildMapClickMessage, return_type[type[String]], modifier[private], parameter[latLng, zoom, boundingBox, tolerance, projection]] begin[{] local_variable[type[String], message] if[binary_operation[call[.isIndexed, parameter[]], &&, binary_operation[...
Keyword[private] identifier[String] identifier[buildMapClickMessage] operator[SEP] identifier[LatLng] identifier[latLng] , Keyword[double] identifier[zoom] , identifier[BoundingBox] identifier[boundingBox] , Keyword[double] identifier[tolerance] , identifier[Projection] identifier[projection] operator[SEP] { ...
protected Reliability getReplyReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReplyReliability"); Reliability result = null; if (replyReliabilityByte != -1) { result = Reliability.getReliability(replyReliabilityBy...
class class_name[name] begin[{] method[getReplyReliability, return_type[type[Reliability]], modifier[protected], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, par...
Keyword[protected] identifier[Reliability] identifier[getReplyReliability] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP...
public Field createFieldMultiChoicePlain( Field routeFieldParam, List<String> multiChoiceValuesParam ) { if(routeFieldParam != null && this.serviceTicket != null) { routeFieldParam.setServiceTicket(this.serviceTicket); } if(multiChoiceValuesParam == null) { multiChoiceValuesParam = new ArrayList(); ...
class class_name[name] begin[{] method[createFieldMultiChoicePlain, return_type[type[Field]], modifier[public], parameter[routeFieldParam, multiChoiceValuesParam]] begin[{] if[binary_operation[binary_operation[member[.routeFieldParam], !=, literal[null]], &&, binary_operation[THIS[member[None.s...
Keyword[public] identifier[Field] identifier[createFieldMultiChoicePlain] operator[SEP] identifier[Field] identifier[routeFieldParam] , identifier[List] operator[<] identifier[String] operator[>] identifier[multiChoiceValuesParam] operator[SEP] { Keyword[if] operator[SEP] identifier[routeFieldParam] operator[!=...
public Coordinate getCoordinate(int index) { int grpIndex = coordIndex.get(index); return group.coords.get(grpIndex); }
class class_name[name] begin[{] method[getCoordinate, return_type[type[Coordinate]], modifier[public], parameter[index]] begin[{] local_variable[type[int], grpIndex] return[call[group.coords.get, parameter[member[.grpIndex]]]] end[}] END[}]
Keyword[public] identifier[Coordinate] identifier[getCoordinate] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[int] identifier[grpIndex] operator[=] identifier[coordIndex] operator[SEP] identifier[get] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[return] identifier[g...
static public String substitute(String original, String match, String subst) { String s = original; int pos; while (0 <= (pos = s.indexOf(match))) { StringBuilder sb = new StringBuilder(s); s = sb.replace(pos, pos + match.length(), subst).toString(); } return s; }
class class_name[name] begin[{] method[substitute, return_type[type[String]], modifier[public static], parameter[original, match, subst]] begin[{] local_variable[type[String], s] local_variable[type[int], pos] while[binary_operation[literal[0], <=, assign[member[.pos], call[s.in...
Keyword[static] Keyword[public] identifier[String] identifier[substitute] operator[SEP] identifier[String] identifier[original] , identifier[String] identifier[match] , identifier[String] identifier[subst] operator[SEP] { identifier[String] identifier[s] operator[=] identifier[original] operator[SEP] Keyword[i...
private void checkOperand(Type type, Expr operand, Environment environment) { checkIsSubtype(type, checkExpression(operand, environment), environment, operand); }
class class_name[name] begin[{] method[checkOperand, return_type[void], modifier[private], parameter[type, operand, environment]] begin[{] call[.checkIsSubtype, parameter[member[.type], call[.checkExpression, parameter[member[.operand], member[.environment]]], member[.environment], member[.oper...
Keyword[private] Keyword[void] identifier[checkOperand] operator[SEP] identifier[Type] identifier[type] , identifier[Expr] identifier[operand] , identifier[Environment] identifier[environment] operator[SEP] { identifier[checkIsSubtype] operator[SEP] identifier[type] , identifier[checkExpression] operator[SEP]...
public void unmarkCompacting(Iterable<SSTableReader> unmark) { boolean isValid = cfstore.isValid(); if (!isValid) { // The CF has been dropped. We don't know if the original compaction suceeded or failed, // which makes it difficult to know if the sstable reference h...
class class_name[name] begin[{] method[unmarkCompacting, return_type[void], modifier[public], parameter[unmark]] begin[{] local_variable[type[boolean], isValid] if[member[.isValid]] begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[], memb...
Keyword[public] Keyword[void] identifier[unmarkCompacting] operator[SEP] identifier[Iterable] operator[<] identifier[SSTableReader] operator[>] identifier[unmark] operator[SEP] { Keyword[boolean] identifier[isValid] operator[=] identifier[cfstore] operator[SEP] identifier[isValid] operator[SEP] operator[SEP] ope...
public boolean matches(CharSequence rawPassword, String encodedPassword) { return matches(rawPassword == null ? null : rawPassword.toString(), encodedPassword); }
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[public], parameter[rawPassword, encodedPassword]] begin[{] return[call[.matches, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=rawPassword, postfix_operators=[], prefix_operators...
Keyword[public] Keyword[boolean] identifier[matches] operator[SEP] identifier[CharSequence] identifier[rawPassword] , identifier[String] identifier[encodedPassword] operator[SEP] { Keyword[return] identifier[matches] operator[SEP] identifier[rawPassword] operator[==] Other[null] operator[?] Other[null] operator...
@Override public CPOptionValue findByUuid_First(String uuid, OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException { CPOptionValue cpOptionValue = fetchByUuid_First(uuid, orderByComparator); if (cpOptionValue != null) { return cpOptionValue; } StringBundler msg = new ...
class class_name[name] begin[{] method[findByUuid_First, return_type[type[CPOptionValue]], modifier[public], parameter[uuid, orderByComparator]] begin[{] local_variable[type[CPOptionValue], cpOptionValue] if[binary_operation[member[.cpOptionValue], !=, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[CPOptionValue] identifier[findByUuid_First] operator[SEP] identifier[String] identifier[uuid] , identifier[OrderByComparator] operator[<] identifier[CPOptionValue] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[NoSuchCPOp...
private void obtainDialogButtonTextColor(@NonNull final TypedArray typedArray) { ColorStateList colorStateList = typedArray.getColorStateList(R.styleable.DialogPreference_dialogButtonTextColor); if (colorStateList != null) { setDialogButtonTextColor(colorStateList); ...
class class_name[name] begin[{] method[obtainDialogButtonTextColor, return_type[void], modifier[private], parameter[typedArray]] begin[{] local_variable[type[ColorStateList], colorStateList] if[binary_operation[member[.colorStateList], !=, literal[null]]] begin[{] ...
Keyword[private] Keyword[void] identifier[obtainDialogButtonTextColor] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[TypedArray] identifier[typedArray] operator[SEP] { identifier[ColorStateList] identifier[colorStateList] operator[=] identifier[typedArray] operator[SEP] identifier[get...
public <E> Collection<E> unmodifiable(Collection<E> input) { if (input == null) { return null; } return Collections.unmodifiableCollection(input); }
class class_name[name] begin[{] method[unmodifiable, return_type[type[Collection]], modifier[public], parameter[input]] begin[{] if[binary_operation[member[.input], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[Colle...
Keyword[public] operator[<] identifier[E] operator[>] identifier[Collection] operator[<] identifier[E] operator[>] identifier[unmodifiable] operator[SEP] identifier[Collection] operator[<] identifier[E] operator[>] identifier[input] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[==] Other[n...
public static String getTimeShort() { SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss"); Date currentTime = new Date(); String dateString = formatter.format(currentTime); return dateString; }
class class_name[name] begin[{] method[getTimeShort, return_type[type[String]], modifier[public static], parameter[]] begin[{] local_variable[type[SimpleDateFormat], formatter] local_variable[type[Date], currentTime] local_variable[type[String], dateString] return[member[.dateSt...
Keyword[public] Keyword[static] identifier[String] identifier[getTimeShort] operator[SEP] operator[SEP] { identifier[SimpleDateFormat] identifier[formatter] operator[=] Keyword[new] identifier[SimpleDateFormat] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Date] identifier[currentTime] ope...
public static void generateFixedUrls(final ContentSpec contentSpec, boolean missingOnly, final Integer fixedUrlPropertyTagId) { final Set<String> existingFixedUrls = new HashSet<String>(); final Set<SpecNode> nodesWithoutFixedUrls = new HashSet<SpecNode>(); final List<SpecNode> specNodes = getAl...
class class_name[name] begin[{] method[generateFixedUrls, return_type[void], modifier[public static], parameter[contentSpec, missingOnly, fixedUrlPropertyTagId]] begin[{] local_variable[type[Set], existingFixedUrls] local_variable[type[Set], nodesWithoutFixedUrls] local_variable[type[Li...
Keyword[public] Keyword[static] Keyword[void] identifier[generateFixedUrls] operator[SEP] Keyword[final] identifier[ContentSpec] identifier[contentSpec] , Keyword[boolean] identifier[missingOnly] , Keyword[final] identifier[Integer] identifier[fixedUrlPropertyTagId] operator[SEP] { Keyword[final] identifier[Se...
public long getSaving(Configuration conf) { try { DFSClient dfs = ((DistributedFileSystem)FileSystem.get(conf)).getClient(); Counters raidedCounters = stateToSourceCounters.get(RaidState.RAIDED); long physical = raidedCounters.getNumBytes() + parityCounters.getNumBytes(); long logi...
class class_name[name] begin[{] method[getSaving, return_type[type[long]], modifier[public], parameter[conf]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MemberReference(memb...
Keyword[public] Keyword[long] identifier[getSaving] operator[SEP] identifier[Configuration] identifier[conf] operator[SEP] { Keyword[try] { identifier[DFSClient] identifier[dfs] operator[=] operator[SEP] operator[SEP] identifier[DistributedFileSystem] operator[SEP] identifier[FileSystem] operator[SEP]...
public static void clearCache (@Nonnull final ClassLoader aClassLoader) { ResourceBundle.clearCache (aClassLoader); if (LOGGER.isDebugEnabled ()) LOGGER.debug ("Cache was cleared: " + ResourceBundle.class.getName () + "; classloader=" + aClassLoader); }
class class_name[name] begin[{] method[clearCache, return_type[void], modifier[public static], parameter[aClassLoader]] begin[{] call[ResourceBundle.clearCache, parameter[member[.aClassLoader]]] if[call[LOGGER.isDebugEnabled, parameter[]]] begin[{] call[LOGGER.debug,...
Keyword[public] Keyword[static] Keyword[void] identifier[clearCache] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[ClassLoader] identifier[aClassLoader] operator[SEP] { identifier[ResourceBundle] operator[SEP] identifier[clearCache] operator[SEP] identifier[aClassLoader] operator[SEP]...
@When("^I create a Cassandra index named '(.+?)' with schema '(.+?)' of type '(json|string)' in table '(.+?)' using magic_column '(.+?)' using keyspace '(.+?)' with:$") public void createCustomMapping(String index_name, String schema, String type, String table, String magic_column, String keyspace, DataTable modifi...
class class_name[name] begin[{] method[createCustomMapping, return_type[void], modifier[public], parameter[index_name, schema, type, table, magic_column, keyspace, modifications]] begin[{] local_variable[type[String], retrievedData] local_variable[type[String], modifiedData] local_varia...
annotation[@] identifier[When] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[createCustomMapping] operator[SEP] identifier[String] identifier[index_name] , identifier[String] identifier[schema] , identifier[String] identifier[type] , identifier[String] identifier[table] , iden...
public void setNetworkInterfaces(java.util.Collection<ScheduledInstancesNetworkInterface> networkInterfaces) { if (networkInterfaces == null) { this.networkInterfaces = null; return; } this.networkInterfaces = new com.amazonaws.internal.SdkInternalList<ScheduledInstances...
class class_name[name] begin[{] method[setNetworkInterfaces, return_type[void], modifier[public], parameter[networkInterfaces]] begin[{] if[binary_operation[member[.networkInterfaces], ==, literal[null]]] begin[{] assign[THIS[member[None.networkInterfaces]], literal[null...
Keyword[public] Keyword[void] identifier[setNetworkInterfaces] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ScheduledInstancesNetworkInterface] operator[>] identifier[networkInterfaces] operator[SEP] { Keyword[if] operator[SEP] identifi...
@VisibleForTesting Map<String, Plugin> instantiatePluginClasses(Map<PluginClassLoaderDef, ClassLoader> classloaders) { // instantiate plugins Map<String, Plugin> instancesByPluginKey = new HashMap<>(); for (Map.Entry<PluginClassLoaderDef, ClassLoader> entry : classloaders.entrySet()) { PluginClassLo...
class class_name[name] begin[{] method[instantiatePluginClasses, return_type[type[Map]], modifier[default], parameter[classloaders]] begin[{] local_variable[type[Map], instancesByPluginKey] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declara...
annotation[@] identifier[VisibleForTesting] identifier[Map] operator[<] identifier[String] , identifier[Plugin] operator[>] identifier[instantiatePluginClasses] operator[SEP] identifier[Map] operator[<] identifier[PluginClassLoaderDef] , identifier[ClassLoader] operator[>] identifier[classloaders] operator[SEP] { ...
public static LineString removeDuplicateCoordinates(LineString linestring, double tolerance) throws SQLException { Coordinate[] coords = CoordinateUtils.removeRepeatedCoordinates(linestring.getCoordinates(), tolerance, false); if(coords.length<2){ throw new SQLException("Not enough coordin...
class class_name[name] begin[{] method[removeDuplicateCoordinates, return_type[type[LineString]], modifier[public static], parameter[linestring, tolerance]] begin[{] local_variable[type[Coordinate], coords] if[binary_operation[member[coords.length], <, literal[2]]] begin[{] ...
Keyword[public] Keyword[static] identifier[LineString] identifier[removeDuplicateCoordinates] operator[SEP] identifier[LineString] identifier[linestring] , Keyword[double] identifier[tolerance] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[Coordinate] operator[SEP] operator[SEP] identifier...
public List<CmsClientSitemapEntry> getLoadedDescendants(String path) { LinkedList<CmsClientSitemapEntry> remainingEntries = new LinkedList<CmsClientSitemapEntry>(); List<CmsClientSitemapEntry> result = new ArrayList<CmsClientSitemapEntry>(); CmsClientSitemapEntry entry = getEntry(path); ...
class class_name[name] begin[{] method[getLoadedDescendants, return_type[type[List]], modifier[public], parameter[path]] begin[{] local_variable[type[LinkedList], remainingEntries] local_variable[type[List], result] local_variable[type[CmsClientSitemapEntry], entry] call...
Keyword[public] identifier[List] operator[<] identifier[CmsClientSitemapEntry] operator[>] identifier[getLoadedDescendants] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[LinkedList] operator[<] identifier[CmsClientSitemapEntry] operator[>] identifier[remainingEntries] operator[=] K...
public CompareType createCompareTypeFromString(EDataType eDataType, String initialValue) { CompareType result = CompareType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result...
class class_name[name] begin[{] method[createCompareTypeFromString, return_type[type[CompareType]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[CompareType], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] ThrowStatement(e...
Keyword[public] identifier[CompareType] identifier[createCompareTypeFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[CompareType] identifier[result] operator[=] identifier[CompareType] operator[SEP] identifier[get] ope...
public BaseTemplate yieldUnescaped(Object obj) throws IOException { writeIndent(); out.write(obj.toString()); return this; }
class class_name[name] begin[{] method[yieldUnescaped, return_type[type[BaseTemplate]], modifier[public], parameter[obj]] begin[{] call[.writeIndent, parameter[]] call[out.write, parameter[call[obj.toString, parameter[]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[BaseTemplate] identifier[yieldUnescaped] operator[SEP] identifier[Object] identifier[obj] operator[SEP] Keyword[throws] identifier[IOException] { identifier[writeIndent] operator[SEP] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[write] operator[SEP] identifier[o...
public String getString (String key, Supplier<String> notFound) { Object object = getObject (key); return (object instanceof String) ? (String) object : notFound.get (); }
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[public], parameter[key, notFound]] begin[{] local_variable[type[Object], object] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=object, postfix_operators=[], prefix_operator...
Keyword[public] identifier[String] identifier[getString] operator[SEP] identifier[String] identifier[key] , identifier[Supplier] operator[<] identifier[String] operator[>] identifier[notFound] operator[SEP] { identifier[Object] identifier[object] operator[=] identifier[getObject] operator[SEP] identifier[key] o...
public void addIntentFilterForReceiver(ComponentName componentName, IntentFilter filter) throws NameNotFoundException { addIntentFilterForComponent(componentName, filter, receiverFilters); }
class class_name[name] begin[{] method[addIntentFilterForReceiver, return_type[void], modifier[public], parameter[componentName, filter]] begin[{] call[.addIntentFilterForComponent, parameter[member[.componentName], member[.filter], member[.receiverFilters]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addIntentFilterForReceiver] operator[SEP] identifier[ComponentName] identifier[componentName] , identifier[IntentFilter] identifier[filter] operator[SEP] Keyword[throws] identifier[NameNotFoundException] { identifier[addIntentFilterForComponent] operator[SEP] identifier[...
public static SocketIOServer newInstance(int port, SSLContext sslContext) { SslContext nettySslContext = new JdkSslContext(sslContext, false, ClientAuth.NONE); return newInstance(port, nettySslContext); }
class class_name[name] begin[{] method[newInstance, return_type[type[SocketIOServer]], modifier[public static], parameter[port, sslContext]] begin[{] local_variable[type[SslContext], nettySslContext] return[call[.newInstance, parameter[member[.port], member[.nettySslContext]]]] end[}] END[}...
Keyword[public] Keyword[static] identifier[SocketIOServer] identifier[newInstance] operator[SEP] Keyword[int] identifier[port] , identifier[SSLContext] identifier[sslContext] operator[SEP] { identifier[SslContext] identifier[nettySslContext] operator[=] Keyword[new] identifier[JdkSslContext] operator[SEP] ident...
public static void writeAndClose(Writer writer, CharSequence cs) { try { write(writer, cs); } catch (IOException e) { throw Lang.wrapThrow(e); } finally { safeClose(writer); } }
class class_name[name] begin[{] method[writeAndClose, return_type[void], modifier[public static], parameter[writer, cs]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=writer, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[static] Keyword[void] identifier[writeAndClose] operator[SEP] identifier[Writer] identifier[writer] , identifier[CharSequence] identifier[cs] operator[SEP] { Keyword[try] { identifier[write] operator[SEP] identifier[writer] , identifier[cs] operator[SEP] operator[SEP] ...
public final void bitcoinSerialize(OutputStream stream) throws IOException { // 1st check for cached bytes. if (payload != null && length != UNKNOWN_LENGTH) { stream.write(payload, offset, length); return; } bitcoinSerializeToStream(stream); }
class class_name[name] begin[{] method[bitcoinSerialize, return_type[void], modifier[final public], parameter[stream]] begin[{] if[binary_operation[binary_operation[member[.payload], !=, literal[null]], &&, binary_operation[member[.length], !=, member[.UNKNOWN_LENGTH]]]] begin[{] ...
Keyword[public] Keyword[final] Keyword[void] identifier[bitcoinSerialize] operator[SEP] identifier[OutputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[payload] operator[!=] Other[null] operator[&&] identifier[length] operator[!=] identifie...
private boolean consumeAnyButEOF() { int c = input.LA(1); if (c == CharStream.EOF) return false; if (log.isTraceEnabled()) log.trace("Lexer consumes '{}' while consumeButEOF", Character.toString((char) c)); // consume character inpu...
class class_name[name] begin[{] method[consumeAnyButEOF, return_type[type[boolean]], modifier[private], parameter[]] begin[{] local_variable[type[int], c] if[binary_operation[member[.c], ==, member[CharStream.EOF]]] begin[{] return[literal[false]] else begin[{] None end[...
Keyword[private] Keyword[boolean] identifier[consumeAnyButEOF] operator[SEP] operator[SEP] { Keyword[int] identifier[c] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] identifier[CharStream] operato...
public void registerComponents() throws Exception { Debug.logVerbose("[JdonFramework] note: registe all basic components in container.xml size=" + basicComponents.size(), module); try { Iterator iter = basicComponents.iterator(); while (iter.hasNext()) { String name = (String) iter.next(); Compo...
class class_name[name] begin[{] method[registerComponents, return_type[void], modifier[public], parameter[]] begin[{] call[Debug.logVerbose, parameter[binary_operation[literal["[JdonFramework] note: registe all basic components in container.xml size="], +, call[basicComponents.size, parameter[]...
Keyword[public] Keyword[void] identifier[registerComponents] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Debug] operator[SEP] identifier[logVerbose] operator[SEP] literal[String] operator[+] identifier[basicComponents] operator[SEP] identifier[size] operator[SEP] operator[SEP] ...
@GwtIncompatible // CopyOnWriteArraySet public static <E> CopyOnWriteArraySet<E> newCopyOnWriteArraySet(Iterable<? extends E> elements) { // We copy elements to an ArrayList first, rather than incurring the // quadratic cost of adding them to the COWAS directly. Collection<? extends E> elementsCollection ...
class class_name[name] begin[{] method[newCopyOnWriteArraySet, return_type[type[CopyOnWriteArraySet]], modifier[public static], parameter[elements]] begin[{] local_variable[type[Collection], elementsCollection] return[ClassCreator(arguments=[MemberReference(member=elementsCollection, postfix_op...
annotation[@] identifier[GwtIncompatible] Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[CopyOnWriteArraySet] operator[<] identifier[E] operator[>] identifier[newCopyOnWriteArraySet] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[E] operator[>] i...
public static Class getProxyFactory(Class persistentClass, Class[] interfaces) throws PersistenceException { Enhancer e = new Enhancer(); e.setSuperclass(interfaces.length == 1 ? persistentClass : null); e.setInterfaces(interfaces); e.setCallbackTypes(new Class[] { InvocationHan...
class class_name[name] begin[{] method[getProxyFactory, return_type[type[Class]], modifier[public static], parameter[persistentClass, interfaces]] begin[{] local_variable[type[Enhancer], e] call[e.setSuperclass, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberRefere...
Keyword[public] Keyword[static] identifier[Class] identifier[getProxyFactory] operator[SEP] identifier[Class] identifier[persistentClass] , identifier[Class] operator[SEP] operator[SEP] identifier[interfaces] operator[SEP] Keyword[throws] identifier[PersistenceException] { identifier[Enhancer] identifier[e] ope...
@Override public void destroy(Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "destroy", e); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled() && (e != null)) SibTr.exception(this, tc, e); //Romil lib...
class class_name[name] begin[{] method[destroy, return_type[void], modifier[public], parameter[e]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc],...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[destroy] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operato...
static Deferred<ArrayList<byte[]>> resolveOrCreateAllAsync(final TSDB tsdb, final Map<String, String> tags) { return resolveAllInternalAsync(tsdb, null, tags, true); }
class class_name[name] begin[{] method[resolveOrCreateAllAsync, return_type[type[Deferred]], modifier[static], parameter[tsdb, tags]] begin[{] return[call[.resolveAllInternalAsync, parameter[member[.tsdb], literal[null], member[.tags], literal[true]]]] end[}] END[}]
Keyword[static] identifier[Deferred] operator[<] identifier[ArrayList] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] operator[>] identifier[resolveOrCreateAllAsync] operator[SEP] Keyword[final] identifier[TSDB] identifier[tsdb] , Keyword[final] identifier[Map] operator[<] identifier[String] , iden...
public AwsEc2InstanceDetails withIpV4Addresses(String... ipV4Addresses) { if (this.ipV4Addresses == null) { setIpV4Addresses(new java.util.ArrayList<String>(ipV4Addresses.length)); } for (String ele : ipV4Addresses) { this.ipV4Addresses.add(ele); } return ...
class class_name[name] begin[{] method[withIpV4Addresses, return_type[type[AwsEc2InstanceDetails]], modifier[public], parameter[ipV4Addresses]] begin[{] if[binary_operation[THIS[member[None.ipV4Addresses]], ==, literal[null]]] begin[{] call[.setIpV4Addresses, parameter[C...
Keyword[public] identifier[AwsEc2InstanceDetails] identifier[withIpV4Addresses] operator[SEP] identifier[String] operator[...] identifier[ipV4Addresses] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[ipV4Addresses] operator[==] Other[null] operator[SEP] { identifier[s...
public static Trades adaptTrades(EXXTransaction[] transactions, CurrencyPair currencyPair) { List<Trade> trades = new ArrayList<>(); long lastTradeId = 0; for (EXXTransaction transaction : transactions) { final long tradeId = transaction.getTid(); if (tradeId > lastTradeId) { lastTradeId...
class class_name[name] begin[{] method[adaptTrades, return_type[type[Trades]], modifier[public static], parameter[transactions, currencyPair]] begin[{] local_variable[type[List], trades] local_variable[type[long], lastTradeId] ForStatement(body=BlockStatement(label=None, statements=[Loc...
Keyword[public] Keyword[static] identifier[Trades] identifier[adaptTrades] operator[SEP] identifier[EXXTransaction] operator[SEP] operator[SEP] identifier[transactions] , identifier[CurrencyPair] identifier[currencyPair] operator[SEP] { identifier[List] operator[<] identifier[Trade] operator[>] identifier[trade...
@Override public AbstractSerializingCache createCache(String name, ICacheLoader cacheLoader) { return (AbstractSerializingCache) super.createCache(name, cacheLoader); }
class class_name[name] begin[{] method[createCache, return_type[type[AbstractSerializingCache]], modifier[public], parameter[name, cacheLoader]] begin[{] return[Cast(expression=SuperMethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
annotation[@] identifier[Override] Keyword[public] identifier[AbstractSerializingCache] identifier[createCache] operator[SEP] identifier[String] identifier[name] , identifier[ICacheLoader] identifier[cacheLoader] operator[SEP] { Keyword[return] operator[SEP] identifier[AbstractSerializingCache] operator[SEP] Ke...
Map<UUID, CacheBucketOffset> getTailHashes(long segmentId) { return forSegmentCache(segmentId, SegmentKeyCache::getTailBucketOffsets, Collections.emptyMap()); }
class class_name[name] begin[{] method[getTailHashes, return_type[type[Map]], modifier[default], parameter[segmentId]] begin[{] return[call[.forSegmentCache, parameter[member[.segmentId], MethodReference(expression=MemberReference(member=SegmentKeyCache, postfix_operators=[], prefix_operators=[], quali...
identifier[Map] operator[<] identifier[UUID] , identifier[CacheBucketOffset] operator[>] identifier[getTailHashes] operator[SEP] Keyword[long] identifier[segmentId] operator[SEP] { Keyword[return] identifier[forSegmentCache] operator[SEP] identifier[segmentId] , identifier[SegmentKeyCache] operator[::] identif...
@Override public String getFilePath(String resourcePath) { return helper.getFilePath(resolver.getResourcePath(resourcePath)); }
class class_name[name] begin[{] method[getFilePath, return_type[type[String]], modifier[public], parameter[resourcePath]] begin[{] return[call[helper.getFilePath, parameter[call[resolver.getResourcePath, parameter[member[.resourcePath]]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getFilePath] operator[SEP] identifier[String] identifier[resourcePath] operator[SEP] { Keyword[return] identifier[helper] operator[SEP] identifier[getFilePath] operator[SEP] identifier[resolver] operator[SEP] identifier[getResourceP...
@RequestMapping(value = "branches/{branchId}/template", method = RequestMethod.PUT) public Branch createTemplateInstance(@PathVariable ID branchId, @RequestBody @Valid BranchTemplateInstanceSingleRequest request) { return branchTemplateService.createTemplateInstance(branchId, request); }
class class_name[name] begin[{] method[createTemplateInstance, return_type[type[Branch]], modifier[public], parameter[branchId, request]] begin[{] return[call[branchTemplateService.createTemplateInstance, parameter[member[.branchId], member[.request]]]] end[}] END[}]
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[PUT] operator[SEP] Keyword[public] identifier[Branch] identifier[createTemplateInstance] operator[SEP] annotation[@] identifier[PathVa...
public static String doRequestWithUrl(String url, String method, Map<String, String> header, Map<String, String> params, String charset) throws IOException { HttpURLConnection conn = null; String rsp = null; try { String ctype = "application/json"; String query = buildQuery(params, charset); ...
class class_name[name] begin[{] method[doRequestWithUrl, return_type[type[String]], modifier[public static], parameter[url, method, header, params, charset]] begin[{] local_variable[type[HttpURLConnection], conn] local_variable[type[String], rsp] TryStatement(block=[LocalVariableDeclara...
Keyword[public] Keyword[static] identifier[String] identifier[doRequestWithUrl] operator[SEP] identifier[String] identifier[url] , identifier[String] identifier[method] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[header] , identifier[Map] operator[<] identifier[Strin...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.EPG__PAGE_NAME: return getPageName(); case AfplibPackage.EPG__TRIPLETS: return getTriplets(); } return super.eGet(featureID, resolve, coreType); }
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=EPG__PAGE_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selecto...
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 final void error(Object pObject) { getLogger().log(FQCN, Level.ERROR, pObject, null); }
class class_name[name] begin[{] method[error, return_type[void], modifier[final public], parameter[pObject]] begin[{] call[.getLogger, parameter[]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[error] operator[SEP] identifier[Object] identifier[pObject] operator[SEP] { identifier[getLogger] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[FQCN] , identifier[Level] operator[SEP] identifier[ERROR] , identifier[pOb...
private synchronized void checkFileName(String fileName) throws ParameterException{ Validate.notNull(fileName); File cFile = new File(fileName); if(cFile.getName().length()==0) throw new ParameterException(ErrorCode.INCOMPATIBILITY, fileName + " is not a valid file-name!"); }
class class_name[name] begin[{] method[checkFileName, return_type[void], modifier[synchronized private], parameter[fileName]] begin[{] call[Validate.notNull, parameter[member[.fileName]]] local_variable[type[File], cFile] if[binary_operation[call[cFile.getName, parameter...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[checkFileName] operator[SEP] identifier[String] identifier[fileName] operator[SEP] Keyword[throws] identifier[ParameterException] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[fileName] operator[SEP] operator[SEP]...
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD}) public Resources<EventDefinitionResource> getEventDefinitions() throws EventDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException { if (LOG.isTraceEnabled()) { LOG.entry(); } final Resources<Eve...
class class_name[name] begin[{] method[getEventDefinitions, return_type[type[Resources]], modifier[public], parameter[]] begin[{] if[call[LOG.isTraceEnabled, parameter[]]] begin[{] call[LOG.entry, parameter[]] else begin[{] None end[}] local_varia...
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] { identifier[RequestMethod] operator[SEP] identifier[GET] , identifier[RequestMethod] operator[SEP] identifier[HEAD] } operator[SEP] Keyword[public] identifier[Resources] ope...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case XtypePackage.XIMPORT_SECTION__IMPORT_DECLARATIONS: return importDeclarations != null && !importDeclarations.isEmpty(); } 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=XIMPORT_SECTION__IMPORT_DECLARATIONS, postfix_operators=[], prefix_operators=[], qualifier=XtypePackage, se...
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[XtypePackage] operator[SEP] identifier[XIMPORT_SECTION__I...
public <T extends Post> T newPost(Class<T> klass) throws IllegalAccessException, InstantiationException { return client.newPost(name, klass); }
class class_name[name] begin[{] method[newPost, return_type[type[T]], modifier[public], parameter[klass]] begin[{] return[call[client.newPost, parameter[member[.name], member[.klass]]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Post] operator[>] identifier[T] identifier[newPost] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[klass] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , identifier[InstantiationException] { ...
public static void main(String[] args) throws Exception { AdPerformanceConfig config = new AdPerformanceConfig(); config.parse(AdTrackingBenchmark.class.getName(), args); AdTrackingBenchmark benchmark = new AdTrackingBenchmark(config); benchmark.runBenchmark(); }
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[AdPerformanceConfig], config] call[config.parse, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvoca...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[AdPerformanceConfig] identifier[config] operator[=] Keyword[new] identifier[AdPerformanceConfig] operator[S...
protected String handleError(final String message) { notifier().error(formatMessage(message)); return formatMessage(message); }
class class_name[name] begin[{] method[handleError, return_type[type[String]], modifier[protected], parameter[message]] begin[{] call[.notifier, parameter[]] return[call[.formatMessage, parameter[member[.message]]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[handleError] operator[SEP] Keyword[final] identifier[String] identifier[message] operator[SEP] { identifier[notifier] operator[SEP] operator[SEP] operator[SEP] identifier[error] operator[SEP] identifier[formatMessage] operator[SEP] identifier[message] operator[SEP...
public static void cublasStbmv(char uplo, char trans, char diag, int n, int k, Pointer A, int lda, Pointer x, int incx) { cublasStbmvNative(uplo, trans, diag, n, k, A, lda, x, incx); checkResultBLAS(); }
class class_name[name] begin[{] method[cublasStbmv, return_type[void], modifier[public static], parameter[uplo, trans, diag, n, k, A, lda, x, incx]] begin[{] call[.cublasStbmvNative, parameter[member[.uplo], member[.trans], member[.diag], member[.n], member[.k], member[.A], member[.lda], member...
Keyword[public] Keyword[static] Keyword[void] identifier[cublasStbmv] operator[SEP] Keyword[char] identifier[uplo] , Keyword[char] identifier[trans] , Keyword[char] identifier[diag] , Keyword[int] identifier[n] , Keyword[int] identifier[k] , identifier[Pointer] identifier[A] , Keyword[int] identifier[lda] , iden...
private int getAromaticCarbonsCount(IAtomContainer ac, IAtom atom) { List<IAtom> neighbours = ac.getConnectedAtomsList(atom); int carocounter = 0; for (IAtom neighbour : neighbours) { if (neighbour.getSymbol().equals("C") && neighbour.getFlag(CDKConstants.ISAROMATIC)) { ...
class class_name[name] begin[{] method[getAromaticCarbonsCount, return_type[type[int]], modifier[private], parameter[ac, atom]] begin[{] local_variable[type[List], neighbours] local_variable[type[int], carocounter] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(con...
Keyword[private] Keyword[int] identifier[getAromaticCarbonsCount] operator[SEP] identifier[IAtomContainer] identifier[ac] , identifier[IAtom] identifier[atom] operator[SEP] { identifier[List] operator[<] identifier[IAtom] operator[>] identifier[neighbours] operator[=] identifier[ac] operator[SEP] identifier[get...
public ReturnValueType<ConstructorType<T>> getOrCreateReturnValue() { Node node = childNode.getOrCreate("return-value"); ReturnValueType<ConstructorType<T>> returnValue = new ReturnValueTypeImpl<ConstructorType<T>>(this, "return-value", childNode, node); return returnValue; }
class class_name[name] begin[{] method[getOrCreateReturnValue, return_type[type[ReturnValueType]], modifier[public], parameter[]] begin[{] local_variable[type[Node], node] local_variable[type[ReturnValueType], returnValue] return[member[.returnValue]] end[}] END[}]
Keyword[public] identifier[ReturnValueType] operator[<] identifier[ConstructorType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateReturnValue] operator[SEP] operator[SEP] { identifier[Node] identifier[node] operator[=] identifier[childNode] operator[SEP] identifier[getOrCreate] operator...
private Properties readFileHashCacheFile() { Properties props = new Properties(); Log log = getLog(); if (!this.targetDirectory.exists()) { this.targetDirectory.mkdirs(); } else if (!this.targetDirectory.isDirectory()) { log.warn("Something strange here as the '" ...
class class_name[name] begin[{] method[readFileHashCacheFile, return_type[type[Properties]], modifier[private], parameter[]] begin[{] local_variable[type[Properties], props] local_variable[type[Log], log] if[THIS[member[None.targetDirectory]call[None.exists, parameter[]]]] begin...
Keyword[private] identifier[Properties] identifier[readFileHashCacheFile] operator[SEP] operator[SEP] { identifier[Properties] identifier[props] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] identifier[Log] identifier[log] operator[=] identifier[getLog] operator[SEP] o...
@VisibleForTesting static <T> TypeSerializerSchemaCompatibility<T> resolveSchemaCompatibility( Schema writerSchema, Schema readerSchema) { if (Objects.equals(writerSchema, readerSchema)) { return TypeSerializerSchemaCompatibility.compatibleAsIs(); } final SchemaPairCompatibility compatibility = Schem...
class class_name[name] begin[{] method[resolveSchemaCompatibility, return_type[type[TypeSerializerSchemaCompatibility]], modifier[static], parameter[writerSchema, readerSchema]] begin[{] if[call[Objects.equals, parameter[member[.writerSchema], member[.readerSchema]]]] begin[{] retur...
annotation[@] identifier[VisibleForTesting] Keyword[static] operator[<] identifier[T] operator[>] identifier[TypeSerializerSchemaCompatibility] operator[<] identifier[T] operator[>] identifier[resolveSchemaCompatibility] operator[SEP] identifier[Schema] identifier[writerSchema] , identifier[Schema] identifier[readerSc...
public boolean present() { boolean isPresent = false; try { element.getWebElement().getText(); isPresent = true; } catch (NoSuchElementException | StaleElementReferenceException e) { log.info(e); } return isPresent; }
class class_name[name] begin[{] method[present, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], isPresent] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getWebElement, postfix_operators=[], prefix_opera...
Keyword[public] Keyword[boolean] identifier[present] operator[SEP] operator[SEP] { Keyword[boolean] identifier[isPresent] operator[=] literal[boolean] operator[SEP] Keyword[try] { identifier[element] operator[SEP] identifier[getWebElement] operator[SEP] operator[SEP] operator[SEP] identifier[getText] ...
public static String getMessageText(String key, Object... args) { return getWpMessagesForCurrentLocale().key(key, args); }
class class_name[name] begin[{] method[getMessageText, return_type[type[String]], modifier[public static], parameter[key, args]] begin[{] return[call[.getWpMessagesForCurrentLocale, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getMessageText] operator[SEP] identifier[String] identifier[key] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[return] identifier[getWpMessagesForCurrentLocale] operator[SEP] operator[SEP] operator[SEP] identifier[key] o...
public int getInt24(int index) throws IOException { validateIndex(index, 3); if (_isMotorolaByteOrder) { // Motorola - MSB first (big endian) return (((int)getByte(index )) << 16 & 0xFF0000) | (((int)getByte(index + 1)) << 8 & 0xFF00) | ...
class class_name[name] begin[{] method[getInt24, return_type[type[int]], modifier[public], parameter[index]] begin[{] call[.validateIndex, parameter[member[.index], literal[3]]] if[member[._isMotorolaByteOrder]] begin[{] return[binary_operation[binary_operation[binar...
Keyword[public] Keyword[int] identifier[getInt24] operator[SEP] Keyword[int] identifier[index] operator[SEP] Keyword[throws] identifier[IOException] { identifier[validateIndex] operator[SEP] identifier[index] , Other[3] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_isMotorolaByteOrder] opera...
public static void main(String[] args){ RandomRBFGeneratorEvents stream = new RandomRBFGeneratorEvents(); AbstractClusterer clusterer = new WithKmeans(); boolean[] measureCollection = {true,true,true,true,true,true,true,true}; int amountInstances = 20000; String testfile = "d:\\data\\test.csv"; runBatch(st...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[RandomRBFGeneratorEvents], stream] local_variable[type[AbstractClusterer], clusterer] local_variable[type[boolean], measureCollection] local_var...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[RandomRBFGeneratorEvents] identifier[stream] operator[=] Keyword[new] identifier[RandomRBFGeneratorEvents] operator[SEP] operator[SEP] operator[S...
private void trySwitchingEditLog() throws IOException { if (shouldSwitchEditLog()) { curStreamFinished = true; if (LOG.isDebugEnabled()) { LOG.debug("Should switch edit log. rollImageCount=" + rollImageCount + ". curStreamConsumed=" + curStreamConsumed); } if (curS...
class class_name[name] begin[{] method[trySwitchingEditLog, return_type[void], modifier[private], parameter[]] begin[{] if[call[.shouldSwitchEditLog, parameter[]]] begin[{] assign[member[.curStreamFinished], literal[true]] if[call[LOG.isDebugEnabl...
Keyword[private] Keyword[void] identifier[trySwitchingEditLog] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[shouldSwitchEditLog] operator[SEP] operator[SEP] operator[SEP] { identifier[curStreamFinished] operator[=] literal[boolean] operator...
@Override @SuppressWarnings({ "unchecked", "SuspiciousToArrayCall" }) public void close() { final AddressResolver<T>[] rArray; synchronized (resolvers) { rArray = (AddressResolver<T>[]) resolvers.values().toArray(new AddressResolver[0]); resolvers.clear(); } ...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[AddressResolver], rArray] SYNCHRONIZED[member[.resolvers]] BEGIN[{] assign[member[.rArray], Cast(expression=MethodInvocation(arguments=[],...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[final] identifier[AddressResolver] operator[<] identifier[T] operator[>]...
@Override public ListVolumeRecoveryPointsResult listVolumeRecoveryPoints(ListVolumeRecoveryPointsRequest request) { request = beforeClientExecution(request); return executeListVolumeRecoveryPoints(request); }
class class_name[name] begin[{] method[listVolumeRecoveryPoints, return_type[type[ListVolumeRecoveryPointsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListVolumeRecoveryPo...
annotation[@] identifier[Override] Keyword[public] identifier[ListVolumeRecoveryPointsResult] identifier[listVolumeRecoveryPoints] operator[SEP] identifier[ListVolumeRecoveryPointsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifi...
public SearchResults query(WaybackRequest wbRequest) throws ResourceIndexNotAvailableException, ResourceNotInArchiveException, BadQueryException, AccessControlException { RangeGroup group = getRangeGroupForRequest(wbRequest); return group.query(wbRequest); }
class class_name[name] begin[{] method[query, return_type[type[SearchResults]], modifier[public], parameter[wbRequest]] begin[{] local_variable[type[RangeGroup], group] return[call[group.query, parameter[member[.wbRequest]]]] end[}] END[}]
Keyword[public] identifier[SearchResults] identifier[query] operator[SEP] identifier[WaybackRequest] identifier[wbRequest] operator[SEP] Keyword[throws] identifier[ResourceIndexNotAvailableException] , identifier[ResourceNotInArchiveException] , identifier[BadQueryException] , identifier[AccessControlException] { ...
private Integer getReleaseId() { final String[] versionParts = stringVersion.split("-"); if(isBranch() && versionParts.length >= 3){ return Integer.valueOf(versionParts[2]); } else if(versionParts.length >= 2){ return Integer.valueOf(versionParts[1]); } return 0; }
class class_name[name] begin[{] method[getReleaseId, return_type[type[Integer]], modifier[private], parameter[]] begin[{] local_variable[type[String], versionParts] if[binary_operation[call[.isBranch, parameter[]], &&, binary_operation[member[versionParts.length], >=, literal[3]]]] begi...
Keyword[private] identifier[Integer] identifier[getReleaseId] operator[SEP] operator[SEP] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[versionParts] operator[=] identifier[stringVersion] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operator[SEP] Keywor...
public void clearDataListState(String key) { Map<String, Object> sessionMap = getFacesContext().getExternalContext().getSessionMap(); Map<String, TableState> dtState = (Map) sessionMap.get(Constants.DATALIST_STATE); if (dtState != null) { dtState.remove(key); } }
class class_name[name] begin[{] method[clearDataListState, return_type[void], modifier[public], parameter[key]] begin[{] local_variable[type[Map], sessionMap] local_variable[type[Map], dtState] if[binary_operation[member[.dtState], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[clearDataListState] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[sessionMap] operator[=] identifier[getFacesContext] operator[SEP] operator[SEP] operator[SEP] i...
public static void createThumb( InputStream input, OutputStream output, int thumbWidth, int thumbHeight, String format) throws IOException { try { try { ImageInputStream imageInput = ImageIO .createImageInputStream(input...
class class_name[name] begin[{] method[createThumb, return_type[void], modifier[public static], parameter[input, output, thumbWidth, thumbHeight, format]] begin[{] TryStatement(block=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer...
Keyword[public] Keyword[static] Keyword[void] identifier[createThumb] operator[SEP] identifier[InputStream] identifier[input] , identifier[OutputStream] identifier[output] , Keyword[int] identifier[thumbWidth] , Keyword[int] identifier[thumbHeight] , identifier[String] identifier[format] operator[SEP] Keyword[throw...
public boolean containsAll(IntBitSet set) { int i, end; if (data.length < set.data.length) { end = data.length; for (i = end; i < set.data.length; i++) { if (set.data[i] != 0) { return false; } } } else { ...
class class_name[name] begin[{] method[containsAll, return_type[type[boolean]], modifier[public], parameter[set]] begin[{] local_variable[type[int], i] if[binary_operation[member[data.length], <, member[set.data.length]]] begin[{] assign[member[.end], member[data...
Keyword[public] Keyword[boolean] identifier[containsAll] operator[SEP] identifier[IntBitSet] identifier[set] operator[SEP] { Keyword[int] identifier[i] , identifier[end] operator[SEP] Keyword[if] operator[SEP] identifier[data] operator[SEP] identifier[length] operator[<] identifier[set] operator[SEP] identifier...
@Override public List<QueryRow> reducedQuery(QueryOptions options) throws CouchbaseLiteException { Predicate<QueryRow> postFilter = options.getPostFilter(); int groupLevel = options.getGroupLevel(); boolean group = options.isGroup() || (groupLevel > 0); Reducer reduce = delegate.get...
class class_name[name] begin[{] method[reducedQuery, return_type[type[List]], modifier[public], parameter[options]] begin[{] local_variable[type[Predicate], postFilter] local_variable[type[int], groupLevel] local_variable[type[boolean], group] local_variable[type[Reducer], reduc...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[QueryRow] operator[>] identifier[reducedQuery] operator[SEP] identifier[QueryOptions] identifier[options] operator[SEP] Keyword[throws] identifier[CouchbaseLiteException] { identifier[Predicate] operator[<] identifier[Quer...
public ThumborUrlBuilder buildImage(String image) { if (image == null || image.length() == 0) { throw new IllegalArgumentException("Image must not be blank."); } return new ThumborUrlBuilder(host, key, image); }
class class_name[name] begin[{] method[buildImage, return_type[type[ThumborUrlBuilder]], modifier[public], parameter[image]] begin[{] if[binary_operation[binary_operation[member[.image], ==, literal[null]], ||, binary_operation[call[image.length, parameter[]], ==, literal[0]]]] begin[{] ...
Keyword[public] identifier[ThumborUrlBuilder] identifier[buildImage] operator[SEP] identifier[String] identifier[image] operator[SEP] { Keyword[if] operator[SEP] identifier[image] operator[==] Other[null] operator[||] identifier[image] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Oth...
@Override public String getLocation() { WsResource res = _resolvedLocation.get(); if (res != null && res.exists()) { return res.asFile().getAbsolutePath(); } else { return _config.getLocation(); } }
class class_name[name] begin[{] method[getLocation, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[WsResource], res] if[binary_operation[binary_operation[member[.res], !=, literal[null]], &&, call[res.exists, parameter[]]]] begin[{] re...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getLocation] operator[SEP] operator[SEP] { identifier[WsResource] identifier[res] operator[=] identifier[_resolvedLocation] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier...
protected String generateFileName(int subBucket, String oldName) { int dotPos = oldName.lastIndexOf("."); int slashPos = Math.max(oldName.lastIndexOf("/"), oldName.lastIndexOf("\\")); String prefix; String suffix; if (dotPos > slashPos) { prefix = oldName.substring(0...
class class_name[name] begin[{] method[generateFileName, return_type[type[String]], modifier[protected], parameter[subBucket, oldName]] begin[{] local_variable[type[int], dotPos] local_variable[type[int], slashPos] local_variable[type[String], prefix] local_variable[type[String]...
Keyword[protected] identifier[String] identifier[generateFileName] operator[SEP] Keyword[int] identifier[subBucket] , identifier[String] identifier[oldName] operator[SEP] { Keyword[int] identifier[dotPos] operator[=] identifier[oldName] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] operato...
public final hqlParser.expression_return expression() throws RecognitionException { hqlParser.expression_return retval = new hqlParser.expression_return(); retval.start = input.LT(1); CommonTree root_0 = null; ParserRuleReturnScope logicalOrExpression154 =null; try { // hql.g:410:2: ( logicalOrExpressi...
class class_name[name] begin[{] method[expression, return_type[type[hqlParser]], modifier[final public], parameter[]] begin[{] local_variable[type[hqlParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[CommonTree], root_0] ...
Keyword[public] Keyword[final] identifier[hqlParser] operator[SEP] identifier[expression_return] identifier[expression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[hqlParser] operator[SEP] identifier[expression_return] identifier[retval] operator[=] Keyword[new] iden...
public void loop(float pitch, float volume) { sound.playAsSoundEffect(pitch, volume * SoundStore.get().getSoundVolume(), true); }
class class_name[name] begin[{] method[loop, return_type[void], modifier[public], parameter[pitch, volume]] begin[{] call[sound.playAsSoundEffect, parameter[member[.pitch], binary_operation[member[.volume], *, call[SoundStore.get, parameter[]]], literal[true]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[loop] operator[SEP] Keyword[float] identifier[pitch] , Keyword[float] identifier[volume] operator[SEP] { identifier[sound] operator[SEP] identifier[playAsSoundEffect] operator[SEP] identifier[pitch] , identifier[volume] operator[*] identifier[SoundStore] operator[SEP] i...
@Override public int countByG_B_A(long groupId, boolean billingAllowed, boolean active) { FinderPath finderPath = FINDER_PATH_COUNT_BY_G_B_A; Object[] finderArgs = new Object[] { groupId, billingAllowed, active }; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { ...
class class_name[name] begin[{] method[countByG_B_A, return_type[type[int]], modifier[public], parameter[groupId, billingAllowed, active]] begin[{] local_variable[type[FinderPath], finderPath] local_variable[type[Object], finderArgs] local_variable[type[Long], count] if[...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[countByG_B_A] operator[SEP] Keyword[long] identifier[groupId] , Keyword[boolean] identifier[billingAllowed] , Keyword[boolean] identifier[active] operator[SEP] { identifier[FinderPath] identifier[finderPath] operator[=] identifier[FINDE...
public static Status find(final CIType _ciType, final String _key) throws CacheReloadException { return Status.get(_ciType.uuid).get(_key); }
class class_name[name] begin[{] method[find, return_type[type[Status]], modifier[public static], parameter[_ciType, _key]] begin[{] return[call[Status.get, parameter[member[_ciType.uuid]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Status] identifier[find] operator[SEP] Keyword[final] identifier[CIType] identifier[_ciType] , Keyword[final] identifier[String] identifier[_key] operator[SEP] Keyword[throws] identifier[CacheReloadException] { Keyword[return] identifier[Status] operator[SEP] identifie...
public void addProvider(String urlScheme, FileProvider provider) throws FileSystemException { ((DefaultFileSystemManager)fileSystemManager).addProvider(urlScheme, provider); }
class class_name[name] begin[{] method[addProvider, return_type[void], modifier[public], parameter[urlScheme, provider]] begin[{] Cast(expression=MemberReference(member=fileSystemManager, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, di...
Keyword[public] Keyword[void] identifier[addProvider] operator[SEP] identifier[String] identifier[urlScheme] , identifier[FileProvider] identifier[provider] operator[SEP] Keyword[throws] identifier[FileSystemException] { operator[SEP] operator[SEP] identifier[DefaultFileSystemManager] operator[SEP] identifier[f...
public SizeableLinkedList<WAMInstruction> compileBodyCall(Functor expression, boolean isFirstBody, boolean isLastBody, boolean chainRule, int permVarsRemaining) { SizeableLinkedList<WAMInstruction> instructions = new SizeableLinkedList<WAMInstruction>(); instructions.add(new WAMInstruction(...
class class_name[name] begin[{] method[compileBodyCall, return_type[type[SizeableLinkedList]], modifier[public], parameter[expression, isFirstBody, isLastBody, chainRule, permVarsRemaining]] begin[{] local_variable[type[SizeableLinkedList], instructions] call[instructions.add, parameter...
Keyword[public] identifier[SizeableLinkedList] operator[<] identifier[WAMInstruction] operator[>] identifier[compileBodyCall] operator[SEP] identifier[Functor] identifier[expression] , Keyword[boolean] identifier[isFirstBody] , Keyword[boolean] identifier[isLastBody] , Keyword[boolean] identifier[chainRule] , Keywo...
public MBeanServerConnection getConnection(String jmxUrl, Hashtable attributes, boolean wait) { JMXMonConnection connection = (JMXMonConnection)pool.get(jmxUrl); if (connection == null) { connection = new JMXMonConnection(jmxUrl); pool.put(jmxUrl, connection); } return connection.connect(attribute...
class class_name[name] begin[{] method[getConnection, return_type[type[MBeanServerConnection]], modifier[public], parameter[jmxUrl, attributes, wait]] begin[{] local_variable[type[JMXMonConnection], connection] if[binary_operation[member[.connection], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[MBeanServerConnection] identifier[getConnection] operator[SEP] identifier[String] identifier[jmxUrl] , identifier[Hashtable] identifier[attributes] , Keyword[boolean] identifier[wait] operator[SEP] { identifier[JMXMonConnection] identifier[connection] operator[=] operator[SEP] identi...
public void setBillingRecords(java.util.Collection<BillingRecord> billingRecords) { if (billingRecords == null) { this.billingRecords = null; return; } this.billingRecords = new com.amazonaws.internal.SdkInternalList<BillingRecord>(billingRecords); }
class class_name[name] begin[{] method[setBillingRecords, return_type[void], modifier[public], parameter[billingRecords]] begin[{] if[binary_operation[member[.billingRecords], ==, literal[null]]] begin[{] assign[THIS[member[None.billingRecords]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setBillingRecords] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[BillingRecord] operator[>] identifier[billingRecords] operator[SEP] { Keyword[if] operator[SEP] identifier[billingRecords] operator...
public void marshall(ListAvailableManagementCidrRangesRequest listAvailableManagementCidrRangesRequest, ProtocolMarshaller protocolMarshaller) { if (listAvailableManagementCidrRangesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try {...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listAvailableManagementCidrRangesRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listAvailableManagementCidrRangesRequest], ==, literal[null]]] begin[{] ThrowStatement(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListAvailableManagementCidrRangesRequest] identifier[listAvailableManagementCidrRangesRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listAvailableManagementC...
@Override public @Nonnull MachineImage registerImageBundle(@Nonnull ImageCreateOptions options) throws CloudException, InternalException { APITrace.begin(getProvider(), "Image.registerImageBundle"); try { if( !MachineImageFormat.AWS.equals(options.getBundleFormat()) ) { t...
class class_name[name] begin[{] method[registerImageBundle, return_type[type[MachineImage]], modifier[public], parameter[options]] begin[{] call[APITrace.begin, parameter[call[.getProvider, parameter[]], literal["Image.registerImageBundle"]]] TryStatement(block=[IfStatement(condition=Me...
annotation[@] identifier[Override] Keyword[public] annotation[@] identifier[Nonnull] identifier[MachineImage] identifier[registerImageBundle] operator[SEP] annotation[@] identifier[Nonnull] identifier[ImageCreateOptions] identifier[options] operator[SEP] Keyword[throws] identifier[CloudException] , identifier[Internal...
public void setTimeout(long connectTimeout, long writeTimeout, long readTimeout) { this.httpClient = this.httpClient.newBuilder() .connectTimeout(connectTimeout, TimeUnit.MILLISECONDS) .writeTimeout(writeTimeout, TimeUnit.MILLISECONDS) .readTimeout(readTimeout, TimeUnit.MILLISECONDS) .build(...
class class_name[name] begin[{] method[setTimeout, return_type[void], modifier[public], parameter[connectTimeout, writeTimeout, readTimeout]] begin[{] assign[THIS[member[None.httpClient]], THIS[member[None.httpClient]call[None.newBuilder, parameter[]]call[None.connectTimeout, parameter[member[....
Keyword[public] Keyword[void] identifier[setTimeout] operator[SEP] Keyword[long] identifier[connectTimeout] , Keyword[long] identifier[writeTimeout] , Keyword[long] identifier[readTimeout] operator[SEP] { Keyword[this] operator[SEP] identifier[httpClient] operator[=] Keyword[this] operator[SEP] identifier[http...
public HomeRecord getHomeRecord(J2EEName name) { //LIDB859-4 HomeRecord hr = homesByName.get(name); // d366845.3 return hr; }
class class_name[name] begin[{] method[getHomeRecord, return_type[type[HomeRecord]], modifier[public], parameter[name]] begin[{] local_variable[type[HomeRecord], hr] return[member[.hr]] end[}] END[}]
Keyword[public] identifier[HomeRecord] identifier[getHomeRecord] operator[SEP] identifier[J2EEName] identifier[name] operator[SEP] { identifier[HomeRecord] identifier[hr] operator[=] identifier[homesByName] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[return] i...
public static String serializeObject(final Object obj, final int indentWidth, final boolean onlySerializePublicFields, final ClassFieldCache classFieldCache) { final HashMap<ReferenceEqualityKey<Object>, JSONObject> objToJSONVal = new HashMap<>(); final Object rootJsonVal = toJSONGraph(obj,...
class class_name[name] begin[{] method[serializeObject, return_type[type[String]], modifier[public static], parameter[obj, indentWidth, onlySerializePublicFields, classFieldCache]] begin[{] local_variable[type[HashMap], objToJSONVal] local_variable[type[Object], rootJsonVal] local_varia...
Keyword[public] Keyword[static] identifier[String] identifier[serializeObject] operator[SEP] Keyword[final] identifier[Object] identifier[obj] , Keyword[final] Keyword[int] identifier[indentWidth] , Keyword[final] Keyword[boolean] identifier[onlySerializePublicFields] , Keyword[final] identifier[ClassFieldCache] ide...
@Override public void writeEnc(Writer w) throws IOException { w.write("<!ENTITY "); w.write(mName); w.write(" \""); TextEscaper.outputDTDText(w, mRepl, 0, mRepl.length); w.write("\">"); }
class class_name[name] begin[{] method[writeEnc, return_type[void], modifier[public], parameter[w]] begin[{] call[w.write, parameter[literal["<!ENTITY "]]] call[w.write, parameter[member[.mName]]] call[w.write, parameter[literal[" \""]]] call[Text...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeEnc] operator[SEP] identifier[Writer] identifier[w] operator[SEP] Keyword[throws] identifier[IOException] { identifier[w] operator[SEP] identifier[write] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[w] operat...
public Object getDefault() { Object objDefault = super.getDefault(); if (objDefault == null) objDefault = RunProcessInField.REMOTE_PROCESS; return objDefault; }
class class_name[name] begin[{] method[getDefault, return_type[type[Object]], modifier[public], parameter[]] begin[{] local_variable[type[Object], objDefault] if[binary_operation[member[.objDefault], ==, literal[null]]] begin[{] assign[member[.objDefault], member[RunProcessI...
Keyword[public] identifier[Object] identifier[getDefault] operator[SEP] operator[SEP] { identifier[Object] identifier[objDefault] operator[=] Keyword[super] operator[SEP] identifier[getDefault] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[objDefault] operator[==] Other[null] ope...
static BsonDocument executeCommand(final WriteBinding binding, final String database, final BsonDocument command) { return executeCommand(binding, database, command, new IdentityWriteTransformer<BsonDocument>()); }
class class_name[name] begin[{] method[executeCommand, return_type[type[BsonDocument]], modifier[static], parameter[binding, database, command]] begin[{] return[call[.executeCommand, parameter[member[.binding], member[.database], member[.command], ClassCreator(arguments=[], body=None, constructor_type_...
Keyword[static] identifier[BsonDocument] identifier[executeCommand] operator[SEP] Keyword[final] identifier[WriteBinding] identifier[binding] , Keyword[final] identifier[String] identifier[database] , Keyword[final] identifier[BsonDocument] identifier[command] operator[SEP] { Keyword[return] identifier[execute...