language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def user_context(self, worker_ctx, exc_info): """ Merge any user context to include in the sentry payload. Extracts user identifiers from the worker context data by matching context keys with """ user = {} for key in worker_ctx.context_data: for matcher in se...
java
public static void addToParameters(final IRequestParameters parameters, final Map<String, List<StringValue>> parameterMap) { for (final String parameterName : parameters.getParameterNames()) { final List<StringValue> parameterValues = parameters.getParameterValues(parameterName); parameterMap.put(parameter...
python
def short_sequence_repeat_extractor(string, min_length=1): """ Extract the short tandem repeat structure from a string. :arg string string: The string. :arg integer min_length: Minimum length of the repeat structure. """ length = len(string) k_max = length // 2 + 1 if k_max > THRESHOLD...
python
def punch2reader(rh, userid, fileLoc, spoolClass): """ Punch a file to a virtual reader of the specified virtual machine. Input: Request Handle - for general use and to hold the results userid - userid of the virtual machine fileLoc - File to send spoolClass -...
java
private synchronized byte[] getNodeData(String node, Stat stat, boolean retry, boolean sync) throws IOException, KeeperException, InterruptedException { int failures = 0; byte[] data = null; while (data == null) { initZK(); try { if (sync) { SyncUtil su = new S...
python
def signal(self, container, instances=None, map_name=None, **kwargs): """ Sends a signal to a single running container configuration (but possibly multiple instances). If not specified with ``signal``, this signal is ``SIGKILL``. :param container: Container configuration name. :...
java
private String indexLabel(Entry child) throws ObjectManagerException { // Step up the tree until we reach the root. String indexLabel = ""; for (Entry parent = (Entry) child.getParent(); parent != null; parent = (Entry) child.getParent()) { if (parent.getLeft(...
java
public CalibratedCurves getCloneShifted(Pattern symbolRegExp, double shift) throws SolverException, CloneNotSupportedException { // Clone calibration specs, shifting the desired symbol List<CalibrationSpec> calibrationSpecsShifted = new ArrayList<CalibrationSpec>(); for(CalibrationSpec calibrationSpec : calibrat...
java
public Geometry getGeometry( List<PfafstetterNumber> limit, IHMProgressMonitor pm, boolean doMonitor ) { if (limit == null && totalGeometryUpstream != null) { return totalGeometryUpstream; } List<Geometry> geometries = new ArrayList<Geometry>(); geometries.add((Geometry) hi...
python
def ks_unif_durbin_matrix(samples, statistic): """ Calculates the probability that the statistic is less than the given value, using a fairly accurate implementation of the Durbin's matrix formula. Not an exact transliteration of the Marsaglia code, but using the same ideas. Assumes samples > 0. Se...
python
async def get_url(self): """ Use this method to get chat link. Private chat returns user link. Other chat types return either username link (if they are public) or invite link (if they are private). :return: link :rtype: :obj:`base.String` """ if self.type...
python
def p_expression_eq(self, p): 'expression : expression EQ expression' p[0] = Eq(p[1], p[3], lineno=p.lineno(1)) p.set_lineno(0, p.lineno(1))
python
def records(self): """ Access the records :returns: twilio.rest.api.v2010.account.usage.record.RecordList :rtype: twilio.rest.api.v2010.account.usage.record.RecordList """ if self._records is None: self._records = RecordList(self._version, account_sid=self._s...
java
public boolean isSpinnerTextSelected(int spinnerIndex, String text) { Spinner spinner = waiter.waitForAndGetView(spinnerIndex, Spinner.class); TextView textView = (TextView) spinner.getChildAt(0); if(textView.getText().equals(text)) return true; else return false; }
python
def build_lattice(self, x): """ Construct the list of nodes and edges for input features. """ I, J, _ = x.shape lattice = self._subset_independent_lattice((I, J)) return lattice
java
public void init() { pipeline = pipeline(); pipeline.addLast("messageBufferEventDecoder", messageBufferEventDecoder); pipeline.addLast("upstream", upstream); // Downstream handlers - Filter for data which flows from server to // client. Note that the last handler added is actually the first ...
java
private void setProperties(final JSONObject jsonObject, final List<Object> paramlist, final StringBuilder sql) { final Iterator<String> keys = jsonObject.keys(); final StringBuilder insertString = new StringBuilder(); final StringBuilder wildcardString = new StringBuilder(); boolean is...
java
@Nonnull public static String getFormattedPercent (final double dValue, @Nonnegative final int nFractionDigits, @Nonnull final Locale aDisplayLocale) { ValueEnforcer.notNull (aDisplayLocale, "DisplayLocale"); final Numb...
python
def is_descendant_of(self, other, include_self=False): """Is this node a descendant of `other`?""" if other.pk == self.pk: return include_self return self._closure_model.objects.filter( parent=other, child=self ).exclude(pk=self.pk).exists()
python
def next(self): """ Return the next line in the file, updating the offset. """ try: line = self._get_next_line() except StopIteration: # we've reached the end of the file; if we're processing the # rotated log file or the file has been renamed,...
java
public void validate(final List<Throwable> validationErrors) { if (this.matchers == null) { validationErrors.add(new IllegalArgumentException( "Matchers cannot be null. There should be at least a !acceptAll matcher")); } if (this.matchers != null && this.matchers...
python
def readSIFGraph(filename): p = sif_parser.Parser(filename) """ input: string, name of a file containing a Bioquali-like graph description output: asp.TermSet, with atoms matching the contents of the input file Parses a Bioquali-like graph description, and returns a TermSet object. Written using origin...
python
def validate_supersmoother(): """Validate the supersmoother.""" x, y = smoother_friedman82.build_sample_smoother_problem_friedman82() x, y = sort_data(x, y) my_smoother = smoother.perform_smooth(x, y, smoother_cls=supersmoother.SuperSmootherWithPlots) # smoother.DEFAULT_BASIC_SMOOTHER = BasicFixedSp...
java
public void deleteGroup(CmsDbContext dbc, CmsGroup group, CmsUUID replacementId) throws CmsDataAccessException, CmsException { CmsGroup replacementGroup = null; if (replacementId != null) { replacementGroup = readGroup(dbc, replacementId); } // get all child groups of th...
python
def _locate_day(year, cutoff): """ Takes a SYSTEMTIME object, such as retrieved from a TIME_ZONE_INFORMATION structure or call to GetTimeZoneInformation and interprets it based on the given year to identify the actual day. This method is necessary because the SYSTEMTIME structure refers to a day by its ...
python
def update_views(self): """Update stats views.""" # Call the father's method super(Plugin, self).update_views() # Add specifics informations try: # Alert and log self.views['min15']['decoration'] = self.get_alert_log(self.stats['min15'], maximum=100 * sel...
java
private void handlePrivateChannel(JsonNode channel) { // A CHANNEL_CREATE packet is sent every time a bot account receives a message, see // https://github.com/hammerandchisel/discord-api-docs/issues/184 UserImpl recipient = (UserImpl) api.getOrCreateUser(channel.get("recipients").get(0)); ...
java
protected Boolean _hasSideEffects(XVariableDeclaration expression, ISideEffectContext context) { if (hasSideEffects(expression.getRight(), context)) { return true; } context.declareVariable(expression.getIdentifier(), expression.getRight()); return false; }
python
def _managePsets(configobj, section_name, task_name, iparsobj=None, input_dict=None): """ Read in parameter values from PSET-like configobj tasks defined for source-finding algorithms, and any other PSET-like tasks under this task, and merge those values into the input configobj dictionary. """ ...
python
def get_index_field_declaration_list_sql(self, fields): """ Obtains DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. :param fields: The columns :type fields: list :rtype: sql """ ret = [] ...
java
private static void registerFactory(Type t, Class<? extends TypeInfoFactory> factory) { Preconditions.checkNotNull(t, "Type parameter must not be null."); Preconditions.checkNotNull(factory, "Factory parameter must not be null."); if (!TypeInfoFactory.class.isAssignableFrom(factory)) { throw new IllegalArgume...
python
def tomof(self, indent=0, maxline=MAX_MOF_LINE): """ Return a MOF string with the declaration of this CIM method for use in a CIM class declaration. The order of parameters and qualifiers is preserved. Parameters: indent (:term:`integer`): Number of spaces to indent ...
java
public void initialize(final Projection projection, boolean interactive) { if (logger.isDebugEnabled()) { logger.debug("initializing..."); } // we could load the html via the URL, but then we run into problems loading local images or track files when // the mapView is embede...
python
def get_queryset_filters(self, query): """ Return the filtered queryset """ conditions = Q() for field_name in self.fields: conditions |= Q(**{ self._construct_qs_filter(field_name): query }) return conditions
python
def copy_parallel_text(file_list: List[str], dest_prefix: str): """ Copy pre-compiled raw parallel files with a given prefix. Perform whitespace character normalization to ensure that only ASCII newlines are considered line breaks. :param file_list: List of file pairs to use. :param dest_prefi...
python
def save(self, path): """Save the track""" name = Track.filename(self.name) with open(os.path.join(path, name), 'wb') as fd: fd.write(struct.pack('>I', len(self.keys))) for k in self.keys: fd.write(struct.pack('>ifb', k.row, k.value, k.kind))
python
def outLineReceived(self, line): """ Handle data via stdout linewise. This is useful if you turned off buffering. In your subclass, override this if you want to handle the line as a protocol line in addition to logging it. (You may upcall this function safely.) "...
java
@Override public void solve(DMatrixRMaj B, DMatrixRMaj X) { blockB.reshape(B.numRows,B.numCols,false); MatrixOps_DDRB.convert(B,blockB); // since overwrite B is true X does not need to be passed in alg.solve(blockB,null); MatrixOps_DDRB.convert(blockB,X); }
python
def process_non_api_filters(search_opts, non_api_filter_info): """Process filters by non-API fields There are cases where it is useful to provide a filter field which does not exist in a resource in a backend service. For example, nova server list provides 'image' field with image ID but 'image nam...
java
private Optional<File> which(final String executableName) { String systemPath = System.getenv("PATH"); String[] pathDirs = systemPath.split(File.pathSeparator); Optional<File> fullyQualifiedExecutable = Optional.absent(); for(final String pathDir : pathDirs) { File file = new File(pathDir, ex...
python
def load_translation_data(dataset, bleu, args): """Load translation dataset Parameters ---------- dataset : str args : argparse result Returns ------- """ src_lang, tgt_lang = args.src_lang, args.tgt_lang if dataset == 'IWSLT2015': common_prefix = 'IWSLT2015_{}_{}_{}_{...
python
def get_url(song_input, auto): ''' Provides user with a list of songs to choose from returns the url of chosen song. ''' youtube_list = OrderedDict() num = 0 # List of songs index html = requests.get("https://www.youtube.com/results", params={'search_query': song_in...
java
public static PageControlFactory newInstance(final String factoryClassName, // NOSONAR final ClassLoader classLoader) throws InstantiationException, IllegalAccessException, ClassNotFoundException { return (PageControlFactory) Class.forName(factoryClas...
python
def strip_HETATMs(self, only_strip_these_chains = []): '''Throw away all HETATM lines. If only_strip_these_chains is specified then only strip HETATMs lines for those chains.''' if only_strip_these_chains: self.lines = [l for l in self.lines if not(l.startswith('HETATM')) or l[21] not in onl...
python
def setUpLogger(name='generalLoggerName',dr='',lvl=20,addFH=True,addSH=True): """ This function is utilized by getLogger to set up a new logging object. It will have the default name 'generalLoggerName' and stream handler level of 20 unless redefined in the function call. NOTE: If a file handler i...
python
def _get_deleted_fs(name, blade): ''' Private function to check if a file systeem has already been deleted ''' try: _fs = _get_fs(name, blade) if _fs and _fs.destroyed: return _fs except rest.ApiException: return None
java
private void configureIdentityManager(URL undertowResource) { try { Properties props = new Properties(); try (InputStream is = undertowResource.openStream()) { props.load(is); } Map<String, String> config = new LinkedHashMap<>(); for (M...
java
public void annotateFieldJSR303(JMethod getter, boolean addValidAnnotation) { if (isRequired()) { getter.annotate(NotNull.class); } if (StringUtils.hasText(getPattern())) { JAnnotationUse annotation = getter.annotate(Pattern.class); annotation.param("regexp", getPattern()); } if (getMinLength() != nu...
java
public void rotate(float w, float x, float y, float z) { getTransform().rotate(w, x, y, z); if (mTransformCache.rotate(w, x, y, z)) { onTransformChanged(); } }
java
private void pushText() { if (buf.length() > 0) { nodes.add(new NumberPattern.Text(buf.toString())); buf.setLength(0); } }
python
def _find_assert_stmt(filename, linenumber, leading=1, following=2, module_globals=None): '''Given a Python module name, filename and line number, find the lines that are part of the statement containing that line. Python stacktraces, when reporting which line they're ...
java
protected static Renderer changeMediaType(final Renderer r, final MediaType mt) { return new Renderer() { @Override public MediaType getMediaType(Bindings unused) { return mt; } @Override public BytesOut render(Times t, Bindings rc, M...
python
def get_similars_idxs(cls, learn, layer_ls, **kwargs): "Gets the indices for the most similar images in `ds_type` dataset" hook = hook_output(learn.model[layer_ls[0]][layer_ls[1]][layer_ls[2]]) dl = learn.data.fix_dl ds_actns = cls.get_actns(learn, hook=hook, dl=dl, **kwargs) si...
java
public static ProfilingTimer create(final Log log, final String processName, final Object... args) { return create(log, topLevelInfoOnly, null, processName, args); }
java
@Override public Iterable<T> findAll(final Sort sort) { return new Iterable<T>() { @Override public Iterator<T> iterator() { return findAllInternal(sort, null, new HashMap<>()); } }; }
java
static final JSType wrapInIThenable(JSTypeRegistry registry, JSType maybeThenable) { // Unwrap for simplicity first in the event it is a thenable. JSType unwrapped = getResolvedType(registry, maybeThenable); return registry.createTemplatizedType( registry.getNativeObjectType(JSTypeNative.I_THENABLE_...
python
def parseLegacy(self, response): """ Parse a legacy response and try and catch any errors. If we have multiple responses we wont catch any exceptions, we will return the errors row by row :param dict response: The response string returned from request() :return Returns ...
python
def clean_core(self, config_file, region=None, profile_name=None): """ Clean all Core related provisioned artifacts from both the local file and the AWS Greengrass service. :param config_file: config file containing the core to clean :param region: the region in which the core s...
python
def _compute_unnecessary_deps(self, target, actual_deps): """Computes unused deps for the given Target. :returns: A dict of directly declared but unused targets, to sets of suggested replacements. """ # Flatten the product deps of this target. product_deps = set() for dep_entries in actual_deps...
python
def _get_instance(self, iname, namespace, property_list, local_only, include_class_origin, include_qualifiers): """ Local method implements getinstance. This is generally used by other instance methods that need to get an instance from the repository. It at...
python
def fetchone(self): """ As in DBAPI2.0 (except the fact rows are not tuples but lists so if you try to modify them, you will succeed instead of the correct behaviour of raising an exception). Additionally every row returned by this class is addressable by column name besi...
java
public WebServiceTemplateBuilder setMarshaller(Marshaller marshaller) { return new WebServiceTemplateBuilder(this.detectHttpMessageSender, this.interceptors, this.internalCustomizers, this.customizers, this.messageSenders, marshaller, this.unmarshaller, this.destinationProvider, this.transformerFactoryCla...
java
public static ExtendedJTATransaction createExtendedJTATransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "createExtendedJTATransaction"); } // If we haven't already loaded and // instantiated ExtendedJTATransactionImpl // ...
java
@Override public void perform(GraphRewrite event, EvaluationContext context) { checkVariableName(event, context); WindupVertexFrame payload = resolveVariable(event, getVariableName()); if (payload instanceof FileReferenceModel) { FileModel file = ((FileReferenceModel)...
java
public <T> BinaryValue getRiakBucketName(T obj) { BinaryValue bucketName = null; if (riakBucketNameGetter != null) { if (riakBucketNameGetter.getReturnType().isArray()) { Object o = getMethodValue(riakBucketNameGetter, obj); if (o != n...
python
def get_enrollment_claim(self, id, **kwargs): """Get""" api = self._get_api(enrollment.PublicAPIApi) return EnrollmentClaim(api.get_device_enrollment(id=id))
python
def get_type_data(self, name): """Return dictionary representation of type.""" try: return { 'authority': 'DLKIT.MIT.EDU', 'namespace': 'GenusType', 'identifier': name, 'domain': 'Generic Types', 'display_name': ...
python
def format_graylog_v0(self, record): ''' Graylog 'raw' format is essentially the raw record, minimally munged to provide the bare minimum that td-agent requires to accept and route the event. This is well suited to a config where the client td-agents log directly to Graylog. '''...
python
def _check_periodic(periodic): '''Validate periodic input''' periodic = np.array(periodic) # If it is a matrix if len(periodic.shape) == 2: assert periodic.shape[0] == periodic.shape[1], 'periodic shoud be a square matrix or a flat array' return np.diag(periodic) elif len(periodic.s...
python
def choose_solution_using_percentiles( X_original, solutions, parameters=None, verbose=False, percentiles=list(range(10, 100, 10))): """ It's tricky to pick a single matrix out of all the candidate solutions with differing shrinkage thresholds. Our heuristic is to...
java
public static boolean isSameDay(final Date date1, final Date date2) { if (date1 == null || date2 == null) { throw new IllegalArgumentException("The date must not be null"); } final Calendar cal1 = Calendar.getInstance(); cal1.setTime(date1); final Calendar cal2 = Cale...
java
public void build(final Object id, final Map<String, Object> attributes) { setId(ProfileHelper.sanitizeIdentifier(this, id)); addAttributes(attributes); }
python
def delete(self, space, key, **kwargs) -> _MethodRet: """ Delete request coroutine. Examples: .. code-block:: pycon # Assuming tuple [0, 'hello'] is in space tester >>> await conn.delete('tester', [0]) <Response sync=3 rowco...
java
public DTM getDTM(javax.xml.transform.Source source, boolean unique, DTMWSFilter wsfilter, boolean incremental, boolean doIndexing) { return m_dtmManager.getDTM(source, unique, wsfilter, incremental, doIndexing); }
python
def _zmq_socket_context(context, socket_type, bind_endpoints): """A ZeroMQ socket context that both constructs a socket and closes it.""" socket = context.socket(socket_type) try: for endpoint in bind_endpoints: try: socket.bind(endpoint) except Exception: ...
python
def save(self, filething=None, v2_version=4, v23_sep='/', padding=None): """Save ID3v2 data to the DSF file""" fileobj = filething.fileobj fileobj.seek(0) dsd_header = DSDChunk(fileobj) if dsd_header.offset_metdata_chunk == 0: # create a new ID3 chunk at the end of ...
java
public void setApplicationArns(java.util.Collection<String> applicationArns) { if (applicationArns == null) { this.applicationArns = null; return; } this.applicationArns = new com.amazonaws.internal.SdkInternalList<String>(applicationArns); }
python
def timer(name, count): '''Time this block.''' start = time.time() try: yield count finally: duration = time.time() - start print(name) print('=' * 10) print('Total: %s' % duration) print(' Avg: %s' % (duration / count)) print(' Rate: %s' % (count...
java
public static long copySome(final InputStream input, final OutputStream output, final byte buffer[], final long length) throws IOException { long total = 0; int read; int readLength; boolean tr...
java
public DataSet<ST> closeWith(DataSet<ST> solutionSetDelta, DataSet<WT> newWorkset) { return new DeltaIterationResultSet<ST, WT>(initialSolutionSet.getExecutionEnvironment(), initialSolutionSet.getType(), initialWorkset.getType(), this, solutionSetDelta, newWorkset, keys, maxIterations); }
python
def _config(self, args, config): """ Get configuration for the current used listing. """ listings = dict((x.args, x) for x in config.subsections('listing')) listing = listings.get(args.listing) if listing is None: if args.listing == u'default': return ...
python
async def playstatus(self, use_revision=False, timeout=None): """Request raw data about what is currently playing. If use_revision=True, this command will "block" until playstatus changes on the device. Must be logged in. """ cmd_url = _PSU_CMD.format( self....
java
public OvhExternalContact service_externalContact_externalEmailAddress_GET(String service, String externalEmailAddress) throws IOException { String qPath = "/email/pro/{service}/externalContact/{externalEmailAddress}"; StringBuilder sb = path(qPath, service, externalEmailAddress); String resp = exec(qPath, "GET",...
java
@Override public void writeArray(Collection<?> array) { if (!checkWriteReference(array)) { storeReference(array); buf.put(AMF.TYPE_ARRAY); buf.putInt(array.size()); for (Object item : array) { Serializer.serialize(this, item); } ...
java
public static java.util.List<com.liferay.commerce.model.CommerceShipment> getCommerceShipments( int start, int end) { return getService().getCommerceShipments(start, end); }
java
@Nonnull public static FileIOError deleteDirRecursiveIfExisting (@Nonnull final File aDir) { final FileIOError aError = deleteDirRecursive (aDir); if (aError.getErrorCode ().equals (EFileIOErrorCode.SOURCE_DOES_NOT_EXIST)) return EFileIOErrorCode.NO_ERROR.getAsIOError (EFileIOOperation.DELETE_DIR_RECU...
java
@Override public String findProperty( final String propertyName ) { String value = m_bundleContext.getProperty( propertyName ); if( value != null && value.trim().length() == 0 ) { value = null; } return value; }
java
public static <B extends Bean> LightMetaBean<B> of(Class<B> beanType, MethodHandles.Lookup lookup) { // the field name order is undefined // but since they are not being matched against default values that is OK return new LightMetaBean<>(beanType, lookup, fieldNames(beanType), EMPTY_OBJECT_ARRA...
java
public CrawlElement withAttribute(String attributeName, String value) { if (this.underXpath == null || this.underXpath.isEmpty()) { this.underXpath = "//" + this.tagName + "[@" + attributeName + "='" + value + "']"; } else { this.underXpath = this.underXpath + " | " + "//" + this.tagName + "[@" + attribut...
python
def verifyStubbedInvocationsAreUsed(*objs): """Ensure stubs are actually used. This functions just ensures that stubbed methods are actually used. Its purpose is to detect interface changes after refactorings. It is meant to be invoked usually without arguments just before :func:`unstub`. """ ...
python
def ground_resolution(lat, level): """Gets ground res in meters / pixel""" lat = TileSystem.clip(lat, TileSystem.LATITUDE_RANGE) return cos(lat * pi / 180) * 2 * pi * TileSystem.EARTH_RADIUS / TileSystem.map_size(level)
java
@Override public final Map<Construction, ParserActionSet> getPossibleActions( int currentState) throws GrammarException { return table.get(currentState); }
python
def validate_definition(self, definition_name, dict_to_test, definition=None): """Validate the given dict according to the given definition. Args: definition_name: name of the the definition. dict_to_test: dict to test. Returns: True if the given dict match ...
java
public void applyPattern(String primaryPattern, String[] alternativePatterns, char decimalSeparator, char groupingSeparator) { m_symbols.setDecimalSeparator(decimalSeparator); m_symbols.setGroupingSeparator(groupingSeparator); setDecimalFormatSymbols(m_symbols); applyPattern(primaryPattern);...
python
async def iter_chunks(self, chunk_size=_DEFAULT_CHUNK_SIZE): """Return an iterator to yield chunks of chunk_size bytes from the raw stream. """ while True: current_chunk = await self.read(chunk_size) if current_chunk == b"": break await...
java
public synchronized PrivateKey getPrivateKeyForLocalCert(final X509Certificate cert) throws CertificateEncodingException, KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException { String thumbprint = ThumbprintUtil.getThumbprint(cert); return (PrivateKey)_ks.getKey(thumbprint, _keypassword); }
java
public static CommerceSubscriptionEntry fetchByUuid_Last(String uuid, OrderByComparator<CommerceSubscriptionEntry> orderByComparator) { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); }
python
def _repr_latex_(self): """ This is used in IPython notebook it allows us to render the ODEProblem object in LaTeX. How Cool is this? """ # TODO: we're mixing HTML with latex here. That is not necessarily a good idea, but works # with IPython 1.2.0. Once IPython 2.0 is re...
java
@OneToMany(targetEntity = org.openprovenance.prov.sql.Other.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "OTHERS_WASENDEDBY_PK") public List<Other> getOther() { if (other == null) { other=AttributeList.populateKnownAttributes(this,all, org.openprovenance.prov.model.O...
java
public static <T, E extends Exception, E2 extends Exception> void parse(final Collection<? extends Iterator<? extends T>> iterators, final long offset, final long count, final int readThreadNum, final int processThreadNum, final int queueSize, final Try.Consumer<? super T, E> elementParser, fi...