sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_remove_message) function_name_remove_message
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(default_parameter
(identifier_afterwards) identifier_afterwards
(None) None
)default_parameter... | Remove a message from the notmuch index
:param message: message to remove
:type message: :class:`Message`
:param afterwards: callback to trigger after removing
:type afterwards: callable or None |
(module
(function_definition
(function_name_data_from_url) function_name_data_from_url
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_apple_fix) identifier_apple_fix
(False) False
)default_parameter
)para... | Download iCal data from URL.
:param url: URL to download
:param apple_fix: fix Apple bugs (protocol type and tzdata in iCal)
:return: decoded (and fixed) iCal data |
(module
(function_definition
(function_name_tag_fig_ordinal) function_name_tag_fig_ordinal
(parameters
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_tag_count) identifier_tag_count
(integer_0) integer_0
... | Meant for finding the position of fig tags with respect to whether
they are for a main figure or a child figure |
(module
(function_definition
(function_name_del_option_by_name) function_name_del_option_by_name
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(for_statement
(identifier_o) identifier_o
(call
(identifier_l... | Delete an option from the message by name
:type name: String
:param name: option name |
(module
(function_definition
(function_name_as_view) function_name_as_view
(parameters
(identifier_cls) identifier_cls
(identifier_endpoint) identifier_endpoint
(identifier_protocol) identifier_protocol
(list_splat_pattern
(identifier_init_args) identifier_init_args
)list... | Used for hooking up the endpoints. Returns a wrapper function that creates
a new instance of the resource class and calls the correct view method for it. |
(module
(function_definition
(function_name_open_external) function_name_open_external
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fnames) identifier_fnames
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Open files with default application |
(module
(function_definition
(function_name_json_error) function_name_json_error
(parameters
(identifier_code) identifier_code
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignment
(identifier_message) identifier_message
... | Returns a JSON-ified error object |
(module
(function_definition
(function_name_get_absolute_url) function_name_get_absolute_url
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_override_url) identifier_override... | If override_url was given, use that.
Otherwise, if the content belongs to a blog, use a blog url.
If not, use a regular article url. |
(module
(function_definition
(function_name_get_items) function_name_get_items
(parameters
(identifier_self) identifier_self
(identifier_maxlevel) identifier_maxlevel
)parameters
(block
(expression_statement
(assignment
(identifier_itemlist) identifier_itemlist
... | Return all items with a level <= `maxlevel` |
(module
(function_definition
(function_name_removeSpacePadding) function_name_removeSpacePadding
(parameters
(identifier_str) identifier_str
(default_parameter
(identifier_blocksize) identifier_blocksize
(identifier_AES_blocksize) identifier_AES_blocksize
)default_parameter
... | Remove padding with spaces |
(module
(function_definition
(function_name_set_quiet) function_name_set_quiet
(parameters
(identifier_mres) identifier_mres
(identifier_parent) identifier_parent
(identifier_global_options) identifier_global_options
)parameters
(block
(expression_statement
(assignment
... | Sets the 'quiet' property on the MultiResult |
(module
(function_definition
(function_name_get_service) function_name_get_service
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self... | Retrieve a stored ServiceConfig from the keychain or exception
:param name: the service name to retrieve
:type name: str
:rtype ServiceConfig
:return the configured Service |
(module
(function_definition
(function_name_parse_option) function_name_parse_option
(parameters
(identifier_self) identifier_self
(identifier_option) identifier_option
(identifier_block_name) identifier_block_name
(list_splat_pattern
(identifier_values) identifier_values
... | Parse domain values for option. |
(module
(function_definition
(function_name_array_to_npy) function_name_array_to_npy
(parameters
(identifier_array_like) identifier_array_like
)parameters
(block
(expression_statement
(assignment
(identifier_buffer) identifier_buffer
(call
(identifie... | Convert an array like object to the NPY format.
To understand better what an array like object is see:
https://docs.scipy.org/doc/numpy/user/basics.creation.html#converting-python-array-like-objects-to-numpy-arrays
Args:
array_like (np.array or Iterable or int or float): array like object to be co... |
(module
(function_definition
(function_name_build) function_name_build
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(identifier_matrix) identifier_matrix
(default_parameter
(identifier_skim_depth) identifier_skim_depth
(integer_10) int... | 1. For each term in the passed matrix, score its KDE similarity with
all other indexed terms.
2. With the ordered stack of similarities in hand, skim off the top X
pairs and add them as edges.
Args:
text (Text): The source text instance.
matrix (Matrix): An inde... |
(module
(function_definition
(function_name_print_projects) function_name_print_projects
(parameters
(identifier_self) identifier_self
(identifier_projects) identifier_projects
)parameters
(block
(for_statement
(identifier_project) identifier_project
(identifier_proje... | Print method for projects. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(default_parameter
(identifier_params) identifier_params
(dictionary
)dictionary
)default_parameter
)parameters
... | A generic method to make GET requests |
(module
(function_definition
(function_name_param) function_name_param
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
... | for accessing global parameters |
(module
(function_definition
(function_name_show_instance) function_name_show_instance
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_conn) identifier_conn
(None) None
)default_parameter
(default_parameter
(identifier_call) identifi... | Get VM on this OpenStack account
name
name of the instance
CLI Example
.. code-block:: bash
salt-cloud -a show_instance myserver |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(identifier_basename) identifier_basename
)parameters
(block
(expression_statement
(assignment
(identifier_irom_segment) identifier_irom_segment
... | Save a set of V1 images for flashing. Parameter is a base filename. |
(module
(function_definition
(function_name_dispatch) function_name_dispatch
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(for_statement
(pattern_list
(identifier_validator) identifier_validator
(... | Dispatch a message to a callback based on its schema.
Args:
message (dict): The message to dispatch |
(module
(function_definition
(function_name__trim_value) function_name__trim_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_value) ident... | Trim double quotes off the ends of a value, un-escaping inner
double quotes and literal backslashes. Also convert escapes to unicode.
If the string is not quoted, return it unmodified. |
(module
(function_definition
(function_name_is_expanded) function_name_is_expanded
(parameters
(identifier_request) identifier_request
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_expand) identifier_expand
... | Examines request object to return boolean of whether
passed field is expanded. |
(module
(function_definition
(function_name_allsame) function_name_allsame
(parameters
(identifier_list_) identifier_list_
(default_parameter
(identifier_strict) identifier_strict
(True) True
)default_parameter
)parameters
(block
(if_statement
(compariso... | checks to see if list is equal everywhere
Args:
list_ (list):
Returns:
True if all items in the list are equal |
(module
(function_definition
(function_name_analyze) function_name_analyze
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
... | Get a list of tests that will be skipped for a package.
:param id: Package ID as an int.
:return: :class:`packages.Analysis <packages.Analysis>` object
:rtype: packages.Analysis |
(module
(function_definition
(function_name_parse_list) function_name_parse_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_List) identifier_List
(argum... | Parse a list from the token stream. |
(module
(function_definition
(function_name_verify) function_name_verify
(parameters
(identifier_ctx) identifier_ctx
(identifier_file) identifier_file
(identifier_account) identifier_account
)parameters
(block
(if_statement
(not_operator
(identifier_file) iden... | Verify a signed message |
(module
(function_definition
(function_name_write_stilde) function_name_write_stilde
(parameters
(identifier_self) identifier_self
(identifier_stilde_dict) identifier_stilde_dict
(default_parameter
(identifier_group) identifier_group
(None) None
)default_parameter
)... | Writes stilde for each IFO to file.
Parameters
-----------
stilde : {dict, FrequencySeries}
A dict of FrequencySeries where the key is the IFO.
group : {None, str}
The group to write the strain to. If None, will write to the top
level. |
(module
(function_definition
(function_name_unhook_wnd_proc) function_name_unhook_wnd_proc
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier___local... | Restore previous Window message handler |
(module
(function_definition
(function_name_verify_account) function_name_verify_account
(parameters
(identifier_self) identifier_self
(identifier_email_address) identifier_email_address
)parameters
(block
(expression_statement
(assignment
(identifier_request) ident... | Verify whether a HelloSign Account exists
Args:
email_address (str): Email address for the account to verify
Returns:
True or False |
(module
(function_definition
(function_name_list_vcls) function_name_list_vcls
(parameters
(identifier_self) identifier_self
(identifier_service_id) identifier_service_id
(identifier_version_number) identifier_version_number
)parameters
(block
(expression_statement
(ass... | List the uploaded VCLs for a particular service and version. |
(module
(function_definition
(function_name_full_path) function_name_full_path
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(call
(identifier_Path) identifier_Path
(argument_list
... | Return the full path to the file. |
(module
(function_definition
(function_name_project_version) function_name_project_version
(parameters
(identifier_full_version) identifier_full_version
)parameters
(block
(expression_statement
(assignment
(identifier_project_full_version) identifier_project_full_version
... | project_version context manager |
(module
(function_definition
(function_name_question_default_add_related_pks) function_name_question_default_add_related_pks
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(not_operator
(call
... | Add related primary keys to a Question instance. |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_field_name) identifier_field_name
(call
... | Return entity data as a dictionary |
(module
(function_definition
(function_name_log2) function_name_log2
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(i... | Return the base-two logarithm of x. |
(module
(function_definition
(function_name_add_file_arg) function_name_add_file_arg
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(call
(attribute
(attribute
... | Add a file argument to the executable. Arguments are appended after any
options and their order is guaranteed. Also adds the file name to the
list of required input data for this job.
@param filename: file to add as argument. |
(module
(function_definition
(function_name_on_heartbeat) function_name_on_heartbeat
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) ident... | Runs on a heartbeat event from websocket connection
Args:
message (dict): Full message from Discord websocket connection" |
(module
(function_definition
(function_name_tzinfo_eq) function_name_tzinfo_eq
(parameters
(identifier_tzinfo1) identifier_tzinfo1
(identifier_tzinfo2) identifier_tzinfo2
(default_parameter
(identifier_startYear) identifier_startYear
(integer_2000) integer_2000
)default... | Compare offsets and DST transitions from startYear to endYear. |
(module
(function_definition
(function_name_download_file) function_name_download_file
(parameters
(identifier_fname) identifier_fname
(default_parameter
(identifier_target_dir) identifier_target_dir
(None) None
)default_parameter
(default_parameter
(identifier_... | Download fname from the datasets_url, and save it to target_dir,
unless the file already exists, and force is False.
Parameters
----------
fname : str
Name of the file to download
target_dir : str
Directory where to store the file
force : bool
Force downloading the fil... |
(module
(function_definition
(function_name_output_vm) function_name_output_vm
(parameters
(identifier_gandi) identifier_gandi
(identifier_vm) identifier_vm
(identifier_datacenters) identifier_datacenters
(identifier_output_keys) identifier_output_keys
(default_parameter
... | Helper to output a vm information. |
(module
(function_definition
(function_name_repair) function_name_repair
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
(default_parameter
(identifier_joincomp) identifier... | Performs mesh repair using MeshFix's default repair
process.
Parameters
----------
verbose : bool, optional
Enables or disables debug printing. Disabled by default.
joincomp : bool, optional
Attempts to join nearby open components.
remove_small... |
(module
(function_definition
(function_name_list_instance_configs) function_name_list_instance_configs
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_page_size) identifier_page_size
(None) None
)default_parameter
(default_parameter
... | List available instance configurations for the client's project.
.. _RPC docs: https://cloud.google.com/spanner/docs/reference/rpc/\
google.spanner.admin.instance.v1#google.spanner.admin.\
instance.v1.InstanceAdmin.ListInstanceConfigs
See `RPC docs`_.
... |
(module
(function_definition
(function_name_create_repository) function_name_create_repository
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(attribute
... | Create the migration repository data store. |
(module
(function_definition
(function_name_move_backend) function_name_move_backend
(parameters
(identifier_self) identifier_self
(identifier_from_path) identifier_from_path
(identifier_to_path) identifier_to_path
)parameters
(block
(expression_statement
(assignment
... | Move an already-mounted backend to a new mount point.
Supported methods:
POST: /sys/remount. Produces: 204 (empty body)
:param from_path: Specifies the previous mount point.
:type from_path: str | unicode
:param to_path: Specifies the new destination mount point.
:t... |
(module
(function_definition
(function_name__broadcast_shapes) function_name__broadcast_shapes
(parameters
(identifier_s1) identifier_s1
(identifier_s2) identifier_s2
)parameters
(block
(expression_statement
(assignment
(identifier_n1) identifier_n1
(call
... | Given array shapes `s1` and `s2`, compute the shape of the array that would
result from broadcasting them together. |
(module
(function_definition
(function_name_render_text) function_name_render_text
(parameters
(identifier_text) identifier_text
(default_parameter
(identifier_language) identifier_language
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Render the text, reuses the template filters provided by Django. |
(module
(function_definition
(function_name_UWRatio) function_name_UWRatio
(parameters
(identifier_s1) identifier_s1
(identifier_s2) identifier_s2
(default_parameter
(identifier_full_process) identifier_full_process
(True) True
)default_parameter
)parameters
(bl... | Return a measure of the sequences' similarity between 0 and 100,
using different algorithms. Same as WRatio but preserving unicode. |
(module
(function_definition
(function_name_loop_stopped) function_name_loop_stopped
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_transport) identifier_transport
(call
(attribute
... | Terminate socket connection because of stopping loop
:return: None |
(module
(function_definition
(function_name_get_person_by_netid) function_name_get_person_by_netid
(parameters
(identifier_self) identifier_self
(identifier_netid) identifier_netid
)parameters
(block
(if_statement
(not_operator
(call
(attribute
... | Returns a restclients.Person object for the given netid. If the
netid isn't found, or if there is an error communicating with the PWS,
a DataFailureException will be thrown. |
(module
(function_definition
(function_name__get_line) function_name__get_line
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_line) identifier_line
... | Returns the current line from the file while incrementing the index. |
(module
(function_definition
(function_name_release) function_name_release
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
... | Release the pidfile.
Close and delete the Pidfile.
:return: None |
(module
(function_definition
(function_name_trans) function_name_trans
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
(default_parameter
(identifier_parameters) identifier_parameters
(None) None
)default_parameter
(default_parameter
... | Translates the given message.
@type id: str
@param id: The message id
@type parameters: dict
@param parameters: A dict of parameters for the message
@type domain: str
@param domain: The domain for the message or null to use the default
@type locale: str
... |
(module
(function_definition
(function_name_getIndexStripUrl) function_name_getIndexStripUrl
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_... | Get comic strip URL from index. |
(module
(function_definition
(function_name_set_all_name_components) function_name_set_all_name_components
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_weight) identifier_weight
(identifier_width) identifier_width
(identifier_custom_... | This function ensures that after being called, the master.name,
master.weight, master.width, and master.customName match the given
values. |
(module
(function_definition
(function_name_client_ident) function_name_client_ident
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_irc) identi... | Return the client identifier as included in many command replies. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
... | Remove an instance of this resource definition. |
(module
(function_definition
(function_name_transition) function_name_transition
(parameters
(identifier_value) identifier_value
(identifier_maximum) identifier_maximum
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(return_statemen... | Transition between two values.
:param value: Current iteration.
:param maximum: Maximum number of iterations.
:param start: Start value.
:param end: End value.
:returns: Transitional value. |
(module
(function_definition
(function_name_seed_instance) function_name_seed_instance
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
(block
(if_statement
(com... | Calls random.seed |
(module
(function_definition
(function_name_get_status_key) function_name_get_status_key
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)parameters
(block
(expression_statement
(assignment
(identifier_key_id) identifier_key_i... | Generates a key used to set a status on a field |
(module
(function_definition
(function_name_set_transition_down) function_name_set_transition_down
(parameters
(identifier_self) identifier_self
(identifier_p_self) identifier_p_self
)parameters
(block
(if_statement
(comparison_operator
(identifier_p_self) identifie... | Set the downbeat-tracking transition matrix according to
self-loop probabilities.
Parameters
----------
p_self : None, float in (0, 1), or np.ndarray [shape=(2,)]
Optional self-loop probability(ies), used for Viterbi decoding |
(module
(function_definition
(function_name_get_reversed_unification_program) function_name_get_reversed_unification_program
(parameters
(identifier_angles) identifier_angles
(identifier_control_indices) identifier_control_indices
(identifier_target) identifier_target
(identifier_contr... | Gets the Program representing the reversed circuit
for the decomposition of the uniformly controlled
rotations in a unification step.
If :math:`n` is the number of controls, the indices within control indices
must range from 1 to :math:`n`, inclusive. The length of control_indices
and the length of... |
(module
(function_definition
(function_name_info_to_datatype_v4) function_name_info_to_datatype_v4
(parameters
(identifier_signed) identifier_signed
(identifier_little_endian) identifier_little_endian
)parameters
(block
(if_statement
(identifier_signed) identifier_signed
... | map CAN signal to MDF integer types
Parameters
----------
signed : bool
signal is flagged as signed in the CAN database
little_endian : bool
signal is flagged as little endian (Intel) in the CAN database
Returns
-------
datatype : int
integer code for MDF channel da... |
(module
(function_definition
(function_name_post_upgrade_checks) function_name_post_upgrade_checks
(parameters
(identifier_self) identifier_self
(identifier_upgrades) identifier_upgrades
)parameters
(block
(expression_statement
(assignment
(identifier_errors) identi... | Run post-upgrade checks after applying all pending upgrades.
Post checks may be used to emit warnings encountered when applying an
upgrade, but post-checks can also be used to advice the user to run
re-indexing or similar long running processes.
Post-checks may query for user-input, bu... |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
(identifier_file_path) identifier_file_path
(default_parameter
(identifier_locale) identifier_locale
(None) None
)default_parameter
(default_parame... | Setup the watching utilities, start the loop and load data a first
time. |
(module
(function_definition
(function_name_activate) function_name_activate
(parameters
(identifier_lancet) identifier_lancet
(identifier_method) identifier_method
(identifier_project) identifier_project
)parameters
(block
(with_statement
(with_clause
(with_i... | Switch to this project. |
(module
(function_definition
(function_name_calc_columns_rows) function_name_calc_columns_rows
(parameters
(identifier_n) identifier_n
)parameters
(block
(expression_statement
(assignment
(identifier_num_columns) identifier_num_columns
(call
(identif... | Calculate the number of columns and rows required to divide an image
into ``n`` parts.
Return a tuple of integers in the format (num_columns, num_rows) |
(module
(function_definition
(function_name__wait) function_name__wait
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
(identifier_now) identifier_now
(identifier_cap) identifier_cap
(identifier_consumed_history) identifier_consumed_history
(... | Check the consumed capacity against the limit and sleep |
(module
(function_definition
(function_name_get_local_file_list) function_name_get_local_file_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_file_list) identifier_file_list
(list
)lis... | Walk the local build directory and create a list of relative and
absolute paths to files. |
(module
(function_definition
(function_name__listeq_to_dict) function_name__listeq_to_dict
(parameters
(identifier_jobconfs) identifier_jobconfs
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(arg... | Convert iterators of 'key=val' into a dictionary with later values taking priority. |
(module
(function_definition
(function_name_is_sparse_file) function_name_is_sparse_file
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_dirname) identifier_dirname
... | Determine if the given filename indicates a dense or a sparse matrix
If pathname is xxx.coo.yyy return True otherwise False. |
(module
(function_definition
(function_name_kill_window) function_name_kill_window
(parameters
(identifier_pymux) identifier_pymux
(identifier_variables) identifier_variables
)parameters
(block
(expression_statement
(string_" Kill all panes in the current window. ") string_" ... | Kill all panes in the current window. |
(module
(function_definition
(function_name_expect_column_values_to_match_json_schema) function_name_expect_column_values_to_match_json_schema
(parameters
(identifier_self) identifier_self
(identifier_column) identifier_column
(identifier_json_schema) identifier_json_schema
(default_pa... | Expect column entries to be JSON objects matching a given JSON schema.
expect_column_values_to_match_json_schema is a :func:`column_map_expectation <great_expectations.data_asset.dataset.Dataset.column_map_expectation>`.
Args:
column (str): \
The column name.
Keywo... |
(module
(function_definition
(function_name_cressman_point) function_name_cressman_point
(parameters
(identifier_sq_dist) identifier_sq_dist
(identifier_values) identifier_values
(identifier_radius) identifier_radius
)parameters
(block
(expression_statement
(identifier_... | r"""Generate a Cressman interpolation value for a point.
The calculated value is based on the given distances and search radius.
Parameters
----------
sq_dist: (N, ) ndarray
Squared distance between observations and grid point
values: (N, ) ndarray
Observation values in same order ... |
(module
(function_definition
(function_name_matrix_transpose) function_name_matrix_transpose
(parameters
(identifier_m) identifier_m
)parameters
(block
(expression_statement
(assignment
(identifier_num_cols) identifier_num_cols
(call
(identifier_len)... | Transposes the input matrix.
The input matrix :math:`m` is a 2-dimensional array.
:param m: input matrix with dimensions :math:`(n \\times m)`
:type m: list, tuple
:return: transpose matrix with dimensions :math:`(m \\times n)`
:rtype: list |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_rrstr) identifier_rrstr
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__initialized)... | Parse a Rock Ridge Alternate Name record out of a string.
Parameters:
rrstr - The string to parse the record out of.
Returns:
Nothing. |
(module
(function_definition
(function_name_poly_to_power_basis) function_name_poly_to_power_basis
(parameters
(identifier_bezier_coeffs) identifier_bezier_coeffs
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_num_coeffs) identi... | Convert a B |eacute| zier curve to polynomial in power basis.
.. note::
This assumes, but does not verify, that the "B |eacute| zier
degree" matches the true degree of the curve. Callers can
guarantee this by calling :func:`.full_reduce`.
Args:
bezier_coeffs (numpy.ndarray): A 1D... |
(module
(function_definition
(function_name_geo_point_n) function_name_geo_point_n
(parameters
(identifier_arg) identifier_arg
(identifier_n) identifier_n
)parameters
(block
(expression_statement
(assignment
(identifier_op) identifier_op
(call
... | Return the Nth point in a single linestring in the geometry.
Negative values are counted backwards from the end of the LineString,
so that -1 is the last point. Returns NULL if there is no linestring in
the geometry
Parameters
----------
arg : geometry
n : integer
Returns
-------
... |
(module
(function_definition
(function_name_deprecated) function_name_deprecated
(parameters
(identifier_func) identifier_func
(default_parameter
(identifier_msg) identifier_msg
(string_'') string_''
)default_parameter
(list_splat_pattern
(identifier_args) ident... | A family of decorators to mark deprecated functions.
:param msg:
the message to print the first time the
deprecated function is used.
Here is an example of usage:
>>> @deprecated(msg='Use new_function instead')
... def old_function():
... 'Do something'
Notice that if the... |
(module
(function_definition
(function_name_remove_by_tag) function_name_remove_by_tag
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
... | Remove the first encountered object with the specified tag from the world.
Returns true if an object was found and removed.
Returns false if no object could be removed. |
(module
(function_definition
(function_name__encoder) function_name__encoder
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(return_statement
(dictionary
(pair
(string_'__class__') string_'__class__'
... | Encode a toc element leaf-node |
(module
(function_definition
(function_name_get_offset) function_name_get_offset
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(binary_operator
(attribute
(attribute
(identifier_self) identifier_self
... | Get the offset t of this line segment. |
(module
(function_definition
(function_name_make_roi) function_name_make_roi
(parameters
(identifier_cls) identifier_cls
(default_parameter
(identifier_sources) identifier_sources
(None) None
)default_parameter
)parameters
(block
(if_statement
(compariso... | Build and return a `fermipy.roi_model.ROIModel` object from
a dict with information about the sources |
(module
(function_definition
(function_name_show_instance) function_name_show_instance
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_instance_id) identifier_instance_id
(None) Non... | Show the details from EC2 concerning an AMI.
Can be called as an action (which requires a name):
.. code-block:: bash
salt-cloud -a show_instance myinstance
...or as a function (which requires either a name or instance_id):
.. code-block:: bash
salt-cloud -f show_instance my-ec2 na... |
(module
(function_definition
(function_name__extract) function_name__extract
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_raw) identifier_raw
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
... | Extracts the reports message using string finding |
(module
(function_definition
(function_name_find_matlab_version) function_name_find_matlab_version
(parameters
(identifier_process_path) identifier_process_path
)parameters
(block
(expression_statement
(assignment
(identifier_bin_path) identifier_bin_path
(call
... | Tries to guess matlab's version according to its process path.
If we couldn't gues the version, None is returned. |
(module
(function_definition
(function_name__is_intrinsic_dict) function_name__is_intrinsic_dict
(parameters
(identifier_self) identifier_self
(identifier_input) identifier_input
)parameters
(block
(return_statement
(boolean_operator
(boolean_operator
(c... | Can the input represent an intrinsic function in it?
:param input: Object to be checked
:return: True, if the input contains a supported intrinsic function. False otherwise |
(module
(function_definition
(function_name_filter) function_name_filter
(parameters
(identifier_self) identifier_self
(identifier_media_type) identifier_media_type
(dictionary_splat_pattern
(identifier_params) identifier_params
)dictionary_splat_pattern
)parameters
(bl... | iterate all the accept media types that match media_type
media_type -- string -- the media type to filter by
**params -- dict -- further filter by key: val
return -- generator -- yields all matching media type info things |
(module
(function_definition
(function_name_unescape) function_name_unescape
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_text) identifier_text
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type... | Replace escape sequence with corresponding characters.
Args:
text: Text to unescape. |
(module
(function_definition
(function_name_get_message) function_name_get_message
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_m) identifier_m
... | Gets the latest object from the backend, and handles unpickling
and validation. |
(module
(function_definition
(function_name_update_parser) function_name_update_parser
(parameters
(identifier_self) identifier_self
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) i... | Update config dictionary with declared arguments in an argparse.parser
New variables will be created, and existing ones overridden.
Args:
parser (argparse.ArgumentParser): parser to read variables from |
(module
(function_definition
(function_name_cd_previous) function_name_cd_previous
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
... | cd to the gDirectory before this file was open. |
(module
(function_definition
(function_name__detach_received) function_name__detach_received
(parameters
(identifier_self) identifier_self
(identifier_error) identifier_error
)parameters
(block
(if_statement
(identifier_error) identifier_error
(block
(expres... | Callback called when a link DETACH frame is received.
This callback will process the received DETACH error to determine if
the link is recoverable or whether it should be shutdown.
:param error: The error information from the detach
frame.
:type error: ~uamqp.errors.ErrorRespon... |
(module
(function_definition
(function_name_any2mb) function_name_any2mb
(parameters
(identifier_s) identifier_s
)parameters
(block
(if_statement
(call
(identifier_is_string) identifier_is_string
(argument_list
(identifier_s) identifier_s
)... | Convert string or number to memory in megabytes. |
(module
(function_definition
(function_name_impersonate_sid) function_name_impersonate_sid
(parameters
(identifier_sid) identifier_sid
(default_parameter
(identifier_session_id) identifier_session_id
(None) None
)default_parameter
(default_parameter
(identifier_... | Find an existing process token for the given sid and impersonate the token. |
(module
(function_definition
(function_name_send_packet) function_name_send_packet
(parameters
(identifier_self) identifier_self
(identifier_packet) identifier_packet
(default_parameter
(identifier_protocol) identifier_protocol
(string_'json') string_'json'
)default_par... | Send an UDP packet.
:param packet: the packet to be sent
:type packet: (if protocol is 'json') dict
(if protocol is 'line') list of line protocol strings
:param protocol: protocol of input data, either 'json' or 'line'
:type protocol: str
:param time_precis... |
(module
(function_definition
(function_name_update_active) function_name_update_active
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_acti... | Update the active marker on the marker Canvas |
(module
(function_definition
(function_name_map) function_name_map
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_Pool) identifier_Pool
... | Perform a function on every item in an iterable. |
(module
(function_definition
(function_name_sanitize_metadata) function_name_sanitize_metadata
(parameters
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
(default_parameter
(identifier_replace_hyphen_with) identifier_replace_hyphen_with
(string_"-... | Convert non-string metadata values to strings and drop null values |
(module
(function_definition
(function_name_set_credential_password) function_name_set_credential_password
(parameters
(identifier_self) identifier_self
(identifier_access_id) identifier_access_id
(identifier_password) identifier_password
)parameters
(block
(return_statement
... | Sets the password for an access host
:param integer access_id: id of the access host
:param string password: password to set |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.