code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void setAttribute(ObjectName name, String attrName, String value) throws Exception { MBeanAttributeInfo info = getAttrInfo(name, attrName); if (info == null) { throw new IllegalArgumentException("Cannot find attribute named '" + attrName + "'"); } else { setAttribute(name, attrName, ClientUtils.strin...
class class_name[name] begin[{] method[setAttribute, return_type[void], modifier[public], parameter[name, attrName, value]] begin[{] local_variable[type[MBeanAttributeInfo], info] if[binary_operation[member[.info], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] Keyword[void] identifier[setAttribute] operator[SEP] identifier[ObjectName] identifier[name] , identifier[String] identifier[attrName] , identifier[String] identifier[value] operator[SEP] Keyword[throws] identifier[Exception] { identifier[MBeanAttributeInfo] identifier[info] operator[=] identif...
public Photos getClusterPhotos(String tag, String clusterId) throws JinxException { JinxUtils.validateParams(tag, clusterId); Map<String, String> params = new TreeMap<>(); params.put("method", "flickr.tags.getClusterPhotos"); params.put("tag", tag); params.put("cluster_id", clusterId); return ji...
class class_name[name] begin[{] method[getClusterPhotos, return_type[type[Photos]], modifier[public], parameter[tag, clusterId]] begin[{] call[JinxUtils.validateParams, parameter[member[.tag], member[.clusterId]]] local_variable[type[Map], params] call[params.put, parame...
Keyword[public] identifier[Photos] identifier[getClusterPhotos] operator[SEP] identifier[String] identifier[tag] , identifier[String] identifier[clusterId] operator[SEP] Keyword[throws] identifier[JinxException] { identifier[JinxUtils] operator[SEP] identifier[validateParams] operator[SEP] identifier[tag] , id...
private void sendAfterTextChanged(Editable text) { final List<TextWatcher> list = mExternalTextWatchers; final int count = list.size(); for (int i = 0; i < count; i++) { TextWatcher watcher = list.get(i); if (watcher != this) { watcher.afterTextChanged(tex...
class class_name[name] begin[{] method[sendAfterTextChanged, return_type[void], modifier[private], parameter[text]] begin[{] local_variable[type[List], list] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[]...
Keyword[private] Keyword[void] identifier[sendAfterTextChanged] operator[SEP] identifier[Editable] identifier[text] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[TextWatcher] operator[>] identifier[list] operator[=] identifier[mExternalTextWatchers] operator[SEP] Keyword[final] Keyword[i...
public void appendSpecTopic(final SpecTopic specTopic) { topics.add(specTopic); nodes.add(specTopic); if (specTopic.getParent() != null && specTopic.getParent() instanceof Level) { ((Level) specTopic.getParent()).removeSpecTopic(specTopic); } specTopic.setParent(this)...
class class_name[name] begin[{] method[appendSpecTopic, return_type[void], modifier[public], parameter[specTopic]] begin[{] call[topics.add, parameter[member[.specTopic]]] call[nodes.add, parameter[member[.specTopic]]] if[binary_operation[binary_operation[call[sp...
Keyword[public] Keyword[void] identifier[appendSpecTopic] operator[SEP] Keyword[final] identifier[SpecTopic] identifier[specTopic] operator[SEP] { identifier[topics] operator[SEP] identifier[add] operator[SEP] identifier[specTopic] operator[SEP] operator[SEP] identifier[nodes] operator[SEP] identifier[add] opera...
private void validate() { if (Strings.emptyToNull(random) == null) { random = Strings.emptyToNull(getProject().getProperty(SYSPROP_RANDOM_SEED())); } if (random == null) { throw new BuildException("Required attribute 'seed' must not be empty. Look at <junit4:pickseed>."); } lo...
class class_name[name] begin[{] method[validate, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[call[Strings.emptyToNull, parameter[member[.random]]], ==, literal[null]]] begin[{] assign[member[.random], call[Strings.emptyToNull, paramete...
Keyword[private] Keyword[void] identifier[validate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Strings] operator[SEP] identifier[emptyToNull] operator[SEP] identifier[random] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[random] operator[=] identifier[String...
private static void updateAssignmentData(final List<AssignmentData> assignmentList, final AssignmentData assignmentData) { for (final AssignmentData matchAssignmentData : assignmentList) { if (matchAssignmentData.getFromDate().equals(assignmentData.getFromDate()) && matchAssignmentData.getOrgCode().equals(ass...
class class_name[name] begin[{] method[updateAssignmentData, return_type[void], modifier[private static], parameter[assignmentList, assignmentData]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation...
Keyword[private] Keyword[static] Keyword[void] identifier[updateAssignmentData] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[AssignmentData] operator[>] identifier[assignmentList] , Keyword[final] identifier[AssignmentData] identifier[assignmentData] operator[SEP] { Keyword[for] operator...
public void logFinished(long finishTime, int finishedMaps, int finishedReduces, int failedMaps, int failedReduces, int killedMaps, int killedReduces, Counters mapCounters, Counters reduceCou...
class class_name[name] begin[{] method[logFinished, return_type[void], modifier[public], parameter[finishTime, finishedMaps, finishedReduces, failedMaps, failedReduces, killedMaps, killedReduces, mapCounters, reduceCounters, counters]] begin[{] if[member[.disableHistory]] begin[{] r...
Keyword[public] Keyword[void] identifier[logFinished] operator[SEP] Keyword[long] identifier[finishTime] , Keyword[int] identifier[finishedMaps] , Keyword[int] identifier[finishedReduces] , Keyword[int] identifier[failedMaps] , Keyword[int] identifier[failedReduces] , Keyword[int] identifier[killedMaps] , Keyword...
@Override public Set entrySet() { if (entrySet != null) { return entrySet; } entrySet = new AbstractSet() { @Override public int size() { return ReferenceMap.this.size(); } @Override public...
class class_name[name] begin[{] method[entrySet, return_type[type[Set]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.entrySet], !=, literal[null]]] begin[{] return[member[.entrySet]] else begin[{] None end[}] assign[member[.ent...
annotation[@] identifier[Override] Keyword[public] identifier[Set] identifier[entrySet] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[entrySet] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[entrySet] operator[SEP] } identifier[entrySet] operator...
@SuppressWarnings("unused") private static Observable<GroupedObservable<TypeAndNameKey, Map<String, Object>>> aggregateUsingFlattenedGroupBy(Observable<GroupedObservable<InstanceKey, Map<String, Object>>> stream) { Observable<Map<String, Object>> allData = stream.flatMap(instanceStream -> { retu...
class class_name[name] begin[{] method[aggregateUsingFlattenedGroupBy, return_type[type[Observable]], modifier[private static], parameter[stream]] begin[{] local_variable[type[Observable], allData] local_variable[type[Observable], byCommand] return[call[byCommand.map, parameter[LambdaEx...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] identifier[Observable] operator[<] identifier[GroupedObservable] operator[<] identifier[TypeAndNameKey] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] ...
public static String transform(InputStream xmlStream, boolean verbose) throws SAXException, IOException { if (logger.isLoggable(Level.FINER)) { logger.exiting(className, "transform(InputStream, boolean)"); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); ...
class class_name[name] begin[{] method[transform, return_type[type[String]], modifier[public static], parameter[xmlStream, verbose]] begin[{] if[call[logger.isLoggable, parameter[member[Level.FINER]]]] begin[{] call[logger.exiting, parameter[member[.className], literal["...
Keyword[public] Keyword[static] identifier[String] identifier[transform] operator[SEP] identifier[InputStream] identifier[xmlStream] , Keyword[boolean] identifier[verbose] operator[SEP] Keyword[throws] identifier[SAXException] , identifier[IOException] { Keyword[if] operator[SEP] identifier[logger] operator[SE...
private static byte[] digest(byte[] input, String algorithm, byte[] salt, int iterations) { try { MessageDigest digest = MessageDigest.getInstance(algorithm); if (salt != null) { digest.update(salt); } byte[] result = digest.digest(input); ...
class class_name[name] begin[{] method[digest, return_type[type[byte]], modifier[private static], parameter[input, algorithm, salt, iterations]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[M...
Keyword[private] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[digest] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[input] , identifier[String] identifier[algorithm] , Keyword[byte] operator[SEP] operator[SEP] identifier[salt] , Keyword[int] identifier[iterations] operato...
public void marshall(CreateServerRequest createServerRequest, ProtocolMarshaller protocolMarshaller) { if (createServerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createServerRequest.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[createServerRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.createServerRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateServerRequest] identifier[createServerRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[createServerRequest] operator[==] Other[null] operator[SEP] { ...
private void endCollectionLoad( final ResultSet resultSetId, final SharedSessionContractImplementor session, final CollectionPersister collectionPersister) { //this is a query and we are loading multiple instances of the same collection role session.getPersistenceContext() .getLoadContexts() .getCo...
class class_name[name] begin[{] method[endCollectionLoad, return_type[void], modifier[private], parameter[resultSetId, session, collectionPersister]] begin[{] call[session.getPersistenceContext, parameter[]] end[}] END[}]
Keyword[private] Keyword[void] identifier[endCollectionLoad] operator[SEP] Keyword[final] identifier[ResultSet] identifier[resultSetId] , Keyword[final] identifier[SharedSessionContractImplementor] identifier[session] , Keyword[final] identifier[CollectionPersister] identifier[collectionPersister] operator[SEP] { ...
public void marshall(UpdateApiKeyRequest updateApiKeyRequest, ProtocolMarshaller protocolMarshaller) { if (updateApiKeyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateApiKeyRequest.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateApiKeyRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateApiKeyRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateApiKeyRequest] identifier[updateApiKeyRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateApiKeyRequest] operator[==] Other[null] operator[SEP] { ...
@SuppressWarnings("unused") // called through reflection by RequestServer public ModelMetricsListSchemaV3 delete(int version, ModelMetricsListSchemaV3 s) { ModelMetricsList m = s.createAndFillImpl(); s.fillFromImpl(m.delete()); return s; }
class class_name[name] begin[{] method[delete, return_type[type[ModelMetricsListSchemaV3]], modifier[public], parameter[version, s]] begin[{] local_variable[type[ModelMetricsList], m] call[s.fillFromImpl, parameter[call[m.delete, parameter[]]]] return[member[.s]] end[}] END[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[ModelMetricsListSchemaV3] identifier[delete] operator[SEP] Keyword[int] identifier[version] , identifier[ModelMetricsListSchemaV3] identifier[s] operator[SEP] { identifier[ModelMetricsList] identifi...
private static void trustAllHosts() { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { @Override public java.security.cert.X509Certificate[] getAcceptedIssuers() { ...
class class_name[name] begin[{] method[trustAllHosts, return_type[void], modifier[private static], parameter[]] begin[{] local_variable[type[TrustManager], trustAllCerts] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Meth...
Keyword[private] Keyword[static] Keyword[void] identifier[trustAllHosts] operator[SEP] operator[SEP] { identifier[TrustManager] operator[SEP] operator[SEP] identifier[trustAllCerts] operator[=] Keyword[new] identifier[TrustManager] operator[SEP] operator[SEP] { Keyword[new] identifier[X509TrustManager...
public static <T> T max(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure) { int params = closure.getMaximumNumberOfParameters(); if (params != 1) { return max(self, new ClosureComparator<T>(closure)); } boolean first = true; T answer...
class class_name[name] begin[{] method[max, return_type[type[T]], modifier[public static], parameter[self, closure]] begin[{] local_variable[type[int], params] if[binary_operation[member[.params], !=, literal[1]]] begin[{] return[call[.max, parameter[member[.self], ClassCrea...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[max] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[self] , annotation[@] identifier[ClosureParams] operator[SEP] identifier[FirstParam] operator[SEP] identifier[FirstGenericType] operato...
public String getLastPathSegment() { if (StringUtils.isBlank(path)) { return StringUtils.EMPTY; } String segment = path; segment = StringUtils.substringAfterLast(segment, "/"); return segment; }
class class_name[name] begin[{] method[getLastPathSegment, return_type[type[String]], modifier[public], parameter[]] begin[{] if[call[StringUtils.isBlank, parameter[member[.path]]]] begin[{] return[member[StringUtils.EMPTY]] else begin[{] None end[}] local_va...
Keyword[public] identifier[String] identifier[getLastPathSegment] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] identifier[path] operator[SEP] operator[SEP] { Keyword[return] identifier[StringUtils] operator[SEP] identif...
@SuppressWarnings("unchecked") public Collection<ProfileEntity> getProfilesByDynamicQuery( String profileTable, QueryExpression expr) throws UnrecognizedAttributeException, AttributeTypeMismatchException { // TODO check for exceptions QueryWrapper wQuery = JPAQueryBuilder.parseDynamicQuery(expr); Ent...
class class_name[name] begin[{] method[getProfilesByDynamicQuery, return_type[type[Collection]], modifier[public], parameter[profileTable, expr]] begin[{] local_variable[type[QueryWrapper], wQuery] local_variable[type[EntityManager], em] local_variable[type[Query], dynamicQuery] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Collection] operator[<] identifier[ProfileEntity] operator[>] identifier[getProfilesByDynamicQuery] operator[SEP] identifier[String] identifier[profileTable] , identifier[QueryExpression] identifier[expr] ...
public static <T> TtlCallable<T> get(Callable<T> callable) { return get(callable, false); }
class class_name[name] begin[{] method[get, return_type[type[TtlCallable]], modifier[public static], parameter[callable]] begin[{] return[call[.get, parameter[member[.callable], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[TtlCallable] operator[<] identifier[T] operator[>] identifier[get] operator[SEP] identifier[Callable] operator[<] identifier[T] operator[>] identifier[callable] operator[SEP] { Keyword[return] identifier[get] operator[SEP] identifie...
private static int getBlockIdInFile(DistributedFileSystem srcFs, Path srcPath, long blockId) throws IOException { FileStatus srcStat = srcFs.getFileStatus(srcPath); LocatedBlocks lbs = srcFs.getClient().getLocatedBlocks(srcPath.toUri().getPath(), 0, srcStat.getLen()); int i ...
class class_name[name] begin[{] method[getBlockIdInFile, return_type[type[int]], modifier[private static], parameter[srcFs, srcPath, blockId]] begin[{] local_variable[type[FileStatus], srcStat] local_variable[type[LocatedBlocks], lbs] local_variable[type[int], i] call[LO...
Keyword[private] Keyword[static] Keyword[int] identifier[getBlockIdInFile] operator[SEP] identifier[DistributedFileSystem] identifier[srcFs] , identifier[Path] identifier[srcPath] , Keyword[long] identifier[blockId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[FileStatus] identifier[srcSt...
@Override public java.util.concurrent.Future<CancelImportTaskResult> cancelImportTaskAsync( com.amazonaws.handlers.AsyncHandler<CancelImportTaskRequest, CancelImportTaskResult> asyncHandler) { return cancelImportTaskAsync(new CancelImportTaskRequest(), asyncHandler); }
class class_name[name] begin[{] method[cancelImportTaskAsync, return_type[type[java]], modifier[public], parameter[asyncHandler]] begin[{] return[call[.cancelImportTaskAsync, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Future] operator[<] identifier[CancelImportTaskResult] operator[>] identifier[cancelImportTaskAsync] operator[SEP] identifier[com] operator[SEP] identifier[ama...
public static void collectStats(final StatsCollector collector) { collector.record("http.latency", graphlatency, "type=graph"); collector.record("http.latency", gnuplotlatency, "type=gnuplot"); collector.record("http.graph.requests", graphs_diskcache_hit, "cache=disk"); collector.record("http.graph.requ...
class class_name[name] begin[{] method[collectStats, return_type[void], modifier[public static], parameter[collector]] begin[{] call[collector.record, parameter[literal["http.latency"], member[.graphlatency], literal["type=graph"]]] call[collector.record, parameter[literal["http...
Keyword[public] Keyword[static] Keyword[void] identifier[collectStats] operator[SEP] Keyword[final] identifier[StatsCollector] identifier[collector] operator[SEP] { identifier[collector] operator[SEP] identifier[record] operator[SEP] literal[String] , identifier[graphlatency] , literal[String] operator[SEP] op...
public final hqlParser.inCollectionDeclaration_return inCollectionDeclaration() throws RecognitionException { hqlParser.inCollectionDeclaration_return retval = new hqlParser.inCollectionDeclaration_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token IN99=null; Token OPEN100=null; Token C...
class class_name[name] begin[{] method[inCollectionDeclaration, return_type[type[hqlParser]], modifier[final public], parameter[]] begin[{] local_variable[type[hqlParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[CommonTree]...
Keyword[public] Keyword[final] identifier[hqlParser] operator[SEP] identifier[inCollectionDeclaration_return] identifier[inCollectionDeclaration] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[hqlParser] operator[SEP] identifier[inCollectionDeclaration_return] identifie...
@Override public JdbcDatabaseDescriptor dbByName(final String dbName) { Collection<H2DatabaseWorking> select = CollectionUtils.select(dbsw, new Predicate<H2DatabaseWorking>() { @Override public boolean evaluate(H2DatabaseWorking db) { return dbName.equals( db.getName() ); } }); if(CollectionUtils....
class class_name[name] begin[{] method[dbByName, return_type[type[JdbcDatabaseDescriptor]], modifier[public], parameter[dbName]] begin[{] local_variable[type[Collection], select] if[binary_operation[call[CollectionUtils.size, parameter[member[.select]]], ==, literal[0]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[JdbcDatabaseDescriptor] identifier[dbByName] operator[SEP] Keyword[final] identifier[String] identifier[dbName] operator[SEP] { identifier[Collection] operator[<] identifier[H2DatabaseWorking] operator[>] identifier[select] operator[=] identifier[Coll...
public String toStringPermissive() { LocalDateTime dateTime = getDateTimePermissive(); String text = (dateTime == null) ? "" : dateTime.toString(); return text; }
class class_name[name] begin[{] method[toStringPermissive, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[LocalDateTime], dateTime] local_variable[type[String], text] return[member[.text]] end[}] END[}]
Keyword[public] identifier[String] identifier[toStringPermissive] operator[SEP] operator[SEP] { identifier[LocalDateTime] identifier[dateTime] operator[=] identifier[getDateTimePermissive] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[text] operator[=] operator[SEP] identifier[dateTime]...
@Override public synchronized ChainData updateChain(String chainName, String[] newChannelList) throws ChannelException, ChainException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "updateChain: " + chainName); } if (null == chainName) { ...
class class_name[name] begin[{] method[updateChain, return_type[type[ChainData]], modifier[synchronized public], parameter[chainName, newChannelList]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] identifier[ChainData] identifier[updateChain] operator[SEP] identifier[String] identifier[chainName] , identifier[String] operator[SEP] operator[SEP] identifier[newChannelList] operator[SEP] Keyword[throws] identifier[ChannelException] , identif...
public ServiceFuture<BlobServicePropertiesInner> getServicePropertiesAsync(String resourceGroupName, String accountName, final ServiceCallback<BlobServicePropertiesInner> serviceCallback) { return ServiceFuture.fromResponse(getServicePropertiesWithServiceResponseAsync(resourceGroupName, accountName), serviceCal...
class class_name[name] begin[{] method[getServicePropertiesAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, accountName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.getServicePropertiesWithServiceResponseAsync, parameter[memb...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[BlobServicePropertiesInner] operator[>] identifier[getServicePropertiesAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , Keyword[final] identifier[ServiceCallback] operator[<] identifier...
@SuppressWarnings("unchecked") public static ThriftMetaData fromThriftClass(Class<?> thriftClass) { if (thriftClass != null && TBase.class.isAssignableFrom(thriftClass)) { Class<? extends TBase<?, ?>> tClass = (Class<? extends TBase<?, ?>>) thriftClass; StructType descriptor = new ThriftSchemaConverte...
class class_name[name] begin[{] method[fromThriftClass, return_type[type[ThriftMetaData]], modifier[public static], parameter[thriftClass]] begin[{] if[binary_operation[binary_operation[member[.thriftClass], !=, literal[null]], &&, ClassReference(postfix_operators=[], prefix_operators=[], quali...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[ThriftMetaData] identifier[fromThriftClass] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[thriftClass] operator[SEP] { Keyword[if] operator[SEP] ident...
public void setMinGain (float gain) { if (_minGain != gain) { AL10.alSourcef(_id, AL10.AL_MIN_GAIN, _minGain = gain); } }
class class_name[name] begin[{] method[setMinGain, return_type[void], modifier[public], parameter[gain]] begin[{] if[binary_operation[member[._minGain], !=, member[.gain]]] begin[{] call[AL10.alSourcef, parameter[member[._id], member[AL10.AL_MIN_GAIN], assign[member[._mi...
Keyword[public] Keyword[void] identifier[setMinGain] operator[SEP] Keyword[float] identifier[gain] operator[SEP] { Keyword[if] operator[SEP] identifier[_minGain] operator[!=] identifier[gain] operator[SEP] { identifier[AL10] operator[SEP] identifier[alSourcef] operator[SEP] identifier[_id] , identifi...
@Override public CommercePriceList findByPrimaryKey(Serializable primaryKey) throws NoSuchPriceListException { CommercePriceList commercePriceList = fetchByPrimaryKey(primaryKey); if (commercePriceList == null) { if (_log.isDebugEnabled()) { _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); }...
class class_name[name] begin[{] method[findByPrimaryKey, return_type[type[CommercePriceList]], modifier[public], parameter[primaryKey]] begin[{] local_variable[type[CommercePriceList], commercePriceList] if[binary_operation[member[.commercePriceList], ==, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceList] identifier[findByPrimaryKey] operator[SEP] identifier[Serializable] identifier[primaryKey] operator[SEP] Keyword[throws] identifier[NoSuchPriceListException] { identifier[CommercePriceList] identifier[commercePriceList] operator[=] ...
@Override public boolean isValid() { boolean mustNotCache = has("Pragma", "no-cache", this.response) || has("Cache-Control", "no-cache", this.response); if (mustNotCache) return false; Date now = new Date(); Date cacheControl = getCacheControlExpiresDate(); Date expires = getExpiresDate(); re...
class class_name[name] begin[{] method[isValid, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], mustNotCache] if[member[.mustNotCache]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isValid] operator[SEP] operator[SEP] { Keyword[boolean] identifier[mustNotCache] operator[=] identifier[has] operator[SEP] literal[String] , literal[String] , Keyword[this] operator[SEP] identifier[response] operator[SEP] operator[|...
final void attachShapeToColorMap(final Shape<?> shape) { if (null != shape) { String color = shape.getColorKey(); if (null != color) { m_shape_color_map.remove(color); shape.setColorKey(null); } int count =...
class class_name[name] begin[{] method[attachShapeToColorMap, return_type[void], modifier[final], parameter[shape]] begin[{] if[binary_operation[literal[null], !=, member[.shape]]] begin[{] local_variable[type[String], color] if[binary_operation[literal[null]...
Keyword[final] Keyword[void] identifier[attachShapeToColorMap] operator[SEP] Keyword[final] identifier[Shape] operator[<] operator[?] operator[>] identifier[shape] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[shape] operator[SEP] { identifier[String] identifier[color] ...
public void setCheckid(boolean checkid) { properties.put(RngProperty.CHECK_ID_IDREF, checkid ? Flag.PRESENT : null); }
class class_name[name] begin[{] method[setCheckid, return_type[void], modifier[public], parameter[checkid]] begin[{] call[properties.put, parameter[member[RngProperty.CHECK_ID_IDREF], TernaryExpression(condition=MemberReference(member=checkid, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[void] identifier[setCheckid] operator[SEP] Keyword[boolean] identifier[checkid] operator[SEP] { identifier[properties] operator[SEP] identifier[put] operator[SEP] identifier[RngProperty] operator[SEP] identifier[CHECK_ID_IDREF] , identifier[checkid] operator[?] identifier[Flag] operator[...
public static String getTreeRendererClassName() { if (defaultTreeRendererClassName == null) { JspTagConfig tagConfig = ConfigUtil.getConfig().getJspTagConfig(); if (tagConfig != null) { // the schema config includes a default value so we shouldn't // g...
class class_name[name] begin[{] method[getTreeRendererClassName, return_type[type[String]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.defaultTreeRendererClassName], ==, literal[null]]] begin[{] local_variable[type[JspTagConfig], tagConfig] ...
Keyword[public] Keyword[static] identifier[String] identifier[getTreeRendererClassName] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[defaultTreeRendererClassName] operator[==] Other[null] operator[SEP] { identifier[JspTagConfig] identifier[tagConfig] operator[=] identifier[Config...
public Map<Prop.Names, String> getProps(Prop.Names[] props) throws CommandExecutionException { Prop prop = new Prop(props); return prop.parseResponse(sendToArray("get_prop", prop.getRequestArray())); }
class class_name[name] begin[{] method[getProps, return_type[type[Map]], modifier[public], parameter[props]] begin[{] local_variable[type[Prop], prop] return[call[prop.parseResponse, parameter[call[.sendToArray, parameter[literal["get_prop"], call[prop.getRequestArray, parameter[]]]]]]] end...
Keyword[public] identifier[Map] operator[<] identifier[Prop] operator[SEP] identifier[Names] , identifier[String] operator[>] identifier[getProps] operator[SEP] identifier[Prop] operator[SEP] identifier[Names] operator[SEP] operator[SEP] identifier[props] operator[SEP] Keyword[throws] identifier[CommandExecutionExcept...
public static String[] getXlsxWorksheets(File file) throws IOException { XlsxWorkbook workbook = XlsxWorkbook.getWorkbook(file); String[] sheets = workbook.getSheetNames(); workbook.close(); return sheets; }
class class_name[name] begin[{] method[getXlsxWorksheets, return_type[type[String]], modifier[public static], parameter[file]] begin[{] local_variable[type[XlsxWorkbook], workbook] local_variable[type[String], sheets] call[workbook.close, parameter[]] return[member[.shee...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[getXlsxWorksheets] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { identifier[XlsxWorkbook] identifier[workbook] operator[=] identifier[XlsxWorkbook] operator[SEP] ide...
private boolean canScrollInAllDirection() { return mTransformedImageBounds.left < mViewBounds.left - EPS && mTransformedImageBounds.top < mViewBounds.top - EPS && mTransformedImageBounds.right > mViewBounds.right + EPS && mTransformedImageBounds.bottom > mViewBounds.bottom + EPS; }
class class_name[name] begin[{] method[canScrollInAllDirection, return_type[type[boolean]], modifier[private], parameter[]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[member[mTransformedImageBounds.left], <, binary_operation[member[mViewBounds.left], -, member[....
Keyword[private] Keyword[boolean] identifier[canScrollInAllDirection] operator[SEP] operator[SEP] { Keyword[return] identifier[mTransformedImageBounds] operator[SEP] identifier[left] operator[<] identifier[mViewBounds] operator[SEP] identifier[left] operator[-] identifier[EPS] operator[&&] identifier[mTransforme...
@Override public Client cookie(Cookie cookie) { possiblyAddHeader(HttpHeaders.COOKIE, cookie.toString()); return this; }
class class_name[name] begin[{] method[cookie, return_type[type[Client]], modifier[public], parameter[cookie]] begin[{] call[.possiblyAddHeader, parameter[member[HttpHeaders.COOKIE], call[cookie.toString, parameter[]]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Client] identifier[cookie] operator[SEP] identifier[Cookie] identifier[cookie] operator[SEP] { identifier[possiblyAddHeader] operator[SEP] identifier[HttpHeaders] operator[SEP] identifier[COOKIE] , identifier[cookie] operator[SEP] identifier[toString...
private Object fulfill(Object e) { boolean isData = e != null; final PaddedAtomicReference<QNode> head = this.head; final PaddedAtomicReference<QNode> tail = this.tail; for (;;) { QNode t = tail.get(); QNode h = head.get(); if (t != null && (t == h || t.isData == isData)) { Q...
class class_name[name] begin[{] method[fulfill, return_type[type[Object]], modifier[private], parameter[e]] begin[{] local_variable[type[boolean], isData] local_variable[type[PaddedAtomicReference], head] local_variable[type[PaddedAtomicReference], tail] ForStatement(body=BlockS...
Keyword[private] identifier[Object] identifier[fulfill] operator[SEP] identifier[Object] identifier[e] operator[SEP] { Keyword[boolean] identifier[isData] operator[=] identifier[e] operator[!=] Other[null] operator[SEP] Keyword[final] identifier[PaddedAtomicReference] operator[<] identifier[QNode] operator[>] id...
public Set<Group> findGroups(final User user, final boolean inheritOnly) { final Set<Group> result = new HashSet<Group>(); List<Group> stack; // Recursively find user groups for(final Group group : this.getRootGroups()) { stack = new ArrayList<Group>(); ...
class class_name[name] begin[{] method[findGroups, return_type[type[Set]], modifier[public], parameter[user, inheritOnly]] begin[{] local_variable[type[Set], result] local_variable[type[List], stack] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression...
Keyword[public] identifier[Set] operator[<] identifier[Group] operator[>] identifier[findGroups] operator[SEP] Keyword[final] identifier[User] identifier[user] , Keyword[final] Keyword[boolean] identifier[inheritOnly] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[Group] operator[>] ident...
@TimerJ public CatalogMetadataBuilder withTables(TableMetadata... tableMetadataList) { for (TableMetadata tableMetadata : tableMetadataList) { tables.put(tableMetadata.getName(), tableMetadata); } return this; }
class class_name[name] begin[{] method[withTables, return_type[type[CatalogMetadataBuilder]], modifier[public], parameter[tableMetadataList]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], membe...
annotation[@] identifier[TimerJ] Keyword[public] identifier[CatalogMetadataBuilder] identifier[withTables] operator[SEP] identifier[TableMetadata] operator[...] identifier[tableMetadataList] operator[SEP] { Keyword[for] operator[SEP] identifier[TableMetadata] identifier[tableMetadata] operator[:] identifier[tab...
private void postDelete(User user) throws Exception { for (UserEventListener listener : listeners) { listener.postDelete(user); } }
class class_name[name] begin[{] method[postDelete, return_type[void], modifier[private], parameter[user]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=user, postfix_operators=[], prefix_operators=[], ...
Keyword[private] Keyword[void] identifier[postDelete] operator[SEP] identifier[User] identifier[user] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[for] operator[SEP] identifier[UserEventListener] identifier[listener] operator[:] identifier[listeners] operator[SEP] { identifier[listen...
public void create(final DataMatrix matrix) { Assert.assertNotNull(matrix); transactionTemplate.execute(new TransactionCallbackWithoutResult() { protected void doInTransactionWithoutResult(TransactionStatus status) { try { DataMatrixDO matrixlDO = modelT...
class class_name[name] begin[{] method[create, return_type[void], modifier[public], parameter[matrix]] begin[{] call[Assert.assertNotNull, parameter[member[.matrix]]] call[transactionTemplate.execute, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], b...
Keyword[public] Keyword[void] identifier[create] operator[SEP] Keyword[final] identifier[DataMatrix] identifier[matrix] operator[SEP] { identifier[Assert] operator[SEP] identifier[assertNotNull] operator[SEP] identifier[matrix] operator[SEP] operator[SEP] identifier[transactionTemplate] operator[SEP] identifier[...
@Indexable(type = IndexableType.DELETE) @Override public CommerceOrder deleteCommerceOrder(CommerceOrder commerceOrder) throws PortalException { return commerceOrderPersistence.remove(commerceOrder); }
class class_name[name] begin[{] method[deleteCommerceOrder, return_type[type[CommerceOrder]], modifier[public], parameter[commerceOrder]] begin[{] return[call[commerceOrderPersistence.remove, parameter[member[.commerceOrder]]]] end[}] END[}]
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[DELETE] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceOrder] identifier[deleteCommerceOrder] operator[SEP] identifier[CommerceOrder] identifier[commerce...
public final BaseDescr andExpression() throws RecognitionException { BaseDescr result = null; BaseDescr left =null; BaseDescr right =null; try { // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:273:3: (left= equalityExpression ( AMPER right= equalityExpression )* ) // src/main/resources...
class class_name[name] begin[{] method[andExpression, return_type[type[BaseDescr]], modifier[final public], parameter[]] begin[{] local_variable[type[BaseDescr], result] local_variable[type[BaseDescr], left] local_variable[type[BaseDescr], right] TryStatement(block=[BlockStateme...
Keyword[public] Keyword[final] identifier[BaseDescr] identifier[andExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[BaseDescr] identifier[result] operator[=] Other[null] operator[SEP] identifier[BaseDescr] identifier[left] operator[=] Other[null] operator[SEP]...
@Override public void initialize() throws Exception { if (rar != null) { for (XAResource xar : rar.getXAResources(new ActivationSpec[] {as})) { // Trigger a recovery pass xar.recover(XAResource.TMSTARTRSCAN); xar.recover(XAResource.TMENDRSCAN); ...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.rar], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argum...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[rar] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[XAResource] identifier[xa...
public static long syncCurrentTime() throws Exception { // The time protocol sets the epoch at 1900, // the java Date class at 1970. This number // converts between them. long differenceBetweenEpochs = 2208988800L; // If you'd rather not use the magic number uncomment //...
class class_name[name] begin[{] method[syncCurrentTime, return_type[type[long]], modifier[public static], parameter[]] begin[{] local_variable[type[long], differenceBetweenEpochs] local_variable[type[InputStream], raw] local_variable[type[Socket], theSocket] TryStatement(block=[...
Keyword[public] Keyword[static] Keyword[long] identifier[syncCurrentTime] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[long] identifier[differenceBetweenEpochs] operator[=] Other[2208988800L] operator[SEP] identifier[InputStream] identifier[raw] operator[=] Other[null] operator[SEP...
@Override public AbstractIoBufferEx limit(int newLimit) { autoExpand(newLimit, 0); buf().limit(newLimit); if (mark > newLimit) { mark = -1; } return this; }
class class_name[name] begin[{] method[limit, return_type[type[AbstractIoBufferEx]], modifier[public], parameter[newLimit]] begin[{] call[.autoExpand, parameter[member[.newLimit], literal[0]]] call[.buf, parameter[]] if[binary_operation[member[.mark], >, member[....
annotation[@] identifier[Override] Keyword[public] identifier[AbstractIoBufferEx] identifier[limit] operator[SEP] Keyword[int] identifier[newLimit] operator[SEP] { identifier[autoExpand] operator[SEP] identifier[newLimit] , Other[0] operator[SEP] operator[SEP] identifier[buf] operator[SEP] operator[SEP] operato...
public void removeMessageListener(Class<? extends Message> messageClass, MessageListener<Message> messageListener) { removeMessageListener(messageListener.getChannelIdentifier(), messageClass, messageListener); }
class class_name[name] begin[{] method[removeMessageListener, return_type[void], modifier[public], parameter[messageClass, messageListener]] begin[{] call[.removeMessageListener, parameter[call[messageListener.getChannelIdentifier, parameter[]], member[.messageClass], member[.messageListener]]]...
Keyword[public] Keyword[void] identifier[removeMessageListener] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Message] operator[>] identifier[messageClass] , identifier[MessageListener] operator[<] identifier[Message] operator[>] identifier[messageListener] operator[SEP] { ...
public OutputStream decorateLogger(Run build, OutputStream logger) throws IOException, InterruptedException { // this implementation is backward compatibility thunk in case subtypes only override the // old signature (AbstractBuild,OutputStream) if (build instanceof AbstractBuild) { ...
class class_name[name] begin[{] method[decorateLogger, return_type[type[OutputStream]], modifier[public], parameter[build, logger]] begin[{] if[binary_operation[member[.build], instanceof, type[AbstractBuild]]] begin[{] return[call[.decorateLogger, parameter[Cast(expression=MemberRe...
Keyword[public] identifier[OutputStream] identifier[decorateLogger] operator[SEP] identifier[Run] identifier[build] , identifier[OutputStream] identifier[logger] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[build] Keyword[instan...
public Task moveVirtualDisk_Task(String sourceName, Datacenter sourceDatacenter, String destName, Datacenter destDatacenter, Boolean force) throws FileFault, RuntimeFault, RemoteException { return moveVirtualDisk_Task(sourceName, sourceDatacenter, destName, destDatacenter, force, null); }
class class_name[name] begin[{] method[moveVirtualDisk_Task, return_type[type[Task]], modifier[public], parameter[sourceName, sourceDatacenter, destName, destDatacenter, force]] begin[{] return[call[.moveVirtualDisk_Task, parameter[member[.sourceName], member[.sourceDatacenter], member[.destName], memb...
Keyword[public] identifier[Task] identifier[moveVirtualDisk_Task] operator[SEP] identifier[String] identifier[sourceName] , identifier[Datacenter] identifier[sourceDatacenter] , identifier[String] identifier[destName] , identifier[Datacenter] identifier[destDatacenter] , identifier[Boolean] identifier[force] operat...
public SourceMap toJSON() { SourceMap map = new SourceMap(); map.version = this._version; map.sources = this._sources.toArray(); map.names = this._names.toArray(); map.mappings = serializeMappings(); map.file = this._file; map.sourceRoot = this._sourceRoot; ...
class class_name[name] begin[{] method[toJSON, return_type[type[SourceMap]], modifier[public], parameter[]] begin[{] local_variable[type[SourceMap], map] assign[member[map.version], THIS[member[None._version]]] assign[member[map.sources], THIS[member[None._sources]call[N...
Keyword[public] identifier[SourceMap] identifier[toJSON] operator[SEP] operator[SEP] { identifier[SourceMap] identifier[map] operator[=] Keyword[new] identifier[SourceMap] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[version] operator[=] Keyword[this] operator[SEP] identifie...
public List<List<IBond>> getMatchingPharmacophoreBonds() { if (mappings == null) return null; // XXX: re-subsearching the query List<List<IBond>> bonds = new ArrayList<>(); for (Map<IBond,IBond> map : mappings.toBondMap()) { bonds.add(new ArrayList<>(map.values())); ...
class class_name[name] begin[{] method[getMatchingPharmacophoreBonds, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.mappings], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[...
Keyword[public] identifier[List] operator[<] identifier[List] operator[<] identifier[IBond] operator[>] operator[>] identifier[getMatchingPharmacophoreBonds] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mappings] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SE...
public final static Function<Integer, Integer> divideBy(Number divisor, MathContext mathContext) { return new Divide(fromNumber(divisor), mathContext); }
class class_name[name] begin[{] method[divideBy, return_type[type[Function]], modifier[final public static], parameter[divisor, mathContext]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=divisor, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[final] Keyword[static] identifier[Function] operator[<] identifier[Integer] , identifier[Integer] operator[>] identifier[divideBy] operator[SEP] identifier[Number] identifier[divisor] , identifier[MathContext] identifier[mathContext] operator[SEP] { Keyword[return] Keyword[new] identifi...
public DescribeVpcEndpointsRequest withVpcEndpointIds(String... vpcEndpointIds) { if (this.vpcEndpointIds == null) { setVpcEndpointIds(new com.amazonaws.internal.SdkInternalList<String>(vpcEndpointIds.length)); } for (String ele : vpcEndpointIds) { this.vpcEndpointIds.add...
class class_name[name] begin[{] method[withVpcEndpointIds, return_type[type[DescribeVpcEndpointsRequest]], modifier[public], parameter[vpcEndpointIds]] begin[{] if[binary_operation[THIS[member[None.vpcEndpointIds]], ==, literal[null]]] begin[{] call[.setVpcEndpointIds, p...
Keyword[public] identifier[DescribeVpcEndpointsRequest] identifier[withVpcEndpointIds] operator[SEP] identifier[String] operator[...] identifier[vpcEndpointIds] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[vpcEndpointIds] operator[==] Other[null] operator[SEP] { ide...
public void removeBOSHClientRequestListener( final BOSHClientRequestListener listener) { if (listener == null) { throw(new IllegalArgumentException(NULL_LISTENER)); } requestListeners.remove(listener); }
class class_name[name] begin[{] method[removeBOSHClientRequestListener, return_type[void], modifier[public], parameter[listener]] begin[{] if[binary_operation[member[.listener], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=NUL...
Keyword[public] Keyword[void] identifier[removeBOSHClientRequestListener] operator[SEP] Keyword[final] identifier[BOSHClientRequestListener] identifier[listener] operator[SEP] { Keyword[if] operator[SEP] identifier[listener] operator[==] Other[null] operator[SEP] { Keyword[throw] operator[SEP] Keyword...
public static Map<String, ? extends CacheConfig> fromYAML(Reader reader) throws IOException { return new CacheConfigSupport().fromYAML(reader); }
class class_name[name] begin[{] method[fromYAML, return_type[type[Map]], modifier[public static], parameter[reader]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[M...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , operator[?] Keyword[extends] identifier[CacheConfig] operator[>] identifier[fromYAML] operator[SEP] identifier[Reader] identifier[reader] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] Keyword[new] identifi...
public static String getOpeningTag(String tag, Map<String, String> attributes) { StringBuffer _result = new StringBuffer(); Map<String, String> _attributes = (null != attributes) ? attributes : EMPTY_MAP; return doAppendOpeningTag(_result, tag, _attributes).toString(); }
class class_name[name] begin[{] method[getOpeningTag, return_type[type[String]], modifier[public static], parameter[tag, attributes]] begin[{] local_variable[type[StringBuffer], _result] local_variable[type[Map], _attributes] return[call[.doAppendOpeningTag, parameter[member[._result], ...
Keyword[public] Keyword[static] identifier[String] identifier[getOpeningTag] operator[SEP] identifier[String] identifier[tag] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[attributes] operator[SEP] { identifier[StringBuffer] identifier[_result] operator[=] Keyword...
public Class findClass(String name) throws ClassNotFoundException { if (log.isDebugEnabled()) log.debug(" findClass(" + name + ")"); // Cannot load anything from local repositories if class loader is stopped if (!started) { throw new ClassNotFoundException(name); ...
class class_name[name] begin[{] method[findClass, return_type[type[Class]], modifier[public], parameter[name]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parameter[binary_operation[binary_operation[literal[" findClass("], +, member[.name]], +, lit...
Keyword[public] identifier[Class] identifier[findClass] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[log]...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case VALUE: return isSetValue(); case VALUE_CLASS: return isSetValueClass(); case CREATION_TIMESTAMP_MS: return isSe...
class class_name[name] begin[{] method[isSet, return_type[type[boolean]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, po...
Keyword[public] Keyword[boolean] identifier[isSet] operator[SEP] identifier[_Fields] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] opera...
public static String escapeEntities(String str, boolean strict) { StringBuilder buffer; char ch; String msg; String entity; buffer = null; for (int i = 0; i < str.length(); i++) { ch = str.charAt(i); switch (ch) { case '\t': ...
class class_name[name] begin[{] method[escapeEntities, return_type[type[String]], modifier[public static], parameter[str, strict]] begin[{] local_variable[type[StringBuilder], buffer] local_variable[type[char], ch] local_variable[type[String], msg] local_variable[type[String], e...
Keyword[public] Keyword[static] identifier[String] identifier[escapeEntities] operator[SEP] identifier[String] identifier[str] , Keyword[boolean] identifier[strict] operator[SEP] { identifier[StringBuilder] identifier[buffer] operator[SEP] Keyword[char] identifier[ch] operator[SEP] identifier[String] identifier...
public static <CT, ET> Iterator<Pair<CT, ET>> counted(Iterable<ET> iterable, Range<CT> range) { dbc.precondition(iterable != null, "cannot call counted with a null iterable"); return new ZipShortestIterator<CT, ET>(range.iterator(), iterable.iterator()); }
class class_name[name] begin[{] method[counted, return_type[type[Iterator]], modifier[public static], parameter[iterable, range]] begin[{] call[dbc.precondition, parameter[binary_operation[member[.iterable], !=, literal[null]], literal["cannot call counted with a null iterable"]]] retur...
Keyword[public] Keyword[static] operator[<] identifier[CT] , identifier[ET] operator[>] identifier[Iterator] operator[<] identifier[Pair] operator[<] identifier[CT] , identifier[ET] operator[>] operator[>] identifier[counted] operator[SEP] identifier[Iterable] operator[<] identifier[ET] operator[>] identifier[iterabl...
public String getDisplayValue(Object ob) { if( ob == null ) { return ""; } if( ob instanceof Translator ) { return getDisplayValue(Locale.getDefault(), ob); } return ob.toString(); }
class class_name[name] begin[{] method[getDisplayValue, return_type[type[String]], modifier[public], parameter[ob]] begin[{] if[binary_operation[member[.ob], ==, literal[null]]] begin[{] return[literal[""]] else begin[{] None end[}] if[binary_operatio...
Keyword[public] identifier[String] identifier[getDisplayValue] operator[SEP] identifier[Object] identifier[ob] operator[SEP] { Keyword[if] operator[SEP] identifier[ob] operator[==] Other[null] operator[SEP] { Keyword[return] literal[String] operator[SEP] } Keyword[if] operator[SEP] ident...
public static void checkDirectory(File directory) { if (!(directory.exists() || directory.mkdirs())) { throw new ReportGenerationException( String.format("Can't create data directory <%s>", directory.getAbsolutePath()) ); } }
class class_name[name] begin[{] method[checkDirectory, return_type[void], modifier[public static], parameter[directory]] begin[{] if[binary_operation[call[directory.exists, parameter[]], ||, call[directory.mkdirs, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
Keyword[public] Keyword[static] Keyword[void] identifier[checkDirectory] operator[SEP] identifier[File] identifier[directory] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[directory] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[||] identifier[directory] o...
public java.util.List<String> getInstanceGroupTypes() { if (instanceGroupTypes == null) { instanceGroupTypes = new com.amazonaws.internal.SdkInternalList<String>(); } return instanceGroupTypes; }
class class_name[name] begin[{] method[getInstanceGroupTypes, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.instanceGroupTypes], ==, literal[null]]] begin[{] assign[member[.instanceGroupTypes], ClassCreator(arguments=[], bod...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getInstanceGroupTypes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[instanceGroupTypes] operator[==] Other[null] operator[SEP] { id...
void analyzeIfNeeded(JCTree tree, Env<AttrContext> env) { if (!analyzerModes.isEmpty() && !env.info.isSpeculative && TreeInfo.isStatement(tree)) { JCStatement stmt = (JCStatement)tree; analyze(stmt, env); } }
class class_name[name] begin[{] method[analyzeIfNeeded, return_type[void], modifier[default], parameter[tree, env]] begin[{] if[binary_operation[binary_operation[call[analyzerModes.isEmpty, parameter[]], &&, member[env.info.isSpeculative]], &&, call[TreeInfo.isStatement, parameter[member[.tree]...
Keyword[void] identifier[analyzeIfNeeded] operator[SEP] identifier[JCTree] identifier[tree] , identifier[Env] operator[<] identifier[AttrContext] operator[>] identifier[env] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[analyzerModes] operator[SEP] identifier[isEmpty] operator[SEP] operator[S...
@Override public ITextRegion getTextRegion(EObject object, RegionDescription query) { return super.getTextRegion(convertToSource(object), query); }
class class_name[name] begin[{] method[getTextRegion, return_type[type[ITextRegion]], modifier[public], parameter[object, query]] begin[{] return[SuperMethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
annotation[@] identifier[Override] Keyword[public] identifier[ITextRegion] identifier[getTextRegion] operator[SEP] identifier[EObject] identifier[object] , identifier[RegionDescription] identifier[query] operator[SEP] { Keyword[return] Keyword[super] operator[SEP] identifier[getTextRegion] operator[SEP] identif...
private static VariableResolver<String> propertiesGeneratingResolver(final VariableResolver<String> original) { return new VariableResolver<String>() { public String resolve(String name) { final String value = original.resolve(name); if (value == null) return null; ...
class class_name[name] begin[{] method[propertiesGeneratingResolver, return_type[type[VariableResolver]], modifier[private static], parameter[original]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[LocalVariableDeclaration(annotations=[], declarators=[Variabl...
Keyword[private] Keyword[static] identifier[VariableResolver] operator[<] identifier[String] operator[>] identifier[propertiesGeneratingResolver] operator[SEP] Keyword[final] identifier[VariableResolver] operator[<] identifier[String] operator[>] identifier[original] operator[SEP] { Keyword[return] Keyword[new] ...
void start(String nodeName, JqmEngineHandler h) { if (nodeName == null || nodeName.isEmpty()) { throw new IllegalArgumentException("nodeName cannot be null or empty"); } this.handler = h; // Set thread name - used in audits Thread.currentThread().setName...
class class_name[name] begin[{] method[start, return_type[void], modifier[default], parameter[nodeName, h]] begin[{] if[binary_operation[binary_operation[member[.nodeName], ==, literal[null]], ||, call[nodeName.isEmpty, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[void] identifier[start] operator[SEP] identifier[String] identifier[nodeName] , identifier[JqmEngineHandler] identifier[h] operator[SEP] { Keyword[if] operator[SEP] identifier[nodeName] operator[==] Other[null] operator[||] identifier[nodeName] operator[SEP] identifier[isEmpty] operator[SEP] operator[SE...
public CreateTableResponse createTable(CreateTableRequest request) { checkNotNull(request, "request should not be null."); InternalRequest httpRequest = createRequestUnderInstance(HttpMethodName.POST, MolaDbConstants.URI_TABLE); fillInHeadAndBody(request, httpRequest); Cr...
class class_name[name] begin[{] method[createTable, return_type[type[CreateTableResponse]], modifier[public], parameter[request]] begin[{] call[.checkNotNull, parameter[member[.request], literal["request should not be null."]]] local_variable[type[InternalRequest], httpRequest] ...
Keyword[public] identifier[CreateTableResponse] identifier[createTable] operator[SEP] identifier[CreateTableRequest] identifier[request] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[InternalRequest] identifier[httpRequest] op...
@Override public void onAdd(Event event) { notifyWebSocket("event", event); logger.info("Reporter observed event by user [" + event.getUser().getUsername() + "]"); }
class class_name[name] begin[{] method[onAdd, return_type[void], modifier[public], parameter[event]] begin[{] call[.notifyWebSocket, parameter[literal["event"], member[.event]]] call[logger.info, parameter[binary_operation[binary_operation[literal["Reporter observed event by use...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onAdd] operator[SEP] identifier[Event] identifier[event] operator[SEP] { identifier[notifyWebSocket] operator[SEP] literal[String] , identifier[event] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[info] operato...
public static String getDateStampFromDumpFileDirectoryName( DumpContentType dumpContentType, String directoryName) { int prefixLength = dumpContentType.toString().length() + 1; return directoryName.substring(prefixLength); }
class class_name[name] begin[{] method[getDateStampFromDumpFileDirectoryName, return_type[type[String]], modifier[public static], parameter[dumpContentType, directoryName]] begin[{] local_variable[type[int], prefixLength] return[call[directoryName.substring, parameter[member[.prefixLength]]]] ...
Keyword[public] Keyword[static] identifier[String] identifier[getDateStampFromDumpFileDirectoryName] operator[SEP] identifier[DumpContentType] identifier[dumpContentType] , identifier[String] identifier[directoryName] operator[SEP] { Keyword[int] identifier[prefixLength] operator[=] identifier[dumpContentType] ...
public void run() { m_hasBeenReset = false; try { // int n = ((SourceTreeHandler)getInputContentHandler()).getDTMRoot(); // transformNode(n); try { // m_isTransformDone = false; // android-removed // Should no longer be needed... // if(m_inputCo...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.m_hasBeenReset], literal[false]] TryStatement(block=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=m_doc, postfix...
Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[m_hasBeenReset] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[try] { identifier[transformNode] operator[SEP] identifier[m_doc] operator[SEP] operator[SEP] } K...
synchronized public void putAlias(String alias, int index) { JMLambda.runByBoolean(index < size(), () -> aliasIndexMap.put(alias, index), () -> JMExceptionManager.logRuntimeException(log, "Wrong Index !!! - " + "dataList Size = " + dataList, ...
class class_name[name] begin[{] method[putAlias, return_type[void], modifier[synchronized public], parameter[alias, index]] begin[{] call[JMLambda.runByBoolean, parameter[binary_operation[member[.index], <, call[.size, parameter[]]], LambdaExpression(body=MethodInvocation(arguments=[MemberRefer...
Keyword[synchronized] Keyword[public] Keyword[void] identifier[putAlias] operator[SEP] identifier[String] identifier[alias] , Keyword[int] identifier[index] operator[SEP] { identifier[JMLambda] operator[SEP] identifier[runByBoolean] operator[SEP] identifier[index] operator[<] identifier[size] operator[SEP] oper...
@Override public void shutdown() { try { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); if (onProfiler != null) if (mBeanServer.isRegistered(onProfiler)) mBeanServer.unregisterMBean(onProfiler); } catch (Exception e) { OLogManager.instance()...
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getPlatformMBeanServer, postfix_opera...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[shutdown] operator[SEP] operator[SEP] { Keyword[try] { identifier[MBeanServer] identifier[mBeanServer] operator[=] identifier[ManagementFactory] operator[SEP] identifier[getPlatformMBeanServer] operator[SEP] operator[SEP] oper...
public void prune() { if (children != null) { List<String> removeList = new ArrayList<String>(); for (Entry<String, DepTreeNode> entry : children.entrySet()) { DepTreeNode child = entry.getValue(); child.prune(); if ((child.defineDependencies == null && child.requireDependencies == null && chi...
class class_name[name] begin[{] method[prune, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.children], !=, literal[null]]] begin[{] local_variable[type[List], removeList] ForStatement(body=BlockStatement(label=None, statements=[Lo...
Keyword[public] Keyword[void] identifier[prune] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[children] operator[!=] Other[null] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[removeList] operator[=] Keyword[new] identifier[ArrayList] operat...
public GetGatewayResponseResult withResponseParameters(java.util.Map<String, String> responseParameters) { setResponseParameters(responseParameters); return this; }
class class_name[name] begin[{] method[withResponseParameters, return_type[type[GetGatewayResponseResult]], modifier[public], parameter[responseParameters]] begin[{] call[.setResponseParameters, parameter[member[.responseParameters]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[GetGatewayResponseResult] identifier[withResponseParameters] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[responseParameters] operator[SEP] { identifier[setRespons...
public void deleteCalendar(GoogleCalendar calendar) throws IOException { dao.calendars().delete(calendar.getId()).execute(); }
class class_name[name] begin[{] method[deleteCalendar, return_type[void], modifier[public], parameter[calendar]] begin[{] call[dao.calendars, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[deleteCalendar] operator[SEP] identifier[GoogleCalendar] identifier[calendar] operator[SEP] Keyword[throws] identifier[IOException] { identifier[dao] operator[SEP] identifier[calendars] operator[SEP] operator[SEP] operator[SEP] identifier[delete] operator[SEP] identifier[...
@Override public Blob convert(IComplexNDArray toConvert) throws IOException, SQLException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bos); Nd4j.writeComplex(toConvert, dos); byte[] bytes = bos.toByteArray(); Connec...
class class_name[name] begin[{] method[convert, return_type[type[Blob]], modifier[public], parameter[toConvert]] begin[{] local_variable[type[ByteArrayOutputStream], bos] local_variable[type[DataOutputStream], dos] call[Nd4j.writeComplex, parameter[member[.toConvert], member[.do...
annotation[@] identifier[Override] Keyword[public] identifier[Blob] identifier[convert] operator[SEP] identifier[IComplexNDArray] identifier[toConvert] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SQLException] { identifier[ByteArrayOutputStream] identifier[bos] operator[=] Keyword[new] id...
private SIMPMessage retrieveMsgLocked() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveMsgLocked", new Object[] { this }); SIMPMessage msg = null; // Look in the Cd's ItenStream for the next available messa...
class class_name[name] begin[{] method[retrieveMsgLocked, return_type[type[SIMPMessage]], modifier[private], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, paramet...
Keyword[private] identifier[SIMPMessage] identifier[retrieveMsgLocked] operator[SEP] operator[SEP] Keyword[throws] identifier[SIResourceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[...
public com.google.api.ads.admanager.axis.v201902.TimeSeries getAdjustmentTimeSeries() { return adjustmentTimeSeries; }
class class_name[name] begin[{] method[getAdjustmentTimeSeries, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.adjustmentTimeSeries]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201902] operator[SEP] identifier[TimeSeries] identifier[getAdjustmentTimeSeries] operator[SEP] operato...
protected void computeGradient(AffinityMatrix pij, double[][] qij, double qij_isum, double[][] sol, double[] meta) { final int dim3 = dim * 3; int size = pij.size(); for(int i = 0, off = 0; i < size; i++, off += dim3) { final double[] sol_i = sol[i], qij_i = qij[i]; Arrays.fill(meta, off, off + ...
class class_name[name] begin[{] method[computeGradient, return_type[void], modifier[protected], parameter[pij, qij, qij_isum, sol, meta]] begin[{] local_variable[type[int], dim3] local_variable[type[int], size] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclar...
Keyword[protected] Keyword[void] identifier[computeGradient] operator[SEP] identifier[AffinityMatrix] identifier[pij] , Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[qij] , Keyword[double] identifier[qij_isum] , Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[S...
public PrefixPricingResponse getPrefixPrice(ServiceType type, String prefix) throws IOException, NexmoClientException { return getPrefixPrice(new PrefixPricingRequest(type, prefix)); }
class class_name[name] begin[{] method[getPrefixPrice, return_type[type[PrefixPricingResponse]], modifier[public], parameter[type, prefix]] begin[{] return[call[.getPrefixPrice, parameter[ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selecto...
Keyword[public] identifier[PrefixPricingResponse] identifier[getPrefixPrice] operator[SEP] identifier[ServiceType] identifier[type] , identifier[String] identifier[prefix] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NexmoClientException] { Keyword[return] identifier[getPrefixPrice] opera...
@SuppressWarnings("unchecked") public static <T> Function<T, T> identity() { return (Function<T, T>)IDENTITY; }
class class_name[name] begin[{] method[identity, return_type[type[Function]], modifier[public static], parameter[]] begin[{] return[Cast(expression=MemberReference(member=IDENTITY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_t...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Function] operator[<] identifier[T] , identifier[T] operator[>] identifier[identity] operator[SEP] operator[SEP] { Keyword[return] operator[SEP]...
public void setLoggerLevel(String loggerName, String level) throws ManagementConsoleException { sleeConnection.getSleeManagementMBeanUtils().getLogManagementMBeanUtils().setLoggerLevel(loggerName, level); }
class class_name[name] begin[{] method[setLoggerLevel, return_type[void], modifier[public], parameter[loggerName, level]] begin[{] call[sleeConnection.getSleeManagementMBeanUtils, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setLoggerLevel] operator[SEP] identifier[String] identifier[loggerName] , identifier[String] identifier[level] operator[SEP] Keyword[throws] identifier[ManagementConsoleException] { identifier[sleeConnection] operator[SEP] identifier[getSleeManagementMBeanUtils] operator...
public strictfp float floatValue(){ int kDigits = Math.min( nDigits, singleMaxDecimalDigits+1 ); int iValue; float fValue; // First, check for NaN and Infinity values if(digits == infinity || digits == notANumber) { if(digits == notANumber) ...
class class_name[name] begin[{] method[floatValue, return_type[type[float]], modifier[strictfp public], parameter[]] begin[{] local_variable[type[int], kDigits] local_variable[type[int], iValue] local_variable[type[float], fValue] if[binary_operation[binary_operation[mem...
Keyword[public] Keyword[strictfp] Keyword[float] identifier[floatValue] operator[SEP] operator[SEP] { Keyword[int] identifier[kDigits] operator[=] identifier[Math] operator[SEP] identifier[min] operator[SEP] identifier[nDigits] , identifier[singleMaxDecimalDigits] operator[+] Other[1] operator[SEP] operator[SEP...
public static <F extends PField> MappedField<F> withColumn(String name, F field) { return new MappedField<>(name, field); }
class class_name[name] begin[{] method[withColumn, return_type[type[MappedField]], modifier[public static], parameter[name, field]] begin[{] return[ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=field, po...
Keyword[public] Keyword[static] operator[<] identifier[F] Keyword[extends] identifier[PField] operator[>] identifier[MappedField] operator[<] identifier[F] operator[>] identifier[withColumn] operator[SEP] identifier[String] identifier[name] , identifier[F] identifier[field] operator[SEP] { Keyword[return] Keywo...
public static final String getRelativeFilePath(final String oldPath, final String newPath) { if (StringUtils.isEmpty(oldPath) || StringUtils.isEmpty(newPath)) { return ""; } // normalise the path delimiters String fromPath = new File(oldPath).getPath(); String toPath = new File(newPath).getPath(); // s...
class class_name[name] begin[{] method[getRelativeFilePath, return_type[type[String]], modifier[final public static], parameter[oldPath, newPath]] begin[{] if[binary_operation[call[StringUtils.isEmpty, parameter[member[.oldPath]]], ||, call[StringUtils.isEmpty, parameter[member[.newPath]]]]] be...
Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[getRelativeFilePath] operator[SEP] Keyword[final] identifier[String] identifier[oldPath] , Keyword[final] identifier[String] identifier[newPath] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier...
private String getObjectInfoFromSerializedObject() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObjectInfoFromSerializedObject"); String oscDesc; byte[] data = new byte[0]; try { data = objMsg.getSerializedObject(); ...
class class_name[name] begin[{] method[getObjectInfoFromSerializedObject, return_type[type[String]], modifier[private], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.ent...
Keyword[private] identifier[String] identifier[getObjectInfoFromSerializedObject] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] opera...
public JSONObject handleThrowable(Throwable pThrowable) { if (pThrowable instanceof IllegalArgumentException) { return getErrorJSON(400,pThrowable, null); } else if (pThrowable instanceof SecurityException) { // Wipe out stacktrace return getErrorJSON(403,new Exceptio...
class class_name[name] begin[{] method[handleThrowable, return_type[type[JSONObject]], modifier[public], parameter[pThrowable]] begin[{] if[binary_operation[member[.pThrowable], instanceof, type[IllegalArgumentException]]] begin[{] return[call[.getErrorJSON, parameter[literal[400], ...
Keyword[public] identifier[JSONObject] identifier[handleThrowable] operator[SEP] identifier[Throwable] identifier[pThrowable] operator[SEP] { Keyword[if] operator[SEP] identifier[pThrowable] Keyword[instanceof] identifier[IllegalArgumentException] operator[SEP] { Keyword[return] identifier[getErrorJSO...
public void initSettings( CmsObject cms, I_CmsFormatterBean formatterBean, Locale locale, ServletRequest request, Map<String, String> presets) { Map<String, String> mergedSettings; if (formatterBean == null) { mergedSettings = CmsXmlContentPropertyHel...
class class_name[name] begin[{] method[initSettings, return_type[void], modifier[public], parameter[cms, formatterBean, locale, request, presets]] begin[{] local_variable[type[Map], mergedSettings] if[binary_operation[member[.formatterBean], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[initSettings] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[I_CmsFormatterBean] identifier[formatterBean] , identifier[Locale] identifier[locale] , identifier[ServletRequest] identifier[request] , identifier[Map] operator[<] identifier[String] , identifie...
public static GraphicalModel readFromProto(GraphicalModelProto.GraphicalModel proto) { if (proto == null) return null; GraphicalModel model = new GraphicalModel(); model.modelMetaData = readMetaDataFromProto(proto.getMetaData()); model.variableMetaData = new ArrayList<>(); for (int i = 0; i < proto....
class class_name[name] begin[{] method[readFromProto, return_type[type[GraphicalModel]], modifier[public static], parameter[proto]] begin[{] if[binary_operation[member[.proto], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[ty...
Keyword[public] Keyword[static] identifier[GraphicalModel] identifier[readFromProto] operator[SEP] identifier[GraphicalModelProto] operator[SEP] identifier[GraphicalModel] identifier[proto] operator[SEP] { Keyword[if] operator[SEP] identifier[proto] operator[==] Other[null] operator[SEP] Keyword[return] Other[nu...
public static String prettyFormatJson(String jsonString) { requireNonNull(jsonString, "jsonString is null"); return JSON.toJSONString(getJSONFromString(jsonString), true); }
class class_name[name] begin[{] method[prettyFormatJson, return_type[type[String]], modifier[public static], parameter[jsonString]] begin[{] call[.requireNonNull, parameter[member[.jsonString], literal["jsonString is null"]]] return[call[JSON.toJSONString, parameter[call[.getJSONFromStr...
Keyword[public] Keyword[static] identifier[String] identifier[prettyFormatJson] operator[SEP] identifier[String] identifier[jsonString] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[jsonString] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[JSON] operator[SEP] ide...
public void marshall(DeleteRobotApplicationRequest deleteRobotApplicationRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRobotApplicationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteRobotApplicationRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteRobotApplicationRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreato...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteRobotApplicationRequest] identifier[deleteRobotApplicationRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteRobotApplicationRequest] operator[==] Ot...
public static Symmetry454Date from(TemporalAccessor temporal) { if (temporal instanceof Symmetry454Date) { return (Symmetry454Date) temporal; } return Symmetry454Date.ofEpochDay(temporal.getLong(ChronoField.EPOCH_DAY)); }
class class_name[name] begin[{] method[from, return_type[type[Symmetry454Date]], modifier[public static], parameter[temporal]] begin[{] if[binary_operation[member[.temporal], instanceof, type[Symmetry454Date]]] begin[{] return[Cast(expression=MemberReference(member=temporal, postfix...
Keyword[public] Keyword[static] identifier[Symmetry454Date] identifier[from] operator[SEP] identifier[TemporalAccessor] identifier[temporal] operator[SEP] { Keyword[if] operator[SEP] identifier[temporal] Keyword[instanceof] identifier[Symmetry454Date] operator[SEP] { Keyword[return] operator[SEP] iden...
private static String createTypeId(Type type) { if (type instanceof Class<?>) return Class.class.cast(type).getName(); if (type instanceof ParameterizedType) return createTypeId(((ParameterizedType) type).getRawType()) + Stream.of(((ParameterizedType) type).getAc...
class class_name[name] begin[{] method[createTypeId, return_type[type[String]], modifier[private static], parameter[type]] begin[{] if[binary_operation[member[.type], instanceof, type[Class]]] begin[{] return[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[Metho...
Keyword[private] Keyword[static] identifier[String] identifier[createTypeId] operator[SEP] identifier[Type] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[type] Keyword[instanceof] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] Keyword[return] identifier[Class] operato...
public static String readDeviceMetric(String deviceId, String metric) { return format("%s.%s.%s", CHANNEL_DEVICE_METRICS_READ, deviceId, metric); }
class class_name[name] begin[{] method[readDeviceMetric, return_type[type[String]], modifier[public static], parameter[deviceId, metric]] begin[{] return[call[.format, parameter[literal["%s.%s.%s"], member[.CHANNEL_DEVICE_METRICS_READ], member[.deviceId], member[.metric]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[readDeviceMetric] operator[SEP] identifier[String] identifier[deviceId] , identifier[String] identifier[metric] operator[SEP] { Keyword[return] identifier[format] operator[SEP] literal[String] , identifier[CHANNEL_DEVICE_METRICS_READ] , identifier[...
public void pspGridToPmesh(String outPutFileName) { try { gridGenerator.writeGridInPmeshFormat(outPutFileName, minPSPocket); } catch (IOException e) { logger.debug(e); } }
class class_name[name] begin[{] method[pspGridToPmesh, return_type[void], modifier[public], parameter[outPutFileName]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=outPutFileName, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[void] identifier[pspGridToPmesh] operator[SEP] identifier[String] identifier[outPutFileName] operator[SEP] { Keyword[try] { identifier[gridGenerator] operator[SEP] identifier[writeGridInPmeshFormat] operator[SEP] identifier[outPutFileName] , identifier[minPSPocket] operator[SE...
public static int generationFromRevID(String revID) { if (revID == null) return 0; int generation = 0; int dashPos = revID.indexOf('-'); if (dashPos > 0) { generation = Integer.parseInt(revID.substring(0, dashPos)); } return generation; }
class class_name[name] begin[{] method[generationFromRevID, return_type[type[int]], modifier[public static], parameter[revID]] begin[{] if[binary_operation[member[.revID], ==, literal[null]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[int],...
Keyword[public] Keyword[static] Keyword[int] identifier[generationFromRevID] operator[SEP] identifier[String] identifier[revID] operator[SEP] { Keyword[if] operator[SEP] identifier[revID] operator[==] Other[null] operator[SEP] Keyword[return] Other[0] operator[SEP] Keyword[int] identifier[generation] operator[=]...