sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_process_json_file) function_name_process_json_file (parameters (identifier_file_name) identifier_file_name )parameters (block (with_statement (with_clause (with_item (as_pattern (call (i...
Return a PybelProcessor by processing a Node-Link JSON file. For more information on this format, see: http://pybel.readthedocs.io/en/latest/io.html#node-link-json Parameters ---------- file_name : str The path to a Node-Link JSON file. Returns ------- bp : PybelProcessor ...
(module (function_definition (function_name__float) function_name__float (parameters (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (string_"[") string_"[" (identifier_value) identifier_value )comparison_operato...
Conversion of state vector field, with automatic unit handling
(module (function_definition (function_name__install_eslint) function_name__install_eslint (parameters (identifier_self) identifier_self (identifier_bootstrap_dir) identifier_bootstrap_dir )parameters (block (with_statement (with_clause (with_item (call ...
Install the ESLint distribution. :rtype: string
(module (function_definition (function_name__expand) function_name__expand (parameters (identifier_template) identifier_template (identifier_seq) identifier_seq )parameters (block (if_statement (call (identifier_is_text) identifier_is_text (argument_list ...
seq IS TUPLE OF OBJECTS IN PATH ORDER INTO THE DATA TREE
(module (function_definition (function_name_reducer_metro) function_name_reducer_metro (parameters (identifier_self) identifier_self (identifier_metro) identifier_metro (identifier_values) identifier_values )parameters (block (expression_statement (assignment ...
Output tags of POI locations nearby tweet locations Values will be sorted coming into reducer. First element in each value tuple will be either 1 (osm POI) or 2 (geotweet). Build a spatial index with POI records. For each tweet lookup nearby POI, and emit tag values for predefined tags.
(module (function_definition (function_name_name) function_name_name (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier...
Returns string. Used for variable_scope and naming.
(module (function_definition (function_name_command) function_name_command (parameters (identifier_self) identifier_self (identifier_regexp) identifier_regexp )parameters (block (function_definition (function_name_decorator) function_name_decorator (parameters ...
Register a new command :param str regexp: Regular expression matching the command to register :Example: >>> @bot.command(r"/echo (.+)") >>> def echo(chat, match): >>> return chat.reply(match.group(1))
(module (function_definition (function_name_convert_roipooling) function_name_convert_roipooling (parameters (identifier_node) identifier_node (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statem...
Map MXNet's ROIPooling operator attributes to onnx's MaxRoiPool operator and return the created node.
(module (function_definition (function_name_com_google_fonts_check_metadata_nameid_family_and_full_names) function_name_com_google_fonts_check_metadata_nameid_family_and_full_names (parameters (identifier_ttFont) identifier_ttFont (identifier_font_metadata) identifier_font_metadata )parameters...
METADATA.pb font.name and font.full_name fields match the values declared on the name table?
(module (function_definition (function_name_generate_http_basic_token) function_name_generate_http_basic_token (parameters (identifier_username) identifier_username (identifier_password) identifier_password )parameters (block (expression_statement (assignment (ident...
Generates a HTTP basic token from username and password Returns a token string (not a byte)
(module (function_definition (function_name_user_id_partition_keygen) function_name_user_id_partition_keygen (parameters (identifier_request_envelope) identifier_request_envelope )parameters (block (try_statement (block (expression_statement (assignment ...
Retrieve user id from request envelope, to use as partition key. :param request_envelope: Request Envelope passed during skill invocation :type request_envelope: ask_sdk_model.RequestEnvelope :return: User Id retrieved from request envelope :rtype: str :raises: :py:class:`ask_sdk_core.excep...
(module (function_definition (function_name_list_runners) function_name_list_runners (parameters (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (assignment (identifier_run_) identifier_run_ ...
List the runners loaded on the minion .. versionadded:: 2014.7.0 CLI Example: .. code-block:: bash salt '*' sys.list_runners Runner names can be specified as globs. .. versionadded:: 2015.5.0 .. code-block:: bash salt '*' sys.list_runners 'm*'
(module (function_definition (function_name_listen) function_name_listen (parameters (default_parameter (identifier_timeout) identifier_timeout (float_6.0) float_6.0 )default_parameter (default_parameter (identifier_port) identifier_port (identifier_BOOT_PORT)...
Listen for a 'ping' broadcast message from an unbooted SpiNNaker board. Unbooted SpiNNaker boards send out a UDP broadcast message every 4-ish seconds on port 54321. This function listens for such messages and reports the IP address that it came from. Parameters ---------- timeout : float ...
(module (function_definition (function_name_parallel) function_name_parallel (parameters (identifier_processes) identifier_processes (identifier_threads) identifier_threads )parameters (block (expression_statement (assignment (identifier_pool) identifier_pool ...
execute jobs in processes using N threads
(module (function_definition (function_name_ems) function_name_ems (parameters (identifier_self) identifier_self (typed_parameter (identifier_value) identifier_value (type (identifier_int) identifier_int )type )typed_parameter )parameters (type ...
Set the margin in ems.
(module (function_definition (function_name_weld_iloc_indices_with_missing) function_name_weld_iloc_indices_with_missing (parameters (identifier_array) identifier_array (identifier_weld_type) identifier_weld_type (identifier_indices) identifier_indices )parameters (block (expre...
Retrieve the values at indices. Indices greater than array length get replaced with a corresponding-type missing value literal. Parameters ---------- array : numpy.ndarray or WeldObject Input data. Assumed to be bool data. weld_type : WeldType The WeldType of the array data. ind...
(module (function_definition (function_name_reverse) function_name_reverse (parameters (identifier_self) identifier_self (identifier_points) identifier_points (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block ...
General method for reversing addresses, either a single address or multiple. *args should either be a longitude/latitude pair or a list of such pairs:: >>> multiple_locations = reverse([(40, -19), (43, 112)]) >>> single_location = reverse((40, -19))
(module (function_definition (function_name_import_env) function_name_import_env (parameters (list_splat_pattern (identifier_envs) identifier_envs )list_splat_pattern )parameters (block (expression_statement (string_'import environment variables from host') string_'im...
import environment variables from host
(module (function_definition (function_name_skip) function_name_skip (parameters (identifier_roman_numeral) identifier_roman_numeral (default_parameter (identifier_skip) identifier_skip (integer_1) integer_1 )default_parameter )parameters (block (expression_stat...
Skip the given places to the next roman numeral. Examples: >>> skip('I') 'II' >>> skip('VII') 'I' >>> skip('I', 2) 'III'
(module (function_definition (function_name__construct_from_json) function_name__construct_from_json (parameters (identifier_self) identifier_self (identifier_rec) identifier_rec )parameters (block (expression_statement (call (attribute (identifier_self)...
Construct this Dagobah instance from a JSON document.
(module (function_definition (function_name_bootstrap) function_name_bootstrap (parameters (identifier_self) identifier_self (default_parameter (identifier_mc_bit) identifier_mc_bit (integer_0x10) integer_0x10 )default_parameter (default_parameter (identifier_se...
Return a random catalog by boostrapping the colors of the objects in the current catalog.
(module (function_definition (function_name__keys) function_name__keys (parameters (identifier_expr) identifier_expr )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_expr) identifier_expr...
Retrieve keys of a dict :param expr: dict sequence / scalar :return:
(module (function_definition (function_name_delete_by_id) function_name_delete_by_id (parameters (identifier_self) identifier_self (identifier_webhook) identifier_webhook (default_parameter (identifier_params) identifier_params (dictionary )dictionary )default_p...
This method permanently removes a webhook. Note that it may be possible to receive a request that was already in flight after deleting the webhook, but no further requests will be issued. Parameters ---------- webhook : {Id} The webhook to delete.
(module (function_definition (function_name_as_dot) function_name_as_dot (parameters (identifier_self) identifier_self )parameters (type (identifier_str) identifier_str )type (block (return_statement (call (attribute (call (attribut...
Return as a string the dot version of the graph.
(module (function_definition (function_name__extract) function_name__extract (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (ident...
Extract email addresses from results. Text content from all crawled pages are ran through a simple email extractor. Data is cleaned prior to running pattern expressions.
(module (function_definition (function_name_dfs_back_edges) function_name_dfs_back_edges (parameters (identifier_graph) identifier_graph (identifier_start_node) identifier_start_node )parameters (block (expression_statement (assignment (identifier_visited) identifie...
Do a DFS traversal of the graph, and return with the back edges. Note: This is just a naive recursive implementation, feel free to replace it. I couldn't find anything in networkx to do this functionality. Although the name suggest it, but `dfs_labeled_edges` is doing something different. :param graph...
(module (function_definition (function_name_remove_object) function_name_remove_object (parameters (identifier_self) identifier_self (identifier_bucket_name) identifier_bucket_name (identifier_object_name) identifier_object_name )parameters (block (expression_statement ...
Remove an object from the bucket. :param bucket_name: Bucket of object to remove :param object_name: Name of object to remove :return: None
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_hdf_filename) identifier_hdf_filename (call (attribute (...
Load this step's result from its dump directory
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self (identifier_fname) identifier_fname )parameters (block (try_statement (block (with_statement (with_clause (with_item ...
saves a grid to file as ASCII text
(module (function_definition (function_name_ProcessMessages) function_name_ProcessMessages (parameters (identifier_self) identifier_self (default_parameter (identifier_msgs) identifier_msgs (None) None )default_parameter (default_parameter (identifier_token) ide...
Process the new file and add to the file store.
(module (function_definition (function_name_baseglob) function_name_baseglob (parameters (identifier_pat) identifier_pat (identifier_base) identifier_base )parameters (block (return_statement (list_comprehension (identifier_f) identifier_f (for_in_clause ...
Given a pattern and a base, return files that match the glob pattern and also contain the base.
(module (function_definition (function_name_patch_stdout_context) function_name_patch_stdout_context (parameters (identifier_self) identifier_self (default_parameter (identifier_raw) identifier_raw (False) False )default_parameter (default_parameter (identifier_...
Return a context manager that will replace ``sys.stdout`` with a proxy that makes sure that all printed text will appear above the prompt, and that it doesn't destroy the output from the renderer. :param patch_stdout: Replace `sys.stdout`. :param patch_stderr: Replace `sys.stderr`.
(module (function_definition (function_name__get_redis_server) function_name__get_redis_server (parameters (default_parameter (identifier_opts) identifier_opts (None) None )default_parameter )parameters (block (global_statement (identifier_REDIS_SERVER) identi...
Return the Redis server instance. Caching the object instance.
(module (function_definition (function_name_get_institutes_trend_graph_urls) function_name_get_institutes_trend_graph_urls (parameters (identifier_start) identifier_start (identifier_end) identifier_end )parameters (block (expression_statement (assignment (identifie...
Get all institute trend graphs.
(module (function_definition (function_name__chance) function_name__chance (parameters (identifier_solution) identifier_solution (identifier_pdf) identifier_pdf )parameters (block (return_statement (call (identifier__prod) identifier__prod (argument_list ...
Return the chance of obtaining a solution from a pdf. The probability of many independant weighted "coin flips" (one for each bit)
(module (function_definition (function_name__get_stddevs) function_name__get_stddevs (parameters (identifier_self) identifier_self (identifier_C) identifier_C (identifier_stddev_types) identifier_stddev_types (identifier_num_sites) identifier_num_sites )parameters (block ...
Return total standard deviation as described in paragraph 5.2 pag 200.
(module (function_definition (function_name_mean_pressure_weighted) function_name_mean_pressure_weighted (parameters (identifier_pressure) identifier_pressure (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier...
r"""Calculate pressure-weighted mean of an arbitrary variable through a layer. Layer top and bottom specified in height or pressure. Parameters ---------- pressure : `pint.Quantity` Atmospheric pressure profile *args : `pint.Quantity` Parameters for which the pressure-weighted mean...
(module (function_definition (function_name_settings) function_name_settings (parameters (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (import_from_statement (dotted_name (identifier_pyemma) iden...
apply given PyEMMA config values temporarily within the given context.
(module (function_definition (function_name_register) function_name_register (parameters (identifier_g) identifier_g )parameters (block (assert_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_g) identifier_g ...
Registers new generator instance 'g'.
(module (function_definition (function_name_mdaZeros) function_name_mdaZeros (parameters (identifier_shap) identifier_shap (default_parameter (identifier_dtype) identifier_dtype (attribute (identifier_numpy) identifier_numpy (identifier_float) identifier_float ...
Zero constructor for masked distributed array @param shap the shape of the array @param dtype the numpy data type @param mask mask array (or None if all data elements are valid)
(module (function_definition (function_name_netHours) function_name_netHours (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_specifiedHours...
For regular event staff, this is the net hours worked for financial purposes. For Instructors, netHours is caclulated net of any substitutes.
(module (function_definition (function_name_We) function_name_We (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_We) identifier_We (call (identifier_trapz_loglog) identifier_trapz_loglog ...
Total energy in electrons used for the radiative calculation
(module (function_definition (function_name_make_pre_build_hook) function_name_make_pre_build_hook (parameters (identifier_extra_compiler_config_params) identifier_extra_compiler_config_params )parameters (block (function_definition (function_name_pre_build_hook) function_name_pre_...
Return a pre-build hook function for C++ builders. When called, during graph build, it computes and stores the compiler-config object on the target, as well as adding it to the internal_dict prop for hashing purposes.
(module (function_definition (function_name_calculate) function_name_calculate (parameters (identifier_self) identifier_self (identifier_order) identifier_order (identifier_transaction) identifier_transaction )parameters (block (expression_statement (assignment ...
Pay commission based on dollar value of shares.
(module (function_definition (function_name_tuple) function_name_tuple (parameters (identifier_self) identifier_self (identifier_r) identifier_r )parameters (block (expression_statement (assignment (pattern_list (identifier_m) identifier_m (i...
Converts the linear_index `q` into an chimera_index Parameters ---------- r : int The linear_index node label Returns ------- q : tuple The chimera_index node label corresponding to r
(module (function_definition (function_name_read) function_name_read (parameters (identifier_self) identifier_self (identifier_num_bytes) identifier_num_bytes )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self ...
Reads data from the pyboard over the serial port.
(module (function_definition (function_name_callback) function_name_callback (parameters (identifier_self) identifier_self (identifier_timestamp) identifier_timestamp (identifier_event_type) identifier_event_type (identifier_payload) identifier_payload )parameters (block ...
Callback method for processing events in notification queue. :param timestamp: time the message is received. :param event_type: event type in the notification queue such as identity.project.created, identity.project.deleted. :param payload: Contains information of an ...
(module (function_definition (function_name_Pop) function_name_Pop (parameters (identifier_self) identifier_self (default_parameter (identifier_index) identifier_index (integer_0) integer_0 )default_parameter )parameters (block (if_statement (comparison_...
Removes and returns the pathspec at the specified index.
(module (function_definition (function_name_writeint2dnorm) function_name_writeint2dnorm (parameters (identifier_filename) identifier_filename (identifier_Intensity) identifier_Intensity (default_parameter (identifier_Error) identifier_Error (None) None )default_paramet...
Save the intensity and error matrices to a file Inputs ------ filename: string the name of the file Intensity: np.ndarray the intensity matrix Error: np.ndarray, optional the error matrix (can be ``None``, if no error matrix is to be saved) Output ------ None
(module (function_definition (function_name_tokenize_by_number) function_name_tokenize_by_number (parameters (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_r) identifier_r (call (identifier_find_number) i...
splits a string into a list of tokens each is either a string containing no numbers or a float
(module (function_definition (function_name_reset) function_name_reset (parameters (identifier_self) identifier_self )parameters (block (expression_statement (string_"Close the current failed connection and prepare for a new one") string_"Close the current failed connection and pre...
Close the current failed connection and prepare for a new one
(module (function_definition (function_name_config_delete) function_name_config_delete (parameters (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_r) identifier_r (call (attribute (iden...
Remove a method config from a workspace
(module (function_definition (function_name_remove) function_name_remove (parameters (identifier_coll) identifier_coll (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_coll_class) identifier_coll_class (a...
Remove all the occurrences of a given value :param coll: a collection :param value: the value to remove :returns: a list >>> data = ('NA', 0, 1, 'NA', 1, 2, 3, 'NA', 5) >>> remove(data, 'NA') (0, 1, 1, 2, 3, 5)
(module (function_definition (function_name_deactivate) function_name_deactivate (parameters (identifier_self) identifier_self (identifier_node_id) identifier_node_id )parameters (block (expression_statement (assignment (identifier_node) identifier_node (s...
Deactivate the node identified by node_id. Deactivates the node corresponding to node_id, which means that it can never be the output of a nearest_point query. Note: The node is not removed from the tree, its data is steel available. Args: node_id (int): The no...
(module (function_definition (function_name___set_document_signals) function_name___set_document_signals (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (call (att...
Connects the editor document signals.
(module (function_definition (function_name_root) function_name_root (parameters (identifier_reference_labels) identifier_reference_labels (identifier_estimated_labels) identifier_estimated_labels )parameters (block (expression_statement (call (identifier_validate) ...
Compare chords according to roots. Examples -------- >>> (ref_intervals, ... ref_labels) = mir_eval.io.load_labeled_intervals('ref.lab') >>> (est_intervals, ... est_labels) = mir_eval.io.load_labeled_intervals('est.lab') >>> est_intervals, est_labels = mir_eval.util.adjust_intervals( ...
(module (function_definition (function_name_is_deletion) function_name_is_deletion (parameters (identifier_self) identifier_self )parameters (block (return_statement (boolean_operator (parenthesized_expression (comparison_operator (call ...
Does this variant represent the deletion of nucleotides from the reference genome?
(module (function_definition (function_name_query_by_account) function_name_query_by_account (parameters (identifier_self) identifier_self (identifier_account_id) identifier_account_id (default_parameter (identifier_end_time) identifier_end_time (None) None )default_par...
Query by account. List authentication events for a given account.
(module (function_definition (function_name_clear_build_directory) function_name_clear_build_directory (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_stat) identifier_stat (call (attribu...
Clear the build directory where pip unpacks the source distribution archives.
(module (function_definition (function_name__merge) function_name__merge (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (boolean_operator (comparison_operator (identifier_value) identifi...
Returns a dictionary based on `value` with each value recursively merged with `spec`.
(module (function_definition (function_name_etcd) function_name_etcd (parameters (default_parameter (identifier_url) identifier_url (identifier_DEFAULT_URL) identifier_DEFAULT_URL )default_parameter (default_parameter (identifier_mock) identifier_mock (False) ...
Creates an etcd client.
(module (function_definition (function_name_get_by_name) function_name_get_by_name (parameters (identifier_opname) identifier_opname (identifier_operators) identifier_operators )parameters (block (expression_statement (assignment (identifier_ret_op_classes) identifi...
Return operator class instance by name. Parameters ---------- opname: str Name of the sklearn class that belongs to a TPOT operator operators: list List of operator classes from operator library Returns ------- ret_op_class: class An operator class
(module (function_definition (function_name_is_iterable) function_name_is_iterable (parameters (identifier_maybe_iter) identifier_maybe_iter (default_parameter (identifier_unless) identifier_unless (tuple (identifier_string_types) identifier_string_types (identi...
Return whether ``maybe_iter`` is an iterable, unless it's an instance of one of the base class, or tuple of base classes, given in ``unless``. Example:: >>> is_iterable('foo') False >>> is_iterable(['foo']) True >>> is_iterable(['foo'], unless=list) False ...
(module (function_definition (function_name_turn_on_nightlight) function_name_turn_on_nightlight (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_body) identifier_body (call (attribute ...
Turn on nightlight
(module (function_definition (function_name_get_assignable_repository_ids) function_name_get_assignable_repository_ids (parameters (identifier_self) identifier_self (identifier_repository_id) identifier_repository_id )parameters (block (expression_statement (assignment ...
Gets a list of repositories including and under the given repository node in which any asset can be assigned. arg: repository_id (osid.id.Id): the ``Id`` of the ``Repository`` return: (osid.id.IdList) - list of assignable repository ``Ids`` raise: NullArgument - ``repository...
(module (function_definition (function_name__populate_comptparms) function_name__populate_comptparms (parameters (identifier_self) identifier_self (identifier_img_array) identifier_img_array )parameters (block (if_statement (comparison_operator (attribute ...
Instantiate and populate comptparms structure. This structure defines the image components. Parameters ---------- img_array : ndarray Image data to be written to file.
(module (function_definition (function_name__parse_xml) function_name__parse_xml (parameters (identifier_self) identifier_self (identifier_xml) identifier_xml )parameters (block (expression_statement (call (identifier_vms) identifier_vms (argument_list ...
Extracts objects representing and interacting with the settings in the xml tag.
(module (function_definition (function_name_execute_scenario) function_name_execute_scenario (parameters (identifier_scenario) identifier_scenario )parameters (block (for_statement (identifier_action) identifier_action (attribute (identifier_scenario) identifier_s...
Execute each command in the given scenario's configured sequence. :param scenario: The scenario to execute. :returns: None
(module (function_definition (function_name_pick_tile_size) function_name_pick_tile_size (parameters (identifier_self) identifier_self (identifier_seg_size) identifier_seg_size (identifier_data_lengths) identifier_data_lengths (identifier_valid_chunks) identifier_valid_chunks (id...
Choose job tiles size based on science segment length
(module (function_definition (function_name_is_refreshable_url) function_name_is_refreshable_url (parameters (identifier_self) identifier_self (identifier_request) identifier_request )parameters (block (expression_statement (assignment (identifier_backend_session) i...
Takes a request and returns whether it triggers a refresh examination :arg HttpRequest request: :returns: boolean
(module (function_definition (function_name_broadcast) function_name_broadcast (parameters (identifier_self) identifier_self (identifier_channel) identifier_channel (identifier_event) identifier_event (identifier_data) identifier_data )parameters (block (expression_statem...
Broadcasts an event to all sockets listening on a channel.
(module (function_definition (function_name_configure) function_name_configure (parameters (identifier_cls) identifier_cls (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignm...
Create a new index class with the given info This allow to avoid creating a new class when only few changes are to be made Parameters ---------- kwargs: dict prefix: str The string part to use in the collection, before the normal suffix. ...
(module (function_definition (function_name__forbidden) function_name__forbidden (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (subscrip...
Is a stat forbidden? Goes through the rules to find one that applies. Chronologically newer rules are higher-precedence than older ones. If no rule applies, the stat is forbidden by default.
(module (function_definition (function_name_parse_attribute_map) function_name_parse_attribute_map (parameters (identifier_filenames) identifier_filenames )parameters (block (expression_statement (assignment (identifier_forward) identifier_forward (dictionary ...
Expects a file with each line being composed of the oid for the attribute exactly one space, a user friendly name of the attribute and then the type specification of the name. :param filenames: List of filenames on mapfiles. :return: A 2-tuple, one dictionary with the oid as keys and the friendly ...
(module (function_definition (function_name_matches) function_name_matches (parameters (identifier_self) identifier_self (identifier_query) identifier_query )parameters (block (expression_statement (assignment (identifier_thread_query) identifier_thread_query ...
Check if this thread matches the given notmuch query. :param query: The query to check against :type query: string :returns: True if this thread matches the given query, False otherwise :rtype: bool
(module (function_definition (function_name_setup) function_name_setup (parameters (identifier_app) identifier_app )parameters (block (import_statement (dotted_name (identifier_sphinxcontrib_django) identifier_sphinxcontrib_django (identifier_docstrings) identif...
Allow this module to be used as sphinx extension. This attaches the Sphinx hooks. :type app: sphinx.application.Sphinx
(module (function_definition (function_name_from_dict) function_name_from_dict (parameters (identifier_cls) identifier_cls (identifier_dictionary) identifier_dictionary )parameters (block (expression_statement (assignment (identifier_cookbooks) identifier_cookbooks ...
Create a Berksfile instance from a dict.
(module (function_definition (function_name_many) function_name_many (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_i) identifier_i (call (attribute (attribute (identifier_self) identifier_self...
Gets all of the owners available. Args:
(module (function_definition (function_name_create_mixin) function_name_create_mixin (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier__builder) identifier__builder (identifier_self) identifier_self ...
This will create the custom Model Mixin to attach to your custom field enabled model. :return:
(module (function_definition (function_name_undobutton_action) function_name_undobutton_action (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list ...
when undo is clicked, revert the thematic map to the previous state
(module (function_definition (function_name_create) function_name_create (parameters (identifier_cls) identifier_cls (identifier_repo) identifier_repo (identifier_path) identifier_path (default_parameter (identifier_ref) identifier_ref (string_'HEAD') string_'HEAD' ...
Create a new tag reference. :param path: The name of the tag, i.e. 1.0 or releases/1.0. The prefix refs/tags is implied :param ref: A reference to the object you want to tag. It can be a commit, tree or blob. :param message: If not N...
(module (function_definition (function_name_from_filename) function_name_from_filename (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_i) identifier_i ...
Convert an absolute filename into key.
(module (function_definition (function_name_configure) function_name_configure (parameters (identifier_self) identifier_self (identifier_options) identifier_options (identifier_conf) identifier_conf )parameters (block (expression_statement (call (attribute ...
Configure plugin.
(module (function_definition (function_name_get_submit_args) function_name_get_submit_args (parameters (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_submit_args) identifier_submit_args (call (ident...
Gets arguments for the `submit_and_verify` method.
(module (function_definition (function_name_serialize_job) function_name_serialize_job (parameters (identifier_job) identifier_job )parameters (block (expression_statement (assignment (identifier_d) identifier_d (call (identifier_dict) identifier_dic...
Return a dictionary representing the job.
(module (function_definition (function_name__process_terminal_state) function_name__process_terminal_state (parameters (identifier_self) identifier_self (identifier_job_record) identifier_job_record )parameters (block (expression_statement (assignment (identifier_ms...
method logs a warning message notifying that the job is no longer govern by this state machine
(module (function_definition (function_name__startup) function_name__startup (parameters (identifier_cls) identifier_cls )parameters (block (for_statement (identifier_endpoint_name) identifier_endpoint_name (call (identifier_sorted) identifier_sorted (ar...
Create Endpoint instances and manage automatic flags.
(module (function_definition (function_name_get_storage) function_name_get_storage (parameters (default_parameter (identifier_path) identifier_path (None) None )default_parameter (default_parameter (identifier_options) identifier_options (None) None )def...
Get the specified storage configured with options. :param path: Path in Python dot style to module containing the storage class. If empty settings.DBBACKUP_STORAGE will be used. :type path: ``str`` :param options: Parameters for configure the storage, if empty settings...
(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__in_declare) identi...
Set the filter attributes to its default values
(module (function_definition (function_name_validate) function_name_validate (parameters (identifier_self) identifier_self )parameters (block (for_statement (pattern_list (identifier_key) identifier_key (identifier_val) identifier_val )pattern_list ...
Validate the contents of the object. This calls ``setattr`` for each of the class's grammar properties. It will catch ``ValueError``s raised by the grammar property's setters and re-raise them as :class:`ValidationError`.
(module (function_definition (function_name_get_assessment_part_items) function_name_get_assessment_part_items (parameters (identifier_self) identifier_self (identifier_assessment_part_id) identifier_assessment_part_id )parameters (block (expression_statement (assignment ...
Gets the list of items mapped to the given ``AssessmentPart``. In plenary mode, the returned list contains all known items or an error results. Otherwise, the returned list may contain only those items that are accessible through this session. arg: assessment_part_id (osid.id.Id): `...
(module (function_definition (function_name_main) function_name_main (parameters (default_parameter (identifier_args) identifier_args (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_parser) identifier_p...
Entry point for `fuel-info` script. This function can also be imported and used from Python. Parameters ---------- args : iterable, optional (default: None) A list of arguments that will be passed to Fuel's information utility. If this argument is not specified, `sys.argv[1:]` will ...
(module (function_definition (function_name_deepcopy_strip) function_name_deepcopy_strip (parameters (identifier_item) identifier_item )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_ite...
Make a deep copy of list and dict objects. Intentionally do not copy attributes. This is to discard CommentedMap and CommentedSeq metadata which is very expensive with regular copy.deepcopy.
(module (function_definition (function_name_predict) function_name_predict (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (with_statement (with_clause (with_item (call (identifier_log_star...
Predict new values by running data through the fit model. Parameters ---------- data : pandas.DataFrame Table with columns corresponding to the RHS of `model_expression`. Returns ------- predicted : ndarray Array of predicted values.
(module (function_definition (function_name_generate_dict_schema) function_name_generate_dict_schema (parameters (identifier_size) identifier_size (identifier_valid) identifier_valid )parameters (block (expression_statement (assignment (identifier_schema) identifier...
Generate a schema dict of size `size` using library `lib`. In addition, it returns samples generator :param size: Schema size :type size: int :param samples: The number of samples to generate :type samples: int :param valid: Generate valid samples? :type valid: bool :returns
(module (function_definition (function_name_get_mapping) function_name_get_mapping (parameters (default_parameter (identifier_version) identifier_version (integer_1) integer_1 )default_parameter (default_parameter (identifier_exported_at) identifier_exported_at ...
Return Heroku Connect mapping for the entire project. Args: version (int): Version of the Heroku Connect mapping, default: ``1``. exported_at (datetime.datetime): Time the export was created, default is ``now()``. app_name (str): Name of Heroku application associated with Heroku Connect the...
(module (function_definition (function_name_aggregate) function_name_aggregate (parameters (identifier_self) identifier_self (default_parameter (identifier_other) identifier_other (None) None )default_parameter )parameters (block (if_statement (not_opera...
collect the furthest failure from self and other.
(module (function_definition (function_name_require_Gtk) function_name_require_Gtk (parameters (default_parameter (identifier_min_version) identifier_min_version (integer_2) integer_2 )default_parameter )parameters (block (if_statement (not_operator ...
Make sure Gtk is properly initialized. :raises RuntimeError: if Gtk can not be properly initialized
(module (function_definition (function_name_create) function_name_create (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictio...
Catches errors that may be returned, and raises more informational exceptions.
(module (function_definition (function_name_initialize) function_name_initialize (parameters (identifier_log_file) identifier_log_file (default_parameter (identifier_project_dir) identifier_project_dir (None) None )default_parameter (default_parameter (identifie...
Initializes an AbTools pipeline. Initialization includes printing the AbTools splash, setting up logging, creating the project directory, and logging both the project directory and the log location. Args: log_file (str): Path to the log file. Required. project_dir (str): Path to the ...