sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_mpirun) function_name_mpirun (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_cmd) identifier_cmd (subscript (attribute (identifie...
Additional options passed as a list to the ``mpirun`` command
(module (function_definition (function_name_connect) function_name_connect (parameters (identifier_self) identifier_self (identifier_login) identifier_login (identifier_password) identifier_password (default_parameter (identifier_authz_id) identifier_authz_id (string_b"...
Establish a connection with the server. This function must be used. It read the server capabilities and wraps calls to STARTTLS and AUTHENTICATE commands. :param login: username :param password: clear password :param starttls: use a TLS connection or not :param authmech...
(module (function_definition (function_name__compute_intra_event_std) function_name__compute_intra_event_std (parameters (identifier_self) identifier_self (identifier_C) identifier_C (identifier_vs30) identifier_vs30 (identifier_pga1100) identifier_pga1100 (identifier_sigma_pga) ...
Returns the intra-event standard deviation at the site, as defined in equation 15, page 147
(module (function_definition (function_name_pad_to_power2) function_name_pad_to_power2 (parameters (identifier_data) identifier_data (default_parameter (identifier_axis) identifier_axis (None) None )default_parameter (default_parameter (identifier_mode) identifi...
pad data to a shape of power 2 if axis == None all axis are padded
(module (function_definition (function_name_campaign) function_name_campaign (parameters (identifier_self) identifier_self (identifier_name) identifier_name (default_parameter (identifier_owner) identifier_owner (None) None )default_parameter (dictionary_splat_pat...
Create the Campaign TI object. Args: owner: name: **kwargs: Return:
(module (function_definition (function_name_heater_level) function_name_heater_level (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier...
Verifies that the heater_level is between 0 and heater_segments. Can only be called when freshroastsr700 object is initialized with ext_sw_heater_drive=True. Will throw RoasterValueError otherwise.
(module (function_definition (function_name_generate_entities_doc) function_name_generate_entities_doc (parameters (identifier_ctx) identifier_ctx (identifier_out_path) identifier_out_path (identifier_package) identifier_package )parameters (block (import_from_statement ...
Create entities documentation from Canari python classes file.
(module (function_definition (function_name_input_dir) function_name_input_dir (parameters (identifier_dirname) identifier_dirname )parameters (block (expression_statement (assignment (identifier_dirname) identifier_dirname (call (attribute ...
Check all Python source files in this directory and all subdirectories.
(module (function_definition (function_name_execute_route) function_name_execute_route (parameters (identifier_self) identifier_self (identifier_meta_data) identifier_meta_data (identifier_request_pdu) identifier_request_pdu )parameters (block (try_statement (block ...
Execute configured route based on requests meta data and request PDU. :param meta_data: A dict with meta data. It must at least contain key 'unit_id'. :param request_pdu: A bytearray containing request PDU. :return: A bytearry containing reponse PDU.
(module (function_definition (function_name_jbcorrelation) function_name_jbcorrelation (parameters (identifier_sites_or_distances) identifier_sites_or_distances (identifier_imt) identifier_imt (default_parameter (identifier_vs30_clustering) identifier_vs30_clustering (False) ...
Returns the Jayaram-Baker correlation model. :param sites_or_distances: SiteCollection instance o ristance matrix :param imt: Intensity Measure Type (PGA or SA) :param vs30_clustering: flag, defalt false
(module (function_definition (function_name_remove_exclude_regions) function_name_remove_exclude_regions (parameters (identifier_orig_bed) identifier_orig_bed (identifier_base_file) identifier_base_file (identifier_items) identifier_items (default_parameter (identifier_remove_e...
Remove centromere and short end regions from an existing BED file of regions to target.
(module (function_definition (function_name_shift) function_name_shift (parameters (identifier_self) identifier_self (identifier_timezone) identifier_timezone )parameters (block (try_statement (block (expression_statement (assignment (attri...
Shifts the timezone from the current timezone to the specified timezone associated with the Delorean object, modifying the Delorean object and returning the modified object. .. testsetup:: from datetime import datetime from delorean import Delorean .. doctest:: ...
(module (function_definition (function_name__get_result_paths) function_name__get_result_paths (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (expression_statement (assignment (identifier_result) identifier_result ...
Get the resulting tree
(module (function_definition (function_name_add_issues_to_sprint) function_name_add_issues_to_sprint (parameters (identifier_self) identifier_self (identifier_sprint_id) identifier_sprint_id (identifier_issue_keys) identifier_issue_keys )parameters (block (if_statement ...
Add the issues in ``issue_keys`` to the ``sprint_id``. The sprint must be started but not completed. If a sprint was completed, then have to also edit the history of the issue so that it was added to the sprint before it was completed, preferably before it started. A completed sprint's...
(module (function_definition (function_name_bootstrap_histogram_1D) function_name_bootstrap_histogram_1D (parameters (identifier_values) identifier_values (identifier_intervals) identifier_intervals (default_parameter (identifier_uncertainties) identifier_uncertainties (None)...
Bootstrap samples a set of vectors :param numpy.ndarray values: The data values :param numpy.ndarray intervals: The bin edges :param numpy.ndarray uncertainties: The standard deviations of each observation :param bool normalisation: If True then returns the histogram as ...
(module (function_definition (function_name__is_in_keep_going) function_name__is_in_keep_going (parameters (identifier_self) identifier_self (identifier_x) identifier_x (identifier_y) identifier_y )parameters (block (expression_statement (assignment (pattern_l...
Checks if the mouse is in the keep going button, and if the won overlay is shown.
(module (function_definition (function_name_im_watermark) function_name_im_watermark (parameters (identifier_im) identifier_im (identifier_inputtext) identifier_inputtext (default_parameter (identifier_font) identifier_font (None) None )default_parameter (default_...
imprints a PIL image with the indicated text in lower-right corner
(module (function_definition (function_name_hook) function_name_hook (parameters (identifier_klass) identifier_klass )parameters (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifi...
monkey-patch pdb.Pdb class adds a 'vim' (and 'v') command: it switches to debugging with vimpdb
(module (function_definition (function_name_rpc) function_name_rpc (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_handler) identifier_handler (identifier_value) identifier_value (default_parameter (identifier_request) identifie...
Perform RPC operation on PV :param name: A single name string or list of name strings :param callable handler: Completion notification. Called with a Value, RemoteError, or Cancelled :param request: A :py:class:`p4p.Value` or string to qualify this request, or None to use a default. :...
(module (function_definition (function_name_nodes) function_name_nodes (parameters )parameters (block (for_statement (pattern_list (identifier_name) identifier_name (identifier_provider) identifier_provider )pattern_list (call (attribute ...
List running nodes on all enabled cloud providers. Automatically flushes caches
(module (function_definition (function_name__create_lock_object) function_name__create_lock_object (parameters (identifier_self) identifier_self (identifier_key) identifier_key )parameters (block (return_statement (call (attribute (identifier_redis_lock)...
Returns a lock object, split for testing
(module (function_definition (function_name_init_logger) function_name_init_logger (parameters (default_parameter (identifier_log_requests) identifier_log_requests (False) False )default_parameter )parameters (block (expression_statement (assignment ...
Initialize the logger
(module (function_definition (function_name_index) function_name_index (parameters (identifier_request) identifier_request (default_parameter (identifier_template_name) identifier_template_name (string_"index.html") string_"index.html" )default_parameter )parameters (...
\ The index view, which basically just displays a button and increments a counter.
(module (function_definition (function_name_set_address) function_name_set_address (parameters (identifier_network) identifier_network (identifier_address) identifier_address )parameters (block (if_statement (comparison_operator (call (attribute ...
Sets the given address to the network XML element. Libvirt bridge will have address and DHCP server configured according to the subnet prefix length.
(module (function_definition (function_name_WriteFileHeader) function_name_WriteFileHeader (parameters (identifier_self) identifier_self (default_parameter (identifier_arcname) identifier_arcname (None) None )default_parameter (default_parameter (identifier_comp...
Writes a file header.
(module (function_definition (function_name__copyValues) function_name__copyValues (parameters (identifier_self) identifier_self (identifier_to) identifier_to (default_parameter (identifier_extra) identifier_extra (None) None )default_parameter )parameters (bloc...
Copies param values from this instance to another instance for params shared by them. :param to: the target instance :param extra: extra params to be copied :return: the target instance with param values copied
(module (function_definition (function_name_nub) function_name_nub (parameters (identifier_it) identifier_it )parameters (block (expression_statement (assignment (identifier_seen) identifier_seen (call (identifier_set) identifier_set (arg...
Dedups an iterable in arbitrary order. Uses memory proportional to the number of unique items in ``it``.
(module (function_definition (function_name_number_of_bytes_to_modify) function_name_number_of_bytes_to_modify (parameters (identifier_buf_len) identifier_buf_len (identifier_fuzz_factor) identifier_fuzz_factor )parameters (block (return_statement (binary_operator (...
Calculate number of bytes to modify. :param buf_len: len of data buffer to fuzz. :param fuzz_factor: degree of fuzzing. :return: number of bytes to change.
(module (function_definition (function_name_handleError) function_name_handleError (parameters (identifier_self) identifier_self (identifier_test) identifier_test (identifier_err) identifier_err (default_parameter (identifier_capt) identifier_capt (None) None )def...
If the database plugin is not present, we have to handle capturing "errors" that shouldn't be reported as such in base.
(module (function_definition (function_name_get_delta) function_name_get_delta (parameters (identifier_D) identifier_D (identifier_k) identifier_k )parameters (block (if_statement (comparison_operator (identifier_k) identifier_k (integer_0) integer_0 ...
Calculate the k-th order trend filtering matrix given the oriented edge incidence matrix and the value of k.
(module (function_definition (function_name_normalize) function_name_normalize (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___v) identifi...
Sets the potential range 0 to 1.
(module (function_definition (function_name_assign_nested_vars) function_name_assign_nested_vars (parameters (identifier_variables) identifier_variables (identifier_tensors) identifier_tensors (default_parameter (identifier_indices) identifier_indices (None) None )defau...
Assign tensors to matching nested tuple of variables. Args: variables: Nested tuple or list of variables to update. tensors: Nested tuple or list of tensors to assign. indices: Batch indices to assign to; default to all. Returns: Operation.
(module (function_definition (function_name_check_output) function_name_check_output (parameters (identifier_self) identifier_self (identifier_cmd) identifier_cmd )parameters (block (expression_statement (assignment (pattern_list (identifier_ret) identif...
Calls a command through SSH and returns its output.
(module (function_definition (function_name_com_google_fonts_check_fontv) function_name_com_google_fonts_check_fontv (parameters (identifier_ttFont) identifier_ttFont )parameters (block (import_from_statement (dotted_name (identifier_fontv) identifier_fontv (ide...
Check for font-v versioning
(module (function_definition (function_name__match_space_at_line) function_name__match_space_at_line (parameters (identifier_line) identifier_line )parameters (block (expression_statement (assignment (identifier_regex) identifier_regex (call (attribu...
Return a re.match object if an empty comment was found on line.
(module (function_definition (function_name_projection_name) function_name_projection_name (parameters (identifier_self) identifier_self (typed_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern (type (gen...
Define the projection name for this projector. Note: This function is just a basic placeholder and likely should be overridden. Args: kwargs: Projection information dict combined with additional arguments passed to the projection function. Returns: ...
(module (function_definition (function_name_reserved_quota) function_name_reserved_quota (parameters (identifier_self) identifier_self (identifier_reserved_quota) identifier_reserved_quota )parameters (block (if_statement (comparison_operator (identifier_reserved_qu...
Sets the reserved_quota of this ServicePackageMetadata. Sum of all open reservations for this account. :param reserved_quota: The reserved_quota of this ServicePackageMetadata. :type: int
(module (function_definition (function_name__parse_tables) function_name__parse_tables (parameters (identifier_cls) identifier_cls (identifier_parsed_content) identifier_parsed_content )parameters (block (expression_statement (assignment (identifier_tables) identifi...
Parses the information tables contained in a character's page. Parameters ---------- parsed_content: :class:`bs4.BeautifulSoup` A :class:`BeautifulSoup` object containing all the content. Returns ------- :class:`OrderedDict`[str, :class:`list`of :class:`bs4....
(module (function_definition (function_name_partial_derivative_mu) function_name_partial_derivative_mu (parameters (identifier_mu) identifier_mu (identifier_sigma) identifier_sigma (identifier_low) identifier_low (identifier_high) identifier_high (identifier_data) identifier_data...
The partial derivative with respect to the mean. Args: mu (float): the mean of the truncated normal sigma (float): the std of the truncated normal low (float): the lower truncation bound high (float): the upper truncation bound data (ndarray): the one...
(module (function_definition (function_name_kldiv_model) function_name_kldiv_model (parameters (identifier_prediction) identifier_prediction (identifier_fm) identifier_fm )parameters (block (expression_statement (assignment (tuple_pattern (identifier__) ...
wraps kldiv functionality for model evaluation input: prediction: 2D matrix the model salience map fm : fixmat Should be filtered for the image corresponding to the prediction
(module (function_definition (function_name_download_images) function_name_download_images (parameters (identifier_query) identifier_query (identifier_path) identifier_path (default_parameter (identifier_size) identifier_size (integer_1024) integer_1024 )default_paramet...
Download images in query result to path. Return list of downloaded images with lat,lon. There are four sizes available: 320, 640, 1024 (default), or 2048.
(module (function_definition (function_name_get_shard_id2num_examples) function_name_get_shard_id2num_examples (parameters (identifier_num_shards) identifier_num_shards (identifier_total_num_examples) identifier_total_num_examples )parameters (block (expression_statement (ass...
Return the mapping shard_id=>num_examples, assuming round-robin.
(module (function_definition (function_name__get_biodata) function_name__get_biodata (parameters (identifier_base_file) identifier_base_file (identifier_args) identifier_args )parameters (block (with_statement (with_clause (with_item (as_pattern ...
Retrieve biodata genome targets customized by install parameters.
(module (function_definition (function_name_dumps) function_name_dumps (parameters (identifier_obj) identifier_obj )parameters (block (return_statement (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps ...
Outputs json with formatting edits + object handling.
(module (function_definition (function_name_once) function_name_once (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_ns) identifier_ns (call (attribute (identifier_self) ide...
Returns a function that will be executed at most one time, no matter how often you call it. Useful for lazy initialization.
(module (function_definition (function_name_complete_experiment) function_name_complete_experiment (parameters (identifier_self) identifier_self (identifier_status) identifier_status )parameters (block (expression_statement (call (attribute (identifier_s...
Record worker completion status to the experiment server. This is done using a GET request to the /worker_complete or /worker_failed endpoints.
(module (function_definition (function_name__SGraphFromJsonTree) function_name__SGraphFromJsonTree (parameters (identifier_json_str) identifier_json_str )parameters (block (expression_statement (assignment (identifier_g) identifier_g (call (attribute...
Convert the Json Tree to SGraph
(module (function_definition (function_name_list_profile) function_name_list_profile (parameters (identifier_hostname) identifier_hostname (identifier_username) identifier_username (identifier_password) identifier_password (identifier_profile_type) identifier_profile_type (defaul...
A function to connect to a bigip device and list an existing profile. If no name is provided than all profiles of the specified type will be listed. hostname The host/address of the bigip device username The iControl REST username password The iControl REST password profile...
(module (function_definition (function_name_reward_goal) function_name_reward_goal (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (comparison_operator (string_'goal') string_'goal' (attribute ...
Add an end goal reward
(module (function_definition (function_name_resample) function_name_resample (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_cache_dir) identifier_cache_dir (None) None )default_parameter (default_para...
Resample `data` by calling `precompute` and `compute` methods. Only certain resampling classes may use `cache_dir` and the `mask` provided when `mask_area` is True. The return value of calling the `precompute` method is passed as the `cache_id` keyword argument of the `compute` method, ...
(module (function_definition (function_name_add_str) function_name_add_str (parameters (identifier_self) identifier_self (identifier_seq) identifier_seq (default_parameter (identifier_name) identifier_name (None) None )default_parameter (default_parameter ...
Use this method to add a sequence as a string to this fasta.
(module (function_definition (function_name_register) function_name_register (parameters (identifier_self) identifier_self (identifier_model_or_iterable) identifier_model_or_iterable (identifier_moderation_class) identifier_moderation_class )parameters (block (if_statement ...
Register a model or a list of models for comment moderation, using a particular moderation class. Raise ``AlreadyModerated`` if any of the models are already registered.
(module (function_definition (function_name_apply_markup) function_name_apply_markup (parameters (identifier_value) identifier_value (default_parameter (identifier_arg) identifier_arg (None) None )default_parameter )parameters (block (if_statement (compa...
Applies text-to-HTML conversion. Takes an optional argument to specify the name of a filter to use.
(module (function_definition (function_name_decrypt) function_name_decrypt (parameters (identifier_self) identifier_self (identifier_key) identifier_key )parameters (block (if_statement (comparison_operator (string_'ciphertext') string_'ciphertext' (attrib...
Decrypt a JWE token. :param key: The (:class:`jwcrypto.jwk.JWK`) decryption key. :param key: A (:class:`jwcrypto.jwk.JWK`) decryption key or a password string (optional). :raises InvalidJWEOperation: if the key is not a JWK object. :raises InvalidJWEData: if the ciphertext can...
(module (function_definition (function_name_call) function_name_call (parameters (identifier_self) identifier_self (identifier_method) identifier_method (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statem...
Make a call to a `Responder` and return the result
(module (function_definition (function_name_parse_section_entry_points) function_name_parse_section_entry_points (parameters (identifier_self) identifier_self (identifier_section_options) identifier_section_options )parameters (block (expression_statement (assignment ...
Parses `entry_points` configuration file section. :param dict section_options:
(module (function_definition (function_name_get_private_name) function_name_get_private_name (parameters (identifier_self) identifier_self (identifier_f) identifier_f )parameters (block (expression_statement (assignment (identifier_f) identifier_f (conditi...
get private protected name of an attribute :param str f: name of the private attribute to be accessed.
(module (function_definition (function_name_readn) function_name_readn (parameters (identifier_self) identifier_self (identifier_n) identifier_n )parameters (block (expression_statement (assignment (identifier_data) identifier_data (string_'') string_'' ...
Keep receiving data until exactly `n` bytes have been read.
(module (function_definition (function_name_from_storage) function_name_from_storage (parameters (identifier_source) identifier_source (default_parameter (identifier_source_format) identifier_source_format (string_'csv') string_'csv' )default_parameter (default_paramete...
Create an external table for a GCS object. Args: source: the URL of the source objects(s). Can include a wildcard '*' at the end of the item name. Can be a single source or a list. source_format: the format of the data, 'csv' or 'json'; default 'csv'. csv_options: For CSV files, the opti...
(module (function_definition (function_name__get_free_display_port) function_name__get_free_display_port (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_display) identifier_display (integer_100) inte...
Search a free display port
(module (function_definition (function_name_reexport_tf_summary) function_name_reexport_tf_summary (parameters )parameters (block (import_statement (dotted_name (identifier_sys) identifier_sys )dotted_name )import_statement (expression_statement (ass...
Re-export all symbols from the original tf.summary. This function finds the original tf.summary V2 API and re-exports all the symbols from it within this module as well, so that when this module is patched into the TF API namespace as the new tf.summary, the effect is an overlay that just adds TensorBoard-prov...
(module (function_definition (function_name_return_fv_by_seeds) function_name_return_fv_by_seeds (parameters (identifier_fv) identifier_fv (default_parameter (identifier_seeds) identifier_seeds (None) None )default_parameter (default_parameter (identifier_unique...
Return features selected by seeds and unique_cls or selection from features and corresponding seed classes. :param fv: ndarray with lineariezed feature. It's shape is MxN, where M is number of image pixels and N is number of features :param seeds: ndarray with seeds. Does not to be linear. :param uniqu...
(module (function_definition (function_name_map_concepts_to_indicators) function_name_map_concepts_to_indicators (parameters (identifier_self) identifier_self (typed_default_parameter (identifier_n) identifier_n (type (identifier_int) identifier_int )type ...
Map each concept node in the AnalysisGraph instance to one or more tangible quantities, known as 'indicators'. Args: n: Number of matches to keep min_temporal_res: Minimum temporal resolution that the indicators must have data for.
(module (function_definition (function_name__stringify_number) function_name__stringify_number (parameters (identifier_v) identifier_v )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_v) ...
Stringify a number, preventing unwanted scientific notations.
(module (function_definition (function_name_sql_program_name_func) function_name_sql_program_name_func (parameters (identifier_command) identifier_command )parameters (block (expression_statement (assignment (identifier_args) identifier_args (call (a...
Extract program name from `command`. >>> sql_program_name_func('ls') 'ls' >>> sql_program_name_func('git status') 'git' >>> sql_program_name_func('EMACS=emacs make') 'make' :type command: str
(module (function_definition (function_name_create_project) function_name_create_project (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_client_id) identifier_client_id (default_parameter (identifier_budget) identifier_budget ...
Creates a Project with the given information.
(module (function_definition (function_name_get_config) function_name_get_config (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier__config) identifi...
Load user configuration or return default when not found. :rtype: :class:`Configuration`
(module (function_definition (function_name__determine_case) function_name__determine_case (parameters (identifier_was_upper) identifier_was_upper (identifier_words) identifier_words (identifier_string) identifier_string )parameters (block (expression_statement (assignm...
Determine case type of string. Arguments: was_upper {[type]} -- [description] words {[type]} -- [description] string {[type]} -- [description] Returns: - upper: All words are upper-case. - lower: All words are lower-case. - pascal: All words are title-case or up...
(module (function_definition (function_name_plot_vxz) function_name_plot_vxz (parameters (identifier_self) identifier_self (default_parameter (identifier_colorbar) identifier_colorbar (True) True )default_parameter (default_parameter (identifier_cb_orientation) ...
Plot the Vxz component of the tensor. Usage ----- x.plot_vxz([tick_interval, xlabel, ylabel, ax, colorbar, cb_orientation, cb_label, show, fname]) Parameters ---------- tick_interval : list or tuple, optional, default = [30, 30] Intervals...
(module (function_definition (function_name_skipDryRun) function_name_skipDryRun (parameters (identifier_logger) identifier_logger (identifier_dryRun) identifier_dryRun (default_parameter (identifier_level) identifier_level (attribute (identifier_logging) identifier...
Return logging function. When logging function called, will return True if action should be skipped. Log will indicate if skipped because of dry run.
(module (function_definition (function_name_get_harddisk_sleep) function_name_get_harddisk_sleep (parameters )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (attribute (att...
Display the amount of idle time until the hard disk sleeps. :return: A string representing the sleep settings for the hard disk :rtype: str CLI Example: ..code-block:: bash salt '*' power.get_harddisk_sleep
(module (function_definition (function_name__stream_search) function_name__stream_search (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwar...
Helper method for iterating over ES search results.
(module (function_definition (function_name_change_numbering) function_name_change_numbering (parameters (identifier_self) identifier_self (identifier_rename_dict) identifier_rename_dict (default_parameter (identifier_inplace) identifier_inplace (False) False )default_p...
Return the reindexed version of Cartesian. Args: rename_dict (dict): A dictionary mapping integers on integers. Returns: Cartesian: A renamed copy according to the dictionary passed.
(module (function_definition (function_name_put_tagging) function_name_put_tagging (parameters (identifier_Bucket) identifier_Bucket (default_parameter (identifier_region) identifier_region (None) None )default_parameter (default_parameter (identifier_key) ident...
Given a valid config, update the tags for a bucket. Returns {updated: true} if tags were updated and returns {updated: False} if tags were not updated. CLI Example: .. code-block:: bash salt myminion boto_s3_bucket.put_tagging my_bucket my_role [...]
(module (function_definition (function_name_setup_logging) function_name_setup_logging (parameters (identifier_level) identifier_level (default_parameter (identifier_console_stream) identifier_console_stream (None) None )default_parameter (default_parameter (ide...
Configures logging for a given scope, by default the global scope. :param str level: The logging level to enable, must be one of the level names listed here: https://docs.python.org/2/library/logging.html#levels :param file console_stream: The stream to use for default (console) logging. If Non...
(module (function_definition (function_name_reset) function_name_reset (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_filename) identifier_...
Reset all the information of this widget.
(module (function_definition (function_name_amg_video_search) function_name_amg_video_search (parameters (identifier_self) identifier_self (identifier_entitiy_type) identifier_entitiy_type (identifier_query) identifier_query (dictionary_splat_pattern (identifier_kwargs) identif...
Search the Movies and TV database Where ``entitiy_type`` is a comma separated list of: ``movie`` Movies ``tvseries`` TV series ``credit`` people working in TV or movies
(module (function_definition (function_name_to_pb) function_name_to_pb (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (attribute (identifier_policy_pb2) identifier_policy_pb2 (identifier_Policy) identifier_...
Render a protobuf message. Returns: google.iam.policy_pb2.Policy: a message to be passed to the ``set_iam_policy`` gRPC API.
(module (function_definition (function_name_read_config_info) function_name_read_config_info (parameters (identifier_ini_file) identifier_ini_file )parameters (block (try_statement (block (expression_statement (assignment (identifier_config) iden...
Read the INI file Args: ini_file - path to the file Returns: A dictionary of stuff from the INI file Exits: 1 - if problems are encountered
(module (function_definition (function_name__read) function_name__read (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_...
Reads backup file from json_file property and sets backup_dict property with data decompressed and deserialized from that file. If no usable data is found backup_dict is set to the empty dict.
(module (function_definition (function_name_pull_cfg_from_parameters_out) function_name_pull_cfg_from_parameters_out (parameters (identifier_parameters_out) identifier_parameters_out (default_parameter (identifier_namelist_to_read) identifier_namelist_to_read (string_"nml_allcfgs")...
Pull out a single config set from a parameters_out namelist. This function returns a single file with the config that needs to be passed to MAGICC in order to do the same run as is represented by the values in ``parameters_out``. Parameters ---------- parameters_out : dict, f90nml.Namelist ...
(module (function_definition (function_name_extract_args) function_name_extract_args (parameters (identifier_cls) identifier_cls (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (assignment ...
Takes any arguments like a model and crud, or just one of those, in any order, and return a model and crud.
(module (function_definition (function_name_load_varint) function_name_load_varint (parameters (identifier_reader) identifier_reader )parameters (block (expression_statement (assignment (identifier_buffer) identifier_buffer (identifier__UINT_BUFFER) identifier__...
Binary load of variable size integer serialized by dump_varint :param reader: :return:
(module (function_definition (function_name_process_modules) function_name_process_modules (parameters (identifier_modules) identifier_modules )parameters (block (for_statement (identifier_mod) identifier_mod (subscript (identifier_modules) identifier_modules ...
Accepts dictionary of 'client' and 'api' modules and creates the corresponding files.
(module (function_definition (function_name_filter_not_empty_values) function_name_filter_not_empty_values (parameters (identifier_value) identifier_value )parameters (block (if_statement (not_operator (identifier_value) identifier_value )not_operator (blo...
Returns a list of non empty values or None
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_s...
Fetch exactly one object matching the parameters.
(module (function_definition (function_name_plot_welch_perdiogram) function_name_plot_welch_perdiogram (parameters (identifier_x) identifier_x (identifier_fs) identifier_fs (identifier_nperseg) identifier_nperseg )parameters (block (import_statement (dotted_name ...
Plot Welch perdiogram Args ---- x: ndarray Signal array fs: float Sampling frequency nperseg: float Length of each data segment in PSD
(module (function_definition (function_name_add_simple_link) function_name_add_simple_link (parameters (identifier_self) identifier_self (identifier_issue) identifier_issue (identifier_object) identifier_object )parameters (block (expression_statement (assignment ...
Add a simple remote link from an issue to web resource. This avoids the admin access problems from add_remote_link by just using a simple object and presuming all fields are correct and not requiring more complex ``application`` data. ``object`` should be a dict containing at l...
(module (function_definition (function_name_hashable) function_name_hashable (parameters (identifier_cls) identifier_cls )parameters (block (assert_statement (comparison_operator (string_"__hash__") string_"__hash__" (attribute (identifier_cls) ident...
Makes sure the class is hashable. Needs a working __eq__ and __hash__ and will add a __ne__.
(module (function_definition (function_name_command_str) function_name_command_str (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (attribute ...
get command to execute as string properly escaped :return: string
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (call (attribute (call (attribute ...
Overrides WriterProcess.run, to handle KeyboardInterrupts better. This should not be called by any user. `multiprocessing` calls this in a subprocess. Use `self.start` to start this instance.
(module (function_definition (function_name_get_cancel_url) function_name_get_cancel_url (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_cancel_url) identifier_cancel_url ...
Get cancel url
(module (function_definition (function_name_create_for_rectangle) function_name_create_for_rectangle (parameters (identifier_self) identifier_self (identifier_x) identifier_x (identifier_y) identifier_y (identifier_width) identifier_width (identifier_height) identifier_height ...
Create a new surface that is a rectangle within this surface. All operations drawn to this surface are then clipped and translated onto the target surface. Nothing drawn via this sub-surface outside of its bounds is drawn onto the target surface, making this a useful method for p...
(module (function_definition (function_name__reschedule) function_name__reschedule (parameters (identifier_self) identifier_self (identifier_node) identifier_node )parameters (block (if_statement (attribute (identifier_node) identifier_node (identifier_shu...
Maybe schedule new items on the node. If there are any globally pending work units left then this will check if the given node should be given any more tests.
(module (function_definition (function_name_try_mongodb_opts) function_name_try_mongodb_opts (parameters (identifier_self) identifier_self (default_parameter (identifier_host) identifier_host (string_"localhost") string_"localhost" )default_parameter (default_parameter ...
Try MongoDB configuration
(module (function_definition (function_name_numpyview) function_name_numpyview (parameters (identifier_arr) identifier_arr (identifier_datatype) identifier_datatype (identifier_shape) identifier_shape (default_parameter (identifier_raw) identifier_raw (False) False ...
Takes mp shared array and returns numpy array with given shape.
(module (function_definition (function_name__getbug) function_name__getbug (parameters (identifier_self) identifier_self (identifier_objid) identifier_objid (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block ...
Thin wrapper around _getbugs to handle the slight argument tweaks for fetching a single bug. The main bit is permissive=False, which will tell bugzilla to raise an explicit error if we can't fetch that bug. This logic is called from Bug() too
(module (function_definition (function_name_unicode_urlencode) function_name_unicode_urlencode (parameters (identifier_obj) identifier_obj (default_parameter (identifier_charset) identifier_charset (string_'utf-8') string_'utf-8' )default_parameter (default_parameter ...
URL escapes a single bytestring or unicode string with the given charset if applicable to URL safe quoting under all rules that need to be considered under all supported Python versions. If non strings are provided they are converted to their unicode representation first.
(module (function_definition (function_name_stations) function_name_stations (parameters (identifier_self) identifier_self (identifier_station) identifier_station (default_parameter (identifier_limit) identifier_limit (integer_10) integer_10 )default_parameter )para...
Find stations for given queries Args: station (str): search query limit (int): limit number of results
(module (function_definition (function_name_get_broadcast) function_name_get_broadcast (parameters (identifier_self) identifier_self (identifier_broadcast_guid) identifier_broadcast_guid (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern ...
Get a specific broadcast by guid