code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void exitFrame(String className) { int counter = local.get().decrementAndGet(); if (counter < 0) { String errorMessage = "Method frame counter is less then 0. Some programming error: count(exitFrame) > count(enterFrame)." + getClassNames(); clear...
class class_name[name] begin[{] method[exitFrame, return_type[void], modifier[public static], parameter[className]] begin[{] local_variable[type[int], counter] if[binary_operation[member[.counter], <, literal[0]]] begin[{] local_variable[type[String], errorMessage] ...
Keyword[public] Keyword[static] Keyword[void] identifier[exitFrame] operator[SEP] identifier[String] identifier[className] operator[SEP] { Keyword[int] identifier[counter] operator[=] identifier[local] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[decrementAndGet] operator[SE...
public void bindApplication( String applicationName, String boundTplName, String boundApp ) throws ApplicationWsException { this.logger.finer( "Creating a binding for external exports in " + applicationName + "..." ); WebResource path = this.resource.path( UrlConstants.APP ) .path( applicationName ).path( "b...
class class_name[name] begin[{] method[bindApplication, return_type[void], modifier[public], parameter[applicationName, boundTplName, boundApp]] begin[{] THIS[member[None.logger]call[None.finer, parameter[binary_operation[binary_operation[literal["Creating a binding for external exports in "], ...
Keyword[public] Keyword[void] identifier[bindApplication] operator[SEP] identifier[String] identifier[applicationName] , identifier[String] identifier[boundTplName] , identifier[String] identifier[boundApp] operator[SEP] Keyword[throws] identifier[ApplicationWsException] { Keyword[this] operator[SEP] identifie...
public static <T> List<T> asImmutable(List<T> self) { return asUnmodifiable(new ArrayList<T>(self)); }
class class_name[name] begin[{] method[asImmutable, return_type[type[List]], modifier[public static], parameter[self]] begin[{] return[call[.asUnmodifiable, parameter[ClassCreator(arguments=[MemberReference(member=self, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, c...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[asImmutable] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[self] operator[SEP] { Keyword[return] identifier[asUnmodifiable] operator[SEP] Keywo...
private int[] findIndices(final Literal literal) { int count = 0; final char s = literal.getFirstChar(); for (int i = 0; i < myChars.length; i++) { // Check the first char for better performance and check the complete string if ((myChars[i] == s || s == '?') && literal....
class class_name[name] begin[{] method[findIndices, return_type[type[int]], modifier[private], parameter[literal]] begin[{] local_variable[type[int], count] local_variable[type[char], s] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(opera...
Keyword[private] Keyword[int] operator[SEP] operator[SEP] identifier[findIndices] operator[SEP] Keyword[final] identifier[Literal] identifier[literal] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[final] Keyword[char] identifier[s] operator[=] identifier[literal] opera...
public <T> void registerComponent(final String name, final Class<T> component, final Consumer<T> consumer) { log.debug(() -> "Madvoc WebApp component: [" + name + "] --> " + component.getName()); madpc.removeBean(name); madpc.registerPetiteBean(component, name, null, null, false, consumer); }
class class_name[name] begin[{] method[registerComponent, return_type[void], modifier[public], parameter[name, component, consumer]] begin[{] call[log.debug, parameter[LambdaExpression(body=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], ...
Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[registerComponent] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[component] , Keyword[final] identifier[Consumer] operator[<] identifier...
public void startSearch(SPFSearchDescriptor searchDescriptor, SPFSearchCallback callback) { try { SPFError err = new SPFError(); getService().startNewSearch(getAccessToken(), searchDescriptor, callback, err); if (!err.isOk()) { handleError(err); } } catch (RemoteException e) { // TODO Error manag...
class class_name[name] begin[{] method[startSearch, return_type[void], modifier[public], parameter[searchDescriptor, callback]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, construc...
Keyword[public] Keyword[void] identifier[startSearch] operator[SEP] identifier[SPFSearchDescriptor] identifier[searchDescriptor] , identifier[SPFSearchCallback] identifier[callback] operator[SEP] { Keyword[try] { identifier[SPFError] identifier[err] operator[=] Keyword[new] identifier[SPFError] opera...
@Override public RandomVariable accrue(RandomVariable rate, double periodLength) { return new RandomVariableDifferentiableAADStochasticNonOptimized( getValues().accrue(rate, periodLength), Arrays.asList(this, rate, new RandomVariableFromDoubleArray(periodLength)), OperatorType.ACCRUE); }
class class_name[name] begin[{] method[accrue, return_type[type[RandomVariable]], modifier[public], parameter[rate, periodLength]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getValues, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(...
annotation[@] identifier[Override] Keyword[public] identifier[RandomVariable] identifier[accrue] operator[SEP] identifier[RandomVariable] identifier[rate] , Keyword[double] identifier[periodLength] operator[SEP] { Keyword[return] Keyword[new] identifier[RandomVariableDifferentiableAADStochasticNonOptimized] ope...
public void showErrorReport(final String message, final String stacktrace) { if (!m_canceled) { CmsErrorDialog errDialog = new CmsErrorDialog(message, stacktrace); if (m_handlerReg != null) { m_handlerReg.removeHandler(); } if (m_closeHandl...
class class_name[name] begin[{] method[showErrorReport, return_type[void], modifier[public], parameter[message, stacktrace]] begin[{] if[member[.m_canceled]] begin[{] local_variable[type[CmsErrorDialog], errDialog] if[binary_operation[member[.m_handlerReg], !...
Keyword[public] Keyword[void] identifier[showErrorReport] operator[SEP] Keyword[final] identifier[String] identifier[message] , Keyword[final] identifier[String] identifier[stacktrace] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_canceled] operator[SEP] { identifier[CmsErrorDial...
@Override public Iterator<T> iterator() { return outputType == OutputType.INLINE ? getInlineResults() : createQuery().fetch().iterator(); }
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=outputType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberRefer...
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[T] operator[>] identifier[iterator] operator[SEP] operator[SEP] { Keyword[return] identifier[outputType] operator[==] identifier[OutputType] operator[SEP] identifier[INLINE] operator[?] identifier[getInlineResults] ope...
public String getUnencodedHtmlCookieString(String name, String value, Map<String, String> cookieProperties) { return createHtmlCookieString(name, value, cookieProperties, false); }
class class_name[name] begin[{] method[getUnencodedHtmlCookieString, return_type[type[String]], modifier[public], parameter[name, value, cookieProperties]] begin[{] return[call[.createHtmlCookieString, parameter[member[.name], member[.value], member[.cookieProperties], literal[false]]]] end[}] END[...
Keyword[public] identifier[String] identifier[getUnencodedHtmlCookieString] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[cookieProperties] operator[SEP] { Keyword[return] id...
public Observable<List<IntentClassifier>> listIntentsAsync(UUID appId, String versionId, ListIntentsOptionalParameter listIntentsOptionalParameter) { return listIntentsWithServiceResponseAsync(appId, versionId, listIntentsOptionalParameter).map(new Func1<ServiceResponse<List<IntentClassifier>>, List<IntentClass...
class class_name[name] begin[{] method[listIntentsAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, listIntentsOptionalParameter]] begin[{] return[call[.listIntentsWithServiceResponseAsync, parameter[member[.appId], member[.versionId], member[.listIntentsOptionalParame...
Keyword[public] identifier[Observable] operator[<] identifier[List] operator[<] identifier[IntentClassifier] operator[>] operator[>] identifier[listIntentsAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[ListIntentsOptionalParameter] identifier[listIntent...
public boolean verify(byte[] message, byte[] signature) { try { // this way signatureInstance should be thread safe final Signature signatureInstance = ((provider == null) || (provider.length() == 0)) ? Signature .getInstance(algorithm) : Signature.getInstance(algorithm, provider); signatureInstance.ini...
class class_name[name] begin[{] method[verify, return_type[type[boolean]], modifier[public], parameter[message, signature]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=BinaryOperation(operan...
Keyword[public] Keyword[boolean] identifier[verify] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[message] , Keyword[byte] operator[SEP] operator[SEP] identifier[signature] operator[SEP] { Keyword[try] { Keyword[final] identifier[Signature] identifier[signatureInstance] operator[...
public boolean matches(TaskGroupInformation info) { return getActivity().equals(info.getActivity()) && getInputType().equals(info.getInputType()) && getOutputType().equals(info.getOutputType()) && info.matchesLocale(getLocale()); }
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[public], parameter[info]] begin[{] return[binary_operation[binary_operation[binary_operation[call[.getActivity, parameter[]], &&, call[.getInputType, parameter[]]], &&, call[.getOutputType, parameter[]]], &&, call[info...
Keyword[public] Keyword[boolean] identifier[matches] operator[SEP] identifier[TaskGroupInformation] identifier[info] operator[SEP] { Keyword[return] identifier[getActivity] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[info] operator[SEP] identifier[getActivity] operator[S...
public float getProgress() throws IOException { if (end == start) { return 0.0f; } else { return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start)); } }
class class_name[name] begin[{] method[getProgress, return_type[type[float]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.end], ==, member[.start]]] begin[{] return[literal[0.0f]] else begin[{] return[call[Math.min, parameter[literal[1.0f]...
Keyword[public] Keyword[float] identifier[getProgress] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[end] operator[==] identifier[start] operator[SEP] { Keyword[return] literal[Float] operator[SEP] } Keyword[else] { ...
public static Cell getCellByReference(final String cellRef, final Sheet sheet) { Cell c = null; try { CellReference ref = new CellReference(cellRef); Row r = sheet.getRow(ref.getRow()); if (r != null) { c = r.getCell(ref.getCol(), MissingCellPolicy.CREATE_NULL_AS_BLANK); } } c...
class class_name[name] begin[{] method[getCellByReference, return_type[type[Cell]], modifier[public static], parameter[cellRef, sheet]] begin[{] local_variable[type[Cell], c] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=...
Keyword[public] Keyword[static] identifier[Cell] identifier[getCellByReference] operator[SEP] Keyword[final] identifier[String] identifier[cellRef] , Keyword[final] identifier[Sheet] identifier[sheet] operator[SEP] { identifier[Cell] identifier[c] operator[=] Other[null] operator[SEP] Keyword[try] { ...
public void marshall(ResponseTimeRootCauseEntity responseTimeRootCauseEntity, ProtocolMarshaller protocolMarshaller) { if (responseTimeRootCauseEntity == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[responseTimeRootCauseEntity, protocolMarshaller]] begin[{] if[binary_operation[member[.responseTimeRootCauseEntity], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ResponseTimeRootCauseEntity] identifier[responseTimeRootCauseEntity] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[responseTimeRootCauseEntity] operator[==] Other[nu...
@Override public SIBusMessage receiveWithWait(SITransaction tran, Reliability unrecoverableReliability, SIDestinationAddress destAddr, DestinationType destinationType, ...
class class_name[name] begin[{] method[receiveWithWait, return_type[type[SIBusMessage]], modifier[public], parameter[tran, unrecoverableReliability, destAddr, destinationType, criteria, reliability, timeout, alternateUser]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, p...
annotation[@] identifier[Override] Keyword[public] identifier[SIBusMessage] identifier[receiveWithWait] operator[SEP] identifier[SITransaction] identifier[tran] , identifier[Reliability] identifier[unrecoverableReliability] , identifier[SIDestinationAddress] identifier[destAddr] , identifier[DestinationType] identif...
public LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result) { return proj.projToLatLon(world, result); }
class class_name[name] begin[{] method[projToLatLon, return_type[type[LatLonPoint]], modifier[public], parameter[world, result]] begin[{] return[call[proj.projToLatLon, parameter[member[.world], member[.result]]]] end[}] END[}]
Keyword[public] identifier[LatLonPoint] identifier[projToLatLon] operator[SEP] identifier[ProjectionPoint] identifier[world] , identifier[LatLonPointImpl] identifier[result] operator[SEP] { Keyword[return] identifier[proj] operator[SEP] identifier[projToLatLon] operator[SEP] identifier[world] , identifier[resu...
public static final Predicate<String> anyCharMatches(final CharMatcher matcher) { return new Predicate<String>() { @Override public boolean apply(@Nullable final String input) { return matcher.matchesAnyOf(input); } }; }
class class_name[name] begin[{] method[anyCharMatches, return_type[type[Predicate]], modifier[final public static], parameter[matcher]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvoca...
Keyword[public] Keyword[static] Keyword[final] identifier[Predicate] operator[<] identifier[String] operator[>] identifier[anyCharMatches] operator[SEP] Keyword[final] identifier[CharMatcher] identifier[matcher] operator[SEP] { Keyword[return] Keyword[new] identifier[Predicate] operator[<] identifier[String] ope...
@Override public void init(PlayerConfig config) { maxEvents = Integer.valueOf(config.get(MAX_EVENTS_KEY)); producedEvents = 0; }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[config]] begin[{] assign[member[.maxEvents], call[Integer.valueOf, parameter[call[config.get, parameter[member[.MAX_EVENTS_KEY]]]]]] assign[member[.producedEvents], literal[0]] end[}]...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[PlayerConfig] identifier[config] operator[SEP] { identifier[maxEvents] operator[=] identifier[Integer] operator[SEP] identifier[valueOf] operator[SEP] identifier[config] operator[SEP] identifier[get] operat...
private boolean checkCDataEnd(char[] outBuf, int outPtr) throws XMLStreamException { int bracketCount = 0; char c; do { ++bracketCount; c = (mInputPtr < mInputEnd) ? mInputBuffer[mInputPtr++] : getNextCharFromCurrent(SUFFIX_IN_CDATA); }...
class class_name[name] begin[{] method[checkCDataEnd, return_type[type[boolean]], modifier[private], parameter[outBuf, outPtr]] begin[{] local_variable[type[int], bracketCount] local_variable[type[char], c] do[binary_operation[member[.c], ==, literal[']']]] begin[{] ...
Keyword[private] Keyword[boolean] identifier[checkCDataEnd] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[outBuf] , Keyword[int] identifier[outPtr] operator[SEP] Keyword[throws] identifier[XMLStreamException] { Keyword[int] identifier[bracketCount] operator[=] Other[0] operator[SEP] Keyword...
public boolean tryAdd(final Agent agent) { Objects.requireNonNull(agent, "agent cannot be null"); if (Status.ACTIVE != status) { throw new IllegalStateException("add called when not active"); } return addAgent.compareAndSet(null, agent); }
class class_name[name] begin[{] method[tryAdd, return_type[type[boolean]], modifier[public], parameter[agent]] begin[{] call[Objects.requireNonNull, parameter[member[.agent], literal["agent cannot be null"]]] if[binary_operation[member[Status.ACTIVE], !=, member[.status]]] begin...
Keyword[public] Keyword[boolean] identifier[tryAdd] operator[SEP] Keyword[final] identifier[Agent] identifier[agent] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[agent] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Sta...
public static VectorByteBufferedIntegral4s8 createWithBase( final ByteBuffer b, final MutableLongType base, final int offset) { return new VectorByteBufferedIntegral4s8(b, base, offset); }
class class_name[name] begin[{] method[createWithBase, return_type[type[VectorByteBufferedIntegral4s8]], modifier[public static], parameter[b, base, offset]] begin[{] return[ClassCreator(arguments=[MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRef...
Keyword[public] Keyword[static] identifier[VectorByteBufferedIntegral4s8] identifier[createWithBase] operator[SEP] Keyword[final] identifier[ByteBuffer] identifier[b] , Keyword[final] identifier[MutableLongType] identifier[base] , Keyword[final] Keyword[int] identifier[offset] operator[SEP] { Keyword[return] K...
private void deployInstance(final InstanceContext instance, final CountingCompletionHandler<Void> counter) { // First we need to select a node from the component's deployment group // to which to deploy the component. // If the component doesn't specify a group then deploy to any node in the cluster. if...
class class_name[name] begin[{] method[deployInstance, return_type[void], modifier[private], parameter[instance, counter]] begin[{] if[binary_operation[call[instance.component, parameter[]], !=, literal[null]]] begin[{] call[cluster.getGroup, parameter[call[instance.comp...
Keyword[private] Keyword[void] identifier[deployInstance] operator[SEP] Keyword[final] identifier[InstanceContext] identifier[instance] , Keyword[final] identifier[CountingCompletionHandler] operator[<] identifier[Void] operator[>] identifier[counter] operator[SEP] { Keyword[if] operator[SEP] identifier[instanc...
protected int sign(Control ctrl) { ControlType type = ctrl.getControlType(); if (type != null && type.name().startsWith("I")) return -1; return 1; }
class class_name[name] begin[{] method[sign, return_type[type[int]], modifier[protected], parameter[ctrl]] begin[{] local_variable[type[ControlType], type] if[binary_operation[binary_operation[member[.type], !=, literal[null]], &&, call[type.name, parameter[]]]] begin[{] return[literal[...
Keyword[protected] Keyword[int] identifier[sign] operator[SEP] identifier[Control] identifier[ctrl] operator[SEP] { identifier[ControlType] identifier[type] operator[=] identifier[ctrl] operator[SEP] identifier[getControlType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[type] o...
public long countNNZ() { long count = 0; for (int i = 0; i < values.length(); i++) { int[] idx = getUnderlyingIndicesOf(i).asInt(); boolean isIn = true; int idxNotFixed = 0; for (int dim = 0; dim < idx.length; dim++) { if (flags()[dim] ==...
class class_name[name] begin[{] method[countNNZ, return_type[type[long]], modifier[public], parameter[]] begin[{] local_variable[type[long], count] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], in...
Keyword[public] Keyword[long] identifier[countNNZ] operator[SEP] operator[SEP] { Keyword[long] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[values] operator[SEP] identifier[length...
public static ServiceEndpoint scan( List<ServiceInfo> serviceInstances, String endpointId, Address address, Map<String, String> endpointTags) { Set<String> contentTypes = DataCodec.getAllInstances().stream() .map(DataCodec::contentType) .collect(Collectors.to...
class class_name[name] begin[{] method[scan, return_type[type[ServiceEndpoint]], modifier[public static], parameter[serviceInstances, endpointId, address, endpointTags]] begin[{] local_variable[type[Set], contentTypes] local_variable[type[List], serviceRegistrations] return[ClassCreator...
Keyword[public] Keyword[static] identifier[ServiceEndpoint] identifier[scan] operator[SEP] identifier[List] operator[<] identifier[ServiceInfo] operator[>] identifier[serviceInstances] , identifier[String] identifier[endpointId] , identifier[Address] identifier[address] , identifier[Map] operator[<] identifier[Strin...
public static Object Map( Object source, Object destination ) { List<DataBinding> res = new ArrayList<DataBinding>(); LOGGER.fine( "Binding object of class " + getSimpleName( source.getClass() ) + " to another of class " + getSimpleName( destination.getClass() ) ); Clazz<?> sourceClass = ClassInfo.Clazz( sourc...
class class_name[name] begin[{] method[Map, return_type[type[Object]], modifier[public static], parameter[source, destination]] begin[{] local_variable[type[List], res] call[LOGGER.fine, parameter[binary_operation[binary_operation[binary_operation[literal["Binding object of class "], +,...
Keyword[public] Keyword[static] identifier[Object] identifier[Map] operator[SEP] identifier[Object] identifier[source] , identifier[Object] identifier[destination] operator[SEP] { identifier[List] operator[<] identifier[DataBinding] operator[>] identifier[res] operator[=] Keyword[new] identifier[ArrayList] oper...
private InputStream getBundleMappingStream() { InputStream is = null; try { is = getTemporaryResourceAsStream(PathNormalizer.concatWebPath(tempDirPath + "/", mappingFileName)); } catch (ResourceNotFoundException e) { // Nothing to do } return is; }
class class_name[name] begin[{] method[getBundleMappingStream, return_type[type[InputStream]], modifier[private], parameter[]] begin[{] local_variable[type[InputStream], is] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=is, postfix_operators=[]...
Keyword[private] identifier[InputStream] identifier[getBundleMappingStream] operator[SEP] operator[SEP] { identifier[InputStream] identifier[is] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[is] operator[=] identifier[getTemporaryResourceAsStream] operator[SEP] identifier[PathNormali...
public Criteria in(Collection<?> c) { notNull(c, "collection can not be null"); this.criteriaType = RelationalOperator.IN; this.right = new ValueListNode(c); return this; }
class class_name[name] begin[{] method[in, return_type[type[Criteria]], modifier[public], parameter[c]] begin[{] call[.notNull, parameter[member[.c], literal["collection can not be null"]]] assign[THIS[member[None.criteriaType]], member[RelationalOperator.IN]] as...
Keyword[public] identifier[Criteria] identifier[in] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[c] operator[SEP] { identifier[notNull] operator[SEP] identifier[c] , literal[String] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[criteriaType] operator[=...
@Override public int compareTo(Minutes otherAmount) { int thisValue = this.minutes; int otherValue = otherAmount.minutes; return Integer.compare(thisValue, otherValue); }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[otherAmount]] begin[{] local_variable[type[int], thisValue] local_variable[type[int], otherValue] return[call[Integer.compare, parameter[member[.thisValue], member[.otherValue]]]] e...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[Minutes] identifier[otherAmount] operator[SEP] { Keyword[int] identifier[thisValue] operator[=] Keyword[this] operator[SEP] identifier[minutes] operator[SEP] Keyword[int] identifier[otherValue] operator...
@Override public CreateOriginEndpointResult createOriginEndpoint(CreateOriginEndpointRequest request) { request = beforeClientExecution(request); return executeCreateOriginEndpoint(request); }
class class_name[name] begin[{] method[createOriginEndpoint, return_type[type[CreateOriginEndpointResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateOriginEndpoint, parame...
annotation[@] identifier[Override] Keyword[public] identifier[CreateOriginEndpointResult] identifier[createOriginEndpoint] operator[SEP] identifier[CreateOriginEndpointRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ...
public static boolean isField(Schema schema, PartitionStrategy strategy, String name) { Schema.Field field = schema.getField(name); return ((field != null) || (strategy != null && Accessor.getDefault().hasPartitioner(strategy, name))); }
class class_name[name] begin[{] method[isField, return_type[type[boolean]], modifier[public static], parameter[schema, strategy, name]] begin[{] local_variable[type[Schema], field] return[binary_operation[binary_operation[member[.field], !=, literal[null]], ||, binary_operation[binary_operation...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isField] operator[SEP] identifier[Schema] identifier[schema] , identifier[PartitionStrategy] identifier[strategy] , identifier[String] identifier[name] operator[SEP] { identifier[Schema] operator[SEP] identifier[Field] identifier[field] operator[=] id...
public static byte[] getEncodedInternal(Certificate cert) throws CertificateEncodingException { if (cert instanceof X509CertImpl) { return ((X509CertImpl)cert).getEncodedInternal(); } else { return cert.getEncoded(); } }
class class_name[name] begin[{] method[getEncodedInternal, return_type[type[byte]], modifier[public static], parameter[cert]] begin[{] if[binary_operation[member[.cert], instanceof, type[X509CertImpl]]] begin[{] return[Cast(expression=MemberReference(member=cert, postfix_operators=[...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[getEncodedInternal] operator[SEP] identifier[Certificate] identifier[cert] operator[SEP] Keyword[throws] identifier[CertificateEncodingException] { Keyword[if] operator[SEP] identifier[cert] Keyword[instanceof] identifier[X509Ce...
public String addAddressToTarget(String address) { if (address != null) { MessageDetailTarget messageDetailTarget = (MessageDetailTarget)this.getMainRecord(); String site = messageDetailTarget.getProperty(TrxMessageHeader.DESTINATION_PARAM); site = this.getSiteFro...
class class_name[name] begin[{] method[addAddressToTarget, return_type[type[String]], modifier[public], parameter[address]] begin[{] if[binary_operation[member[.address], !=, literal[null]]] begin[{] local_variable[type[MessageDetailTarget], messageDetailTarget] local_va...
Keyword[public] identifier[String] identifier[addAddressToTarget] operator[SEP] identifier[String] identifier[address] operator[SEP] { Keyword[if] operator[SEP] identifier[address] operator[!=] Other[null] operator[SEP] { identifier[MessageDetailTarget] identifier[messageDetailTarget] operator[=] oper...
public List<IntegerSolution> doCrossover( double probability, IntegerSolution parent1, IntegerSolution parent2) { List<IntegerSolution> offspring = new ArrayList<IntegerSolution>(2); offspring.add((IntegerSolution) parent1.copy()) ; offspring.add((IntegerSolution) parent2.copy()) ; int i; ...
class class_name[name] begin[{] method[doCrossover, return_type[type[List]], modifier[public], parameter[probability, parent1, parent2]] begin[{] local_variable[type[List], offspring] call[offspring.add, parameter[Cast(expression=MethodInvocation(arguments=[], member=copy, postfix_opera...
Keyword[public] identifier[List] operator[<] identifier[IntegerSolution] operator[>] identifier[doCrossover] operator[SEP] Keyword[double] identifier[probability] , identifier[IntegerSolution] identifier[parent1] , identifier[IntegerSolution] identifier[parent2] operator[SEP] { identifier[List] operator[<] ide...
public static CalendarWeek from(GregorianDate date) { PlainDate iso = PlainDate.from(date); // includes validation return CalendarWeek.of(iso.getInt(PlainDate.YEAR_OF_WEEKDATE), iso.getInt(Weekmodel.ISO.weekOfYear())); }
class class_name[name] begin[{] method[from, return_type[type[CalendarWeek]], modifier[public static], parameter[date]] begin[{] local_variable[type[PlainDate], iso] return[call[CalendarWeek.of, parameter[call[iso.getInt, parameter[member[PlainDate.YEAR_OF_WEEKDATE]]], call[iso.getInt, paramete...
Keyword[public] Keyword[static] identifier[CalendarWeek] identifier[from] operator[SEP] identifier[GregorianDate] identifier[date] operator[SEP] { identifier[PlainDate] identifier[iso] operator[=] identifier[PlainDate] operator[SEP] identifier[from] operator[SEP] identifier[date] operator[SEP] operator[SEP] Keyw...
public static boolean isMatched(String pattern, String reg) { Pattern compile = Pattern.compile(reg); return compile.matcher(pattern).matches(); }
class class_name[name] begin[{] method[isMatched, return_type[type[boolean]], modifier[public static], parameter[pattern, reg]] begin[{] local_variable[type[Pattern], compile] return[call[compile.matcher, parameter[member[.pattern]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isMatched] operator[SEP] identifier[String] identifier[pattern] , identifier[String] identifier[reg] operator[SEP] { identifier[Pattern] identifier[compile] operator[=] identifier[Pattern] operator[SEP] identifier[compile] operator[SEP] identifier[reg]...
public void updateImpliedStores( @Observes final ArtifactStorePreUpdateEvent event ) { if ( !storeManager.isStarted() ) { return; } if ( !config.isEnabled() ) { logger.debug( "Implied-repository processing is not enabled." ); return; ...
class class_name[name] begin[{] method[updateImpliedStores, return_type[void], modifier[public], parameter[event]] begin[{] if[call[storeManager.isStarted, parameter[]]] begin[{] return[None] else begin[{] None end[}] if[call[config.isEnabled, paramet...
Keyword[public] Keyword[void] identifier[updateImpliedStores] operator[SEP] annotation[@] identifier[Observes] Keyword[final] identifier[ArtifactStorePreUpdateEvent] identifier[event] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[storeManager] operator[SEP] identifier[isStarted] operator[SEP] ...
@Indexable(type = IndexableType.DELETE) @Override public CommercePriceListAccountRel deleteCommercePriceListAccountRel( long commercePriceListAccountRelId) throws PortalException { return commercePriceListAccountRelPersistence.remove(commercePriceListAccountRelId); }
class class_name[name] begin[{] method[deleteCommercePriceListAccountRel, return_type[type[CommercePriceListAccountRel]], modifier[public], parameter[commercePriceListAccountRelId]] begin[{] return[call[commercePriceListAccountRelPersistence.remove, parameter[member[.commercePriceListAccountRelId]]]] ...
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[DELETE] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceListAccountRel] identifier[deleteCommercePriceListAccountRel] operator[SEP] Keyword[long] ide...
public static void invokeMain(String className, String[] args) { try { Class<?> clazz = null; if (ClassServiceUtility.getClassService().getClassFinder(null) != null) clazz = ClassServiceUtility.getClassService().getClassFinder(null).findClass(className, null); ...
class class_name[name] begin[{] method[invokeMain, return_type[void], modifier[public static], parameter[className, args]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] Keyword[void] identifier[invokeMain] operator[SEP] identifier[String] identifier[className] , identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[try] { identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator...
public Map<String, String[]> getAttributePropertiesFromDB(final String attributeName) throws DevFailed { xlogger.entry(attributeName); xlogger.exit(); return DatabaseFactory.getDatabase().getAttributeProperties(deviceName, attributeName); }
class class_name[name] begin[{] method[getAttributePropertiesFromDB, return_type[type[Map]], modifier[public], parameter[attributeName]] begin[{] call[xlogger.entry, parameter[member[.attributeName]]] call[xlogger.exit, parameter[]] return[call[DatabaseFactory.getDatabas...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[SEP] operator[SEP] operator[>] identifier[getAttributePropertiesFromDB] operator[SEP] Keyword[final] identifier[String] identifier[attributeName] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[xlogger]...
private void firePropertyRemoved(List list, PropertyEvent event) { if (list == null) return; int size = list.size(); for (int i = 0; i < size; i++) { PropertyListener listener = (PropertyListener) list.get(i); listener.propertyRemoved(event); } }
class class_name[name] begin[{] method[firePropertyRemoved, return_type[void], modifier[private], parameter[list, event]] begin[{] if[binary_operation[member[.list], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[int], size] ...
Keyword[private] Keyword[void] identifier[firePropertyRemoved] operator[SEP] identifier[List] identifier[list] , identifier[PropertyEvent] identifier[event] operator[SEP] { Keyword[if] operator[SEP] identifier[list] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] Keyword[int] identifier[siz...
protected String getSpaceCount(String spaceId, int maxCount) { List<String> spaceContentChunk = null; long count = 0; do { String marker = null; if (spaceContentChunk != null && spaceContentChunk.size() > 0) { marker = spaceContentChunk.get(spaceContentCh...
class class_name[name] begin[{] method[getSpaceCount, return_type[type[String]], modifier[protected], parameter[spaceId, maxCount]] begin[{] local_variable[type[List], spaceContentChunk] local_variable[type[long], count] do[binary_operation[binary_operation[call[spaceContentChun...
Keyword[protected] identifier[String] identifier[getSpaceCount] operator[SEP] identifier[String] identifier[spaceId] , Keyword[int] identifier[maxCount] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[spaceContentChunk] operator[=] Other[null] operator[SEP] Keyword[long] i...
public void marshall(DeleteRoomRequest deleteRoomRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRoomRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteRoomRequest.getRoomArn...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteRoomRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteRoomRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteRoomRequest] identifier[deleteRoomRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteRoomRequest] operator[==] Other[null] operator[SEP] { ...
public final srecParser.script_stmt_block_return script_stmt_block() throws RecognitionException { srecParser.script_stmt_block_return retval = new srecParser.script_stmt_block_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token NEWLINE7=null; Token EOF8=null;...
class class_name[name] begin[{] method[script_stmt_block, return_type[type[srecParser]], modifier[final public], parameter[]] begin[{] local_variable[type[srecParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[CommonTree], ro...
Keyword[public] Keyword[final] identifier[srecParser] operator[SEP] identifier[script_stmt_block_return] identifier[script_stmt_block] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[srecParser] operator[SEP] identifier[script_stmt_block_return] identifier[retval] operat...
private static boolean nodeNameMatch(Node node, String desiredName) { return (desiredName.equals(node.getNodeName()) || desiredName.equals(node.getLocalName())); }
class class_name[name] begin[{] method[nodeNameMatch, return_type[type[boolean]], modifier[private static], parameter[node, desiredName]] begin[{] return[binary_operation[call[desiredName.equals, parameter[call[node.getNodeName, parameter[]]]], ||, call[desiredName.equals, parameter[call[node.getLocalN...
Keyword[private] Keyword[static] Keyword[boolean] identifier[nodeNameMatch] operator[SEP] identifier[Node] identifier[node] , identifier[String] identifier[desiredName] operator[SEP] { Keyword[return] operator[SEP] identifier[desiredName] operator[SEP] identifier[equals] operator[SEP] identifier[node] operator[...
public static void checkArgument(boolean test, @Nullable String message) { if (!test) { throw new IllegalArgumentException(message == null || message.isEmpty() ? IAE_DEFAULT_MSG : message); } }
class class_name[name] begin[{] method[checkArgument, return_type[void], modifier[public static], parameter[test, message]] begin[{] if[member[.test]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(oper...
Keyword[public] Keyword[static] Keyword[void] identifier[checkArgument] operator[SEP] Keyword[boolean] identifier[test] , annotation[@] identifier[Nullable] identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[test] operator[SEP] { Keyword[throw] Key...
public static String getConcurrencyModeString(int concurrency) { switch (concurrency) { case ResultSet.CONCUR_READ_ONLY: return "CONCUR READ ONLY (" + concurrency + ')'; case ResultSet.CONCUR_UPDATABLE: return "CONCUR UPDATABLE (" + concurrency + ')'; ...
class class_name[name] begin[{] method[getConcurrencyModeString, return_type[type[String]], modifier[public static], parameter[concurrency]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=CONCUR_READ_ONLY, postfix_operators=[], prefix_operators=[], qualifier=ResultSet,...
Keyword[public] Keyword[static] identifier[String] identifier[getConcurrencyModeString] operator[SEP] Keyword[int] identifier[concurrency] operator[SEP] { Keyword[switch] operator[SEP] identifier[concurrency] operator[SEP] { Keyword[case] identifier[ResultSet] operator[SEP] identifier[CONCUR_READ_ONLY...
public static Status getStatus(Account account, String authority, boolean create) { Map<Account, Status> map = syncableAccounts.get(authority); if (map == null) { map = new HashMap<>(); syncableAccounts.put(authority, map); } Status status = map.get(account); if (status == null && create...
class class_name[name] begin[{] method[getStatus, return_type[type[Status]], modifier[public static], parameter[account, authority, create]] begin[{] local_variable[type[Map], map] if[binary_operation[member[.map], ==, literal[null]]] begin[{] assign[member[.map]...
Keyword[public] Keyword[static] identifier[Status] identifier[getStatus] operator[SEP] identifier[Account] identifier[account] , identifier[String] identifier[authority] , Keyword[boolean] identifier[create] operator[SEP] { identifier[Map] operator[<] identifier[Account] , identifier[Status] operator[>] ident...
public void marshall(ThingIndexingConfiguration thingIndexingConfiguration, ProtocolMarshaller protocolMarshaller) { if (thingIndexingConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(t...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[thingIndexingConfiguration, protocolMarshaller]] begin[{] if[binary_operation[member[.thingIndexingConfiguration], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argu...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ThingIndexingConfiguration] identifier[thingIndexingConfiguration] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[thingIndexingConfiguration] operator[==] Other[null]...
public void removeUncacheableAttributes(Map<String, Object> attributeMap) { for (String uncacheableAttribute : uncacheableAttributes) { attributeMap.remove(uncacheableAttribute); } attributeMap.remove(CmsFlexController.ATTRIBUTE_NAME); attributeMap.remove(CmsDetailPageResour...
class class_name[name] begin[{] method[removeUncacheableAttributes, return_type[void], modifier[public], parameter[attributeMap]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=uncacheableAttribute, pos...
Keyword[public] Keyword[void] identifier[removeUncacheableAttributes] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[attributeMap] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[uncacheableAttribute] operator[:] identifier[unca...
public static byte[] dataSerialize(Object data) throws IOException { if (isParseable(data.getClass())) { return format(data).getBytes(); } // serialize the data ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStrea...
class class_name[name] begin[{] method[dataSerialize, return_type[type[byte]], modifier[public static], parameter[data]] begin[{] if[call[.isParseable, parameter[call[data.getClass, parameter[]]]]] begin[{] return[call[.format, parameter[member[.data]]]] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[dataSerialize] operator[SEP] identifier[Object] identifier[data] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[isParseable] operator[SEP] identifier[data] operator[SEP] identifier[g...
private void initializePlot() { plot = new VisualizationPlot(); { // Add a background element: CSSClass cls = new CSSClass(this, "background"); final String bgcol = context.getStyleLibrary().getBackgroundColor(StyleLibrary.PAGE); cls.setStatement(SVGConstants.CSS_FILL_PROPERTY, bgcol); p...
class class_name[name] begin[{] method[initializePlot, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.plot], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Reference...
Keyword[private] Keyword[void] identifier[initializePlot] operator[SEP] operator[SEP] { identifier[plot] operator[=] Keyword[new] identifier[VisualizationPlot] operator[SEP] operator[SEP] operator[SEP] { identifier[CSSClass] identifier[cls] operator[=] Keyword[new] identifier[CSSClass] operator[SEP] K...
public static void multAdd(ZMatrixRMaj a , ZMatrixRMaj b , ZMatrixRMaj c ) { if( b.numCols >= EjmlParameters.MULT_COLUMN_SWITCH ) { MatrixMatrixMult_ZDRM.multAdd_reorder(a, b, c); } else { MatrixMatrixMult_ZDRM.multAdd_small(a,b,c); } }
class class_name[name] begin[{] method[multAdd, return_type[void], modifier[public static], parameter[a, b, c]] begin[{] if[binary_operation[member[b.numCols], >=, member[EjmlParameters.MULT_COLUMN_SWITCH]]] begin[{] call[MatrixMatrixMult_ZDRM.multAdd_reorder, parameter[...
Keyword[public] Keyword[static] Keyword[void] identifier[multAdd] operator[SEP] identifier[ZMatrixRMaj] identifier[a] , identifier[ZMatrixRMaj] identifier[b] , identifier[ZMatrixRMaj] identifier[c] operator[SEP] { Keyword[if] operator[SEP] identifier[b] operator[SEP] identifier[numCols] operator[>=] identifier...
public static boolean requiresOptimizedTransaction(Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "requiresOptimizedTransaction", conversation); final HandshakeProperties handshakeProperties = conversation.getHandshakeProperties(); ...
class class_name[name] begin[{] method[requiresOptimizedTransaction, return_type[type[boolean]], modifier[public static], parameter[conversation]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[requiresOptimizedTransaction] operator[SEP] identifier[Conversation] identifier[conversation] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] ide...
private Range getRange(final URI uri) { int start = 0; int end = Integer.MAX_VALUE; String startId = null; String endId = null; final String fragment = uri.getFragment(); if (fragment != null) { // RFC 5147 final Matcher m = Pattern.compile("^line...
class class_name[name] begin[{] method[getRange, return_type[type[Range]], modifier[private], parameter[uri]] begin[{] local_variable[type[int], start] local_variable[type[int], end] local_variable[type[String], startId] local_variable[type[String], endId] local_variable...
Keyword[private] identifier[Range] identifier[getRange] operator[SEP] Keyword[final] identifier[URI] identifier[uri] operator[SEP] { Keyword[int] identifier[start] operator[=] Other[0] operator[SEP] Keyword[int] identifier[end] operator[=] identifier[Integer] operator[SEP] identifier[MAX_VALUE] operator[SEP] ide...
public String getListItemClass(MenuEntry activeMenu, MenuEntry actualEntry) { if (LOGGER.isTraceEnabled())LOGGER.trace("[getListItemClass]" + actualEntry); StringBuilder sb = new StringBuilder(); if (!CollectionUtils.isEmpty(actualEntry.getSubmenu())) sb.append(CSS_TREEVIEW); if (isActiveInMenuTree(activeMen...
class class_name[name] begin[{] method[getListItemClass, return_type[type[String]], modifier[public], parameter[activeMenu, actualEntry]] begin[{] if[call[LOGGER.isTraceEnabled, parameter[]]] begin[{] call[LOGGER.trace, parameter[binary_operation[literal["[getListItemClass]"], +, me...
Keyword[public] identifier[String] identifier[getListItemClass] operator[SEP] identifier[MenuEntry] identifier[activeMenu] , identifier[MenuEntry] identifier[actualEntry] operator[SEP] { Keyword[if] operator[SEP] identifier[LOGGER] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SE...
Rule FilterFunction() { return Sequence( Sequence( "progid:", OneOrMore(FirstOf('.', Ident())) ), push(new FunctionNode(match())), FilterArguments(), peek(1).addChild(pop()) );...
class class_name[name] begin[{] method[FilterFunction, return_type[type[Rule]], modifier[default], parameter[]] begin[{] return[call[.Sequence, parameter[call[.Sequence, parameter[literal["progid:"], call[.OneOrMore, parameter[call[.FirstOf, parameter[literal['.'], call[.Ident, parameter[]]]]]]]], call...
identifier[Rule] identifier[FilterFunction] operator[SEP] operator[SEP] { Keyword[return] identifier[Sequence] operator[SEP] identifier[Sequence] operator[SEP] literal[String] , identifier[OneOrMore] operator[SEP] identifier[FirstOf] operator[SEP] literal[String] , identifier[Ident] operator[SEP] operator[SEP]...
@Override public Node visitJoinRelation(SqlBaseParser.JoinRelationContext context) { Relation left = (Relation) visit(context.left); Relation right; if (context.CROSS() != null) { right = (Relation) visit(context.right); return new Join(getLocation(context), Join...
class class_name[name] begin[{] method[visitJoinRelation, return_type[type[Node]], modifier[public], parameter[context]] begin[{] local_variable[type[Relation], left] local_variable[type[Relation], right] if[binary_operation[call[context.CROSS, parameter[]], !=, literal[null]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[Node] identifier[visitJoinRelation] operator[SEP] identifier[SqlBaseParser] operator[SEP] identifier[JoinRelationContext] identifier[context] operator[SEP] { identifier[Relation] identifier[left] operator[=] operator[SEP] identifier[Relation] operator...
@Override public String getClassLoaderIdentifier(ClassLoader classloader) throws IllegalArgumentException { // Disable for bundles, because the bundle id can change across instances of the server, // meaning the identifier would not be reliable if (classloader instanceof ThreadContextClassLo...
class class_name[name] begin[{] method[getClassLoaderIdentifier, return_type[type[String]], modifier[public], parameter[classloader]] begin[{] if[binary_operation[binary_operation[member[.classloader], instanceof, type[ThreadContextClassLoader]], &&, binary_operation[member[.classloader], insta...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getClassLoaderIdentifier] operator[SEP] identifier[ClassLoader] identifier[classloader] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] identifier[classloader] Keyword[instanceof] ident...
public void copy() { beanUtil = new BeanUtilBean() .declared(declared) .forced(forced) .silent(true); visit(); }
class class_name[name] begin[{] method[copy, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.beanUtil], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(argumen...
Keyword[public] Keyword[void] identifier[copy] operator[SEP] operator[SEP] { identifier[beanUtil] operator[=] Keyword[new] identifier[BeanUtilBean] operator[SEP] operator[SEP] operator[SEP] identifier[declared] operator[SEP] identifier[declared] operator[SEP] operator[SEP] identifier[forced] operator[SEP] identi...
public void removeChains(List<String> chains, boolean recursive) throws Exception { long startTime = System.currentTimeMillis(); Exception exception = null; if (cfg.exists()) { userDir = new File(System.getProperty("user.dir")).getAbsolutePath(); System.setProperty...
class class_name[name] begin[{] method[removeChains, return_type[void], modifier[public], parameter[chains, recursive]] begin[{] local_variable[type[long], startTime] local_variable[type[Exception], exception] if[call[cfg.exists, parameter[]]] begin[{] as...
Keyword[public] Keyword[void] identifier[removeChains] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[chains] , Keyword[boolean] identifier[recursive] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[long] identifier[startTime] operator[=] identifier[System] op...
@Deprecated @RestrictedSince("1.651.2 / 2.TODO") @Restricted(NoExternalUse.class) public static boolean isAbsoluteUri(@Nonnull String uri) { int idx = uri.indexOf(':'); if (idx<0) return false; // no ':'. can't be absolute // #, ?, and / must not be before ':' return idx<...
class class_name[name] begin[{] method[isAbsoluteUri, return_type[type[boolean]], modifier[public static], parameter[uri]] begin[{] local_variable[type[int], idx] if[binary_operation[member[.idx], <, literal[0]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
annotation[@] identifier[Deprecated] annotation[@] identifier[RestrictedSince] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Restricted] operator[SEP] identifier[NoExternalUse] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[isAbsoluteUri] op...
public static StreamSpecifier tag(String key, String value) { checkValidKey(key); checkNotNull(value); return new StreamSpecifier("m:" + key + ":" + value); }
class class_name[name] begin[{] method[tag, return_type[type[StreamSpecifier]], modifier[public static], parameter[key, value]] begin[{] call[.checkValidKey, parameter[member[.key]]] call[.checkNotNull, parameter[member[.value]]] return[ClassCreator(arguments=[BinaryOper...
Keyword[public] Keyword[static] identifier[StreamSpecifier] identifier[tag] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { identifier[checkValidKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] identifier[checkNotNull] operator[SEP] identifie...
protected Collection<String> getIndexesAddingScripts() throws DBCleanException { Collection<String> scripts = new ArrayList<String>(); try { scripts.add(DBInitializerHelper.getObjectScript("JCR_IDX_" + itemTableSuffix + "_PARENT_FK ON " + itemTableName, multiDb, dialect, wsEnt...
class class_name[name] begin[{] method[getIndexesAddingScripts, return_type[type[Collection]], modifier[protected], parameter[]] begin[{] local_variable[type[Collection], scripts] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOp...
Keyword[protected] identifier[Collection] operator[<] identifier[String] operator[>] identifier[getIndexesAddingScripts] operator[SEP] operator[SEP] Keyword[throws] identifier[DBCleanException] { identifier[Collection] operator[<] identifier[String] operator[>] identifier[scripts] operator[=] Keyword[new] identi...
public java.lang.String getAppNameSetter() { java.lang.Object ref = appNameSetter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ...
class class_name[name] begin[{] method[getAppNameSetter, return_type[type[java]], modifier[public], parameter[]] begin[{] local_variable[type[java], ref] if[binary_operation[member[.ref], instanceof, type[java]]] begin[{] return[Cast(expression=MemberReference(member=ref, po...
Keyword[public] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[getAppNameSetter] operator[SEP] operator[SEP] { identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] identifier[appNameSetter_] operator[SEP] Keyword...
private void convertError(CharBuffer buf, int line) { String srcFilename = null; int destLine = 0; int srcLine = 0; int srcTailLine = Integer.MAX_VALUE; for (int i = 0; i < _lines.size(); i++) { Line map = (Line) _lines.get(i); if (map._dstLine <= line && line <= map.getLastDesti...
class class_name[name] begin[{] method[convertError, return_type[void], modifier[private], parameter[buf, line]] begin[{] local_variable[type[String], srcFilename] local_variable[type[int], destLine] local_variable[type[int], srcLine] local_variable[type[int], srcTailLine] ...
Keyword[private] Keyword[void] identifier[convertError] operator[SEP] identifier[CharBuffer] identifier[buf] , Keyword[int] identifier[line] operator[SEP] { identifier[String] identifier[srcFilename] operator[=] Other[null] operator[SEP] Keyword[int] identifier[destLine] operator[=] Other[0] operator[SEP] Keywo...
public static XslTransformer getTransformer(Source source) throws TransformerConfigurationException { if (source == null) { throw new IllegalArgumentException("source is null"); } XslTransformer transformer = new XslTransformer(); transformer.transformerImpl = transformerFactory.newTrans...
class class_name[name] begin[{] method[getTransformer, return_type[type[XslTransformer]], modifier[public static], parameter[source]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operator...
Keyword[public] Keyword[static] identifier[XslTransformer] identifier[getTransformer] operator[SEP] identifier[Source] identifier[source] operator[SEP] Keyword[throws] identifier[TransformerConfigurationException] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[SEP] { ...
protected static ObjectType createOBJEKT() { // create an example real estate ObjectType obj = FACTORY.createObjectType(); obj.setABSTELLPLATZ(RandomUtils.nextInt(0, 2) == 1); obj.setAUFANFRAGE(RandomUtils.nextInt(0, 2) == 1); obj.setAUFZUG(RandomUtils.nextInt(0, 2) == 1); ...
class class_name[name] begin[{] method[createOBJEKT, return_type[type[ObjectType]], modifier[static protected], parameter[]] begin[{] local_variable[type[ObjectType], obj] call[obj.setABSTELLPLATZ, parameter[binary_operation[call[RandomUtils.nextInt, parameter[literal[0], literal[2]]], ...
Keyword[protected] Keyword[static] identifier[ObjectType] identifier[createOBJEKT] operator[SEP] operator[SEP] { identifier[ObjectType] identifier[obj] operator[=] identifier[FACTORY] operator[SEP] identifier[createObjectType] operator[SEP] operator[SEP] operator[SEP] identifier[obj] operator[SEP] identifier[set...
@Override public INDArray get(INDArrayIndex... indexes) { sort(); if (indexes.length == 1 && indexes[0] instanceof NDArrayIndexAll || (indexes.length == 2 && (isRowVector() && indexes[0] instanceof PointIndex && indexes[0].offset() == 0 && indexes[1]...
class class_name[name] begin[{] method[get, return_type[type[INDArray]], modifier[public], parameter[indexes]] begin[{] call[.sort, parameter[]] if[binary_operation[binary_operation[binary_operation[member[indexes.length], ==, literal[1]], &&, binary_operation[member[.indexes], ...
annotation[@] identifier[Override] Keyword[public] identifier[INDArray] identifier[get] operator[SEP] identifier[INDArrayIndex] operator[...] identifier[indexes] operator[SEP] { identifier[sort] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[indexes] operator[SEP] identifier[lengt...
public Collection<? extends RepositoryResource> getAllResources(LicenseType licenseType, ResourceType type) throws RepositoryBackendException { Collection<? extends RepositoryResource> allResources = getAllResources(type); if (licenseT...
class class_name[name] begin[{] method[getAllResources, return_type[type[Collection]], modifier[public], parameter[licenseType, type]] begin[{] local_variable[type[Collection], allResources] if[binary_operation[member[.licenseType], !=, literal[null]]] begin[{] local_variabl...
Keyword[public] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[RepositoryResource] operator[>] identifier[getAllResources] operator[SEP] identifier[LicenseType] identifier[licenseType] , identifier[ResourceType] identifier[type] operator[SEP] Keyword[throws] identifier[RepositoryBackendExce...
static final int coupon16(final byte[] identifier) { final long[] hash = MurmurHash3.hash(identifier, SEED); final int hllIdx = (int) (((hash[0] >>> 1) % 1024) & TEN_BIT_MASK); //hash[0] for 10-bit address final int lz = Long.numberOfLeadingZeros(hash[1]); final int value = (lz > 62 ? 62 : lz) + 1; ...
class class_name[name] begin[{] method[coupon16, return_type[type[int]], modifier[final static], parameter[identifier]] begin[{] local_variable[type[long], hash] local_variable[type[int], hllIdx] local_variable[type[int], lz] local_variable[type[int], value] return[binar...
Keyword[static] Keyword[final] Keyword[int] identifier[coupon16] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[identifier] operator[SEP] { Keyword[final] Keyword[long] operator[SEP] operator[SEP] identifier[hash] operator[=] identifier[MurmurHash3] operator[SEP] identifier[has...
private void deleteDataset(String datasetId) throws IOException, InterruptedException { executeWithBackOff( client.datasets().delete(projectId, datasetId), String.format( "Error when trying to delete the temporary dataset %s in project %s. " + "Manual deletion may be required...
class class_name[name] begin[{] method[deleteDataset, return_type[void], modifier[private], parameter[datasetId]] begin[{] call[.executeWithBackOff, parameter[call[client.datasets, parameter[]], call[String.format, parameter[binary_operation[literal["Error when trying to delete the temporary da...
Keyword[private] Keyword[void] identifier[deleteDataset] operator[SEP] identifier[String] identifier[datasetId] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { identifier[executeWithBackOff] operator[SEP] identifier[client] operator[SEP] identifier[datasets] operator[S...
public static UserRegistry getUserRegistry(String realmName) throws WSSecurityException { try { WSSecurityService ss = wsSecurityServiceRef.getService(); if (ss == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, ...
class class_name[name] begin[{] method[getUserRegistry, return_type[type[UserRegistry]], modifier[public static], parameter[realmName]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=...
Keyword[public] Keyword[static] identifier[UserRegistry] identifier[getUserRegistry] operator[SEP] identifier[String] identifier[realmName] operator[SEP] Keyword[throws] identifier[WSSecurityException] { Keyword[try] { identifier[WSSecurityService] identifier[ss] operator[=] identifier[wsSecurityServi...
public static boolean isVoidType(Type type, VisitorState state) { if (type == null) { return false; } return type.getKind() == TypeKind.VOID || state.getTypes().isSameType(Suppliers.JAVA_LANG_VOID_TYPE.get(state), type); }
class class_name[name] begin[{] method[isVoidType, return_type[type[boolean]], modifier[public static], parameter[type, state]] begin[{] if[binary_operation[member[.type], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] return[bi...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isVoidType] operator[SEP] identifier[Type] identifier[type] , identifier[VisitorState] identifier[state] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] ope...
private void buildMetadataColumnMap(JsonArray array) { if (array != null) { for (JsonElement columnElement : array) { Schema schemaObj = gson.fromJson(columnElement, Schema.class); String columnName = schemaObj.getColumnName(); this.metadataColumnMap.put(columnName.toLowerCase(), schem...
class class_name[name] begin[{] method[buildMetadataColumnMap, return_type[void], modifier[private], parameter[array]] begin[{] if[binary_operation[member[.array], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotati...
Keyword[private] Keyword[void] identifier[buildMetadataColumnMap] operator[SEP] identifier[JsonArray] identifier[array] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[JsonElement] identifier[columnElement] oper...
@Override public VisitorResult visit(final WComponent comp) { // Check if root component should be included (if ignore then just continue) if (!includeRoot && comp == root) { return VisitorResult.CONTINUE; } boolean match = false; // Check inherited classes outer: for (Class<?> clazz = comp.getClass...
class class_name[name] begin[{] method[visit, return_type[type[VisitorResult]], modifier[public], parameter[comp]] begin[{] if[binary_operation[member[.includeRoot], &&, binary_operation[member[.comp], ==, member[.root]]]] begin[{] return[member[VisitorResult.CONTINUE]] else...
annotation[@] identifier[Override] Keyword[public] identifier[VisitorResult] identifier[visit] operator[SEP] Keyword[final] identifier[WComponent] identifier[comp] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[includeRoot] operator[&&] identifier[comp] operator[==] identifier[root] operator[SE...
@Nonnull public static <T> LTieByteFunctionBuilder<T> tieByteFunction(Consumer<LTieByteFunction<T>> consumer) { return new LTieByteFunctionBuilder(consumer); }
class class_name[name] begin[{] method[tieByteFunction, return_type[type[LTieByteFunctionBuilder]], modifier[public static], parameter[consumer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=consumer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, co...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[LTieByteFunctionBuilder] operator[<] identifier[T] operator[>] identifier[tieByteFunction] operator[SEP] identifier[Consumer] operator[<] identifier[LTieByteFunction] operator[<] identifier[T] operator[>] ...
public PutComplianceItemsRequest withItems(ComplianceItemEntry... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<ComplianceItemEntry>(items.length)); } for (ComplianceItemEntry ele : items) { this.items.add(ele); } r...
class class_name[name] begin[{] method[withItems, return_type[type[PutComplianceItemsRequest]], modifier[public], parameter[items]] begin[{] if[binary_operation[THIS[member[None.items]], ==, literal[null]]] begin[{] call[.setItems, parameter[ClassCreator(arguments=[Membe...
Keyword[public] identifier[PutComplianceItemsRequest] identifier[withItems] operator[SEP] identifier[ComplianceItemEntry] operator[...] identifier[items] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[items] operator[==] Other[null] operator[SEP] { identifier[setItems...
public TaskCompletionEvent[] getTaskCompletionEvents(int startFrom ) throws IOException { ensureState(JobState.RUNNING); return info.getTaskCompletionEvents(startFrom); }
class class_name[name] begin[{] method[getTaskCompletionEvents, return_type[type[TaskCompletionEvent]], modifier[public], parameter[startFrom]] begin[{] call[.ensureState, parameter[member[JobState.RUNNING]]] return[call[info.getTaskCompletionEvents, parameter[member[.startFrom]]]] ...
Keyword[public] identifier[TaskCompletionEvent] operator[SEP] operator[SEP] identifier[getTaskCompletionEvents] operator[SEP] Keyword[int] identifier[startFrom] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ensureState] operator[SEP] identifier[JobState] operator[SEP] identifier[RUNNING] ope...
public static Object _if(EvaluationContext ctx, Object logicalTest, @IntegerDefault(0) Object valueIfTrue, @BooleanDefault(false) Object valueIfFalse) { return Conversions.toBoolean(logicalTest, ctx) ? valueIfTrue : valueIfFalse; }
class class_name[name] begin[{] method[_if, return_type[type[Object]], modifier[public static], parameter[ctx, logicalTest, valueIfTrue, valueIfFalse]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=logicalTest, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] identifier[Object] identifier[_if] operator[SEP] identifier[EvaluationContext] identifier[ctx] , identifier[Object] identifier[logicalTest] , annotation[@] identifier[IntegerDefault] operator[SEP] Other[0] operator[SEP] identifier[Object] identifier[valueIfTrue] , annotation[@] identi...
public String getPercentageResult() { int total = 0; for (Status status : Status.values()) { total += this.statusCounter.getValueFor(status); } return Util.formatAsPercentage(this.statusCounter.getValueFor(Status.PASSED), total); }
class class_name[name] begin[{] method[getPercentageResult, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[int], total] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=t...
Keyword[public] identifier[String] identifier[getPercentageResult] operator[SEP] operator[SEP] { Keyword[int] identifier[total] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[Status] identifier[status] operator[:] identifier[Status] operator[SEP] identifier[values] operator[SEP] operat...
@Override @Path("/{package}/{asset}") @ApiOperation(value="Retrieve an asset, an asset package, or all the asset packages", response=PackageList.class) @ApiImplicitParams({ @ApiImplicitParam(name="discoveryUrls", paramType="query", dataType="array"), @ApiImplicitParam(name="branch", ...
class class_name[name] begin[{] method[get, return_type[type[JSONObject]], modifier[public], parameter[path, headers]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getAssetServices,...
annotation[@] identifier[Override] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[ApiOperation] operator[SEP] identifier[value] operator[=] literal[String] , identifier[response] operator[=] identifier[PackageList] operator[SEP] Keyword[class] operator[SEP] annotati...
public XObject getLocalVariable(int index, int frame) throws TransformerException { index += frame; XObject val = _stackFrames[index]; return val; }
class class_name[name] begin[{] method[getLocalVariable, return_type[type[XObject]], modifier[public], parameter[index, frame]] begin[{] assign[member[.index], member[.frame]] local_variable[type[XObject], val] return[member[.val]] end[}] END[}]
Keyword[public] identifier[XObject] identifier[getLocalVariable] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[frame] operator[SEP] Keyword[throws] identifier[TransformerException] { identifier[index] operator[+=] identifier[frame] operator[SEP] identifier[XObject] identifier[val] opera...
public static String escapeAttributeValue(String s) { s = cleanWS(s); s = replaceAll(s, BackSlashPtn, EscBackSlash); s = replaceAll(s, SemicolonPtn, EscSemicolon); s = replaceAll(s, RParenPtn, EscRParen); return s; }
class class_name[name] begin[{] method[escapeAttributeValue, return_type[type[String]], modifier[public static], parameter[s]] begin[{] assign[member[.s], call[.cleanWS, parameter[member[.s]]]] assign[member[.s], call[.replaceAll, parameter[member[.s], member[.BackSlashPtn], mem...
Keyword[public] Keyword[static] identifier[String] identifier[escapeAttributeValue] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[s] operator[=] identifier[cleanWS] operator[SEP] identifier[s] operator[SEP] operator[SEP] identifier[s] operator[=] identifier[replaceAll] operator[SEP] i...
public static long getMonthEndTime(final long time) { final Calendar end = Calendar.getInstance(); end.setTimeInMillis(getDayStartTime(time)); end.set(Calendar.DAY_OF_MONTH, end.getActualMaximum(Calendar.DAY_OF_MONTH)); end.set(Calendar.HOUR, 23); end.set(Calendar.MINUTE, 59); ...
class class_name[name] begin[{] method[getMonthEndTime, return_type[type[long]], modifier[public static], parameter[time]] begin[{] local_variable[type[Calendar], end] call[end.setTimeInMillis, parameter[call[.getDayStartTime, parameter[member[.time]]]]] call[end.set, pa...
Keyword[public] Keyword[static] Keyword[long] identifier[getMonthEndTime] operator[SEP] Keyword[final] Keyword[long] identifier[time] operator[SEP] { Keyword[final] identifier[Calendar] identifier[end] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP...
private void initialize(String scheme, String authority, String path) { try { this.uri = new URI(scheme, authority, normalizePath(path), null, null).normalize(); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[private], parameter[scheme, authority, path]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(memb...
Keyword[private] Keyword[void] identifier[initialize] operator[SEP] identifier[String] identifier[scheme] , identifier[String] identifier[authority] , identifier[String] identifier[path] operator[SEP] { Keyword[try] { Keyword[this] operator[SEP] identifier[uri] operator[=] Keyword[new] identifier[UR...
@Override public DetectSyntaxResult detectSyntax(DetectSyntaxRequest request) { request = beforeClientExecution(request); return executeDetectSyntax(request); }
class class_name[name] begin[{] method[detectSyntax, return_type[type[DetectSyntaxResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDetectSyntax, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[DetectSyntaxResult] identifier[detectSyntax] operator[SEP] identifier[DetectSyntaxRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S...
public static MarvinImage binaryToRgb(MarvinImage img) { MarvinImage resultImage = new MarvinImage(img.getWidth(), img.getHeight(), MarvinImage.COLOR_MODEL_RGB); for (int y = 0; y < img.getHeight(); y++) { for (int x = 0; x < img.getWidth(); x++) { if (img.getBinaryColor(x, ...
class class_name[name] begin[{] method[binaryToRgb, return_type[type[MarvinImage]], modifier[public static], parameter[img]] begin[{] local_variable[type[MarvinImage], resultImage] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[...
Keyword[public] Keyword[static] identifier[MarvinImage] identifier[binaryToRgb] operator[SEP] identifier[MarvinImage] identifier[img] operator[SEP] { identifier[MarvinImage] identifier[resultImage] operator[=] Keyword[new] identifier[MarvinImage] operator[SEP] identifier[img] operator[SEP] identifier[getWidth] o...
public static <T extends Enum<T> & Defaultable> PropertiesManager<T> newManager(File file, Class<T> keyType, Evaluator evaluator, ...
class class_name[name] begin[{] method[newManager, return_type[type[PropertiesManager]], modifier[public static], parameter[file, keyType, evaluator, executor, retrievers]] begin[{] local_variable[type[Translator], translator] return[ClassCreator(arguments=[MemberReference(member=file, postfix_...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Enum] operator[<] identifier[T] operator[>] operator[&] identifier[Defaultable] operator[>] identifier[PropertiesManager] operator[<] identifier[T] operator[>] identifier[newManager] operator[SEP] identifier[File] identifier[file] , ...
private List<Field> getAllFields(List<Field> fields, Class<?> clazz) { // TODO consider caching the results of this. checkNotNull(fields); checkNotNull(clazz); fields.addAll(Arrays.asList(clazz.getDeclaredFields())); if (clazz.getSuperclass() != null) { getAllFields(fields, clazz.getSupercla...
class class_name[name] begin[{] method[getAllFields, return_type[type[List]], modifier[private], parameter[fields, clazz]] begin[{] call[.checkNotNull, parameter[member[.fields]]] call[.checkNotNull, parameter[member[.clazz]]] call[fields.addAll, parameter[call[A...
Keyword[private] identifier[List] operator[<] identifier[Field] operator[>] identifier[getAllFields] operator[SEP] identifier[List] operator[<] identifier[Field] operator[>] identifier[fields] , identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[checkNotNull] oper...
@PostConstruct public void init() { jfxComboBox.focusedProperty().addListener((o, oldVal, newVal) -> { if (!newVal) { jfxComboBox.validate(); } }); ChangeListener<? super Boolean> comboBoxFocus = (o, oldVal, newVal) -> { if (!newVal) { ...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[]] begin[{] call[jfxComboBox.focusedProperty, parameter[]] local_variable[type[ChangeListener], comboBoxFocus] call[jfxEditableComboBox.focusedProperty, parameter[]] ...
annotation[@] identifier[PostConstruct] Keyword[public] Keyword[void] identifier[init] operator[SEP] operator[SEP] { identifier[jfxComboBox] operator[SEP] identifier[focusedProperty] operator[SEP] operator[SEP] operator[SEP] identifier[addListener] operator[SEP] operator[SEP] identifier[o] , identifier[oldVal] ...
public static boolean isHexNumber(String value) { final int index = (value.startsWith("-") ? 1 : 0); if (value.startsWith("0x", index) || value.startsWith("0X", index) || value.startsWith("#", index)) { try { Long.decode(value); } catch (NumberFormatException e) { return false; } return ...
class class_name[name] begin[{] method[isHexNumber, return_type[type[boolean]], modifier[public static], parameter[value]] begin[{] local_variable[type[int], index] if[binary_operation[binary_operation[call[value.startsWith, parameter[literal["0x"], member[.index]]], ||, call[value.star...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isHexNumber] operator[SEP] identifier[String] identifier[value] operator[SEP] { Keyword[final] Keyword[int] identifier[index] operator[=] operator[SEP] identifier[value] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] op...
public static RythmTemplate wrap(org.rythmengine.template.ITemplate template) { return (null == template) ? null : new RythmTemplate(template); }
class class_name[name] begin[{] method[wrap, return_type[type[RythmTemplate]], modifier[public static], parameter[template]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operandr=Member...
Keyword[public] Keyword[static] identifier[RythmTemplate] identifier[wrap] operator[SEP] identifier[org] operator[SEP] identifier[rythmengine] operator[SEP] identifier[template] operator[SEP] identifier[ITemplate] identifier[template] operator[SEP] { Keyword[return] operator[SEP] Other[null] operator[==] identif...
public static String getDeviceID() { return Settings.Secure.getString(QuickUtils.getContext().getContentResolver(), Settings.Secure.ANDROID_ID); }
class class_name[name] begin[{] method[getDeviceID, return_type[type[String]], modifier[public static], parameter[]] begin[{] return[call[Settings.Secure.getString, parameter[call[QuickUtils.getContext, parameter[]], member[Settings.Secure.ANDROID_ID]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getDeviceID] operator[SEP] operator[SEP] { Keyword[return] identifier[Settings] operator[SEP] identifier[Secure] operator[SEP] identifier[getString] operator[SEP] identifier[QuickUtils] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] ...
private int getChoosenTableIndex() { String tableName = cTables.getSelectedItem(); // System.out.println("in getChoosenTableIndex, selected Item is "+tableName); int index = getTableIndex(tableName); if (index >= 0) { // System.out.println("table found, index: " + index);...
class class_name[name] begin[{] method[getChoosenTableIndex, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[String], tableName] local_variable[type[int], index] if[binary_operation[member[.index], >=, literal[0]]] begin[{] return...
Keyword[private] Keyword[int] identifier[getChoosenTableIndex] operator[SEP] operator[SEP] { identifier[String] identifier[tableName] operator[=] identifier[cTables] operator[SEP] identifier[getSelectedItem] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[index] operator[=] identifier[getTableI...
private SQLExpression parseExpression(final SQLStatement sqlStatement) { String literals = lexerEngine.getCurrentToken().getLiterals(); final int beginPosition = lexerEngine.getCurrentToken().getEndPosition() - literals.length(); final SQLExpression expression = getExpression(literals, sqlStatem...
class class_name[name] begin[{] method[parseExpression, return_type[type[SQLExpression]], modifier[private], parameter[sqlStatement]] begin[{] local_variable[type[String], literals] local_variable[type[int], beginPosition] local_variable[type[SQLExpression], expression] ...
Keyword[private] identifier[SQLExpression] identifier[parseExpression] operator[SEP] Keyword[final] identifier[SQLStatement] identifier[sqlStatement] operator[SEP] { identifier[String] identifier[literals] operator[=] identifier[lexerEngine] operator[SEP] identifier[getCurrentToken] operator[SEP] operator[SEP] o...
public ResponseWrapper removeChatRoomMembers(long roomId, Members members) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(roomId > 0, "room id is invalid"); Preconditions.checkArgument(members != null, "members should not be empty"); return _httpClie...
class class_name[name] begin[{] method[removeChatRoomMembers, return_type[type[ResponseWrapper]], modifier[public], parameter[roomId, members]] begin[{] call[Preconditions.checkArgument, parameter[binary_operation[member[.roomId], >, literal[0]], literal["room id is invalid"]]] ...
Keyword[public] identifier[ResponseWrapper] identifier[removeChatRoomMembers] operator[SEP] Keyword[long] identifier[roomId] , identifier[Members] identifier[members] operator[SEP] Keyword[throws] identifier[APIConnectionException] , identifier[APIRequestException] { identifier[Preconditions] operator[SEP] ide...
@Override @SuppressWarnings("PMD.ReplaceHashtableWithMap") public Object doHandleRequest(MBeanServerExecutor serverManager, JmxSearchRequest request) throws MBeanException, IOException, NotChangedException { checkForModifiedSince(serverManager,request); Set<ObjectName> names = server...
class class_name[name] begin[{] method[doHandleRequest, return_type[type[Object]], modifier[public], parameter[serverManager, request]] begin[{] call[.checkForModifiedSince, parameter[member[.serverManager], member[.request]]] local_variable[type[Set], names] local_variable[type...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Object] identifier[doHandleRequest] operator[SEP] identifier[MBeanServerExecutor] identifier[serverManager] , identifier[JmxSearchRequest] identifier[request] operator[SE...