code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.admanager.axis.v201811.CreativeServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.admanager.axis.v201811.CreativeSe...
class class_name[name] begin[{] method[getPort, return_type[type[java]], modifier[public], parameter[serviceEndpointInterface]] begin[{] TryStatement(block=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=com.google.api.ads.admanager.axis.v201811, selectors=[Me...
Keyword[public] identifier[java] operator[SEP] identifier[rmi] operator[SEP] identifier[Remote] identifier[getPort] operator[SEP] identifier[Class] identifier[serviceEndpointInterface] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[rpc] operator[SEP] identifier[Se...
public static Uri getFileUri(Activity activity, File file) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return FileProvider.getUriForFile(activity, activity.getPackageName() + ".file.path.share", file); } return Uri.fromFile(file); }
class class_name[name] begin[{] method[getFileUri, return_type[type[Uri]], modifier[public static], parameter[activity, file]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.N]]] begin[{] return[call[FileProvider.getUriForFile, parameter[m...
Keyword[public] Keyword[static] identifier[Uri] identifier[getFileUri] operator[SEP] identifier[Activity] identifier[activity] , identifier[File] identifier[file] operator[SEP] { Keyword[if] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION] operator[SEP] identifier[SDK_INT] operator[>=] identifi...
public final void mT__52() throws RecognitionException { try { int _type = T__52; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalSARL.g:38:7: ( 'with' ) // InternalSARL.g:38:9: 'with' { match("with"); } state.t...
class class_name[name] begin[{] method[mT__52, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__52, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__52] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__52] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKE...
public String getRelativePathToBenchmarkReportDirectory(File file) { String benchmarkReportDirectoryPath = plannerBenchmarkResult.getBenchmarkReportDirectory().getAbsoluteFile().toURI().getPath(); String filePath = file.getAbsoluteFile().toURI().getPath(); if (!filePath.startsWith(benchmarkRepor...
class class_name[name] begin[{] method[getRelativePathToBenchmarkReportDirectory, return_type[type[String]], modifier[public], parameter[file]] begin[{] local_variable[type[String], benchmarkReportDirectoryPath] local_variable[type[String], filePath] if[call[filePath.startsWith,...
Keyword[public] identifier[String] identifier[getRelativePathToBenchmarkReportDirectory] operator[SEP] identifier[File] identifier[file] operator[SEP] { identifier[String] identifier[benchmarkReportDirectoryPath] operator[=] identifier[plannerBenchmarkResult] operator[SEP] identifier[getBenchmarkReportDirectory]...
private static String getEnumAnnotationFieldName(IAnnotationBinding annotation, String varName) { if (annotation == null) { throw new NullPointerException(); } if (varName == null) { throw new NullPointerException(); } for (IMemberValuePairBinding value : ...
class class_name[name] begin[{] method[getEnumAnnotationFieldName, return_type[type[String]], modifier[private static], parameter[annotation, varName]] begin[{] if[binary_operation[member[.annotation], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[],...
Keyword[private] Keyword[static] identifier[String] identifier[getEnumAnnotationFieldName] operator[SEP] identifier[IAnnotationBinding] identifier[annotation] , identifier[String] identifier[varName] operator[SEP] { Keyword[if] operator[SEP] identifier[annotation] operator[==] Other[null] operator[SEP] { ...
public void downloadUpdates(String deviceName, String resourceGroupName) { downloadUpdatesWithServiceResponseAsync(deviceName, resourceGroupName).toBlocking().last().body(); }
class class_name[name] begin[{] method[downloadUpdates, return_type[void], modifier[public], parameter[deviceName, resourceGroupName]] begin[{] call[.downloadUpdatesWithServiceResponseAsync, parameter[member[.deviceName], member[.resourceGroupName]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[downloadUpdates] operator[SEP] identifier[String] identifier[deviceName] , identifier[String] identifier[resourceGroupName] operator[SEP] { identifier[downloadUpdatesWithServiceResponseAsync] operator[SEP] identifier[deviceName] , identifier[resourceGroupName] operator[...
public static Assignments cluster(Matrix matrix, int numClusters, int numRepetitions) { return cluster(matrix, numClusters, numRepetitions, new RandomSeed(), new I1Function()); }
class class_name[name] begin[{] method[cluster, return_type[type[Assignments]], modifier[public static], parameter[matrix, numClusters, numRepetitions]] begin[{] return[call[.cluster, parameter[member[.matrix], member[.numClusters], member[.numRepetitions], ClassCreator(arguments=[], body=None, constru...
Keyword[public] Keyword[static] identifier[Assignments] identifier[cluster] operator[SEP] identifier[Matrix] identifier[matrix] , Keyword[int] identifier[numClusters] , Keyword[int] identifier[numRepetitions] operator[SEP] { Keyword[return] identifier[cluster] operator[SEP] identifier[matrix] , identifier[num...
@Nullable public static String searchPropertiesFile(String propertiesFile, String[] confPathList) { if (propertiesFile == null || confPathList == null) { return null; } for (String path : confPathList) { String file = PathUtils.concatPath(path, propertiesFile); Properties propertie...
class class_name[name] begin[{] method[searchPropertiesFile, return_type[type[String]], modifier[public static], parameter[propertiesFile, confPathList]] begin[{] if[binary_operation[binary_operation[member[.propertiesFile], ==, literal[null]], ||, binary_operation[member[.confPathList], ==, li...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[String] identifier[searchPropertiesFile] operator[SEP] identifier[String] identifier[propertiesFile] , identifier[String] operator[SEP] operator[SEP] identifier[confPathList] operator[SEP] { Keyword[if] operator[SEP] identifier[proper...
public IfcWorkControlTypeEnum createIfcWorkControlTypeEnumFromString(EDataType eDataType, String initialValue) { IfcWorkControlTypeEnum result = IfcWorkControlTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator o...
class class_name[name] begin[{] method[createIfcWorkControlTypeEnumFromString, return_type[type[IfcWorkControlTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcWorkControlTypeEnum], result] if[binary_operation[member[.result], ==, literal[...
Keyword[public] identifier[IfcWorkControlTypeEnum] identifier[createIfcWorkControlTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcWorkControlTypeEnum] identifier[result] operator[=] identifier[IfcWorkContro...
@Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { if (msg instanceof SendGrpcFrameCommand) { sendGrpcFrame(ctx, (SendGrpcFrameCommand) msg, promise); } else if (msg instanceof SendResponseHeadersCommand) { sendResponseHeaders(ctx, (...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[ctx, msg, promise]] begin[{] if[binary_operation[member[.msg], instanceof, type[SendGrpcFrameCommand]]] begin[{] call[.sendGrpcFrame, parameter[member[.ctx], Cast(expression=Memb...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[ChannelHandlerContext] identifier[ctx] , identifier[Object] identifier[msg] , identifier[ChannelPromise] identifier[promise] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP...
static String typeParametersString(DocEnv env, Symbol sym, boolean full) { if (env.legacyDoclet || sym.type.getTypeArguments().isEmpty()) { return ""; } StringBuilder s = new StringBuilder(); for (Type t : sym.type.getTypeArguments()) { s.append(s.length() == 0 ? ...
class class_name[name] begin[{] method[typeParametersString, return_type[type[String]], modifier[static], parameter[env, sym, full]] begin[{] if[binary_operation[member[env.legacyDoclet], ||, call[sym.type.getTypeArguments, parameter[]]]] begin[{] return[literal[""]] else be...
Keyword[static] identifier[String] identifier[typeParametersString] operator[SEP] identifier[DocEnv] identifier[env] , identifier[Symbol] identifier[sym] , Keyword[boolean] identifier[full] operator[SEP] { Keyword[if] operator[SEP] identifier[env] operator[SEP] identifier[legacyDoclet] operator[||] identifier[...
public static void event(TraceComponent tc, String msg) { if(isTracing()) SibTr.event(tc, msg); }
class class_name[name] begin[{] method[event, return_type[void], modifier[public static], parameter[tc, msg]] begin[{] if[call[.isTracing, parameter[]]] begin[{] call[SibTr.event, parameter[member[.tc], member[.msg]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[event] operator[SEP] identifier[TraceComponent] identifier[tc] , identifier[String] identifier[msg] operator[SEP] { Keyword[if] operator[SEP] identifier[isTracing] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[event]...
public static void unmapByteBuffer(final MappedByteBuffer map) { if(map == null) { return; } map.force(); try { if(Runtime.class.getDeclaredMethod("version") != null) return; // At later Java, the hack below will not work anymore. } catch(NoSuchMethodException e) { // T...
class class_name[name] begin[{] method[unmapByteBuffer, return_type[void], modifier[public static], parameter[map]] begin[{] if[binary_operation[member[.map], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] call[map.force, paramete...
Keyword[public] Keyword[static] Keyword[void] identifier[unmapByteBuffer] operator[SEP] Keyword[final] identifier[MappedByteBuffer] identifier[map] operator[SEP] { Keyword[if] operator[SEP] identifier[map] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } identifie...
public static ExpectedCondition<Boolean> textToBePresentInElementValue(final WebElement element, final String text) { return new ExpectedCondition<Boolean>() { @Override public Boolean apply(WebDriver driver) { try { ...
class class_name[name] begin[{] method[textToBePresentInElementValue, return_type[type[ExpectedCondition]], modifier[public static], parameter[element, text]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[TryStatement(blo...
Keyword[public] Keyword[static] identifier[ExpectedCondition] operator[<] identifier[Boolean] operator[>] identifier[textToBePresentInElementValue] operator[SEP] Keyword[final] identifier[WebElement] identifier[element] , Keyword[final] identifier[String] identifier[text] operator[SEP] { Keyword[return] Keyword...
public IndexedSet<T> transactionsOf(I item) { IndexedSet<T> res = allTransactions.empty(); res.indices().addAll(matrix.getCol(itemToIndex(item))); return res; }
class class_name[name] begin[{] method[transactionsOf, return_type[type[IndexedSet]], modifier[public], parameter[item]] begin[{] local_variable[type[IndexedSet], res] call[res.indices, parameter[]] return[member[.res]] end[}] END[}]
Keyword[public] identifier[IndexedSet] operator[<] identifier[T] operator[>] identifier[transactionsOf] operator[SEP] identifier[I] identifier[item] operator[SEP] { identifier[IndexedSet] operator[<] identifier[T] operator[>] identifier[res] operator[=] identifier[allTransactions] operator[SEP] identifier[empty]...
public void marshall(DeprecateDomainRequest deprecateDomainRequest, ProtocolMarshaller protocolMarshaller) { if (deprecateDomainRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deprecateDoma...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deprecateDomainRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deprecateDomainRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[L...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeprecateDomainRequest] identifier[deprecateDomainRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deprecateDomainRequest] operator[==] Other[null] operator[SE...
public Cassandra doWithCluster(final Consumer<Cluster> configurer) { requireNonNull(configurer, "Cluster conf callbackrequired."); return doWithCluster((cc, c) -> configurer.accept(cc)); }
class class_name[name] begin[{] method[doWithCluster, return_type[type[Cassandra]], modifier[public], parameter[configurer]] begin[{] call[.requireNonNull, parameter[member[.configurer], literal["Cluster conf callbackrequired."]]] return[call[.doWithCluster, parameter[LambdaExpression(b...
Keyword[public] identifier[Cassandra] identifier[doWithCluster] operator[SEP] Keyword[final] identifier[Consumer] operator[<] identifier[Cluster] operator[>] identifier[configurer] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[configurer] , literal[String] operator[SEP] operator[SEP] Keywo...
public static String rightTrim(final String aString) { if (aString == null) { return null; } int end = aString.length() - 1; while ((end >= 0) && (aString.charAt(end) <= ' ')) { end--; } if (end == aString.length() - 1) { return aString; } return aString.substring(0, end + 1); }
class class_name[name] begin[{] method[rightTrim, return_type[type[String]], modifier[public static], parameter[aString]] begin[{] if[binary_operation[member[.aString], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variabl...
Keyword[public] Keyword[static] identifier[String] identifier[rightTrim] operator[SEP] Keyword[final] identifier[String] identifier[aString] operator[SEP] { Keyword[if] operator[SEP] identifier[aString] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } ...
@Override public DataModelIF<U, I>[] split(DataModelIF<U, I> data) { @SuppressWarnings("unchecked") final PrintWriter[] splits = new PrintWriter[2]; TemporalDataModelIF<U, I> temporalModel = null; boolean hasTimestamps = data instanceof TemporalDataModelIF<?, ?>; if (hasTimestamps) { temporalModel = (T...
class class_name[name] begin[{] method[split, return_type[type[DataModelIF]], modifier[public], parameter[data]] begin[{] local_variable[type[PrintWriter], splits] local_variable[type[TemporalDataModelIF], temporalModel] local_variable[type[boolean], hasTimestamps] if[me...
annotation[@] identifier[Override] Keyword[public] identifier[DataModelIF] operator[<] identifier[U] , identifier[I] operator[>] operator[SEP] operator[SEP] identifier[split] operator[SEP] identifier[DataModelIF] operator[<] identifier[U] , identifier[I] operator[>] identifier[data] operator[SEP] { annotation[...
private String getChainSpecification(List<Integer> modelNumbers, List<String> chainIds, int subunit) { if (onTheFly) { if (Collections.max(modelNumbers) > 1) { return chainIds.get(subunit) + "&symop=" + (modelNumbers.get(subunit)+1); } else { // if there is only a single symop, Jmol does not accept the ...
class class_name[name] begin[{] method[getChainSpecification, return_type[type[String]], modifier[private], parameter[modelNumbers, chainIds, subunit]] begin[{] if[member[.onTheFly]] begin[{] if[binary_operation[call[Collections.max, parameter[member[.modelNumbers]]], >,...
Keyword[private] identifier[String] identifier[getChainSpecification] operator[SEP] identifier[List] operator[<] identifier[Integer] operator[>] identifier[modelNumbers] , identifier[List] operator[<] identifier[String] operator[>] identifier[chainIds] , Keyword[int] identifier[subunit] operator[SEP] { Keyword...
@Override public SpatialReferenceSystem queryForFirst( PreparedQuery<SpatialReferenceSystem> preparedQuery) throws SQLException { SpatialReferenceSystem srs = super.queryForFirst(preparedQuery); setDefinition_12_063(srs); return srs; }
class class_name[name] begin[{] method[queryForFirst, return_type[type[SpatialReferenceSystem]], modifier[public], parameter[preparedQuery]] begin[{] local_variable[type[SpatialReferenceSystem], srs] call[.setDefinition_12_063, parameter[member[.srs]]] return[member[.srs]] e...
annotation[@] identifier[Override] Keyword[public] identifier[SpatialReferenceSystem] identifier[queryForFirst] operator[SEP] identifier[PreparedQuery] operator[<] identifier[SpatialReferenceSystem] operator[>] identifier[preparedQuery] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[SpatialR...
public void setVariable(String variableName, Object value, boolean fetchAllVariables) { setVariable(variableName, value, getSourceActivityExecution(), fetchAllVariables); }
class class_name[name] begin[{] method[setVariable, return_type[void], modifier[public], parameter[variableName, value, fetchAllVariables]] begin[{] call[.setVariable, parameter[member[.variableName], member[.value], call[.getSourceActivityExecution, parameter[]], member[.fetchAllVariables]]] ...
Keyword[public] Keyword[void] identifier[setVariable] operator[SEP] identifier[String] identifier[variableName] , identifier[Object] identifier[value] , Keyword[boolean] identifier[fetchAllVariables] operator[SEP] { identifier[setVariable] operator[SEP] identifier[variableName] , identifier[value] , identifi...
public void print() { for (int c = 0; c < nCols; ++c) { System.out.print(" " + values[0][c]); } System.out.println(); }
class class_name[name] begin[{] method[print, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[void] identifier[print] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[c] operator[=] Other[0] operator[SEP] identifier[c] operator[<] identifier[nCols] operator[SEP] operator[++] identifier[c] operator[SEP] { identifier[System] operator[SEP] i...
@Override protected boolean isReGenerationRequired() { // // Use the stale flag method to identify if we should re-generate the XSDs from the sources. // Basically, we should re-generate the XSDs if: // // a) The staleFile does not exist // b) The staleFile exists an...
class class_name[name] begin[{] method[isReGenerationRequired, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] local_variable[type[File], staleFile] local_variable[type[String], debugPrefix] local_variable[type[boolean], stale] if[member[.stale]] b...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[isReGenerationRequired] operator[SEP] operator[SEP] { Keyword[final] identifier[File] identifier[staleFile] operator[=] identifier[getStaleFile] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier...
public void setPercentString(String percentString) { if (percentString == null) { throw new NullPointerException("The input percent sign is null"); } this.percentString = percentString; if (percentString.length() == 1) { this.percent = percentString.charAt(0); ...
class class_name[name] begin[{] method[setPercentString, return_type[void], modifier[public], parameter[percentString]] begin[{] if[binary_operation[member[.percentString], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], p...
Keyword[public] Keyword[void] identifier[setPercentString] operator[SEP] identifier[String] identifier[percentString] operator[SEP] { Keyword[if] operator[SEP] identifier[percentString] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] ...
public boolean isIndexed(String expression) { if (expression == null || expression.length() == 0) { return false; } for (int i = 0; i < expression.length(); i++) { char c = expression.charAt(i); if (c == Nested || c == MappedStart) { return false; } else if (c == IndexedStart) { return...
class class_name[name] begin[{] method[isIndexed, return_type[type[boolean]], modifier[public], parameter[expression]] begin[{] if[binary_operation[binary_operation[member[.expression], ==, literal[null]], ||, binary_operation[call[expression.length, parameter[]], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[boolean] identifier[isIndexed] operator[SEP] identifier[String] identifier[expression] operator[SEP] { Keyword[if] operator[SEP] identifier[expression] operator[==] Other[null] operator[||] identifier[expression] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Ot...
public ServiceFuture<PolicyEventsQueryResultsInner> listQueryResultsForPolicyDefinitionAsync(String subscriptionId, String policyDefinitionName, QueryOptions queryOptions, final ServiceCallback<PolicyEventsQueryResultsInner> serviceCallback) { return ServiceFuture.fromResponse(listQueryResultsForPolicyDefinitio...
class class_name[name] begin[{] method[listQueryResultsForPolicyDefinitionAsync, return_type[type[ServiceFuture]], modifier[public], parameter[subscriptionId, policyDefinitionName, queryOptions, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listQueryResultsForPolicy...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[PolicyEventsQueryResultsInner] operator[>] identifier[listQueryResultsForPolicyDefinitionAsync] operator[SEP] identifier[String] identifier[subscriptionId] , identifier[String] identifier[policyDefinitionName] , identifier[QueryOptions] identifier[query...
public ListInstanceProfilesResult withInstanceProfiles(InstanceProfile... instanceProfiles) { if (this.instanceProfiles == null) { setInstanceProfiles(new java.util.ArrayList<InstanceProfile>(instanceProfiles.length)); } for (InstanceProfile ele : instanceProfiles) { this...
class class_name[name] begin[{] method[withInstanceProfiles, return_type[type[ListInstanceProfilesResult]], modifier[public], parameter[instanceProfiles]] begin[{] if[binary_operation[THIS[member[None.instanceProfiles]], ==, literal[null]]] begin[{] call[.setInstanceProf...
Keyword[public] identifier[ListInstanceProfilesResult] identifier[withInstanceProfiles] operator[SEP] identifier[InstanceProfile] operator[...] identifier[instanceProfiles] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[instanceProfiles] operator[==] Other[null] operator[SEP] {...
protected final void writeMapTo( Map<String,Object> map , RawDataBuffer out ) { if (map == null) { out.writeInt(0); return; } out.writeInt(map.size()); if (!map.isEmpty()) { Iterator<Map.Entry<String,Object>> allEntries = map.entrySet().iterator()...
class class_name[name] begin[{] method[writeMapTo, return_type[void], modifier[final protected], parameter[map, out]] begin[{] if[binary_operation[member[.map], ==, literal[null]]] begin[{] call[out.writeInt, parameter[literal[0]]] return[None] else b...
Keyword[protected] Keyword[final] Keyword[void] identifier[writeMapTo] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] , identifier[RawDataBuffer] identifier[out] operator[SEP] { Keyword[if] operator[SEP] identifier[map] operator[==] Other[null] ope...
@Override public CheckpointStorage createCheckpointStorage(JobID jobId) throws IOException { return new MemoryBackendCheckpointStorage(jobId, getCheckpointPath(), getSavepointPath(), maxStateSize); }
class class_name[name] begin[{] method[createCheckpointStorage, return_type[type[CheckpointStorage]], modifier[public], parameter[jobId]] begin[{] return[ClassCreator(arguments=[MemberReference(member=jobId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(argument...
annotation[@] identifier[Override] Keyword[public] identifier[CheckpointStorage] identifier[createCheckpointStorage] operator[SEP] identifier[JobID] identifier[jobId] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] Keyword[new] identifier[MemoryBackendCheckpointStorage] operator[SEP] iden...
@Override public boolean isViewHolderUpdated(View view) { RecyclerView.ViewHolder holder = getChildViewHolder(view); return holder == null || isViewHolderUpdated(holder); }
class class_name[name] begin[{] method[isViewHolderUpdated, return_type[type[boolean]], modifier[public], parameter[view]] begin[{] local_variable[type[RecyclerView], holder] return[binary_operation[binary_operation[member[.holder], ==, literal[null]], ||, call[.isViewHolderUpdated, parameter[m...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isViewHolderUpdated] operator[SEP] identifier[View] identifier[view] operator[SEP] { identifier[RecyclerView] operator[SEP] identifier[ViewHolder] identifier[holder] operator[=] identifier[getChildViewHolder] operator[SEP] identifier[...
public static Class[] resolveTypeArguments(Type genericType) { Class[] typeArguments = ReflectionUtils.EMPTY_CLASS_ARRAY; if (genericType instanceof ParameterizedType) { ParameterizedType pt = (ParameterizedType) genericType; typeArguments = resolveParameterizedType(pt); ...
class class_name[name] begin[{] method[resolveTypeArguments, return_type[type[Class]], modifier[public static], parameter[genericType]] begin[{] local_variable[type[Class], typeArguments] if[binary_operation[member[.genericType], instanceof, type[ParameterizedType]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Class] operator[SEP] operator[SEP] identifier[resolveTypeArguments] operator[SEP] identifier[Type] identifier[genericType] operator[SEP] { identifier[Class] operator[SEP] operator[SEP] identifier[typeArguments] operator[=] identifier[ReflectionUtils] operator[SEP] ident...
public static <T> Optional<T> find(final Iterable<? extends T> iterable, final Predicate<? super T> predicate) { checkNotNull(iterable, "iterable may not be null"); checkNotNull(predicate, "the predicate may not be null"); for (T t : iterable) { if (predicate.test(t)) { ...
class class_name[name] begin[{] method[find, return_type[type[Optional]], modifier[public static], parameter[iterable, predicate]] begin[{] call[.checkNotNull, parameter[member[.iterable], literal["iterable may not be null"]]] call[.checkNotNull, parameter[member[.predicate], li...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Optional] operator[<] identifier[T] operator[>] identifier[find] operator[SEP] Keyword[final] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[iterable] , Keyword[final] identifier[Predica...
public boolean execute(Campaign campaign) { boolean campaignResult = true; currentCampaign = campaign; campaignStartTimeStamp = new Date(); try { createReport(); for (CampaignRun run : currentCampaign.getRuns()) { if (TestEngine.isAbortedByUser())...
class class_name[name] begin[{] method[execute, return_type[type[boolean]], modifier[public], parameter[campaign]] begin[{] local_variable[type[boolean], campaignResult] assign[member[.currentCampaign], member[.campaign]] assign[member[.campaignStartTimeStamp], ClassCrea...
Keyword[public] Keyword[boolean] identifier[execute] operator[SEP] identifier[Campaign] identifier[campaign] operator[SEP] { Keyword[boolean] identifier[campaignResult] operator[=] literal[boolean] operator[SEP] identifier[currentCampaign] operator[=] identifier[campaign] operator[SEP] identifier[campaignStartTi...
void updateDataFields(int why) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateDataFields"); super.updateDataFields(why); if (bodyList != null && bodyList.isChanged()) getPayload().setField(JmsStreamBodyAccess.BODY_DATA_VALUE, bodyList.getList()); i...
class class_name[name] begin[{] method[updateDataFields, return_type[void], modifier[default], parameter[why]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], ...
Keyword[void] identifier[updateDataFields] operator[SEP] Keyword[int] identifier[why] 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] o...
public I_CmsResourceType getResourceType(String typeName) throws CmsLoaderException { I_CmsResourceType result = m_configuration.getResourceTypeByName(typeName); if (result != null) { return result; } throw new CmsLoaderException(Messages.get().container(Messages.ERR_UNKNOWN...
class class_name[name] begin[{] method[getResourceType, return_type[type[I_CmsResourceType]], modifier[public], parameter[typeName]] begin[{] local_variable[type[I_CmsResourceType], result] if[binary_operation[member[.result], !=, literal[null]]] begin[{] return[member[.resu...
Keyword[public] identifier[I_CmsResourceType] identifier[getResourceType] operator[SEP] identifier[String] identifier[typeName] operator[SEP] Keyword[throws] identifier[CmsLoaderException] { identifier[I_CmsResourceType] identifier[result] operator[=] identifier[m_configuration] operator[SEP] identifier[getResou...
public static <S extends Enum<S>> S getSystemPropertyAsEnum(Class<S> type, String name, S defaultValue) { final String value = getSystemProperty(name, null); if (value != null) { try { final S enumeration = Enum.valueOf(type, value); if (enumeration != null) {...
class class_name[name] begin[{] method[getSystemPropertyAsEnum, return_type[type[S]], modifier[public static], parameter[type, name, defaultValue]] begin[{] local_variable[type[String], value] if[binary_operation[member[.value], !=, literal[null]]] begin[{] TryStatement(bloc...
Keyword[public] Keyword[static] operator[<] identifier[S] Keyword[extends] identifier[Enum] operator[<] identifier[S] operator[>] operator[>] identifier[S] identifier[getSystemPropertyAsEnum] operator[SEP] identifier[Class] operator[<] identifier[S] operator[>] identifier[type] , identifier[String] identifier[name] , ...
public void setSections( List<Section> sections ){ for( Section s: sections ) superSection.addSection(s); }
class class_name[name] begin[{] method[setSections, return_type[void], modifier[public], parameter[sections]] begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add...
Keyword[public] Keyword[void] identifier[setSections] operator[SEP] identifier[List] operator[<] identifier[Section] operator[>] identifier[sections] operator[SEP] { Keyword[for] operator[SEP] identifier[Section] identifier[s] operator[:] identifier[sections] operator[SEP] identifier[superSection] operator[SEP]...
@Override protected int pruneCache() { int count = 0; CacheObj<K, V> comin = null; // 清理过期对象并找出访问最少的对象 Iterator<CacheObj<K, V>> values = cacheMap.values().iterator(); CacheObj<K, V> co; while (values.hasNext()) { co = values.next(); if (co.isExpired() == true) { values.remove(); ...
class class_name[name] begin[{] method[pruneCache, return_type[type[int]], modifier[protected], parameter[]] begin[{] local_variable[type[int], count] local_variable[type[CacheObj], comin] local_variable[type[Iterator], values] local_variable[type[CacheObj], co] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[int] identifier[pruneCache] operator[SEP] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] identifier[CacheObj] operator[<] identifier[K] , identifier[V] operator[>] identifier[comin] operator[=] Other[null] operator[...
public InvService findService(String name) { if (name == null) return null; for (InvService s : services) { if (name.equals(s.getName())) return s; // look for nested servers if (s.getServiceType() == ServiceType.COMPOUND) { InvService result = s.findNestedService(name); if (...
class class_name[name] begin[{] method[findService, return_type[type[InvService]], modifier[public], parameter[name]] begin[{] if[binary_operation[member[.name], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ForStatement(body=BlockStatement...
Keyword[public] identifier[InvService] identifier[findService] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[for] operator[SEP] identifier[InvService] identifier...
public static Map<Integer, Long> getSuspensionLevelsBySubsystem(EntityManager em, SubSystem subSystem) { return findBySubsystem(em, subSystem).getLevels(); }
class class_name[name] begin[{] method[getSuspensionLevelsBySubsystem, return_type[type[Map]], modifier[public static], parameter[em, subSystem]] begin[{] return[call[.findBySubsystem, parameter[member[.em], member[.subSystem]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[Integer] , identifier[Long] operator[>] identifier[getSuspensionLevelsBySubsystem] operator[SEP] identifier[EntityManager] identifier[em] , identifier[SubSystem] identifier[subSystem] operator[SEP] { Keyword[return] identifier[findBySubsyst...
public void setAssessmentRuns(java.util.Collection<AssessmentRun> assessmentRuns) { if (assessmentRuns == null) { this.assessmentRuns = null; return; } this.assessmentRuns = new java.util.ArrayList<AssessmentRun>(assessmentRuns); }
class class_name[name] begin[{] method[setAssessmentRuns, return_type[void], modifier[public], parameter[assessmentRuns]] begin[{] if[binary_operation[member[.assessmentRuns], ==, literal[null]]] begin[{] assign[THIS[member[None.assessmentRuns]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setAssessmentRuns] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[AssessmentRun] operator[>] identifier[assessmentRuns] operator[SEP] { Keyword[if] operator[SEP] identifier[assessmentRuns] operator...
public void stop() { stopWrites(); stopReads(); if (timerRef != null && timerRef.get() != null) { timerRef.get().shutdownNow(); timerRef.set(null); } ndBenchMonitor.resetStats(); }
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] call[.stopWrites, parameter[]] call[.stopReads, parameter[]] if[binary_operation[binary_operation[member[.timerRef], !=, literal[null]], &&, binary_operation[c...
Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { identifier[stopWrites] operator[SEP] operator[SEP] operator[SEP] identifier[stopReads] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[timerRef] operator[!=] Other[null] operator[&&] identifier[timerRef] o...
private Map<String, String> resourceForPath(Path path) { return AuthorizationUtil.resource(STORAGE_PATH_AUTH_RES_TYPE, authResForPath(path)); }
class class_name[name] begin[{] method[resourceForPath, return_type[type[Map]], modifier[private], parameter[path]] begin[{] return[call[AuthorizationUtil.resource, parameter[member[.STORAGE_PATH_AUTH_RES_TYPE], call[.authResForPath, parameter[member[.path]]]]]] end[}] END[}]
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[resourceForPath] operator[SEP] identifier[Path] identifier[path] operator[SEP] { Keyword[return] identifier[AuthorizationUtil] operator[SEP] identifier[resource] operator[SEP] identifier[STORAGE_PATH_AUTH...
public String print( ChronoPrinter<T> printer, String intervalPattern ) { I interval = this.toCanonical(); AttributeQuery attrs = printer.getAttributes(); StringBuilder sb = new StringBuilder(32); int i = 0; int n = intervalPattern.length(); while (i...
class class_name[name] begin[{] method[print, return_type[type[String]], modifier[public], parameter[printer, intervalPattern]] begin[{] local_variable[type[I], interval] local_variable[type[AttributeQuery], attrs] local_variable[type[StringBuilder], sb] local_variable[type[int]...
Keyword[public] identifier[String] identifier[print] operator[SEP] identifier[ChronoPrinter] operator[<] identifier[T] operator[>] identifier[printer] , identifier[String] identifier[intervalPattern] operator[SEP] { identifier[I] identifier[interval] operator[=] Keyword[this] operator[SEP] identifier[toCanonica...
private static void formatElseIfClauseWithNoDependencies( IfThenPair<?> condition, FormattingContext ctx) { ctx.append(" else if (").appendOutputExpression(condition.predicate).append(") "); try (FormattingContext ignored = ctx.enterBlock()) { ctx.appendAll(condition.consequent); } }
class class_name[name] begin[{] method[formatElseIfClauseWithNoDependencies, return_type[void], modifier[private static], parameter[condition, ctx]] begin[{] call[ctx.append, parameter[literal[" else if ("]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=...
Keyword[private] Keyword[static] Keyword[void] identifier[formatElseIfClauseWithNoDependencies] operator[SEP] identifier[IfThenPair] operator[<] operator[?] operator[>] identifier[condition] , identifier[FormattingContext] identifier[ctx] operator[SEP] { identifier[ctx] operator[SEP] identifier[append] operator...
public static Number checkBetween(Number value, Number min, Number max) { notNull(value); notNull(min); notNull(max); double valueDouble = value.doubleValue(); double minDouble = min.doubleValue(); double maxDouble = max.doubleValue(); if (valueDouble < minDouble || valueDouble > maxDouble) { t...
class class_name[name] begin[{] method[checkBetween, return_type[type[Number]], modifier[public static], parameter[value, min, max]] begin[{] call[.notNull, parameter[member[.value]]] call[.notNull, parameter[member[.min]]] call[.notNull, parameter[member[.max]]]...
Keyword[public] Keyword[static] identifier[Number] identifier[checkBetween] operator[SEP] identifier[Number] identifier[value] , identifier[Number] identifier[min] , identifier[Number] identifier[max] operator[SEP] { identifier[notNull] operator[SEP] identifier[value] operator[SEP] operator[SEP] identifier[not...
public void setLocales(Locale... locales) { String[] array = new String[locales.length]; for (int i = 0; i < locales.length; i++) { array[i] = locales[i].toString(); } setLocales(array); }
class class_name[name] begin[{] method[setLocales, return_type[void], modifier[public], parameter[locales]] begin[{] local_variable[type[String], array] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, p...
Keyword[public] Keyword[void] identifier[setLocales] operator[SEP] identifier[Locale] operator[...] identifier[locales] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[array] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[locales] operator[SEP] identifier[length] o...
public Dashboard createDashboard(Dashboard dashboard) throws IOException, TokenExpiredException { String requestUrl = RESOURCE; ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.POST, requestUrl, dashboard); assertValidResponse(response, requestUrl); re...
class class_name[name] begin[{] method[createDashboard, return_type[type[Dashboard]], modifier[public], parameter[dashboard]] begin[{] local_variable[type[String], requestUrl] local_variable[type[ArgusResponse], response] call[.assertValidResponse, parameter[member[.response], m...
Keyword[public] identifier[Dashboard] identifier[createDashboard] operator[SEP] identifier[Dashboard] identifier[dashboard] operator[SEP] Keyword[throws] identifier[IOException] , identifier[TokenExpiredException] { identifier[String] identifier[requestUrl] operator[=] identifier[RESOURCE] operator[SEP] identif...
@Override public ResourceSet<Room> read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); }
class class_name[name] begin[{] method[read, return_type[type[ResourceSet]], modifier[public], parameter[client]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=client, postfix_operators=[], prefix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[ResourceSet] operator[<] identifier[Room] operator[>] identifier[read] operator[SEP] Keyword[final] identifier[TwilioRestClient] identifier[client] operator[SEP] { Keyword[return] Keyword[new] identifier[ResourceSet] operator[<] operator[>] operator[S...
synchronized void flushOperations(RTEditText editor) { Stack<Operation> undoStack = getUndoStack(editor); Stack<Operation> redoStack = getRedoStack(editor); undoStack.clear(); redoStack.clear(); }
class class_name[name] begin[{] method[flushOperations, return_type[void], modifier[synchronized], parameter[editor]] begin[{] local_variable[type[Stack], undoStack] local_variable[type[Stack], redoStack] call[undoStack.clear, parameter[]] call[redoStack.clear, p...
Keyword[synchronized] Keyword[void] identifier[flushOperations] operator[SEP] identifier[RTEditText] identifier[editor] operator[SEP] { identifier[Stack] operator[<] identifier[Operation] operator[>] identifier[undoStack] operator[=] identifier[getUndoStack] operator[SEP] identifier[editor] operator[SEP] operato...
public void setTableSwitchJump(int switchStart, int caseIndex, int jumpTarget) { if (jumpTarget < 0 || itsCodeBufferTop < jumpTarget) throw new IllegalArgumentException("Bad jump target: " + jumpTarget); if (caseIndex < -1) throw new IllegalArgumentException("Bad case ind...
class class_name[name] begin[{] method[setTableSwitchJump, return_type[void], modifier[public], parameter[switchStart, caseIndex, jumpTarget]] begin[{] if[binary_operation[binary_operation[member[.jumpTarget], <, literal[0]], ||, binary_operation[member[.itsCodeBufferTop], <, member[.jumpTarget...
Keyword[public] Keyword[void] identifier[setTableSwitchJump] operator[SEP] Keyword[int] identifier[switchStart] , Keyword[int] identifier[caseIndex] , Keyword[int] identifier[jumpTarget] operator[SEP] { Keyword[if] operator[SEP] identifier[jumpTarget] operator[<] Other[0] operator[||] identifier[itsCodeBufferT...
public TimelineEvent merge(TimelineEvent event, Collection<TimelineEvent> events, TimelineUpdater timelineUpdater) { if (event == null) { // nothing to merge return null; } if (events == null || events.isEmpty()) { // nothing to merge return event...
class class_name[name] begin[{] method[merge, return_type[type[TimelineEvent]], modifier[public], parameter[event, events, timelineUpdater]] begin[{] if[binary_operation[member[.event], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] identifier[TimelineEvent] identifier[merge] operator[SEP] identifier[TimelineEvent] identifier[event] , identifier[Collection] operator[<] identifier[TimelineEvent] operator[>] identifier[events] , identifier[TimelineUpdater] identifier[timelineUpdater] operator[SEP] { Keyword[if] operator[SEP]...
public static GeometryValidationState validate(Geometry geometry) { validationContext.clear(); if (Geometry.LINE_STRING.equals(geometry.getGeometryType())) { IndexedLineString lineString = helper.createLineString(geometry); validateLineString(lineString); } else if (Geometry.LINEAR_RING.equals(geometry.getG...
class class_name[name] begin[{] method[validate, return_type[type[GeometryValidationState]], modifier[public static], parameter[geometry]] begin[{] call[validationContext.clear, parameter[]] if[call[Geometry.LINE_STRING.equals, parameter[call[geometry.getGeometryType, parameter[...
Keyword[public] Keyword[static] identifier[GeometryValidationState] identifier[validate] operator[SEP] identifier[Geometry] identifier[geometry] operator[SEP] { identifier[validationContext] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Geometry] o...
@Override public ListUniqueProblemsResult listUniqueProblems(ListUniqueProblemsRequest request) { request = beforeClientExecution(request); return executeListUniqueProblems(request); }
class class_name[name] begin[{] method[listUniqueProblems, return_type[type[ListUniqueProblemsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListUniqueProblems, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[ListUniqueProblemsResult] identifier[listUniqueProblems] operator[SEP] identifier[ListUniqueProblemsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public static CommerceUserSegmentEntry fetchByG_K(long groupId, String key, boolean retrieveFromCache) { return getPersistence().fetchByG_K(groupId, key, retrieveFromCache); }
class class_name[name] begin[{] method[fetchByG_K, return_type[type[CommerceUserSegmentEntry]], modifier[public static], parameter[groupId, key, retrieveFromCache]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceUserSegmentEntry] identifier[fetchByG_K] operator[SEP] Keyword[long] identifier[groupId] , identifier[String] identifier[key] , Keyword[boolean] identifier[retrieveFromCache] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP...
@FFDCIgnore(value = { NoSuchMethodException.class, NumberFormatException.class, Exception.class }) // Liberty Change for CXF End @SuppressWarnings("unchecked") public static <T> T handleParameter(String value, boolean decoded, C...
class class_name[name] begin[{] method[handleParameter, return_type[type[T]], modifier[public static], parameter[value, decoded, pClass, genericType, paramAnns, pType, message]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] e...
annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[value] operator[=] { identifier[NoSuchMethodException] operator[SEP] Keyword[class] , identifier[NumberFormatException] operator[SEP] Keyword[class] , identifier[Exception] operator[SEP] Keyword[class] } operator[SEP] annotation[@] identifier[Sup...
static Locale getLocale(PageContext pageContext, String name) { Locale loc = null; Object obj = Config.find(pageContext, name); if (obj != null) { if (obj instanceof Locale) { loc = (Locale) obj; } else { loc = parseLocale((String) obj, nu...
class class_name[name] begin[{] method[getLocale, return_type[type[Locale]], modifier[static], parameter[pageContext, name]] begin[{] local_variable[type[Locale], loc] local_variable[type[Object], obj] if[binary_operation[member[.obj], !=, literal[null]]] begin[{] ...
Keyword[static] identifier[Locale] identifier[getLocale] operator[SEP] identifier[PageContext] identifier[pageContext] , identifier[String] identifier[name] operator[SEP] { identifier[Locale] identifier[loc] operator[=] Other[null] operator[SEP] identifier[Object] identifier[obj] operator[=] identifier[Config] ...
private static List<MethodParameterDto> _getMethodParams(Method method) { List<MethodParameterDto> result = new ArrayList<>(); Annotation[][] parameterAnnotations = method.getParameterAnnotations(); Class<?>[] parameterTypes = method.getParameterTypes(); for (int i = 0; i < parameterTyp...
class class_name[name] begin[{] method[_getMethodParams, return_type[type[List]], modifier[private static], parameter[method]] begin[{] local_variable[type[List], result] local_variable[type[Annotation], parameterAnnotations] local_variable[type[Class], parameterTypes] ForStatem...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[MethodParameterDto] operator[>] identifier[_getMethodParams] operator[SEP] identifier[Method] identifier[method] operator[SEP] { identifier[List] operator[<] identifier[MethodParameterDto] operator[>] identifier[result] operator[=] Keyword[...
public V getValue(int index) { int entryPosition = getIntValue(POSITIONS_ARRAY_OFFSET + index * OIntegerSerializer.INT_SIZE); // skip hash code entryPosition += OLongSerializer.LONG_SIZE; if (encryption == null) { // skip key entryPosition += getObjectSizeInDirectMemory(keySerializer, entr...
class class_name[name] begin[{] method[getValue, return_type[type[V]], modifier[public], parameter[index]] begin[{] local_variable[type[int], entryPosition] assign[member[.entryPosition], member[OLongSerializer.LONG_SIZE]] if[binary_operation[member[.encryption], ==, lit...
Keyword[public] identifier[V] identifier[getValue] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[int] identifier[entryPosition] operator[=] identifier[getIntValue] operator[SEP] identifier[POSITIONS_ARRAY_OFFSET] operator[+] identifier[index] operator[*] identifier[OIntegerSerializer] oper...
@Override public Integer getPropertyInteger(Class<?> aClass, String key, int defaultValue) { return getPropertyInteger(new StringBuilder(aClass.getName()).append(".") .append(key).toString(), defaultValue); }
class class_name[name] begin[{] method[getPropertyInteger, return_type[type[Integer]], modifier[public], parameter[aClass, key, defaultValue]] begin[{] return[call[.getPropertyInteger, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operator...
annotation[@] identifier[Override] Keyword[public] identifier[Integer] identifier[getPropertyInteger] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[aClass] , identifier[String] identifier[key] , Keyword[int] identifier[defaultValue] operator[SEP] { Keyword[return] identifier[ge...
private void driveCallBacks(int stage, FailureScope failureScope) { if (tc.isEntryEnabled()) { switch (stage) { case CALLBACK_RECOVERYSTARTED: Tr.entry(tc, "driveCallBacks", new Object[] { "CALLBACK_RECOVERYSTARTED", failureScope }); break; ...
class class_name[name] begin[{] method[driveCallBacks, return_type[void], modifier[private], parameter[stage, failureScope]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['CALLBACK_RECOVERYSTARTED'], statements=[Statement...
Keyword[private] Keyword[void] identifier[driveCallBacks] operator[SEP] Keyword[int] identifier[stage] , identifier[FailureScope] identifier[failureScope] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] { Keyw...
@JsMethod(namespace = "jscomp") public static ChunkOutput compile(Flags flags, File[] inputs) throws IOException { // The PhaseOptimizer logs skipped pass warnings that interfere with capturing // output and errors in the open source runners. phaseLogger.setLevel(Level.OFF); String[] unhandled = upda...
class class_name[name] begin[{] method[compile, return_type[type[ChunkOutput]], modifier[public static], parameter[flags, inputs]] begin[{] call[phaseLogger.setLevel, parameter[member[Level.OFF]]] local_variable[type[String], unhandled] if[binary_operation[member[unhandl...
annotation[@] identifier[JsMethod] operator[SEP] identifier[namespace] operator[=] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[ChunkOutput] identifier[compile] operator[SEP] identifier[Flags] identifier[flags] , identifier[File] operator[SEP] operator[SEP] identifier[inputs] operator[SEP] ...
public Any execute(DeviceImpl device, Any in_any) throws DevFailed { Util.out4.println("GetLoggingLevelCmd::execute(): arrived"); String[] dvsa = null; try { dvsa = extract_DevVarStringArray(in_any); } catch (DevFailed df) { Util.out3.println("GetLoggingLevelCmd::execute() --> Wrong argument ...
class class_name[name] begin[{] method[execute, return_type[type[Any]], modifier[public], parameter[device, in_any]] begin[{] call[Util.out4.println, parameter[literal["GetLoggingLevelCmd::execute(): arrived"]]] local_variable[type[String], dvsa] TryStatement(block=[StatementExp...
Keyword[public] identifier[Any] identifier[execute] operator[SEP] identifier[DeviceImpl] identifier[device] , identifier[Any] identifier[in_any] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[Util] operator[SEP] identifier[out4] operator[SEP] identifier[println] operator[SEP] literal[String] o...
public String getHtmlString(Record recMenu) { String strCellFormat = null; if ((strCellFormat == null) || (strCellFormat.length() == 0)) { ResourceBundle reg = ((BaseApplication)((BaseMenuScreen)this.getScreenField()).getTask().getApplication()).getResources(HtmlConstants.HTML_RE...
class class_name[name] begin[{] method[getHtmlString, return_type[type[String]], modifier[public], parameter[recMenu]] begin[{] local_variable[type[String], strCellFormat] if[binary_operation[binary_operation[member[.strCellFormat], ==, literal[null]], ||, binary_operation[call[strCellF...
Keyword[public] identifier[String] identifier[getHtmlString] operator[SEP] identifier[Record] identifier[recMenu] operator[SEP] { identifier[String] identifier[strCellFormat] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[strCellFormat] operator[==] Other[null] operator[...
public void close() { cancel = true; try { thread.interrupt(); waitFor(); } catch (Throwable ignore) {} try { is.close(); } catch (Exception ignore) {} try { os.close(); } catch (Exception ignore) {} }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.cancel], literal[true]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=interrupt, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { identifier[cancel] operator[=] literal[boolean] operator[SEP] Keyword[try] { identifier[thread] operator[SEP] identifier[interrupt] operator[SEP] operator[SEP] operator[SEP] identifier[waitFor] operator[SEP] operator[SEP] op...
@Override public Iterator<Cell> iterator() { if (cells != null) { return cells.iterator(); } else // if (pbRow != null) { assert pbRow != null; return ConvertibleIteratorUtils.iterateAsCell(pbRow.getCellsList().iterator(), ...
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.cells], !=, literal[null]]] begin[{] return[call[cells.iterator, parameter[]]] else begin[{] AssertStatement(conditio...
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[Cell] operator[>] identifier[iterator] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[cells] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[cells] operator[SEP] ident...
protected void reportUntracedLeak(String resourceType) { logger.error("LEAK: {}.release() was not called before it's garbage-collected. " + "Enable advanced leak reporting to find out where the leak occurred. " + "To enable advanced leak reporting, " + "specify th...
class class_name[name] begin[{] method[reportUntracedLeak, return_type[void], modifier[protected], parameter[resourceType]] begin[{] call[logger.error, parameter[binary_operation[binary_operation[binary_operation[binary_operation[literal["LEAK: {}.release() was not called before it's garbage-co...
Keyword[protected] Keyword[void] identifier[reportUntracedLeak] operator[SEP] identifier[String] identifier[resourceType] operator[SEP] { identifier[logger] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] literal[String] operator[+] literal[String] operator[+] literal[String] operator[+...
public String getCasId() { if (ProcessingStep_Type.featOkTst && ((ProcessingStep_Type)jcasType).casFeat_casId == null) jcasType.jcas.throwFeatMissing("casId", "edu.cmu.lti.oaqa.framework.types.ProcessingStep"); return jcasType.ll_cas.ll_getStringValue(addr, ((ProcessingStep_Type)jcasType).casFeatCode_casI...
class class_name[name] begin[{] method[getCasId, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[ProcessingStep_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] identifier[String] identifier[getCasId] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ProcessingStep_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[ProcessingStep_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SE...
@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException { HttpServletRequest req = (HttpServletRequest)request; HttpServletResponse resp = (HttpServletResponse)response; RequestContext c...
class class_name[name] begin[{] method[doFilter, return_type[void], modifier[public], parameter[request, response, chain]] begin[{] local_variable[type[HttpServletRequest], req] local_variable[type[HttpServletResponse], resp] local_variable[type[RequestContext], context] local_v...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doFilter] operator[SEP] identifier[ServletRequest] identifier[request] , identifier[ServletResponse] identifier[response] , identifier[FilterChain] identifier[chain] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOE...
public CountDownLatchConfig findCountDownLatchConfig(String name) { name = getBaseName(name); CountDownLatchConfig config = lookupByPattern(configPatternMatcher, countDownLatchConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getCountDownLa...
class class_name[name] begin[{] method[findCountDownLatchConfig, return_type[type[CountDownLatchConfig]], modifier[public], parameter[name]] begin[{] assign[member[.name], call[.getBaseName, parameter[member[.name]]]] local_variable[type[CountDownLatchConfig], config] if...
Keyword[public] identifier[CountDownLatchConfig] identifier[findCountDownLatchConfig] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[name] operator[=] identifier[getBaseName] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[CountDownLatchConfig] identifier[confi...
public ConnectionListener createConnectionListener(Credential credential, ManagedConnectionPool mcp) throws ResourceException { try { if (semaphore.tryAcquire(poolConfiguration.getBlockingTimeout(), TimeUnit.MILLISECONDS)) { long start = getInternalStatistics().isEnabl...
class class_name[name] begin[{] method[createConnectionListener, return_type[type[ConnectionListener]], modifier[public], parameter[credential, mcp]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getBlockingTimeout, postfix_operator...
Keyword[public] identifier[ConnectionListener] identifier[createConnectionListener] operator[SEP] identifier[Credential] identifier[credential] , identifier[ManagedConnectionPool] identifier[mcp] operator[SEP] Keyword[throws] identifier[ResourceException] { Keyword[try] { Keyword[if] operator[SEP] id...
public void addDataPoint(final double DATA) { for (DataPoint dataPoint : DATA_LIST) { if (System.currentTimeMillis() - dataPoint.getTimeStamp() > timeFrame) { trashList.add(dataPoint); } } for (DataPoint dataPoint : trashList) { DATA_LIST.remo...
class class_name[name] begin[{] method[addDataPoint, return_type[void], modifier[public], parameter[DATA]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=currentTimeMillis, p...
Keyword[public] Keyword[void] identifier[addDataPoint] operator[SEP] Keyword[final] Keyword[double] identifier[DATA] operator[SEP] { Keyword[for] operator[SEP] identifier[DataPoint] identifier[dataPoint] operator[:] identifier[DATA_LIST] operator[SEP] { Keyword[if] operator[SEP] identifier[System] op...
public String getFirst(String name) { List<String> values = delegate.get(name); if (values != null) { if (values.size() > 0) { return values.get(0); } } return null; }
class class_name[name] begin[{] method[getFirst, return_type[type[String]], modifier[public], parameter[name]] begin[{] local_variable[type[List], values] if[binary_operation[member[.values], !=, literal[null]]] begin[{] if[binary_operation[call[values.size, para...
Keyword[public] identifier[String] identifier[getFirst] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[=] identifier[delegate] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] oper...
private static String escape(Object val) { if (val == null) { return "null"; } else if (val instanceof TraceableStream) { TraceableStream ts = (TraceableStream)val; return ts.getStreamTracer().getStreamId().toString(); } else if (val instanceof FileStatus) { FileStatus stat = (FileSt...
class class_name[name] begin[{] method[escape, return_type[type[String]], modifier[private static], parameter[val]] begin[{] if[binary_operation[member[.val], ==, literal[null]]] begin[{] return[literal["null"]] else begin[{] if[binary_operation[member[.val], ins...
Keyword[private] Keyword[static] identifier[String] identifier[escape] operator[SEP] identifier[Object] identifier[val] operator[SEP] { Keyword[if] operator[SEP] identifier[val] operator[==] Other[null] operator[SEP] { Keyword[return] literal[String] operator[SEP] } Keyword[else] Keyword...
public String convertIfcSimplePropertyTemplateTypeEnumToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
class class_name[name] begin[{] method[convertIfcSimplePropertyTemplateTypeEnumToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], pre...
Keyword[public] identifier[String] identifier[convertIfcSimplePropertyTemplateTypeEnumToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] { Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] oper...
static public Tokenizer getTokenizer(String filename) throws IOException { if(filename.toLowerCase().endsWith("xml")) { return new XmlTokenizer(filename); } else { return new BinaryTokenizer(filename); } }
class class_name[name] begin[{] method[getTokenizer, return_type[type[Tokenizer]], modifier[public static], parameter[filename]] begin[{] if[call[filename.toLowerCase, parameter[]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=filename, postfix_operators=[], prefix...
Keyword[static] Keyword[public] identifier[Tokenizer] identifier[getTokenizer] operator[SEP] identifier[String] identifier[filename] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[filename] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SE...
public final Filter simpleLogicalFilter() throws RecognitionException { Filter filter = null; Token o=null; Filter a =null; Filter b =null; try { // druidG.g:414:2: ( (a= simpleFilter ) | ( (a= simpleFilter WS o= ( AND | OR ) WS b= simpleFilter ) | (o= NOT WS b= simpleFilter ) ) ) int alt189=2; al...
class class_name[name] begin[{] method[simpleLogicalFilter, return_type[type[Filter]], modifier[final public], parameter[]] begin[{] local_variable[type[Filter], filter] local_variable[type[Token], o] local_variable[type[Filter], a] local_variable[type[Filter], b] TrySta...
Keyword[public] Keyword[final] identifier[Filter] identifier[simpleLogicalFilter] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[Filter] identifier[filter] operator[=] Other[null] operator[SEP] identifier[Token] identifier[o] operator[=] Other[null] operator[SEP] identi...
@Override public void assignClient(long clientId) { LOG.info("Assigning client " + clientId + " ..."); synchronized (clientModificationsLock) { newlyAssignedClients.add(clientId); } }
class class_name[name] begin[{] method[assignClient, return_type[void], modifier[public], parameter[clientId]] begin[{] call[LOG.info, parameter[binary_operation[binary_operation[literal["Assigning client "], +, member[.clientId]], +, literal[" ..."]]]] SYNCHRONIZED[member[.clie...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[assignClient] operator[SEP] Keyword[long] identifier[clientId] operator[SEP] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] identifier[clientId] operator[+] literal[String] operator[SEP] operat...
private void readPI() throws XMLStreamException { int ptr = mInputPtr; int start = ptr; char[] inputBuf = mInputBuffer; int inputLen = mInputEnd; outer_loop: while (ptr < inputLen) { char c = inputBuf[ptr++]; if (c < CHAR_SPACE) { ...
class class_name[name] begin[{] method[readPI, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], ptr] local_variable[type[int], start] local_variable[type[char], inputBuf] local_variable[type[int], inputLen] while[binary_operat...
Keyword[private] Keyword[void] identifier[readPI] operator[SEP] operator[SEP] Keyword[throws] identifier[XMLStreamException] { Keyword[int] identifier[ptr] operator[=] identifier[mInputPtr] operator[SEP] Keyword[int] identifier[start] operator[=] identifier[ptr] operator[SEP] Keyword[char] operator[SEP] operator...
public static LineGeneral2D_F64 convert( LineSegment2D_F64 src , LineGeneral2D_F64 ret ) { return convert(src.a,src.b,ret); }
class class_name[name] begin[{] method[convert, return_type[type[LineGeneral2D_F64]], modifier[public static], parameter[src, ret]] begin[{] return[call[.convert, parameter[member[src.a], member[src.b], member[.ret]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[LineGeneral2D_F64] identifier[convert] operator[SEP] identifier[LineSegment2D_F64] identifier[src] , identifier[LineGeneral2D_F64] identifier[ret] operator[SEP] { Keyword[return] identifier[convert] operator[SEP] identifier[src] operator[SEP] identifier[a] , identifie...
public BatchWriteResult withResponses(BatchWriteOperationResponse... responses) { if (this.responses == null) { setResponses(new java.util.ArrayList<BatchWriteOperationResponse>(responses.length)); } for (BatchWriteOperationResponse ele : responses) { this.responses.add(e...
class class_name[name] begin[{] method[withResponses, return_type[type[BatchWriteResult]], modifier[public], parameter[responses]] begin[{] if[binary_operation[THIS[member[None.responses]], ==, literal[null]]] begin[{] call[.setResponses, parameter[ClassCreator(arguments...
Keyword[public] identifier[BatchWriteResult] identifier[withResponses] operator[SEP] identifier[BatchWriteOperationResponse] operator[...] identifier[responses] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[responses] operator[==] Other[null] operator[SEP] { identifi...
public static void callMethod(final Object obj, final String methodName, final Object... args) { try { callMethod(obj, methodName, false, args); } catch (InvocationTargetException e) { JK.throww(e); } }
class class_name[name] begin[{] method[callMethod, return_type[void], modifier[public static], parameter[obj, methodName, args]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=obj, postfix_operators=[], prefix_operators=[], qualifier=, sel...
Keyword[public] Keyword[static] Keyword[void] identifier[callMethod] operator[SEP] Keyword[final] identifier[Object] identifier[obj] , Keyword[final] identifier[String] identifier[methodName] , Keyword[final] identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[try] { identifier...
public static String getBeginActionURI( String requestURI ) { // Translate this to a request for the begin action ("begin.do") for this PageFlowController. InternalStringBuilder retVal = new InternalStringBuilder(); int lastSlash = requestURI.lastIndexOf( '/' ); if ( lastSlash != -1...
class class_name[name] begin[{] method[getBeginActionURI, return_type[type[String]], modifier[public static], parameter[requestURI]] begin[{] local_variable[type[InternalStringBuilder], retVal] local_variable[type[int], lastSlash] if[binary_operation[member[.lastSlash], !=, lite...
Keyword[public] Keyword[static] identifier[String] identifier[getBeginActionURI] operator[SEP] identifier[String] identifier[requestURI] operator[SEP] { identifier[InternalStringBuilder] identifier[retVal] operator[=] Keyword[new] identifier[InternalStringBuilder] operator[SEP] operator[SEP] operator[SEP] Keywor...
@Override public ActionResponse godHandPrologue(final ActionRuntime runtime) { try { return super.godHandPrologue(runtime); } catch (final UserRoleLoginException e) { return redirect(e.getActionClass()); } }
class class_name[name] begin[{] method[godHandPrologue, return_type[type[ActionResponse]], modifier[public], parameter[runtime]] begin[{] TryStatement(block=[ReturnStatement(expression=SuperMethodInvocation(arguments=[MemberReference(member=runtime, postfix_operators=[], prefix_operators=[], qualifier=...
annotation[@] identifier[Override] Keyword[public] identifier[ActionResponse] identifier[godHandPrologue] operator[SEP] Keyword[final] identifier[ActionRuntime] identifier[runtime] operator[SEP] { Keyword[try] { Keyword[return] Keyword[super] operator[SEP] identifier[godHandPrologue] operator[SEP] ide...
public void marshall(GetDomainNameRequest getDomainNameRequest, ProtocolMarshaller protocolMarshaller) { if (getDomainNameRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getDomainNameReques...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getDomainNameRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getDomainNameRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetDomainNameRequest] identifier[getDomainNameRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getDomainNameRequest] operator[==] Other[null] operator[SEP] { ...
public RegistryPoliciesInner listPolicies(String resourceGroupName, String registryName) { return listPoliciesWithServiceResponseAsync(resourceGroupName, registryName).toBlocking().single().body(); }
class class_name[name] begin[{] method[listPolicies, return_type[type[RegistryPoliciesInner]], modifier[public], parameter[resourceGroupName, registryName]] begin[{] return[call[.listPoliciesWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName]]]] end[}] END[}]
Keyword[public] identifier[RegistryPoliciesInner] identifier[listPolicies] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] operator[SEP] { Keyword[return] identifier[listPoliciesWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , ...
public com.google.api.ads.adwords.axis.v201809.cm.TrialAsyncError[] getEntries() { return entries; }
class class_name[name] begin[{] method[getEntries, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.entries]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] identifier[TrialAsyncError] operator[SEP] operator[SE...
public static String latexPreProcessing(String latex) { LOG.debug(" Pre-Processing for: " + latex); if (latex.contains("subarray")) { latex = latex.replaceAll("subarray", "array"); LOG.trace(" Eval replacement of subarray: " + latex); } latex = latex.replaceAll...
class class_name[name] begin[{] method[latexPreProcessing, return_type[type[String]], modifier[public static], parameter[latex]] begin[{] call[LOG.debug, parameter[binary_operation[literal[" Pre-Processing for: "], +, member[.latex]]]] if[call[latex.contains, parameter[literal[...
Keyword[public] Keyword[static] identifier[String] identifier[latexPreProcessing] operator[SEP] identifier[String] identifier[latex] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[latex] operator[SEP] operator[SEP] Keyword[if] operator[SEP] id...
@Override public Socket createSocket(String host, int port) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "SocketFactory attempting to create socket for host: " + host + " port: " + port); // check for SSL addresses if (Util.i...
class class_name[name] begin[{] method[createSocket, return_type[type[Socket]], modifier[public], parameter[host, port]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[m...
annotation[@] identifier[Override] Keyword[public] identifier[Socket] identifier[createSocket] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[i...
public Recommender buildRecommender(final DataModel dataModel, final String recType, final String facType, final int iterations, final int factors) throws RecommenderException { return buildRecommender(dataModel, recType, null, NO_N, factors, iterations, facType); }
class class_name[name] begin[{] method[buildRecommender, return_type[type[Recommender]], modifier[public], parameter[dataModel, recType, facType, iterations, factors]] begin[{] return[call[.buildRecommender, parameter[member[.dataModel], member[.recType], literal[null], member[.NO_N], member[.factors],...
Keyword[public] identifier[Recommender] identifier[buildRecommender] operator[SEP] Keyword[final] identifier[DataModel] identifier[dataModel] , Keyword[final] identifier[String] identifier[recType] , Keyword[final] identifier[String] identifier[facType] , Keyword[final] Keyword[int] identifier[iterations] , Keyword...
private boolean deserialize() { if (!apiVersionMatch()) { // when version mismatch, even when deserialization is successful, // we cannot guarantee data correctness. Old events containing fields that should be // translated/mapped to the new schema will simply not be captured by the new schema. ...
class class_name[name] begin[{] method[deserialize, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[call[.apiVersionMatch, parameter[]]] begin[{] return[literal[false]] else begin[{] if[binary_operation[member[.object], !=, literal[null]]]...
Keyword[private] Keyword[boolean] identifier[deserialize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[apiVersionMatch] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] i...
public <T> T query(MethodMap methodMap, ArgMap argMap, Class<T> responseType ) throws OpenStatesException { BufferedReader reader = null; HttpURLConnection conn = null; String charSet = "utf-8"; try { if ( isCaching(methodMap, argMap) ) { File file = getCacheFile(methodMap, argMap); long fileLength ...
class class_name[name] begin[{] method[query, return_type[type[T]], modifier[public], parameter[methodMap, argMap, responseType]] begin[{] local_variable[type[BufferedReader], reader] local_variable[type[HttpURLConnection], conn] local_variable[type[String], charSet] TryStatemen...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[query] operator[SEP] identifier[MethodMap] identifier[methodMap] , identifier[ArgMap] identifier[argMap] , identifier[Class] operator[<] identifier[T] operator[>] identifier[responseType] operator[SEP] Keyword[throws] identifier[OpenStates...
public static <T extends XMLObject> T transformSamlObject(final OpenSamlConfigBean configBean, final byte[] data, final Class<T> clazz) { try (InputStream in = new ByteArrayInputStream(data)) { val document = configBean.getParserPool().pa...
class class_name[name] begin[{] method[transformSamlObject, return_type[type[T]], modifier[public static], parameter[configBean, data, clazz]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], ...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[XMLObject] operator[>] identifier[T] identifier[transformSamlObject] operator[SEP] Keyword[final] identifier[OpenSamlConfigBean] identifier[configBean] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Ke...
public static <N extends AbstractDTNode<?, ?, ?, N>, D> Iterator<D> transformingLeafIterator(N root, Function<? super N, D> transformer) { return Iterators.transform(leafIterator(root), transformer::apply); }
class class_name[name] begin[{] method[transformingLeafIterator, return_type[type[Iterator]], modifier[public static], parameter[root, transformer]] begin[{] return[call[Iterators.transform, parameter[call[.leafIterator, parameter[member[.root]]], MethodReference(expression=MemberReference(member=trans...
Keyword[public] Keyword[static] operator[<] identifier[N] Keyword[extends] identifier[AbstractDTNode] operator[<] operator[?] , operator[?] , operator[?] , identifier[N] operator[>] , identifier[D] operator[>] identifier[Iterator] operator[<] identifier[D] operator[>] identifier[transformingLeafIterator] operator[S...
public <T> T decode(final Decoder<T> decoder) { BsonBinaryReader reader = createReader(); try { return decoder.decode(reader, DecoderContext.builder().build()); } finally { reader.close(); } }
class class_name[name] begin[{] method[decode, return_type[type[T]], modifier[public], parameter[decoder]] begin[{] local_variable[type[BsonBinaryReader], reader] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=reader, postfix_operators=[], pref...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[decode] operator[SEP] Keyword[final] identifier[Decoder] operator[<] identifier[T] operator[>] identifier[decoder] operator[SEP] { identifier[BsonBinaryReader] identifier[reader] operator[=] identifier[createReader] operator[SEP] oper...
@SuppressWarnings("null") public static boolean isEmpty(@Nullable String text, int treshold) { // check if text block is really empty if (StringUtils.isEmpty(text)) { return true; } // check if text block has more than 20 chars if (text.length() > treshold) { return false; } ...
class class_name[name] begin[{] method[isEmpty, return_type[type[boolean]], modifier[public static], parameter[text, treshold]] begin[{] if[call[StringUtils.isEmpty, parameter[member[.text]]]] begin[{] return[literal[true]] else begin[{] None end[}] i...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[isEmpty] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[text] , Keyword[int] identifier[treshold] operator[SEP] { Keyword[if] operato...
@Override protected void hideStage() { final Stage stage = this.preloaderStage; final ScaleTransition st = new ScaleTransition(); st.setFromX(1.0); st.setToX(0.0); st.setDuration(Duration.millis(400)); st.setNode(stage.getScene().getRoot()); st.setOnFinished(...
class class_name[name] begin[{] method[hideStage, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[Stage], stage] local_variable[type[ScaleTransition], st] call[st.setFromX, parameter[literal[1.0]]] call[st.setToX, parameter[liter...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[hideStage] operator[SEP] operator[SEP] { Keyword[final] identifier[Stage] identifier[stage] operator[=] Keyword[this] operator[SEP] identifier[preloaderStage] operator[SEP] Keyword[final] identifier[ScaleTransition] identifier[st] ope...
@Deprecated protected Currency getEffectiveCurrency() { Currency c = getCurrency(); if (c == null) { ULocale uloc = getLocale(ULocale.VALID_LOCALE); if (uloc == null) { uloc = ULocale.getDefault(Category.FORMAT); } c = Currency.getInsta...
class class_name[name] begin[{] method[getEffectiveCurrency, return_type[type[Currency]], modifier[protected], parameter[]] begin[{] local_variable[type[Currency], c] if[binary_operation[member[.c], ==, literal[null]]] begin[{] local_variable[type[ULocale], uloc] ...
annotation[@] identifier[Deprecated] Keyword[protected] identifier[Currency] identifier[getEffectiveCurrency] operator[SEP] operator[SEP] { identifier[Currency] identifier[c] operator[=] identifier[getCurrency] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] Other[n...
@PostConstruct public void initialize() { final IRI root = rdf.createIRI(TRELLIS_DATA_PREFIX); final IRI rootAuth = rdf.createIRI(TRELLIS_DATA_PREFIX + "#auth"); try (final TrellisDataset dataset = TrellisDataset.createDataset()) { dataset.add(rdf.createQuad(Trellis.PreferAccessC...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[IRI], root] local_variable[type[IRI], rootAuth] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Me...
annotation[@] identifier[PostConstruct] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { Keyword[final] identifier[IRI] identifier[root] operator[=] identifier[rdf] operator[SEP] identifier[createIRI] operator[SEP] identifier[TRELLIS_DATA_PREFIX] operator[SEP] operator[SEP] Keyw...