code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static QueryParameters updateTypesByName(QueryParameters original, QueryParameters source) { QueryParameters updatedParams = new QueryParameters(original); if (source != null) { for (String sourceKey : source.keySet()) { if (updatedParams.containsKey(sourceKey) =...
class class_name[name] begin[{] method[updateTypesByName, return_type[type[QueryParameters]], modifier[public static], parameter[original, source]] begin[{] local_variable[type[QueryParameters], updatedParams] if[binary_operation[member[.source], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[QueryParameters] identifier[updateTypesByName] operator[SEP] identifier[QueryParameters] identifier[original] , identifier[QueryParameters] identifier[source] operator[SEP] { identifier[QueryParameters] identifier[updatedParams] operator[=] Keyword[new] identifier[Quer...
protected Connection getConnection(RevisionAPIConfiguration config) throws WikiApiException { Connection c; try { String driverDB = config.getDatabaseDriver(); Class.forName(driverDB); c = DriverManager.getConnection(config.getJdbcURL(), config.getUser(), config...
class class_name[name] begin[{] method[getConnection, return_type[type[Connection]], modifier[protected], parameter[config]] begin[{] local_variable[type[Connection], c] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Metho...
Keyword[protected] identifier[Connection] identifier[getConnection] operator[SEP] identifier[RevisionAPIConfiguration] identifier[config] operator[SEP] Keyword[throws] identifier[WikiApiException] { identifier[Connection] identifier[c] operator[SEP] Keyword[try] { identifier[String] identifier[driverD...
public void marshall(DescribeEnvironmentStatusRequest describeEnvironmentStatusRequest, ProtocolMarshaller protocolMarshaller) { if (describeEnvironmentStatusRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeEnvironmentStatusRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeEnvironmentStatusRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeEnvironmentStatusRequest] identifier[describeEnvironmentStatusRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeEnvironmentStatusRequest] operat...
@java.lang.Deprecated public java.util.Map<java.lang.String, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level> getDriverLogLevels() { return getDriverLogLevelsMap(); }
class class_name[name] begin[{] method[getDriverLogLevels, return_type[type[java]], modifier[public], parameter[]] begin[{] return[call[.getDriverLogLevelsMap, parameter[]]] end[}] END[}]
annotation[@] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Deprecated] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] , identifier[com] operator[SEP] i...
public static int rgbFromCmyk(float[] cmyk) { float cyan = cmyk[0]; float magenta = cmyk[1]; float yellow = cmyk[2]; float black = cmyk[3]; int red = (int) ((1.0f - Math.min(1.0f, cyan * (1.0f - black) + black)) * 255); int green = (int) ((1.0f - Math.min(1.0f, magenta * ...
class class_name[name] begin[{] method[rgbFromCmyk, return_type[type[int]], modifier[public static], parameter[cmyk]] begin[{] local_variable[type[float], cyan] local_variable[type[float], magenta] local_variable[type[float], yellow] local_variable[type[float], black] lo...
Keyword[public] Keyword[static] Keyword[int] identifier[rgbFromCmyk] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[cmyk] operator[SEP] { Keyword[float] identifier[cyan] operator[=] identifier[cmyk] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[float] identifier[magenta] operato...
public IconRow getIconDefault(String featureTable, long featureId, boolean tableIcon) { return getIcon(featureTable, featureId, null, tableIcon); }
class class_name[name] begin[{] method[getIconDefault, return_type[type[IconRow]], modifier[public], parameter[featureTable, featureId, tableIcon]] begin[{] return[call[.getIcon, parameter[member[.featureTable], member[.featureId], literal[null], member[.tableIcon]]]] end[}] END[}]
Keyword[public] identifier[IconRow] identifier[getIconDefault] operator[SEP] identifier[String] identifier[featureTable] , Keyword[long] identifier[featureId] , Keyword[boolean] identifier[tableIcon] operator[SEP] { Keyword[return] identifier[getIcon] operator[SEP] identifier[featureTable] , identifier[featur...
public void setDomainNamePattern(String domainNamePattern) { if (this.domainName != null) { throw new IllegalStateException( "Cannot set both domainName and domainNamePattern"); } this.domainNamePattern = Pattern.compile(domainNamePattern, Pattern.CASE_INSENSITIVE); }
class class_name[name] begin[{] method[setDomainNamePattern, return_type[void], modifier[public], parameter[domainNamePattern]] begin[{] if[binary_operation[THIS[member[None.domainName]], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_...
Keyword[public] Keyword[void] identifier[setDomainNamePattern] operator[SEP] identifier[String] identifier[domainNamePattern] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[domainName] operator[!=] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[Ill...
private void addOwner(UNode ownerNode) { String ownerName = ownerNode.getName(); SortedMap<String, RESTCommand> ownerMap = new TreeMap<>(); m_cmdsByOwnerMap.put(ownerName, ownerMap); for (UNode cmdNode : ownerNode.getMemberList()) { RESTCommand cmd = RESTCommand.fromUNode(cmd...
class class_name[name] begin[{] method[addOwner, return_type[void], modifier[private], parameter[ownerNode]] begin[{] local_variable[type[String], ownerName] local_variable[type[SortedMap], ownerMap] call[m_cmdsByOwnerMap.put, parameter[member[.ownerName], member[.ownerMap]]] ...
Keyword[private] Keyword[void] identifier[addOwner] operator[SEP] identifier[UNode] identifier[ownerNode] operator[SEP] { identifier[String] identifier[ownerName] operator[=] identifier[ownerNode] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[SortedMap] operator[<] identi...
public void redraw() { Layers mapOverlays = clusterManager.getMapView().getLayerManager().getLayers(); if (clusterMarker != null && !clusterManager.getCurBounds().contains(center) && mapOverlays.contains(clusterMarker)) { mapOverlays.remove(clusterMarker); return;...
class class_name[name] begin[{] method[redraw, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Layers], mapOverlays] if[binary_operation[binary_operation[binary_operation[member[.clusterMarker], !=, literal[null]], &&, call[clusterManager.getCurBounds, par...
Keyword[public] Keyword[void] identifier[redraw] operator[SEP] operator[SEP] { identifier[Layers] identifier[mapOverlays] operator[=] identifier[clusterManager] operator[SEP] identifier[getMapView] operator[SEP] operator[SEP] operator[SEP] identifier[getLayerManager] operator[SEP] operator[SEP] operator[SEP] ide...
private static synchronized String getFile(String name) { if(Objects.isNullOrEmpty(baseDirectory)){ baseDirectory = Options.getStorage().getSystem("numberSequence.home", System.getProperty("user.home") + File.separator + ".s1-sequences"); } File dir = new File(baseDirectory); ...
class class_name[name] begin[{] method[getFile, return_type[type[String]], modifier[synchronized private static], parameter[name]] begin[{] if[call[Objects.isNullOrEmpty, parameter[member[.baseDirectory]]]] begin[{] assign[member[.baseDirectory], call[Options.getStorage,...
Keyword[private] Keyword[static] Keyword[synchronized] identifier[String] identifier[getFile] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[Objects] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[baseDirectory] operator[SEP] operator[SEP]...
private List<CmsSearchIndexSource> searchIndexSources() { CmsSearchManager manager = OpenCms.getSearchManager(); return new LinkedList<CmsSearchIndexSource>(manager.getSearchIndexSources().values()); }
class class_name[name] begin[{] method[searchIndexSources, return_type[type[List]], modifier[private], parameter[]] begin[{] local_variable[type[CmsSearchManager], manager] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getSearchIndexSources, postfix_operators=[], prefix_o...
Keyword[private] identifier[List] operator[<] identifier[CmsSearchIndexSource] operator[>] identifier[searchIndexSources] operator[SEP] operator[SEP] { identifier[CmsSearchManager] identifier[manager] operator[=] identifier[OpenCms] operator[SEP] identifier[getSearchManager] operator[SEP] operator[SEP] operator[...
public static <C extends Sequence<D>, D extends Compound> DistanceMatrix fractionalDissimilarity( MultipleSequenceAlignment<C, D> msa) throws IOException { Msa fMsa = ForesterWrapper.convert(msa); DistanceMatrix DM = PairwiseDistanceCalculator .calcFractionalDissimilarities(fMsa); return DM; }
class class_name[name] begin[{] method[fractionalDissimilarity, return_type[type[DistanceMatrix]], modifier[public static], parameter[msa]] begin[{] local_variable[type[Msa], fMsa] local_variable[type[DistanceMatrix], DM] return[member[.DM]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[C] Keyword[extends] identifier[Sequence] operator[<] identifier[D] operator[>] , identifier[D] Keyword[extends] identifier[Compound] operator[>] identifier[DistanceMatrix] identifier[fractionalDissimilarity] operator[SEP] identifier[MultipleSequenceAlignment] oper...
public static List<Match> search(Match m, Pattern pattern) { assert pattern.getStartingClass().isAssignableFrom(m.get(0).getModelInterface()); return searchRecursive(m, pattern.getConstraints(), 0); }
class class_name[name] begin[{] method[search, return_type[type[List]], modifier[public static], parameter[m, pattern]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=getStartingClass, postfix_operators=[], prefix_operators=[], qualifier=pattern, selectors=[MethodInvocation(ar...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Match] operator[>] identifier[search] operator[SEP] identifier[Match] identifier[m] , identifier[Pattern] identifier[pattern] operator[SEP] { Keyword[assert] identifier[pattern] operator[SEP] identifier[getStartingClass] operator[SEP] opera...
public Buffer process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) throws IOException, SQLException { if (password == null || password.isEmpty()) { out.writeEmptyPacket(sequence.incrementAndGet()); } else { out.startPacket(sequence.incrementAndGet()); out.write(ed25519...
class class_name[name] begin[{] method[process, return_type[type[Buffer]], modifier[public], parameter[out, in, sequence]] begin[{] if[binary_operation[binary_operation[member[.password], ==, literal[null]], ||, call[password.isEmpty, parameter[]]]] begin[{] call[out.wri...
Keyword[public] identifier[Buffer] identifier[process] operator[SEP] identifier[PacketOutputStream] identifier[out] , identifier[PacketInputStream] identifier[in] , identifier[AtomicInteger] identifier[sequence] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SQLException] { Keyword[if] ope...
public EClass getBDG() { if (bdgEClass == null) { bdgEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(200); } return bdgEClass; }
class class_name[name] begin[{] method[getBDG, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.bdgEClass], ==, literal[null]]] begin[{] assign[member[.bdgEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(m...
Keyword[public] identifier[EClass] identifier[getBDG] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[bdgEClass] operator[==] Other[null] operator[SEP] { identifier[bdgEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Re...
public final boolean roll(final LoggingEvent loggingEvent) { for (int i = 0; i < this.fileRollables.length; i++) { if (this.fileRollables[i].roll(loggingEvent)) { return true; } } return false; }
class class_name[name] begin[{] method[roll, return_type[type[boolean]], modifier[final public], parameter[loggingEvent]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(me...
Keyword[public] Keyword[final] Keyword[boolean] identifier[roll] operator[SEP] Keyword[final] identifier[LoggingEvent] identifier[loggingEvent] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Keyword[this] operator[SEP] identifier...
public void create(String care, String openId, String text) { String url = WxEndpoint.get("url.care.session.create"); Map<String, String> request = new HashMap<>(); request.put("kf_account", care); request.put("openid", openId); if(!(text == null || "".equals(text))) { ...
class class_name[name] begin[{] method[create, return_type[void], modifier[public], parameter[care, openId, text]] begin[{] local_variable[type[String], url] local_variable[type[Map], request] call[request.put, parameter[literal["kf_account"], member[.care]]] cal...
Keyword[public] Keyword[void] identifier[create] operator[SEP] identifier[String] identifier[care] , identifier[String] identifier[openId] , identifier[String] identifier[text] operator[SEP] { identifier[String] identifier[url] operator[=] identifier[WxEndpoint] operator[SEP] identifier[get] operator[SEP] lite...
public static String encode(Object o) { Type type = typeOf(o); return type.encode(o); }
class class_name[name] begin[{] method[encode, return_type[type[String]], modifier[public static], parameter[o]] begin[{] local_variable[type[Type], type] return[call[type.encode, parameter[member[.o]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[encode] operator[SEP] identifier[Object] identifier[o] operator[SEP] { identifier[Type] identifier[type] operator[=] identifier[typeOf] operator[SEP] identifier[o] operator[SEP] operator[SEP] Keyword[return] identifier[type] operator[SEP] identifier[e...
public Iterator<Entry<K, V>> iterator(int fetchSize, int partitionId, boolean prefetchValues) { return new ClientMapPartitionIterator<K, V>(this, getContext(), fetchSize, partitionId, prefetchValues); }
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[fetchSize, partitionId, prefetchValues]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MethodInvocation(arguments=[], member...
Keyword[public] identifier[Iterator] operator[<] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[iterator] operator[SEP] Keyword[int] identifier[fetchSize] , Keyword[int] identifier[partitionId] , Keyword[boolean] identifier[prefetchValues] operator[SEP] { Keywor...
public static String decode(String value, Charset charset) { try { /* there is nothing special between uri and url decoding */ return URLDecoder.decode(value, charset.name()); } catch (UnsupportedEncodingException uee) { /* since the encoding is not supported, return the original value */ ...
class class_name[name] begin[{] method[decode, return_type[type[String]], modifier[public static], parameter[value, charset]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[static] identifier[String] identifier[decode] operator[SEP] identifier[String] identifier[value] , identifier[Charset] identifier[charset] operator[SEP] { Keyword[try] { Keyword[return] identifier[URLDecoder] operator[SEP] identifier[decode] operator[SEP] identifier[value] , ...
static <T> Iterable<T> prepend(Collection<T> coll, Iterable<T> rest) { return (coll.size() == 0) ? rest : new CompoundIterable<T>(coll, rest); }
class class_name[name] begin[{] method[prepend, return_type[type[Iterable]], modifier[static], parameter[coll, rest]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=coll, selectors=[],...
Keyword[static] operator[<] identifier[T] operator[>] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[prepend] operator[SEP] identifier[Collection] operator[<] identifier[T] operator[>] identifier[coll] , identifier[Iterable] operator[<] identifier[T] operator[>] identifier[rest] operator[SEP] {...
public static <T> Retryer<T> newInstance(Config config) { config = config.withFallback(DEFAULTS); RetryType type = RetryType.valueOf(config.getString(RETRY_TYPE).toUpperCase()); switch (type) { case EXPONENTIAL: return newExponentialRetryer(config); case FIXED: return newFixedRe...
class class_name[name] begin[{] method[newInstance, return_type[type[Retryer]], modifier[public static], parameter[config]] begin[{] assign[member[.config], call[config.withFallback, parameter[member[.DEFAULTS]]]] local_variable[type[RetryType], type] SwitchStatement(cases=[Swit...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Retryer] operator[<] identifier[T] operator[>] identifier[newInstance] operator[SEP] identifier[Config] identifier[config] operator[SEP] { identifier[config] operator[=] identifier[config] operator[SEP] identifier[withFallback] oper...
private void checkJodaConstructor3() { int COUNT = COUNT_SLOW; DateTime dt = new DateTime(1972, 10, 1, 0, 0, 0, 0, GJChronology.getInstance()); for (int i = 0; i < AVERAGE; i++) { start("Joda", "new(YMD)"); for (int j = 0; j < COUNT; j++...
class class_name[name] begin[{] method[checkJodaConstructor3, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], COUNT] local_variable[type[DateTime], dt] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInv...
Keyword[private] Keyword[void] identifier[checkJodaConstructor3] operator[SEP] operator[SEP] { Keyword[int] identifier[COUNT] operator[=] identifier[COUNT_SLOW] operator[SEP] identifier[DateTime] identifier[dt] operator[=] Keyword[new] identifier[DateTime] operator[SEP] Other[1972] , Other[10] , Other[1] , Ot...
@RequestMapping(value = "globals", method = RequestMethod.GET) public Resources<GlobalPermission> getGlobalPermissions() { return Resources.of( accountService.getGlobalPermissions(), uri(on(PermissionController.class).getGlobalPermissions()) ).with("_globalRoles", uri...
class class_name[name] begin[{] method[getGlobalPermissions, return_type[type[Resources]], modifier[public], parameter[]] begin[{] return[call[Resources.of, parameter[call[accountService.getGlobalPermissions, parameter[]], call[.uri, parameter[call[.on, parameter[ClassReference(postfix_operators=[], pr...
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[GET] operator[SEP] Keyword[public] identifier[Resources] operator[<] identifier[GlobalPermission] operator[>] identifier[getGlobalPerm...
public boolean isLocaleIndependent() { CmsFile file = getFile(); if (CmsResourceTypeXmlContainerPage.isContainerPage(file) || OpenCms.getResourceManager().matchResourceType( CmsResourceTypeXmlContainerPage.GROUP_CONTAINER_TYPE_NAME, file.getTypeId()) ...
class class_name[name] begin[{] method[isLocaleIndependent, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[CmsFile], file] if[binary_operation[binary_operation[call[CmsResourceTypeXmlContainerPage.isContainerPage, parameter[member[.file]]], ||, c...
Keyword[public] Keyword[boolean] identifier[isLocaleIndependent] operator[SEP] operator[SEP] { identifier[CmsFile] identifier[file] operator[=] identifier[getFile] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[CmsResourceTypeXmlContainerPage] operator[SEP] identifier[isContainerP...
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11") public void setStellplaetze(JAXBElement<Object> value) { this.stellplaetze = value; }
class class_name[name] begin[{] method[setStellplaetze, return_type[void], modifier[public], parameter[value]] begin[{] assign[THIS[member[None.stellplaetze]], member[.value]] end[}] END[}]
annotation[@] identifier[Generated] operator[SEP] identifier[value] operator[=] literal[String] , identifier[date] operator[=] literal[String] , identifier[comments] operator[=] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[setStellplaetze] operator[SEP] identifier[JAXBElement] operator[<] id...
public Iterator<IExecutionBridge> getJobsPage(final int _start, final int _size) { final int min = Math.min(_size, this.executionBridges.size()); return new ArrayList<>(this.executionBridges.subList(_start, min)).iterator(); }
class class_name[name] begin[{] method[getJobsPage, return_type[type[Iterator]], modifier[public], parameter[_start, _size]] begin[{] local_variable[type[int], min] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=e...
Keyword[public] identifier[Iterator] operator[<] identifier[IExecutionBridge] operator[>] identifier[getJobsPage] operator[SEP] Keyword[final] Keyword[int] identifier[_start] , Keyword[final] Keyword[int] identifier[_size] operator[SEP] { Keyword[final] Keyword[int] identifier[min] operator[=] identifier[Math] ...
public void warn(Throwable throwable, String msg, Object[] argArray) { logIfEnabled(Level.WARNING, throwable, msg, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, argArray); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public], parameter[throwable, msg, argArray]] begin[{] call[.logIfEnabled, parameter[member[Level.WARNING], member[.throwable], member[.msg], member[.UNKNOWN_ARG], member[.UNKNOWN_ARG], member[.UNKNOWN_ARG], member[.argArr...
Keyword[public] Keyword[void] identifier[warn] operator[SEP] identifier[Throwable] identifier[throwable] , identifier[String] identifier[msg] , identifier[Object] operator[SEP] operator[SEP] identifier[argArray] operator[SEP] { identifier[logIfEnabled] operator[SEP] identifier[Level] operator[SEP] identifier[W...
public static double getAngle(double xDiff, double yDiff) { double angle = 0; // logger.debug("getAngle->xDiff: " + xDiff); // logger.debug("getAngle->yDiff: " + yDiff); if (xDiff >= 0 && yDiff >= 0) { angle = Math.atan(yDiff / xDiff); } else if (xDiff < 0 && yDiff ...
class class_name[name] begin[{] method[getAngle, return_type[type[double]], modifier[public static], parameter[xDiff, yDiff]] begin[{] local_variable[type[double], angle] if[binary_operation[binary_operation[member[.xDiff], >=, literal[0]], &&, binary_operation[member[.yDiff], >=, liter...
Keyword[public] Keyword[static] Keyword[double] identifier[getAngle] operator[SEP] Keyword[double] identifier[xDiff] , Keyword[double] identifier[yDiff] operator[SEP] { Keyword[double] identifier[angle] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[xDiff] operator[>=] Other[0] operator...
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { parentSbbEntityID = (SbbEntityID) in.readObject(); parentChildRelation = in.readUTF(); childID = in.readUTF(); }
class class_name[name] begin[{] method[readExternal, return_type[void], modifier[public], parameter[in]] begin[{] assign[member[.parentSbbEntityID], Cast(expression=MethodInvocation(arguments=[], member=readObject, postfix_operators=[], prefix_operators=[], qualifier=in, selectors=[], type_argu...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[readExternal] operator[SEP] identifier[ObjectInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { identifier[parentSbbEntityID] operator[=] operator[SEP] identifier[SbbEntity...
public GetAuthorizersResult withItems(Authorizer... items) { if (this.items == null) { setItems(new java.util.ArrayList<Authorizer>(items.length)); } for (Authorizer ele : items) { this.items.add(ele); } return this; }
class class_name[name] begin[{] method[withItems, return_type[type[GetAuthorizersResult]], modifier[public], parameter[items]] begin[{] if[binary_operation[THIS[member[None.items]], ==, literal[null]]] begin[{] call[.setItems, parameter[ClassCreator(arguments=[MemberRefe...
Keyword[public] identifier[GetAuthorizersResult] identifier[withItems] operator[SEP] identifier[Authorizer] operator[...] identifier[items] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[items] operator[==] Other[null] operator[SEP] { identifier[setItems] operator[SEP...
public Long getRecordIdFromObject(final UUID objectId, final ObjectType objectType, final TenantContext context) { try { if (objectBelongsToTheRightTenant(objectId, objectType, context)) { return nonEntityDao.retrieveRecordIdFromObject(objectId, objectType, recordIdCacheController); ...
class class_name[name] begin[{] method[getRecordIdFromObject, return_type[type[Long]], modifier[public], parameter[objectId, objectType, context]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=objectId, postfix_operators=[], prefix_operators=[], q...
Keyword[public] identifier[Long] identifier[getRecordIdFromObject] operator[SEP] Keyword[final] identifier[UUID] identifier[objectId] , Keyword[final] identifier[ObjectType] identifier[objectType] , Keyword[final] identifier[TenantContext] identifier[context] operator[SEP] { Keyword[try] { Keyword[i...
public static <T> Iterable<T> skip(Iterable<T> iterable, int n) { return new SkipIterable<T>(iterable, n); }
class class_name[name] begin[{] method[skip, return_type[type[Iterable]], modifier[public static], parameter[iterable, n]] begin[{] return[ClassCreator(arguments=[MemberReference(member=iterable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=n, postfix_ope...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[skip] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] , Keyword[int] identifier[n] operator[SEP] { Keyword[return] Keyword[new...
private void setupScanner(Scanner scanner, Resource resource) { if (resource.getIncludes() == null || resource.getIncludes().isEmpty()) { scanner.setIncludes(DEFAULT_FILE_EXTENSIONS); } else { scanner.setIncludes(resource.getIncludes().toArray(new String[] {})); } ...
class class_name[name] begin[{] method[setupScanner, return_type[void], modifier[private], parameter[scanner, resource]] begin[{] if[binary_operation[binary_operation[call[resource.getIncludes, parameter[]], ==, literal[null]], ||, call[resource.getIncludes, parameter[]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[setupScanner] operator[SEP] identifier[Scanner] identifier[scanner] , identifier[Resource] identifier[resource] operator[SEP] { Keyword[if] operator[SEP] identifier[resource] operator[SEP] identifier[getIncludes] operator[SEP] operator[SEP] operator[==] Other[null] oper...
@Override public int compareTo(YearWeek other) { int cmp = (year - other.year); if (cmp == 0) { cmp = (week - other.week); } return cmp; }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[other]] begin[{] local_variable[type[int], cmp] if[binary_operation[member[.cmp], ==, literal[0]]] begin[{] assign[member[.cmp], binary_operation[member[.week], ...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[YearWeek] identifier[other] operator[SEP] { Keyword[int] identifier[cmp] operator[=] operator[SEP] identifier[year] operator[-] identifier[other] operator[SEP] identifier[year] operator[SEP] operator[SE...
public static String getName(String resource) { if ("/".equals(resource)) { return "/"; } // remove the last char, for a folder this will be "/", for a file it does not matter String parent = (resource.substring(0, resource.length() - 1)); // now as the name does not...
class class_name[name] begin[{] method[getName, return_type[type[String]], modifier[public static], parameter[resource]] begin[{] if[literal["/"]] begin[{] return[literal["/"]] else begin[{] None end[}] local_variable[type[String], parent] return[call...
Keyword[public] Keyword[static] identifier[String] identifier[getName] operator[SEP] identifier[String] identifier[resource] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[resource] operator[SEP] operator[SEP] { Keyword[return] liter...
public Request browseFromAsync(final @NonNull String cursor, @Nullable CompletionHandler completionHandler) { return browseFromAsync(cursor, /* requestOptions: */ null, completionHandler); }
class class_name[name] begin[{] method[browseFromAsync, return_type[type[Request]], modifier[public], parameter[cursor, completionHandler]] begin[{] return[call[.browseFromAsync, parameter[member[.cursor], literal[null], member[.completionHandler]]]] end[}] END[}]
Keyword[public] identifier[Request] identifier[browseFromAsync] operator[SEP] Keyword[final] annotation[@] identifier[NonNull] identifier[String] identifier[cursor] , annotation[@] identifier[Nullable] identifier[CompletionHandler] identifier[completionHandler] operator[SEP] { Keyword[return] identifier[browseF...
public CmsI18nInfo getI18nInfo(HttpServletRequest req, CmsUser user, CmsProject project, String resource) { CmsI18nInfo i18nInfo = null; // check if this is a request against a Workplace folder if (OpenCms.getSiteManager().isWorkplaceRequest(req)) { // The list of configured locali...
class class_name[name] begin[{] method[getI18nInfo, return_type[type[CmsI18nInfo]], modifier[public], parameter[req, user, project, resource]] begin[{] local_variable[type[CmsI18nInfo], i18nInfo] if[call[OpenCms.getSiteManager, parameter[]]] begin[{] local_variable[type[List...
Keyword[public] identifier[CmsI18nInfo] identifier[getI18nInfo] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[CmsUser] identifier[user] , identifier[CmsProject] identifier[project] , identifier[String] identifier[resource] operator[SEP] { identifier[CmsI18nInfo] identifier[i18nInfo...
private void compileDatabaseNode( VoltCompilerReader cannonicalDDLIfAny, Database previousDBIfAny, final List<VoltCompilerReader> ddlReaderList, final InMemoryJarfile jarOutput) throws VoltCompilerException { final ArrayList<Class<?>> class...
class class_name[name] begin[{] method[compileDatabaseNode, return_type[void], modifier[private], parameter[cannonicalDDLIfAny, previousDBIfAny, ddlReaderList, jarOutput]] begin[{] local_variable[type[ArrayList], classDependencies] local_variable[type[VoltDDLElementTracker], voltDdlTracker] ...
Keyword[private] Keyword[void] identifier[compileDatabaseNode] operator[SEP] identifier[VoltCompilerReader] identifier[cannonicalDDLIfAny] , identifier[Database] identifier[previousDBIfAny] , Keyword[final] identifier[List] operator[<] identifier[VoltCompilerReader] operator[>] identifier[ddlReaderList] , Keyword[fi...
long calculateTruncationOffset(SegmentProperties info, long highestCopiedOffset) { long truncateOffset = -1; if (highestCopiedOffset > 0) { // Due to the nature of compaction (all entries are copied in order of their original versions), if we encounter // any copied Table Entries...
class class_name[name] begin[{] method[calculateTruncationOffset, return_type[type[long]], modifier[default], parameter[info, highestCopiedOffset]] begin[{] local_variable[type[long], truncateOffset] if[binary_operation[member[.highestCopiedOffset], >, literal[0]]] begin[{] ...
Keyword[long] identifier[calculateTruncationOffset] operator[SEP] identifier[SegmentProperties] identifier[info] , Keyword[long] identifier[highestCopiedOffset] operator[SEP] { Keyword[long] identifier[truncateOffset] operator[=] operator[-] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[highestCop...
public boolean isGroupContainer(CmsObject cms) throws CmsException { if (m_resource == null) { initResource(cms); } return CmsResourceTypeXmlContainerPage.GROUP_CONTAINER_TYPE_NAME.equals( OpenCms.getResourceManager().getResourceType(m_resource).getTypeName()); }
class class_name[name] begin[{] method[isGroupContainer, return_type[type[boolean]], modifier[public], parameter[cms]] begin[{] if[binary_operation[member[.m_resource], ==, literal[null]]] begin[{] call[.initResource, parameter[member[.cms]]] else begin[{] None ...
Keyword[public] Keyword[boolean] identifier[isGroupContainer] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] Keyword[throws] identifier[CmsException] { Keyword[if] operator[SEP] identifier[m_resource] operator[==] Other[null] operator[SEP] { identifier[initResource] operator[SEP] id...
private String buildUrlName(final String host, final String port) { try { return "tango://" + TangoUrl.getCanonicalName(host) + ":" + port; } catch (DevFailed e) { return "tango://" + host + ":" + port; } }
class class_name[name] begin[{] method[buildUrlName, return_type[type[String]], modifier[private], parameter[host, port]] begin[{] TryStatement(block=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[],...
Keyword[private] identifier[String] identifier[buildUrlName] operator[SEP] Keyword[final] identifier[String] identifier[host] , Keyword[final] identifier[String] identifier[port] operator[SEP] { Keyword[try] { Keyword[return] literal[String] operator[+] identifier[TangoUrl] operator[SEP] identifier[g...
public static boolean hasAnnotation(final List<AnnotationInstance> annotations, final String annotationClaszName) { final DotName annotationName = DotName.createSimple(annotationClaszName); for (final AnnotationInstance annotation : annotations) { if (annotation.name().equals(annotationNa...
class class_name[name] begin[{] method[hasAnnotation, return_type[type[boolean]], modifier[public static], parameter[annotations, annotationClaszName]] begin[{] local_variable[type[DotName], annotationName] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInv...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasAnnotation] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[AnnotationInstance] operator[>] identifier[annotations] , Keyword[final] identifier[String] identifier[annotationClaszName] operator[SEP] { Keyword[final] identifier[Do...
public IfcAddressTypeEnum createIfcAddressTypeEnumFromString(EDataType eDataType, String initialValue) { IfcAddressTypeEnum result = IfcAddressTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType...
class class_name[name] begin[{] method[createIfcAddressTypeEnumFromString, return_type[type[IfcAddressTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcAddressTypeEnum], result] if[binary_operation[member[.result], ==, literal[null]]] begi...
Keyword[public] identifier[IfcAddressTypeEnum] identifier[createIfcAddressTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcAddressTypeEnum] identifier[result] operator[=] identifier[IfcAddressTypeEnum] opera...
void progress(int cur, int max) { StringBuilder out = new StringBuilder(); if (lastProgress != null) { char[] back = new char[lastProgress.length()]; Arrays.fill(back, '\b'); out.append(back); } String progress = cur + "/" + (max == -1 ? "?" : "" + max) + " " + (m...
class class_name[name] begin[{] method[progress, return_type[void], modifier[default], parameter[cur, max]] begin[{] local_variable[type[StringBuilder], out] if[binary_operation[member[.lastProgress], !=, literal[null]]] begin[{] local_variable[type[char], back] ...
Keyword[void] identifier[progress] operator[SEP] Keyword[int] identifier[cur] , Keyword[int] identifier[max] operator[SEP] { identifier[StringBuilder] identifier[out] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[lastProgress] o...
private void handleMsgIdCall(FunctionNode fn, MsgFallbackGroupNode msgNode) { ExprNode msgIdNode; long primaryMsgId = MsgUtils.computeMsgIdForDualFormat(msgNode.getChild(0)); if (msgNode.numChildren() == 1) { // easy peasy msgIdNode = createMsgIdNode(primaryMsgId, fn.getSourceLocation()); } ...
class class_name[name] begin[{] method[handleMsgIdCall, return_type[void], modifier[private], parameter[fn, msgNode]] begin[{] local_variable[type[ExprNode], msgIdNode] local_variable[type[long], primaryMsgId] if[binary_operation[call[msgNode.numChildren, parameter[]], ==, liter...
Keyword[private] Keyword[void] identifier[handleMsgIdCall] operator[SEP] identifier[FunctionNode] identifier[fn] , identifier[MsgFallbackGroupNode] identifier[msgNode] operator[SEP] { identifier[ExprNode] identifier[msgIdNode] operator[SEP] Keyword[long] identifier[primaryMsgId] operator[=] identifier[MsgUtils]...
private void validateResource(Patient thePatient) { /* * Our server will have a rule that patients must have a family name or we will reject them */ if (thePatient.getNameFirstRep().getFamilyFirstRep().isEmpty()) { OperationOutcome outcome = new OperationOutcome(); outcome.addIssue().setSeverity(IssueSe...
class class_name[name] begin[{] method[validateResource, return_type[void], modifier[private], parameter[thePatient]] begin[{] if[call[thePatient.getNameFirstRep, parameter[]]] begin[{] local_variable[type[OperationOutcome], outcome] call[outcome.addIssue, pa...
Keyword[private] Keyword[void] identifier[validateResource] operator[SEP] identifier[Patient] identifier[thePatient] operator[SEP] { Keyword[if] operator[SEP] identifier[thePatient] operator[SEP] identifier[getNameFirstRep] operator[SEP] operator[SEP] operator[SEP] identifier[getFamilyFirstRep] operator[SEP] ope...
public static void main(String[] args) { if (args.length == 0) { System.out.println( "Usage: SplittingBAMIndex [splitting BAM indices...]\n\n"+ "Writes a few statistics about each splitting BAM index."); return; } for (String arg : args) { final File f = new File(arg); if (f.isFile() && f.ca...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] if[binary_operation[member[args.length], ==, literal[0]]] begin[{] call[System.out.println, parameter[binary_operation[literal["Usage: SplittingBAMIndex [sp...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[if] operator[SEP] identifier[args] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { identifier[System] operator[SEP...
private String escapeUnrecognizedCharacters(String s) { // TODO(yitingwang) Move this method to a suitable place StringBuilder sb = new StringBuilder(); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); switch (c) { // From the SingleEscapeCharacter grammar production. ...
class class_name[name] begin[{] method[escapeUnrecognizedCharacters, return_type[type[String]], modifier[private], parameter[s]] begin[{] local_variable[type[StringBuilder], sb] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Variab...
Keyword[private] identifier[String] identifier[escapeUnrecognizedCharacters] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int]...
@Override protected void putVariables(Map<String, String> variables) { variables.put(ScopeFormat.SCOPE_TASK_VERTEX_ID, vertexId.toString()); variables.put(ScopeFormat.SCOPE_TASK_NAME, taskName); variables.put(ScopeFormat.SCOPE_TASK_ATTEMPT_ID, executionId.toString()); variables.put(ScopeFormat.SCOPE_TASK_ATTEM...
class class_name[name] begin[{] method[putVariables, return_type[void], modifier[protected], parameter[variables]] begin[{] call[variables.put, parameter[member[ScopeFormat.SCOPE_TASK_VERTEX_ID], call[vertexId.toString, parameter[]]]] call[variables.put, parameter[member[ScopeFo...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[putVariables] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[variables] operator[SEP] { identifier[variables] operator[SEP] identifier[put] operator[SEP] identifier[ScopeForma...
protected static File createTemporaryFile(@Nonnull final File file) { Check.notNull(file, "file"); final File tempFile = new File(file.getParent(), file.getName() + ".temp"); // remove orphaned temporary file deleteFile(tempFile); return tempFile; }
class class_name[name] begin[{] method[createTemporaryFile, return_type[type[File]], modifier[static protected], parameter[file]] begin[{] call[Check.notNull, parameter[member[.file], literal["file"]]] local_variable[type[File], tempFile] call[.deleteFile, parameter[memb...
Keyword[protected] Keyword[static] identifier[File] identifier[createTemporaryFile] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[File] identifier[file] operator[SEP] { identifier[Check] operator[SEP] identifier[notNull] operator[SEP] identifier[file] , literal[String] operator[SEP] ...
public static byte[] add(byte[] arr, int n) { int index = binarySearch(arr, n); byte[] arr2 = new byte[arr.length + 4]; System.arraycopy(arr, 0, arr2, 0, index); System.arraycopy(arr, index, arr2, index + 4, arr.length - index); Bytes.setInt(arr2, n, index); return arr2; ...
class class_name[name] begin[{] method[add, return_type[type[byte]], modifier[public static], parameter[arr, n]] begin[{] local_variable[type[int], index] local_variable[type[byte], arr2] call[System.arraycopy, parameter[member[.arr], literal[0], member[.arr2], literal[0], membe...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[add] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[arr] , Keyword[int] identifier[n] operator[SEP] { Keyword[int] identifier[index] operator[=] identifier[binarySearch] operator[SEP] identifier[arr] , iden...
public static void getMethods(Class superclass, Class[] interfaces, List methods) { getMethods(superclass, interfaces, methods, null, null); }
class class_name[name] begin[{] method[getMethods, return_type[void], modifier[public static], parameter[superclass, interfaces, methods]] begin[{] call[.getMethods, parameter[member[.superclass], member[.interfaces], member[.methods], literal[null], literal[null]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[getMethods] operator[SEP] identifier[Class] identifier[superclass] , identifier[Class] operator[SEP] operator[SEP] identifier[interfaces] , identifier[List] identifier[methods] operator[SEP] { identifier[getMethods] operator[SEP] identifier[superclass] ,...
public static RuntimeException initCause(RuntimeException ex, Throwable cause) { if (Throwable_initCause != null) { Object[] args = { cause }; try { Throwable_initCause.invoke(ex, args); } catch (Exception e) { ...
class class_name[name] begin[{] method[initCause, return_type[type[RuntimeException]], modifier[public static], parameter[ex, cause]] begin[{] if[binary_operation[member[.Throwable_initCause], !=, literal[null]]] begin[{] local_variable[type[Object], args] TryStatement(b...
Keyword[public] Keyword[static] identifier[RuntimeException] identifier[initCause] operator[SEP] identifier[RuntimeException] identifier[ex] , identifier[Throwable] identifier[cause] operator[SEP] { Keyword[if] operator[SEP] identifier[Throwable_initCause] operator[!=] Other[null] operator[SEP] { ide...
public Observable<ServiceResponse<ControllerConnectionDetailsListInner>> listConnectionDetailsWithServiceResponseAsync(String resourceGroupName, String name) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and canno...
class class_name[name] begin[{] method[listConnectionDetailsWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[ControllerConnectionDetailsListInner] operator[>] operator[>] identifier[listConnectionDetailsWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[na...
public LayoutScroller.ScrollableList getPageScrollable() { return new LayoutScroller.ScrollableList() { @Override public int getScrollingItemsCount() { return MultiPageWidget.super.getScrollingItemsCount(); } @Override public float g...
class class_name[name] begin[{] method[getPageScrollable, return_type[type[LayoutScroller]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MemberReference(member=M...
Keyword[public] identifier[LayoutScroller] operator[SEP] identifier[ScrollableList] identifier[getPageScrollable] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[LayoutScroller] operator[SEP] identifier[ScrollableList] operator[SEP] operator[SEP] { annotation[@] identifier[Overri...
@Override protected void denyImportDeclaration(ImportDeclaration importDeclaration) { LOG.debug("CXFImporter destroy a proxy for " + importDeclaration); ServiceRegistration serviceRegistration = map.get(importDeclaration); serviceRegistration.unregister(); // set the importDeclarati...
class class_name[name] begin[{] method[denyImportDeclaration, return_type[void], modifier[protected], parameter[importDeclaration]] begin[{] call[LOG.debug, parameter[binary_operation[literal["CXFImporter destroy a proxy for "], +, member[.importDeclaration]]]] local_variable[type[Servi...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[denyImportDeclaration] operator[SEP] identifier[ImportDeclaration] identifier[importDeclaration] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[importDeclaration] o...
private MethodSpec makeSetValue() { MethodSpec.Builder setter = MethodSpec.methodBuilder("setValue") .addModifiers(context.publicFinalModifiers()) .addParameter(vTypeVar, "value") .addParameter(vRefQueueType, "referenceQueue"); if (isStrongValues()) { setter.addStatement("$T.UNSAF...
class class_name[name] begin[{] method[makeSetValue, return_type[type[MethodSpec]], modifier[private], parameter[]] begin[{] local_variable[type[MethodSpec], setter] if[call[.isStrongValues, parameter[]]] begin[{] call[setter.addStatement, parameter[literal["$T.U...
Keyword[private] identifier[MethodSpec] identifier[makeSetValue] operator[SEP] operator[SEP] { identifier[MethodSpec] operator[SEP] identifier[Builder] identifier[setter] operator[=] identifier[MethodSpec] operator[SEP] identifier[methodBuilder] operator[SEP] literal[String] operator[SEP] operator[SEP] identifie...
public static Object fromJSON(String jsonString){ List<Token> tokens = Derulo.toTokens(jsonString); return fromJSON(tokens); }
class class_name[name] begin[{] method[fromJSON, return_type[type[Object]], modifier[public static], parameter[jsonString]] begin[{] local_variable[type[List], tokens] return[call[.fromJSON, parameter[member[.tokens]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[fromJSON] operator[SEP] identifier[String] identifier[jsonString] operator[SEP] { identifier[List] operator[<] identifier[Token] operator[>] identifier[tokens] operator[=] identifier[Derulo] operator[SEP] identifier[toTokens] operator[SEP] identifier[...
public SDVariable mmul(String name, SDVariable other, @NonNull MMulTranspose mMulTranspose) { return sameDiff.mmul(name, this, other, mMulTranspose); }
class class_name[name] begin[{] method[mmul, return_type[type[SDVariable]], modifier[public], parameter[name, other, mMulTranspose]] begin[{] return[call[sameDiff.mmul, parameter[member[.name], THIS[], member[.other], member[.mMulTranspose]]]] end[}] END[}]
Keyword[public] identifier[SDVariable] identifier[mmul] operator[SEP] identifier[String] identifier[name] , identifier[SDVariable] identifier[other] , annotation[@] identifier[NonNull] identifier[MMulTranspose] identifier[mMulTranspose] operator[SEP] { Keyword[return] identifier[sameDiff] operator[SEP] identif...
protected void loadInternal(Set<K> keys, Iterable<Data> dataKeys, boolean replaceExistingValues) { if (dataKeys == null) { dataKeys = convertToData(keys); } Map<Integer, List<Data>> partitionIdToKeys = getPartitionIdToKeysMap(dataKeys); Iterable<Entry<Integer, List<Data>>> en...
class class_name[name] begin[{] method[loadInternal, return_type[void], modifier[protected], parameter[keys, dataKeys, replaceExistingValues]] begin[{] if[binary_operation[member[.dataKeys], ==, literal[null]]] begin[{] assign[member[.dataKeys], call[.convertToData, para...
Keyword[protected] Keyword[void] identifier[loadInternal] operator[SEP] identifier[Set] operator[<] identifier[K] operator[>] identifier[keys] , identifier[Iterable] operator[<] identifier[Data] operator[>] identifier[dataKeys] , Keyword[boolean] identifier[replaceExistingValues] operator[SEP] { Keyword[if] op...
public Duration<U> multipliedBy(int factor) { if ( this.isEmpty() || (factor == 1) ) { return this; } else if (factor == 0) { return ofZero(); } else if (factor == -1) { return new Duration<>(this, true); } Lis...
class class_name[name] begin[{] method[multipliedBy, return_type[type[Duration]], modifier[public], parameter[factor]] begin[{] if[binary_operation[THIS[call[None.isEmpty, parameter[]]], ||, binary_operation[member[.factor], ==, literal[1]]]] begin[{] return[THIS[]] else beg...
Keyword[public] identifier[Duration] operator[<] identifier[U] operator[>] identifier[multipliedBy] operator[SEP] Keyword[int] identifier[factor] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[factor] ope...
public static <T, P> void forEachWith( Iterable<T> iterable, Procedure2<? super T, ? super P> procedure, P parameter) { if (iterable instanceof InternalIterable) { ((InternalIterable<T>) iterable).forEachWith(procedure, parameter); } el...
class class_name[name] begin[{] method[forEachWith, return_type[void], modifier[public static], parameter[iterable, procedure, parameter]] begin[{] if[binary_operation[member[.iterable], instanceof, type[InternalIterable]]] begin[{] Cast(expression=MemberReference(member...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[P] operator[>] Keyword[void] identifier[forEachWith] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] , identifier[Procedure2] operator[<] operator[?] Keyword[super] identifier[T] , operator[?] Keyword...
public void importAssetsFromGit(ProgressMonitor... monitors) throws IOException { if (inProgress) throw new IOException("Asset import already in progress..."); try { inProgress = true; getOut().println("Importing from Git into: " + getProjectDir() + "...(branch: " +...
class class_name[name] begin[{] method[importAssetsFromGit, return_type[void], modifier[public], parameter[monitors]] begin[{] if[member[.inProgress]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], valu...
Keyword[public] Keyword[void] identifier[importAssetsFromGit] operator[SEP] identifier[ProgressMonitor] operator[...] identifier[monitors] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[inProgress] operator[SEP] Keyword[throw] Keyword[new] identifier[IOException] ope...
public IfcCommunicationsApplianceTypeEnum createIfcCommunicationsApplianceTypeEnumFromString(EDataType eDataType, String initialValue) { IfcCommunicationsApplianceTypeEnum result = IfcCommunicationsApplianceTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The valu...
class class_name[name] begin[{] method[createIfcCommunicationsApplianceTypeEnumFromString, return_type[type[IfcCommunicationsApplianceTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcCommunicationsApplianceTypeEnum], result] if[binary_ope...
Keyword[public] identifier[IfcCommunicationsApplianceTypeEnum] identifier[createIfcCommunicationsApplianceTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcCommunicationsApplianceTypeEnum] identifier[result] ...
public static InputColumn<?> getIdentifyingInputColumn(final ComponentJob componentJob) { final ComponentDescriptor<?> descriptor = componentJob.getDescriptor(); final Set<ConfiguredPropertyDescriptor> inputProperties = descriptor.getConfiguredPropertiesForInput(false); if (inputProperties.size(...
class class_name[name] begin[{] method[getIdentifyingInputColumn, return_type[type[InputColumn]], modifier[public static], parameter[componentJob]] begin[{] local_variable[type[ComponentDescriptor], descriptor] local_variable[type[Set], inputProperties] if[binary_operation[call[...
Keyword[public] Keyword[static] identifier[InputColumn] operator[<] operator[?] operator[>] identifier[getIdentifyingInputColumn] operator[SEP] Keyword[final] identifier[ComponentJob] identifier[componentJob] operator[SEP] { Keyword[final] identifier[ComponentDescriptor] operator[<] operator[?] operator[>] ident...
public static void localListenByLine( int port, Map<String, SocketAction> actions, ExecutorService service) { localListen(port, actions, service, SocketAtom.class); }
class class_name[name] begin[{] method[localListenByLine, return_type[void], modifier[public static], parameter[port, actions, service]] begin[{] call[.localListen, parameter[member[.port], member[.actions], member[.service], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=,...
Keyword[public] Keyword[static] Keyword[void] identifier[localListenByLine] operator[SEP] Keyword[int] identifier[port] , identifier[Map] operator[<] identifier[String] , identifier[SocketAction] operator[>] identifier[actions] , identifier[ExecutorService] identifier[service] operator[SEP] { identifier[local...
public <R> R download(String uri, ContentHandler<BasicHttpResponse, R> handler) throws RedmineException { final URI requestUri = configurator.addAPIKey(uri); final HttpGet request = new HttpGet(requestUri); if (onBehalfOfUser != null) { request.addHeader("X-Redmine-Switch-User", onBehalfOf...
class class_name[name] begin[{] method[download, return_type[type[R]], modifier[public], parameter[uri, handler]] begin[{] local_variable[type[URI], requestUri] local_variable[type[HttpGet], request] if[binary_operation[member[.onBehalfOfUser], !=, literal[null]]] begin[{] ...
Keyword[public] operator[<] identifier[R] operator[>] identifier[R] identifier[download] operator[SEP] identifier[String] identifier[uri] , identifier[ContentHandler] operator[<] identifier[BasicHttpResponse] , identifier[R] operator[>] identifier[handler] operator[SEP] Keyword[throws] identifier[RedmineException] {...
public Navigate animate(@Nullable Transitions transition) { if (application != null) { throw new IllegalArgumentException( "You can't animate activity transition when using application context"); } this.transition = transition; return this; }
class class_name[name] begin[{] method[animate, return_type[type[Navigate]], modifier[public], parameter[transition]] begin[{] if[binary_operation[member[.application], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefi...
Keyword[public] identifier[Navigate] identifier[animate] operator[SEP] annotation[@] identifier[Nullable] identifier[Transitions] identifier[transition] operator[SEP] { Keyword[if] operator[SEP] identifier[application] operator[!=] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[Ill...
protected Object resolveExistsResource(String exp, Map<String, ? extends Object> contextMap, LaContainer container, Class<?> resultType) { if (exp.startsWith(EXISTS_BEGIN) && exp.endsWith(EXISTS_END)) { final String path = exp.substring(EXISTS_BEGIN.length(), exp.lastIndexOf(EXISTS_END))...
class class_name[name] begin[{] method[resolveExistsResource, return_type[type[Object]], modifier[protected], parameter[exp, contextMap, container, resultType]] begin[{] if[binary_operation[call[exp.startsWith, parameter[member[.EXISTS_BEGIN]]], &&, call[exp.endsWith, parameter[member[.EXISTS_E...
Keyword[protected] identifier[Object] identifier[resolveExistsResource] operator[SEP] identifier[String] identifier[exp] , identifier[Map] operator[<] identifier[String] , operator[?] Keyword[extends] identifier[Object] operator[>] identifier[contextMap] , identifier[LaContainer] identifier[container] , identifier[...
final void start() { _enabled = true; _ignoredSegs.clear(); _executor = Executors.newSingleThreadExecutor(new DaemonThreadFactory()); _executor.execute(this); }
class class_name[name] begin[{] method[start, return_type[void], modifier[final], parameter[]] begin[{] assign[member[._enabled], literal[true]] call[_ignoredSegs.clear, parameter[]] assign[member[._executor], call[Executors.newSingleThreadExecutor, parameter[Cla...
Keyword[final] Keyword[void] identifier[start] operator[SEP] operator[SEP] { identifier[_enabled] operator[=] literal[boolean] operator[SEP] identifier[_ignoredSegs] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[_executor] operator[=] identifier[Executors] operator[SEP] ide...
public static DynArray newArray(ExecutionContext context) { JSFunction ctor = (JSFunction) context.getGlobalContext().getObject().get(context, "__Builtin_Array"); return (DynArray) context.construct((Object) null, ctor); }
class class_name[name] begin[{] method[newArray, return_type[type[DynArray]], modifier[public static], parameter[context]] begin[{] local_variable[type[JSFunction], ctor] return[Cast(expression=MethodInvocation(arguments=[Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[static] identifier[DynArray] identifier[newArray] operator[SEP] identifier[ExecutionContext] identifier[context] operator[SEP] { identifier[JSFunction] identifier[ctor] operator[=] operator[SEP] identifier[JSFunction] operator[SEP] identifier[context] operator[SEP] identifier[getGlobalCon...
protected base_resource[] get_nitro_bulk_response(nitro_service service, String response) throws Exception { managed_device_responses result = (managed_device_responses) service.get_payload_formatter().string_to_resource(managed_device_responses.class, response); if(result.errorcode != 0) { if (result.er...
class class_name[name] begin[{] method[get_nitro_bulk_response, return_type[type[base_resource]], modifier[protected], parameter[service, response]] begin[{] local_variable[type[managed_device_responses], result] if[binary_operation[member[result.errorcode], !=, literal[0]]] begin[{] ...
Keyword[protected] identifier[base_resource] operator[SEP] operator[SEP] identifier[get_nitro_bulk_response] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[response] operator[SEP] Keyword[throws] identifier[Exception] { identifier[managed_device_responses] identifier...
public int run() { try { if ( compile ) { compile(); } String separator = "/"; String cpseperator = ":"; if (System.getProperty("os.name").contains("indows")){ separator = "\\"; cpseperator = ";"; } String s = fileName.replace(separator, "."); if ( ".java".equals(s.s...
class class_name[name] begin[{] method[run, return_type[type[int]], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=MemberReference(member=compile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=Blo...
Keyword[public] Keyword[int] identifier[run] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[compile] operator[SEP] { identifier[compile] operator[SEP] operator[SEP] operator[SEP] } identifier[String] identifier[separator] operator...
@Override public void onAdd(Response response) { String message = gson.toJson(response); try { ActiveMqUtils.sendMessage(message, buildQueueNames(response), environment); } catch (JMSException e) { logger.error("Failed to send response message to output queue.", e); } }
class class_name[name] begin[{] method[onAdd, return_type[void], modifier[public], parameter[response]] begin[{] local_variable[type[String], message] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=message, postfix_operators=[], prefix_oper...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onAdd] operator[SEP] identifier[Response] identifier[response] operator[SEP] { identifier[String] identifier[message] operator[=] identifier[gson] operator[SEP] identifier[toJson] operator[SEP] identifier[response] operator[SEP] operator...
@Override @JsonIgnore public Set<String> getPossibleUserAttributeNames(final IPersonAttributeDaoFilter filter) { final Set<String> rslt = new LinkedHashSet<>(); for (final AttributeRule rule : this.rules) { final Set<String> possibleUserAttributeNames = rule.getPossibleUserAttribute...
class class_name[name] begin[{] method[getPossibleUserAttributeNames, return_type[type[Set]], modifier[public], parameter[filter]] begin[{] local_variable[type[Set], rslt] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
annotation[@] identifier[Override] annotation[@] identifier[JsonIgnore] Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getPossibleUserAttributeNames] operator[SEP] Keyword[final] identifier[IPersonAttributeDaoFilter] identifier[filter] operator[SEP] { Keyword[final] identif...
protected void printFailureHeader(PdfTemplate template, float x, float y) { Font f = DebugHelper.debugFontLink(template, getSettings()); Chunk c = new Chunk(getSettings().getProperty("failures in report, see end of report", "failureheader"), f); ColumnText.showTextAligned(template, Element.ALIGN_LEFT,...
class class_name[name] begin[{] method[printFailureHeader, return_type[void], modifier[protected], parameter[template, x, y]] begin[{] local_variable[type[Font], f] local_variable[type[Chunk], c] call[ColumnText.showTextAligned, parameter[member[.template], member[Element.ALIGN_...
Keyword[protected] Keyword[void] identifier[printFailureHeader] operator[SEP] identifier[PdfTemplate] identifier[template] , Keyword[float] identifier[x] , Keyword[float] identifier[y] operator[SEP] { identifier[Font] identifier[f] operator[=] identifier[DebugHelper] operator[SEP] identifier[debugFontLink] ope...
public InstanceID registerTaskManager( TaskManagerGateway taskManagerGateway, TaskManagerLocation taskManagerLocation, HardwareDescription resources, int numberOfSlots) { synchronized (this.lock) { if (this.isShutdown) { throw new IllegalStateException("InstanceManager is shut down."); } ...
class class_name[name] begin[{] method[registerTaskManager, return_type[type[InstanceID]], modifier[public], parameter[taskManagerGateway, taskManagerLocation, resources, numberOfSlots]] begin[{] SYNCHRONIZED[THIS[member[None.lock]]] BEGIN[{] if[THIS[member[None.isShutdo...
Keyword[public] identifier[InstanceID] identifier[registerTaskManager] operator[SEP] identifier[TaskManagerGateway] identifier[taskManagerGateway] , identifier[TaskManagerLocation] identifier[taskManagerLocation] , identifier[HardwareDescription] identifier[resources] , Keyword[int] identifier[numberOfSlots] operato...
public void addBiasParam(@NonNull String paramKey, @NonNull long... paramShape) { Preconditions.checkArgument(paramShape.length > 0, "Provided mia- parameter shape is" + " invalid: length 0 provided for shape. Parameter: " + paramKey); biasParams.put(paramKey, paramShape); ...
class class_name[name] begin[{] method[addBiasParam, return_type[void], modifier[public], parameter[paramKey, paramShape]] begin[{] call[Preconditions.checkArgument, parameter[binary_operation[member[paramShape.length], >, literal[0]], binary_operation[binary_operation[literal["Provided mia- pa...
Keyword[public] Keyword[void] identifier[addBiasParam] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[paramKey] , annotation[@] identifier[NonNull] Keyword[long] operator[...] identifier[paramShape] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkArgument] ...
@Nullable @CheckReturnValue public static String trimStartAndEnd (@Nullable final String sSrc, @Nullable final String sValueToTrim) { return trimStartAndEnd (sSrc, sValueToTrim, sValueToTrim); }
class class_name[name] begin[{] method[trimStartAndEnd, return_type[type[String]], modifier[public static], parameter[sSrc, sValueToTrim]] begin[{] return[call[.trimStartAndEnd, parameter[member[.sSrc], member[.sValueToTrim], member[.sValueToTrim]]]] end[}] END[}]
annotation[@] identifier[Nullable] annotation[@] identifier[CheckReturnValue] Keyword[public] Keyword[static] identifier[String] identifier[trimStartAndEnd] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sSrc] , annotation[@] identifier[Nullable] Keyword[final] identifier...
public void setItems(java.util.Collection<RestApi> items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList<RestApi>(items); }
class class_name[name] begin[{] method[setItems, return_type[void], modifier[public], parameter[items]] begin[{] if[binary_operation[member[.items], ==, literal[null]]] begin[{] assign[THIS[member[None.items]], literal[null]] return[None] else begin[{...
Keyword[public] Keyword[void] identifier[setItems] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[RestApi] operator[>] identifier[items] operator[SEP] { Keyword[if] operator[SEP] identifier[items] operator[==] Other[null] operator[SEP] {...
public void assignProvidedProperties(final ComponentDescriptor<?> descriptor, final Object component) { final Set<ProvidedPropertyDescriptor> providedDescriptors = descriptor.getProvidedProperties(); for (final ProvidedPropertyDescriptor providedDescriptor : providedDescriptors) { final Inj...
class class_name[name] begin[{] method[assignProvidedProperties, return_type[void], modifier[public], parameter[descriptor, component]] begin[{] local_variable[type[Set], providedDescriptors] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], decla...
Keyword[public] Keyword[void] identifier[assignProvidedProperties] operator[SEP] Keyword[final] identifier[ComponentDescriptor] operator[<] operator[?] operator[>] identifier[descriptor] , Keyword[final] identifier[Object] identifier[component] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifi...
public static boolean isExpectedException(final Class<? extends Exception> expectedClass, final String expectedMessage, final Exception ex) { if (!isExpectedType(expectedClass, ex)) { return false; } if ((expectedClass != null) && (expectedMessage != null) && (ex != null)...
class class_name[name] begin[{] method[isExpectedException, return_type[type[boolean]], modifier[public static], parameter[expectedClass, expectedMessage, ex]] begin[{] if[call[.isExpectedType, parameter[member[.expectedClass], member[.ex]]]] begin[{] return[literal[false]] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isExpectedException] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Exception] operator[>] identifier[expectedClass] , Keyword[final] identifier[String] identifier[expectedMessage] , Keyword[final] identifi...
protected void addPathValue(Document doc, String fieldName, Object pathString) { doc.add(createFieldWithoutNorms(fieldName, pathString.toString(), PropertyType.PATH)); }
class class_name[name] begin[{] method[addPathValue, return_type[void], modifier[protected], parameter[doc, fieldName, pathString]] begin[{] call[doc.add, parameter[call[.createFieldWithoutNorms, parameter[member[.fieldName], call[pathString.toString, parameter[]], member[PropertyType.PATH]]]]]...
Keyword[protected] Keyword[void] identifier[addPathValue] operator[SEP] identifier[Document] identifier[doc] , identifier[String] identifier[fieldName] , identifier[Object] identifier[pathString] operator[SEP] { identifier[doc] operator[SEP] identifier[add] operator[SEP] identifier[createFieldWithoutNorms] ope...
public static void moveFile(File srcFile, File destFile) throws IOException { if (srcFile == null) { throw new NullPointerException("Source must not be null"); } if (destFile == null) { throw new NullPointerException("Destination must not be null"); } if (!srcFile.exists()) { throw...
class class_name[name] begin[{] method[moveFile, return_type[void], modifier[public static], parameter[srcFile, destFile]] begin[{] if[binary_operation[member[.srcFile], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pref...
Keyword[public] Keyword[static] Keyword[void] identifier[moveFile] operator[SEP] identifier[File] identifier[srcFile] , identifier[File] identifier[destFile] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[srcFile] operator[==] Other[null] operator[SEP] { ...
public void paint (Graphics2D gfx, int layer, Shape clip) { for (int ii = 0, nn = _media.size(); ii < nn; ii++) { AbstractMedia media = _media.get(ii); int order = media.getRenderOrder(); try { if (((layer == ALL) || (layer == FRONT && order >= 0) || ...
class class_name[name] begin[{] method[paint, return_type[void], modifier[public], parameter[gfx, layer, clip]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argument...
Keyword[public] Keyword[void] identifier[paint] operator[SEP] identifier[Graphics2D] identifier[gfx] , Keyword[int] identifier[layer] , identifier[Shape] identifier[clip] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[ii] operator[=] Other[0] , identifier[nn] operator[=] identifier[_media]...
@Pure public N getChildAt(IcosepQuadTreeZone zone) { if (zone == IcosepQuadTreeZone.ICOSEP) { return this.nicosep; } return getChildAt(zone.toQuadTreeZone()); }
class class_name[name] begin[{] method[getChildAt, return_type[type[N]], modifier[public], parameter[zone]] begin[{] if[binary_operation[member[.zone], ==, member[IcosepQuadTreeZone.ICOSEP]]] begin[{] return[THIS[member[None.nicosep]]] else begin[{] None end[}] ...
annotation[@] identifier[Pure] Keyword[public] identifier[N] identifier[getChildAt] operator[SEP] identifier[IcosepQuadTreeZone] identifier[zone] operator[SEP] { Keyword[if] operator[SEP] identifier[zone] operator[==] identifier[IcosepQuadTreeZone] operator[SEP] identifier[ICOSEP] operator[SEP] { Keyw...
static double luma( double color ) { long argb = Double.doubleToRawLongBits( color ); double r = ((argb >> 32) & 0xFFFF) / (double)0xFF00; double g = ((argb >> 16) & 0xFFFF) / (double)0xFF00; double b = ((argb) & 0xFFFF) / (double)0xFF00; r = (r <= 0.03928) ? r / 12.92 : Math.po...
class class_name[name] begin[{] method[luma, return_type[type[double]], modifier[static], parameter[color]] begin[{] local_variable[type[long], argb] local_variable[type[double], r] local_variable[type[double], g] local_variable[type[double], b] assign[member[.r]...
Keyword[static] Keyword[double] identifier[luma] operator[SEP] Keyword[double] identifier[color] operator[SEP] { Keyword[long] identifier[argb] operator[=] identifier[Double] operator[SEP] identifier[doubleToRawLongBits] operator[SEP] identifier[color] operator[SEP] operator[SEP] Keyword[double] identifier[r] op...
public static void remove(Registry registry, Id id) { Object obj = registry.state().get(id); if (obj instanceof AbstractMeterState) { registry.state().remove(id, obj); } }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public static], parameter[registry, id]] begin[{] local_variable[type[Object], obj] if[binary_operation[member[.obj], instanceof, type[AbstractMeterState]]] begin[{] call[registry.state, p...
Keyword[public] Keyword[static] Keyword[void] identifier[remove] operator[SEP] identifier[Registry] identifier[registry] , identifier[Id] identifier[id] operator[SEP] { identifier[Object] identifier[obj] operator[=] identifier[registry] operator[SEP] identifier[state] operator[SEP] operator[SEP] operator[SEP] i...
public final <T> T parse(Class<T> destinationClass) throws IOException { return parse(destinationClass, null); }
class class_name[name] begin[{] method[parse, return_type[type[T]], modifier[final public], parameter[destinationClass]] begin[{] return[call[.parse, parameter[member[.destinationClass], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[final] operator[<] identifier[T] operator[>] identifier[T] identifier[parse] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[destinationClass] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[parse] operator[SEP] identifie...
@Override public IntegerMapper build(String field) { return new IntegerMapper(field, column, validated, boost); }
class class_name[name] begin[{] method[build, return_type[type[IntegerMapper]], modifier[public], parameter[field]] begin[{] return[ClassCreator(arguments=[MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=column, postfix_operator...
annotation[@] identifier[Override] Keyword[public] identifier[IntegerMapper] identifier[build] operator[SEP] identifier[String] identifier[field] operator[SEP] { Keyword[return] Keyword[new] identifier[IntegerMapper] operator[SEP] identifier[field] , identifier[column] , identifier[validated] , identifier[boo...
public void stop(boolean completeClear) { final String methodName = "stop()"; if (this.invalidationBuffer.isBackgroundInvalidationInProgress()) { this.invalidationBuffer.setLoopOnce(true); if (this.invalidationBuffer.isCleanupPending()) { this.invalidationBuffer.r...
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[completeClear]] begin[{] local_variable[type[String], methodName] if[THIS[member[None.invalidationBuffer]call[None.isBackgroundInvalidationInProgress, parameter[]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[stop] operator[SEP] Keyword[boolean] identifier[completeClear] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[invalidationBuffer] operator[...
public CreateRouteRequest withRequestParameters(java.util.Map<String, ParameterConstraints> requestParameters) { setRequestParameters(requestParameters); return this; }
class class_name[name] begin[{] method[withRequestParameters, return_type[type[CreateRouteRequest]], modifier[public], parameter[requestParameters]] begin[{] call[.setRequestParameters, parameter[member[.requestParameters]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[CreateRouteRequest] identifier[withRequestParameters] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[ParameterConstraints] operator[>] identifier[requestParameters] operator[SEP] { identifier[setR...
public alluxio.grpc.TtlAction getTtlAction() { alluxio.grpc.TtlAction result = alluxio.grpc.TtlAction.valueOf(ttlAction_); return result == null ? alluxio.grpc.TtlAction.DELETE : result; }
class class_name[name] begin[{] method[getTtlAction, return_type[type[alluxio]], modifier[public], parameter[]] begin[{] local_variable[type[alluxio], result] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[TtlAction] identifier[getTtlAction] operator[SEP] operator[SEP] { identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[TtlAction] identifier[result] operator[=] identifier[alluxio] operator[SEP] ide...
private static String unsignedIntToString(int x, int radix) { long asLong = x & INT_MASK; return Long.toString(asLong, radix); }
class class_name[name] begin[{] method[unsignedIntToString, return_type[type[String]], modifier[private static], parameter[x, radix]] begin[{] local_variable[type[long], asLong] return[call[Long.toString, parameter[member[.asLong], member[.radix]]]] end[}] END[}]
Keyword[private] Keyword[static] identifier[String] identifier[unsignedIntToString] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[radix] operator[SEP] { Keyword[long] identifier[asLong] operator[=] identifier[x] operator[&] identifier[INT_MASK] operator[SEP] Keyword[return] identifier[Long]...
@VisibleForTesting String getOverridenHost() { URI uri = GrpcUtil.authorityToUri(defaultAuthority); if (uri.getHost() != null) { return uri.getHost(); } return defaultAuthority; }
class class_name[name] begin[{] method[getOverridenHost, return_type[type[String]], modifier[default], parameter[]] begin[{] local_variable[type[URI], uri] if[binary_operation[call[uri.getHost, parameter[]], !=, literal[null]]] begin[{] return[call[uri.getHost, parameter[]]]...
annotation[@] identifier[VisibleForTesting] identifier[String] identifier[getOverridenHost] operator[SEP] operator[SEP] { identifier[URI] identifier[uri] operator[=] identifier[GrpcUtil] operator[SEP] identifier[authorityToUri] operator[SEP] identifier[defaultAuthority] operator[SEP] operator[SEP] Keyword[if] op...
private List<Map<String, String>> marshall(IPermission[] data) { // Assertions. if (data == null) { String msg = "Argument 'data' cannot be null"; throw new IllegalArgumentException(msg); } List<Map<String, String>> rslt = new ArrayList<Map<String, String>>(data...
class class_name[name] begin[{] method[marshall, return_type[type[List]], modifier[private], parameter[data]] begin[{] if[binary_operation[member[.data], ==, literal[null]]] begin[{] local_variable[type[String], msg] ThrowStatement(expression=ClassCreator(arguments=[Memb...
Keyword[private] identifier[List] operator[<] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] operator[>] identifier[marshall] operator[SEP] identifier[IPermission] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[==...
private void _emitMarkedLines (final MarkdownHCStack aOut, final Line aLines) { final StringBuilder aIn = new StringBuilder (); Line aLine = aLines; while (aLine != null) { if (!aLine.m_bIsEmpty) { aIn.append (aLine.m_sValue.substring (aLine.m_nLeading, aLine.m_sValue.length () - a...
class class_name[name] begin[{] method[_emitMarkedLines, return_type[void], modifier[private], parameter[aOut, aLines]] begin[{] local_variable[type[StringBuilder], aIn] local_variable[type[Line], aLine] while[binary_operation[member[.aLine], !=, literal[null]]] begin[{] ...
Keyword[private] Keyword[void] identifier[_emitMarkedLines] operator[SEP] Keyword[final] identifier[MarkdownHCStack] identifier[aOut] , Keyword[final] identifier[Line] identifier[aLines] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[aIn] operator[=] Keyword[new] identifier[StringBuilder] o...
private OriginalMapping getOriginalMappingForEntry(Entry entry) { if (entry.getSourceFileId() == UNMAPPED) { return null; } else { // Adjust the line/column here to be start at 1. Builder x = OriginalMapping.newBuilder() .setOriginalFile(sources[entry.getSourceFileId()]) .setLi...
class class_name[name] begin[{] method[getOriginalMappingForEntry, return_type[type[OriginalMapping]], modifier[private], parameter[entry]] begin[{] if[binary_operation[call[entry.getSourceFileId, parameter[]], ==, member[.UNMAPPED]]] begin[{] return[literal[null]] else begi...
Keyword[private] identifier[OriginalMapping] identifier[getOriginalMappingForEntry] operator[SEP] identifier[Entry] identifier[entry] operator[SEP] { Keyword[if] operator[SEP] identifier[entry] operator[SEP] identifier[getSourceFileId] operator[SEP] operator[SEP] operator[==] identifier[UNMAPPED] operator[SEP] ...
public URL findResourceURL(String resourcePath, String versionRange) { //if (ClassServiceBootstrap.repositoryAdmin == null) // return null; URL url = this.getResourceFromBundle(null, resourcePath, versionRange); if (url == null) { Object resource = this.deployThisRes...
class class_name[name] begin[{] method[findResourceURL, return_type[type[URL]], modifier[public], parameter[resourcePath, versionRange]] begin[{] local_variable[type[URL], url] if[binary_operation[member[.url], ==, literal[null]]] begin[{] local_variable[type[Object], resour...
Keyword[public] identifier[URL] identifier[findResourceURL] operator[SEP] identifier[String] identifier[resourcePath] , identifier[String] identifier[versionRange] operator[SEP] { identifier[URL] identifier[url] operator[=] Keyword[this] operator[SEP] identifier[getResourceFromBundle] operator[SEP] Other[null] ...