code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void writeFile(String resourceName, String exportpoint, byte[] content) { writeResource(resourceName, exportpoint, content); }
class class_name[name] begin[{] method[writeFile, return_type[void], modifier[public], parameter[resourceName, exportpoint, content]] begin[{] call[.writeResource, parameter[member[.resourceName], member[.exportpoint], member[.content]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[writeFile] operator[SEP] identifier[String] identifier[resourceName] , identifier[String] identifier[exportpoint] , Keyword[byte] operator[SEP] operator[SEP] identifier[content] operator[SEP] { identifier[writeResource] operator[SEP] identifier[resourceName] , identifi...
private boolean isApplicable(Type.Callable candidate, LifetimeRelation lifetimes, Tuple<? extends SemanticType> args) { Tuple<Type> parameters = candidate.getParameters(); if (parameters.size() != args.size()) { // Differing number of parameters / arguments. Since we don't // support variable-length argume...
class class_name[name] begin[{] method[isApplicable, return_type[type[boolean]], modifier[private], parameter[candidate, lifetimes, args]] begin[{] local_variable[type[Tuple], parameters] if[binary_operation[call[parameters.size, parameter[]], !=, call[args.size, parameter[]]]] begin[{]...
Keyword[private] Keyword[boolean] identifier[isApplicable] operator[SEP] identifier[Type] operator[SEP] identifier[Callable] identifier[candidate] , identifier[LifetimeRelation] identifier[lifetimes] , identifier[Tuple] operator[<] operator[?] Keyword[extends] identifier[SemanticType] operator[>] identifier[args] ope...
protected Content codeTagOutput(Tag tag) { Content result = HtmlTree.CODE(new StringContent(utils.normalizeNewlines(tag.text()))); return result; }
class class_name[name] begin[{] method[codeTagOutput, return_type[type[Content]], modifier[protected], parameter[tag]] begin[{] local_variable[type[Content], result] return[member[.result]] end[}] END[}]
Keyword[protected] identifier[Content] identifier[codeTagOutput] operator[SEP] identifier[Tag] identifier[tag] operator[SEP] { identifier[Content] identifier[result] operator[=] identifier[HtmlTree] operator[SEP] identifier[CODE] operator[SEP] Keyword[new] identifier[StringContent] operator[SEP] identifier[utils...
public static base_response restart(nitro_service client) throws Exception { dbsmonitors restartresource = new dbsmonitors(); return restartresource.perform_operation(client,"restart"); }
class class_name[name] begin[{] method[restart, return_type[type[base_response]], modifier[public static], parameter[client]] begin[{] local_variable[type[dbsmonitors], restartresource] return[call[restartresource.perform_operation, parameter[member[.client], literal["restart"]]]] end[}] EN...
Keyword[public] Keyword[static] identifier[base_response] identifier[restart] operator[SEP] identifier[nitro_service] identifier[client] operator[SEP] Keyword[throws] identifier[Exception] { identifier[dbsmonitors] identifier[restartresource] operator[=] Keyword[new] identifier[dbsmonitors] operator[SEP] operato...
public void multiPartUpload(File file, String bucketName) { AmazonS3 client = new AmazonS3Client(creds); bucketName = ensureValidBucketName(bucketName); List<Bucket> buckets = client.listBuckets(); for (Bucket b : buckets) if (b.getName().equals(bucketName)) { ...
class class_name[name] begin[{] method[multiPartUpload, return_type[void], modifier[public], parameter[file, bucketName]] begin[{] local_variable[type[AmazonS3], client] assign[member[.bucketName], call[.ensureValidBucketName, parameter[member[.bucketName]]]] local_variable[type...
Keyword[public] Keyword[void] identifier[multiPartUpload] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[bucketName] operator[SEP] { identifier[AmazonS3] identifier[client] operator[=] Keyword[new] identifier[AmazonS3Client] operator[SEP] identifier[creds] operator[SEP] operator...
@Override public <T extends SolrDataQuery> T setHighlightOptions(HighlightOptions highlightOptions) { return query.setHighlightOptions(highlightOptions); }
class class_name[name] begin[{] method[setHighlightOptions, return_type[type[T]], modifier[public], parameter[highlightOptions]] begin[{] return[call[query.setHighlightOptions, parameter[member[.highlightOptions]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[SolrDataQuery] operator[>] identifier[T] identifier[setHighlightOptions] operator[SEP] identifier[HighlightOptions] identifier[highlightOptions] operator[SEP] { Keyword[return] identifier[query] operator[SEP]...
public Response createSystemProperty(SystemProperty property) { return restClient.post("system/properties", property, new HashMap<String, String>()); }
class class_name[name] begin[{] method[createSystemProperty, return_type[type[Response]], modifier[public], parameter[property]] begin[{] return[call[restClient.post, parameter[literal["system/properties"], member[.property], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfi...
Keyword[public] identifier[Response] identifier[createSystemProperty] operator[SEP] identifier[SystemProperty] identifier[property] operator[SEP] { Keyword[return] identifier[restClient] operator[SEP] identifier[post] operator[SEP] literal[String] , identifier[property] , Keyword[new] identifier[HashMap] opera...
public static void contextPath(String context) { if (S.blank(context)) ctx = ""; else { E.illegalArgumentIf(!context.startsWith("/"), "context path should start with \"/\""); if (context.endsWith("/")) { ctx = S.str(context).beforeLast("/").toString(); ...
class class_name[name] begin[{] method[contextPath, return_type[void], modifier[public static], parameter[context]] begin[{] if[call[S.blank, parameter[member[.context]]]] begin[{] assign[member[.ctx], literal[""]] else begin[{] call[E.illegalArgument...
Keyword[public] Keyword[static] Keyword[void] identifier[contextPath] operator[SEP] identifier[String] identifier[context] operator[SEP] { Keyword[if] operator[SEP] identifier[S] operator[SEP] identifier[blank] operator[SEP] identifier[context] operator[SEP] operator[SEP] identifier[ctx] operator[=] literal[Stri...
public void clear() { if (!validState) { throw new InvalidStateException(); } try { fileChannel.position(0).truncate(0); sync(); } catch (Exception e) { log.error("Exception in clear()", e); } }
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[]] begin[{] if[member[.validState]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[validState] operator[SEP] { Keyword[throw] Keyword[new] identifier[InvalidStateException] operator[SEP] operator[SEP] operator[SEP] } Keyword[try] { i...
public boolean writeDefinition(OutputStream out) throws IOException { for(int i = 0; i < chunks.size(); i++) { RtfBasicElement rtfElement = (RtfBasicElement)chunks.get(i); if(rtfElement instanceof RtfList) { RtfList rl = (RtfList)rtfElement; rl.writeDefiniti...
class class_name[name] begin[{] method[writeDefinition, return_type[type[boolean]], modifier[public], parameter[out]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=Met...
Keyword[public] Keyword[boolean] identifier[writeDefinition] operator[SEP] identifier[OutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[chunks] operato...
public void unsetResourceAdaptorContext() { this.raContext = null; this.tracer = null; this.sleeEndpoint = null; this.eventLookupFacility = null; this.sbbInterface = null; }
class class_name[name] begin[{] method[unsetResourceAdaptorContext, return_type[void], modifier[public], parameter[]] begin[{] assign[THIS[member[None.raContext]], literal[null]] assign[THIS[member[None.tracer]], literal[null]] assign[THIS[member[None.sleeEndpoin...
Keyword[public] Keyword[void] identifier[unsetResourceAdaptorContext] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[raContext] operator[=] Other[null] operator[SEP] Keyword[this] operator[SEP] identifier[tracer] operator[=] Other[null] operator[SEP] Keyword[this] operator[SEP] identifier[s...
public static Hasher with(Version version, SecureRandom secureRandom, LongPasswordStrategy longPasswordStrategy) { return new Hasher(version, secureRandom, longPasswordStrategy); }
class class_name[name] begin[{] method[with, return_type[type[Hasher]], modifier[public static], parameter[version, secureRandom, longPasswordStrategy]] begin[{] return[ClassCreator(arguments=[MemberReference(member=version, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRe...
Keyword[public] Keyword[static] identifier[Hasher] identifier[with] operator[SEP] identifier[Version] identifier[version] , identifier[SecureRandom] identifier[secureRandom] , identifier[LongPasswordStrategy] identifier[longPasswordStrategy] operator[SEP] { Keyword[return] Keyword[new] identifier[Hasher] opera...
@Override public PutConfigRuleResult putConfigRule(PutConfigRuleRequest request) { request = beforeClientExecution(request); return executePutConfigRule(request); }
class class_name[name] begin[{] method[putConfigRule, return_type[type[PutConfigRuleResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executePutConfigRule, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[PutConfigRuleResult] identifier[putConfigRule] operator[SEP] identifier[PutConfigRuleRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
protected void firePropertyChanged(PropertyEvent event) { // fire all bound listeners (if any) first if (boundListeners != null) { List list = (List) boundListeners.get(event.getPropertyName()); if (list != null) { firePropertyChanged(list, event); } ...
class class_name[name] begin[{] method[firePropertyChanged, return_type[void], modifier[protected], parameter[event]] begin[{] if[binary_operation[member[.boundListeners], !=, literal[null]]] begin[{] local_variable[type[List], list] if[binary_operation[membe...
Keyword[protected] Keyword[void] identifier[firePropertyChanged] operator[SEP] identifier[PropertyEvent] identifier[event] operator[SEP] { Keyword[if] operator[SEP] identifier[boundListeners] operator[!=] Other[null] operator[SEP] { identifier[List] identifier[list] operator[=] operator[SEP] identifie...
public final void popPair() { m_firstFree -= 2; m_map[m_firstFree] = DTM.NULL; m_map[m_firstFree + 1] = DTM.NULL; }
class class_name[name] begin[{] method[popPair, return_type[void], modifier[final public], parameter[]] begin[{] assign[member[.m_firstFree], literal[2]] assign[member[.m_map], member[DTM.NULL]] assign[member[.m_map], member[DTM.NULL]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[popPair] operator[SEP] operator[SEP] { identifier[m_firstFree] operator[-=] Other[2] operator[SEP] identifier[m_map] operator[SEP] identifier[m_firstFree] operator[SEP] operator[=] identifier[DTM] operator[SEP] identifier[NULL] operator[SEP] identifier[m_ma...
public static List<String> split(String str, char separatorChar) { List<String> list = new ArrayList<String>(); if (str == null || str.length() == 0) { return list; } if (str.indexOf(separatorChar) == -1) { list.add(str); return list; } ...
class class_name[name] begin[{] method[split, return_type[type[List]], modifier[public static], parameter[str, separatorChar]] begin[{] local_variable[type[List], list] if[binary_operation[binary_operation[member[.str], ==, literal[null]], ||, binary_operation[call[str.length, parameter...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[split] operator[SEP] identifier[String] identifier[str] , Keyword[char] identifier[separatorChar] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[list] operator[=] Keywor...
@Override public boolean handleOption(String current, Iterator<String> remaining) { proc.debug(DBG_FMGR, "handleOption: current: %s\n", current + ", remaining: " + remaining); return stdFileManager.handleOption(current, remaining); }
class class_name[name] begin[{] method[handleOption, return_type[type[boolean]], modifier[public], parameter[current, remaining]] begin[{] call[proc.debug, parameter[member[.DBG_FMGR], literal["handleOption: current: %s\n"], binary_operation[binary_operation[member[.current], +, literal[", rema...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[handleOption] operator[SEP] identifier[String] identifier[current] , identifier[Iterator] operator[<] identifier[String] operator[>] identifier[remaining] operator[SEP] { identifier[proc] operator[SEP] identifier[debug] operator[SEP]...
public void forEach(final IntObjConsumer<String> consumer) { int counterId = 0; final AtomicBuffer metaDataBuffer = this.metaDataBuffer; for (int i = 0, capacity = metaDataBuffer.capacity(); i < capacity; i += METADATA_LENGTH) { final int recordStatus = metaDataBuffer.ge...
class class_name[name] begin[{] method[forEach, return_type[void], modifier[public], parameter[consumer]] begin[{] local_variable[type[int], counterId] local_variable[type[AtomicBuffer], metaDataBuffer] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(an...
Keyword[public] Keyword[void] identifier[forEach] operator[SEP] Keyword[final] identifier[IntObjConsumer] operator[<] identifier[String] operator[>] identifier[consumer] operator[SEP] { Keyword[int] identifier[counterId] operator[=] Other[0] operator[SEP] Keyword[final] identifier[AtomicBuffer] identifier[metaDa...
public static IStandardConversionService getConversionService(final IEngineConfiguration configuration) { final Object conversionService = configuration.getExecutionAttributes().get(STANDARD_CONVERSION_SERVICE_ATTRIBUTE_NAME); if (conversionService == null || (!(conversionService instanc...
class class_name[name] begin[{] method[getConversionService, return_type[type[IStandardConversionService]], modifier[public static], parameter[configuration]] begin[{] local_variable[type[Object], conversionService] if[binary_operation[binary_operation[member[.conversionService], ==, li...
Keyword[public] Keyword[static] identifier[IStandardConversionService] identifier[getConversionService] operator[SEP] Keyword[final] identifier[IEngineConfiguration] identifier[configuration] operator[SEP] { Keyword[final] identifier[Object] identifier[conversionService] operator[=] identifier[configuration] ope...
public org.grails.datastore.mapping.query.api.Criteria order(String propertyName, String direction) { if (criteria == null) { throwRuntimeException(new IllegalArgumentException("Call to [order] with propertyName [" + propertyName + "]not allowed here.")); } proper...
class class_name[name] begin[{] method[order, return_type[type[org]], modifier[public], parameter[propertyName, direction]] begin[{] if[binary_operation[member[.criteria], ==, literal[null]]] begin[{] call[.throwRuntimeException, parameter[ClassCreator(arguments=[BinaryO...
Keyword[public] identifier[org] operator[SEP] identifier[grails] operator[SEP] identifier[datastore] operator[SEP] identifier[mapping] operator[SEP] identifier[query] operator[SEP] identifier[api] operator[SEP] identifier[Criteria] identifier[order] operator[SEP] identifier[String] identifier[propertyName] , identifie...
public static boolean isReservedVariable( String variableName ){ return ReservedVariables.NOW.equalsIgnoreCase( variableName ) || ReservedVariables.WORKFLOW_INSTANCE_ID.equalsIgnoreCase( variableName ); }
class class_name[name] begin[{] method[isReservedVariable, return_type[type[boolean]], modifier[public static], parameter[variableName]] begin[{] return[binary_operation[call[ReservedVariables.NOW.equalsIgnoreCase, parameter[member[.variableName]]], ||, call[ReservedVariables.WORKFLOW_INSTANCE_ID.equal...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isReservedVariable] operator[SEP] identifier[String] identifier[variableName] operator[SEP] { Keyword[return] identifier[ReservedVariables] operator[SEP] identifier[NOW] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] identifier[variableName] o...
private Pair<Integer, Integer> readWebPImageSize() { final Pair<Integer, Integer> dimensions = WebpUtil.getSize(getInputStream()); if (dimensions != null) { mWidth = dimensions.first; mHeight = dimensions.second; } return dimensions; }
class class_name[name] begin[{] method[readWebPImageSize, return_type[type[Pair]], modifier[private], parameter[]] begin[{] local_variable[type[Pair], dimensions] if[binary_operation[member[.dimensions], !=, literal[null]]] begin[{] assign[member[.mWidth], member...
Keyword[private] identifier[Pair] operator[<] identifier[Integer] , identifier[Integer] operator[>] identifier[readWebPImageSize] operator[SEP] operator[SEP] { Keyword[final] identifier[Pair] operator[<] identifier[Integer] , identifier[Integer] operator[>] identifier[dimensions] operator[=] identifier[WebpUti...
protected void ratio(List<MethodDto> performanceVOList, String entryName) { double allTotalTime = this.getAllTotalTime(performanceVOList, entryName); Map<String, Double> interfaceTotalTimeMap = this.getInterfaceTotalTime(performanceVOList); for (MethodDto performanceVO : performanceVOList) { String interfa...
class class_name[name] begin[{] method[ratio, return_type[void], modifier[protected], parameter[performanceVOList, entryName]] begin[{] local_variable[type[double], allTotalTime] local_variable[type[Map], interfaceTotalTimeMap] ForStatement(body=BlockStatement(label=None, statements=[Lo...
Keyword[protected] Keyword[void] identifier[ratio] operator[SEP] identifier[List] operator[<] identifier[MethodDto] operator[>] identifier[performanceVOList] , identifier[String] identifier[entryName] operator[SEP] { Keyword[double] identifier[allTotalTime] operator[=] Keyword[this] operator[SEP] identifier[get...
public static Set<Class<?>> getAllAnnotatedClasses(final String packagePath, final Class<? extends Annotation> annotationClass) throws ClassNotFoundException, IOException, URISyntaxException { final List<File> directories = ClassExtensions.getDirectoriesFromResources(packagePath, true); final Set<Class<?>> ...
class class_name[name] begin[{] method[getAllAnnotatedClasses, return_type[type[Set]], modifier[public static], parameter[packagePath, annotationClass]] begin[{] local_variable[type[List], directories] local_variable[type[Set], classes] ForStatement(body=BlockStatement(label=None, state...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[getAllAnnotatedClasses] operator[SEP] Keyword[final] identifier[String] identifier[packagePath] , Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier...
public boolean checkPackageGroups(String groupname, String pkgNameFormList) { String[] pkgPatterns = pkgNameFormList.split(":"); if (groupList.contains(groupname)) { initMessages(); messages.warning("doclet.Groupname_already_used", groupname); return false; } ...
class class_name[name] begin[{] method[checkPackageGroups, return_type[type[boolean]], modifier[public], parameter[groupname, pkgNameFormList]] begin[{] local_variable[type[String], pkgPatterns] if[call[groupList.contains, parameter[member[.groupname]]]] begin[{] ...
Keyword[public] Keyword[boolean] identifier[checkPackageGroups] operator[SEP] identifier[String] identifier[groupname] , identifier[String] identifier[pkgNameFormList] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[pkgPatterns] operator[=] identifier[pkgNameFormList] operator[SEP] ide...
@Override public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "getObjectInstance" + Util.i...
class class_name[name] begin[{] method[getObjectInstance, return_type[type[Object]], modifier[public], parameter[obj, name, nameCtx, environment]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getObjectInstance] operator[SEP] identifier[Object] identifier[obj] , identifier[Name] identifier[name] , identifier[Context] identifier[nameCtx] , identifier[Hashtable] operator[<] operator[?] , operator[?] operator[>] identifier[envi...
public void ldapSync(Object groupIdOrPath) throws GitLabApiException { post(Response.Status.NO_CONTENT, (Form)null, "groups", getGroupIdOrPath(groupIdOrPath), "ldap_sync"); }
class class_name[name] begin[{] method[ldapSync, return_type[void], modifier[public], parameter[groupIdOrPath]] begin[{] call[.post, parameter[member[Response.Status.NO_CONTENT], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), type=R...
Keyword[public] Keyword[void] identifier[ldapSync] operator[SEP] identifier[Object] identifier[groupIdOrPath] operator[SEP] Keyword[throws] identifier[GitLabApiException] { identifier[post] operator[SEP] identifier[Response] operator[SEP] identifier[Status] operator[SEP] identifier[NO_CONTENT] , operator[SEP] i...
@Override public StopTaskResult stopTask(StopTaskRequest request) { request = beforeClientExecution(request); return executeStopTask(request); }
class class_name[name] begin[{] method[stopTask, return_type[type[StopTaskResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeStopTask, parameter[member[.request]]]] end[}] E...
annotation[@] identifier[Override] Keyword[public] identifier[StopTaskResult] identifier[stopTask] operator[SEP] identifier[StopTaskRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[...
public static String readFile(String string) { InputStream inputStream = getInputStream(string); if (inputStream != null) { return new String(readStream(inputStream)); } return null; }
class class_name[name] begin[{] method[readFile, return_type[type[String]], modifier[public static], parameter[string]] begin[{] local_variable[type[InputStream], inputStream] if[binary_operation[member[.inputStream], !=, literal[null]]] begin[{] return[ClassCreator(argument...
Keyword[public] Keyword[static] identifier[String] identifier[readFile] operator[SEP] identifier[String] identifier[string] operator[SEP] { identifier[InputStream] identifier[inputStream] operator[=] identifier[getInputStream] operator[SEP] identifier[string] operator[SEP] operator[SEP] Keyword[if] operator[SEP]...
private void writeOffsetsToMainOffsetFile(Map<Integer, Long> partitionToOffsetMap) throws IOException { LOG.info("Saving the following offset {} to {}", partitionToOffsetMap, checkPointFilePath); //Creating a marker file (overwriting if it already exists) to mark that we are going to write offsets out the offs...
class class_name[name] begin[{] method[writeOffsetsToMainOffsetFile, return_type[void], modifier[private], parameter[partitionToOffsetMap]] begin[{] call[LOG.info, parameter[literal["Saving the following offset {} to {}"], member[.partitionToOffsetMap], member[.checkPointFilePath]]] Try...
Keyword[private] Keyword[void] identifier[writeOffsetsToMainOffsetFile] operator[SEP] identifier[Map] operator[<] identifier[Integer] , identifier[Long] operator[>] identifier[partitionToOffsetMap] operator[SEP] Keyword[throws] identifier[IOException] { identifier[LOG] operator[SEP] identifier[info] operator[SE...
private static final int getR(final double theta, final double alpha, final double p) { final double split1 = (p * (alpha + 1.0)) / 2.0; if (theta > split1) { return 0; } if (theta > (alpha * split1)) { return 1; } return 2; }
class class_name[name] begin[{] method[getR, return_type[type[int]], modifier[final private static], parameter[theta, alpha, p]] begin[{] local_variable[type[double], split1] if[binary_operation[member[.theta], >, member[.split1]]] begin[{] return[literal[0]] else be...
Keyword[private] Keyword[static] Keyword[final] Keyword[int] identifier[getR] operator[SEP] Keyword[final] Keyword[double] identifier[theta] , Keyword[final] Keyword[double] identifier[alpha] , Keyword[final] Keyword[double] identifier[p] operator[SEP] { Keyword[final] Keyword[double] identifier[split1] operat...
public MultipleResultCollectorContext<DPO> collect(Collection<ResultCollector<?, DPO>> resultCollectors) { if (resultCollectors != null) { addedTriggers.addAll(resultCollectors); addedDataProviders.addAll(resultCollectors); } // Change context return new Multiple...
class class_name[name] begin[{] method[collect, return_type[type[MultipleResultCollectorContext]], modifier[public], parameter[resultCollectors]] begin[{] if[binary_operation[member[.resultCollectors], !=, literal[null]]] begin[{] call[addedTriggers.addAll, parameter[mem...
Keyword[public] identifier[MultipleResultCollectorContext] operator[<] identifier[DPO] operator[>] identifier[collect] operator[SEP] identifier[Collection] operator[<] identifier[ResultCollector] operator[<] operator[?] , identifier[DPO] operator[>] operator[>] identifier[resultCollectors] operator[SEP] { Keywo...
@SuppressWarnings("deprecation") @Override public ExtensionProcessor createExtensionProcessor(IServletContext iServletContext) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "WAB createExtensionProcessor", iServletContext.getContextPath()); ...
class class_name[name] begin[{] method[createExtensionProcessor, return_type[type[ExtensionProcessor]], modifier[public], parameter[iServletContext]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[ExtensionProcessor] identifier[createExtensionProcessor] operator[SEP] identifier[IServletContext] identifier[iServletContext] operator[SEP] Keyword[throws] identifier[Exc...
void handlerProcessTask(Task task) { assertDispatcherThread(); SerialTaskQueue taskQueue = mQueuesMap.get(task.subscriberCallback.queue); if (taskQueue == null) { taskQueue = new SerialTaskQueue(task.subscriberCallback.queue); mQueuesMap.put(task.subscriberCallback.queue, taskQueue); mQueuesList.add(t...
class class_name[name] begin[{] method[handlerProcessTask, return_type[void], modifier[default], parameter[task]] begin[{] call[.assertDispatcherThread, parameter[]] local_variable[type[SerialTaskQueue], taskQueue] if[binary_operation[member[.taskQueue], ==, literal[null...
Keyword[void] identifier[handlerProcessTask] operator[SEP] identifier[Task] identifier[task] operator[SEP] { identifier[assertDispatcherThread] operator[SEP] operator[SEP] operator[SEP] identifier[SerialTaskQueue] identifier[taskQueue] operator[=] identifier[mQueuesMap] operator[SEP] identifier[get] operator[SEP...
static SortedRangeSet copyOf(Type type, Iterable<Range> ranges) { return new Builder(type).addAll(ranges).build(); }
class class_name[name] begin[{] method[copyOf, return_type[type[SortedRangeSet]], modifier[static], parameter[type, ranges]] begin[{] return[ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=...
Keyword[static] identifier[SortedRangeSet] identifier[copyOf] operator[SEP] identifier[Type] identifier[type] , identifier[Iterable] operator[<] identifier[Range] operator[>] identifier[ranges] operator[SEP] { Keyword[return] Keyword[new] identifier[Builder] operator[SEP] identifier[type] operator[SEP] operator...
public List<SqlDesc> createSqlDescs(EntityDesc entityDesc) { List<SqlDesc> results = new ArrayList<SqlDesc>(); if (entityDesc.getIdEntityPropertyDescs().size() > 0) { results.add( createSqlDesc(entityDesc, selectByIdFileName, Constants.SELECT_BY_ID_SQL_TEMPLATE)); if (entityDesc.getVersion...
class class_name[name] begin[{] method[createSqlDescs, return_type[type[List]], modifier[public], parameter[entityDesc]] begin[{] local_variable[type[List], results] if[binary_operation[call[entityDesc.getIdEntityPropertyDescs, parameter[]], >, literal[0]]] begin[{] ...
Keyword[public] identifier[List] operator[<] identifier[SqlDesc] operator[>] identifier[createSqlDescs] operator[SEP] identifier[EntityDesc] identifier[entityDesc] operator[SEP] { identifier[List] operator[<] identifier[SqlDesc] operator[>] identifier[results] operator[=] Keyword[new] identifier[ArrayList] opera...
public CompleteMultipartUploadResult onCompletion(List<PartETag> partETags) { return s3.completeMultipartUpload( new CompleteMultipartUploadRequest( req.getBucketName(), req.getKey(), uploadId, partETags)); }
class class_name[name] begin[{] method[onCompletion, return_type[type[CompleteMultipartUploadResult]], modifier[public], parameter[partETags]] begin[{] return[call[s3.completeMultipartUpload, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getBucketName, postfix_operators=[], pr...
Keyword[public] identifier[CompleteMultipartUploadResult] identifier[onCompletion] operator[SEP] identifier[List] operator[<] identifier[PartETag] operator[>] identifier[partETags] operator[SEP] { Keyword[return] identifier[s3] operator[SEP] identifier[completeMultipartUpload] operator[SEP] Keyword[new] identifi...
protected final PrcPurchaseReturnLineSave<RS> lazyGetPrcPurchaseReturnLineSave( final Map<String, Object> pAddParam) throws Exception { @SuppressWarnings("unchecked") PrcPurchaseReturnLineSave<RS> proc = (PrcPurchaseReturnLineSave<RS>) this.processorsMap .get(PrcPurchaseReturnLineS...
class class_name[name] begin[{] method[lazyGetPrcPurchaseReturnLineSave, return_type[type[PrcPurchaseReturnLineSave]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcPurchaseReturnLineSave], proc] if[binary_operation[member[.proc], ==, literal[null]]] b...
Keyword[protected] Keyword[final] identifier[PrcPurchaseReturnLineSave] operator[<] identifier[RS] operator[>] identifier[lazyGetPrcPurchaseReturnLineSave] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] id...
public SettingsPack uploadRateLimit(int value) { sp.set_int(settings_pack.int_types.upload_rate_limit.swigValue(), value); return this; }
class class_name[name] begin[{] method[uploadRateLimit, return_type[type[SettingsPack]], modifier[public], parameter[value]] begin[{] call[sp.set_int, parameter[call[settings_pack.int_types.upload_rate_limit.swigValue, parameter[]], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[SettingsPack] identifier[uploadRateLimit] operator[SEP] Keyword[int] identifier[value] operator[SEP] { identifier[sp] operator[SEP] identifier[set_int] operator[SEP] identifier[settings_pack] operator[SEP] identifier[int_types] operator[SEP] identifier[upload_rate_limit] operator[SEP] ...
@XmlElementDecl(namespace = "", name = "fahrradraum") public JAXBElement<Boolean> createFahrradraum(Boolean value) { return new JAXBElement<Boolean>(_Fahrradraum_QNAME, Boolean.class, null, value); }
class class_name[name] begin[{] method[createFahrradraum, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Fahrradraum_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_o...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Boolean] operator[>] identifier[createFahrradraum] operator[SEP] identifier[Boolean] ident...
void doGroupEnd(String group, Object args) { checkOpen(); JsonObject message = createMessage(args) .putString("action", "endGroup") .putString("group", group); if (open && !paused) { if (log.isDebugEnabled()) { log.debug(String.format("%s - Group end: Group[group=%s, args=%s]",...
class class_name[name] begin[{] method[doGroupEnd, return_type[void], modifier[default], parameter[group, args]] begin[{] call[.checkOpen, parameter[]] local_variable[type[JsonObject], message] if[binary_operation[member[.open], &&, member[.paused]]] begin[{] ...
Keyword[void] identifier[doGroupEnd] operator[SEP] identifier[String] identifier[group] , identifier[Object] identifier[args] operator[SEP] { identifier[checkOpen] operator[SEP] operator[SEP] operator[SEP] identifier[JsonObject] identifier[message] operator[=] identifier[createMessage] operator[SEP] identifier[...
private void setNoValueBorder( WritableRaster pitWR, int width, int height, WritableRaster hillshadeWR ) { for( int y = 2; y < height - 2; y++ ) { for( int x = 2; x < width - 2; x++ ) { if (pitWR.getSampleDouble(x, y, 0) == -9999.0) { hillshadeWR.setSample(x, y, 0...
class class_name[name] begin[{] method[setNoValueBorder, return_type[void], modifier[private], parameter[pitWR, width, height, hillshadeWR]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(o...
Keyword[private] Keyword[void] identifier[setNoValueBorder] operator[SEP] identifier[WritableRaster] identifier[pitWR] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[WritableRaster] identifier[hillshadeWR] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[y] o...
public void save(File file, String comment, boolean saveDefaults) throws IOException { save(file, comment, saveDefaults, null); }
class class_name[name] begin[{] method[save, return_type[void], modifier[public], parameter[file, comment, saveDefaults]] begin[{] call[.save, parameter[member[.file], member[.comment], member[.saveDefaults], literal[null]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[save] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[comment] , Keyword[boolean] identifier[saveDefaults] operator[SEP] Keyword[throws] identifier[IOException] { identifier[save] operator[SEP] identifier[file] , identifier[comment] , i...
void smoothScrollTo(int x, int y, int velocity) { if (getChildCount() == 0) { // Nothing to do. setScrollingCacheEnabled(false); return; } int sx = getScrollX(); int sy = getScrollY(); int dx = x - sx; int dy = y - sy; if (dx ==...
class class_name[name] begin[{] method[smoothScrollTo, return_type[void], modifier[default], parameter[x, y, velocity]] begin[{] if[binary_operation[call[.getChildCount, parameter[]], ==, literal[0]]] begin[{] call[.setScrollingCacheEnabled, parameter[literal[false]]] ...
Keyword[void] identifier[smoothScrollTo] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[velocity] operator[SEP] { Keyword[if] operator[SEP] identifier[getChildCount] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { identifier[setScrol...
public @Nullable JSONArray getNumericFilters() { try { String value = get(KEY_NUMERIC_FILTERS); if (value != null) { return new JSONArray(value); } } catch (JSONException e) { // Will return null } return null; }
class class_name[name] begin[{] method[getNumericFilters, return_type[type[JSONArray]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=KEY_...
Keyword[public] annotation[@] identifier[Nullable] identifier[JSONArray] identifier[getNumericFilters] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[value] operator[=] identifier[get] operator[SEP] identifier[KEY_NUMERIC_FILTERS] operator[SEP] operator[SEP] Keyword[if] ope...
static boolean essentiallyEqualsTo(RedisNodeDescription o1, RedisNodeDescription o2) { if (o2 == null) { return false; } if (o1.getRole() != o2.getRole()) { return false; } if (!o1.getUri().equals(o2.getUri())) { return false; } ...
class class_name[name] begin[{] method[essentiallyEqualsTo, return_type[type[boolean]], modifier[static], parameter[o1, o2]] begin[{] if[binary_operation[member[.o2], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] if[bin...
Keyword[static] Keyword[boolean] identifier[essentiallyEqualsTo] operator[SEP] identifier[RedisNodeDescription] identifier[o1] , identifier[RedisNodeDescription] identifier[o2] operator[SEP] { Keyword[if] operator[SEP] identifier[o2] operator[==] Other[null] operator[SEP] { Keyword[return] literal[bo...
private final void loadFileId(final ToolContext context) { final Integer lastDot; // Location of the extension dot final Object currentFileObj; // File's name as received String currentFile; // File's name if (context.containsKey(ConfigToolConstants.CURRENT_FILE_NAME_KEY)...
class class_name[name] begin[{] method[loadFileId, return_type[void], modifier[final private], parameter[context]] begin[{] local_variable[type[Integer], lastDot] local_variable[type[Object], currentFileObj] local_variable[type[String], currentFile] if[call[context.conta...
Keyword[private] Keyword[final] Keyword[void] identifier[loadFileId] operator[SEP] Keyword[final] identifier[ToolContext] identifier[context] operator[SEP] { Keyword[final] identifier[Integer] identifier[lastDot] operator[SEP] Keyword[final] identifier[Object] identifier[currentFileObj] operator[SEP] identifier[...
public void recover(final Workbook wb) { Sheet sheet = wb.getSheet(this.sheetName); this.getSerialCachedCells().recover(sheet); this.getSerialFinalCommentMap().recover(sheet); this.getFormCommand().recover(sheet); if (this.getShiftMap() != null) { for (Map.Entry<String, ConfigRangeAttrs> entry : this...
class class_name[name] begin[{] method[recover, return_type[void], modifier[public], parameter[wb]] begin[{] local_variable[type[Sheet], sheet] THIS[call[None.getSerialCachedCells, parameter[]]call[None.recover, parameter[member[.sheet]]]] THIS[call[None.getSerialFinalCo...
Keyword[public] Keyword[void] identifier[recover] operator[SEP] Keyword[final] identifier[Workbook] identifier[wb] operator[SEP] { identifier[Sheet] identifier[sheet] operator[=] identifier[wb] operator[SEP] identifier[getSheet] operator[SEP] Keyword[this] operator[SEP] identifier[sheetName] operator[SEP] operat...
public static byte[] hash(InputStream in) throws IOException { if (HASH_DIGEST == null) { throw new EvernoteUtilException(EDAM_HASH_ALGORITHM + " not supported", new NoSuchAlgorithmException(EDAM_HASH_ALGORITHM)); } byte[] buf = new byte[1024]; int n; while ((n = in....
class class_name[name] begin[{] method[hash, return_type[type[byte]], modifier[public static], parameter[in]] begin[{] if[binary_operation[member[.HASH_DIGEST], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(me...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[hash] operator[SEP] identifier[InputStream] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[HASH_DIGEST] operator[==] Other[null] operator[SEP] { Keyword[thr...
public void verifySamlProfileRequestIfNeeded(final RequestAbstractType profileRequest, final MetadataResolver resolver, final HttpServletRequest request, final MessageContex...
class class_name[name] begin[{] method[verifySamlProfileRequestIfNeeded, return_type[void], modifier[public], parameter[profileRequest, resolver, request, context]] begin[{] local_variable[type[val], roleDescriptorResolver] call[LOGGER.debug, parameter[literal["Validating signature for ...
Keyword[public] Keyword[void] identifier[verifySamlProfileRequestIfNeeded] operator[SEP] Keyword[final] identifier[RequestAbstractType] identifier[profileRequest] , Keyword[final] identifier[MetadataResolver] identifier[resolver] , Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] id...
private String getsSupposedError(String text, int position) { int ini; boolean end = false; String word = text; // Indicates where the position of the supposed word begin for (ini = position; ini >= 0; ini--) if (Character.isWhitespace(text.charAt(ini)) || isOpenBracket(text.charAt(ini))) ...
class class_name[name] begin[{] method[getsSupposedError, return_type[type[String]], modifier[private], parameter[text, position]] begin[{] local_variable[type[int], ini] local_variable[type[boolean], end] local_variable[type[String], word] ForStatement(body=IfStatement(conditio...
Keyword[private] identifier[String] identifier[getsSupposedError] operator[SEP] identifier[String] identifier[text] , Keyword[int] identifier[position] operator[SEP] { Keyword[int] identifier[ini] operator[SEP] Keyword[boolean] identifier[end] operator[=] literal[boolean] operator[SEP] identifier[String] identi...
public static String getDateTime(Date date, Format format) { StringBuffer buf = new StringBuffer(); buf.append(getDate(date, format)); buf.append(" "); buf.append(getTime(date, format)); return buf.toString(); }
class class_name[name] begin[{] method[getDateTime, return_type[type[String]], modifier[public static], parameter[date, format]] begin[{] local_variable[type[StringBuffer], buf] call[buf.append, parameter[call[.getDate, parameter[member[.date], member[.format]]]]] call[b...
Keyword[public] Keyword[static] identifier[String] identifier[getDateTime] operator[SEP] identifier[Date] identifier[date] , identifier[Format] identifier[format] operator[SEP] { identifier[StringBuffer] identifier[buf] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] ...
public String processHTTPAPIRequest( String urlString, JSONObject request, GenericUser authenticationUser, String requestType, String[] requestParameters, String... requestHedaers) throws CertificateException, IOException, JSONException { log.debug("API request: " + request.toString(4)); Strin...
class class_name[name] begin[{] method[processHTTPAPIRequest, return_type[type[String]], modifier[public], parameter[urlString, request, authenticationUser, requestType, requestParameters, requestHedaers]] begin[{] call[log.debug, parameter[binary_operation[literal["API request: "], +, call[req...
Keyword[public] identifier[String] identifier[processHTTPAPIRequest] operator[SEP] identifier[String] identifier[urlString] , identifier[JSONObject] identifier[request] , identifier[GenericUser] identifier[authenticationUser] , identifier[String] identifier[requestType] , identifier[String] operator[SEP] operator[S...
public synchronized void lostNodeFound(Address address) { Preconditions.checkNotNull(address, "address should not be null"); mLostNodes.remove(address); for (Runnable function : mChangeListeners) { function.run(); } }
class class_name[name] begin[{] method[lostNodeFound, return_type[void], modifier[synchronized public], parameter[address]] begin[{] call[Preconditions.checkNotNull, parameter[member[.address], literal["address should not be null"]]] call[mLostNodes.remove, parameter[member[.add...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[lostNodeFound] operator[SEP] identifier[Address] identifier[address] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[address] , literal[String] operator[SEP] operator[SEP] identifier[mLostNod...
public DescribeClientVpnConnectionsResult withConnections(ClientVpnConnection... connections) { if (this.connections == null) { setConnections(new com.amazonaws.internal.SdkInternalList<ClientVpnConnection>(connections.length)); } for (ClientVpnConnection ele : connections) { ...
class class_name[name] begin[{] method[withConnections, return_type[type[DescribeClientVpnConnectionsResult]], modifier[public], parameter[connections]] begin[{] if[binary_operation[THIS[member[None.connections]], ==, literal[null]]] begin[{] call[.setConnections, parame...
Keyword[public] identifier[DescribeClientVpnConnectionsResult] identifier[withConnections] operator[SEP] identifier[ClientVpnConnection] operator[...] identifier[connections] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[connections] operator[==] Other[null] operator[SEP] { ...
@Deprecated byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException { final Mac mac = Mac.getInstance(algorithm); mac.init(new SecretKeySpec(secretBytes, algorithm)); return mac.doFinal(contentBytes); }
class class_name[name] begin[{] method[createSignatureFor, return_type[type[byte]], modifier[default], parameter[algorithm, secretBytes, contentBytes]] begin[{] local_variable[type[Mac], mac] call[mac.init, parameter[ClassCreator(arguments=[MemberReference(member=secretBytes, postfix_op...
annotation[@] identifier[Deprecated] Keyword[byte] operator[SEP] operator[SEP] identifier[createSignatureFor] operator[SEP] identifier[String] identifier[algorithm] , Keyword[byte] operator[SEP] operator[SEP] identifier[secretBytes] , Keyword[byte] operator[SEP] operator[SEP] identifier[contentBytes] operator[SEP] Ke...
public EClass getIfcRelDecomposes() { if (ifcRelDecomposesEClass == null) { ifcRelDecomposesEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(469); } return ifcRelDecomposesEClass; }
class class_name[name] begin[{] method[getIfcRelDecomposes, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRelDecomposesEClass], ==, literal[null]]] begin[{] assign[member[.ifcRelDecomposesEClass], Cast(expression=Method...
Keyword[public] identifier[EClass] identifier[getIfcRelDecomposes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRelDecomposesEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRelDecomposesEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifie...
public List<Class<Object>> getItemsByScope(final Class<?> scope) { return context.getItems(Filters.enabled().and(Filters.registeredBy(scope))); }
class class_name[name] begin[{] method[getItemsByScope, return_type[type[List]], modifier[public], parameter[scope]] begin[{] return[call[context.getItems, parameter[call[Filters.enabled, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Class] operator[<] identifier[Object] operator[>] operator[>] identifier[getItemsByScope] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[scope] operator[SEP] { Keyword[return] identifier[context] operator[SEP] ...
public static String getSimpleName(final Object object, final String valueIfNull) { return object == null ? valueIfNull : object.getClass().getSimpleName(); }
class class_name[name] begin[{] method[getSimpleName, return_type[type[String]], modifier[public static], parameter[object, valueIfNull]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
Keyword[public] Keyword[static] identifier[String] identifier[getSimpleName] operator[SEP] Keyword[final] identifier[Object] identifier[object] , Keyword[final] identifier[String] identifier[valueIfNull] operator[SEP] { Keyword[return] identifier[object] operator[==] Other[null] operator[?] identifier[valueIfNu...
@Override public <A extends BasicFileAttributes> A readAttributes(final Path path, final Class<A> type, final LinkOption... options) throws IOException { if (path == null) { throw new IllegalArgumentException("path must be specified"); } if (type == null) { th...
class class_name[name] begin[{] method[readAttributes, return_type[type[A]], modifier[public], parameter[path, type, options]] begin[{] if[binary_operation[member[.path], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[A] Keyword[extends] identifier[BasicFileAttributes] operator[>] identifier[A] identifier[readAttributes] operator[SEP] Keyword[final] identifier[Path] identifier[path] , Keyword[final] identifier[Class] operator[<] identifier[A] operator[>] iden...
@Override public Response handle() throws Exception { Object p = getRequest().getPayload().get("id"); if (JSONObject.NULL.equals(p)) { getWebDriver().getContext().setCurrentFrame(null, null, null); } else { RemoteWebElement iframe; if (p instanceof String) { iframe = getIframe((...
class class_name[name] begin[{] method[handle, return_type[type[Response]], modifier[public], parameter[]] begin[{] local_variable[type[Object], p] if[call[JSONObject.NULL.equals, parameter[member[.p]]]] begin[{] call[.getWebDriver, parameter[]] else begi...
annotation[@] identifier[Override] Keyword[public] identifier[Response] identifier[handle] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Object] identifier[p] operator[=] identifier[getRequest] operator[SEP] operator[SEP] operator[SEP] identifier[getPayload] operator[SEP] operato...
public static INDArray sinh(INDArray in, boolean copy) { return Nd4j.getExecutioner().execAndReturn(new Sinh((copy ? in.dup() : in))); }
class class_name[name] begin[{] method[sinh, return_type[type[INDArray]], modifier[public static], parameter[in, copy]] begin[{] return[call[Nd4j.getExecutioner, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[INDArray] identifier[sinh] operator[SEP] identifier[INDArray] identifier[in] , Keyword[boolean] identifier[copy] operator[SEP] { Keyword[return] identifier[Nd4j] operator[SEP] identifier[getExecutioner] operator[SEP] operator[SEP] operator[SEP] identifier[execAndReturn...
public static xen_trend_microvpx_image[] get(nitro_service client) throws Exception { xen_trend_microvpx_image resource = new xen_trend_microvpx_image(); resource.validate("get"); return (xen_trend_microvpx_image[]) resource.get_resources(client); }
class class_name[name] begin[{] method[get, return_type[type[xen_trend_microvpx_image]], modifier[public static], parameter[client]] begin[{] local_variable[type[xen_trend_microvpx_image], resource] call[resource.validate, parameter[literal["get"]]] return[Cast(expression=Method...
Keyword[public] Keyword[static] identifier[xen_trend_microvpx_image] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[client] operator[SEP] Keyword[throws] identifier[Exception] { identifier[xen_trend_microvpx_image] identifier[resource] operator[=] Keyword[new] iden...
private void setCommonParameters() { m_checkinBean.setPullBefore(m_pullFirst.getValue().booleanValue()); m_checkinBean.setPullAfter(m_pullAfterCommit.getValue().booleanValue()); m_checkinBean.setPush(m_pushAutomatically.getValue().booleanValue()); m_checkinBean.setExcludeLibs(m_excludeL...
class class_name[name] begin[{] method[setCommonParameters, return_type[void], modifier[private], parameter[]] begin[{] call[m_checkinBean.setPullBefore, parameter[call[m_pullFirst.getValue, parameter[]]]] call[m_checkinBean.setPullAfter, parameter[call[m_pullAfterCommit.getValu...
Keyword[private] Keyword[void] identifier[setCommonParameters] operator[SEP] operator[SEP] { identifier[m_checkinBean] operator[SEP] identifier[setPullBefore] operator[SEP] identifier[m_pullFirst] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[booleanValue] operator[SEP] ...
public static <T> ScopedBindingBuilder createChoice( Binder binder, String property, Key<T> interfaceKey, @Nullable Key<? extends T> defaultKey ) { ConfiggedProvider<T> provider = new ConfiggedProvider<>(interfaceKey, property, defaultKey, null); return binder.bind(interfaceKey).toPr...
class class_name[name] begin[{] method[createChoice, return_type[type[ScopedBindingBuilder]], modifier[public static], parameter[binder, property, interfaceKey, defaultKey]] begin[{] local_variable[type[ConfiggedProvider], provider] return[call[binder.bind, parameter[member[.interfaceKey]]]] ...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ScopedBindingBuilder] identifier[createChoice] operator[SEP] identifier[Binder] identifier[binder] , identifier[String] identifier[property] , identifier[Key] operator[<] identifier[T] operator[>] identifier[interfaceKey] , annotation[@...
public CreateMLModelRequest withParameters(java.util.Map<String, String> parameters) { setParameters(parameters); return this; }
class class_name[name] begin[{] method[withParameters, return_type[type[CreateMLModelRequest]], modifier[public], parameter[parameters]] begin[{] call[.setParameters, parameter[member[.parameters]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[CreateMLModelRequest] identifier[withParameters] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parameters] operator[SEP] { identifier[setParameters] operator[SEP] i...
private static OrderedJSONObject setCommonOpenTypesStructureObject(OrderedJSONObject obj) { obj.put("openTypeClass", "string"); obj.put("className", "string"); obj.put("typeName", "string"); obj.put("description", "string"); return obj; }
class class_name[name] begin[{] method[setCommonOpenTypesStructureObject, return_type[type[OrderedJSONObject]], modifier[private static], parameter[obj]] begin[{] call[obj.put, parameter[literal["openTypeClass"], literal["string"]]] call[obj.put, parameter[literal["className"], ...
Keyword[private] Keyword[static] identifier[OrderedJSONObject] identifier[setCommonOpenTypesStructureObject] operator[SEP] identifier[OrderedJSONObject] identifier[obj] operator[SEP] { identifier[obj] operator[SEP] identifier[put] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] ident...
public void writeVisibleDataStyles(final XMLUtil util, final Appendable appendable) throws IOException { final Iterable<DataStyle> dataStyles = this.dataStylesContainer .getValues(Dest.STYLES_COMMON_STYLES); for (final DataStyle dataStyle : dataStyles) { assert !d...
class class_name[name] begin[{] method[writeVisibleDataStyles, return_type[void], modifier[public], parameter[util, appendable]] begin[{] local_variable[type[Iterable], dataStyles] ForStatement(body=BlockStatement(label=None, statements=[AssertStatement(condition=MethodInvocation(arguments=[], ...
Keyword[public] Keyword[void] identifier[writeVisibleDataStyles] operator[SEP] Keyword[final] identifier[XMLUtil] identifier[util] , Keyword[final] identifier[Appendable] identifier[appendable] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[Iterable] operator[<] identifier[Dat...
public void registerSearchReplace(Button search, Button replace) { if (getState().m_enableSearchReplace) { throw new RuntimeException("Search/replace already registered."); } search.setId(HTML_ID_PREFIX + m_componentId + "-search"); replace.setId(HTML_ID_PREFIX + m_component...
class class_name[name] begin[{] method[registerSearchReplace, return_type[void], modifier[public], parameter[search, replace]] begin[{] if[call[.getState, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[void] identifier[registerSearchReplace] operator[SEP] identifier[Button] identifier[search] , identifier[Button] identifier[replace] operator[SEP] { Keyword[if] operator[SEP] identifier[getState] operator[SEP] operator[SEP] operator[SEP] identifier[m_enableSearchReplace] operator[SEP] {...
public void marshall(GetCognitoEventsRequest getCognitoEventsRequest, ProtocolMarshaller protocolMarshaller) { if (getCognitoEventsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getCognito...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getCognitoEventsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getCognitoEventsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetCognitoEventsRequest] identifier[getCognitoEventsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getCognitoEventsRequest] operator[==] Other[null] operator...
@Override public EClass getIfcStructuralSurfaceMemberVarying() { if (ifcStructuralSurfaceMemberVaryingEClass == null) { ifcStructuralSurfaceMemberVaryingEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(663); } return ifcStructuralSurfaceMemberVary...
class class_name[name] begin[{] method[getIfcStructuralSurfaceMemberVarying, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcStructuralSurfaceMemberVaryingEClass], ==, literal[null]]] begin[{] assign[member[.ifcStructural...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcStructuralSurfaceMemberVarying] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcStructuralSurfaceMemberVaryingEClass] operator[==] Other[null] operator[SEP] { identifier[ifcStructuralSurfaceMem...
@Override public Object createResource(ResourceInfo refInfo) throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "createResource", refInfo); try { BootstrapContextImpl bootstrapContext = b...
class class_name[name] begin[{] method[createResource, return_type[type[Object]], modifier[public], parameter[refInfo]] begin[{] local_variable[type[boolean], trace] if[binary_operation[member[.trace], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parame...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[createResource] operator[SEP] identifier[ResourceInfo] identifier[refInfo] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] Keyword[boolean] identifier[trace] operator[=] identifier[TraceComponent] operator[SEP] ...
@Override public synchronized void start(final StartContext context) throws StartException { final ModelController modelController = modelControllerSupplier.get(); final ControlledProcessStateService controlledProcessStateService = controlledProcessStateServiceSupplier.get(); socketBindingMa...
class class_name[name] begin[{] method[start, return_type[void], modifier[synchronized public], parameter[context]] begin[{] local_variable[type[ModelController], modelController] local_variable[type[ControlledProcessStateService], controlledProcessStateService] assign[member[.s...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[start] operator[SEP] Keyword[final] identifier[StartContext] identifier[context] operator[SEP] Keyword[throws] identifier[StartException] { Keyword[final] identifier[ModelController] identifier[modelController] oper...
public static DTree getDTreeFromCoNLLXString(final String input) { if (input == null || input.trim().isEmpty()) { return null; } Map<Integer, Map<Integer, String>> semanticHeadsMap = new HashMap<>(); String[] dNodesString = input.split(System.lineSeparator()); DTree ...
class class_name[name] begin[{] method[getDTreeFromCoNLLXString, return_type[type[DTree]], modifier[public static], parameter[input]] begin[{] if[binary_operation[binary_operation[member[.input], ==, literal[null]], ||, call[input.trim, parameter[]]]] begin[{] return[literal[null]] ...
Keyword[public] Keyword[static] identifier[DTree] identifier[getDTreeFromCoNLLXString] operator[SEP] Keyword[final] identifier[String] identifier[input] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[||] identifier[input] operator[SEP] identifier[trim] operator[SEP]...
public CallActivityMock onExecutionSetVariables(final VariableMap variables){ return this.onExecutionDo("setVariablesServiceMock_"+ randomUUID(), (execution) -> execution.setVariables(variables) ); }
class class_name[name] begin[{] method[onExecutionSetVariables, return_type[type[CallActivityMock]], modifier[public], parameter[variables]] begin[{] return[THIS[call[None.onExecutionDo, parameter[binary_operation[literal["setVariablesServiceMock_"], +, call[.randomUUID, parameter[]]], LambdaExpression...
Keyword[public] identifier[CallActivityMock] identifier[onExecutionSetVariables] operator[SEP] Keyword[final] identifier[VariableMap] identifier[variables] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[onExecutionDo] operator[SEP] literal[String] operator[+] identifier[randomUUID] operat...
@SuppressWarnings("unchecked") // public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) { return new Builder<E>().add(e1).add(e2).add(e3).add(e4).add(e5).add(e6).add(others).build(); }
class class_name[name] begin[{] method[of, return_type[type[ImmutableMultiset]], modifier[public static], parameter[e1, e2, e3, e4, e5, e6, others]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selector...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[ImmutableMultiset] operator[<] identifier[E] operator[>] identifier[of] operator[SEP] identifier[E] identifier[e1] , identifier[E] identifier[e2] , id...
public JobResponseInner getJob(String resourceGroupName, String resourceName, String jobId) { return getJobWithServiceResponseAsync(resourceGroupName, resourceName, jobId).toBlocking().single().body(); }
class class_name[name] begin[{] method[getJob, return_type[type[JobResponseInner]], modifier[public], parameter[resourceGroupName, resourceName, jobId]] begin[{] return[call[.getJobWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resourceName], member[.jobId]]]] end[}] END[}]
Keyword[public] identifier[JobResponseInner] identifier[getJob] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] , identifier[String] identifier[jobId] operator[SEP] { Keyword[return] identifier[getJobWithServiceResponseAsync] operator[SEP] identifier...
public static Namespaces getNamespaces(Element element) { Assert.isNotNull(element); Node parent = element.getParentNode(); while (parent != null && !isElement(parent)) parent = parent.getParentNode(); Namespaces namespaces = null; if (parent != null) name...
class class_name[name] begin[{] method[getNamespaces, return_type[type[Namespaces]], modifier[public static], parameter[element]] begin[{] call[Assert.isNotNull, parameter[member[.element]]] local_variable[type[Node], parent] while[binary_operation[binary_operation[membe...
Keyword[public] Keyword[static] identifier[Namespaces] identifier[getNamespaces] operator[SEP] identifier[Element] identifier[element] operator[SEP] { identifier[Assert] operator[SEP] identifier[isNotNull] operator[SEP] identifier[element] operator[SEP] operator[SEP] identifier[Node] identifier[parent] operator[...
public static <T extends Comparable<T>> List<T> topp(final T[] a, final int fromIndex, final int toIndex, final int n) { return topp(a, fromIndex, toIndex, n, N.NATURAL_ORDER); }
class class_name[name] begin[{] method[topp, return_type[type[List]], modifier[public static], parameter[a, fromIndex, toIndex, n]] begin[{] return[call[.topp, parameter[member[.a], member[.fromIndex], member[.toIndex], member[.n], member[N.NATURAL_ORDER]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] identifier[T] operator[>] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[topp] operator[SEP] Keyword[final] identifier[T] operator[SEP] operator[SEP] identifier[a] , Keyword[fina...
public static int maxBucketsPerElement(long numElements) { numElements = Math.max(1, numElements); double v = (Long.MAX_VALUE - EXCESS) / (double)numElements; if (v < 1.0) { throw new UnsupportedOperationException("Cannot compute probabilities for " + numElements + " elem...
class class_name[name] begin[{] method[maxBucketsPerElement, return_type[type[int]], modifier[public static], parameter[numElements]] begin[{] assign[member[.numElements], call[Math.max, parameter[literal[1], member[.numElements]]]] local_variable[type[double], v] if[bin...
Keyword[public] Keyword[static] Keyword[int] identifier[maxBucketsPerElement] operator[SEP] Keyword[long] identifier[numElements] operator[SEP] { identifier[numElements] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] Other[1] , identifier[numElements] operator[SEP] operator[SEP] Keywor...
public JvmOperation getJvmOperation(IMethod method, XtendTypeDeclaration context) throws JavaModelException { if (!method.isConstructor() && !method.isLambdaMethod() && !method.isMainMethod()) { final JvmType type = this.typeReferences.findDeclaredType( method.getDeclaringType().getFullyQualifiedName(), ...
class class_name[name] begin[{] method[getJvmOperation, return_type[type[JvmOperation]], modifier[public], parameter[method, context]] begin[{] if[binary_operation[binary_operation[call[method.isConstructor, parameter[]], &&, call[method.isLambdaMethod, parameter[]]], &&, call[method.isMainMeth...
Keyword[public] identifier[JvmOperation] identifier[getJvmOperation] operator[SEP] identifier[IMethod] identifier[method] , identifier[XtendTypeDeclaration] identifier[context] operator[SEP] Keyword[throws] identifier[JavaModelException] { Keyword[if] operator[SEP] operator[!] identifier[method] operator[SEP] i...
protected static IJavaClassMethod findMethod( IJavaClassInfo cls, String name, int numArgs ) { IJavaClassMethod match = findUniqueMethodInList( cls.getDeclaredMethods(), cls, name, numArgs ); if (match != null) { return match; } match = findDeclaredMethod( cls, name, numArgs ); if (match != ...
class class_name[name] begin[{] method[findMethod, return_type[type[IJavaClassMethod]], modifier[static protected], parameter[cls, name, numArgs]] begin[{] local_variable[type[IJavaClassMethod], match] if[binary_operation[member[.match], !=, literal[null]]] begin[{] return[m...
Keyword[protected] Keyword[static] identifier[IJavaClassMethod] identifier[findMethod] operator[SEP] identifier[IJavaClassInfo] identifier[cls] , identifier[String] identifier[name] , Keyword[int] identifier[numArgs] operator[SEP] { identifier[IJavaClassMethod] identifier[match] operator[=] identifier[findUniq...
private static Class<?>[] getFields(Class<?> clz) { List<Class<?>> result = new ArrayList<Class<?>>(); Class<?> c = clz; while (!c.equals(Object.class)) { try { Field[] fields = SecurityActions.getDeclaredFields(c); if (fields.length > 0) ...
class class_name[name] begin[{] method[getFields, return_type[type[Class]], modifier[private static], parameter[clz]] begin[{] local_variable[type[List], result] local_variable[type[Class], c] while[call[c.equals, parameter[ClassReference(postfix_operators=[], prefix_operators=[...
Keyword[private] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[getFields] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clz] operator[SEP] { identifier[List] operator[<] identifier[Class] operator[<] operator[?] opera...
public void beforeCompletion() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "beforeCompletion"); becomePreparing(); // Change the state to PREPARRING if (isTraceOn && tc.isEntryEnabled()) ...
class class_name[name] begin[{] method[beforeCompletion, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[m...
Keyword[public] Keyword[void] identifier[beforeCompletion] operator[SEP] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTrac...
public static nspbr6[] get(nitro_service service, nspbr6_args args) throws Exception{ nspbr6 obj = new nspbr6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nspbr6[] response = (nspbr6[])obj.get_resources(service, option); return response; }
class class_name[name] begin[{] method[get, return_type[type[nspbr6]], modifier[public static], parameter[service, args]] begin[{] local_variable[type[nspbr6], obj] local_variable[type[options], option] call[option.set_args, parameter[call[nitro_util.object_to_string_withoutquot...
Keyword[public] Keyword[static] identifier[nspbr6] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[nspbr6_args] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[nspbr6] identifier[obj] operator[=] Keyword[new] ...
private void getHdotVFiniteDifference(double[] x, double[] v, double[] curDerivative){ double h = finiteDifferenceStepSize; double hInv = 1/h; // this avoids dividing too much since it's a bit more expensive than multiplying if (gradPerturbed == null) { gradPerturbed = new double[x.length...
class class_name[name] begin[{] method[getHdotVFiniteDifference, return_type[void], modifier[private], parameter[x, v, curDerivative]] begin[{] local_variable[type[double], h] local_variable[type[double], hInv] if[binary_operation[member[.gradPerturbed], ==, literal[null]]] begi...
Keyword[private] Keyword[void] identifier[getHdotVFiniteDifference] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[x] , Keyword[double] operator[SEP] operator[SEP] identifier[v] , Keyword[double] operator[SEP] operator[SEP] identifier[curDerivative] operator[SEP] { Keyword[double] identif...
private ClockAndCount[] getCurrentValues(List<CounterUpdateCell> counterUpdateCells, ColumnFamilyStore cfs) { ClockAndCount[] currentValues = new ClockAndCount[counterUpdateCells.size()]; int remaining = counterUpdateCells.size(); if (CacheService.instance.counterCache.getCapacity() != 0) ...
class class_name[name] begin[{] method[getCurrentValues, return_type[type[ClockAndCount]], modifier[private], parameter[counterUpdateCells, cfs]] begin[{] local_variable[type[ClockAndCount], currentValues] local_variable[type[int], remaining] if[binary_operation[call[CacheServic...
Keyword[private] identifier[ClockAndCount] operator[SEP] operator[SEP] identifier[getCurrentValues] operator[SEP] identifier[List] operator[<] identifier[CounterUpdateCell] operator[>] identifier[counterUpdateCells] , identifier[ColumnFamilyStore] identifier[cfs] operator[SEP] { identifier[ClockAndCount] operat...
public static String getRunningDockerContainerId( Session session, String containerName ) throws JSchException, IOException { String command = "docker ps | grep " + containerName; String remoteResponseStr = launchACommand(session, command); if (remoteResponseStr.length() == 0) { retu...
class class_name[name] begin[{] method[getRunningDockerContainerId, return_type[type[String]], modifier[public static], parameter[session, containerName]] begin[{] local_variable[type[String], command] local_variable[type[String], remoteResponseStr] if[binary_operation[call[remo...
Keyword[public] Keyword[static] identifier[String] identifier[getRunningDockerContainerId] operator[SEP] identifier[Session] identifier[session] , identifier[String] identifier[containerName] operator[SEP] Keyword[throws] identifier[JSchException] , identifier[IOException] { identifier[String] identifier[comma...
public static Nature convertStringToNature(String name, LinkedHashSet<Nature> customNatureCollector) { Nature nature = Nature.fromString(name); if (nature == null) { nature = Nature.create(name); if (customNatureCollector != null) customNatureCollector.add(nature); ...
class class_name[name] begin[{] method[convertStringToNature, return_type[type[Nature]], modifier[public static], parameter[name, customNatureCollector]] begin[{] local_variable[type[Nature], nature] if[binary_operation[member[.nature], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Nature] identifier[convertStringToNature] operator[SEP] identifier[String] identifier[name] , identifier[LinkedHashSet] operator[<] identifier[Nature] operator[>] identifier[customNatureCollector] operator[SEP] { identifier[Nature] identifier[nature] operator[=] identi...
@Bean WsConfigurerAdapter traceeWsConfigurerAdapter(final TraceeEndpointInterceptor traceeEndpointInterceptor) { return new WsConfigurerAdapter() { @Override public void addInterceptors(List<EndpointInterceptor> interceptors) { super.addInterceptors(Collections.<EndpointInterceptor>singletonList(traceeEndp...
class class_name[name] begin[{] method[traceeWsConfigurerAdapter, return_type[type[WsConfigurerAdapter]], modifier[default], parameter[traceeEndpointInterceptor]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExp...
annotation[@] identifier[Bean] identifier[WsConfigurerAdapter] identifier[traceeWsConfigurerAdapter] operator[SEP] Keyword[final] identifier[TraceeEndpointInterceptor] identifier[traceeEndpointInterceptor] operator[SEP] { Keyword[return] Keyword[new] identifier[WsConfigurerAdapter] operator[SEP] operator[SEP] {...
@XmlElementDecl(namespace = "", name = "anbieternr") public JAXBElement<String> createAnbieternr(String value) { return new JAXBElement<String>(_Anbieternr_QNAME, String.class, null, value); }
class class_name[name] begin[{] method[createAnbieternr, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Anbieternr_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_ope...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[String] operator[>] identifier[createAnbieternr] operator[SEP] identifier[String] identifi...
private CachedProviderServiceInstance getCachedServiceInstance( String serviceName, String providerId) { try { read.lock(); ServiceInstanceId id = new ServiceInstanceId(serviceName, providerId); return getCacheServiceInstances().get(id); } finally { ...
class class_name[name] begin[{] method[getCachedServiceInstance, return_type[type[CachedProviderServiceInstance]], modifier[private], parameter[serviceName, providerId]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=lock, postfix_operators=[], prefix_...
Keyword[private] identifier[CachedProviderServiceInstance] identifier[getCachedServiceInstance] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[providerId] operator[SEP] { Keyword[try] { identifier[read] operator[SEP] identifier[lock] operator[SEP] operator[SE...
public LocalDate minusYears(long yearsToSubtract) { return (yearsToSubtract == Long.MIN_VALUE ? plusYears(Long.MAX_VALUE).plusYears(1) : plusYears(-yearsToSubtract)); }
class class_name[name] begin[{] method[minusYears, return_type[type[LocalDate]], modifier[public], parameter[yearsToSubtract]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=yearsToSubtract, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] identifier[LocalDate] identifier[minusYears] operator[SEP] Keyword[long] identifier[yearsToSubtract] operator[SEP] { Keyword[return] operator[SEP] identifier[yearsToSubtract] operator[==] identifier[Long] operator[SEP] identifier[MIN_VALUE] operator[?] identifier[plusYears] operator[SEP] identifi...
public boolean accept(File pathname) { boolean ret = false; // search for extension without dot. StringTokenizer tokenizer = new StringTokenizer(pathname.getAbsolutePath(), "."); String extension = "no.txt"; // a dot, because verify will not allow these tokens: won't accept, if no extension in pathname. whil...
class class_name[name] begin[{] method[accept, return_type[type[boolean]], modifier[public], parameter[pathname]] begin[{] local_variable[type[boolean], ret] local_variable[type[StringTokenizer], tokenizer] local_variable[type[String], extension] while[call[tokenizer.has...
Keyword[public] Keyword[boolean] identifier[accept] operator[SEP] identifier[File] identifier[pathname] operator[SEP] { Keyword[boolean] identifier[ret] operator[=] literal[boolean] operator[SEP] identifier[StringTokenizer] identifier[tokenizer] operator[=] Keyword[new] identifier[StringTokenizer] operator[SEP] ...
public void importStatic(final Class<?> clas) { this.importedStatic.remove(clas); this.importedStatic.add(0, clas); this.nameSpaceChanged(); }
class class_name[name] begin[{] method[importStatic, return_type[void], modifier[public], parameter[clas]] begin[{] THIS[member[None.importedStatic]call[None.remove, parameter[member[.clas]]]] THIS[member[None.importedStatic]call[None.add, parameter[literal[0], member[.clas]]]] ...
Keyword[public] Keyword[void] identifier[importStatic] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[clas] operator[SEP] { Keyword[this] operator[SEP] identifier[importedStatic] operator[SEP] identifier[remove] operator[SEP] identifier[clas] operator[SEP] operator[...
public static <V> LinkedList<ResultTerm<V>> segment(String text, AhoCorasickDoubleArrayTrie<V> trie) { return segment(text.toCharArray(), trie); }
class class_name[name] begin[{] method[segment, return_type[type[LinkedList]], modifier[public static], parameter[text, trie]] begin[{] return[call[.segment, parameter[call[text.toCharArray, parameter[]], member[.trie]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[LinkedList] operator[<] identifier[ResultTerm] operator[<] identifier[V] operator[>] operator[>] identifier[segment] operator[SEP] identifier[String] identifier[text] , identifier[AhoCorasickDoubleArrayTrie] operator[<] identifier[V] oper...
public static int transactionFromString(String txIsolation) throws SQLException { switch (txIsolation) { //tx_isolation case "READ-UNCOMMITTED": return Connection.TRANSACTION_READ_UNCOMMITTED; case "READ-COMMITTED": return Connection.TRANSACTION_READ_COMMITTED; case "REPEATABLE-R...
class class_name[name] begin[{] method[transactionFromString, return_type[type[int]], modifier[public static], parameter[txIsolation]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="READ-UNCOMMITTED")], s...
Keyword[public] Keyword[static] Keyword[int] identifier[transactionFromString] operator[SEP] identifier[String] identifier[txIsolation] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[switch] operator[SEP] identifier[txIsolation] operator[SEP] { Keyword[case] literal[String] operator[...
private void processSwatch(Bitmap image) { final Map<Integer, Integer> colorHistogram = processLuminanceData(image); extractFgBgData(colorHistogram); // Two-decimal digits of precision for the contrast ratio mContrastRatio = Math.round( ContrastUtils.calculateContrastRat...
class class_name[name] begin[{] method[processSwatch, return_type[void], modifier[private], parameter[image]] begin[{] local_variable[type[Map], colorHistogram] call[.extractFgBgData, parameter[member[.colorHistogram]]] assign[member[.mContrastRatio], binary_operation[ca...
Keyword[private] Keyword[void] identifier[processSwatch] operator[SEP] identifier[Bitmap] identifier[image] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[Integer] , identifier[Integer] operator[>] identifier[colorHistogram] operator[=] identifier[processLuminanceData] operator[SEP] ident...
private static List<ManifestEntry> asManifestEntryList( final Map<String, String> entries ) { final List<ManifestEntry> manifestEntries = new ArrayList<ManifestEntry>(); if( entries != null && !entries.isEmpty() ) { for( Map.Entry<String, String> entry : entries.entrySet() ) ...
class class_name[name] begin[{] method[asManifestEntryList, return_type[type[List]], modifier[private static], parameter[entries]] begin[{] local_variable[type[List], manifestEntries] if[binary_operation[binary_operation[member[.entries], !=, literal[null]], &&, call[entries.isEmpty, pa...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[ManifestEntry] operator[>] identifier[asManifestEntryList] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[entries] operator[SEP] { Keyword[final] identifier[List] ope...
public static void outputImage(int w, int h, File outputFile, String code) throws IOException{ if(outputFile == null){ return; } File dir = outputFile.getParentFile(); if(!dir.exists()){ dir.mkdirs(); } try{ outputFile.createNewFile(); ...
class class_name[name] begin[{] method[outputImage, return_type[void], modifier[public static], parameter[w, h, outputFile, code]] begin[{] if[binary_operation[member[.outputFile], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_vari...
Keyword[public] Keyword[static] Keyword[void] identifier[outputImage] operator[SEP] Keyword[int] identifier[w] , Keyword[int] identifier[h] , identifier[File] identifier[outputFile] , identifier[String] identifier[code] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifi...