language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def get_or_new_child(self, term, value=False, **kwargs): """Find a term, using find_first, and set it's value and properties, if it exists. If it does not, create a new term and children. """ pt, rt = self.split_term(term) term = self.record_term + '.' + rt c = self.find_first...
python
def _choose_correct_port(from_port, to_port): """Chooses the direction when using an equivalence transform on two Ports. Each Port object actually contains 2 sets of 4 atoms, either of which can be used to make a connection with an equivalence transform. This function chooses the set of 4 atoms that ma...
python
def gammatone(freq, bandwidth): """ ``A. Klapuri, "Multipich Analysis of Polyphonic Music and Speech Signals Using an Auditory Model". IEEE Transactions on Audio, Speech and Language Processing, vol. 16, no. 2, 2008, pp. 255-266.`` """ bw = thub(bandwidth, 1) bw2 = thub(bw * 2, 4) freq = thub(freq...
python
def add_or_update(user_id, app_id): ''' Add the collection or update. ''' rec = MCollect.get_by_signature(user_id, app_id) if rec: entry = TabCollect.update( timestamp=int(time.time()) ).where(TabCollect.uid == rec.uid) entry....
java
public Reflecter<T> setExcludePackagePath(Set<String> excludePackages) { for (String pkg : checkNotNull(excludePackages)) { if (!this.excludePackagePath.contains(pkg)) { this.excludePackagePath.add(pkg); } } return this; }
python
def bleach_clean(stream): """ Sanitize malicious attempts but keep the `EXCERPT_TOKEN`. By default, only keeps `bleach.ALLOWED_TAGS`. """ return bleach.clean( stream, tags=current_app.config['MD_ALLOWED_TAGS'], attributes=current_app.config['MD_ALLOWED_ATTRIBUTES'], s...
java
public boolean greaterThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException { return compare(obj2, S_GTE); }
java
public boolean add(Object o) { try { this.addElement((Element) o); return true; } catch(ClassCastException cce) { throw new ClassCastException("You can only add objects that implement the Element interface."); } catch(BadElementException bee) { throw new ClassCastException(bee.getMessage()); } ...
python
def list_user(context, id, sort, limit, where, verbose): """list_user(context, id, sort, limit, where, verbose) List users attached to a remoteci. >>> dcictl remoteci-list-user [OPTIONS] :param string id: ID of the remoteci to list the user from [required] :param string sort...
python
def mappedPolygon(self, polygon, path=None, percent=0.5): """ Maps the inputed polygon to the inputed path \ used when drawing items along the path. If no \ specific path is supplied, then this object's own \ path will be used. It will rotate and move the \ polygon acco...
python
def reynolds(target, u0, b, temperature='pore.temperature'): r""" Uses exponential model by Reynolds [1] for the temperature dependance of shear viscosity Parameters ---------- target : OpenPNM Object The object for which these values are being calculated. This controls the len...
java
public void getMatchesSQLClause(StringBuilder builder, String sqlExpression, IPAddressSQLTranslator translator) { getSection().getStartsWithSQLClause(builder, sqlExpression, translator); }
python
def _parse_methods(cls, list_string): """Return HTTP method list. Use json for security reasons.""" if list_string is None: return APIServer.DEFAULT_METHODS # json requires double quotes json_list = list_string.replace("'", '"') return json.loads(json_list)
java
private synchronized ContainerStateChangeReport createContainerStateChangeReport(boolean resetHistory) { final Map<ServiceName, Set<ServiceName>> missingDeps; if (problems.isEmpty()) { missingDeps = Collections.emptyMap(); } else { missingDeps =new HashMap<ServiceName, S...
python
def violations(self, src_path): """ Return a list of Violations recorded in `src_path`. """ if not any(src_path.endswith(ext) for ext in self.driver.supported_extensions): return [] if src_path not in self.violations_dict: if self.reports: ...
python
def extract_date(value): """ Convert timestamp to datetime and set everything to zero except a date """ dtime = value.to_datetime() dtime = (dtime - timedelta(hours=dtime.hour) - timedelta(minutes=dtime.minute) - timedelta(seconds=dtime.second) - timedelta(microseconds=dtime.microsecond...
python
def addresses(self): """ Return 3-tuple with (address, network, nicid) :return: address related information of interface as 3-tuple list :rtype: list """ addresses = [] for i in self.all_interfaces: if isinstance(i, VlanInterface): for...
java
public Object getInstance() { try { if (prototype) { return doGetInstance(); } else { synchronized (cache) { if (!cache.containsKey(type)) { cache.put(type, doGetInstance()); ...
python
def _write_json_blob(encoded_value, pipeline_id=None): """Writes a JSON encoded value to a Cloud Storage File. This function will store the blob in a GCS file in the default bucket under the appengine_pipeline directory. Optionally using another directory level specified by pipeline_id Args: encoded_valu...
python
def getFollowing(self, key, part): """ Parameters: - key - part """ self.send_getFollowing(key, part) return self.recv_getFollowing()
python
def width_rect_weir(FlowRate, Height): """Return the width of a rectangular weir.""" #Checking input validity ut.check_range([FlowRate, ">0", "Flow rate"], [Height, ">0", "Height"]) return ((3 / 2) * FlowRate / (con.VC_ORIFICE_RATIO * np.sqrt(2 * gravity.magnitude) * Height ** (3 / 2)) ...
java
public ItemRef get(final OnItemSnapshot onItemSnapshot, final OnError onError){ TableMetadata tm = context.getTableMeta(this.table.name); if(tm == null){ this.table.meta(new OnTableMetadata(){ @Override public void run(TableMetadata tableMetadata) { _get(onItemSnapshot, onError, false); } ...
python
def get_last_args(tp): """Get last arguments of (multiply) subscripted type. Parameters for Callable are flattened. Examples:: get_last_args(int) == () get_last_args(Union) == () get_last_args(ClassVar[int]) == (int,) get_last_args(Union[T, int]) == (T, int) get_last_...
python
def qos_rcv_queue_multicast_rate_limit_limit(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") qos = ET.SubElement(config, "qos", xmlns="urn:brocade.com:mgmt:brocade-qos") rcv_queue = ET.SubElement(qos, "rcv-queue") multicast = ET.SubElement(rcv_qu...
java
public boolean addCSV(HttpHeader header, String... values) { QuotedCSV existing = null; for (HttpField f : this) { if (f.getHeader() == header) { if (existing == null) existing = new QuotedCSV(false); existing.addValue(f.getValue()); ...
python
def load(filename): """Load a CameraIntrinsics object from a file. Parameters ---------- filename : :obj:`str` The .intr file to load the object from. Returns ------- :obj:`CameraIntrinsics` The CameraIntrinsics object loaded from the fil...
java
public org.tensorflow.framework.AllocationDescription getAllocationDescription() { return allocationDescription_ == null ? org.tensorflow.framework.AllocationDescription.getDefaultInstance() : allocationDescription_; }
java
@Override public final IoBuffer putInt(int index, int value) { autoExpand(index, 4); buf().putInt(index, value); return this; }
python
def get_ref_id(self): """ Return the ID of the resource to which this not is attached """ if self.ref_key == 'NETWORK': return self.network_id elif self.ref_key == 'NODE': return self.node_id elif self.ref_key == 'LINK': return sel...
python
def lift_chart(df, col_true=None, col_pred=None, col_scores=None, pos_label=1): r""" Compute life value, true positive rate (TPR) and threshold from predicted DataFrame. Note that this method will trigger the defined flow to execute. :param df: predicted data frame :type df: DataFrame :param p...
python
def _arg_repr(self, arg): """ Get a useful (and not too large) represetation of an argument. """ r = repr(arg) max = 40 if len(r) > max: if hasattr(arg, 'shape'): r = 'array:' + 'x'.join([repr(s) for s in arg.shape]) else: r...
java
public static CurrencyFunction currency(String fieldName) { Assert.hasText(fieldName, "FieldName must not be empty!"); return currency(fieldName, null); }
python
def cudnnSetTensor4dDescriptor(tensorDesc, format, dataType, n, c, h, w): """ Initialize a previously created Tensor 4D object. This function initializes a previously created Tensor4D descriptor object. The strides of the four dimensions are inferred from the format parameter and set in such a way that...
java
public Observable<EntityRole> getPatternAnyEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { return getPatternAnyEntityRoleWithServiceResponseAsync(appId, versionId, entityId, roleId).map(new Func1<ServiceResponse<EntityRole>, EntityRole>() { @Override public En...
java
private Ref notOp() throws PageException { if (cfml.isValidIndex()) { if (cfml.isCurrent('!') && !cfml.isCurrent("!=")) { cfml.next(); cfml.removeSpace(); return new Not(decsionOp(), limited); } else if (cfml.forwardIfCurrentAndNoWordAfter("not")) { cfml.removeSpace(); return new Not(decsionOp...
java
public static <T> void collectAttributeValues( Attributes attributes, String name, Collection<T> collection, Class<T> clazz) { Assert.notNull(attributes, "Attributes must not be null"); Assert.hasText(name, "Name must not be empty"); Assert.notNull(collection, "Collection must not b...
java
public void marshall(APNSVoipChannelResponse aPNSVoipChannelResponse, ProtocolMarshaller protocolMarshaller) { if (aPNSVoipChannelResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(aPNSVoipCh...
python
def cache_train(self): """ Loads the data for this classifier from a cache file :return: whether or not we were successful :rtype: bool """ filename = self.get_cache_location() if not os.path.exists(filename): return False categories = pickl...
python
def run(self, ds, skip_checks, *checker_names): """ Runs this CheckSuite on the dataset with all the passed Checker instances. Returns a dictionary mapping checker names to a 2-tuple of their grouped scores and errors/exceptions while running checks. """ ret_val = {} ch...
python
def __check_logging_rules(configuration): """ Check that the logging values are proper """ valid_log_levels = [ 'debug', 'info', 'warning', 'error' ] if configuration['logging']['log_level'].lower() not in valid_log_levels: print('Log level must be one of {0}'.for...
python
def request(self, request_path, data=None, do_authentication=True, is_json=True): """ Core "worker" for making requests and parsing JSON responses. If `is_json` is ``True``, `data` should be a dictionary which will be JSON-encoded. """ uri = self.api_uri % request_path ...
python
def __remove_surrogates(self, s, method='replace'): """ Remove surrogates in the specified string """ if type(s) == list and len(s) == 1: if self.__is_surrogate_escaped(s[0]): return s[0].encode('utf-8', method).decode('utf-8') else: retur...
python
def analyse_ligand_sasa(self): """Analysis of ligand SASA.""" i=0 start = timer() if self.trajectory == []: self.trajectory = [self.topology_data.universe.filename] try: for traj in self.trajectory: new_traj = mdtraj.load(traj,top=self.topology_data.universe.filename) #Analyse only non-H ligand ...
java
@Deprecated public static SslContext newServerContext( SslProvider provider, File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, Iterable<String> nextProtocols, long sessionCacheSize, long sessionTimeout) throws SSLException { retur...
java
public User getUser(String cuid) { User user = UserGroupCache.getUser(cuid); if (user == null) return null; // add empty attributes if (user.getAttributes() == null) user.setAttributes(new HashMap<String,String>()); for (String name : UserGroupCache.getUse...
java
public void marshall(DescribeCommentsRequest describeCommentsRequest, ProtocolMarshaller protocolMarshaller) { if (describeCommentsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeCo...
java
public static final int nextPrime8191(final int desiredCapacity) { if (desiredCapacity < 0) return 1; if (desiredCapacity <= 8191) { final int i = Arrays.binarySearch(primeCapacities8191, (short) desiredCapacity); return primeCapacities8191[((i < 0) ? ((-i) - 1) : i)]; } return nextPrime(desiredCapacit...
java
public static String getSupervisorSlotPorts(int memory, int vcores, String instanceName, String supervisorHost, RegistryOperations registryOperations) { return join(getSupervisorPorts(memory, vcores, instanceName, supervisorHost, registryOperations), JOYConstants.COMMA, false); }
python
def get_objective_mdata(): """Return default mdata map for Objective""" return { 'cognitive_process': { 'element_label': { 'text': 'cognitive process', 'languageTypeId': str(DEFAULT_LANGUAGE_TYPE), 'scriptTypeId': str(DEFAULT_SCRIPT_TYPE), ...
java
public static LegacyDocument create(String id, Object content, long cas) { return new LegacyDocument(id, 0, content, cas, null); }
python
def stratify_by_features(features, n_strata, **kwargs): """Stratify by clustering the items in feature space Parameters ---------- features : array-like, shape=(n_items,n_features) feature matrix for the pool, where rows correspond to items and columns correspond to features. n_str...
python
def paga_compare( adata, basis=None, edges=False, color=None, alpha=None, groups=None, components=None, projection='2d', legend_loc='on data', legend_fontsize=None, legend_fontweight='bold', color_map=None, palette=N...
java
public Expression withAnd(Expression... and) { if (this.and == null) { setAnd(new java.util.ArrayList<Expression>(and.length)); } for (Expression ele : and) { this.and.add(ele); } return this; }
java
public static ViewMover createInstance(View view) { ViewMover viewMover; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN // KitKat is an exclusion because of its rendering issues && Build.VERSION.SDK_INT != Build.VERSION_CODES.KITKAT) { viewMover = new PositionViewMover(view); } else { ...
python
def update_result(trigger_id, msg, status): """ :param trigger_id: trigger id :param msg: result msg :param status: status of the handling of the current trigger :return: """ service = TriggerService.objects.get(id=trigger_id) # if status is True, reset *_failed counter if status: ...
python
def pbar_strings(files, desc='', **kwargs): """Wrapper for `tqdm` progress bar which also sorts list of strings """ return tqdm( sorted(files, key=lambda s: s.lower()), desc=('<' + str(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) + '> ' + desc), dynamic_ncols=True, ...
java
public String receiveString() throws IOException { int len = pgInput.scanCStringLength(); String res = encoding.decode(pgInput.getBuffer(), pgInput.getIndex(), len - 1); pgInput.skip(len); return res; }
python
def ensure_dir_exists(path): """ create a directory if required """ dir_path = os.path.dirname(path) if not os.path.exists(dir_path): os.makedirs(dir_path)
python
def get_pathway(self, pathway_name=None, pathway_id=None, limit=None, as_df=False): """Get pathway .. note:: Format of pathway_id is KEGG:X* or REACTOME:X* . X* stands for a sequence of digits :param bool as_df: if set to True result returns as `pandas.DataFrame` :param str...
python
def output_buffer_size(self, output_buffer_size_b): """output_buffer_size (nsqd 0.2.21+) the size in bytes of the buffer nsqd will use when writing to this client. Valid range: 64 <= output_buffer_size <= configured_max (-1 disables output buffering) --max-output-buffer-size ...
python
def show( self, at=None, shape=(1, 1), N=None, pos=(0, 0), size="auto", screensize="auto", title="", bg="blackboard", bg2=None, axes=4, infinity=False, verbose=True, interactive=None, offscreen=False,...
python
def _get_renamed_deleted_sources(self): """ Get renamed and deleted sources lists from receiver . Internal method which queries device via HTTP to get names of renamed input sources. """ # renamed_sources and deleted_sources are dicts with "source" as key # and "...
python
def get_essential_properties(self): """Get the essential scheduling properties :returns: a dictionary containing memory size, disk size, number of cpus, cpu arch, port numbers and mac addresses. :raises: IloError, on an error from iLO. :raises: IloCom...
python
def describe(i): """ Input: { (dict) - dict with current repo description } Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 (dict) ...
python
def export(self, location): """Export the svn repository at the url to the destination location""" url, rev = self.get_url_rev() logger.notify('Exporting svn repository %s to %s' % (url, location)) logger.indent += 2 try: if os.path.exists(location): #...
java
protected void writeObjectHeader(List<Object> list) { // action list.add("{\"" + getOperation() + "\":{"); // flag indicating whether a comma needs to be added between fields boolean commaMightBeNeeded = false; commaMightBeNeeded = addExtractorOrDynamicValue(list, getMetadataEx...
java
public void configure() throws LRException { // Trim or nullify strings nodeHost = StringUtil.nullifyBadInput(nodeHost); publishAuthUser = StringUtil.nullifyBadInput(publishAuthUser); publishAuthPassword = StringUtil.nullifyBadInput(publishAuthPassword); // Throw an exce...
java
public void setGroups(java.util.Collection<GroupSummary> groups) { if (groups == null) { this.groups = null; return; } this.groups = new java.util.ArrayList<GroupSummary>(groups); }
java
public void close() { Iterator<SocketDestination> it = getStatsMap().keySet().iterator(); while(it.hasNext()) { try { SocketDestination destination = it.next(); JmxUtils.unregisterMbean(JmxUtils.createObjectName(JmxUtils.getPackageName(ClientRequestExecutor.cl...
java
public void marshall(NetworkInterface networkInterface, ProtocolMarshaller protocolMarshaller) { if (networkInterface == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(networkInterface.getIpv6Address...
python
def _align_from_fastq(fastq1, fastq2, aligner, align_ref, sam_ref, names, align_dir, data): """Align from fastq inputs, producing sorted BAM output. """ config = data["config"] align_fn = TOOLS[aligner].align_fn out = align_fn(fastq1, fastq2, align_ref, names, align_dir, data) ...
python
def import_submodules(package, recursive=True): """ Import all submodules of a module, recursively, including subpackages :param package: package (name or actual module) :type package: str | module :rtype: dict[str, types.ModuleType] """ if isinstance(package, str): package = importlib....
python
def run_in_background(coroutine: "Callable[[concurrent.futures.Future[T], Coroutine[Any, Any, None]]", *, debug: bool = False, _policy_lock: threading.Lock = threading.Lock()) -> T: """ Runs ``coroutine(future)`` in a new event loop on a background thread. Blocks and returns the *future* result as soon as ...
java
private static <T extends Appendable> void recursiveAppendNumber(T result, int n, int radix, int minDigits) { try { int digit = n % radix; if (n >= radix || minDigits > 1) { recursiveAppendNumber(result, n / radix, radix, minDigits - 1); } ...
java
public SIMPTransmitMessageControllable getTransmitMessageByID(String id) throws SIMPControllableNotFoundException, SIMPRuntimeOperationFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTransmitMessageByID", id); SIMPTransmitMessageControllable ms...
java
public Object getValue2Render(FacesContext context, SelectMultiMenu menu) { Object sv = menu.getSubmittedValue(); if (sv != null) { return sv; } Object val = menu.getValue(); if (val != null) { Converter converter = menu.getConverter(); if (converter != null) return converter.getAsString(contex...
java
public void deleteCustomAttribute(final Object userIdOrUsername, final String key) throws GitLabApiException { if (Objects.isNull(key) || key.trim().isEmpty()) { throw new IllegalArgumentException("Key can't be null or empty"); } delete(Response.Status.OK, null, "users", getUserIdO...
java
public final void mLE() throws RecognitionException { try { int _type = LE; int _channel = DEFAULT_TOKEN_CHANNEL; // hql.g:739:3: ( '<=' ) // hql.g:739:5: '<=' { match("<="); if (state.failed) return; } state.type = _type; state.channel = _channel; } finally { // do for sure before...
python
def current(cls, *args): """ Return the active configuration entry, either from cache, from the database, or by creating a new empty entry (which is not persisted). """ cached = cache.get(cls.cache_key_name(*args)) if cached is not None: return cached ...
python
def configure_namespacebrowser(self): """Configure associated namespace browser widget""" # Update namespace view self.sig_namespace_view.connect(lambda data: self.namespacebrowser.process_remote_view(data)) # Update properties of variables self.sig_var_properties.co...
java
public Observable<List<ServerCommunicationLinkInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerCommunicationLinkInner>>, List<ServerCommunicationLinkInner>>() { ...
java
@Override public ZonedDateTime read(JsonReader reader) throws IOException { if (reader.peek() == JsonToken.NULL) { reader.nextNull(); return null; } String timeZoneId = ""; long secondsSinceEpoch = 0L; reader.beginObject(); while (reader.hasNext()) { String name = reader.ne...
python
async def delete(self): """ Delete the TURN allocation. """ if self.refresh_handle: self.refresh_handle.cancel() self.refresh_handle = None request = stun.Message(message_method=stun.Method.REFRESH, message_class=stun.Class....
java
public Condition withNeq(String... neq) { if (this.neq == null) { setNeq(new java.util.ArrayList<String>(neq.length)); } for (String ele : neq) { this.neq.add(ele); } return this; }
python
def upstream(self): """Get the remote name to use for upstream branches Uses "upstream" if it exists, "origin" otherwise """ cmd = ["git", "remote", "get-url", "upstream"] try: subprocess.check_output(cmd, stderr=subprocess.DEVNULL) except subprocess.CalledPro...
java
public static String optionallyPrependSlash(final String path) { // Adjust null String resolved = path; if (resolved == null) { resolved = EMPTY; } // If the first character is not a slash if (!isFirstCharSlash(resolved)) { // Prepend the slash ...
java
@Override // override for Javadoc public boolean isSupported(TemporalUnit unit) { if (unit instanceof ChronoUnit) { return unit != FOREVER; } return unit != null && unit.isSupportedBy(this); }
python
def EventsNotificationsGet(self, event_notification_id = -1): """ Retrieve either all notifications or the notifications attached to a specific event. If successful, result can be obtained by a call to getResponse(), and should be a json string. @param event...
python
def _get_proj_specific_params(self, projection): """Convert CF projection parameters to PROJ.4 dict.""" proj = self._get_proj4_name(projection) proj_dict = { 'proj': proj, 'a': float(projection.attrs['semi_major_axis']), 'b': float(projection.attrs['semi_minor...
java
@Override public DescribeGatewayInformationResult describeGatewayInformation(DescribeGatewayInformationRequest request) { request = beforeClientExecution(request); return executeDescribeGatewayInformation(request); }
java
protected void relink(OutputElementBase parent) { mNsMapping = parent.mNsMapping; mNsMapShared = (mNsMapping != null); mDefaultNsURI = parent.mDefaultNsURI; mRootNsContext = parent.mRootNsContext; }
python
def parse_args(): """Parse the command line arguments.""" parser = argparse.ArgumentParser( description='Check kafka current status', ) parser.add_argument( "--cluster-type", "-t", dest='cluster_type', required=True, help='Type of cluster', default...
python
async def load_cache(self, archive: bool = False) -> int: """ Load caches and archive enough to go offline and be able to generate proof on all credentials in wallet. Return timestamp (epoch seconds) of cache load event, also used as subdirectory for cache archives. :re...
java
public static void assertEquals(String expectedStr, JSONArray actual, JSONCompareMode compareMode) throws JSONException { assertEquals("", expectedStr, actual, compareMode); }
java
public static boolean verify(final String name, final X509Certificate cert) { try { verifier.verify(name, cert); return true; } catch (final SSLException ex) { // this is only logged here because eventually a CertificateException will be throw in verifyAndThrow. //...
python
def download_configuration(self) -> str: """downloads the current configuration from the cloud Returns the downloaded configuration or an errorCode """ return self._restCall( "home/getCurrentState", json.dumps(self._connection.clientCharacteristics) ...
java
public Vector4d rotate(Quaterniondc quat, Vector4d dest) { quat.transform(this, dest); return dest; }
java
public void marshall(DescribeJobRequest describeJobRequest, ProtocolMarshaller protocolMarshaller) { if (describeJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeJobRequest.getJob...
java
public static boolean arrayEquals(ArrayView av1, ArrayView av2) { int len = av1.getLength(); if (len != av2.getLength()) { return false; } byte[] a1 = av1.array(); int o1 = av1.arrayOffset(); byte[] a2 = av2.array(); int o2 = av2.arrayOffset(); ...
python
def stop(self, free_resource=False): ''' send a stop transfer request to the Aspera sdk, can be done for: cancel - stop an in progress transfer free_resource - request to the Aspera sdk free resouces related to trasnfer_id ''' if not self.is_stopped(): self._...