code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void registerSubscription(Subscription subscription) { mSubscriptions.add(subscription); if (isConnected()) { executeQuery(subscription.getQuery()); } }
class class_name[name] begin[{] method[registerSubscription, return_type[void], modifier[public static], parameter[subscription]] begin[{] call[mSubscriptions.add, parameter[member[.subscription]]] if[call[.isConnected, parameter[]]] begin[{] call[.execut...
Keyword[public] Keyword[static] Keyword[void] identifier[registerSubscription] operator[SEP] identifier[Subscription] identifier[subscription] operator[SEP] { identifier[mSubscriptions] operator[SEP] identifier[add] operator[SEP] identifier[subscription] operator[SEP] operator[SEP] Keyword[if] operator[SEP] iden...
public static xen_nsvpx_image[] get_filtered(nitro_service service, String filter) throws Exception { xen_nsvpx_image obj = new xen_nsvpx_image(); options option = new options(); option.set_filter(filter); xen_nsvpx_image[] response = (xen_nsvpx_image[]) obj.getfiltered(service, option); return respons...
class class_name[name] begin[{] method[get_filtered, return_type[type[xen_nsvpx_image]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[xen_nsvpx_image], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filte...
Keyword[public] Keyword[static] identifier[xen_nsvpx_image] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[xen_nsvpx_image] identifier[obj] o...
protected URL getStylesheetURL() { URL url = this.getClass().getClassLoader().getResource(getStylesheetLocation()); if (url == null) { try { if (getStylesheetLocation().startsWith("http://")) { return new URL(getStylesheetLocation()); } return new File(getStylesheetLocation()).toURI().toURL(); ...
class class_name[name] begin[{] method[getStylesheetURL, return_type[type[URL]], modifier[protected], parameter[]] begin[{] local_variable[type[URL], url] if[binary_operation[member[.url], ==, literal[null]]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocatio...
Keyword[protected] identifier[URL] identifier[getStylesheetURL] operator[SEP] operator[SEP] { identifier[URL] identifier[url] operator[=] Keyword[this] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getClassLoader] operator[SEP] operator[SEP] operator[SEP] identifier[getR...
private String getDataInsertStatement(String table) throws SQLException { StringBuilder sql = new StringBuilder(); ResultSet rs = stmt.executeQuery("SELECT * FROM " + "`" + table + "`;"); //move to the last row to get max rows returned rs.last(); int rowCount = rs.getR...
class class_name[name] begin[{] method[getDataInsertStatement, return_type[type[String]], modifier[private], parameter[table]] begin[{] local_variable[type[StringBuilder], sql] local_variable[type[ResultSet], rs] call[rs.last, parameter[]] local_variable[type[int], rowCo...
Keyword[private] identifier[String] identifier[getDataInsertStatement] operator[SEP] identifier[String] identifier[table] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[StringBuilder] identifier[sql] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP]...
@NullSafe @SuppressWarnings("all") public static boolean areAllNull(Object... values) { for (Object value : nullSafeArray(values)) { if (value != null) { return false; } } return true; }
class class_name[name] begin[{] method[areAllNull, return_type[type[boolean]], modifier[public static], parameter[values]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operator...
annotation[@] identifier[NullSafe] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[areAllNull] operator[SEP] identifier[Object] operator[...] identifier[values] operator[SEP] { Keyword[for] operator[SEP] identifier...
public final Reliability getReliability() { /* Get the byte value and get the corresponding Reliability instance */ Byte rType = (Byte)jmo.getField(ControlAccess.RELIABILITY); return Reliability.getReliability(rType); }
class class_name[name] begin[{] method[getReliability, return_type[type[Reliability]], modifier[final public], parameter[]] begin[{] local_variable[type[Byte], rType] return[call[Reliability.getReliability, parameter[member[.rType]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[Reliability] identifier[getReliability] operator[SEP] operator[SEP] { identifier[Byte] identifier[rType] operator[=] operator[SEP] identifier[Byte] operator[SEP] identifier[jmo] operator[SEP] identifier[getField] operator[SEP] identifier[ControlAccess] operator[SEP] iden...
public void sessionOpened(IoSession session) throws Exception { SingleSessionIoHandler handler = (SingleSessionIoHandler) session .getAttribute(HANDLER); handler.sessionOpened(); }
class class_name[name] begin[{] method[sessionOpened, return_type[void], modifier[public], parameter[session]] begin[{] local_variable[type[SingleSessionIoHandler], handler] call[handler.sessionOpened, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[sessionOpened] operator[SEP] identifier[IoSession] identifier[session] operator[SEP] Keyword[throws] identifier[Exception] { identifier[SingleSessionIoHandler] identifier[handler] operator[=] operator[SEP] identifier[SingleSessionIoHandler] operator[SEP] identifier[sessio...
public static boolean matchesWithoutPrefixes(String value1, String prefix1, String value2, String prefix2) { if (!value1.startsWith(prefix1)) { return false; } value1 = value1.substring(prefix1.length()); if (!value2.startsWith(prefix2)) { return false; } value2 = value2.substring(prefix2.lengt...
class class_name[name] begin[{] method[matchesWithoutPrefixes, return_type[type[boolean]], modifier[public static], parameter[value1, prefix1, value2, prefix2]] begin[{] if[call[value1.startsWith, parameter[member[.prefix1]]]] begin[{] return[literal[false]] else begin[{] No...
Keyword[public] Keyword[static] Keyword[boolean] identifier[matchesWithoutPrefixes] operator[SEP] identifier[String] identifier[value1] , identifier[String] identifier[prefix1] , identifier[String] identifier[value2] , identifier[String] identifier[prefix2] operator[SEP] { Keyword[if] operator[SEP] operator[!...
public final void removeCloseListener(@NonNull final CloseListener listener) { Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null"); listeners.remove(listener); }
class class_name[name] begin[{] method[removeCloseListener, return_type[void], modifier[final public], parameter[listener]] begin[{] call[Condition.INSTANCE.ensureNotNull, parameter[member[.listener], literal["The listener may not be null"]]] call[listeners.remove, parameter[mem...
Keyword[public] Keyword[final] Keyword[void] identifier[removeCloseListener] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[CloseListener] identifier[listener] operator[SEP] { identifier[Condition] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[ensureNotNull] operator[SEP]...
@InterfaceAudience.Public public boolean isGone() { boolean wasRemovedFromChannel = false; Object removed = getProperty("_removed"); if (removed != null) { Boolean removedBoolean = (Boolean) removed; wasRemovedFromChannel = removedBoolean.booleanValue(); } ...
class class_name[name] begin[{] method[isGone, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], wasRemovedFromChannel] local_variable[type[Object], removed] if[binary_operation[member[.removed], !=, literal[null]]] begin[{] ...
annotation[@] identifier[InterfaceAudience] operator[SEP] identifier[Public] Keyword[public] Keyword[boolean] identifier[isGone] operator[SEP] operator[SEP] { Keyword[boolean] identifier[wasRemovedFromChannel] operator[=] literal[boolean] operator[SEP] identifier[Object] identifier[removed] operator[=] identifie...
public EnvironmentResourceDescription withAutoScalingGroups(AutoScalingGroup... autoScalingGroups) { if (this.autoScalingGroups == null) { setAutoScalingGroups(new com.amazonaws.internal.SdkInternalList<AutoScalingGroup>(autoScalingGroups.length)); } for (AutoScalingGroup ele : autoS...
class class_name[name] begin[{] method[withAutoScalingGroups, return_type[type[EnvironmentResourceDescription]], modifier[public], parameter[autoScalingGroups]] begin[{] if[binary_operation[THIS[member[None.autoScalingGroups]], ==, literal[null]]] begin[{] call[.setAutoS...
Keyword[public] identifier[EnvironmentResourceDescription] identifier[withAutoScalingGroups] operator[SEP] identifier[AutoScalingGroup] operator[...] identifier[autoScalingGroups] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[autoScalingGroups] operator[==] Other[null] operator...
public static Matcher newClass(final String className) { return new Matcher() { @Override public boolean matches(Node node, NodeMetadata metadata) { if (!node.isNew()) { return false; } JSType providedJsType = getJsType(metadata, className); if (providedJsType == null...
class class_name[name] begin[{] method[newClass, return_type[type[Matcher]], modifier[public static], parameter[className]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[IfStatement(condition=MethodInvocation(arguments=[]...
Keyword[public] Keyword[static] identifier[Matcher] identifier[newClass] operator[SEP] Keyword[final] identifier[String] identifier[className] operator[SEP] { Keyword[return] Keyword[new] identifier[Matcher] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[boole...
public static String expandTemplate(String s, Properties params) { String result; if( params == null || params.size() < 1 ) { result = s; } else { StringBuffer sb = new StringBuffer(); Pattern pattern = Pattern.compile( "\\{\\{\\s*\\S+\\s*\\}\\}" ); Matcher m = pattern.matcher( s ); while( m.fin...
class class_name[name] begin[{] method[expandTemplate, return_type[type[String]], modifier[public static], parameter[s, params]] begin[{] local_variable[type[String], result] if[binary_operation[binary_operation[member[.params], ==, literal[null]], ||, binary_operation[call[params.size,...
Keyword[public] Keyword[static] identifier[String] identifier[expandTemplate] operator[SEP] identifier[String] identifier[s] , identifier[Properties] identifier[params] operator[SEP] { identifier[String] identifier[result] operator[SEP] Keyword[if] operator[SEP] identifier[params] operator[==] Other[null] opera...
public static void multAddTransB(double realAlpha , double imagAlpha , ZMatrixRMaj a , ZMatrixRMaj b , ZMatrixRMaj c ) { // TODO add a matrix vectory multiply here MatrixMatrixMult_ZDRM.multAddTransB(realAlpha,imagAlpha,a,b,c); }
class class_name[name] begin[{] method[multAddTransB, return_type[void], modifier[public static], parameter[realAlpha, imagAlpha, a, b, c]] begin[{] call[MatrixMatrixMult_ZDRM.multAddTransB, parameter[member[.realAlpha], member[.imagAlpha], member[.a], member[.b], member[.c]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[multAddTransB] operator[SEP] Keyword[double] identifier[realAlpha] , Keyword[double] identifier[imagAlpha] , identifier[ZMatrixRMaj] identifier[a] , identifier[ZMatrixRMaj] identifier[b] , identifier[ZMatrixRMaj] identifier[c] operator[SEP] { identifie...
private void move1() { if (node == null) return; if (position >= reference.size()) { node = null; return; } node = node.links[reference.codeAt(position++)]; }
class class_name[name] begin[{] method[move1, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.node], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[member[.position], >=, call[refere...
Keyword[private] Keyword[void] identifier[move1] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[node] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] Keyword[if] operator[SEP] identifier[position] operator[>=] identifier[reference] operator[SEP] identifier[size] operator[...
public void setEnumParameter(EnumParameterType newEnumParameter) { ((FeatureMap.Internal)getMixed()).set(BpsimPackage.Literals.DOCUMENT_ROOT__ENUM_PARAMETER, newEnumParameter); }
class class_name[name] begin[{] method[setEnumParameter, return_type[void], modifier[public], parameter[newEnumParameter]] begin[{] Cast(expression=MethodInvocation(arguments=[], member=getMixed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=Ref...
Keyword[public] Keyword[void] identifier[setEnumParameter] operator[SEP] identifier[EnumParameterType] identifier[newEnumParameter] operator[SEP] { operator[SEP] operator[SEP] identifier[FeatureMap] operator[SEP] identifier[Internal] operator[SEP] identifier[getMixed] operator[SEP] operator[SEP] operator[SEP] op...
public Content getDocLink(LinkInfoImpl.Kind context, ClassDoc classDoc, MemberDoc doc, String label, boolean strong, boolean isProperty) { return getDocLink(context, classDoc, doc, new StringContent(check(label)), strong, isProperty); }
class class_name[name] begin[{] method[getDocLink, return_type[type[Content]], modifier[public], parameter[context, classDoc, doc, label, strong, isProperty]] begin[{] return[call[.getDocLink, parameter[member[.context], member[.classDoc], member[.doc], ClassCreator(arguments=[MethodInvocation(argument...
Keyword[public] identifier[Content] identifier[getDocLink] operator[SEP] identifier[LinkInfoImpl] operator[SEP] identifier[Kind] identifier[context] , identifier[ClassDoc] identifier[classDoc] , identifier[MemberDoc] identifier[doc] , identifier[String] identifier[label] , Keyword[boolean] identifier[strong] , Key...
public Observable<ServiceResponse<List<Iteration>>> getIterationsWithServiceResponseAsync(UUID projectId) { if (projectId == null) { throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); } if (this.client.apiKey() == null) { throw new ...
class class_name[name] begin[{] method[getIterationsWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[projectId]] begin[{] if[binary_operation[member[.projectId], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Litera...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[Iteration] operator[>] operator[>] operator[>] identifier[getIterationsWithServiceResponseAsync] operator[SEP] identifier[UUID] identifier[projectId] operator[SEP] { Keyword[if] oper...
public static Waehrung of(Currency currency) { String key = currency.getCurrencyCode(); return CACHE.computeIfAbsent(key, t -> new Waehrung(currency)); }
class class_name[name] begin[{] method[of, return_type[type[Waehrung]], modifier[public static], parameter[currency]] begin[{] local_variable[type[String], key] return[call[CACHE.computeIfAbsent, parameter[member[.key], LambdaExpression(body=ClassCreator(arguments=[MemberReference(member=curren...
Keyword[public] Keyword[static] identifier[Waehrung] identifier[of] operator[SEP] identifier[Currency] identifier[currency] operator[SEP] { identifier[String] identifier[key] operator[=] identifier[currency] operator[SEP] identifier[getCurrencyCode] operator[SEP] operator[SEP] operator[SEP] Keyword[return] ident...
public List<JsonObject> executeParametrizedStatement(String statement, List<Object> parameters) { JsonArray positionalParams = JsonArray.from(parameters); ParameterizedN1qlQuery query = N1qlQuery.parameterized(statement, positionalParams); return executeQuery(query); }
class class_name[name] begin[{] method[executeParametrizedStatement, return_type[type[List]], modifier[public], parameter[statement, parameters]] begin[{] local_variable[type[JsonArray], positionalParams] local_variable[type[ParameterizedN1qlQuery], query] return[call[.executeQuery, par...
Keyword[public] identifier[List] operator[<] identifier[JsonObject] operator[>] identifier[executeParametrizedStatement] operator[SEP] identifier[String] identifier[statement] , identifier[List] operator[<] identifier[Object] operator[>] identifier[parameters] operator[SEP] { identifier[JsonArray] identifier[po...
public static Map<String, SupervisorInfo> get_all_SupervisorInfo( StormClusterState stormClusterState, RunnableCallback callback) throws Exception { Map<String, SupervisorInfo> rtn = new TreeMap<>(); // get /ZK/supervisors List<String> supervisorIds = stormClusterState.supervisors(ca...
class class_name[name] begin[{] method[get_all_SupervisorInfo, return_type[type[Map]], modifier[public static], parameter[stormClusterState, callback]] begin[{] local_variable[type[Map], rtn] local_variable[type[List], supervisorIds] local_variable[type[List], blacklist] ...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[SupervisorInfo] operator[>] identifier[get_all_SupervisorInfo] operator[SEP] identifier[StormClusterState] identifier[stormClusterState] , identifier[RunnableCallback] identifier[callback] operator[SEP] Keyword[throws] identif...
private ZooKeeper createZooKeeperClient() throws IOException { ZooClientConfig config = getZookeeperClientConfig(); return new ZooKeeper(config.getUrl(), config.getTimeout(), getConnectionWatcher()); }
class class_name[name] begin[{] method[createZooKeeperClient, return_type[type[ZooKeeper]], modifier[private], parameter[]] begin[{] local_variable[type[ZooClientConfig], config] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getUrl, postfix_operators=[], prefix_operators=...
Keyword[private] identifier[ZooKeeper] identifier[createZooKeeperClient] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ZooClientConfig] identifier[config] operator[=] identifier[getZookeeperClientConfig] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] ide...
private List<DockerConnectionDetector.DockerHostProvider> getDefaultDockerHostProviders(DockerAccessContext dockerAccessContext, Logger log) { DockerMachineConfiguration config = dockerAccessContext.getMachine(); if (dockerAccessContext.isSkipMachine()) { config = null; } else if (c...
class class_name[name] begin[{] method[getDefaultDockerHostProviders, return_type[type[List]], modifier[private], parameter[dockerAccessContext, log]] begin[{] local_variable[type[DockerMachineConfiguration], config] if[call[dockerAccessContext.isSkipMachine, parameter[]]] begin[{] ...
Keyword[private] identifier[List] operator[<] identifier[DockerConnectionDetector] operator[SEP] identifier[DockerHostProvider] operator[>] identifier[getDefaultDockerHostProviders] operator[SEP] identifier[DockerAccessContext] identifier[dockerAccessContext] , identifier[Logger] identifier[log] operator[SEP] { ...
public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) { Preconditions.checkNotNull(usbDevice); Preconditions.checkNotNull(usbDevice.getDeviceName()); usbDevices.put(usbDevice.getDeviceName(), usbDevice); if (hasPermission) { grantPermission(usbDevice); } else { rev...
class class_name[name] begin[{] method[addOrUpdateUsbDevice, return_type[void], modifier[public], parameter[usbDevice, hasPermission]] begin[{] call[Preconditions.checkNotNull, parameter[member[.usbDevice]]] call[Preconditions.checkNotNull, parameter[call[usbDevice.getDeviceName...
Keyword[public] Keyword[void] identifier[addOrUpdateUsbDevice] operator[SEP] identifier[UsbDevice] identifier[usbDevice] , Keyword[boolean] identifier[hasPermission] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[usbDevice] operator[SEP] operator[SEP] i...
public void setCurrentIndex(long curr) { try { if (curr < 0 || curr > count) { throw new RuntimeException(curr + " is not in the range 0 to " + count); } seek(getHeaderSize() + curr * getEntryLength()); } catch (IOException e) { throw new R...
class class_name[name] begin[{] method[setCurrentIndex, return_type[void], modifier[public], parameter[curr]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=curr, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[void] identifier[setCurrentIndex] operator[SEP] Keyword[long] identifier[curr] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[curr] operator[<] Other[0] operator[||] identifier[curr] operator[>] identifier[count] operator[SEP] { Keyword[throw...
protected void assertWorkingSolutionInitialized(AbstractPhaseScope<Solution_> phaseScope) { if (!phaseScope.getStartingScore().isSolutionInitialized()) { InnerScoreDirector<Solution_> scoreDirector = phaseScope.getScoreDirector(); SolutionDescriptor<Solution_> solutionDescriptor = scoreD...
class class_name[name] begin[{] method[assertWorkingSolutionInitialized, return_type[void], modifier[protected], parameter[phaseScope]] begin[{] if[call[phaseScope.getStartingScore, parameter[]]] begin[{] local_variable[type[InnerScoreDirector], scoreDirector] local_vari...
Keyword[protected] Keyword[void] identifier[assertWorkingSolutionInitialized] operator[SEP] identifier[AbstractPhaseScope] operator[<] identifier[Solution_] operator[>] identifier[phaseScope] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[phaseScope] operator[SEP] identifier[getStartingScore] o...
public TypeDefinitionList getTypeChildren( String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount) { refresh(); TypeDefinitionListImpl result = new TypeDefinitionListImpl(new ArrayList<TypeDefinition>()); int skip = (skipCo...
class class_name[name] begin[{] method[getTypeChildren, return_type[type[TypeDefinitionList]], modifier[public], parameter[typeId, includePropertyDefinitions, maxItems, skipCount]] begin[{] call[.refresh, parameter[]] local_variable[type[TypeDefinitionListImpl], result] local_va...
Keyword[public] identifier[TypeDefinitionList] identifier[getTypeChildren] operator[SEP] identifier[String] identifier[typeId] , Keyword[boolean] identifier[includePropertyDefinitions] , identifier[BigInteger] identifier[maxItems] , identifier[BigInteger] identifier[skipCount] operator[SEP] { identifier[refre...
@SuppressWarnings("unchecked") public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { String httpClientFactoryClassName = (String) properties.getProperty(CFG_PROPERTY_HTTP_CLIENT_FACTORY) .getValue(); if (httpClientFactoryClassName.i...
class class_name[name] begin[{] method[raVerifyConfiguration, return_type[void], modifier[public], parameter[properties]] begin[{] local_variable[type[String], httpClientFactoryClassName] if[call[httpClientFactoryClassName.isEmpty, parameter[]]] begin[{] TryStatement(block=[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[raVerifyConfiguration] operator[SEP] identifier[ConfigProperties] identifier[properties] operator[SEP] Keyword[throws] identifier[InvalidConfigurationException] { identifier[String] ide...
public int setUserID(int iChangeType, boolean bDisplayOption) { int iErrorCode = DBConstants.NORMAL_RETURN; int iUserID = -1; if (this.getOwner().getRecordOwner() != null) if (((BaseApplication)this.getOwner().getRecordOwner().getTask().getApplication()) != null) if (...
class class_name[name] begin[{] method[setUserID, return_type[type[int]], modifier[public], parameter[iChangeType, bDisplayOption]] begin[{] local_variable[type[int], iErrorCode] local_variable[type[int], iUserID] if[binary_operation[THIS[call[None.getOwner, parameter[]]call[Non...
Keyword[public] Keyword[int] identifier[setUserID] operator[SEP] Keyword[int] identifier[iChangeType] , Keyword[boolean] identifier[bDisplayOption] operator[SEP] { Keyword[int] identifier[iErrorCode] operator[=] identifier[DBConstants] operator[SEP] identifier[NORMAL_RETURN] operator[SEP] Keyword[int] identifie...
public boolean addConnectedDownstreamElementWithCheck( IHillSlope element ) { if (PfafstetterNumber.areConnectedDownstream(this.getPfafstetterNumber(), element.getPfafstetterNumber())) { downstreamElement = element; element.addConnectedUpstreamElementWithCheck(this); return t...
class class_name[name] begin[{] method[addConnectedDownstreamElementWithCheck, return_type[type[boolean]], modifier[public], parameter[element]] begin[{] if[call[PfafstetterNumber.areConnectedDownstream, parameter[THIS[call[None.getPfafstetterNumber, parameter[]]], call[element.getPfafstetterNu...
Keyword[public] Keyword[boolean] identifier[addConnectedDownstreamElementWithCheck] operator[SEP] identifier[IHillSlope] identifier[element] operator[SEP] { Keyword[if] operator[SEP] identifier[PfafstetterNumber] operator[SEP] identifier[areConnectedDownstream] operator[SEP] Keyword[this] operator[SEP] identifie...
@NonNull @Experimental public static Scheduler from(@NonNull Executor executor, boolean interruptibleWorker) { return new ExecutorScheduler(executor, interruptibleWorker); }
class class_name[name] begin[{] method[from, return_type[type[Scheduler]], modifier[public static], parameter[executor, interruptibleWorker]] begin[{] return[ClassCreator(arguments=[MemberReference(member=executor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(me...
annotation[@] identifier[NonNull] annotation[@] identifier[Experimental] Keyword[public] Keyword[static] identifier[Scheduler] identifier[from] operator[SEP] annotation[@] identifier[NonNull] identifier[Executor] identifier[executor] , Keyword[boolean] identifier[interruptibleWorker] operator[SEP] { Keyword[ret...
public Batch<D> getNextAvailableBatch () { final ReentrantLock lock = SequentialBasedBatchAccumulator.this.dqLock; try { lock.lock(); if (SequentialBasedBatchAccumulator.this.isClosed()) { return dq.poll(); } else { while (dq.size() == 0) { LOG.debug ("ready to sl...
class class_name[name] begin[{] method[getNextAvailableBatch, return_type[type[Batch]], modifier[public], parameter[]] begin[{] local_variable[type[ReentrantLock], lock] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=lock, postfix_operators=[], prefix_o...
Keyword[public] identifier[Batch] operator[<] identifier[D] operator[>] identifier[getNextAvailableBatch] operator[SEP] operator[SEP] { Keyword[final] identifier[ReentrantLock] identifier[lock] operator[=] identifier[SequentialBasedBatchAccumulator] operator[SEP] Keyword[this] operator[SEP] identifier[dqLock] op...
public ServiceFuture<Void> deleteManagementPoliciesAsync(String resourceGroupName, String accountName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteManagementPoliciesWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); }
class class_name[name] begin[{] method[deleteManagementPoliciesAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, accountName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.deleteManagementPoliciesWithServiceResponseAsync, parame...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[Void] operator[>] identifier[deleteManagementPoliciesAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[Void] operator[>]...
static Set<JPAPuId> scanForTxSynchronizationCollisions(List<Object> bindingList) { if (bindingList == null) { return new HashSet<JPAPuId>(); } HashMap<JPAPuId, Boolean> knownPuIdMap = new HashMap<JPAPuId, Boolean>(); HashSet<JPAPuId> returnSet = new HashSet<JPAPuId>(); ...
class class_name[name] begin[{] method[scanForTxSynchronizationCollisions, return_type[type[Set]], modifier[static], parameter[bindingList]] begin[{] if[binary_operation[member[.bindingList], ==, literal[null]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_...
Keyword[static] identifier[Set] operator[<] identifier[JPAPuId] operator[>] identifier[scanForTxSynchronizationCollisions] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[bindingList] operator[SEP] { Keyword[if] operator[SEP] identifier[bindingList] operator[==] Other[null] o...
public boolean next() { final int currentIndex = current.getCurrentIndex(); int nextIndex = currentIndex + 1; TestScript testScript = current.getTestScript(); LOG.debug("debug.test", current); if (currentIndex < testScript.getTestStepCount()) { if (pm.isDebug(...
class class_name[name] begin[{] method[next, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[int], currentIndex] local_variable[type[int], nextIndex] local_variable[type[TestScript], testScript] call[LOG.debug, parameter[literal["d...
Keyword[public] Keyword[boolean] identifier[next] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[currentIndex] operator[=] identifier[current] operator[SEP] identifier[getCurrentIndex] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[nextIndex] operator[=] identifier[curren...
public void onUpdateNotification(NotificationView view, View contentView, NotificationEntry entry, int layoutId) { if (DBG) Log.v(TAG, "onUpdateNotification - " + entry.ID); final Drawable icon = entry.iconDrawable; final CharSequence title = entry.title; final CharSequence text = entry...
class class_name[name] begin[{] method[onUpdateNotification, return_type[void], modifier[public], parameter[view, contentView, entry, layoutId]] begin[{] if[member[.DBG]] begin[{] call[Log.v, parameter[member[.TAG], binary_operation[literal["onUpdateNotification - "], +, member[entr...
Keyword[public] Keyword[void] identifier[onUpdateNotification] operator[SEP] identifier[NotificationView] identifier[view] , identifier[View] identifier[contentView] , identifier[NotificationEntry] identifier[entry] , Keyword[int] identifier[layoutId] operator[SEP] { Keyword[if] operator[SEP] identifier[DBG] ...
private void onDelete(Object entity, Object pKey, Object connection) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass()); AttributeWrapper wrapper = wrap(entityMetadata, entity); Set<byte[]> columnNames = wrapper.columns.keySet(); ...
class class_name[name] begin[{] method[onDelete, return_type[void], modifier[private], parameter[entity, pKey, connection]] begin[{] local_variable[type[EntityMetadata], entityMetadata] local_variable[type[AttributeWrapper], wrapper] local_variable[type[Set], columnNames] local_...
Keyword[private] Keyword[void] identifier[onDelete] operator[SEP] identifier[Object] identifier[entity] , identifier[Object] identifier[pKey] , identifier[Object] identifier[connection] operator[SEP] { identifier[EntityMetadata] identifier[entityMetadata] operator[=] identifier[KunderaMetadataManager] operator...
public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c) { if (c instanceof EnumSet) { return ((EnumSet<E>)c).clone(); } else { if (c.isEmpty()) throw new IllegalArgumentException("Collection is empty"); Iterator<E> i = c.iterator(); ...
class class_name[name] begin[{] method[copyOf, return_type[type[EnumSet]], modifier[public static], parameter[c]] begin[{] if[binary_operation[member[.c], instanceof, type[EnumSet]]] begin[{] return[Cast(expression=MemberReference(member=c, postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Enum] operator[<] identifier[E] operator[>] operator[>] identifier[EnumSet] operator[<] identifier[E] operator[>] identifier[copyOf] operator[SEP] identifier[Collection] operator[<] identifier[E] operator[>] identifier[c] operator[SEP...
public static RecurrenceIterator join( RecurrenceIterator a, RecurrenceIterator... b) { List<RecurrenceIterator> incl = new ArrayList<RecurrenceIterator>(); incl.add(a); incl.addAll(Arrays.asList(b)); return new CompoundIteratorImpl( incl, Collections.<Recurre...
class class_name[name] begin[{] method[join, return_type[type[RecurrenceIterator]], modifier[public static], parameter[a, b]] begin[{] local_variable[type[List], incl] call[incl.add, parameter[member[.a]]] call[incl.addAll, parameter[call[Arrays.asList, parameter[member[...
Keyword[public] Keyword[static] identifier[RecurrenceIterator] identifier[join] operator[SEP] identifier[RecurrenceIterator] identifier[a] , identifier[RecurrenceIterator] operator[...] identifier[b] operator[SEP] { identifier[List] operator[<] identifier[RecurrenceIterator] operator[>] identifier[incl] operato...
public boolean process( List<AssociatedTriple> observations , TrifocalTensor solution ) { if( observations.size() < 7 ) throw new IllegalArgumentException( "At least 7 correspondences must be provided. Found "+observations.size()); // compute normalization to reduce numerical errors LowLevelMultiViewOps...
class class_name[name] begin[{] method[process, return_type[type[boolean]], modifier[public], parameter[observations, solution]] begin[{] if[binary_operation[call[observations.size, parameter[]], <, literal[7]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl...
Keyword[public] Keyword[boolean] identifier[process] operator[SEP] identifier[List] operator[<] identifier[AssociatedTriple] operator[>] identifier[observations] , identifier[TrifocalTensor] identifier[solution] operator[SEP] { Keyword[if] operator[SEP] identifier[observations] operator[SEP] identifier[size] op...
void saveLastSavedPreferences() { String templateName = ""; //$NON-NLS-1$ Template template = getSelectedTemplate(); if (template != null) { templateName = template.getName(); } GlassmakerUIPlugin.getDefault().getPreferenceStore().setValue("newFileTemplateName", templateName); GlassmakerUIPlugin.getDef...
class class_name[name] begin[{] method[saveLastSavedPreferences, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[String], templateName] local_variable[type[Template], template] if[binary_operation[member[.template], !=, literal[null]]] begin[{] ...
Keyword[void] identifier[saveLastSavedPreferences] operator[SEP] operator[SEP] { identifier[String] identifier[templateName] operator[=] literal[String] operator[SEP] identifier[Template] identifier[template] operator[=] identifier[getSelectedTemplate] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operat...
protected Runtime createRuntime(ResourceLoader resourceLoader, ClassLoader classLoader, RuntimeOptions runtimeOptions) throws InitializationError, IOException { ClassFinder classFinder = new ResourceLoaderClassFinder(resourceLoader, classLoader); return new Runtime(re...
class class_name[name] begin[{] method[createRuntime, return_type[type[Runtime]], modifier[protected], parameter[resourceLoader, classLoader, runtimeOptions]] begin[{] local_variable[type[ClassFinder], classFinder] return[ClassCreator(arguments=[MemberReference(member=resourceLoader, postfix_op...
Keyword[protected] identifier[Runtime] identifier[createRuntime] operator[SEP] identifier[ResourceLoader] identifier[resourceLoader] , identifier[ClassLoader] identifier[classLoader] , identifier[RuntimeOptions] identifier[runtimeOptions] operator[SEP] Keyword[throws] identifier[InitializationError] , identifier[IOE...
protected final void putInt32(long i32) { ensureCapacity(position + 4); byte[] buf = buffer; buf[position++] = (byte) (i32 & 0xff); buf[position++] = (byte) (i32 >>> 8); buf[position++] = (byte) (i32 >>> 16); buf[position++] = (byte) (i32 >>> 24); }
class class_name[name] begin[{] method[putInt32, return_type[void], modifier[final protected], parameter[i32]] begin[{] call[.ensureCapacity, parameter[binary_operation[member[.position], +, literal[4]]]] local_variable[type[byte], buf] assign[member[.buf], Cast(expressi...
Keyword[protected] Keyword[final] Keyword[void] identifier[putInt32] operator[SEP] Keyword[long] identifier[i32] operator[SEP] { identifier[ensureCapacity] operator[SEP] identifier[position] operator[+] Other[4] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[buf] operator[=] ide...
public <T> T deserialize(String body, TypeRef returnType) throws ApiException { JavaType javaType = mapper.constructType(returnType.getType()); try { return mapper.readValue(body, javaType); } catch (IOException e) { if (returnType.getType().equals(String.class)) return (T) body; e...
class class_name[name] begin[{] method[deserialize, return_type[type[T]], modifier[public], parameter[body, returnType]] begin[{] local_variable[type[JavaType], javaType] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=body, postfix_operators=[]...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[deserialize] operator[SEP] identifier[String] identifier[body] , identifier[TypeRef] identifier[returnType] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[JavaType] identifier[javaType] operator[=] identifier[map...
public static Date nextSecond(Date date, int second) { Calendar cal = Calendar.getInstance(); if (date != null) { cal.setTime(date); } cal.add(Calendar.SECOND, second); return cal.getTime(); }
class class_name[name] begin[{] method[nextSecond, return_type[type[Date]], modifier[public static], parameter[date, second]] begin[{] local_variable[type[Calendar], cal] if[binary_operation[member[.date], !=, literal[null]]] begin[{] call[cal.setTime, parameter[...
Keyword[public] Keyword[static] identifier[Date] identifier[nextSecond] operator[SEP] identifier[Date] identifier[date] , Keyword[int] identifier[second] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operat...
public void start() { for (Thread schedulerForType : schedulersForTypes.values()) { LOG.info("Starting " + schedulerForType.getName()); schedulerForType.start(); } configManager.start(); }
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[void] identifier[start] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Thread] identifier[schedulerForType] operator[:] identifier[schedulersForTypes] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP...
private String formatTimeUnit(TimeUnit timeUnit) { int units = timeUnit.getValue(); String result; String[][] unitNames = LocaleData.getStringArrays(m_locale, LocaleData.TIME_UNITS_ARRAY); if (units < 0 || units >= unitNames.length) { result = ""; } else { ...
class class_name[name] begin[{] method[formatTimeUnit, return_type[type[String]], modifier[private], parameter[timeUnit]] begin[{] local_variable[type[int], units] local_variable[type[String], result] local_variable[type[String], unitNames] if[binary_operation[binary_ope...
Keyword[private] identifier[String] identifier[formatTimeUnit] operator[SEP] identifier[TimeUnit] identifier[timeUnit] operator[SEP] { Keyword[int] identifier[units] operator[=] identifier[timeUnit] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[result]...
public static String getFileExtension(String _fileName) { if (_fileName == null) { return null; } int lastDot = _fileName.lastIndexOf('.'); if (lastDot == -1) { return ""; } return _fileName.substring(lastDot + 1); }
class class_name[name] begin[{] method[getFileExtension, return_type[type[String]], modifier[public static], parameter[_fileName]] begin[{] if[binary_operation[member[._fileName], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] lo...
Keyword[public] Keyword[static] identifier[String] identifier[getFileExtension] operator[SEP] identifier[String] identifier[_fileName] operator[SEP] { Keyword[if] operator[SEP] identifier[_fileName] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyw...
public final void addAllConstraints( @NonNull final Collection<Constraint<CharSequence>> constraints) { Condition.INSTANCE.ensureNotNull(constraints, "The collection may not be null"); for (Constraint<CharSequence> constraint : constraints) { addConstraint(constraint); }...
class class_name[name] begin[{] method[addAllConstraints, return_type[void], modifier[final public], parameter[constraints]] begin[{] call[Condition.INSTANCE.ensureNotNull, parameter[member[.constraints], literal["The collection may not be null"]]] ForStatement(body=BlockStatement(label...
Keyword[public] Keyword[final] Keyword[void] identifier[addAllConstraints] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[Collection] operator[<] identifier[Constraint] operator[<] identifier[CharSequence] operator[>] operator[>] identifier[constraints] operator[SEP] { identifier[Condi...
private void trackServletContextHelper(final BundleContext bundleContext, ExtendedHttpServiceRuntime httpServiceRuntime) { final ServiceTracker<ServletContextHelper, ServletContextHelperElement> servletContextHelperTracker = ServletContextHelperTracker.createTracker(extenderContext, bundleContext, httpServiceRu...
class class_name[name] begin[{] method[trackServletContextHelper, return_type[void], modifier[private], parameter[bundleContext, httpServiceRuntime]] begin[{] local_variable[type[ServiceTracker], servletContextHelperTracker] call[servletContextHelperTracker.open, parameter[]] ...
Keyword[private] Keyword[void] identifier[trackServletContextHelper] operator[SEP] Keyword[final] identifier[BundleContext] identifier[bundleContext] , identifier[ExtendedHttpServiceRuntime] identifier[httpServiceRuntime] operator[SEP] { Keyword[final] identifier[ServiceTracker] operator[<] identifier[ServletCo...
public static String getMethodName(ServiceMethod serviceMethod) { String name = serviceMethod.getName(); String formattedName = Formatter.toCamelCase(name); if (isReservedKeyword(formattedName)) { return formattedName + '_'; } return formattedName; }
class class_name[name] begin[{] method[getMethodName, return_type[type[String]], modifier[public static], parameter[serviceMethod]] begin[{] local_variable[type[String], name] local_variable[type[String], formattedName] if[call[.isReservedKeyword, parameter[member[.formattedName...
Keyword[public] Keyword[static] identifier[String] identifier[getMethodName] operator[SEP] identifier[ServiceMethod] identifier[serviceMethod] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[serviceMethod] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] iden...
@Override public void serialize(final DataOutput pOutput) throws TTIOException { try { pOutput.writeInt(IConstants.INDIRCTBUCKET); pOutput.writeLong(mBucketKey); for (long key : mReferenceKeys) { pOutput.writeLong(key); } for (byte[...
class class_name[name] begin[{] method[serialize, return_type[void], modifier[public], parameter[pOutput]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INDIRCTBUCKET, postfix_operators=[], prefix_operators=[], qualifier=IConstants, selec...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[serialize] operator[SEP] Keyword[final] identifier[DataOutput] identifier[pOutput] operator[SEP] Keyword[throws] identifier[TTIOException] { Keyword[try] { identifier[pOutput] operator[SEP] identifier[writeInt] operator[SEP] i...
@Override protected void preparePaintComponent(final Request request) { super.preparePaintComponent(request); if (!isInitialised()) { // Needs to be set per user as the model holds the current page index and total row per user. ExampleScrollableModel model = new ExampleScrollableModel(table, new String[...
class class_name[name] begin[{] method[preparePaintComponent, return_type[void], modifier[protected], parameter[request]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=preparePaintComponent...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[preparePaintComponent] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] { Keyword[super] operator[SEP] identifier[preparePaintComponent] operator[SEP] identifier[request] operator[SEP] operator[SEP] K...
@Override public String toBinaryString() { String result; if(hasNoStringCache() || (result = getStringCache().binaryString) == null) { IPStringCache stringCache = getStringCache(); stringCache.binaryString = result = toBinaryString(null); } return result; }
class class_name[name] begin[{] method[toBinaryString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], result] if[binary_operation[call[.hasNoStringCache, parameter[]], ||, binary_operation[assign[member[.result], call[.getStringCache, par...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[toBinaryString] operator[SEP] operator[SEP] { identifier[String] identifier[result] operator[SEP] Keyword[if] operator[SEP] identifier[hasNoStringCache] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[result] opera...
public static int[] getOrder(int[] values, int[] indices, boolean descending) { // Create an index series: Integer[] opIndices = ArrayUtils.toObject(indices); // Sort indices: Arrays.sort(opIndices, new Comparator<Integer>() { @Override public int compare(Integer...
class class_name[name] begin[{] method[getOrder, return_type[type[int]], modifier[public static], parameter[values, indices, descending]] begin[{] local_variable[type[Integer], opIndices] call[Arrays.sort, parameter[member[.opIndices], ClassCreator(arguments=[], body=[MethodDeclaration(...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[getOrder] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[values] , Keyword[int] operator[SEP] operator[SEP] identifier[indices] , Keyword[boolean] identifier[descending] operator[SEP] { identifier[Integer] op...
@Override public void doReportStat(SofaTracerSpan sofaTracerSpan) { //tags Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr(); StatMapKey statKey = new StatMapKey(); String fromApp = getFromApp(tagsWithStr); String toApp = getToApp(tagsWithStr); Strin...
class class_name[name] begin[{] method[doReportStat, return_type[void], modifier[public], parameter[sofaTracerSpan]] begin[{] local_variable[type[Map], tagsWithStr] local_variable[type[StatMapKey], statKey] local_variable[type[String], fromApp] local_variable[type[String], toApp...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doReportStat] operator[SEP] identifier[SofaTracerSpan] identifier[sofaTracerSpan] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tagsWithStr] operator[=] identifier[sofaTracerS...
public static AuthInfo plain(String username, String password) { return new AuthInfo(new PlainCallbackHandler(username, password), new String[] {"PLAIN"}); }
class class_name[name] begin[{] method[plain, return_type[type[AuthInfo]], modifier[public static], parameter[username, password]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=username, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Membe...
Keyword[public] Keyword[static] identifier[AuthInfo] identifier[plain] operator[SEP] identifier[String] identifier[username] , identifier[String] identifier[password] operator[SEP] { Keyword[return] Keyword[new] identifier[AuthInfo] operator[SEP] Keyword[new] identifier[PlainCallbackHandler] operator[SEP] ident...
public static MozuUrl getConfigurationUrl(String carrierId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/shipping/admin/carriers/{carrierId}?responseFields={responseFields}"); formatter.formatUrl("carrierId", carrierId); formatter.formatUrl("responseFields", responseField...
class class_name[name] begin[{] method[getConfigurationUrl, return_type[type[MozuUrl]], modifier[public static], parameter[carrierId, responseFields]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["carrierId"], member[.carrierId]]] ...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[getConfigurationUrl] operator[SEP] identifier[String] identifier[carrierId] , identifier[String] identifier[responseFields] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] operator[SEP...
public void addDirtyRegion (Rectangle rect) { // make sure we're on an AWT thread if (!EventQueue.isDispatchThread()) { log.warning("Oi! Region dirtied on non-AWT thread", "rect", rect, new Exception()); } // sanity check if (rect == null) { log.warni...
class class_name[name] begin[{] method[addDirtyRegion, return_type[void], modifier[public], parameter[rect]] begin[{] if[call[EventQueue.isDispatchThread, parameter[]]] begin[{] call[log.warning, parameter[literal["Oi! Region dirtied on non-AWT thread"], literal["rect"],...
Keyword[public] Keyword[void] identifier[addDirtyRegion] operator[SEP] identifier[Rectangle] identifier[rect] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[EventQueue] operator[SEP] identifier[isDispatchThread] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP...
public static File addFileExtension(File file, String extension) { return new File(file.getAbsolutePath() + "." + extension); }
class class_name[name] begin[{] method[addFileExtension, return_type[type[File]], modifier[public static], parameter[file, extension]] begin[{] return[ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getAbsolutePath, postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[File] identifier[addFileExtension] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[extension] operator[SEP] { Keyword[return] Keyword[new] identifier[File] operator[SEP] identifier[file] operator[SEP] identifier[getAbsolutePath] operator...
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "group") public JAXBElement<NamedGroup> createGroup(NamedGroup value) { return new JAXBElement<NamedGroup>(_Group_QNAME, NamedGroup.class, null, value); }
class class_name[name] begin[{] method[createGroup, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Group_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[],...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[NamedGroup] operator[>] identifier[createGroup] operator[SEP] identifier[NamedGroup] ident...
private void insertImage() { String initialDir = System.getProperty("user.dir"); FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Insert image"); fileChooser.setInitialDirectory(new File(initialDir)); File selectedFile = fileChooser.showOpenDialog(mainStage); ...
class class_name[name] begin[{] method[insertImage, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], initialDir] local_variable[type[FileChooser], fileChooser] call[fileChooser.setTitle, parameter[literal["Insert image"]]] ...
Keyword[private] Keyword[void] identifier[insertImage] operator[SEP] operator[SEP] { identifier[String] identifier[initialDir] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[FileChooser] identifier[fileChooser] operator[=]...
@CheckReturnValue @BackpressureSupport(BackpressureKind.ERROR) @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Flowable<Long> interval(long period, TimeUnit unit) { return interval(period, period, unit, Schedulers.computation()); }
class class_name[name] begin[{] method[interval, return_type[type[Flowable]], modifier[public static], parameter[period, unit]] begin[{] return[call[.interval, parameter[member[.period], member[.period], member[.unit], call[Schedulers.computation, parameter[]]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[ERROR] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[COMPUTATION] operator[SEP] Keyw...
private static boolean isRunnable(FilterTargetData targetData, List<FilterDefinition> filters) { if (filters == null || filters.isEmpty()) { return true; } for (FilterDefinition filterDefinition : filters) { String type = filterDefinition.getType(); String te...
class class_name[name] begin[{] method[isRunnable, return_type[type[boolean]], modifier[private static], parameter[targetData, filters]] begin[{] if[binary_operation[binary_operation[member[.filters], ==, literal[null]], ||, call[filters.isEmpty, parameter[]]]] begin[{] return[liter...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isRunnable] operator[SEP] identifier[FilterTargetData] identifier[targetData] , identifier[List] operator[<] identifier[FilterDefinition] operator[>] identifier[filters] operator[SEP] { Keyword[if] operator[SEP] identifier[filters] operator[==] Other[...
public EClass getECP() { if (ecpEClass == null) { ecpEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(237); } return ecpEClass; }
class class_name[name] begin[{] method[getECP, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ecpEClass], ==, literal[null]]] begin[{] assign[member[.ecpEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(m...
Keyword[public] identifier[EClass] identifier[getECP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ecpEClass] operator[==] Other[null] operator[SEP] { identifier[ecpEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Re...
public synchronized Collection<TaskTrackerStatus> taskTrackers() { Collection<TaskTrackerStatus> ttStatuses; synchronized (taskTrackers) { ttStatuses = new ArrayList<TaskTrackerStatus>(taskTrackers.values().size()); for (TaskTracker tt : taskTrackers.values()) { ttStatuses.add(tt.get...
class class_name[name] begin[{] method[taskTrackers, return_type[type[Collection]], modifier[synchronized public], parameter[]] begin[{] local_variable[type[Collection], ttStatuses] SYNCHRONIZED[member[.taskTrackers]] BEGIN[{] assign[member[.ttStatuses], ClassCre...
Keyword[public] Keyword[synchronized] identifier[Collection] operator[<] identifier[TaskTrackerStatus] operator[>] identifier[taskTrackers] operator[SEP] operator[SEP] { identifier[Collection] operator[<] identifier[TaskTrackerStatus] operator[>] identifier[ttStatuses] operator[SEP] Keyword[synchronized] operato...
public static <T> boolean any(Optional<? extends T>... optionals) { return Iterables.any(Arrays.asList(optionals), isPresent()); }
class class_name[name] begin[{] method[any, return_type[type[boolean]], modifier[public static], parameter[optionals]] begin[{] return[call[Iterables.any, parameter[call[Arrays.asList, parameter[member[.optionals]]], call[.isPresent, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[any] operator[SEP] identifier[Optional] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] operator[...] identifier[optionals] operator[SEP] { Keyword[return] identifier[Iterables] operator[SEP] iden...
public void flush() { try { // Flush index writer indexWriter.flush(); // Write out metrics mutations BatchWriter metricsWriter = connector.createBatchWriter(table.getMetricsTableName(), writerConfig); metricsWriter.addMutations(getMetricsMutation...
class class_name[name] begin[{] method[flush, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=flush, postfix_operators=[], prefix_operators=[], qualifier=indexWriter, selectors=[], type_arguments=None), ...
Keyword[public] Keyword[void] identifier[flush] operator[SEP] operator[SEP] { Keyword[try] { identifier[indexWriter] operator[SEP] identifier[flush] operator[SEP] operator[SEP] operator[SEP] identifier[BatchWriter] identifier[metricsWriter] operator[=] identifier[connector] operator[SEP] identifier[cr...
public static InvalidStateException invalidState(String msg, Object... args) { throw new InvalidStateException(S.fmt(msg, args)); }
class class_name[name] begin[{] method[invalidState, return_type[type[InvalidStateException]], modifier[public static], parameter[msg, args]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=msg, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] Keyword[static] identifier[InvalidStateException] identifier[invalidState] operator[SEP] identifier[String] identifier[msg] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[throw] Keyword[new] identifier[InvalidStateException] operator[SEP] identifier[S] operator[SEP] ...
public String encrypt(String toEncrypt) { byte[] encryptedBytes = encryptInternal(dataEncryptionSecretKeySpec, toEncrypt); return new String(base64Encoder.encode(encryptedBytes)); }
class class_name[name] begin[{] method[encrypt, return_type[type[String]], modifier[public], parameter[toEncrypt]] begin[{] local_variable[type[byte], encryptedBytes] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=encryptedBytes, postfix_operators=[], prefix_o...
Keyword[public] identifier[String] identifier[encrypt] operator[SEP] identifier[String] identifier[toEncrypt] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[encryptedBytes] operator[=] identifier[encryptInternal] operator[SEP] identifier[dataEncryptionSecretKeySpec] , identifier[toEncrypt]...
public static CodepageDetectorProxy getInstance() { if (CodepageDetectorProxy.instance == null) { CodepageDetectorProxy.instance = new CodepageDetectorProxy(); } return CodepageDetectorProxy.instance; }
class class_name[name] begin[{] method[getInstance, return_type[type[CodepageDetectorProxy]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[CodepageDetectorProxy.instance], ==, literal[null]]] begin[{] assign[member[CodepageDetectorProxy.insta...
Keyword[public] Keyword[static] identifier[CodepageDetectorProxy] identifier[getInstance] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[CodepageDetectorProxy] operator[SEP] identifier[instance] operator[==] Other[null] operator[SEP] { identifier[CodepageDetectorProxy] operator[SEP...
public boolean isValidLocalTld(String lTld) { lTld = unicodeToASCII(lTld); return Arrays.binarySearch(LOCAL_TLDS, chompLeadingDot(lTld.toLowerCase(Locale.ENGLISH))) >= 0; }
class class_name[name] begin[{] method[isValidLocalTld, return_type[type[boolean]], modifier[public], parameter[lTld]] begin[{] assign[member[.lTld], call[.unicodeToASCII, parameter[member[.lTld]]]] return[binary_operation[call[Arrays.binarySearch, parameter[member[.LOCAL_TLDS], call[.c...
Keyword[public] Keyword[boolean] identifier[isValidLocalTld] operator[SEP] identifier[String] identifier[lTld] operator[SEP] { identifier[lTld] operator[=] identifier[unicodeToASCII] operator[SEP] identifier[lTld] operator[SEP] operator[SEP] Keyword[return] identifier[Arrays] operator[SEP] identifier[binarySearc...
@Override public Object invoke(Exchange exchange, Object o) { BindingOperationInfo bop = exchange.getBindingOperationInfo(); MethodDispatcher md = (MethodDispatcher) exchange.getService().get(MethodDispatcher.class.getName()); List<Object> params = null; if (o instanceof List) { p...
class class_name[name] begin[{] method[invoke, return_type[type[Object]], modifier[public], parameter[exchange, o]] begin[{] local_variable[type[BindingOperationInfo], bop] local_variable[type[MethodDispatcher], md] local_variable[type[List], params] if[binary_operation[...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[invoke] operator[SEP] identifier[Exchange] identifier[exchange] , identifier[Object] identifier[o] operator[SEP] { identifier[BindingOperationInfo] identifier[bop] operator[=] identifier[exchange] operator[SEP] identifier[getBindin...
public int loadIndeces(List<RowIndexEntry> rowIndexEntries, int startIndex) { int updatedStartIndex = input.loadIndeces(rowIndexEntries, startIndex); int numIndeces = rowIndexEntries.size(); indeces = new int[numIndeces + 1]; int i = 0; for (RowIndexEntry rowIndexEntry : rowIndexEntries) { in...
class class_name[name] begin[{] method[loadIndeces, return_type[type[int]], modifier[public], parameter[rowIndexEntries, startIndex]] begin[{] local_variable[type[int], updatedStartIndex] local_variable[type[int], numIndeces] assign[member[.indeces], ArrayCreator(dimensions=[Bin...
Keyword[public] Keyword[int] identifier[loadIndeces] operator[SEP] identifier[List] operator[<] identifier[RowIndexEntry] operator[>] identifier[rowIndexEntries] , Keyword[int] identifier[startIndex] operator[SEP] { Keyword[int] identifier[updatedStartIndex] operator[=] identifier[input] operator[SEP] identifie...
public String get(final String aMessage, final Object... aDetailsArray) { final String[] details = new String[aDetailsArray.length]; for (int index = 0; index < details.length; index++) { details[index] = aDetailsArray[index].toString(); } LOGGER.debug(MessageCodes.UTIL_026...
class class_name[name] begin[{] method[get, return_type[type[String]], modifier[public], parameter[aMessage, aDetailsArray]] begin[{] local_variable[type[String], details] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberRefere...
Keyword[public] identifier[String] identifier[get] operator[SEP] Keyword[final] identifier[String] identifier[aMessage] , Keyword[final] identifier[Object] operator[...] identifier[aDetailsArray] operator[SEP] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[details] operator[=] Keywor...
public static PipelineObjects queryFullPipeline(String rootJobHandle) { Key rootJobKey = KeyFactory.createKey(JobRecord.DATA_STORE_KIND, rootJobHandle); return backEnd.queryFullPipeline(rootJobKey); }
class class_name[name] begin[{] method[queryFullPipeline, return_type[type[PipelineObjects]], modifier[public static], parameter[rootJobHandle]] begin[{] local_variable[type[Key], rootJobKey] return[call[backEnd.queryFullPipeline, parameter[member[.rootJobKey]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[PipelineObjects] identifier[queryFullPipeline] operator[SEP] identifier[String] identifier[rootJobHandle] operator[SEP] { identifier[Key] identifier[rootJobKey] operator[=] identifier[KeyFactory] operator[SEP] identifier[createKey] operator[SEP] identifier[JobRecord] op...
protected void gatherComponentInfo (ComponentRepository crepo) { // get the list of all component classes Iterators.addAll(_classes, crepo.enumerateComponentClasses()); for (int ii = 0; ii < _classes.size(); ii++) { // get the list of components available for this class ...
class class_name[name] begin[{] method[gatherComponentInfo, return_type[void], modifier[protected], parameter[crepo]] begin[{] call[Iterators.addAll, parameter[member[._classes], call[crepo.enumerateComponentClasses, parameter[]]]] ForStatement(body=BlockStatement(label=None, statements...
Keyword[protected] Keyword[void] identifier[gatherComponentInfo] operator[SEP] identifier[ComponentRepository] identifier[crepo] operator[SEP] { identifier[Iterators] operator[SEP] identifier[addAll] operator[SEP] identifier[_classes] , identifier[crepo] operator[SEP] identifier[enumerateComponentClasses] opera...
public Period withYears(int years) { int[] values = getValues(); // cloned getPeriodType().setIndexedField(this, PeriodType.YEAR_INDEX, values, years); return new Period(values, getPeriodType()); }
class class_name[name] begin[{] method[withYears, return_type[type[Period]], modifier[public], parameter[years]] begin[{] local_variable[type[int], values] call[.getPeriodType, parameter[]] return[ClassCreator(arguments=[MemberReference(member=values, postfix_operators=[], prefi...
Keyword[public] identifier[Period] identifier[withYears] operator[SEP] Keyword[int] identifier[years] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[values] operator[=] identifier[getValues] operator[SEP] operator[SEP] operator[SEP] identifier[getPeriodType] operator[SEP] operator[SEP] opera...
static void rollback(final String patchId, final Collection<ContentModification> originalPatch, final Collection<ContentModification> rollbackPatch, final ContentTaskDefinitions modifications, final ContentItemFilter filter, final PatchingTaskContext.Mode mode) { ...
class class_name[name] begin[{] method[rollback, return_type[void], modifier[static], parameter[patchId, originalPatch, rollbackPatch, modifications, filter, mode]] begin[{] local_variable[type[Map], originalModifications] ForStatement(body=BlockStatement(label=None, statements=[StatementExpres...
Keyword[static] Keyword[void] identifier[rollback] operator[SEP] Keyword[final] identifier[String] identifier[patchId] , Keyword[final] identifier[Collection] operator[<] identifier[ContentModification] operator[>] identifier[originalPatch] , Keyword[final] identifier[Collection] operator[<] identifier[ContentModific...
private UpdateResult insert(V item, Node node) { UpdateResult result; if (node == null) { // This is the right location for the item, but there's no node. Create one. result = new UpdateResult(); result.node = new Node(item); this.size++; this....
class class_name[name] begin[{] method[insert, return_type[type[UpdateResult]], modifier[private], parameter[item, node]] begin[{] local_variable[type[UpdateResult], result] if[binary_operation[member[.node], ==, literal[null]]] begin[{] assign[member[.result], C...
Keyword[private] identifier[UpdateResult] identifier[insert] operator[SEP] identifier[V] identifier[item] , identifier[Node] identifier[node] operator[SEP] { identifier[UpdateResult] identifier[result] operator[SEP] Keyword[if] operator[SEP] identifier[node] operator[==] Other[null] operator[SEP] { i...
public final void setGuaranteedRemoteGetStartTick(long value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setGuaranteedRemoteGetStartTick", Long.valueOf(value)); getHdr2().setLongField(JsHdr2Access.GUARANTEEDREMOTEGET_SET_STARTTICK, value); ...
class class_name[name] begin[{] method[setGuaranteedRemoteGetStartTick, return_type[void], modifier[final public], parameter[value]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.ent...
Keyword[public] Keyword[final] Keyword[void] identifier[setGuaranteedRemoteGetStartTick] operator[SEP] Keyword[long] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operato...
public static int compare(byte[] b1, byte[] b2, int offset, int to) { int j = offset; int b2Length = to - offset; if(to > b2.length) throw new IllegalArgumentException("To offset (" + to + ") should be <= than length (" + b2.length + ")"...
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public static], parameter[b1, b2, offset, to]] begin[{] local_variable[type[int], j] local_variable[type[int], b2Length] if[binary_operation[member[.to], >, member[b2.length]]] begin[{] ThrowStateme...
Keyword[public] Keyword[static] Keyword[int] identifier[compare] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[b1] , Keyword[byte] operator[SEP] operator[SEP] identifier[b2] , Keyword[int] identifier[offset] , Keyword[int] identifier[to] operator[SEP] { Keyword[int] identifier[j] operator...
private void setParentForChildCommand(final List<ConfigCommand> commandList, final int i, final ConfigCommand child) { int matchIndex = -1; ConfigRange matchRange = null; for (int j = 0; j < commandList.size(); j++) { if (j != i) { Command commandParent = commandList.get(j); if (!commandParen...
class class_name[name] begin[{] method[setParentForChildCommand, return_type[void], modifier[private], parameter[commandList, i, child]] begin[{] local_variable[type[int], matchIndex] local_variable[type[ConfigRange], matchRange] ForStatement(body=BlockStatement(label=None, statements=[...
Keyword[private] Keyword[void] identifier[setParentForChildCommand] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[ConfigCommand] operator[>] identifier[commandList] , Keyword[final] Keyword[int] identifier[i] , Keyword[final] identifier[ConfigCommand] identifier[child] operator[SEP] { Ke...
protected void addSubNavEntry(final NavEntry navEntry) { Button button = m_rootLayout.addSubNavEntry(navEntry); button.addClickListener(new ClickListener() { private static final long serialVersionUID = 1L; public void buttonClick(ClickEvent event) { openSubVi...
class class_name[name] begin[{] method[addSubNavEntry, return_type[void], modifier[protected], parameter[navEntry]] begin[{] local_variable[type[Button], button] call[button.addClickListener, parameter[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[Variab...
Keyword[protected] Keyword[void] identifier[addSubNavEntry] operator[SEP] Keyword[final] identifier[NavEntry] identifier[navEntry] operator[SEP] { identifier[Button] identifier[button] operator[=] identifier[m_rootLayout] operator[SEP] identifier[addSubNavEntry] operator[SEP] identifier[navEntry] operator[SEP] o...
@ObjectiveCName("sendContactWithPeer:withName:withPhones:withEmails:withPhoto:") public void sendContact(@NotNull Peer peer, @NotNull String name, @NotNull ArrayList<String> phones, @NotNull ArrayList<String> emails, @Nullable String base64photo) { modules.getMessagesModule().sen...
class class_name[name] begin[{] method[sendContact, return_type[void], modifier[public], parameter[peer, name, phones, emails, base64photo]] begin[{] call[modules.getMessagesModule, parameter[]] end[}] END[}]
annotation[@] identifier[ObjectiveCName] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[sendContact] operator[SEP] annotation[@] identifier[NotNull] identifier[Peer] identifier[peer] , annotation[@] identifier[NotNull] identifier[String] identifier[name] , annotation[@] identifie...
public String convertFromValuesAsObjectMap(Map<String, Object> properties, String... includeDomainKeys) throws ParsePropertiesException { Map<String, Object> filteredProperties = new HashMap<>(); for (String key : properties.keySet()) { for (String requiredKey : includeDomainKeys) { ...
class class_name[name] begin[{] method[convertFromValuesAsObjectMap, return_type[type[String]], modifier[public], parameter[properties, includeDomainKeys]] begin[{] local_variable[type[Map], filteredProperties] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStat...
Keyword[public] identifier[String] identifier[convertFromValuesAsObjectMap] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] , identifier[String] operator[...] identifier[includeDomainKeys] operator[SEP] Keyword[throws] identifier[ParsePropertiesExce...
public static <T> Iterator<T> next(final Iterator<? extends T> iterator, final int count) { return new ImmutableIterator<T>() { private int position = 0; @Override public boolean hasNext() { return iterator.hasNext() && position < count; } ...
class class_name[name] begin[{] method[next, return_type[type[Iterator]], modifier[public static], parameter[iterator, count]] begin[{] return[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Iterator] operator[<] identifier[T] operator[>] identifier[next] operator[SEP] Keyword[final] identifier[Iterator] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[iterator] , Keyword[final] Keyword[int] ident...
public static int countsForBigram(String text, String pattern) { int count = 0; int index = -1; while (true) { index = text.indexOf(pattern, index + 1); if (index > -1) { LOG.debug("模式: " + pattern + " 出现在文本中的位置:" + index); count++; ...
class class_name[name] begin[{] method[countsForBigram, return_type[type[int]], modifier[public static], parameter[text, pattern]] begin[{] local_variable[type[int], count] local_variable[type[int], index] while[literal[true]] begin[{] assign[member[.inde...
Keyword[public] Keyword[static] Keyword[int] identifier[countsForBigram] operator[SEP] identifier[String] identifier[text] , identifier[String] identifier[pattern] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[int] identifier[index] operator[=] operator[-] Other[1] op...
public static double[] CalculateAcadExtrusion(double[] coord_in, double[] xtru) { double[] coord_out; double dxt0 = 0D, dyt0 = 0D, dzt0 = 0D; double dvx1, dvx2, dvx3; double dvy1, dvy2, dvy3; double dmod, dxt, dyt, dzt; double aux = 1D/64D; double aux1 = Mat...
class class_name[name] begin[{] method[CalculateAcadExtrusion, return_type[type[double]], modifier[public static], parameter[coord_in, xtru]] begin[{] local_variable[type[double], coord_out] local_variable[type[double], dxt0] local_variable[type[double], dvx1] local_variable[typ...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[CalculateAcadExtrusion] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[coord_in] , Keyword[double] operator[SEP] operator[SEP] identifier[xtru] operator[SEP] { Keyword[double] operator[SEP] operator[SEP]...
public void error( String format, Object arg ) { if( m_delegate.isErrorEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.error( tuple.getMessage(), tuple.getThrowable() ); } }
class class_name[name] begin[{] method[error, return_type[void], modifier[public], parameter[format, arg]] begin[{] if[call[m_delegate.isErrorEnabled, parameter[]]] begin[{] local_variable[type[FormattingTuple], tuple] call[m_delegate.error, parameter[call[tu...
Keyword[public] Keyword[void] identifier[error] operator[SEP] identifier[String] identifier[format] , identifier[Object] identifier[arg] operator[SEP] { Keyword[if] operator[SEP] identifier[m_delegate] operator[SEP] identifier[isErrorEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[For...
protected Set<ConstraintViolation<Object>> hibernateValidate(Object form, Class<?>[] groups) { try { return hibernateValidator.validate(form, groups); } catch (RuntimeException e) { handleHibernateValidatorException(form, groups, e); return null; // unreachable ...
class class_name[name] begin[{] method[hibernateValidate, return_type[type[Set]], modifier[protected], parameter[form, groups]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=form, postfix_operators=[], prefix_operators=[], qualifier=, selecto...
Keyword[protected] identifier[Set] operator[<] identifier[ConstraintViolation] operator[<] identifier[Object] operator[>] operator[>] identifier[hibernateValidate] operator[SEP] identifier[Object] identifier[form] , identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[groups] op...
public NetworkInterfaceIPConfigurationInner getVirtualMachineScaleSetIpConfiguration(String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String ipConfigurationName) { return getVirtualMachineScaleSetIpConfigurationWithServiceResponseAsync(resourc...
class class_name[name] begin[{] method[getVirtualMachineScaleSetIpConfiguration, return_type[type[NetworkInterfaceIPConfigurationInner]], modifier[public], parameter[resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName]] begin[{] return[call[.get...
Keyword[public] identifier[NetworkInterfaceIPConfigurationInner] identifier[getVirtualMachineScaleSetIpConfiguration] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualMachineScaleSetName] , identifier[String] identifier[virtualmachineIndex] , identifier[String] id...
public static <T> T pickRandom (List<T> values) { int size = values.size(); if (size == 0) { throw new IllegalArgumentException( "Must have at least one element [size=" + size + "]"); } return values.get(getInt(size)); }
class class_name[name] begin[{] method[pickRandom, return_type[type[T]], modifier[public static], parameter[values]] begin[{] local_variable[type[int], size] if[binary_operation[member[.size], ==, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Binary...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[pickRandom] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[values] operator[SEP] { Keyword[int] identifier[size] operator[=] identifier[values] operator[SEP] identifier[size] operator[S...
protected synchronized void unsetRepertoire(RepertoireConfigService config) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Removing repertoire: " + config.getAlias()); } repertoireMap.remove(config.getAlias()); repertoirePIDMap.remove(confi...
class class_name[name] begin[{] method[unsetRepertoire, return_type[void], modifier[synchronized protected], parameter[config]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEventEnabled, parameter[]]]] begin[{] call[Tr...
Keyword[protected] Keyword[synchronized] Keyword[void] identifier[unsetRepertoire] operator[SEP] identifier[RepertoireConfigService] identifier[config] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] ident...
@Override public FileBuilder addSymbolicLink(Path target, Path linkTarget) throws IOException { checkTarget(target); checkTarget(linkTarget); FileBuilder fb = new FileBuilder(); fb.target = target; fb.linkTo = linkTarget; fb.content = ByteBuffer.wrap(PathHelper.po...
class class_name[name] begin[{] method[addSymbolicLink, return_type[type[FileBuilder]], modifier[public], parameter[target, linkTarget]] begin[{] call[.checkTarget, parameter[member[.target]]] call[.checkTarget, parameter[member[.linkTarget]]] local_variable[type[FileBui...
annotation[@] identifier[Override] Keyword[public] identifier[FileBuilder] identifier[addSymbolicLink] operator[SEP] identifier[Path] identifier[target] , identifier[Path] identifier[linkTarget] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkTarget] operator[SEP] identifier[target] oper...
public LocalTime withNano(int nanoOfSecond) { if (this.nano == nanoOfSecond) { return this; } NANO_OF_SECOND.checkValidValue(nanoOfSecond); return create(hour, minute, second, nanoOfSecond); }
class class_name[name] begin[{] method[withNano, return_type[type[LocalTime]], modifier[public], parameter[nanoOfSecond]] begin[{] if[binary_operation[THIS[member[None.nano]], ==, member[.nanoOfSecond]]] begin[{] return[THIS[]] else begin[{] None end[}] ...
Keyword[public] identifier[LocalTime] identifier[withNano] operator[SEP] Keyword[int] identifier[nanoOfSecond] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[nano] operator[==] identifier[nanoOfSecond] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] ...
public void setSourceRpm( final String rpm) { if ( rpm != null) format.getHeader().createEntry( SOURCERPM, rpm); }
class class_name[name] begin[{] method[setSourceRpm, return_type[void], modifier[public], parameter[rpm]] begin[{] if[binary_operation[member[.rpm], !=, literal[null]]] begin[{] call[format.getHeader, parameter[]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setSourceRpm] operator[SEP] Keyword[final] identifier[String] identifier[rpm] operator[SEP] { Keyword[if] operator[SEP] identifier[rpm] operator[!=] Other[null] operator[SEP] identifier[format] operator[SEP] identifier[getHeader] operator[SEP] operator[SEP] operator[SEP] ...
public void init(final FilterConfig pConfig) throws ServletException { if (pConfig == null) { throw new ServletConfigException("filter config == null"); } // Store filter config filterConfig = pConfig; // Configure this try { BeanUtil.c...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[pConfig]] begin[{] if[binary_operation[member[.pConfig], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[void] identifier[init] operator[SEP] Keyword[final] identifier[FilterConfig] identifier[pConfig] operator[SEP] Keyword[throws] identifier[ServletException] { Keyword[if] operator[SEP] identifier[pConfig] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] ident...
private void matchIds(@NonNull ArrayMap<View, TransitionValues> unmatchedStart, @NonNull ArrayMap<View, TransitionValues> unmatchedEnd, @NonNull SparseArray<View> startIds, @NonNull SparseArray<View> endIds) { int numStartIds = startI...
class class_name[name] begin[{] method[matchIds, return_type[void], modifier[private], parameter[unmatchedStart, unmatchedEnd, startIds, endIds]] begin[{] local_variable[type[int], numStartIds] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], dec...
Keyword[private] Keyword[void] identifier[matchIds] operator[SEP] annotation[@] identifier[NonNull] identifier[ArrayMap] operator[<] identifier[View] , identifier[TransitionValues] operator[>] identifier[unmatchedStart] , annotation[@] identifier[NonNull] identifier[ArrayMap] operator[<] identifier[View] , identifie...
public static void removePages4Session(final String _sessionId) { final AdvancedCache<String, StoredPage> cache = InfinispanCache.get().<String, StoredPage>getIgnReCache( InfinispanPageStore.PAGECACHE); final QueryFactory queryFactory = Search.getQueryFactory(cache); ...
class class_name[name] begin[{] method[removePages4Session, return_type[void], modifier[public static], parameter[_sessionId]] begin[{] local_variable[type[AdvancedCache], cache] local_variable[type[QueryFactory], queryFactory] local_variable[type[Query], query] call[.qu...
Keyword[public] Keyword[static] Keyword[void] identifier[removePages4Session] operator[SEP] Keyword[final] identifier[String] identifier[_sessionId] operator[SEP] { Keyword[final] identifier[AdvancedCache] operator[<] identifier[String] , identifier[StoredPage] operator[>] identifier[cache] operator[=] identifi...