sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self (identifier_s) identifier_s )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self ...
Write string s to the stream.
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_href) identifier_href )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_is_fake) identifier...
Fetch a single item.
(module (function_definition (function_name__cast) function_name__cast (parameters (identifier_cls) identifier_cls (identifier_base_info) identifier_base_info (default_parameter (identifier_take_ownership) identifier_take_ownership (True) True )default_parameter )pa...
Casts a GIBaseInfo instance to the right sub type. The original GIBaseInfo can't have ownership. Will take ownership.
(module (function_definition (function_name_create_secret) function_name_create_secret (parameters (identifier_self) identifier_self (identifier_value) identifier_value (identifier_contributor) identifier_contributor (default_parameter (identifier_metadata) identifier_metadata ...
Create a new secret, returning its handle. :param value: Secret value to store :param contributor: User owning the secret :param metadata: Optional metadata dictionary (must be JSON serializable) :param expires: Optional date/time of expiry (defaults to None, which means that ...
(module (function_definition (function_name_dump) function_name_dump (parameters (identifier_self) identifier_self (identifier_fname) identifier_fname )parameters (block (with_statement (with_clause (with_item (as_pattern (call ...
Saves TZX file to fname
(module (function_definition (function_name_record) function_name_record (parameters (identifier_self) identifier_self (default_parameter (identifier_chunk_size) identifier_chunk_size (None) None )default_parameter (default_parameter (identifier_dfmt) identifier...
Records audio from device into a Stream. Parameters ---------- chunk_size : Number of samples per chunk (block sent to device). dfmt : Format, as in chunks(). Default is "f" (Float32). channels : Channels in audio stream (serialized). rate : Sample rate (same input used ...
(module (function_definition (function_name_merge_pres_feats) function_name_merge_pres_feats (parameters (identifier_pres) identifier_pres (identifier_features) identifier_features )parameters (block (expression_statement (assignment (identifier_sub) identifier_sub ...
Helper function to merge pres and features to support legacy features argument
(module (function_definition (function_name_get_arg_value_as_type) function_name_get_arg_value_as_type (parameters (identifier_self) identifier_self (identifier_key) identifier_key (default_parameter (identifier_default) identifier_default (None) None )default_parameter...
Allow users to pass through truthy type values like true, yes, no and get to a typed variable in your code :param str val: The string reprensentation of the value you want to convert :returns: adapted value :rtype: dynamic
(module (function_definition (function_name_do_printActivities) function_name_do_printActivities (parameters (identifier_self) identifier_self (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_parser) identifier_parse...
Print scaling activities
(module (function_definition (function_name__contextMenu) function_name__contextMenu (parameters (identifier_self) identifier_self (identifier_pos) identifier_pos )parameters (block (expression_statement (assignment (identifier_menu) identifier_menu (call ...
Handle plot area customContextMenuRequested signal. :param QPoint pos: Mouse position relative to plot area
(module (function_definition (function_name_get) function_name_get (parameters (identifier_url) identifier_url (default_parameter (identifier_params) identifier_params (dictionary )dictionary )default_parameter )parameters (block (expression_statement ...
Invoke an HTTP GET request on a url Args: url (string): URL endpoint to request params (dict): Dictionary of url parameters Returns: dict: JSON response as a dictionary
(module (function_definition (function_name_equipable_classes) function_name_equipable_classes (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_sitem) identifier_sitem (attribute (identifi...
Returns a list of classes that _can_ use the item.
(module (function_definition (function_name_oauth2) function_name_oauth2 (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__url) ...
returns the oauth2 class
(module (function_definition (function_name_failure_count) function_name_failure_count (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_len) identifier_len (argument_list (list_comprehension ...
Amount of failed test cases in this list. :return: integer
(module (function_definition (function_name_uri) function_name_uri (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier__uds_path) identifier__uds_path )attribute ...
Connection string to pass to `~pymongo.mongo_client.MongoClient`.
(module (function_definition (function_name_remote_run) function_name_remote_run (parameters (identifier_cmd) identifier_cmd (identifier_instance_name) identifier_instance_name (default_parameter (identifier_detach) identifier_detach (False) False )default_parameter ...
Run command on GCS instance, optionally detached.
(module (function_definition (function_name_setCentralWidget) function_name_setCentralWidget (parameters (identifier_self) identifier_self (identifier_widget) identifier_widget )parameters (block (expression_statement (assignment (attribute (identifier_s...
Sets the central widget for this overlay to the inputed widget. :param widget | <QtGui.QWidget>
(module (function_definition (function_name_from_json) function_name_from_json (parameters (identifier_cls) identifier_cls (identifier_data) identifier_data (default_parameter (identifier_result) identifier_result (None) None )default_parameter )parameters (bloc...
Create new Node element from JSON data :param data: Element data from JSON :type data: Dict :param result: The result this element belongs to :type result: overpy.Result :return: New instance of Node :rtype: overpy.Node :raises overpy.exception.ElementDataWrongTy...
(module (function_definition (function_name__select_concept) function_name__select_concept (parameters (identifier_self) identifier_self (identifier_line) identifier_line )parameters (block (expression_statement (assignment (identifier_g) identifier_g (sub...
try to match a class and load it
(module (function_definition (function_name__es_data) function_name__es_data (parameters (identifier_settings) identifier_settings )parameters (block (return_statement (dictionary_comprehension (pair (identifier_k) identifier_k (subscript ...
Extract data formating related subset of widget settings.
(module (function_definition (function_name_get_filelikeobject) function_name_get_filelikeobject (parameters (typed_default_parameter (identifier_filename) identifier_filename (type (identifier_str) identifier_str )type (None) None )typed_default_parameter...
Open a file-like object. Guard the use of this function with ``with``. Args: filename: for specifying via a filename blob: for specifying via an in-memory ``bytes`` object Returns: a :class:`BinaryIO` object
(module (function_definition (function_name_op) function_name_op (parameters (identifier_name) identifier_name (identifier_data) identifier_data (default_parameter (identifier_display_name) identifier_display_name (None) None )default_parameter (default_parameter ...
Create a legacy text summary op. Text data summarized via this plugin will be visible in the Text Dashboard in TensorBoard. The standard TensorBoard Text Dashboard will render markdown in the strings, and will automatically organize 1D and 2D tensors into tables. If a tensor with more than 2 dimensions is prov...
(module (function_definition (function_name_delete_vlan) function_name_delete_vlan (parameters (identifier_self) identifier_self (identifier_nexus_host) identifier_nexus_host (identifier_vlanid) identifier_vlanid )parameters (block (expression_statement (assignment ...
Delete a VLAN on Nexus Switch given the VLAN ID.
(module (function_definition (function_name_heightmap_normalize) function_name_heightmap_normalize (parameters (typed_parameter (identifier_hm) identifier_hm (type (attribute (identifier_np) identifier_np (identifier_ndarray) identifier_ndarray ...
Normalize heightmap values between ``mi`` and ``ma``. Args: mi (float): The lowest value after normalization. ma (float): The highest value after normalization.
(module (function_definition (function_name_close) function_name_close (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (identifier_value) identifier_value (None) None ...
Notify the Cytomine server of the job's end Incurs a dataflows
(module (function_definition (function_name_seg) function_name_seg (parameters (identifier_reference_intervals) identifier_reference_intervals (identifier_estimated_intervals) identifier_estimated_intervals )parameters (block (return_statement (call (identifier_min)...
Compute the MIREX 'MeanSeg' score. Examples -------- >>> (ref_intervals, ... ref_labels) = mir_eval.io.load_labeled_intervals('ref.lab') >>> (est_intervals, ... est_labels) = mir_eval.io.load_labeled_intervals('est.lab') >>> score = mir_eval.chord.seg(ref_intervals, est_intervals) Pa...
(module (function_definition (function_name_coarse_tag_str) function_name_coarse_tag_str (parameters (identifier_pos_seq) identifier_pos_seq )parameters (block (global_statement (identifier_tag2coarse) identifier_tag2coarse )global_statement (expression_statement ...
Convert POS sequence to our coarse system, formatted as a string.
(module (function_definition (function_name_get_project_id) function_name_get_project_id (parameters )parameters (block (if_statement (comparison_operator (attribute (identifier_os) identifier_os (identifier_name) identifier_name )attribute ...
Gets the project ID from the Cloud SDK. Returns: Optional[str]: The project ID.
(module (function_definition (function_name_add_phrase) function_name_add_phrase (parameters (identifier_self) identifier_self (typed_parameter (identifier_phrase) identifier_phrase (type (generic_type (identifier_List) identifier_List (type_parame...
Recursively adds a phrase to this trie node. :param phrase: A list of word IDs to add to this trie node.
(module (function_definition (function_name_parse_regions) function_name_parse_regions (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (if_statement (comparison_operator (call (attribute (a...
Given a file path, it loads it into memory as a Pandas dataframe :param path: file path :return: a Pandas Dataframe
(module (function_definition (function_name_body_block_paragraph_content) function_name_body_block_paragraph_content (parameters (identifier_text) identifier_text )parameters (block (expression_statement (string_"for formatting of simple paragraphs of text only, and check if it is ...
for formatting of simple paragraphs of text only, and check if it is all whitespace
(module (function_definition (function_name_bytes_from_string) function_name_bytes_from_string (parameters (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_BYTE_POWER) identifier_BYTE_POWER (dictionary ...
Interpret human readable string value as bytes. Returns int
(module (function_definition (function_name_group_by) function_name_group_by (parameters (identifier_keys) identifier_keys (default_parameter (identifier_values) identifier_values (None) None )default_parameter (default_parameter (identifier_reduction) identifie...
construct a grouping object on the given keys, optionally performing the given reduction on the given values Parameters ---------- keys : indexable object keys to group by values : array_like, optional sequence of values, of the same length as keys if a reduction function is pro...
(module (function_definition (function_name_discrete) function_name_discrete (parameters (identifier_self) identifier_self (identifier_vertices) identifier_vertices (default_parameter (identifier_scale) identifier_scale (float_1.0) float_1.0 )default_parameter )para...
Discretize the arc entity into line sections. Parameters ------------ vertices : (n, dimension) float Points in space scale : float Size of overall scene for numerical comparisons Returns ------------- discrete: (m, dimension) float, line...
(module (function_definition (function_name_push_build_status) function_name_push_build_status (parameters (identifier_id) identifier_id )parameters (block (expression_statement (assignment (identifier_response) identifier_response (call (attribute ...
Get status of Brew push.
(module (function_definition (function_name_refresh) function_name_refresh (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_client) identifier_client (call (attribute (identi...
Get the latest representation of the current model.
(module (function_definition (function_name_is_email_simple) function_name_is_email_simple (parameters (identifier_value) identifier_value )parameters (block (if_statement (boolean_operator (boolean_operator (comparison_operator (string_'@') stri...
Return True if value looks like an email address.
(module (function_definition (function_name_create) function_name_create (parameters (identifier_fs) identifier_fs (identifier_channels) identifier_channels (identifier_application) identifier_application )parameters (block (expression_statement (assignment (i...
Allocates and initializes an encoder state.
(module (function_definition (function_name_generate_yaml_file) function_name_generate_yaml_file (parameters (identifier_filename) identifier_filename (identifier_contents) identifier_contents )parameters (block (with_statement (with_clause (with_item (a...
Creates a yaml file with the given content.
(module (function_definition (function_name__is_non_string_iterable) function_name__is_non_string_iterable (parameters (identifier_value) identifier_value )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list ...
Whether a value is iterable.
(module (function_definition (function_name_PrependSOffsetTRelative) function_name_PrependSOffsetTRelative (parameters (identifier_self) identifier_self (identifier_off) identifier_off )parameters (block (expression_statement (call (attribute (identifier...
PrependSOffsetTRelative prepends an SOffsetT, relative to where it will be written.
(module (function_definition (function_name_login) function_name_login (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_reddit) ...
Prompt to log into the user's account, or log out of the current account.
(module (function_definition (function_name_set_input_by_xpath) function_name_set_input_by_xpath (parameters (identifier_self) identifier_self (identifier_xpath) identifier_xpath (identifier_value) identifier_value )parameters (block (expression_statement (assignment ...
Set the value of form element by xpath :param xpath: xpath path :param value: value which should be set to element
(module (function_definition (function_name_convert_items) function_name_convert_items (parameters (identifier_self) identifier_self (identifier_items) identifier_items )parameters (block (return_statement (generator_expression (tuple (identifier_key) id...
Generator like `convert_iterable`, but for 2-tuple iterators.
(module (function_definition (function_name_slice_to) function_name_slice_to (parameters (identifier_self) identifier_self (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_result) identifier_result (string_'') st...
Copy the slice into the supplied StringBuffer @type s: string
(module (function_definition (function_name_smart_unicode) function_name_smart_unicode (parameters (identifier_s) identifier_s (default_parameter (identifier_encoding) identifier_encoding (string_'utf-8') string_'utf-8' )default_parameter (default_parameter (ide...
Returns a unicode object representing 's'. Treats bytestrings using the 'encoding' codec. If strings_only is True, don't convert (some) non-string-like objects.
(module (function_definition (function_name_verify_keys) function_name_verify_keys (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_verify_keys_endpoint) identifier_verify_keys_endpoint (call ...
Verify that the public and private key combination is valid; raises MollomAuthenticationError otherwise
(module (function_definition (function_name_is_exact) function_name_is_exact (parameters (identifier_needle) identifier_needle (identifier_haystack) identifier_haystack (identifier_start) identifier_start (identifier_end) identifier_end (identifier_matchnot) identifier_matchnot ...
Check exact occurrence of needle in haystack
(module (function_definition (function_name_read_xso) function_name_read_xso (parameters (identifier_src) identifier_src (identifier_xsomap) identifier_xsomap )parameters (block (expression_statement (assignment (identifier_xso_parser) identifier_xso_parser ...
Read a single XSO from a binary file-like input `src` containing an XML document. `xsomap` must be a mapping which maps :class:`~.XSO` subclasses to callables. These will be registered at a newly created :class:`.xso.XSOParser` instance which will be used to parse the document in `src`. The `...
(module (function_definition (function_name__CreateMultipleValuesCondition) function_name__CreateMultipleValuesCondition (parameters (identifier_self) identifier_self (identifier_values) identifier_values (identifier_operator) identifier_operator )parameters (block (expression_...
Creates a condition with the provided list of values and operator.
(module (function_definition (function_name_is_transaction_invalidated) function_name_is_transaction_invalidated (parameters (identifier_transaction) identifier_transaction (identifier_state_change) identifier_state_change )parameters (block (expression_statement (assignment ...
True if the `transaction` is made invalid by `state_change`. Some transactions will fail due to race conditions. The races are: - Another transaction which has the same side effect is executed before. - Another transaction which *invalidates* the state of the smart contract required by the local trans...
(module (function_definition (function_name__after_request) function_name__after_request (parameters (identifier_self) identifier_self (identifier_response) identifier_response )parameters (block (if_statement (call (attribute (identifier_utils) identifi...
A function to be run after each request. See: http://flask.pocoo.org/docs/0.12/api/#flask.Flask.after_request
(module (function_definition (function_name_get_catalog_admin_session) function_name_get_catalog_admin_session (parameters (identifier_self) identifier_self (identifier_proxy) identifier_proxy )parameters (block (if_statement (not_operator (call (attribu...
Gets the catalog administrative session for creating, updating and deleting catalogs. arg: proxy (osid.proxy.Proxy): a proxy return: (osid.cataloging.CatalogAdminSession) - a ``CatalogAdminSession`` raise: NullArgument - ``proxy`` is ``null`` raise: OperationFailed ...
(module (function_definition (function_name_add_modules) function_name_add_modules (parameters (identifier_self) identifier_self (identifier_package) identifier_package )parameters (block (for_statement (identifier_name) identifier_name (call (attribute ...
Add the modules of the given package without their members.
(module (function_definition (function_name_cli) function_name_cli (parameters (identifier_log_level) identifier_log_level )parameters (block (try_statement (block (expression_statement (call (identifier_has_minimum_version) identifier_has_minimu...
Manage tmux sessions. Pass the "--help" argument to any command to see detailed help. See detailed documentation and examples at: http://tmuxp.readthedocs.io/en/latest/
(module (function_definition (function_name_registerCategory) function_name_registerCategory (parameters (identifier_category) identifier_category )parameters (block (global_statement (identifier__DEBUG) identifier__DEBUG )global_statement (global_statement (ide...
Register a given category in the debug system. A level will be assigned to it based on previous calls to setDebug.
(module (function_definition (function_name_schedule) function_name_schedule (parameters (identifier_self) identifier_self (identifier_task) identifier_task )parameters (block (expression_statement (call (attribute (attribute (identifier_se...
Schedules a new Task in the PoolManager.
(module (function_definition (function_name_import_file) function_name_import_file (parameters (identifier_self) identifier_self (identifier_record) identifier_record (identifier_field) identifier_field (identifier_fname) identifier_fname (identifier_fobj) identifier_fobj (...
Import the contents of a file represented by fobj to a particular records field Parameters ---------- record : str record ID field : str field name where the file will go fname : str file name visible in REDCap UI fobj : file o...
(module (function_definition (function_name_get_package_versions) function_name_get_package_versions (parameters (identifier_intfs) identifier_intfs (identifier_props) identifier_props )parameters (block (expression_statement (assignment (identifier_result) identifi...
Gets the package version of interfaces :param intfs: A list of interfaces :param props: A dictionary containing endpoint package versions :return: A list of tuples (package name, version)
(module (function_definition (function_name_minimum_multivariate_ess) function_name_minimum_multivariate_ess (parameters (identifier_nmr_params) identifier_nmr_params (default_parameter (identifier_alpha) identifier_alpha (float_0.05) float_0.05 )default_parameter (defa...
r"""Calculate the minimum multivariate Effective Sample Size you will need to obtain the desired precision. This implements the inequality from Vats et al. (2016): .. math:: \widehat{ESS} \geq \frac{2^{2/p}\pi}{(p\Gamma(p/2))^{2/p}} \frac{\chi^{2}_{1-\alpha,p}}{\epsilon^{2}} Where :math:`p` is t...
(module (function_definition (function_name_download_media_by_id) function_name_download_media_by_id (parameters (identifier_self) identifier_self (identifier_media_id) identifier_media_id )parameters (block (try_statement (block (expression_statement (a...
Given a message ID, finds the media this message contained and downloads it.
(module (function_definition (function_name_get_default_compartment) function_name_get_default_compartment (parameters (identifier_model) identifier_model )parameters (block (expression_statement (assignment (identifier_default_compartment) identifier_default_compartment ...
Return what the default compartment should be set to. If some compounds have no compartment, unique compartment name is returned to avoid collisions.
(module (function_definition (function_name_get_assessment_offered_query_session) function_name_get_assessment_offered_query_session (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (call (attribute (id...
Gets the ``OsidSession`` associated with the assessment offered query service. return: (osid.assessment.AssessmentOfferedQuerySession) - an ``AssessmentOfferedQuerySession`` raise: OperationFailed - unable to complete request raise: Unimplemented - ``supports_assessment_offere...
(module (function_definition (function_name__extract_key_value) function_name__extract_key_value (parameters (identifier_obj) identifier_obj )parameters (block (expression_statement (assignment (identifier_key) identifier_key (None) None )assignment ...
Extract the value from the object and make a descriptive key
(module (function_definition (function_name_total_errors) function_name_total_errors (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_child_errors) identifier_child_errors (call (identifie...
The total number of errors in the entire tree, including children.
(module (function_definition (function_name_socks_username) function_name_socks_username (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (expression_statement (call (attribute (identifier_self) identif...
Sets socks proxy username setting. :Args: - value: The socks proxy username value.
(module (function_definition (function_name_coinbase_tx) function_name_coinbase_tx (parameters (identifier_cls) identifier_cls (identifier_public_key_sec) identifier_public_key_sec (identifier_coin_value) identifier_coin_value (default_parameter (identifier_coinbase_bytes) iden...
Create the special "first in block" transaction that includes the mining fees.
(module (function_definition (function_name_average_sources) function_name_average_sources (parameters (typed_parameter (identifier_source_encoded) identifier_source_encoded (type (attribute (attribute (identifier_mx) identifier_mx (ident...
Calculate the average of encoded sources taking into account their lengths. :param source_encoded: Encoder representation for n elements. Shape: (n, source_encoded_length, hidden_size). :param source_encoded_length: A vector of encoded sequence lengths. Shape: (n,). :return: Average vectors. Sh...
(module (function_definition (function_name_path_exists_or_creatable_portable) function_name_path_exists_or_creatable_portable (parameters (typed_parameter (identifier_pathname) identifier_pathname (type (identifier_str) identifier_str )type )typed_parameter )...
OS-portable check for whether current path exists or is creatable. This function is guaranteed to _never_ raise exceptions. Returns ------ `True` if the passed pathname is a valid pathname on the current OS _and_ either currently exists or is hypothetically creatable in a cross-platform manner...
(module (function_definition (function_name_pandas_series_to_biopython_seqrecord) function_name_pandas_series_to_biopython_seqrecord (parameters (identifier_series) identifier_series (default_parameter (identifier_id_col) identifier_id_col (string_'uid') string_'uid' )default...
Convert pandas series to biopython seqrecord for easy writing. Parameters ---------- series : Series Pandas series to convert id_col : str column in dataframe to use as sequence label sequence_col : str column in dataframe to use as sequence data extra_data : list ...
(module (function_definition (function_name_register_preset) function_name_register_preset (parameters (identifier_cls) identifier_cls (identifier_name) identifier_name (identifier_preset) identifier_preset )parameters (block (if_statement (comparison_operator ...
Register a preset instance with the class of the hub it corresponds to. This allows individual plugin objects to automatically register themselves with a preset by using a classmethod of their own with only the name of the preset to register with.
(module (function_definition (function_name__update_all_devices) function_name__update_all_devices (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (iden...
Update the all_devices list.
(module (function_definition (function_name_deletescript) function_name_deletescript (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (assignment (pattern_list (identifier_code) iden...
Delete a script from the server See MANAGESIEVE specifications, section 2.10 :param name: script's name :rtype: boolean
(module (function_definition (function_name_init) function_name_init (parameters (identifier_image) identifier_image (default_parameter (identifier_root) identifier_root (None) None )default_parameter )parameters (block (expression_statement (assignment ...
Mount the named image via qemu-nbd and return the mounted roots CLI Example: .. code-block:: bash salt '*' qemu_nbd.init /srv/image.qcow2
(module (function_definition (function_name_cudnnDestroy) function_name_cudnnDestroy (parameters (identifier_handle) identifier_handle )parameters (block (expression_statement (assignment (identifier_status) identifier_status (call (attribute ...
Release cuDNN resources. Release hardware resources used by cuDNN. Parameters ---------- handle : cudnnHandle cuDNN context.
(module (function_definition (function_name_getFeatureSet) function_name_getFeatureSet (parameters (identifier_self) identifier_self (identifier_id_) identifier_id_ )parameters (block (if_statement (comparison_operator (identifier_id_) identifier_id_ (attr...
Returns the FeatureSet with the specified id, or raises a FeatureSetNotFoundException otherwise.
(module (function_definition (function_name_packbools) function_name_packbools (parameters (identifier_bools) identifier_bools (default_parameter (identifier_dtype) identifier_dtype (string_'L') string_'L' )default_parameter )parameters (block (expression_statem...
Yield integers concatenating bools in chunks of dtype bit-length. >>> list(packbools([False, True, False, True, False, True], 'B')) [42]
(module (function_definition (function_name_get_compare_version) function_name_get_compare_version (parameters )parameters (block (expression_statement (assignment (pattern_list (identifier_state) identifier_state (identifier_latest_version) identifier_l...
Get the version comparison info. Returns: (tuple) state (int): -1 for lower version, 0 for same version, 1 for higher version than latest. response (str): The response string.
(module (function_definition (function_name_looks_like_url) function_name_looks_like_url (parameters (identifier_url) identifier_url )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list ...
Simplified check to see if the text appears to be a URL. Similar to `urlparse` but much more basic. Returns: True if the url str appears to be valid. False otherwise. >>> url = looks_like_url("totalgood.org") >>> bool(url) True
(module (function_definition (function_name_reftrack_object_data) function_name_reftrack_object_data (parameters (identifier_rt) identifier_rt (identifier_role) identifier_role )parameters (block (if_statement (comparison_operator (identifier_role) identifier_role ...
Return the reftrack for REFTRACK_OBJECT_ROLE :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the id :rtype: depending on the role :raises: ...
(module (function_definition (function_name__from_derivatives) function_name__from_derivatives (parameters (identifier_xi) identifier_xi (identifier_yi) identifier_yi (identifier_x) identifier_x (default_parameter (identifier_order) identifier_order (None) None )d...
Convenience function for interpolate.BPoly.from_derivatives. Construct a piecewise polynomial in the Bernstein basis, compatible with the specified values and derivatives at breakpoints. Parameters ---------- xi : array_like sorted 1D array of x-coordinates yi : array_like or list of a...
(module (function_definition (function_name_post) function_name_post (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_data) identifier_data (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern...
Perform an HTTP POST request of the specified path in Device Cloud Make an HTTP POST request against Device Cloud with this accounts credentials and base url. This method uses the `requests <http://docs.python-requests.org/en/latest/>`_ library `request method <http://docs.python-reque...
(module (function_definition (function_name_get_addon_id) function_name_get_addon_id (parameters (identifier_addonxml) identifier_addonxml )parameters (block (expression_statement (assignment (identifier_xml) identifier_xml (call (identifier_parse) i...
Parses an addon id from the given addon.xml filename.
(module (function_definition (function_name__check_local_handlers) function_name__check_local_handlers (parameters (identifier_cls) identifier_cls (identifier_signals) identifier_signals (identifier_handlers) identifier_handlers (identifier_namespace) identifier_namespace (identi...
For every marked handler, see if there is a suitable signal. If not, raise an error.
(module (function_definition (function_name__from_dict) function_name__from_dict (parameters (identifier_cls) identifier_cls (identifier__dict) identifier__dict )parameters (block (expression_statement (assignment (identifier_args) identifier_args (diction...
Initialize a QueryEntitiesResponse object from a json dictionary.
(module (function_definition (function_name__generate_grid) function_name__generate_grid (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_grid_axes) identifier_grid_axes (list )list ...
Get the all possible values for each of the tunables.
(module (function_definition (function_name_matches) function_name_matches (parameters (identifier_self) identifier_self (identifier_verb) identifier_verb (identifier_params) identifier_params )parameters (block (return_statement (boolean_operator (boolean_ope...
Test if the method matches the provided set of arguments :param verb: HTTP verb. Uppercase :type verb: str :param params: Existing route parameters :type params: set :returns: Whether this view matches :rtype: bool
(module (function_definition (function_name_attach_socket) function_name_attach_socket (parameters (identifier_self) identifier_self (identifier_container) identifier_container (default_parameter (identifier_params) identifier_params (None) None )default_parameter ...
Like ``attach``, but returns the underlying socket-like object for the HTTP request. Args: container (str): The container to attach to. params (dict): Dictionary of request parameters (e.g. ``stdout``, ``stderr``, ``stream``). For ``detachKeys``, ...
(module (function_definition (function_name_push) function_name_push (parameters (identifier_self) identifier_self (identifier_obj) identifier_obj )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list ...
Prepend an element to the beginnging of the list. Parameters ---------- obj : KQMLObject or str If a string is passed, it is instantiated as a KQMLToken before being added to the list.
(module (function_definition (function_name_ceph_is_installed) function_name_ceph_is_installed (parameters (identifier_module) identifier_module )parameters (block (expression_statement (assignment (identifier_ceph_package) identifier_ceph_package (call ...
A helper callback to be executed after the connection is made to ensure that Ceph is installed.
(module (function_definition (function_name_set_widgets) function_name_set_widgets (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_last_layer) identifier_last_layer (boolean_operator (boo...
Set widgets on the Aggregation Layer from Canvas tab.
(module (function_definition (function_name__fw_pointers_convert_append_to_write) function_name__fw_pointers_convert_append_to_write (parameters (identifier_previous_version) identifier_previous_version )parameters (block (expression_statement (assignment (identifier_prev...
This method decides whether to convert an append to a full write in order to avoid data integrity errors
(module (function_definition (function_name_get_range_string) function_name_get_range_string (parameters (identifier_self) identifier_self )parameters (block (return_statement (binary_operator (binary_operator (binary_operator (binary_operator ...
Another string representation of the junction. these may be redundant.
(module (function_definition (function_name_makeSer) function_name_makeSer (parameters (identifier_segID) identifier_segID (identifier_N) identifier_N (identifier_CA) identifier_CA (identifier_C) identifier_C (identifier_O) identifier_O (identifier_geo) identifier_geo )...
Creates a Serine residue
(module (function_definition (function_name_updateMedShockProcess) function_name_updateMedShockProcess (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_MedShkDstn) identifier_MedShkDstn (list ...
Constructs discrete distributions of medical preference shocks for each period in the cycle. Distributions are saved as attribute MedShkDstn, which is added to time_vary. Parameters ---------- None Returns ------- None
(module (function_definition (function_name_delete) function_name_delete (parameters (identifier_self) identifier_self (identifier_cls) identifier_cls (identifier_rid) identifier_rid (default_parameter (identifier_user) identifier_user (string_'undefined') string_'undef...
Delete a record by id. `user` currently unused. Would be used with soft deletes. >>> s = teststore() >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'}) >>> len(s.list('tstoretest')) 1 >>> s.delete('tstoretest', '1') >>> len(s.list('tstoretest')) 0 ...
(module (function_definition (function_name_get_binding) function_name_get_binding (parameters (identifier_self) identifier_self (identifier_schema) identifier_schema (identifier_data) identifier_data )parameters (block (expression_statement (assignment (ident...
For a given schema, get a binding mediator providing links to the RDF terms matching that schema.
(module (function_definition (function_name__add_remove_user_template) function_name__add_remove_user_template (parameters (identifier_self) identifier_self (identifier_url) identifier_url (identifier_template_id) identifier_template_id (default_parameter (identifier_account_id...
Add or Remove user from a Template We use this function for two tasks because they have the same API call Args: template_id (str): The id of the template account_id (str): ID of the account to add/remove access to/from email_address (str): The email...
(module (function_definition (function_name_submissionfile_post_save) function_name_submissionfile_post_save (parameters (identifier_sender) identifier_sender (identifier_instance) identifier_instance (identifier_signal) identifier_signal (identifier_created) identifier_created (...
Update MD5 field for newly uploaded files.
(module (function_definition (function_name_window_size) function_name_window_size (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (parenthesized_expression (boolean_operator (boolean_ope...
Set private ``_window_size`` and reset ``_block_matcher``.