sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_variable_iter) function_name_variable_iter (parameters (identifier_self) identifier_self (identifier_base) identifier_base )parameters (block (expression_statement (assignment (identifier_base_substs) identifier_base_subst...
returns iterator over the cross product of the variables for this stanza
(module (function_definition (function_name_transform) function_name_transform (parameters (identifier_self) identifier_self (identifier_vector) identifier_vector )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argumen...
Computes the Hadamard product of the vector.
(module (function_definition (function_name_add_nodes) function_name_add_nodes (parameters (identifier_self) identifier_self (identifier_nodes) identifier_nodes )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isins...
Add a given node or list of nodes to self.node_list. Args: node (Node or list[Node]): the node or list of nodes to add to the graph Returns: None Examples: Adding one node: :: >>> from blur.markov.node import Node >>> graph = Graph...
(module (function_definition (function_name_jsk_git) function_name_jsk_git (parameters (identifier_self) identifier_self (typed_parameter (identifier_ctx) identifier_ctx (type (attribute (identifier_commands) identifier_commands (identifier_Context...
Shortcut for 'jsk sh git'. Invokes the system shell.
(module (function_definition (function_name_unpickle) function_name_unpickle (parameters (identifier_pickle_file) identifier_pickle_file )parameters (block (expression_statement (assignment (identifier_pickle) identifier_pickle (None) None )assignment ...
Unpickle a python object from the given path.
(module (function_definition (function_name__get_hanging_wall_coeffs_mag) function_name__get_hanging_wall_coeffs_mag (parameters (identifier_self) identifier_self (identifier_C) identifier_C (identifier_mag) identifier_mag )parameters (block (if_statement (comparison_op...
Returns the hanging wall magnitude term defined in equation 14
(module (function_definition (function_name_initialize) function_name_initialize (parameters (identifier_cls) identifier_cls )parameters (type (None) None )type (block (if_statement (attribute (identifier_cls) identifier_cls (identifier__initialize...
Initializes the ``SIGCHLD`` handler. The signal handler is run on an `.IOLoop` to avoid locking issues. Note that the `.IOLoop` used for signal handling need not be the same one used by individual Subprocess objects (as long as the ``IOLoops`` are each running in separate threads). ...
(module (function_definition (function_name_get_aws_secrets_from_env) function_name_get_aws_secrets_from_env (parameters )parameters (block (expression_statement (assignment (identifier_keys) identifier_keys (call (identifier_set) identifier_set ...
Extract AWS secrets from environment variables.
(module (function_definition (function_name_set_widgets) function_name_set_widgets (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (call (attribute (attribute ...
Set widgets on the Impact Functions Table 1 tab.
(module (function_definition (function_name_load_stylesheet) function_name_load_stylesheet (parameters (default_parameter (identifier_pyside) identifier_pyside (True) True )default_parameter )parameters (block (if_statement (identifier_pyside) identifier_pysid...
Loads the stylesheet. Takes care of importing the rc module. :param pyside: True to load the pyside rc file, False to load the PyQt rc file :return the stylesheet string
(module (function_definition (function_name_set_image) function_name_set_image (parameters (identifier_self) identifier_self (default_parameter (identifier_image) identifier_image (None) None )default_parameter )parameters (block (if_statement (boolean_o...
This method is used to set the image number. image must be an unsigned int.
(module (function_definition (function_name__extend_word) function_name__extend_word (parameters (identifier_self) identifier_self (identifier_word) identifier_word (identifier_length) identifier_length (default_parameter (identifier_prefix) identifier_prefix (integer_0...
Extend the given word with a random suffix up to length. :param length: the length of the extended word; >= len(word); :param prefix: if greater than 0, the maximum length of the prefix to consider to choose the next character; :param end: if True, the generated word ends...
(module (function_definition (function_name__merge) function_name__merge (parameters (identifier_x) identifier_x (identifier_y) identifier_y )parameters (block (expression_statement (assignment (identifier_merged) identifier_merged (dictionary ...
Merge two nested dictionaries. Overwrite values in x with values in y.
(module (function_definition (function_name_set_environment_variable) function_name_set_environment_variable (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_val) identifier_val )parameters (block (if_statement (comparison_operat...
Sets a variable if that variable is not already set
(module (function_definition (function_name_call) function_name_call (parameters (identifier_command) identifier_command (default_parameter (identifier_collect_missing) identifier_collect_missing (False) False )default_parameter (default_parameter (identifier_si...
r"""Calls a task, as if it were called from the command line. Args: command (str): A route followed by params (as if it were entered in the shell). collect_missing (bool): Collects any missing argument for the command through the shell. Defaults to False. Returns: The return value of the called comman...
(module (function_definition (function_name__sort_modules) function_name__sort_modules (parameters (identifier_mods) identifier_mods )parameters (block (function_definition (function_name_compare) function_name_compare (parameters (identifier_x) identifier_x ...
Always sort `index` or `README` as first filename in list.
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (identifier_byte_arr) identifier_byte_arr )parameters (block (if_statement (identifier_byte_arr) identifier_byte_arr (block (expression_sta...
Read bytes and update the CRC computed.
(module (function_definition (function_name_match_patterns) function_name_match_patterns (parameters (identifier_codedata) identifier_codedata )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (dictionary )dictionary ...
Match patterns by shaman.PatternMatcher Get average ratio of pattern and language
(module (function_definition (function_name_find_triangles) function_name_find_triangles (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_list) identifier_list (argument_list (call (id...
Finds all the triangles present in the given model Examples -------- >>> from pgmpy.models import MarkovModel >>> from pgmpy.factors.discrete import DiscreteFactor >>> from pgmpy.inference import Mplp >>> mm = MarkovModel() >>> mm.add_nodes_from(['x1', 'x2', 'x3'...
(module (function_definition (function_name_write_numeric) function_name_write_numeric (parameters (identifier_fmt) identifier_fmt (identifier_value) identifier_value (identifier_buff) identifier_buff (default_parameter (identifier_byteorder) identifier_byteorder (strin...
Write a numeric value to a file-like object.
(module (function_definition (function_name_fetch) function_name_fetch (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_params) identifier_params (call (attribute (identifier...
Fetch a EntityInstance :returns: Fetched EntityInstance :rtype: twilio.rest.authy.v1.service.entity.EntityInstance
(module (function_definition (function_name_ft1file) function_name_ft1file (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignmen...
return the name of the input ft1 file list
(module (function_definition (function_name_get_terms) function_name_get_terms (parameters (identifier_self) identifier_self (default_parameter (identifier_field) identifier_field (None) None )default_parameter )parameters (block (if_statement (not_opera...
Create a terms aggregation object and add it to the aggregation dict :param field: the field present in the index that is to be aggregated :returns: self, which allows the method to be chainable with the other methods
(module (function_definition (function_name_put) function_name_put (parameters (identifier_self) identifier_self (identifier_item) identifier_item (default_parameter (identifier_block) identifier_block (True) True )default_parameter (default_parameter (ide...
Put item into underlying queue.
(module (function_definition (function_name_search) function_name_search (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_partia...
Searches the table for the entry specified by name and value Returns one of the following: - ``None``, no match at all - ``(index, name, None)`` for partial matches on name only. - ``(index, name, value)`` for perfect matches.
(module (function_definition (function_name_clear_rr_ce_entries) function_name_clear_rr_ce_entries (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier...
A method to clear out all of the extent locations of all Rock Ridge Continuation Entries that the PVD is tracking. This can be used to reset all data before assigning new data. Parameters: None. Returns: Nothing.
(module (function_definition (function_name_arches) function_name_arches (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_method) identifier...
Return a list of architectures for this task. :returns: a list of arch strings (eg ["ppc64le", "x86_64"]). The list is empty if this task has no arches associated with it.
(module (function_definition (function_name_rotation_matrix) function_name_rotation_matrix (parameters (identifier_d) identifier_d )parameters (block (expression_statement (assignment (identifier_sin_angle) identifier_sin_angle (call (attribute ...
Calculates a rotation matrix given a vector d. The direction of d corresponds to the rotation axis. The length of d corresponds to the sin of the angle of rotation. Variant of: http://mail.scipy.org/pipermail/numpy-discussion/2009-March/040806.html
(module (function_definition (function_name_Run) function_name_Run (parameters (identifier_self) identifier_self (identifier_args) identifier_args )parameters (block (try_statement (block (expression_statement (assignment (identifier_direct...
Lists a directory.
(module (function_definition (function_name__get_cache_key) function_name__get_cache_key (parameters (identifier_self) identifier_self (identifier_args) identifier_args (identifier_kwargs) identifier_kwargs )parameters (block (expression_statement (assignment ...
Returns key to be used in cache
(module (function_definition (function_name__build_circle) function_name__build_circle (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_total_weight) identifier_total_weight (integer_0) integer_0 ...
Creates hash ring.
(module (function_definition (function_name_get_single_payload) function_name_get_single_payload (parameters (identifier_self) identifier_self (identifier_query_obj) identifier_query_obj )parameters (block (expression_statement (assignment (identifier_payload) ident...
Returns a payload of metadata and data
(module (function_definition (function_name_make_url) function_name_make_url (parameters (identifier_self) identifier_self (identifier_method) identifier_method )parameters (block (expression_statement (assignment (identifier_token) identifier_token (subsc...
Generate a Telegram URL for this bot.
(module (function_definition (function_name_calculate_windows) function_name_calculate_windows (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statemen...
Return the diameters of all windows in a molecule. This function first finds and then measures the diameters of all the window in the molecule. Returns ------- :class:`numpy.array` An array of windows' diameters. :class:`NoneType` If no windows ...
(module (function_definition (function_name_pass_job) function_name_pass_job (parameters (typed_parameter (identifier_db) identifier_db (type (identifier_JobDB) identifier_JobDB )type )typed_parameter (typed_parameter (identifier_result_queue) identi...
Create a pull stream that receives jobs and passes them on to the database. If the job already has a result, that result is pushed onto the `result_queue`.
(module (function_definition (function_name_prerequisites) function_name_prerequisites (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_prereqs) identifier_prereqs (call (identifier_defaul...
Iterates through the inputs of the pipelinen and determines the all prerequisite pipelines
(module (function_definition (function_name_bytes2guid) function_name_bytes2guid (parameters (identifier_s) identifier_s )parameters (block (assert_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_s) identifier...
Converts a serialized GUID to a text GUID
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self (identifier_mkey) identifier_mkey (identifier_mdesc) identifier_mdesc (default_parameter (identifier_mdict) identifier_mdict (None) None )default_par...
Loads a dictionary into current meta :param mkey: Type of data to load. Is be used to reference the data from the 'header' within meta :param mdesc: Either filename of json-file to load or further description of imported data when `mdict` is used ...
(module (function_definition (function_name_DeleteConflict) function_name_DeleteConflict (parameters (identifier_self) identifier_self (identifier_conflict_link) identifier_conflict_link (default_parameter (identifier_options) identifier_options (None) None )default_par...
Deletes a conflict. :param str conflict_link: The link to the conflict. :param dict options: The request options for the request. :return: The deleted Conflict. :rtype: dict
(module (function_definition (function_name_process_signal) function_name_process_signal (parameters (identifier_self) identifier_self (identifier_signum) identifier_signum )parameters (block (if_statement (comparison_operator (identifier_signum) identifier_signum ...
Invoked whenever a signal is added to the stack. :param int signum: The signal that was added
(module (function_definition (function_name_start) function_name_start (parameters (identifier_self) identifier_self )parameters (block (assert_statement (not_operator (attribute (identifier_self) identifier_self (identifier__started) identifier__s...
Start to listen for incoming requests.
(module (function_definition (function_name_addfield) function_name_addfield (parameters (identifier_self) identifier_self (identifier_pkt) identifier_pkt (identifier_buf) identifier_buf (identifier_val) identifier_val )parameters (block (expression_statement (cal...
add the field with endianness to the buffer
(module (function_definition (function_name_split_line) function_name_split_line (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_hash_or_end) identifier_hash_or_end (call (attribute ...
Split line into coordinates and meta string
(module (function_definition (function_name_save_file_json) function_name_save_file_json (parameters (identifier_data) identifier_data (identifier_export_file) identifier_export_file )parameters (block (expression_statement (call (identifier_create_dir) identifier_c...
Write data to a json file.
(module (function_definition (function_name_parse_metadata) function_name_parse_metadata (parameters (identifier_cls) identifier_cls (identifier_obj) identifier_obj (identifier_xml) identifier_xml )parameters (block (for_statement (identifier_child) identifier_child ...
Parse a resource to feed the object :param obj: Obj to set metadata of :type obj: XmlCtsTextMetadata :param xml: An xml representation object :type xml: lxml.etree._Element
(module (function_definition (function_name_create) function_name_create (parameters (identifier_args) identifier_args )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier__catalog) identifier__...
cdstarcat create PATH Create objects in CDSTAR specified by PATH. When PATH is a file, a single object (possibly with multiple bitstreams) is created; When PATH is a directory, an object will be created for each file in the directory (recursing into subdirectories).
(module (function_definition (function_name_interpolate_with) function_name_interpolate_with (parameters (identifier_self) identifier_self (identifier_other_tf) identifier_other_tf (identifier_t) identifier_t )parameters (block (if_statement (boolean_operator ...
Interpolate with another rigid transformation. Parameters ---------- other_tf : :obj:`RigidTransform` The transform to interpolate with. t : float The interpolation step in [0,1], where 0 favors this RigidTransform. Returns ------- :obj:...
(module (function_definition (function_name_norm_score) function_name_norm_score (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_cdf) identifier_cdf (binary_operator (parenthesized_expres...
Return the normalized score. Equals 1.0 for a z-score of 0, falling to 0.0 for extremely positive or negative values.
(module (function_definition (function_name_bind) function_name_bind (parameters (identifier_self) identifier_self (identifier_environ) identifier_environ )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self ...
Bind a new WSGI environment. This is done automatically for the global `bottle.request` instance on every request.
(module (function_definition (function_name__gen_3spec) function_name__gen_3spec (parameters (identifier_op) identifier_op (identifier_path) identifier_path (default_parameter (identifier_xattr) identifier_xattr (False) False )default_parameter )parameters (bloc...
Returns a Spec tuple suitable for passing to the underlying C extension. This variant is called for operations that lack an input value. :param str path: The path to fetch :param bool xattr: Whether this is an extended attribute :return: a spec suitable for passing to the underlying C extension
(module (function_definition (function_name_as_rainbow) function_name_as_rainbow (parameters (identifier_self) identifier_self (default_parameter (identifier_offset) identifier_offset (integer_35) integer_35 )default_parameter (default_parameter (identifier_styl...
Wrap each frame in a Colr object, using `Colr.rainbow`.
(module (function_definition (function_name_ci_macos) function_name_ci_macos (parameters )parameters (block (expression_statement (call (identifier_run_command) identifier_run_command (argument_list (string_"brew install $PYTHON pipenv || echo \"Installed ...
Setup Travis-CI macOS for wheel building
(module (function_definition (function_name_clicks) function_name_clicks (parameters (identifier_self) identifier_self (default_parameter (identifier_tag) identifier_tag (None) None )default_parameter (default_parameter (identifier_fromdate) identifier_fromdate ...
Gets total counts of unique links that were clicked.
(module (function_definition (function_name_search) function_name_search (parameters (identifier_self) identifier_self (identifier_search) identifier_search )parameters (block (expression_statement (assignment (identifier_search) identifier_search (call ...
search Zenodo record for string `search` :param search: string to search :return: Record[] results
(module (function_definition (function_name_get_tags_users) function_name_get_tags_users (parameters (identifier_self) identifier_self (identifier_id_) identifier_id_ )parameters (block (return_statement (call (identifier__get_request) identifier__get_request ...
Get a particular user which are tagged based on the id_
(module (function_definition (function_name__set_cursor_position) function_name__set_cursor_position (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_original_position)...
Set cursor position. Return whether it changed.
(module (function_definition (function_name_git_wrapper) function_name_git_wrapper (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_path) identifier_path (call (attribute (at...
Get appropriate wrapper factory and cache instance for path
(module (function_definition (function_name_install_versioning) function_name_install_versioning (parameters (identifier_self) identifier_self (identifier_conn) identifier_conn )parameters (block (expression_statement (call (attribute (identifier_logging...
Create the version table into an already populated database and insert the base script. :param conn: a DB API 2 connection
(module (function_definition (function_name_job) function_name_job (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (for_statement (identifier_job) identifier_job (call (attribute (identifier_self...
Method for searching specific job by it's name. :param name: name of the job to search. :return: found job or None. :rtype: yagocd.resources.job.JobInstance
(module (function_definition (function_name_decompress) function_name_decompress (parameters (identifier_self) identifier_self (identifier_chunk) identifier_chunk )parameters (block (try_statement (block (return_statement (call (attribute ...
Decompress the chunk of data. :param bytes chunk: data chunk :rtype: bytes
(module (function_definition (function_name_get_version_history_for_file) function_name_get_version_history_for_file (parameters (identifier_self) identifier_self (identifier_filepath) identifier_filepath )parameters (block (expression_statement (assignment (identif...
Return a dict representation of this file's commit history This uses specially formatted git-log output for easy parsing, as described here: http://blog.lost-theory.org/post/how-to-parse-git-log-output/ For a full list of available fields, see: http://linux.die.net/man/1/git-log
(module (function_definition (function_name_get_themes) function_name_get_themes (parameters )parameters (block (expression_statement (assignment (identifier_styles_dir) identifier_styles_dir (call (attribute (attribute (ident...
return list of available themes
(module (function_definition (function_name_set_proxy_bypass) function_name_set_proxy_bypass (parameters (identifier_domains) identifier_domains (default_parameter (identifier_network_service) identifier_network_service (string_"Ethernet") string_"Ethernet" )default_parameter...
Sets the domains that can bypass the proxy domains An array of domains allowed to bypass the proxy network_service The network service to apply the changes to, this only necessary on macOS CLI Example: .. code-block:: bash salt '*' proxy.set_proxy_bypass "['127.0.0.1...
(module (function_definition (function_name_suspend_queues) function_name_suspend_queues (parameters (identifier_self) identifier_self (identifier_active_queues) identifier_active_queues (default_parameter (identifier_sleep_time) identifier_sleep_time (float_10.0) float_10.0 ...
Suspend Celery queues and wait for running tasks to complete.
(module (function_definition (function_name_find_all_segment) function_name_find_all_segment (parameters (typed_parameter (identifier_text) identifier_text (type (identifier_str) identifier_str )type )typed_parameter (typed_default_parameter (identif...
Get all possible segment variations :param str text: input string to be tokenized :return: returns list of segment variations
(module (function_definition (function_name_create_session) function_name_create_session (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute ...
Request a new session id
(module (function_definition (function_name_get_next_action) function_name_get_next_action (parameters (identifier_self) identifier_self (identifier_request) identifier_request (identifier_application) identifier_application (identifier_label) identifier_label (identifier_roles) ...
Django view method. We provide a default detail view for applications.
(module (function_definition (function_name_process_pc_pathsbetween) function_name_process_pc_pathsbetween (parameters (identifier_gene_names) identifier_gene_names (default_parameter (identifier_neighbor_limit) identifier_neighbor_limit (integer_1) integer_1 )default_paramet...
Returns a BiopaxProcessor for a PathwayCommons paths-between query. The paths-between query finds the paths between a set of genes. Here source gene names are given in a single list and all directions of paths between these genes are considered. http://www.pathwaycommons.org/pc2/#graph http://www...
(module (function_definition (function_name_promote16) function_name_promote16 (parameters (identifier_u) identifier_u (default_parameter (identifier_fn) identifier_fn (None) None )default_parameter (list_splat_pattern (identifier_args) identifier_args )li...
r""" Utility function for use with functions that do not support arrays of dtype ``np.float16``. This function has two distinct modes of operation. If called with only the `u` parameter specified, the returned value is either `u` itself if `u` is not of dtype ``np.float16``, or `u` promoted to ``np....
(module (function_definition (function_name__pull) function_name__pull (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_pull) identifier_pull (call (attribute (identifier_sel...
Helper function to pull from remote
(module (function_definition (function_name_validate) function_name_validate (parameters (identifier_self) identifier_self (typed_parameter (identifier_path) identifier_path (type (identifier_str) identifier_str )type )typed_parameter (typed_default_pa...
Validate a file for conformance to the Loom specification Args: path: Full path to the file to be validated strictness: "speconly" or "conventions" Remarks: In "speconly" mode, conformance is assessed relative to the file format specification at http://linnarssonlab.org/loompy/format/. In "convent...
(module (function_definition (function_name_do_first) function_name_do_first (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_pid) identifier_pid (call (attribute (identifier...
Create PNM file from input image file.
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (default_parameter (identifier_friendly_name) identifier_friendly_name (attribute (identifier_values) identifier_values (identifier_unset) iden...
Update the WorkflowInstance :param unicode friendly_name: A string representing a human readable name for this Workflow. :param unicode assignment_callback_url: A valid URL for the application that will process task assignment events. :param unicode fallback_assignment_callback_url: If the requ...
(module (function_definition (function_name__validate_user_class) function_name__validate_user_class (parameters (identifier_cls) identifier_cls (identifier_user_class) identifier_user_class )parameters (block (expression_statement (call (attribute (iden...
Validates the supplied user_class to make sure that it has the class methods necessary to function correctly. Requirements: - ``lookup`` method. Accepts a string parameter, returns instance - ``identify`` method. Accepts an identity parameter, returns instance
(module (function_definition (function_name__conv) function_name__conv (parameters (identifier_self) identifier_self (identifier_v) identifier_v )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list ...
Convert Python values to MySQL values
(module (function_definition (function_name_update_vip_request) function_name_update_vip_request (parameters (identifier_self) identifier_self (identifier_vip_request) identifier_vip_request (identifier_vip_request_id) identifier_vip_request_id )parameters (block (expression_st...
Method to update vip request param vip_request: vip_request object param vip_request_id: vip_request id
(module (function_definition (function_name_parse_compound_table_file) function_name_parse_compound_table_file (parameters (identifier_path) identifier_path (identifier_f) identifier_f )parameters (block (expression_statement (assignment (identifier_context) identif...
Parse a tab-separated file containing compound IDs and properties The compound properties are parsed according to the header which specifies which property is contained in each column.
(module (function_definition (function_name_random_shift) function_name_random_shift (parameters (identifier_image) identifier_image (default_parameter (identifier_wsr) identifier_wsr (float_0.1) float_0.1 )default_parameter (default_parameter (identifier_hsr) i...
Apply random horizontal and vertical shift to images. This is the default data-augmentation strategy used on CIFAR in Glow. Args: image: a 3-D Tensor wsr: Width shift range, as a float fraction of the width. hsr: Height shift range, as a float fraction of the width. Returns: images: images trans...
(module (function_definition (function_name_assertFileSizeEqual) function_name_assertFileSizeEqual (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename (identifier_size) identifier_size (default_parameter (identifier_msg) identifier_msg ...
Fail if ``filename`` does not have the given ``size`` as determined by the '==' operator. Parameters ---------- filename : str, bytes, file-like size : int, float msg : str If not provided, the :mod:`marbles.mixins` or :mod:`unittest` standard mes...
(module (function_definition (function_name__compress_json) function_name__compress_json (parameters (identifier_self) identifier_self (identifier_j) identifier_j )parameters (block (expression_statement (assignment (identifier_compressed_json) identifier_compressed...
Compress the BLOB data portion of the usernotes. Arguments: j: the JSON in Schema v5 format (dict) Returns a dict with the 'users' key removed and 'blob' key added
(module (function_definition (function_name_check_values_selection_field) function_name_check_values_selection_field (parameters (identifier_cr) identifier_cr (identifier_table_name) identifier_table_name (identifier_field_name) identifier_field_name (identifier_allowed_values) identif...
check if the field selection 'field_name' of the table 'table_name' has only the values 'allowed_values'. If not return False and log an error. If yes, return True. .. versionadded:: 8.0
(module (function_definition (function_name_build_command) function_name_build_command (parameters (identifier_chunks) identifier_chunks )parameters (block (if_statement (not_operator (identifier_chunks) identifier_chunks )not_operator (block (ra...
Create a command from various parts. The parts provided may include a base, flags, option-bound arguments, and positional arguments. Each element must be either a string or a two-tuple. Raw strings are interpreted as either the command base, a pre-joined pair (or multiple pairs) of option and argument,...
(module (function_definition (function_name_post_save_moderation) function_name_post_save_moderation (parameters (identifier_self) identifier_self (identifier_sender) identifier_sender (identifier_comment) identifier_comment (identifier_request) identifier_request (dictionary_spl...
Apply any necessary post-save moderation steps to new comments.
(module (function_definition (function_name_listTargets) function_name_listTargets (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_sql) identifier_sql (call (attribute (stri...
Returns a list of all the items secured in the vault
(module (function_definition (function_name_tokenize) function_name_tokenize (parameters (identifier_self) identifier_self (identifier_config) identifier_config )parameters (block (expression_statement (assignment (identifier_tokens) identifier_tokens (lis...
Break the config into a series of tokens
(module (function_definition (function_name_discovery) function_name_discovery (parameters (identifier_self) identifier_self (default_parameter (identifier_url) identifier_url (None) None )default_parameter )parameters (block (if_statement (identifier_ur...
Retrieve the standard discovery file that provides routing information. >>> Three().discovery() {'discovery': 'data'}
(module (function_definition (function_name_motif_from_consensus) function_name_motif_from_consensus (parameters (identifier_cons) identifier_cons (default_parameter (identifier_n) identifier_n (integer_12) integer_12 )default_parameter )parameters (block (expre...
Convert consensus sequence to motif. Converts a consensus sequences using the nucleotide IUPAC alphabet to a motif. Parameters ---------- cons : str Consensus sequence using the IUPAC alphabet. n : int , optional Count used to convert the sequence to a PFM. Returns ...
(module (function_definition (function_name_render_relation) function_name_render_relation (parameters (identifier_self) identifier_self (identifier_r) identifier_r (dictionary_splat_pattern (identifier_args) identifier_args )dictionary_splat_pattern )parameters (block ...
Render an object property
(module (function_definition (function_name_purge_old) function_name_purge_old (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_keep_max) id...
Removes keys that are beyond our keep_max limit
(module (function_definition (function_name_msg) function_name_msg (parameters (identifier_self) identifier_self (identifier_message) identifier_message (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier...
Shortcut to send a message through the connection. This function sends the input message through the connection. A target can be defined, else it will send it to the channel or user from the input Line, effectively responding on whatever triggered the command which calls this function t...
(module (function_definition (function_name_configure) function_name_configure (parameters (default_parameter (identifier_access_key) identifier_access_key (None) None )default_parameter (default_parameter (identifier_secret_key) identifier_secret_key (None) N...
Configures s3cmd prior to first use. If no arguments are provided, you will be prompted to enter the access key and secret key interactively. Args: access_key (str): AWS access key secret_key (str): AWS secret key
(module (function_definition (function_name__extract_asset_urls) function_name__extract_asset_urls (parameters (identifier_self) identifier_self (identifier_asset_ids) identifier_asset_ids )parameters (block (expression_statement (assignment (identifier_dom) identif...
Extract asset URLs along with asset ids. @param asset_ids: List of ids to get URLs for. @type assertn: [str] @return: List of dictionaries with asset URLs and ids. @rtype: [{ 'id': '<id>', 'url': '<url>' }]
(module (function_definition (function_name_getLayerName) function_name_getLayerName (parameters (identifier_url) identifier_url )parameters (block (expression_statement (assignment (identifier_urlInfo) identifier_urlInfo (None) None )assignment )e...
Extract the layer name from a url. Args: url (str): The url to parse. Returns: str: The layer name. Examples: >>> url = "http://services.arcgis.com/<random>/arcgis/rest/services/test/FeatureServer/12" >>> arcresthelper.common.getLayerIndex(url) 'test'
(module (function_definition (function_name_get_all_tep) function_name_get_all_tep (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_teps) identifier_teps (dictionary )dictionary )ass...
Template extension point :returns: dict: {tep: dict(HTMLFile=[], HTMLString=[]), tep...}
(module (function_definition (function_name_updateMetadata) function_name_updateMetadata (parameters (identifier_self) identifier_self (identifier_new) identifier_new )parameters (block (if_statement (comparison_operator (attribute (identifier_self) iden...
Update the metadata stored for this broker. Future connections made to the broker will use the host and port defined in the new metadata. Any existing connection is not dropped, however. :param new: :clas:`afkak.common.BrokerMetadata` with the same node ID as the ...
(module (function_definition (function_name_disable_alarm_actions) function_name_disable_alarm_actions (parameters (identifier_self) identifier_self (identifier_alarm_names) identifier_alarm_names )parameters (block (expression_statement (assignment (identifier_para...
Disables actions for the specified alarms. :type alarms: list :param alarms: List of alarm names.
(module (function_definition (function_name_sfs_folded) function_name_sfs_folded (parameters (identifier_ac) identifier_ac (default_parameter (identifier_n) identifier_n (None) None )default_parameter )parameters (block (expression_statement (assignment ...
Compute the folded site frequency spectrum given reference and alternate allele counts at a set of biallelic variants. Parameters ---------- ac : array_like, int, shape (n_variants, 2) Allele counts array. n : int, optional The total number of chromosomes called. Returns --...
(module (function_definition (function_name_pack_block) function_name_pack_block (parameters (identifier_self) identifier_self (typed_parameter (identifier_block) identifier_block (type (identifier_BaseBlock) identifier_BaseBlock )type )typed_parameter ...
Pack block for mining. :param bytes coinbase: 20-byte public address to receive block reward :param bytes uncles_hash: 32 bytes :param bytes state_root: 32 bytes :param bytes transaction_root: 32 bytes :param bytes receipt_root: 32 bytes :param int bloom: :param ...
(module (function_definition (function_name_queuedb_findall) function_name_queuedb_findall (parameters (identifier_path) identifier_path (identifier_queue_id) identifier_queue_id (default_parameter (identifier_name) identifier_name (None) None )default_parameter (...
Get all queued entries for a queue and a name. If name is None, then find all queue entries Return the rows on success (empty list if not found) Raise on error
(module (function_definition (function_name_cleanup) function_name_cleanup (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (attribute (attribute (identifier_self) identifier_self (ide...
Run cleanup script of pipeline when hook is configured.