code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public ComponentClassLoaderImpl newComponentClassLoader( ComponentID componentID, URLClassLoaderDomain parent) { return new ComponentClassLoaderImpl(componentID, (URLClassLoaderDomainImpl) parent); }
class class_name[name] begin[{] method[newComponentClassLoader, return_type[type[ComponentClassLoaderImpl]], modifier[public], parameter[componentID, parent]] begin[{] return[ClassCreator(arguments=[MemberReference(member=componentID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] identifier[ComponentClassLoaderImpl] identifier[newComponentClassLoader] operator[SEP] identifier[ComponentID] identifier[componentID] , identifier[URLClassLoaderDomain] identifier[parent] operator[SEP] { Keyword[return] Keyword[new] identifier[ComponentClassLoaderImpl] operator[SEP] identifier[...
@Override public RecoveryStrategy onException(final JobExecutor jobExecutor, final Exception exception, final String curQueue) { return (exception instanceof JedisConnectionException) ? RECONNECT : (((exception instanceof JsonProcessingException) || ((exception instanceof InterruptedException) ...
class class_name[name] begin[{] method[onException, return_type[type[RecoveryStrategy]], modifier[public], parameter[jobExecutor, exception, curQueue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=exception, postfix_operators=[], prefix_operators=[], quali...
annotation[@] identifier[Override] Keyword[public] identifier[RecoveryStrategy] identifier[onException] operator[SEP] Keyword[final] identifier[JobExecutor] identifier[jobExecutor] , Keyword[final] identifier[Exception] identifier[exception] , Keyword[final] identifier[String] identifier[curQueue] operator[SEP] { ...
public void billingAccount_line_serviceName_phone_PUT(String billingAccount, String serviceName, OvhPhone body) throws IOException { String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone"; StringBuilder sb = path(qPath, billingAccount, serviceName); exec(qPath, "PUT", sb.toString(), body); }
class class_name[name] begin[{] method[billingAccount_line_serviceName_phone_PUT, return_type[void], modifier[public], parameter[billingAccount, serviceName, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.exec, parameter[member[...
Keyword[public] Keyword[void] identifier[billingAccount_line_serviceName_phone_PUT] operator[SEP] identifier[String] identifier[billingAccount] , identifier[String] identifier[serviceName] , identifier[OvhPhone] identifier[body] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identif...
@PUT @Path("{id}") public final Response replace(@PathParam("id") final URI_ID id, @NotNull @Valid final MODEL model) throws Exception { return super.replace(id, model); }
class class_name[name] begin[{] method[replace, return_type[type[Response]], modifier[final public], parameter[id, model]] begin[{] return[SuperMethodInvocation(arguments=[MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=model, post...
annotation[@] identifier[PUT] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] identifier[Response] identifier[replace] operator[SEP] annotation[@] identifier[PathParam] operator[SEP] literal[String] operator[SEP] Keyword[final] identifier[URI_ID] identifier[id] ...
public X509Extension add(X509Extension extension) { if (extension == null) { throw new IllegalArgumentException(i18n .getMessage("extensionNull")); } return (X509Extension)this.extensions.put(extension.getOid(), extension); }
class class_name[name] begin[{] method[add, return_type[type[X509Extension]], modifier[public], parameter[extension]] begin[{] if[binary_operation[member[.extension], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(p...
Keyword[public] identifier[X509Extension] identifier[add] operator[SEP] identifier[X509Extension] identifier[extension] operator[SEP] { Keyword[if] operator[SEP] identifier[extension] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP...
@Override public boolean hasNext() { try { if (result != null && result.next()) { return true; } // Close old queries if (this.statement != null) { this.statement.close(); } if (this.result != null) { this.result.close(); } if (primaryKey <= endPK) { // TODO: <= ? return qu...
class class_name[name] begin[{] method[hasNext, return_type[type[boolean]], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[hasNext] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[result] operator[!=] Other[null] operator[&&] identifier[result] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator...
public ApiResponse<CharacterPlanetResponse> getCharactersCharacterIdPlanetsPlanetIdWithHttpInfo( Integer characterId, Integer planetId, String datasource, String ifNoneMatch, String token) throws ApiException { com.squareup.okhttp.Call call = getCharactersCharacterIdPlanetsPlanetIdValida...
class class_name[name] begin[{] method[getCharactersCharacterIdPlanetsPlanetIdWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[characterId, planetId, datasource, ifNoneMatch, token]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType]...
Keyword[public] identifier[ApiResponse] operator[<] identifier[CharacterPlanetResponse] operator[>] identifier[getCharactersCharacterIdPlanetsPlanetIdWithHttpInfo] operator[SEP] identifier[Integer] identifier[characterId] , identifier[Integer] identifier[planetId] , identifier[String] identifier[datasource] , identi...
private void btLaunchMouseEntered(java.awt.event.MouseEvent evt)//GEN-FIRST:event_btLaunchMouseEntered {//GEN-HEADEREND:event_btLaunchMouseEntered this.setCursor(new Cursor(Cursor.HAND_CURSOR)); }
class class_name[name] begin[{] method[btLaunchMouseEntered, return_type[void], modifier[private], parameter[evt]] begin[{] THIS[call[None.setCursor, parameter[ClassCreator(arguments=[MemberReference(member=HAND_CURSOR, postfix_operators=[], prefix_operators=[], qualifier=Cursor, selectors=[])]...
Keyword[private] Keyword[void] identifier[btLaunchMouseEntered] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[MouseEvent] identifier[evt] operator[SEP] { Keyword[this] operator[SEP] identifier[setCursor] operator[SEP] Keyword[new] identifier...
public void createRecursiveNavigation(final TreeItem pitem, final List<NavigationEntryInterface> plist, final NavigationEntryInterface pactiveEntry) { for (final NavigationEntryInterface navEntry : plist) { final TreeItem newItem; if (navEntry instanceof NavigationEntryFolder) { newItem = ...
class class_name[name] begin[{] method[createRecursiveNavigation, return_type[void], modifier[public], parameter[pitem, plist, pactiveEntry]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initial...
Keyword[public] Keyword[void] identifier[createRecursiveNavigation] operator[SEP] Keyword[final] identifier[TreeItem] identifier[pitem] , Keyword[final] identifier[List] operator[<] identifier[NavigationEntryInterface] operator[>] identifier[plist] , Keyword[final] identifier[NavigationEntryInterface] identifier[pact...
public OkRequest<T> params(final Map<String, String> values) { if (!values.isEmpty()) { for (Map.Entry<String, String> entry : values.entrySet()) { param(entry); } } return this; }
class class_name[name] begin[{] method[params, return_type[type[OkRequest]], modifier[public], parameter[values]] begin[{] if[call[values.isEmpty, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argument...
Keyword[public] identifier[OkRequest] operator[<] identifier[T] operator[>] identifier[params] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[values] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[values] operator[SEP] id...
public synchronized ComboBox<V> setItem(int index, V item) { if(item == null) { throw new IllegalArgumentException("Cannot add null elements to a ComboBox"); } items.set(index, item); invalidate(); return this; }
class class_name[name] begin[{] method[setItem, return_type[type[ComboBox]], modifier[synchronized public], parameter[index, item]] begin[{] if[binary_operation[member[.item], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[]...
Keyword[public] Keyword[synchronized] identifier[ComboBox] operator[<] identifier[V] operator[>] identifier[setItem] operator[SEP] Keyword[int] identifier[index] , identifier[V] identifier[item] operator[SEP] { Keyword[if] operator[SEP] identifier[item] operator[==] Other[null] operator[SEP] { Keywor...
@Override public String evaluate(String url, String host) throws ProxyEvaluationException { try { StringBuilder script = new StringBuilder(this.source.getScriptContent()); String evalMethod = " ;FindProxyForURL (\"" + url + "\",\"" + host + "\")"; script.append(evalMethod); ...
class class_name[name] begin[{] method[evaluate, return_type[type[String]], modifier[public], parameter[url, host]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[This(postfix_operators=[], prefix_...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[evaluate] operator[SEP] identifier[String] identifier[url] , identifier[String] identifier[host] operator[SEP] Keyword[throws] identifier[ProxyEvaluationException] { Keyword[try] { identifier[StringBuilder] identifier[sc...
@Nullable public AuditLogChange getChangeByKey(final AuditLogKey key) { return key == null ? null : getChangeByKey(key.getKey()); }
class class_name[name] begin[{] method[getChangeByKey, return_type[type[AuditLogChange]], modifier[public], parameter[key]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Lit...
annotation[@] identifier[Nullable] Keyword[public] identifier[AuditLogChange] identifier[getChangeByKey] operator[SEP] Keyword[final] identifier[AuditLogKey] identifier[key] operator[SEP] { Keyword[return] identifier[key] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[getChangeByKey] op...
public static void writeNucleotideSequence(OutputStream outputStream, Collection<DNASequence> dnaSequences) throws Exception { FastaWriter<DNASequence, NucleotideCompound> fastaWriter = new FastaWriter<DNASequence, NucleotideCompound>( outputStream, dnaSequences, new GenericFastaHeaderFormat<DNASequence, Nucl...
class class_name[name] begin[{] method[writeNucleotideSequence, return_type[void], modifier[public static], parameter[outputStream, dnaSequences]] begin[{] local_variable[type[FastaWriter], fastaWriter] call[fastaWriter.process, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[writeNucleotideSequence] operator[SEP] identifier[OutputStream] identifier[outputStream] , identifier[Collection] operator[<] identifier[DNASequence] operator[>] identifier[dnaSequences] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Fas...
@Override public void writeErrorResponse(HttpCommand command, DehydratedExecutionContext context, CougarException error, boolean traceStarted) { try { incrementErrorsWritten(); final HttpServletResponse response = command.getResponse(); try { long bytesWritte...
class class_name[name] begin[{] method[writeErrorResponse, return_type[void], modifier[public], parameter[command, context, error, traceStarted]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=incrementErrorsWritten, postfix_operators=[], prefix_operat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeErrorResponse] operator[SEP] identifier[HttpCommand] identifier[command] , identifier[DehydratedExecutionContext] identifier[context] , identifier[CougarException] identifier[error] , Keyword[boolean] identifier[traceStarted] operator[S...
private void addObjectPermissions(Map<String, Set<ObjectPermission.Type>> permissions, ObjectPermissionSet permSet) throws GuacamoleException { // Add all provided object permissions for (ObjectPermission permission : permSet.getPermissions()) { // Get associated set of permis...
class class_name[name] begin[{] method[addObjectPermissions, return_type[void], modifier[private], parameter[permissions, permSet]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Metho...
Keyword[private] Keyword[void] identifier[addObjectPermissions] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Set] operator[<] identifier[ObjectPermission] operator[SEP] identifier[Type] operator[>] operator[>] identifier[permissions] , identifier[ObjectPermissionSet] identifier[permSet] o...
public static PactDslRootValue integerType() { PactDslRootValue value = new PactDslRootValue(); value.generators.addGenerator(Category.BODY, "", new RandomIntGenerator(0, Integer.MAX_VALUE)); value.setValue(100); value.setMatcher(new NumberTypeMatcher(NumberTypeMatcher.NumberType.INTEGER)); return v...
class class_name[name] begin[{] method[integerType, return_type[type[PactDslRootValue]], modifier[public static], parameter[]] begin[{] local_variable[type[PactDslRootValue], value] call[value.generators.addGenerator, parameter[member[Category.BODY], literal[""], ClassCreator(arguments=...
Keyword[public] Keyword[static] identifier[PactDslRootValue] identifier[integerType] operator[SEP] operator[SEP] { identifier[PactDslRootValue] identifier[value] operator[=] Keyword[new] identifier[PactDslRootValue] operator[SEP] operator[SEP] operator[SEP] identifier[value] operator[SEP] identifier[generators] ...
public final AbstractItem next(long lockID) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next", Long.valueOf(lockID)); final AbstractItemLink lockedMatchingLink = _next(lockID); // retrieve the item from the li...
class class_name[name] begin[{] method[next, return_type[type[AbstractItem]], modifier[final public], parameter[lockID]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, paramete...
Keyword[public] Keyword[final] identifier[AbstractItem] identifier[next] operator[SEP] Keyword[long] identifier[lockID] operator[SEP] Keyword[throws] identifier[SevereMessageStoreException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator...
private static List<String> loadChains(Map<String, String[]> chains, boolean start, boolean restart) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> createdChains = new ArrayList<String>(chains...
class class_name[name] begin[{] method[loadChains, return_type[type[List]], modifier[private static], parameter[chains, start, restart]] begin[{] local_variable[type[boolean], bTrace] local_variable[type[ChannelFramework], cf] local_variable[type[List], createdChains] local_vari...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[loadChains] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[SEP] operator[SEP] operator[>] identifier[chains] , Keyword[boolean] identifier[start] , Keyword[boolean] iden...
public void rmacc(String resourceName, String principalType, String principalName) throws CmsException { CmsResource res = readResource(resourceName, CmsResourceFilter.ALL); if (CmsUUID.isValidUUID(principalName)) { // principal name is in fact a UUID, probably the user was already deleted...
class class_name[name] begin[{] method[rmacc, return_type[void], modifier[public], parameter[resourceName, principalType, principalName]] begin[{] local_variable[type[CmsResource], res] if[call[CmsUUID.isValidUUID, parameter[member[.principalName]]]] begin[{] cal...
Keyword[public] Keyword[void] identifier[rmacc] operator[SEP] identifier[String] identifier[resourceName] , identifier[String] identifier[principalType] , identifier[String] identifier[principalName] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[CmsResource] identifier[res] operator[=] id...
@Override public UpdateMLModelResult updateMLModel(UpdateMLModelRequest request) { request = beforeClientExecution(request); return executeUpdateMLModel(request); }
class class_name[name] begin[{] method[updateMLModel, return_type[type[UpdateMLModelResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateMLModel, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateMLModelResult] identifier[updateMLModel] operator[SEP] identifier[UpdateMLModelRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
private IProject getProjectFromPath(IPath path) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); IProject project = null; if (path != null) { if (workspace.validatePath(path.toString(), IResource.PROJECT).isOK()) { project = workspace.getRoot().getProject(path.toString()); } else { project ...
class class_name[name] begin[{] method[getProjectFromPath, return_type[type[IProject]], modifier[private], parameter[path]] begin[{] local_variable[type[IWorkspace], workspace] local_variable[type[IProject], project] if[binary_operation[member[.path], !=, literal[null]]] begin[{...
Keyword[private] identifier[IProject] identifier[getProjectFromPath] operator[SEP] identifier[IPath] identifier[path] operator[SEP] { identifier[IWorkspace] identifier[workspace] operator[=] identifier[ResourcesPlugin] operator[SEP] identifier[getWorkspace] operator[SEP] operator[SEP] operator[SEP] identifier[IP...
public static Intent makeIntent(Context context, String appKey, String desiredUid, String[] alreadyAuthedUids, String sessionId, String webHost, String apiType) { if (appKey == null) throw new IllegalArgumentException("'appKey' can't be null"); setAuthParams(appKey, d...
class class_name[name] begin[{] method[makeIntent, return_type[type[Intent]], modifier[public static], parameter[context, appKey, desiredUid, alreadyAuthedUids, sessionId, webHost, apiType]] begin[{] if[binary_operation[member[.appKey], ==, literal[null]]] begin[{] ThrowStatement(expression=Cla...
Keyword[public] Keyword[static] identifier[Intent] identifier[makeIntent] operator[SEP] identifier[Context] identifier[context] , identifier[String] identifier[appKey] , identifier[String] identifier[desiredUid] , identifier[String] operator[SEP] operator[SEP] identifier[alreadyAuthedUids] , identifier[String] iden...
public PactDslJsonArray valueFromProviderState(String expression, Object example) { generators.addGenerator(Category.BODY, rootPath + appendArrayIndex(0), new ProviderStateGenerator(expression)); body.put(example); return this; }
class class_name[name] begin[{] method[valueFromProviderState, return_type[type[PactDslJsonArray]], modifier[public], parameter[expression, example]] begin[{] call[generators.addGenerator, parameter[member[Category.BODY], binary_operation[member[.rootPath], +, call[.appendArrayIndex, parameter[...
Keyword[public] identifier[PactDslJsonArray] identifier[valueFromProviderState] operator[SEP] identifier[String] identifier[expression] , identifier[Object] identifier[example] operator[SEP] { identifier[generators] operator[SEP] identifier[addGenerator] operator[SEP] identifier[Category] operator[SEP] identifi...
public void associateSuperDef(ZooClassDef superDef) { if (this.superDef != null) { throw new IllegalStateException(); } if (superDef == null) { throw new IllegalArgumentException(); } //class invariant if (superDef.getOid() != oidSuper) { throw new IllegalStateException("s-oid= " + oidSuper + "...
class class_name[name] begin[{] method[associateSuperDef, return_type[void], modifier[public], parameter[superDef]] begin[{] if[binary_operation[THIS[member[None.superDef]], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type...
Keyword[public] Keyword[void] identifier[associateSuperDef] operator[SEP] identifier[ZooClassDef] identifier[superDef] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[superDef] operator[!=] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalState...
protected void sendWardenEmailToUser(NotificationContext context, SubSystem subSystem) { EntityManager em = emf.get(); PrincipalUser user = getWardenUser(context.getAlert().getName()); SuspensionRecord record = SuspensionRecord.findByUserAndSubsystem(em, user, subSystem); Set<String> to ...
class class_name[name] begin[{] method[sendWardenEmailToUser, return_type[void], modifier[protected], parameter[context, subSystem]] begin[{] local_variable[type[EntityManager], em] local_variable[type[PrincipalUser], user] local_variable[type[SuspensionRecord], record] local_va...
Keyword[protected] Keyword[void] identifier[sendWardenEmailToUser] operator[SEP] identifier[NotificationContext] identifier[context] , identifier[SubSystem] identifier[subSystem] operator[SEP] { identifier[EntityManager] identifier[em] operator[=] identifier[emf] operator[SEP] identifier[get] operator[SEP] oper...
public Set<ObjectName> getBeanNames(String domain) throws JMException { checkClientConnected(); try { return mbeanConn.queryNames(ObjectName.getInstance(domain + ":*"), null); } catch (IOException e) { throw createJmException("Problems querying for jmx bean names: " + e, e); } }
class class_name[name] begin[{] method[getBeanNames, return_type[type[Set]], modifier[public], parameter[domain]] begin[{] call[.checkClientConnected, parameter[]] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(oper...
Keyword[public] identifier[Set] operator[<] identifier[ObjectName] operator[>] identifier[getBeanNames] operator[SEP] identifier[String] identifier[domain] operator[SEP] Keyword[throws] identifier[JMException] { identifier[checkClientConnected] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { ...
@CheckReturnValue public RestAction<List<Message>> retrievePast(int amount) { if (amount > 100 || amount < 1) throw new IllegalArgumentException("Message retrieval limit is between 1 and 100 messages. No more, no less. Limit provided: " + amount); Route.CompiledRoute route = Route.M...
class class_name[name] begin[{] method[retrievePast, return_type[type[RestAction]], modifier[public], parameter[amount]] begin[{] if[binary_operation[binary_operation[member[.amount], >, literal[100]], ||, binary_operation[member[.amount], <, literal[1]]]] begin[{] ThrowStatement(expression=Cla...
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[RestAction] operator[<] identifier[List] operator[<] identifier[Message] operator[>] operator[>] identifier[retrievePast] operator[SEP] Keyword[int] identifier[amount] operator[SEP] { Keyword[if] operator[SEP] identifier[amount] operator[>] Ot...
public ServingCheckData isServingService(MAPApplicationContext dialogApplicationContext) { int vers = dialogApplicationContext.getApplicationContextVersion().getVersion(); switch (dialogApplicationContext.getApplicationContextName()) { case locationSvcEnquiryContext: case locat...
class class_name[name] begin[{] method[isServingService, return_type[type[ServingCheckData]], modifier[public], parameter[dialogApplicationContext]] begin[{] local_variable[type[int], vers] SwitchStatement(cases=[SwitchStatementCase(case=['locationSvcEnquiryContext', 'locationSvcGatewayContext'...
Keyword[public] identifier[ServingCheckData] identifier[isServingService] operator[SEP] identifier[MAPApplicationContext] identifier[dialogApplicationContext] operator[SEP] { Keyword[int] identifier[vers] operator[=] identifier[dialogApplicationContext] operator[SEP] identifier[getApplicationContextVersion] oper...
public static Projection project(Projection... projection) { if (projection.length == 1) { return projection[0]; } else { Projection x = new Projection(true); for (Projection p : projection) { x.addToArray(p.toJson()); } return ...
class class_name[name] begin[{] method[project, return_type[type[Projection]], modifier[public static], parameter[projection]] begin[{] if[binary_operation[member[projection.length], ==, literal[1]]] begin[{] return[member[.projection]] else begin[{] local_variab...
Keyword[public] Keyword[static] identifier[Projection] identifier[project] operator[SEP] identifier[Projection] operator[...] identifier[projection] operator[SEP] { Keyword[if] operator[SEP] identifier[projection] operator[SEP] identifier[length] operator[==] Other[1] operator[SEP] { Keyword[return] i...
protected FromHostPrimitiveResult < T > fromHostInternal(Class < T > javaClass, CobolContext cobolContext, byte[] hostData, int start) { int end = start + getBytesLen(); StringBuffer sb = new StringBuffer(); int[] nibbles = new int[2]; for (int i = start + (signLeading ? 1...
class class_name[name] begin[{] method[fromHostInternal, return_type[type[FromHostPrimitiveResult]], modifier[protected], parameter[javaClass, cobolContext, hostData, start]] begin[{] local_variable[type[int], end] local_variable[type[StringBuffer], sb] local_variable[type[int], nibbles...
Keyword[protected] identifier[FromHostPrimitiveResult] operator[<] identifier[T] operator[>] identifier[fromHostInternal] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[javaClass] , identifier[CobolContext] identifier[cobolContext] , Keyword[byte] operator[SEP] operator[SEP] identifi...
public Position getGlobalPosition(SurfacePositionV0Msg other, Position ref) throws PositionStraddleError, BadFormatException { if (!tools.areEqual(other.getIcao24(), getIcao24())) throw new IllegalArgumentException( String.format("Transmitter of other message (%s) not equal to this (%s).", tools.toH...
class class_name[name] begin[{] method[getGlobalPosition, return_type[type[Position]], modifier[public], parameter[other, ref]] begin[{] if[call[tools.areEqual, parameter[call[other.getIcao24, parameter[]], call[.getIcao24, parameter[]]]]] begin[{] ThrowStatement(expression=ClassCreator(argumen...
Keyword[public] identifier[Position] identifier[getGlobalPosition] operator[SEP] identifier[SurfacePositionV0Msg] identifier[other] , identifier[Position] identifier[ref] operator[SEP] Keyword[throws] identifier[PositionStraddleError] , identifier[BadFormatException] { Keyword[if] operator[SEP] operator[!] ide...
protected void removeRepositoryLocally(String repositoryName, boolean forceRemove) throws RepositoryCreationException { try { // extract list of all datasources ManageableRepository repositorty = repositoryService.getRepository(repositoryName); Set<String> datasources = e...
class class_name[name] begin[{] method[removeRepositoryLocally, return_type[void], modifier[protected], parameter[repositoryName, forceRemove]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Me...
Keyword[protected] Keyword[void] identifier[removeRepositoryLocally] operator[SEP] identifier[String] identifier[repositoryName] , Keyword[boolean] identifier[forceRemove] operator[SEP] Keyword[throws] identifier[RepositoryCreationException] { Keyword[try] { identifier[ManageableRepository] identifie...
private void fillFields() { String folderName = getModuleFolder(m_module.getName()); if (folderName != null) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_parentFormatter.getValue())) { m_parentFormatter.setValue(folderName + FORMATTER); } if (CmsStri...
class class_name[name] begin[{] method[fillFields, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], folderName] if[binary_operation[member[.folderName], !=, literal[null]]] begin[{] if[call[CmsStringUtil.isEmptyOrWhitespace...
Keyword[private] Keyword[void] identifier[fillFields] operator[SEP] operator[SEP] { identifier[String] identifier[folderName] operator[=] identifier[getModuleFolder] operator[SEP] identifier[m_module] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[S...
@Override public void registerDestination(boolean hasLocal, boolean isDeleted) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "registerDestination", new Object[] { ...
class class_name[name] begin[{] method[registerDestination, return_type[void], modifier[public], parameter[hasLocal, isDeleted]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerDestination] operator[SEP] Keyword[boolean] identifier[hasLocal] , Keyword[boolean] identifier[isDeleted] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operato...
@FFDCIgnore(NumberFormatException.class) public static Long evaluateDuration(String strVal, TimeUnit endUnit) { // If the value is a number, simply return the numeric value as a long try { return Long.valueOf(strVal); } catch (NumberFormatException ex) { // ignore ...
class class_name[name] begin[{] method[evaluateDuration, return_type[type[Long]], modifier[public static], parameter[strVal, endUnit]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=strVal, postfix_operators=[], prefix_operators=[], qualifier=...
annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[NumberFormatException] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[static] identifier[Long] identifier[evaluateDuration] operator[SEP] identifier[String] identifier[strVal] , identifier[TimeUnit] identifier[endUnit] operator[SEP] { ...
protected String stringify(DeclaredType input, TypevarContext context) { return toTypeElement(input).getQualifiedName().toString(); }
class class_name[name] begin[{] method[stringify, return_type[type[String]], modifier[protected], parameter[input, context]] begin[{] return[call[.toTypeElement, parameter[member[.input]]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[stringify] operator[SEP] identifier[DeclaredType] identifier[input] , identifier[TypevarContext] identifier[context] operator[SEP] { Keyword[return] identifier[toTypeElement] operator[SEP] identifier[input] operator[SEP] operator[SEP] identifier[getQualifiedName]...
public ApiResponse<Templates> postTemplatesWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = postTemplatesValidateBeforeCall(null, null); Type localVarReturnType = new TypeToken<Templates>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
class class_name[name] begin[{] method[postTemplatesWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execute, parameter[member[.call], member[.localV...
Keyword[public] identifier[ApiResponse] operator[<] identifier[Templates] operator[>] identifier[postTemplatesWithHttpInfo] operator[SEP] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] ide...
public Collection<SingularityRequestHistory> getHistoryForRequest(String requestId, Optional<Integer> count, Optional<Integer> page) { final Function<String, String> requestUri = (host) -> String.format(REQUEST_HISTORY_FORMAT, getApiBase(host), requestId); Optional<Map<String, Object>> maybeQueryParams = Opti...
class class_name[name] begin[{] method[getHistoryForRequest, return_type[type[Collection]], modifier[public], parameter[requestId, count, page]] begin[{] local_variable[type[Function], requestUri] local_variable[type[Optional], maybeQueryParams] local_variable[type[ImmutableMap], queryP...
Keyword[public] identifier[Collection] operator[<] identifier[SingularityRequestHistory] operator[>] identifier[getHistoryForRequest] operator[SEP] identifier[String] identifier[requestId] , identifier[Optional] operator[<] identifier[Integer] operator[>] identifier[count] , identifier[Optional] operator[<] identifie...
public static <T1, T2> void forEachInBoth(List<T1> list1, List<T2> list2, Procedure2<? super T1, ? super T2> procedure) { if (list1 != null && list2 != null) { int size1 = list1.size(); int size2 = list2.size(); if (size1 == size2) { fo...
class class_name[name] begin[{] method[forEachInBoth, return_type[void], modifier[public static], parameter[list1, list2, procedure]] begin[{] if[binary_operation[binary_operation[member[.list1], !=, literal[null]], &&, binary_operation[member[.list2], !=, literal[null]]]] begin[{] ...
Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] operator[>] Keyword[void] identifier[forEachInBoth] operator[SEP] identifier[List] operator[<] identifier[T1] operator[>] identifier[list1] , identifier[List] operator[<] identifier[T2] operator[>] identifier[list2] , identifier[Procedure2] ...
@Override public Iterator<C> iterator() { final List<Sequence<C>> localSequences = sequences; return new Iterator<C>() { private Iterator<C> currentSequenceIterator = null; private int currentPosition = 0; @Override public boolean hasNext() { //If the current iterator is null then see if the Seq...
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] local_variable[type[List], localSequences] return[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Li...
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[C] operator[>] identifier[iterator] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Sequence] operator[<] identifier[C] operator[>] operator[>] identifier[localSequences] operator[=...
static RpcVersionsCheckResult checkRpcProtocolVersions( RpcProtocolVersions localVersions, RpcProtocolVersions peerVersions) { Version maxCommonVersion; Version minCommonVersion; // maxCommonVersion is MIN(local.max, peer.max) if (isGreaterThanOrEqualTo(localVersions.getMaxRpcVersion(), peerVersio...
class class_name[name] begin[{] method[checkRpcProtocolVersions, return_type[type[RpcVersionsCheckResult]], modifier[static], parameter[localVersions, peerVersions]] begin[{] local_variable[type[Version], maxCommonVersion] local_variable[type[Version], minCommonVersion] if[call[...
Keyword[static] identifier[RpcVersionsCheckResult] identifier[checkRpcProtocolVersions] operator[SEP] identifier[RpcProtocolVersions] identifier[localVersions] , identifier[RpcProtocolVersions] identifier[peerVersions] operator[SEP] { identifier[Version] identifier[maxCommonVersion] operator[SEP] identifier[Ver...
public static Document unmarshalHelper(byte[] xmlData, EntityResolver resolver) throws CmsXmlException { return CmsXmlUtils.unmarshalHelper(new InputSource(new ByteArrayInputStream(xmlData)), resolver); }
class class_name[name] begin[{] method[unmarshalHelper, return_type[type[Document]], modifier[public static], parameter[xmlData, resolver]] begin[{] return[call[CmsXmlUtils.unmarshalHelper, parameter[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=xmlData, postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[Document] identifier[unmarshalHelper] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[xmlData] , identifier[EntityResolver] identifier[resolver] operator[SEP] Keyword[throws] identifier[CmsXmlException] { Keyword[return] identifier[CmsXmlUtils] opera...
public BaseTableLayout<C, T> padBottom(float padBottom) { this.padBottom = new FixedValue<C, T>(toolkit, padBottom); sizeInvalid = true; return this; }
class class_name[name] begin[{] method[padBottom, return_type[type[BaseTableLayout]], modifier[public], parameter[padBottom]] begin[{] assign[THIS[member[None.padBottom]], ClassCreator(arguments=[MemberReference(member=toolkit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] identifier[BaseTableLayout] operator[<] identifier[C] , identifier[T] operator[>] identifier[padBottom] operator[SEP] Keyword[float] identifier[padBottom] operator[SEP] { Keyword[this] operator[SEP] identifier[padBottom] operator[=] Keyword[new] identifier[FixedValue] operator[<] identifier[C] ,...
public void shouldBeEmpty(IDataSet dataSet, String tableName, AssertionErrorCollector errorCollector) throws DataSetException { final SortedTable tableState = new SortedTable(dataSet.getTable(tableName)); int rowCount = tableState.getRowCount(); if (rowCount != 0) { errorColl...
class class_name[name] begin[{] method[shouldBeEmpty, return_type[void], modifier[public], parameter[dataSet, tableName, errorCollector]] begin[{] local_variable[type[SortedTable], tableState] local_variable[type[int], rowCount] if[binary_operation[member[.rowCount], !=, literal...
Keyword[public] Keyword[void] identifier[shouldBeEmpty] operator[SEP] identifier[IDataSet] identifier[dataSet] , identifier[String] identifier[tableName] , identifier[AssertionErrorCollector] identifier[errorCollector] operator[SEP] Keyword[throws] identifier[DataSetException] { Keyword[final] identifier[Sorte...
public void send(Command command) { logger.finest(command.toString()); byte[] payload = command.toByteArray(); int totalSize = payload.length + 1; // increment 1 for message type ByteBuffer outMessageSize = encodeMessageSize(totalSize); // create the message ByteBuffer buffer = ByteBuffer.allo...
class class_name[name] begin[{] method[send, return_type[void], modifier[public], parameter[command]] begin[{] call[logger.finest, parameter[call[command.toString, parameter[]]]] local_variable[type[byte], payload] local_variable[type[int], totalSize] local_variable[type...
Keyword[public] Keyword[void] identifier[send] operator[SEP] identifier[Command] identifier[command] operator[SEP] { identifier[logger] operator[SEP] identifier[finest] operator[SEP] identifier[command] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[byte] opera...
private boolean validTypeExpression(Node expr) { String name = getCallName(expr); Keywords keyword = nameToKeyword(name); switch (keyword) { case TYPE: return validTemplateTypeExpression(expr); case UNION: return validUnionTypeExpression(expr); case NONE: return val...
class class_name[name] begin[{] method[validTypeExpression, return_type[type[boolean]], modifier[private], parameter[expr]] begin[{] local_variable[type[String], name] local_variable[type[Keywords], keyword] SwitchStatement(cases=[SwitchStatementCase(case=['TYPE'], statements=[ReturnSta...
Keyword[private] Keyword[boolean] identifier[validTypeExpression] operator[SEP] identifier[Node] identifier[expr] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[getCallName] operator[SEP] identifier[expr] operator[SEP] operator[SEP] identifier[Keywords] identifier[keyword] operator[=]...
public long getLong(String attribute, String namespace) { return Long.parseLong(get(attribute, namespace)); }
class class_name[name] begin[{] method[getLong, return_type[type[long]], modifier[public], parameter[attribute, namespace]] begin[{] return[call[Long.parseLong, parameter[call[.get, parameter[member[.attribute], member[.namespace]]]]]] end[}] END[}]
Keyword[public] Keyword[long] identifier[getLong] operator[SEP] identifier[String] identifier[attribute] , identifier[String] identifier[namespace] operator[SEP] { Keyword[return] identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[get] operator[SEP] identifier[attribute] , identifier...
public CmsRoleViolationException createRoleViolationExceptionForResource( CmsRequestContext requestContext, CmsResource resource) { return new CmsRoleViolationException( Messages.get().container( Messages.ERR_USER_NOT_IN_ROLE_FOR_RESOURCE_3, requestCo...
class class_name[name] begin[{] method[createRoleViolationExceptionForResource, return_type[type[CmsRoleViolationException]], modifier[public], parameter[requestContext, resource]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=...
Keyword[public] identifier[CmsRoleViolationException] identifier[createRoleViolationExceptionForResource] operator[SEP] identifier[CmsRequestContext] identifier[requestContext] , identifier[CmsResource] identifier[resource] operator[SEP] { Keyword[return] Keyword[new] identifier[CmsRoleViolationException] opera...
public void marshall(DeleteDatabaseRequest deleteDatabaseRequest, ProtocolMarshaller protocolMarshaller) { if (deleteDatabaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteDatabaseRe...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteDatabaseRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteDatabaseRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteDatabaseRequest] identifier[deleteDatabaseRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteDatabaseRequest] operator[==] Other[null] operator[SEP] ...
private double bic(int k, int n, int d, double distortion, int[] clusterSize) { double variance = distortion / (n - k); double L = 0.0; for (int i = 0; i < k; i++) { L += logLikelihood(k, n, clusterSize[i], d, variance); } int numParameters = k + k * d; retu...
class class_name[name] begin[{] method[bic, return_type[type[double]], modifier[private], parameter[k, n, d, distortion, clusterSize]] begin[{] local_variable[type[double], variance] local_variable[type[double], L] ForStatement(body=BlockStatement(label=None, statements=[StatementExpres...
Keyword[private] Keyword[double] identifier[bic] operator[SEP] Keyword[int] identifier[k] , Keyword[int] identifier[n] , Keyword[int] identifier[d] , Keyword[double] identifier[distortion] , Keyword[int] operator[SEP] operator[SEP] identifier[clusterSize] operator[SEP] { Keyword[double] identifier[variance] ...
public static void tearDownExample(String host, int port, String user, String password, Authentication authType) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException { DatabaseClient client = DatabaseClientFactory.newClient(host, port, user, password, authType); XMLDocumentMan...
class class_name[name] begin[{] method[tearDownExample, return_type[void], modifier[public static], parameter[host, port, user, password, authType]] begin[{] local_variable[type[DatabaseClient], client] local_variable[type[XMLDocumentManager], docMgr] call[docMgr.delete, paramet...
Keyword[public] Keyword[static] Keyword[void] identifier[tearDownExample] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier[String] identifier[user] , identifier[String] identifier[password] , identifier[Authentication] identifier[authType] operator[SEP] Keyword[throws] ...
public static BufferedImage loadImage(InputStream is){ try { BufferedImage bimg = ImageIO.read(is); if(bimg == null){ throw new ImageLoaderException("Could not load Image! ImageIO.read() returned null."); } return bimg; } catch (IOException e) { throw new ImageLoaderException(e); } }
class class_name[name] begin[{] method[loadImage, return_type[type[BufferedImage]], modifier[public static], parameter[is]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member...
Keyword[public] Keyword[static] identifier[BufferedImage] identifier[loadImage] operator[SEP] identifier[InputStream] identifier[is] operator[SEP] { Keyword[try] { identifier[BufferedImage] identifier[bimg] operator[=] identifier[ImageIO] operator[SEP] identifier[read] operator[SEP] identifier[is] ope...
@Override public void setLineThickness(@FloatRange(from = 1) final float lineThickness) { if (lineThickness < 1) { throw new IllegalArgumentException("Line thickness must not be less than 1"); } if (Float.compare(lineThickness, Float.NaN) == 0) { throw new IllegalArgu...
class class_name[name] begin[{] method[setLineThickness, return_type[void], modifier[public], parameter[lineThickness]] begin[{] if[binary_operation[member[.lineThickness], <, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefi...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setLineThickness] operator[SEP] annotation[@] identifier[FloatRange] operator[SEP] identifier[from] operator[=] Other[1] operator[SEP] Keyword[final] Keyword[float] identifier[lineThickness] operator[SEP] { Keyword[if] operator[SEP] iden...
@Override public IResolvedTypes resolveTypes(/* @NonNull */ Resource resource, /* @Nullable */ CancelIndicator monitor) { validateResourceState(resource); List<EObject> resourceContents = resource.getContents(); if (resourceContents.isEmpty()) { IFeatureScopeSession session = scopeProvider.newSession(resource...
class class_name[name] begin[{] method[resolveTypes, return_type[type[IResolvedTypes]], modifier[public], parameter[resource, monitor]] begin[{] call[.validateResourceState, parameter[member[.resource]]] local_variable[type[List], resourceContents] if[call[resourceConten...
annotation[@] identifier[Override] Keyword[public] identifier[IResolvedTypes] identifier[resolveTypes] operator[SEP] identifier[Resource] identifier[resource] , identifier[CancelIndicator] identifier[monitor] operator[SEP] { identifier[validateResourceState] operator[SEP] identifier[resource] operator[SEP] oper...
public void head(final String aBucket, final String aKey, final Handler<HttpClientResponse> aHandler) { createHeadRequest(aBucket, aKey, aHandler).end(); }
class class_name[name] begin[{] method[head, return_type[void], modifier[public], parameter[aBucket, aKey, aHandler]] begin[{] call[.createHeadRequest, parameter[member[.aBucket], member[.aKey], member[.aHandler]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[head] operator[SEP] Keyword[final] identifier[String] identifier[aBucket] , Keyword[final] identifier[String] identifier[aKey] , Keyword[final] identifier[Handler] operator[<] identifier[HttpClientResponse] operator[>] identifier[aHandler] operator[SEP] { identifier[cre...
public void setIntents(java.util.Collection<BuiltinIntentMetadata> intents) { if (intents == null) { this.intents = null; return; } this.intents = new java.util.ArrayList<BuiltinIntentMetadata>(intents); }
class class_name[name] begin[{] method[setIntents, return_type[void], modifier[public], parameter[intents]] begin[{] if[binary_operation[member[.intents], ==, literal[null]]] begin[{] assign[THIS[member[None.intents]], literal[null]] return[None] else...
Keyword[public] Keyword[void] identifier[setIntents] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[BuiltinIntentMetadata] operator[>] identifier[intents] operator[SEP] { Keyword[if] operator[SEP] identifier[intents] operator[==] Other[nu...
@Override protected void closeLocal() { if (_localmodel.get_params()._elastic_averaging) { // store local model, as it will be reduced in the following, and hence averaged with other models DKV.put(_localmodel.localModelInfoKey(H2O.SELF), _localmodel, _fs); } _sharedmodel = null; //avoid seriali...
class class_name[name] begin[{] method[closeLocal, return_type[void], modifier[protected], parameter[]] begin[{] if[call[_localmodel.get_params, parameter[]]] begin[{] call[DKV.put, parameter[call[_localmodel.localModelInfoKey, parameter[member[H2O.SELF]]], member[._loca...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[closeLocal] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_localmodel] operator[SEP] identifier[get_params] operator[SEP] operator[SEP] operator[SEP] identifier[_elastic_averaging] operator[SEP] { ident...
public ServiceFuture<CertificateOperation> createCertificateAsync(CreateCertificateRequest createCertificateRequest, final ServiceCallback<CertificateOperation> serviceCallback) { return createCertificateAsync(createCertificateRequest.vaultBaseUrl(), createCertificateRequest.certific...
class class_name[name] begin[{] method[createCertificateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[createCertificateRequest, serviceCallback]] begin[{] return[call[.createCertificateAsync, parameter[call[createCertificateRequest.vaultBaseUrl, parameter[]], call[createCertifica...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[CertificateOperation] operator[>] identifier[createCertificateAsync] operator[SEP] identifier[CreateCertificateRequest] identifier[createCertificateRequest] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[CertificateOperation] operato...
public void setCacheable(String cacheable) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(cacheable)) { m_cacheable = Boolean.valueOf(cacheable).booleanValue(); } }
class class_name[name] begin[{] method[setCacheable, return_type[void], modifier[public], parameter[cacheable]] begin[{] if[call[CmsStringUtil.isNotEmptyOrWhitespaceOnly, parameter[member[.cacheable]]]] begin[{] assign[member[.m_cacheable], call[Boolean.valueOf, paramete...
Keyword[public] Keyword[void] identifier[setCacheable] operator[SEP] identifier[String] identifier[cacheable] operator[SEP] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isNotEmptyOrWhitespaceOnly] operator[SEP] identifier[cacheable] operator[SEP] operator[SEP] { ident...
public final IO.Readable open(String path, byte priority) throws IOException { Object pointer = getResourcePointer(path); AbstractClassLoader cl = this; if (pointer == null) { if (subLoaders != null) for (AbstractClassLoader sub : subLoaders) { pointer = sub.getResourcePointer(path); if (p...
class class_name[name] begin[{] method[open, return_type[type[IO]], modifier[final public], parameter[path, priority]] begin[{] local_variable[type[Object], pointer] local_variable[type[AbstractClassLoader], cl] if[binary_operation[member[.pointer], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[final] identifier[IO] operator[SEP] identifier[Readable] identifier[open] operator[SEP] identifier[String] identifier[path] , Keyword[byte] identifier[priority] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Object] identifier[pointer] operator[=] identifier[getResour...
public static long[] copy(long[] v, int mincap, int shift) { int words = ((mincap - 1) >>> LONG_LOG2_SIZE) + 1; if(v.length == words && shift == 0) { return Arrays.copyOf(v, v.length); } long[] ret = new long[words]; final int shiftWords = shift >>> LONG_LOG2_SIZE; final int shiftBits = sh...
class class_name[name] begin[{] method[copy, return_type[type[long]], modifier[public static], parameter[v, mincap, shift]] begin[{] local_variable[type[int], words] if[binary_operation[binary_operation[member[v.length], ==, member[.words]], &&, binary_operation[member[.shift], ==, lite...
Keyword[public] Keyword[static] Keyword[long] operator[SEP] operator[SEP] identifier[copy] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[v] , Keyword[int] identifier[mincap] , Keyword[int] identifier[shift] operator[SEP] { Keyword[int] identifier[words] operator[=] operator[SEP] operator[S...
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case XbasePackage.XCASE_PART__CASE: return basicSetCase(null, msgs); case XbasePackage.XCASE_PART__THEN: return basicSetThen(null, msgs); case XbasePackage.XCA...
class class_name[name] begin[{] method[eInverseRemove, return_type[type[NotificationChain]], modifier[public], parameter[otherEnd, featureID, msgs]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=XCASE_PART__CASE, postfix_operators=[], prefix_operators=[], qualifier=Xb...
annotation[@] identifier[Override] Keyword[public] identifier[NotificationChain] identifier[eInverseRemove] operator[SEP] identifier[InternalEObject] identifier[otherEnd] , Keyword[int] identifier[featureID] , identifier[NotificationChain] identifier[msgs] operator[SEP] { Keyword[switch] operator[SEP] identifi...
public void apply(double[] target) { //use DoubleList view b/d we are only using set ops, so we wont run into an issue of re-allocating the array apply(DoubleList.view(target, target.length), new DoubleList(target.length)); }
class class_name[name] begin[{] method[apply, return_type[void], modifier[public], parameter[target]] begin[{] call[.apply, parameter[call[DoubleList.view, parameter[member[.target], member[target.length]]], ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_ope...
Keyword[public] Keyword[void] identifier[apply] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[target] operator[SEP] { identifier[apply] operator[SEP] identifier[DoubleList] operator[SEP] identifier[view] operator[SEP] identifier[target] , identifier[target] operator[SEP] identifier[length...
@Nonnull public static IntBinaryOperator intBinaryOperatorFrom(Consumer<IntBinaryOperatorBuilder> buildingFunction) { IntBinaryOperatorBuilder builder = new IntBinaryOperatorBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[intBinaryOperatorFrom, return_type[type[IntBinaryOperator]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[IntBinaryOperatorBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] r...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[IntBinaryOperator] identifier[intBinaryOperatorFrom] operator[SEP] identifier[Consumer] operator[<] identifier[IntBinaryOperatorBuilder] operator[>] identifier[buildingFunction] operator[SEP] { identifier[IntBinaryOperatorBuilder] ident...
public static IModel<ICmdUIObject> getModel(final Long _cmdId, final Instance _instance) { return Model.<ICmdUIObject>of(UICmdObject.get(_cmdId).setInstance(_instance)); }
class class_name[name] begin[{] method[getModel, return_type[type[IModel]], modifier[public static], parameter[_cmdId, _instance]] begin[{] return[call[.Model, parameter[call[UICmdObject.get, parameter[member[._cmdId]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[IModel] operator[<] identifier[ICmdUIObject] operator[>] identifier[getModel] operator[SEP] Keyword[final] identifier[Long] identifier[_cmdId] , Keyword[final] identifier[Instance] identifier[_instance] operator[SEP] { Keyword[return] identifier[Model] operator[SEP] op...
public void drawImage(Image image, float x, float y, float x2, float y2, float srcx, float srcy, float srcx2, float srcy2, Color col) { predraw(); image.draw(x, y, x2, y2, srcx, srcy, srcx2, srcy2, col); currentColor.bind(); postdraw(); }
class class_name[name] begin[{] method[drawImage, return_type[void], modifier[public], parameter[image, x, y, x2, y2, srcx, srcy, srcx2, srcy2, col]] begin[{] call[.predraw, parameter[]] call[image.draw, parameter[member[.x], member[.y], member[.x2], member[.y2], member[.srcx], ...
Keyword[public] Keyword[void] identifier[drawImage] operator[SEP] identifier[Image] identifier[image] , Keyword[float] identifier[x] , Keyword[float] identifier[y] , Keyword[float] identifier[x2] , Keyword[float] identifier[y2] , Keyword[float] identifier[srcx] , Keyword[float] identifier[srcy] , Keyword[float] ...
protected boolean parseColumnNameList( DdlTokenStream tokens, AstNode parentNode, String referenceType ) { boolean parsedColumns = false; // CONSUME COLUMNS List<String> columnNameList = new ArrayList<String>()...
class class_name[name] begin[{] method[parseColumnNameList, return_type[type[boolean]], modifier[protected], parameter[tokens, parentNode, referenceType]] begin[{] local_variable[type[boolean], parsedColumns] local_variable[type[List], columnNameList] if[call[tokens.matches, par...
Keyword[protected] Keyword[boolean] identifier[parseColumnNameList] operator[SEP] identifier[DdlTokenStream] identifier[tokens] , identifier[AstNode] identifier[parentNode] , identifier[String] identifier[referenceType] operator[SEP] { Keyword[boolean] identifier[parsedColumns] operator[=] literal[boolean] ope...
public static Function<? super ReactiveSeq<Double>, ? extends ReactiveSeq<Double>> flatMapDoubles(DoubleFunction<? extends DoubleStream> b){ return a->a.doubles(i->i,s->s.flatMap(b)); }
class class_name[name] begin[{] method[flatMapDoubles, return_type[type[Function]], modifier[public static], parameter[b]] begin[{] return[LambdaExpression(body=MethodInvocation(arguments=[LambdaExpression(body=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
Keyword[public] Keyword[static] identifier[Function] operator[<] operator[?] Keyword[super] identifier[ReactiveSeq] operator[<] identifier[Double] operator[>] , operator[?] Keyword[extends] identifier[ReactiveSeq] operator[<] identifier[Double] operator[>] operator[>] identifier[flatMapDoubles] operator[SEP] identifie...
@SuppressWarnings("unchecked") public static <T> T newInstance(Class<T> clazz, Object... arguments) throws BugError, NoSuchBeingException, BugError { if(clazz.isInterface()) { throw new BugError("Attempt to create new instance for interface |%s|.", clazz); } if(clazz.isArray()) { thro...
class class_name[name] begin[{] method[newInstance, return_type[type[T]], modifier[public static], parameter[clazz, arguments]] begin[{] if[call[clazz.isInterface, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[newInstance] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] , identifier[Object] operator[...] i...
public JSONObject batch(List<JSONObject> actions, RequestOptions requestOptions) throws AlgoliaException { return postBatch(actions, requestOptions); }
class class_name[name] begin[{] method[batch, return_type[type[JSONObject]], modifier[public], parameter[actions, requestOptions]] begin[{] return[call[.postBatch, parameter[member[.actions], member[.requestOptions]]]] end[}] END[}]
Keyword[public] identifier[JSONObject] identifier[batch] operator[SEP] identifier[List] operator[<] identifier[JSONObject] operator[>] identifier[actions] , identifier[RequestOptions] identifier[requestOptions] operator[SEP] Keyword[throws] identifier[AlgoliaException] { Keyword[return] identifier[postBatch] op...
public List<Integer> getUniverseConstellations(String datasource, String ifNoneMatch) throws ApiException { ApiResponse<List<Integer>> resp = getUniverseConstellationsWithHttpInfo(datasource, ifNoneMatch); return resp.getData(); }
class class_name[name] begin[{] method[getUniverseConstellations, return_type[type[List]], modifier[public], parameter[datasource, ifNoneMatch]] begin[{] local_variable[type[ApiResponse], resp] return[call[resp.getData, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Integer] operator[>] identifier[getUniverseConstellations] operator[SEP] identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[ApiResponse] operator[<] ide...
public double diagonalProduct() { BigDecimal result = BigDecimal.ONE; for (int i = 0; i < rows; i++) { result = result.multiply(BigDecimal.valueOf(get(i, i))); } return result.setScale(Matrices.ROUND_FACTOR, RoundingMode.CEILING).doubleValue(); }
class class_name[name] begin[{] method[diagonalProduct, return_type[type[double]], modifier[public], parameter[]] begin[{] local_variable[type[BigDecimal], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(memb...
Keyword[public] Keyword[double] identifier[diagonalProduct] operator[SEP] operator[SEP] { identifier[BigDecimal] identifier[result] operator[=] identifier[BigDecimal] operator[SEP] identifier[ONE] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i]...
@Override public java.util.List<com.liferay.commerce.tax.engine.fixed.model.CommerceTaxFixedRate> getCommerceTaxFixedRates( int start, int end) { return _commerceTaxFixedRateLocalService.getCommerceTaxFixedRates(start, end); }
class class_name[name] begin[{] method[getCommerceTaxFixedRates, return_type[type[java]], modifier[public], parameter[start, end]] begin[{] return[call[_commerceTaxFixedRateLocalService.getCommerceTaxFixedRates, parameter[member[.start], member[.end]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[tax] operator[SEP] identifier[engine] operator[SEP] identifier[fixed...
@Override protected void onInitializeLayout() { super.onInitializeLayout(); setLayout(new BorderLayout()); add(wizardContentPanel, BorderLayout.CENTER); add(navigationPanel, BorderLayout.SOUTH); }
class class_name[name] begin[{] method[onInitializeLayout, return_type[void], modifier[protected], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=onInitializeLayout, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) c...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[onInitializeLayout] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[onInitializeLayout] operator[SEP] operator[SEP] operator[SEP] identifier[setLayout] operator[SEP] Keyword[new] identifier[BorderLayout] operator...
@Override CEAST constraint(CEAST.NodeList clauses) throws ParseException { CEAST node = new CEAST(CEAST.Sort.CONSTRAINT); node.clauses = clauses; node.dimdefs = dimdefs; // save for constructing the DMR this.constraint = node; return node; }
class class_name[name] begin[{] method[constraint, return_type[type[CEAST]], modifier[default], parameter[clauses]] begin[{] local_variable[type[CEAST], node] assign[member[node.clauses], member[.clauses]] assign[member[node.dimdefs], member[.dimdefs]] as...
annotation[@] identifier[Override] identifier[CEAST] identifier[constraint] operator[SEP] identifier[CEAST] operator[SEP] identifier[NodeList] identifier[clauses] operator[SEP] Keyword[throws] identifier[ParseException] { identifier[CEAST] identifier[node] operator[=] Keyword[new] identifier[CEAST] operator[SEP]...
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(!(objectClass=com.ibm.ws.security.registry.FederationRegistry))") protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistry> ref) { String configId = (String) ref.getProperty(KEY_CONFIG_ID)...
class class_name[name] begin[{] method[setUserRegistry, return_type[type[Map]], modifier[protected], parameter[ref]] begin[{] local_variable[type[String], configId] local_variable[type[String], type] if[binary_operation[binary_operation[member[.configId], !=, literal[null]], &&,...
annotation[@] identifier[Reference] operator[SEP] identifier[policy] operator[=] identifier[ReferencePolicy] operator[SEP] identifier[DYNAMIC] , identifier[cardinality] operator[=] identifier[ReferenceCardinality] operator[SEP] identifier[MULTIPLE] , identifier[target] operator[=] literal[String] operator[SEP] Keywor...
@Nonnull public final <B> ImmutableList<B> bind(@Nonnull F<A, ImmutableList<B>> f) { return this.flatMap(f); }
class class_name[name] begin[{] method[bind, return_type[type[ImmutableList]], modifier[final public], parameter[f]] begin[{] return[THIS[call[None.flatMap, parameter[member[.f]]]]] end[}] END[}]
annotation[@] identifier[Nonnull] Keyword[public] Keyword[final] operator[<] identifier[B] operator[>] identifier[ImmutableList] operator[<] identifier[B] operator[>] identifier[bind] operator[SEP] annotation[@] identifier[Nonnull] identifier[F] operator[<] identifier[A] , identifier[ImmutableList] operator[<] identif...
public static String generateRandomId() { StringBuffer buffer = new StringBuffer(); int base = 36; for (int i = 0; i < 16; i++) { buffer.append(Integer.toString(RANDOM.nextInt(base), base)); } return buffer.toString(); }
class class_name[name] begin[{] method[generateRandomId, return_type[type[String]], modifier[public static], parameter[]] begin[{] local_variable[type[StringBuffer], buffer] local_variable[type[int], base] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expr...
Keyword[public] Keyword[static] identifier[String] identifier[generateRandomId] operator[SEP] operator[SEP] { identifier[StringBuffer] identifier[buffer] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[base] operator[=] Other[36] operator[SEP] K...
public void refreshObjectTile (MisoSceneMetrics metrics, TileManager mgr, Colorizer colorizer) { int tsid = TileUtil.getTileSetId(info.tileId); int tidx = TileUtil.getTileIndex(info.tileId); try { tile = (ObjectTile)mgr.getTile(tsid, tidx, colorizer); computeInfo(metr...
class class_name[name] begin[{] method[refreshObjectTile, return_type[void], modifier[public], parameter[metrics, mgr, colorizer]] begin[{] local_variable[type[int], tsid] local_variable[type[int], tidx] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberRef...
Keyword[public] Keyword[void] identifier[refreshObjectTile] operator[SEP] identifier[MisoSceneMetrics] identifier[metrics] , identifier[TileManager] identifier[mgr] , identifier[Colorizer] identifier[colorizer] operator[SEP] { Keyword[int] identifier[tsid] operator[=] identifier[TileUtil] operator[SEP] identif...
public List<TaskLock> findLocksForTask(final Task task) { giant.lock(); try { return Lists.transform( findLockPossesForTask(task), new Function<TaskLockPosse, TaskLock>() { @Override public TaskLock apply(TaskLockPosse taskLockPosse) { ...
class class_name[name] begin[{] method[findLocksForTask, return_type[type[List]], modifier[public], parameter[task]] begin[{] call[giant.lock, parameter[]] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=task,...
Keyword[public] identifier[List] operator[<] identifier[TaskLock] operator[>] identifier[findLocksForTask] operator[SEP] Keyword[final] identifier[Task] identifier[task] operator[SEP] { identifier[giant] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[re...
public static <T> String marshal(final JAXBContext ctx, final T data, final XmlAdapter<?, ?>[] adapters) { if (data == null) { return null; } final StringWriter writer = new StringWriter(); marshal(ctx, data, adapters, writer); return writer.toString(); }
class class_name[name] begin[{] method[marshal, return_type[type[String]], modifier[public static], parameter[ctx, data, adapters]] begin[{] if[binary_operation[member[.data], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[String] identifier[marshal] operator[SEP] Keyword[final] identifier[JAXBContext] identifier[ctx] , Keyword[final] identifier[T] identifier[data] , Keyword[final] identifier[XmlAdapter] operator[<] operator[?] , operator[?] operator[>] o...
@edu.umd.cs.findbugs.annotations.SuppressWarnings({"DE_MIGHT_IGNORE"}) public static byte[] encodeBytesToBytes( byte[] source, int off, int len, int options ) throws java.io.IOException { if( source == null ){ throw new NullPointerException( "Cannot serialize a null array." ); } // en...
class class_name[name] begin[{] method[encodeBytesToBytes, return_type[type[byte]], modifier[public static], parameter[source, off, len, options]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
annotation[@] identifier[edu] operator[SEP] identifier[umd] operator[SEP] identifier[cs] operator[SEP] identifier[findbugs] operator[SEP] identifier[annotations] operator[SEP] identifier[SuppressWarnings] operator[SEP] { literal[String] } operator[SEP] Keyword[public] Keyword[static] Keyword[byte] operator[SE...
@SuppressWarnings("unchecked") public <A> SimplePath<A> get(Path<A> path) { SimplePath<A> newPath = getSimple(toString(path), (Class<A>) path.getType()); return addMetadataOf(newPath, path); }
class class_name[name] begin[{] method[get, return_type[type[SimplePath]], modifier[public], parameter[path]] begin[{] local_variable[type[SimplePath], newPath] return[call[.addMetadataOf, parameter[member[.newPath], member[.path]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[A] operator[>] identifier[SimplePath] operator[<] identifier[A] operator[>] identifier[get] operator[SEP] identifier[Path] operator[<] identifier[A] operator[>] identifier[path] operator[SEP] {...
@Nullable public static UserDataObject createConditional (@Nullable final String sPath) { if (StringHelper.hasNoText (sPath)) return null; return new UserDataObject (sPath); }
class class_name[name] begin[{] method[createConditional, return_type[type[UserDataObject]], modifier[public static], parameter[sPath]] begin[{] if[call[StringHelper.hasNoText, parameter[member[.sPath]]]] begin[{] return[literal[null]] else begin[{] None end[}] return[Cl...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[UserDataObject] identifier[createConditional] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sPath] operator[SEP] { Keyword[if] operator[SEP] identifier[StringHelper] operator[SEP] identif...
public static com.liferay.commerce.product.model.CPFriendlyURLEntry fetchCPFriendlyURLEntryByUuidAndGroupId( String uuid, long groupId) { return getService() .fetchCPFriendlyURLEntryByUuidAndGroupId(uuid, groupId); }
class class_name[name] begin[{] method[fetchCPFriendlyURLEntryByUuidAndGroupId, return_type[type[com]], modifier[public static], parameter[uuid, groupId]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CPFriendlyURLEntry] identifier[fetchCPFriendlyURLEntryByUuidAndGroupId] operator[SEP] identifier[String] identif...
private static int getProperty(String prefix, String name, int defaultValue) { int result = defaultValue; try { result = Integer.parseInt(System.getProperty(prefix + name)); } catch (NumberFormatException e) { LOG.warn("Value for " + prefix + name + " must be an integer....
class class_name[name] begin[{] method[getProperty, return_type[type[int]], modifier[private static], parameter[prefix, name, defaultValue]] begin[{] local_variable[type[int], result] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfi...
Keyword[private] Keyword[static] Keyword[int] identifier[getProperty] operator[SEP] identifier[String] identifier[prefix] , identifier[String] identifier[name] , Keyword[int] identifier[defaultValue] operator[SEP] { Keyword[int] identifier[result] operator[=] identifier[defaultValue] operator[SEP] Keyword[try]...
public PushQueue getPushQueue(final Object accessObject) { if (accessObject == null || !(SecurityClassConstants.ABSTRACT_HTML .equals(accessObject.getClass().getName()) || SecurityClassConstants.ABSTRACT_ATTRIBUTE .equals(accessObject.getClass().getName())...
class class_name[name] begin[{] method[getPushQueue, return_type[type[PushQueue]], modifier[public], parameter[accessObject]] begin[{] if[binary_operation[binary_operation[member[.accessObject], ==, literal[null]], ||, binary_operation[binary_operation[call[SecurityClassConstants.ABSTRACT_HTML....
Keyword[public] identifier[PushQueue] identifier[getPushQueue] operator[SEP] Keyword[final] identifier[Object] identifier[accessObject] operator[SEP] { Keyword[if] operator[SEP] identifier[accessObject] operator[==] Other[null] operator[||] operator[!] operator[SEP] identifier[SecurityClassConstants] operator[SE...
@Override public void write(byte[] bytes, int off, int len) throws IOException { // if httpResponse.setContentType(x) has been called with !x.contains("text/html"), // then no need to continue scanning for the beforeTag if (injectionCanceled) { super.write(bytes, off, len); } else { final int inde...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[bytes, off, len]] begin[{] if[member[.injectionCanceled]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], quali...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier...
public IoFilterQueryIssueResult queryIoFilterIssues(String filterId, ComputeResource compRes) throws RemoteException, RuntimeFault { return getVimService().queryIoFilterIssues(getMOR(), filterId, compRes.getMOR()); }
class class_name[name] begin[{] method[queryIoFilterIssues, return_type[type[IoFilterQueryIssueResult]], modifier[public], parameter[filterId, compRes]] begin[{] return[call[.getVimService, parameter[]]] end[}] END[}]
Keyword[public] identifier[IoFilterQueryIssueResult] identifier[queryIoFilterIssues] operator[SEP] identifier[String] identifier[filterId] , identifier[ComputeResource] identifier[compRes] operator[SEP] Keyword[throws] identifier[RemoteException] , identifier[RuntimeFault] { Keyword[return] identifier[getVimSe...
public long queryIndexedFeaturesCount(BoundingBox webMercatorBoundingBox) { // Create an expanded bounding box to handle features outside the tile // that overlap BoundingBox expandedQueryBoundingBox = expandBoundingBox(webMercatorBoundingBox); // Query for the count of geometries matching the bounds in the i...
class class_name[name] begin[{] method[queryIndexedFeaturesCount, return_type[type[long]], modifier[public], parameter[webMercatorBoundingBox]] begin[{] local_variable[type[BoundingBox], expandedQueryBoundingBox] local_variable[type[long], count] return[member[.count]] end[}] END[}]
Keyword[public] Keyword[long] identifier[queryIndexedFeaturesCount] operator[SEP] identifier[BoundingBox] identifier[webMercatorBoundingBox] operator[SEP] { identifier[BoundingBox] identifier[expandedQueryBoundingBox] operator[=] identifier[expandBoundingBox] operator[SEP] identifier[webMercatorBoundingBox] oper...
public static boolean isEmbedded(String driverClassName) { return databases .stream() .filter(JdbcDatabase::isEmbedded) .anyMatch(db -> db.driverClassName.equals(driverClassName)); }
class class_name[name] begin[{] method[isEmbedded, return_type[type[boolean]], modifier[public static], parameter[driverClassName]] begin[{] return[call[databases.stream, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isEmbedded] operator[SEP] identifier[String] identifier[driverClassName] operator[SEP] { Keyword[return] identifier[databases] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[filter] operator[SEP] identifier[JdbcDat...
@Override public synchronized void prepareAnalyzer(Engine engine) throws InitializationException { if (rules.isEmpty()) { try { loadSuppressionBaseData(); } catch (SuppressionParseException ex) { throw new InitializationException("Error initializing th...
class class_name[name] begin[{] method[prepareAnalyzer, return_type[void], modifier[synchronized public], parameter[engine]] begin[{] if[call[rules.isEmpty, parameter[]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=loadSuppressio...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[prepareAnalyzer] operator[SEP] identifier[Engine] identifier[engine] operator[SEP] Keyword[throws] identifier[InitializationException] { Keyword[if] operator[SEP] identifier[rules] operator[SEP] identifier[isEmpty] ...
public ListDeliveryStreamsResult withDeliveryStreamNames(String... deliveryStreamNames) { if (this.deliveryStreamNames == null) { setDeliveryStreamNames(new java.util.ArrayList<String>(deliveryStreamNames.length)); } for (String ele : deliveryStreamNames) { this.deliveryS...
class class_name[name] begin[{] method[withDeliveryStreamNames, return_type[type[ListDeliveryStreamsResult]], modifier[public], parameter[deliveryStreamNames]] begin[{] if[binary_operation[THIS[member[None.deliveryStreamNames]], ==, literal[null]]] begin[{] call[.setDeli...
Keyword[public] identifier[ListDeliveryStreamsResult] identifier[withDeliveryStreamNames] operator[SEP] identifier[String] operator[...] identifier[deliveryStreamNames] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[deliveryStreamNames] operator[==] Other[null] operator[SEP] { ...
private ImmutableSet<ASTAnnotation> getAnnotations(Annotation[] annotations) { ImmutableSet.Builder<ASTAnnotation> astAnnotationBuilder = ImmutableSet.builder(); for (Annotation annotation : annotations) { astAnnotationBuilder.add(getAnnotation(annotation)); } return astAn...
class class_name[name] begin[{] method[getAnnotations, return_type[type[ImmutableSet]], modifier[private], parameter[annotations]] begin[{] local_variable[type[ImmutableSet], astAnnotationBuilder] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvo...
Keyword[private] identifier[ImmutableSet] operator[<] identifier[ASTAnnotation] operator[>] identifier[getAnnotations] operator[SEP] identifier[Annotation] operator[SEP] operator[SEP] identifier[annotations] operator[SEP] { identifier[ImmutableSet] operator[SEP] identifier[Builder] operator[<] identifier[ASTAnno...
public void warn(String message, Throwable e) { warn(message); e.printStackTrace(out); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public], parameter[message, e]] begin[{] call[.warn, parameter[member[.message]]] call[e.printStackTrace, parameter[member[.out]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[warn] operator[SEP] identifier[String] identifier[message] , identifier[Throwable] identifier[e] operator[SEP] { identifier[warn] operator[SEP] identifier[message] operator[SEP] operator[SEP] identifier[e] operator[SEP] identifier[printStackTrace] operator[SEP] identifie...
public void run() { Set<Integer> toRemove = new HashSet<Integer>(); do { boolean idle = true; // Remove agents that have have become idle due to an external event removeInactiveAgents(); // Add agents that have have become active due to an external event addActiveAgents(); fo...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Set], toRemove] do[literal[true]] begin[{] local_variable[type[boolean], idle] call[.removeInactiveAgents, parameter[]] ...
Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[Integer] operator[>] identifier[toRemove] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[Integer] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[do] { ...
protected int sign(Match m, String... ctrlLabel) { int sign = 1; for (String lab : ctrlLabel) { Control ctrl = (Control) m.get(lab, getPattern()); sign *= sign(ctrl); } return sign; }
class class_name[name] begin[{] method[sign, return_type[type[int]], modifier[protected], parameter[m, ctrlLabel]] begin[{] local_variable[type[int], sign] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimension...
Keyword[protected] Keyword[int] identifier[sign] operator[SEP] identifier[Match] identifier[m] , identifier[String] operator[...] identifier[ctrlLabel] operator[SEP] { Keyword[int] identifier[sign] operator[=] Other[1] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[lab] operator[:] iden...
public static <SOURCE, TARGET> PropertyCopier<SOURCE, TARGET> getInstance(Typed<SOURCE> sourceType, Typed<TARGET> targetType, Mapping mapping, Matching matching) { return new FromFactory<>(Validate.notNull(sourceType, "sourceType"), Validate.notNull(targetType, "targetType"), mapping, matchi...
class class_name[name] begin[{] method[getInstance, return_type[type[PropertyCopier]], modifier[public static], parameter[sourceType, targetType, mapping, matching]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=sourceType, postfix_operators=[], prefix_opera...
Keyword[public] Keyword[static] operator[<] identifier[SOURCE] , identifier[TARGET] operator[>] identifier[PropertyCopier] operator[<] identifier[SOURCE] , identifier[TARGET] operator[>] identifier[getInstance] operator[SEP] identifier[Typed] operator[<] identifier[SOURCE] operator[>] identifier[sourceType] , identi...
public static boolean referencesOuter(Tree tree, Symbol owner, VisitorState state) { CanBeStaticAnalyzer scanner = new CanBeStaticAnalyzer(owner, state); ((JCTree) tree).accept(scanner); return !scanner.canPossiblyBeStatic || !scanner.outerReferences.isEmpty(); }
class class_name[name] begin[{] method[referencesOuter, return_type[type[boolean]], modifier[public static], parameter[tree, owner, state]] begin[{] local_variable[type[CanBeStaticAnalyzer], scanner] Cast(expression=MemberReference(member=tree, postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] Keyword[boolean] identifier[referencesOuter] operator[SEP] identifier[Tree] identifier[tree] , identifier[Symbol] identifier[owner] , identifier[VisitorState] identifier[state] operator[SEP] { identifier[CanBeStaticAnalyzer] identifier[scanner] operator[=] Keyword[new] identifie...