language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public void createSitemapSubEntry(final CmsClientSitemapEntry parent, final String sitemapFolderType) { CmsSitemapTreeItem item = CmsSitemapTreeItem.getItemById(parent.getId()); AsyncCallback<CmsClientSitemapEntry> callback = new AsyncCallback<CmsClientSitemapEntry>() { public void onFailu...
python
def match_operators(inp, relate, cut): """ Compare two items. Match a string operator to an operator function :param str inp: Comparison item :param str relate: Comparison operator :param any cut: Comparison item :return bool truth: Comparison truth """ logger_misc.info("enter match_ope...
python
def connectQ2Q(self, fromAddress, toAddress, protocolName, protocolFactory, usePrivateCertificate=None, fakeFromDomain=None, chooser=None): """ Connect a named protocol factory from a resource@domain to a resource@domain. This is analagous to someth...
python
def fetch_watch_info(self): """ This method should be called before accessing :attr:`watch_info`, :attr:`firmware_version` or :attr:`watch_platform`. Blocks until it has fetched the required information. """ self._watch_info = self.send_and_read(WatchVersion(data=WatchVersionRequ...
python
def post_process_message(self, message): """Called by worker threads whenever they're done processing individual messages, signaling that each message is ready to be acked or rejected. """ while True: try: if message.failed: self.lo...
python
def roll_dice(roll, *, functions=True, floats=True): """ Rolls dice in dice notation with advanced syntax used according to tinyurl.com/pydice :param roll: Roll in dice notation :return: Result of roll, and an explanation string """ roll = ''.join(roll.split()) roll = regex.sub(r'(?<=d)%', ...
python
def GetFailedTasks(self): """Retrieves all failed tasks. Failed tasks are tasks that were abandoned and have no retry task once the foreman is done processing. Returns: list[Task]: tasks. """ # TODO: add check to determine foreman is done processing. with self._lock: return [t...
java
public static PrivateKey loadPrivateKey(String privateKeyStr) throws Exception { try { byte[] buffer = base64.decode(privateKeyStr); // X509EncodedKeySpec keySpec = new X509EncodedKeySpec(buffer); PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(buffer); KeyFactory keyFactory = KeyFactory.getInstance...
java
public void append(final LoggingEvent event) { boolean isBufferSpaceAvailable = (batcher.isSpaceAvailable() && (logSummaryMap .size() == 0)); boolean isBufferPutSuccessful = false; LocationInfo locationInfo = null; // Reject it when we have a fast property as these can be...
java
protected byte[] I2OSP(BigInteger x, int xLen) { if (x == null) { throw new IllegalArgumentException("x"); } if (xLen <= 0) { throw new IllegalArgumentException("xLen"); } if (x.compareTo(TWO_FIVE_SIX.pow(xLen)) == 1) { throw new IllegalArgu...
python
def OnTableChanged(self, event): """Table changed event handler""" if hasattr(event, 'table'): self.SetValue(event.table) wx.TextCtrl.SetInsertionPoint(self, self.cursor_pos) event.Skip()
python
def prompt_for_credentials(username): '''Prompt `username` for password. Parameters ---------- username: str name of the TissueMAPS user Returns ------- str password for the given user ''' message = 'Enter password for user "{0}": '.format(username) password = ...
java
public void marshall(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteEventSubscriptionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
java
public int read(byte[] b, int off, int len) throws IOException { int n; if (first == null) { n = super.read(b, off, len); } else { n = -1; } if (jv != null) { jv.update(n, b, off, len, mev); } return n; }
python
def query_str(ifo, flag_str, start_time, end_time, server="segments.ligo.org", veto_definer=None): """ Query for flags based on a special str syntax Parameters ---------- ifo: str The ifo to be mainly quering for. (may be overriden in syntax) flag_str: str Specificatio...
python
def endpoint_activate( endpoint_id, myproxy, myproxy_username, myproxy_password, myproxy_lifetime, web, no_browser, delegate_proxy, proxy_lifetime, no_autoactivate, force, ): """ Executor for `globus endpoint activate` """ default_myproxy_username = lookup_opt...
python
def route_to_alt_domain(request, url): """Route URL to a different subdomain. Used to rewrite URLs to point to websocket serving domain. """ # Do we need to route IPython Notebook request from a different location alternative_domain = request.registry.settings.get("pyramid_notebook.alternative_dom...
python
def remove_unused_directories(src_folder, categories): """ list all directories. Remove all that are not in categories list (excluding background noise) :param src_folder: :param categories: :return: """ files = os.listdir(src_folder) os.mkdir("unused") for name in files: full_path = os.path.joi...
java
public static Map<String, double[]> getLogSwaprateDerivative(TimeDiscretizationInterface liborPeriodDiscretization, DiscountCurveInterface discountCurveInterface, ForwardCurveInterface forwardCurveInterface, double[] swapTenor) { /* * Small workaround for the case that the discount curve is not set. This part will...
java
public static int find(byte[] arra, int start, int limit, byte[] arrb) { int k = start; limit = limit - arrb.length + 1; int value = arrb[0]; for (; k < limit; k++) { if (arra[k] == value) { if (arrb.length == 1) { return k; ...
java
public double getProbability(String str) { double score = 0; String[] toks = str.split("\\s+"); if(toks.length<n-1) return 0.0; LinkedList<Integer> n1gramList = new LinkedList<Integer>(); int i=0; n1gramList.add(-1); for(;i<n-1;i++){ int idx = wordDict.lookupIndex(toks[i]); n1gramList.add(idx)...
python
def enumerate_version_changelog(self, url, versions_estimated, timeout=15, headers={}): """ If we have a changelog in store for this CMS, this function will be called, and a changelog will be used for narrowing down which version is installed. If the changelog's version is ou...
java
public void write(License license, IOFormat format) throws IOException { switch (format) { case BINARY: os.write(license.serialized()); return; case BASE64: os.write(Base64.getEncoder().encode(license.serialized())); return;...
python
def p2pkh_input(outpoint, sig, pubkey, sequence=0xFFFFFFFE): ''' OutPoint, hex_string, hex_string, int -> TxIn Create a signed legacy TxIn from a p2pkh prevout ''' stack_script = '{sig} {pk}'.format(sig=sig, pk=pubkey) stack_script = script_ser.serialize(stack_script) return tb.make_legacy_i...
python
def assign_selective_dynamics(self, slab): """ Helper function to assign selective dynamics site_properties based on surface, subsurface site properties Args: slab (Slab): slab for which to assign selective dynamics """ sd_list = [] sd_list = [[False,...
python
def add_well(self, well_x, well_y, start_x, start_y): """Add well with associated scan fields. ``self.wells[0]`` and ``self.fields[0]`` will be used as base. ScanWellData will be added to ScanWellArray and ScanFieldData to ScanFieldArray. The amount of fields added is decided by Properti...
python
def connect_checkable_button(instance, prop, widget): """ Connect a boolean callback property with a Qt button widget. Parameters ---------- instance : object The class instance that the callback property is attached to prop : str The name of the callback property widget : Q...
python
def avail_images(kwargs=None, call=None): ''' Return a dict of all available VM images on the cloud provider. ''' if call == 'action': raise SaltCloudSystemExit( 'The avail_images function must be called with ' '-f or --function, or with the --list-images option' ...
java
boolean checkName(final INodeReadTrx paramNewRtx, final INodeReadTrx paramOldRtx) { assert paramNewRtx != null; assert paramOldRtx != null; boolean found = false; if (paramNewRtx.getNode().getKind() == paramOldRtx.getNode().getKind()) { switch (paramNewRtx.getNode().getKind()...
java
public void addFeedbackEdge(StreamTransformation<T> transform) { if (transform.getParallelism() != this.getParallelism()) { throw new UnsupportedOperationException( "Parallelism of the feedback stream must match the parallelism of the original" + " stream. Parallelism of original stream: " + this.getP...
java
public static String getHavePathSelfConfig(IConfigKeyWithPath key) { String configAbsoluteClassPath = key.getConfigPath(); return getSelfConfig(configAbsoluteClassPath, key); }
java
@Override public void registerHost(final String host, final String id) { final ZooKeeperClient client = provider.get("registerHost"); try { ZooKeeperRegistrarUtil.registerHost(client, Paths.configHostId(host), host, id); } catch (Exception e) { throw new HeliosRuntimeException("registering hos...
python
def _check_align(self): """Check if alignment has been specified, set default one if not """ if not hasattr(self, "_align"): self._align = ["l"]*self._row_size if not hasattr(self, "_valign"): self._valign = ["t"]*self._row_size
java
public int writeAndRefresh() { try { if (m_recordToUpdate != null) if (m_recordToUpdate.isModified(true)) { if (m_bRefreshAfterUpdate) m_recordToUpdate.writeAndRefresh(); else { ...
java
public Map<String, String> results(OutputVariable outputVariable, TimeUnit timeUnit, boolean includeTimes) { if (engine == null) { throw new RuntimeException("[benchmark error] engine not set for benchmark"); } double[] runtimes = new double[times.size()]; for (int i = 0; i ...
python
def create_widget(self): """ Create the underlying widget. """ d = self.declaration self.widget = ToggleButton(self.get_context(), None, d.style or "@attr/buttonStyleToggle")
python
def check_size(s): """ Check and parse size specs as either a single [s] or a list of [s,s,s,...] """ s = check_1d(s, "size") if any(map(lambda d: d <= 0, s)): raise Exception('Size cannot be 0 or negative') return s
java
protected String createSQLStatement() throws EFapsException { final SQLSelect select = new SQLSelect() .column(0, "ID") .from(getBaseType().getMainTable().getSqlTable(), 0); // if the main table has a column for the type it is selected also if (getBaseType()....
python
def start(self, on_exit_callback=None): """ Start the Engel application by initializing all registered services and starting an Autobahn IOLoop. :param on_exit_callback: Callback triggered on application exit """ # TODO: Support params for services by mapping {servicename: {clas...
python
def queue_build(self, build, project, ignore_warnings=None, check_in_ticket=None, source_build_id=None): """QueueBuild. Queues a build :param :class:`<Build> <azure.devops.v5_0.build.models.Build>` build: :param str project: Project ID or project name :param bool ignore_warnings:...
java
public Note createMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, String body) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true); Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrP...
python
def vertex_colors(self, values): """ Set the colors for each vertex of a mesh This will apply these colors and delete any previously specified color information. Parameters ------------ colors: (len(mesh.vertices), 3), set each face to the color ...
java
public Object get( int row, int col ) { return (dstore == null) ? null : dstore.get(row, col); }
python
def calc_ea_sm_v1(self): """Calculate soil evaporation and update soil moisture. Required control parameters: |NmbZones| |ZoneType| |FC| |LP| |ERed| Required fluxes sequences: |EPC| |EI| Required state sequence: |SP| Calculated flux sequence: ...
java
public boolean awaitTermination(long timeout) throws InterruptedException { final String methodName = "awaitTermination"; logger.entry(methodName); final boolean terminated; if (bootstrap != null) { terminated = bootstrap.group().awaitTermination(timeout, TimeUnit.SECONDS); ...
java
public static KV<String, SmartForest<List<String>>> remove(String key) { KV<String, SmartForest<List<String>>> kv = SYNONYMS.get(key); if (kv != null && kv.getV() != null) { //先清空后删除 kv.getV().clear(); } MyStaticValue.ENV.remove(key); return SYNONYMS.remove(key); ...
java
public static Object parseWithException(String s) throws ParseException { return new JSONParser(DEFAULT_PERMISSIVE_MODE).parse(s, defaultReader.DEFAULT); }
java
public void marshall(DeleteSkillGroupRequest deleteSkillGroupRequest, ProtocolMarshaller protocolMarshaller) { if (deleteSkillGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteSkil...
python
def set_adaptive(self, value: bool = True): """Change the histogram binning to (non)adaptive. This requires binning in all dimensions to allow this. """ # TODO: remove in favour of adaptive property if not all(b.adaptive_allowed for b in self._binnings): raise Runtim...
python
def get_channelstate_closed( chain_state: ChainState, payment_network_id: PaymentNetworkID, token_address: TokenAddress, ) -> List[NettingChannelState]: """Return the state of closed channels in a token network.""" return get_channelstate_filter( chain_state, payment_netw...
python
def fit(self, X, y): """ Pretend to be a sklearn estimator, fit is called on creation """ # note that GLM takes endog (y) and then exog (X): # this is the reverse of sklearn's methods self.glm_model = self.glm_partial(y, X) self.glm_results = self.glm_model.fit()...
python
def get_block_by_header(self, block_header: BlockHeader) -> BaseBlock: """ Returns the requested block as specified by the block header. """ vm = self.get_vm(block_header) return vm.block
java
static String[] getProp(final Map<String, String[]> prop, final String propertyName) { String[] result = null; if (prop != null) { for (final Entry<String, String[]> entry : prop.entrySet()) { if (entry.getKey().equalsIgnoreCase(propertyName)) { result = e...
java
public void setSelectorColor(int selectorColor) { this.mSelectorColor = selectorColor; this.mSelectorFilter = new PorterDuffColorFilter(Color.argb(mSelectorAlpha, Color.red(mSelectorColor), Color.green(mSelectorColor), Color.blue(mSelectorColor)), PorterDuff.Mode.SRC_ATOP); this.invalidate(); ...
python
def p_expression_uminus(self, p): 'expression : MINUS expression %prec UMINUS' p[0] = Uminus(p[2], lineno=p.lineno(1)) p.set_lineno(0, p.lineno(1))
java
public void addByeCommand() { StringBuilder buf = new StringBuilder(); buf.append("(bye)"); fifo.add(fifo.size(), buf.toString()); }
python
def create_command( principal, permissions, endpoint_plus_path, notify_email, notify_message ): """ Executor for `globus endpoint permission create` """ if not principal: raise click.UsageError("A security principal is required for this command") endpoint_id, path = endpoint_plus_path ...
java
public final void setPageDescriptor(PageDescriptor pageDescriptor) { Assert.notNull(pageDescriptor, "pageDescriptor"); setId(pageDescriptor.getId()); setLabel(pageDescriptor.getShowPageCommandLabel()); setIcon(pageDescriptor.getIcon()); setCaption(pageDescriptor.getCaption()); ...
java
public void appendXMLToTable(final XMLUtil util, final Appendable appendable, final int count) throws IOException { appendable.append("<table:table-column"); util.appendEAttribute(appendable, "table:style-name", this.name); if (count > 1) util.appendAttribute(appendable, "table:n...
java
public boolean detectBlackBerryHigh() { //Disambiguate for BlackBerry OS 6 or 7 (WebKit) browser if (detectBlackBerryWebKit()) { return false; } if (detectBlackBerry()) { if (detectBlackBerryTouch() || (userAgent.indexOf(deviceBBBold) != -...
java
public int computeNextStatementStartKeywordCount() { int result = 0; if (isNextKeyWord()) { for (String[] nextStmtStart : registeredStatementStartPhrases) { if (this.matches(nextStmtStart)) { return nextStmtStart.length; } } ...
java
public boolean classifyDocumentStdin(DocumentReaderAndWriter<IN> readerWriter) throws IOException { BufferedReader is = new BufferedReader(new InputStreamReader(System.in, flags.inputEncoding)); String line; String text = ""; String eol = "\n"; String sentence = "<s>"; int blankLin...
python
def from_repeat_masker_string(s): """ Parse a RepeatMasker string. This format is white-space separated and has 15 columns. The first 11 are invariably as follows: +----------------------+---------+-----------+----------------------------+ | Description | Type | Example | Notes ...
python
def start_processing(self, message, steps=0, warning=True): """ Registers the start of a processing operation. :param message: Operation description. :type message: unicode :param steps: Operation steps. :type steps: int :param warning: Emit warning message. ...
java
static public void putFunction(String name, Function function){ FunctionRegistry.functions.put(Objects.requireNonNull(name), function); }
python
def init_handler(self): """ Check self options. """ assert self.options.get('host') and self.options.get('port'), "Invalid options" assert self.options.get('to'), 'Recipients list is empty. SMTP disabled.' if not isinstance(self.options['to'], (list, tuple)): self.options['to...
java
public GroupForm getGroupForm(String key) { log.debug("Initializing group form for group key " + key); // find the current version of this group entity IEntityGroup group = GroupService.findGroup(key); // update the group form with the existing group's main information GroupFo...
python
def get_doc(project, source_code, offset, resource=None, maxfixes=1): """Get the pydoc""" fixer = fixsyntax.FixSyntax(project, source_code, resource, maxfixes) pyname = fixer.pyname_at(offset) if pyname is None: return None pyobject = pyname.get_object() return PyDocExtractor().get_doc(p...
java
private void setLastReadDate(Peer peer, long date) { storage.put(peer.getUnuqueId(), new ReadState(date).toByteArray()); readStates.put(peer, date); }
python
def flatten(x): """flatten(sequence) -> list Returns a single, flat list which contains all elements retrieved from the sequence and all recursively contained sub-sequences (iterables). Examples: >>> [1, 2, [3,4], (5,6)] [1, 2, [3, 4], (5, 6)] >>> flatten([[[1,2,3], (42,None)], [4,5], ...
java
@Override public void close() throws Exception { if (this.lookupClient != null) { this.lookupClient.close(); } if (this.registryClient != null) { this.registryClient.close(); } if (this.transport != null) { this.transport.close(); } }
java
@SuppressWarnings("static-method") protected XExpression _generate(XTypeLiteral literal, IAppendable it, IExtraLanguageGeneratorContext context) { appendReturnIfExpectedReturnedExpression(it, context); it.append(literal.getType()); return literal; }
python
def extract_ipv4(roster_order, ipv4): ''' Extract the preferred IP address from the ipv4 grain ''' for ip_type in roster_order: for ip_ in ipv4: if ':' in ip_: continue if not salt.utils.validate.net.ipv4_addr(ip_): continue if ...
python
def compile_migrations(migrator, models, reverse=False): """Compile migrations for given models.""" source = migrator.orm.values() if reverse: source, models = models, source migrations = diff_many(models, source, migrator, reverse=reverse) if not migrations: return False migra...
java
@CheckReturnValue public GuildManager setAfkChannel(VoiceChannel afkChannel) { Checks.check(afkChannel == null || afkChannel.getGuild().equals(getGuild()), "Channel must be from the same guild"); this.afkChannel = afkChannel == null ? null : afkChannel.getId(); set |= AFK_CHANNEL; ...
python
def connect( host='localhost', port=9000, database='default', user='default', password='', client_name='ibis', compression=_default_compression, ): """Create an ClickhouseClient for use with Ibis. Parameters ---------- host : str, optional Host name of the clickhouse...
java
public BigMoney minus(double amountToSubtract) { if (amountToSubtract == 0) { return this; } BigDecimal newAmount = amount.subtract(BigDecimal.valueOf(amountToSubtract)); return BigMoney.of(currency, newAmount); }
java
protected void processSipContextParameters(JBossConvergedSipMetaData metaData) { if (metaData.getSipContextParams() != null) { for (ParamValueMetaData param : metaData.getSipContextParams()) { context.addParameter(param.getParamName(), param.getParamValue()); } } ...
python
def brpop(self, keys, timeout=0): """Emulate brpop""" return self._blocking_pop(self.rpop, keys, timeout)
python
def loads(s, encoding=None, cls=None, object_hook=None, **kw): """ Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) to a Python object. If ``s`` is a ``str`` instance and is encoded with an ASCII based encoding other than utf-8 (e.g. latin-1) then an appropriate ``en...
java
public Result getMatch(String lookup) { int strLen = lookup.length(); char[] chars = new char[strLen + 1]; lookup.getChars(0, strLen, chars, 0); chars[strLen] = '\uffff'; TinyList resultList = new TinyList(); fillMatchResults(chars, 1, resultList); retur...
java
public double overlapRadiusDegree(SphereCluster other) { double[] center0 = getCenter(); double radius0 = getRadius(); double[] center1 = other.getCenter(); double radius1 = other.getRadius(); double radiusBig; double radiusSmall; if(radius0 < radius1){ radiusBig = radius1; radiusSmall = radius0...
java
@Override public void actionPerformed(ActionEvent e) { int row = table.convertRowIndexToModel(table.getEditingRow()); fireEditingStopped(); // Invoke the Action ActionEvent event = new ActionEvent( table, ActionEvent.ACTION_PERFORMED, ...
java
public void init() { if (inited) { return; } Log.info("Initialising sounds.."); inited = true; AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { AL.create(); soundWorks = true; sounds = true; music = true; Log.info("...
java
public EList<GCCBEZRG> getRg() { if (rg == null) { rg = new EObjectContainmentEList.Resolving<GCCBEZRG>(GCCBEZRG.class, this, AfplibPackage.GCCBEZ__RG); } return rg; }
python
def chain_update(self, block, receipts): """Removes batches from the pending cache if found in the block store, and notifies any observers. """ with self._lock: for batch_id in self._pending.copy(): if self._batch_committed(batch_id): self....
java
public static double lpow10(long m, int n) { if(m == 0) { return 0.0; } if(m == Long.MIN_VALUE) { return lpow10(Long.MIN_VALUE / 10, n + 1); } if(m < 0) { return -lpow10(-m, n); } if(n >= 0) { // Positive power. if(n > 308) { return Double.POSITIVE_INFINITY; ...
python
def close(self): """ Closes the connection to the bridge. """ self.is_closed = True self.is_ready = False self._command_queue.put(None)
java
public void setExceptions(Class<?>[] exceptions) { for (Class<?> exception : exceptions) { // uses simple name because exception may be declared into .client package this.exceptions.add(exception.getSimpleName()); } }
java
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/waterbody/1.0", name = "_GenericApplicationPropertyOfWaterGroundSurface") public JAXBElement<Object> create_GenericApplicationPropertyOfWaterGroundSurface(Object value) { return new JAXBElement<Object>(__GenericApplicationPropertyOfWaterGroundSurfa...
python
def ensemble_change_summary(ensemble1, ensemble2, pst,bins=10, facecolor='0.5',logger=None,filename=None,**kwargs): """helper function to plot first and second moment change histograms Parameters ---------- ensemble1 : varies str or pd.DataFrames ensemble2 : varies str or pd.DataFra...
java
public static String createGenerationPath(String path, GeneratorRegistry registry, String randomParam) { String requestPath = null; try { requestPath = registry.getDebugModeGenerationPath(path); if (randomParam != null) { requestPath += "?" + randomParam + "&"; } else { requestPath += "?"; } ...
java
public Optional<TableRule> findTableRuleByActualTable(final String actualTableName) { for (TableRule each : tableRules) { if (each.isExisted(actualTableName)) { return Optional.of(each); } } return Optional.absent(); }
java
public static HashingInputStream createHashingStream( String digestName, InputStream inputStream ) throws NoSuchAlgorithmException { MessageDigest digest = MessageDigest.getInstance(digestName); return new HashingInputStream(digest, inputStream);...
python
def convex_hull_collide(nodes1, nodes2): """Determine if the convex hulls of two curves collide. .. note:: This is a helper for :func:`from_linearized`. Args: nodes1 (numpy.ndarray): Control points of a first curve. nodes2 (numpy.ndarray): Control points of a second curve. Ret...
java
public final String getQualifiedName() { return null == owner ? name : owner + Symbol.DOT.getLiterals() + name; }
java
public GetDomainLogResponse getDomainLog(GetDomainLogRequest request) { InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, LOG, request.getDomain(), "log"); if (request.getStartTime() != null) { internalRequest.addParameter("startTime", DateUtils.formatAlternat...
java
private void loadParameters(String[] args) { for (int i = 0; (i < args.length) && args[i].startsWith("-"); i++) { String parameterName = args[i]; if (parameterName.equalsIgnoreCase("-key")) privateKeyFile = new File(args[++i]); else if (parameterNa...
python
def _to_sqlite3_by_table(self, conn, table_name): """ Saves the sequence to the specified table of sqlite3 database. Each element can be a dictionary, namedtuple, tuple or list. Target table must be created in advance. :param conn: path or sqlite connection, cursor :para...
java
public static Call.Mapper<List<List<Span>>, List<List<Span>>> filterTraces(QueryRequest request) { return new FilterTracesIfClashOnLowerTraceId(request); }