sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name__reduce) function_name__reduce (parameters (identifier_self) identifier_self (identifier_op) identifier_op (identifier_name) identifier_name (default_parameter (identifier_axis) identifier_axis (integer_0) integer_0 )def...
Perform a reduction operation. If we have an ndarray as a value, then simply perform the operation, otherwise delegate to the object.
(module (function_definition (function_name_distance) function_name_distance (parameters (identifier_self) identifier_self (default_parameter (identifier_method) identifier_method (string_'haversine') string_'haversine' )default_parameter )parameters (block (exp...
Calculate distances between locations in segments. Args: method (str): Method used to calculate distance Returns: list of list of float: Groups of distance between points in segments
(module (function_definition (function_name_verifyUniqueWcsname) function_name_verifyUniqueWcsname (parameters (identifier_fname) identifier_fname (identifier_wcsname) identifier_wcsname )parameters (block (expression_statement (assignment (identifier_uniq) identifi...
Report whether or not the specified WCSNAME already exists in the file
(module (function_definition (function_name_fastq_convert_pipe_cl) function_name_fastq_convert_pipe_cl (parameters (identifier_in_file) identifier_in_file (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_cmd) identif...
Create an anonymous pipe converting Illumina 1.3-1.7 to Sanger. Uses seqtk: https://github.com/lh3/seqt
(module (function_definition (function_name_safe_temp_edit) function_name_safe_temp_edit (parameters (identifier_filename) identifier_filename )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifie...
Safely modify a file within context that automatically reverts any changes afterwards The file mutatation occurs in place. The file is backed up in a temporary file before edits occur and when the context is closed, the mutated file is discarded and replaced with the backup. WARNING: There may be a chance that ...
(module (function_definition (function_name_ylogydu) function_name_ylogydu (parameters (identifier_y) identifier_y (identifier_u) identifier_u )parameters (block (expression_statement (assignment (identifier_mask) identifier_mask (parenthesized_expression ...
tool to give desired output for the limit as y -> 0, which is 0 Parameters ---------- y : array-like of len(n) u : array-like of len(n) Returns ------- np.array len(n)
(module (function_definition (function_name_steal) function_name_steal (parameters (identifier_self) identifier_self (identifier_instr) identifier_instr )parameters (block (expression_statement (assignment (attribute (identifier_instr) identifier_instr ...
Steal the jump index off of `instr`. This makes anything that would have jumped to `instr` jump to this Instruction instead. Parameters ---------- instr : Instruction The instruction to steal the jump sources from. Returns ------- self : Ins...
(module (function_definition (function_name__runOPF) function_name__runOPF (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_decommit) identifier_decommit )attribute ...
Computes dispatch points and LMPs using OPF.
(module (function_definition (function_name_rectangle) function_name_rectangle (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self ...
Accessor for the rectangle. :return: A rectangle showing the designed extent. :rtype: QgsRectangle
(module (function_definition (function_name_contains_container) function_name_contains_container (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_path) identifier_path ...
Returns True if a container exists at the specified path, otherwise False. :param path: str or Path instance :return: :rtype: bool :raises ValueError: A component of path is a field name.
(module (function_definition (function_name_abi_splitext) function_name_abi_splitext (parameters (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_filename) identifier_filename (call (attribute...
Split the ABINIT extension from a filename. "Extension" are found by searching in an internal database. Returns "(root, ext)" where ext is the registered ABINIT extension The final ".nc" is included (if any) >>> assert abi_splitext("foo_WFK") == ('foo_', 'WFK') >>> assert abi_splitext("/home/guido...
(module (function_definition (function_name_setup) function_name_setup (parameters )parameters (block (global_statement (identifier__displayhooks) identifier__displayhooks (identifier__excepthooks) identifier__excepthooks )global_statement (if_statement (compa...
Initializes the hook queues for the sys module. This method will automatically be called on the first registration for a hook to the system by either the registerDisplay or registerExcept functions.
(module (function_definition (function_name__add_edge) function_name__add_edge (parameters (identifier_self) identifier_self (identifier_source) identifier_source (identifier_target) identifier_target (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictio...
Add an edge to the graph.
(module (function_definition (function_name_getDayStart) function_name_getDayStart (parameters (identifier_self) identifier_self (identifier_dateTime) identifier_dateTime )parameters (block (return_statement (call (attribute (call (identifi...
Ensure local time and get the beginning of the day
(module (function_definition (function_name_configure) function_name_configure (parameters (identifier_self) identifier_self (default_parameter (identifier_settings_module) identifier_settings_module (None) None )default_parameter (dictionary_splat_pattern (iden...
Allows user to reconfigure settings object passing a new settings module or separated kwargs :param settings_module: defines the setttings file :param kwargs: override default settings
(module (function_definition (function_name_fetch_alien) function_name_fetch_alien (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_parent) identifier_parent (call (attribute ...
Set and return, if the reftrack element is linked to the current scene. Askes the refobj interface for the current scene. If there is no current scene then True is returned. :returns: whether the element is linked to the current scene :rtype: bool :raises: None
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_instance_name) identifier_instance_name )parameters (block (expression_statement (assignment (identifier_url) identifier_url (binar...
Get an ObjectRocket instance by name. :param str instance_name: The name of the instance to retrieve. :returns: A subclass of :py:class:`bases.BaseInstance`, or None if instance does not exist. :rtype: :py:class:`bases.BaseInstance`
(module (function_definition (function_name_encrypt) function_name_encrypt (parameters (identifier_self) identifier_self (typed_parameter (identifier_pubkey) identifier_pubkey (type (identifier_str) identifier_str )type )typed_parameter (typed_paramete...
Encrypt message text with the public key of the recipient and a nonce The nonce must be a 24 character string (you can use libnacl.utils.rand_nonce() to get one) and unique for each encrypted message. Return base58 encoded encrypted message :param pubkey: Base58 encoded public key of ...
(module (function_definition (function_name_reverse_point) function_name_reverse_point (parameters (identifier_self) identifier_self (identifier_latitude) identifier_latitude (identifier_longitude) identifier_longitude (dictionary_splat_pattern (identifier_kwargs) identifier_kw...
Method for identifying an address from a geographic point
(module (function_definition (function_name_count_relations) function_name_count_relations (parameters (identifier_graph) identifier_graph )parameters (type (identifier_Counter) identifier_Counter )type (block (return_statement (call (identifier_Counter) ide...
Return a histogram over all relationships in a graph. :param pybel.BELGraph graph: A BEL graph :return: A Counter from {relation type: frequency}
(module (function_definition (function_name_lookup_deleted_folder) function_name_lookup_deleted_folder (parameters (identifier_event) identifier_event (identifier_filesystem) identifier_filesystem (identifier_journal) identifier_journal )parameters (block (expression_statement ...
Lookup the parent folder in the journal content.
(module (function_definition (function_name__attributeStr) function_name__attributeStr (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (return_statement (call (attribute (string_"{}={}") string_"{}={}" ...
Return name=value for a single attribute
(module (function_definition (function_name_play) function_name_play (parameters (identifier_cls) identifier_cls (identifier_file_path) identifier_file_path (default_parameter (identifier_on_done) identifier_on_done (None) None )default_parameter (default_paramete...
Play an audio file. :param file_path: the path to the file to play. :param on_done: callback when audio playback completes.
(module (function_definition (function_name_dAbr_dV) function_name_dAbr_dV (parameters (identifier_dSf_dVa) identifier_dSf_dVa (identifier_dSf_dVm) identifier_dSf_dVm (identifier_dSt_dVa) identifier_dSt_dVa (identifier_dSt_dVm) identifier_dSt_dVm (identifier_Sf) identifier_Sf ...
Partial derivatives of squared flow magnitudes w.r.t voltage. Computes partial derivatives of apparent power w.r.t active and reactive power flows. Partial derivative must equal 1 for lines with zero flow to avoid division by zero errors (1 comes from L'Hopital).
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_path) identifier_path (default_parameter (identifier_params) identifier_params (None) None )default_parameter )parameters (block (e...
Perform GET request
(module (function_definition (function_name_block) function_name_block (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (parenthesized_expression (boolean_operator (attribute (identi...
Return the block character "s,p,d,f"
(module (function_definition (function_name_detect_timezone) function_name_detect_timezone (parameters )parameters (block (if_statement (comparison_operator (attribute (identifier_sys) identifier_sys (identifier_platform) identifier_platform )a...
Try and detect the timezone that Python is currently running in. We have a bunch of different methods for trying to figure this out (listed in order they are attempted). * In windows, use win32timezone.TimeZoneInfo.local() * Try TZ environment variable. * Try and find /etc/timezone file (with timezone ...
(module (function_definition (function_name_loadImageData) function_name_loadImageData (parameters (identifier_filename) identifier_filename (default_parameter (identifier_spacing) identifier_spacing (tuple )tuple )default_parameter )parameters (block (i...
Read and return a ``vtkImageData`` object from file.
(module (function_definition (function_name_get_avatar_metadata) function_name_get_avatar_metadata (parameters (identifier_self) identifier_self (identifier_jid) identifier_jid (keyword_separator )keyword_separator (default_parameter (identifier_require_fresh) identifier_...
Retrieve a list of avatar descriptors. :param jid: the JID for which to retrieve the avatar metadata. :type jid: :class:`aioxmpp.JID` :param require_fresh: if true, do not return results from the avatar metadata chache, but retrieve them again from the server. :type require_...
(module (function_definition (function_name_is_unclaimed) function_name_is_unclaimed (parameters (identifier_work) identifier_work )parameters (block (if_statement (subscript (identifier_work) identifier_work (string_'is_completed') string_'is_completed' ...
Returns True if work piece is unclaimed.
(module (function_definition (function_name_smart_reroot) function_name_smart_reroot (parameters (identifier_treefile) identifier_treefile (identifier_outgroupfile) identifier_outgroupfile (identifier_outfile) identifier_outfile (default_parameter (identifier_format) identifier...
simple function to reroot Newick format tree using ete2 Tree reading format options see here: http://packages.python.org/ete2/tutorial/tutorial_trees.html#reading-newick-trees
(module (function_definition (function_name_start_cluster_server) function_name_start_cluster_server (parameters (identifier_self) identifier_self (default_parameter (identifier_num_gpus) identifier_num_gpus (integer_1) integer_1 )default_parameter (default_parameter ...
Convenience function to access ``TFNode.start_cluster_server`` directly from this object instance.
(module (function_definition (function_name_tkvrsn) function_name_tkvrsn (parameters (identifier_item) identifier_item )parameters (block (expression_statement (assignment (identifier_item) identifier_item (call (attribute (identifier_s...
Given an item such as the Toolkit or an entry point name, return the latest version string. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tkvrsn_c.html :param item: Item for which a version string is desired. :type item: str :return: the latest version string. :rtype: str
(module (function_definition (function_name__load_image) function_name__load_image (parameters (identifier_cls) identifier_cls (identifier_rkey) identifier_rkey )parameters (block (expression_statement (assignment (identifier_v) identifier_v (subscript ...
Load image from file or return the cached instance.
(module (function_definition (function_name_get_data) function_name_get_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (string_"Return one SNMP response list for all status OIDs, and one list for all metric OIDs.") string_"Return one SNM...
Return one SNMP response list for all status OIDs, and one list for all metric OIDs.
(module (function_definition (function_name_get_bookmarks) function_name_get_bookmarks (parameters (identifier_self) identifier_self (default_parameter (identifier_folder) identifier_folder (string_'unread') string_'unread' )default_parameter (default_parameter ...
Return list of user's bookmarks. :param str folder: Optional. Possible values are unread (default), starred, archive, or a folder_id value. :param int limit: Optional. A number between 1 and 500, default 25. :param list have: Optional. A list of IDs to exclude from results :...
(module (function_definition (function_name_exists) function_name_exists (parameters (identifier_name) identifier_name (default_parameter (identifier_region) identifier_region (None) None )default_parameter (default_parameter (identifier_key) identifier_key ...
Check to see if a stack exists. CLI Example: .. code-block:: bash salt myminion boto_cfn.exists mystack region=us-east-1
(module (function_definition (function_name_build_groups) function_name_build_groups (parameters (identifier_self) identifier_self (identifier_tokens) identifier_tokens )parameters (block (expression_statement (assignment (identifier_groups) identifier_groups ...
Build dict of groups from list of tokens
(module (function_definition (function_name_find_files) function_name_find_files (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_all_files) identifier_all_files (call (attribute ...
Find versioned files in self.location
(module (function_definition (function_name_parse_magmoms) function_name_parse_magmoms (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_lattice) identifier_lattice (None) None )default_parameter )paramete...
Parse atomic magnetic moments from data dictionary
(module (function_definition (function_name_data_url) function_name_data_url (parameters (identifier_self) identifier_self (default_parameter (identifier_image_format) identifier_image_format (string_'png') string_'png' )default_parameter (default_parameter (ide...
Get a data URL representing the barcode. >>> barcode = Code128('Hello!', charset='B') >>> barcode.data_url() # doctest: +ELLIPSIS 'data:image/png;base64,...' :param image_format: Either 'png' or 'bmp'. :param add_quiet_zone: Add a 10 white pixels on either side of the barcode....
(module (function_definition (function_name_app_score) function_name_app_score (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_precisions) identifier_precisions (identifie...
Computes the area under the app curve.
(module (function_definition (function_name_load_all_yamls) function_name_load_all_yamls (parameters (identifier_cls) identifier_cls (identifier_directories) identifier_directories )parameters (block (expression_statement (assignment (identifier_yaml_files) identifi...
Loads yaml files from all given directories. Args: directories: list of directories to search Returns: dict of {fullpath: loaded_yaml_structure}
(module (function_definition (function_name_is_client) function_name_is_client (parameters (identifier_self) identifier_self )parameters (block (return_statement (boolean_operator (parenthesized_expression (boolean_operator (attribute ...
Return True if Glances is running in client mode.
(module (function_definition (function_name_count_lines) function_name_count_lines (parameters (identifier_fname) identifier_fname (default_parameter (identifier_mode) identifier_mode (string_'rU') string_'rU' )default_parameter )parameters (block (with_statemen...
Count the number of lines in a file Only faster way would be to utilize multiple processor cores to perform parallel reads. http://stackoverflow.com/q/845058/623735
(module (function_definition (function_name_timeit) function_name_timeit (parameters (identifier_method) identifier_method )parameters (block (import_statement (dotted_name (identifier_datetime) identifier_datetime )dotted_name )import_statement (decor...
Decorator to measure the time used by the recipe
(module (function_definition (function_name_all) function_name_all (parameters )parameters (block (return_statement (list_comprehension (identifier_goal) identifier_goal (for_in_clause (pattern_list (identifier__) identifier__ (...
Returns all active registered goals, sorted alphabetically by name. :API: public
(module (function_definition (function_name_url_to_image) function_name_url_to_image (parameters (identifier_url) identifier_url (default_parameter (identifier_flag) identifier_flag (attribute (identifier_cv2) identifier_cv2 (identifier_IMREAD_COLOR) identifier_...
download the image, convert it to a NumPy array, and then read it into OpenCV format
(module (function_definition (function_name__reset_suffix_links) function_name__reset_suffix_links (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (iden...
Reset all suffix links in all nodes in this trie.
(module (function_definition (function_name_edit_dataset_metadata) function_name_edit_dataset_metadata (parameters (identifier_request) identifier_request (default_parameter (identifier_dataset_id) identifier_dataset_id (None) None )default_parameter )parameters (bloc...
Renders a template to upload or edit a Dataset. Most of the heavy lifting is done by add_dataset(...).
(module (function_definition (function_name_rssi_bars) function_name_rssi_bars (parameters (identifier_self) identifier_self )parameters (type (identifier_int) identifier_int )type (block (expression_statement (assignment (identifier_rssi_db) identifier_rssi...
Received Signal Strength Indication, from 0 to 4 bars.
(module (function_definition (function_name_add_feature) function_name_add_feature (parameters (identifier_feature) identifier_feature (default_parameter (identifier_package) identifier_package (None) None )default_parameter (default_parameter (identifier_source...
Install a feature using DISM Args: feature (str): The feature to install package (Optional[str]): The parent package for the feature. You do not have to specify the package if it is the Windows Foundation Package. Otherwise, use package to specify the parent package of the f...
(module (function_definition (function_name_sort) function_name_sort (parameters (identifier_self) identifier_self (identifier_key) identifier_key (default_parameter (identifier_reverse) identifier_reverse (False) False )default_parameter (default_parameter ...
Sort the list in the order of the dictionary key. Example of use: >>> test = [ ... {"name": "Jim", "age": 18, "income": 93000, "wigs": 68 }, ... {"name": "Larry", "age": 18, "wigs": [3, 2, 9]}, ... {"name": "Joe", "age": 20, "income": 15000, ...
(module (function_definition (function_name_gammaVectorRDD) function_name_gammaVectorRDD (parameters (identifier_sc) identifier_sc (identifier_shape) identifier_shape (identifier_scale) identifier_scale (identifier_numRows) identifier_numRows (identifier_numCols) identifier_numCo...
Generates an RDD comprised of vectors containing i.i.d. samples drawn from the Gamma distribution. :param sc: SparkContext used to create the RDD. :param shape: Shape (> 0) of the Gamma distribution :param scale: Scale (> 0) of the Gamma distribution :param numRows: Number of Ve...
(module (function_definition (function_name_unicode_urlencode) function_name_unicode_urlencode (parameters (identifier_query) identifier_query (default_parameter (identifier_doseq) identifier_doseq (True) True )default_parameter )parameters (block (expression_st...
Custom wrapper around urlencode to support unicode Python urlencode doesn't handle unicode well so we need to convert to bytestrings before using it: http://stackoverflow.com/questions/6480723/urllib-urlencode-doesnt-like-unicode-values-how-about-this-workaround
(module (function_definition (function_name_append_sint32) function_name_append_sint32 (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_zigzag_value) identifier_zigzag_...
Appends a 32-bit integer to our buffer, zigzag-encoded and then varint-encoded.
(module (function_definition (function_name_describe_cache_parameters) function_name_describe_cache_parameters (parameters (default_parameter (identifier_name) identifier_name (None) None )default_parameter (default_parameter (identifier_conn) identifier_conn ...
Returns the detailed parameter list for a particular cache parameter group. name The name of a specific cache parameter group to return details for. CacheParameterGroupName The name of a specific cache parameter group to return details for. Generally not required, as `name` will be us...
(module (function_definition (function_name_fetch_data) function_name_fetch_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_choices) identifier_choices (attribute (identifier_self) i...
Prompt for a data type choice and execute the `fetch_data` task. The results are saved to a file in json format.
(module (function_definition (function_name_Unequal) function_name_Unequal (parameters (list_splat_pattern (identifier_xs) identifier_xs )list_splat_pattern (default_parameter (identifier_simplify) identifier_simplify (True) True )default_parameter )paramete...
Expression inequality operator If *simplify* is ``True``, return a simplified expression.
(module (function_definition (function_name__encode_dict_as_string) function_name__encode_dict_as_string (parameters (identifier_value) identifier_value )parameters (block (if_statement (call (attribute (identifier_value) identifier_value (identifi...
Takes the PLIST string of a dict, and returns the same string encoded such that it can be included in the string representation of a GSNode.
(module (function_definition (function_name_handle_login_failure) function_name_handle_login_failure (parameters (identifier_self) identifier_self (identifier_provider) identifier_provider (identifier_reason) identifier_reason )parameters (block (expression_statement (c...
Message user and redirect on error.
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (identifier_cont) identifier_cont )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self ...
Update this instance with the contextualize passed.
(module (function_definition (function_name_reverse_iter) function_name_reverse_iter (parameters (identifier_self) identifier_self (default_parameter (identifier_start) identifier_start (None) None )default_parameter (default_parameter (identifier_stop) identifi...
-> yields items of the list in reverse
(module (function_definition (function_name_make_query) function_name_make_query (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kw) identifier_kw )dictionary_splat_pattern )parameters (block (expression_statement (assignment ...
create a query suitable for the catalog
(module (function_definition (function_name_load_config_from_cli_arguments) function_name_load_config_from_cli_arguments (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (id...
Get config values of passed in CLI options. :param dict kwargs: CLI options
(module (function_definition (function_name__save) function_name__save (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_content) identifier_content )parameters (block (expression_statement (assignment (identifier_name...
Saves only when a file with a name and a content is not already uploaded to Cloudinary.
(module (function_definition (function_name_list_clusters) function_name_list_clusters (parameters (default_parameter (identifier_kwargs) identifier_kwargs (None) None )default_parameter (default_parameter (identifier_call) identifier_call (None) None )d...
List all the clusters for this VMware environment CLI Example: .. code-block:: bash salt-cloud -f list_clusters my-vmware-config
(module (function_definition (function_name_numeric) function_name_numeric (parameters (identifier_self) identifier_self (identifier_code) identifier_code (default_parameter (identifier_padded) identifier_padded (False) False )default_parameter )parameters (bloc...
Return the ISO 3166-1 numeric country code matching the provided country code. If no match is found, returns ``None``. :param padded: Pass ``True`` to return a 0-padded three character string, otherwise an integer will be returned.
(module (function_definition (function_name_contracts_source_path_with_stem) function_name_contracts_source_path_with_stem (parameters (identifier_stem) identifier_stem )parameters (block (return_statement (dictionary (pair (string_'lib') string_'lib' ...
The directory remapping given to the Solidity compiler.
(module (function_definition (function_name_load_image) function_name_load_image (parameters (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_image) identifier_image (attribute (call (at...
Load an image
(module (function_definition (function_name_get_mapping_format) function_name_get_mapping_format (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) id...
Dictating the corresponding mapping to the format.
(module (function_definition (function_name_get_farthest_node) function_name_get_farthest_node (parameters (identifier_self) identifier_self (default_parameter (identifier_topology_only) identifier_topology_only (False) False )default_parameter )parameters (block ...
Returns the node's farthest descendant or ancestor node, and the distance to it. :argument False topology_only: If set to True, distance between nodes will be referred to the number of nodes between them. In other words, topological distance will be used instead of branch ...
(module (function_definition (function_name_start) function_name_start (parameters (identifier_context) identifier_context (identifier_mip_config) identifier_mip_config (identifier_email) identifier_email (identifier_priority) identifier_priority (identifier_dryrun) identifier_dr...
Start a new analysis.
(module (function_definition (function_name_weed) function_name_weed (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier__ext) identifier__ext (list_comprehension (identifier_k) identifier_k ...
Get rid of key value pairs that are not standard
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__wake_up) identifier__wake_up ...
Run the core loop of reading and writing configurations. This is where all the roaster magic occurs. On the initial run, we prime the roaster with some data to wake it up. Once awoke, we check our shared queue to identify if the user has passed any updated configuration. Once checked, s...
(module (function_definition (function_name_simple_separated_format) function_name_simple_separated_format (parameters (identifier_separator) identifier_separator )parameters (block (return_statement (call (identifier_TableFormat) identifier_TableFormat (argumen...
Construct a simple TableFormat with columns separated by a separator. >>> tsv = simple_separated_format("\\t") ; \ tabulate([["foo", 1], ["spam", 23]], tablefmt=tsv) == 'foo \\t 1\\nspam\\t23' True
(module (function_definition (function_name__has_tag) function_name__has_tag (parameters (identifier_version) identifier_version (default_parameter (identifier_debug) identifier_debug (False) False )default_parameter )parameters (block (expression_statement ...
Determine a version is a local git tag name or not. :param version: A string containing the branch/tag/sha to be determined. :param debug: An optional bool to toggle debug output. :return: bool
(module (function_definition (function_name_create_db) function_name_create_db (parameters (identifier_name) identifier_name (dictionary_splat_pattern (identifier_client_args) identifier_client_args )dictionary_splat_pattern )parameters (block (if_statement (cal...
Create a database. name Name of the database to create. CLI Example: .. code-block:: bash salt '*' influxdb.create_db <name>
(module (function_definition (function_name__get_filesystem_path) function_name__get_filesystem_path (parameters (identifier_self) identifier_self (identifier_url_path) identifier_url_path (default_parameter (identifier_basedir) identifier_basedir (attribute (identi...
Makes a filesystem path from the specified URL path
(module (function_definition (function_name__write_plain_json) function_name__write_plain_json (parameters (identifier_file_path) identifier_file_path (identifier_js) identifier_js )parameters (block (if_statement (call (attribute (identifier_file_path) ...
Write information to a JSON file This makes sure files are created with the proper encoding and consistent indenting Parameters ---------- file_path : str Full path to the file to write to. It will be overwritten if it exists js : dict JSON information to write
(module (function_definition (function_name_GetCompressedStreamTypeIndicators) function_name_GetCompressedStreamTypeIndicators (parameters (identifier_cls) identifier_cls (identifier_path_spec) identifier_path_spec (default_parameter (identifier_resolver_context) identifier_resolver_...
Determines if a file contains a supported compressed stream types. Args: path_spec (PathSpec): path specification. resolver_context (Optional[Context]): resolver context, where None represents the built-in context which is not multi process safe. Returns: list[str]: supported forma...
(module (function_definition (function_name_allow_pgcodes) function_name_allow_pgcodes (parameters (identifier_cr) identifier_cr (list_splat_pattern (identifier_codes) identifier_codes )list_splat_pattern )parameters (block (try_statement (block (with_...
Context manager that will omit specified error codes. E.g., suppose you expect a migration to produce unique constraint violations and you want to ignore them. Then you could just do:: with allow_pgcodes(cr, psycopg2.errorcodes.UNIQUE_VIOLATION): cr.execute("INSERT INTO me (name) SELECT na...
(module (function_definition (function_name_delete_api_stage) function_name_delete_api_stage (parameters (identifier_restApiId) identifier_restApiId (identifier_stageName) identifier_stageName (default_parameter (identifier_region) identifier_region (None) None )default...
Deletes stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_stage restApiId stageName
(module (function_definition (function_name_show_bgp_speaker) function_name_show_bgp_speaker (parameters (identifier_self) identifier_self (identifier_bgp_speaker_id) identifier_bgp_speaker_id (dictionary_splat_pattern (identifier__params) identifier__params )dictionary_splat_p...
Fetches information of a certain BGP speaker.
(module (function_definition (function_name_render_template) function_name_render_template (parameters (typed_parameter (identifier_template_name_or_list) identifier_template_name_or_list (type (generic_type (identifier_Union) identifier_Union (type_para...
Render the template with the context given. Arguments: template_name_or_list: Template name to render of a list of possible template names. context: The variables to pass to the template.
(module (function_definition (function_name_title_has_tag) function_name_title_has_tag (parameters (identifier_page) identifier_page (identifier_lang) identifier_lang (identifier_tag) identifier_tag )parameters (block (import_from_statement (relative_import (i...
Check if a Title object is associated with the given tag. This function does not use fallbacks to retrieve title object. :param page: a Page instance :param lang: a language code :param tag: a Tag instance or a slug string. :return: whether the Title instance has the given tag attached (False if n...
(module (function_definition (function_name_stop_capture) function_name_stop_capture (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier__capture_node) identifier__capture_node ...
Stop capture on a link
(module (function_definition (function_name_get_mate_center) function_name_get_mate_center (parameters (identifier_self) identifier_self (default_parameter (identifier_angle) identifier_angle (integer_0) integer_0 )default_parameter )parameters (block (return_st...
Mate at ring's center rotated ``angle`` degrees. :param angle: rotation around z-axis (unit: deg) :type angle: :class:`float` :return: mate in ring's center rotated about z-axis :rtype: :class:`Mate <cqparts.constraint.Mate>`
(module (function_definition (function_name_get_incidents) function_name_get_incidents (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_resp) identifier_resp (call (attribute ...
Get incidents.
(module (function_definition (function_name_update_user_label) function_name_update_user_label (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifi...
finds this parameter and gets the least_unique_twig from the bundle
(module (function_definition (function_name_update_frequency) function_name_update_frequency (parameters (identifier_shell_ctx) identifier_shell_ctx )parameters (block (expression_statement (assignment (identifier_frequency_path) identifier_frequency_path (call ...
updates the frequency from files
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_s...
Add a new record to the section
(module (function_definition (function_name_FilterArgsFromSemanticProtobuf) function_name_FilterArgsFromSemanticProtobuf (parameters (identifier_protobuf) identifier_protobuf (identifier_kwargs) identifier_kwargs )parameters (block (for_statement (identifier_descriptor) ident...
Assign kwargs to the protobuf, and remove them from the kwargs dict.
(module (function_definition (function_name_clistream) function_name_clistream (parameters (identifier_reporter) identifier_reporter (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs...
Handle stream data on command line interface, and returns statistics of success, error, and total amount. More detailed information is available on underlying feature, :mod:`clitool.processor`. :param Handler: [DEPRECATED] Handler for file-like streams. (default: :class:`clitool.processor....
(module (function_definition (function_name_kill_all) function_name_kill_all (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_...
Kill all currently running jobs.
(module (function_definition (function_name_SensorMetatagsGet) function_name_SensorMetatagsGet (parameters (identifier_self) identifier_self (identifier_sensor_id) identifier_sensor_id (default_parameter (identifier_namespace) identifier_namespace (None) None )default_p...
Retrieve the metatags of a sensor. @param sensor_id (int) - Id of the sensor to retrieve metatags from @param namespace (stirng) - Namespace for which to retrieve metatags. @return (bool) - Boolean indicating whether SensorMetatagsGet was successful
(module (function_definition (function_name_output_notebook) function_name_output_notebook (parameters (default_parameter (identifier_d3js_url) identifier_d3js_url (string_"//d3js.org/d3.v3.min") string_"//d3js.org/d3.v3.min" )default_parameter (default_parameter (ide...
Import required Javascript libraries to Jupyter Notebook.
(module (function_definition (function_name_make_message) function_name_make_message (parameters (default_parameter (identifier_subject) identifier_subject (string_"") string_"" )default_parameter (default_parameter (identifier_body) identifier_body (string_""...
Creates a simple message for the email parameters supplied. The 'to' and 'bcc' lists are filtered using DontSendEntry. If needed, the 'email' attribute can be set to any instance of EmailMessage if e-mails with attachments etc. need to be supported. Call 'save()' on the result when it is ready to be s...
(module (function_definition (function_name__indent) function_name__indent (parameters (identifier_x) identifier_x )parameters (block (expression_statement (assignment (identifier_lines) identifier_lines (call (attribute (identifier_x) ...
Indent a string by 4 characters.
(module (function_definition (function_name_next) function_name_next (parameters (identifier_self) identifier_self )parameters (block (while_statement (True) True (block (expression_statement (augmented_assignment (attribute ...
Move to the next valid locus. Will only return valid loci or exit via StopIteration exception