sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name__generate_report_all) function_name__generate_report_all (parameters (identifier_self) identifier_self )parameters (block (assert_statement (comparison_operator (attribute (identifier_self) identifier_self ...
Generate report for all subfolders contained by self.folder_id.
(module (function_definition (function_name_prox_zero) function_name_prox_zero (parameters (identifier_X) identifier_X (identifier_step) identifier_step )parameters (block (return_statement (call (attribute (identifier_np) identifier_np (iden...
Proximal operator to project onto zero
(module (function_definition (function_name__make_item) function_name__make_item (parameters (identifier_model) identifier_model )parameters (block (expression_statement (assignment (identifier_item) identifier_item (call (identifier_Item) identifier...
Makes an ``.epub.Item`` from a ``.models.Document`` or ``.models.Resource``
(module (function_definition (function_name_add_constraint) function_name_add_constraint (parameters (identifier_self) identifier_self (identifier_func) identifier_func (identifier_variables) identifier_variables (default_parameter (identifier_default_values) identifier_default...
Adds a constraint that applies to one or more variables. The function must return true or false to indicate which combinations of variable values are valid.
(module (function_definition (function_name_set_value) function_name_set_value (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_parsed_value) identifier_parsed_value ...
Parses, and sets the value attribute for the field. :param value: The value to be parsed and set, the allowed input types vary depending on the Field used
(module (function_definition (function_name_limitsChanged) function_name_limitsChanged (parameters (identifier_self) identifier_self (identifier_param) identifier_param (identifier_limits) identifier_limits )parameters (block (expression_statement (call (attri...
Called when the parameter's limits have changed
(module (function_definition (function_name_export_public_keys) function_name_export_public_keys (parameters (default_parameter (identifier_env) identifier_env (None) None )default_parameter (default_parameter (identifier_sp) identifier_sp (identifier_subproce...
Export all GPG public keys.
(module (function_definition (function_name_flush) function_name_flush (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_annotation) identifier_annotation (call (attribute (id...
Remove the whole storage
(module (function_definition (function_name_write_warning) function_name_write_warning (parameters (identifier_self) identifier_self (identifier_url_data) identifier_url_data )parameters (block (expression_statement (call (attribute (identifier_self) ide...
Write url_data.warning.
(module (function_definition (function_name__get_local_folder) function_name__get_local_folder (parameters (identifier_self) identifier_self (default_parameter (identifier_root) identifier_root (None) None )default_parameter )parameters (block (if_statement ...
Return local NApp root folder. Search for kytos.json in _./_ folder and _./user/napp_. Args: root (pathlib.Path): Where to begin searching. Return: pathlib.Path: NApp root folder. Raises: FileNotFoundError: If there is no such local NApp.
(module (function_definition (function_name_read_line) function_name_read_line (parameters (identifier_self) identifier_self (identifier_fid) identifier_fid )parameters (block (expression_statement (assignment (identifier_lin) identifier_lin (string_' ...
Read a line from a file string and check it isn't either empty or commented before returning.
(module (function_definition (function_name__deflate) function_name__deflate (parameters (identifier_cls) identifier_cls )parameters (block (expression_statement (assignment (identifier_data) identifier_data (dictionary_comprehension (pair ...
Prepare for serialisation - returns a dictionary
(module (function_definition (function_name__configure_interrupt) function_name__configure_interrupt (parameters (identifier_self) identifier_self (identifier_function_name) identifier_function_name (identifier_timeout) identifier_timeout (identifier_container) identifier_container ...
When a Lambda function is executing, we setup certain interrupt handlers to stop the execution. Usually, we setup a function timeout interrupt to kill the container after timeout expires. If debugging though, we don't enforce a timeout. But we setup a SIGINT interrupt to catch Ctrl+C and terminate the c...
(module (function_definition (function_name_get_api_url) function_name_get_api_url (parameters (identifier_self) identifier_self (identifier_api_resource) identifier_api_resource (identifier_auth_token_ticket) identifier_auth_token_ticket (identifier_authenticator) identifier_authentic...
Build an auth-token-protected CAS API url.
(module (function_definition (function_name_compute) function_name_compute (parameters (identifier_self) identifier_self (identifier_activeColumns) identifier_activeColumns (default_parameter (identifier_apicalInput) identifier_apicalInput (tuple )tuple )default...
Perform one timestep. Activate the specified columns, using the predictions from the previous timestep, then learn. Then form a new set of predictions using the new active cells and the apicalInput. @param activeColumns (numpy array) List of active columns @param apicalInput (numpy array) List...
(module (function_definition (function_name_iter_insert_items) function_name_iter_insert_items (parameters (identifier_tree) identifier_tree )parameters (block (if_statement (attribute (identifier_tree) identifier_tree (identifier_list_values) identifier_list_va...
Iterate over the items to insert from an INSERT statement
(module (function_definition (function_name_uninstall) function_name_uninstall (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_filename) identifier_filename (attribute (identifier_self) identifier_self (identif...
Uninstall Mackup. Restore any file where it was before the 1st Mackup backup. Algorithm: for each file in config if mackup/file exists if home/file exists delete home/file copy mackup/file home/file ...
(module (function_definition (function_name_iter_filtered_dir_entry) function_name_iter_filtered_dir_entry (parameters (identifier_dir_entries) identifier_dir_entries (identifier_match_patterns) identifier_match_patterns (identifier_on_skip) identifier_on_skip )parameters (block ...
Filter a list of DirEntryPath instances with the given pattern :param dir_entries: list of DirEntryPath instances :param match_patterns: used with Path.match() e.g.: "__pycache__/*", "*.tmp", "*.cache" :param on_skip: function that will be called if 'match_patterns' hits. e.g.: def ...
(module (function_definition (function_name_find_channels) function_name_find_channels (parameters (identifier_channels) identifier_channels (default_parameter (identifier_connection) identifier_connection (None) None )default_parameter (default_parameter (ident...
Query an NDS2 server for channel information Parameters ---------- channels : `list` of `str` list of channel names to query, each can include bash-style globs connection : `nds2.connection`, optional open NDS2 connection to use for query host : `str`, optional name of NDS...
(module (function_definition (function_name_volume_delete) function_name_volume_delete (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (if_statement (comparison_operator (attribute (identifier_self) iden...
Delete a block device
(module (function_definition (function_name_OverwriteAndClose) function_name_OverwriteAndClose (parameters (identifier_self) identifier_self (identifier_compressed_data) identifier_compressed_data (identifier_size) identifier_size )parameters (block (expression_statement ...
Directly overwrite the current contents. Replaces the data currently in the stream with compressed_data, and closes the object. Makes it possible to avoid recompressing the data. Args: compressed_data: The data to write, must be zlib compressed. size: The uncompressed size of the data.
(module (function_definition (function_name_sum_biomass_weight) function_name_sum_biomass_weight (parameters (identifier_reaction) identifier_reaction )parameters (block (return_statement (binary_operator (call (identifier_sum) identifier_sum (gene...
Compute the sum of all reaction compounds. This function expects all metabolites of the biomass reaction to have formula information assigned. Parameters ---------- reaction : cobra.core.reaction.Reaction The biomass reaction of the model under investigation. Returns ------- f...
(module (function_definition (function_name_djd_to_datetime) function_name_djd_to_datetime (parameters (identifier_djd) identifier_djd (default_parameter (identifier_tz) identifier_tz (string_'UTC') string_'UTC' )default_parameter )parameters (block (expression_...
Converts a Dublin Julian Day float to a datetime.datetime object Parameters ---------- djd : float fractional days since 12/31/1899+0000 tz : str, default 'UTC' timezone to localize the result to Returns ------- datetime.datetime The resultant datetime localized to t...
(module (function_definition (function_name__delete_collection) function_name__delete_collection (parameters (identifier_self) identifier_self (identifier_ctx) identifier_ctx )parameters (block (assert_statement (call (identifier_isinstance) identifier_isinstance ...
Delete a collection from DB, optionally filtered by ``filter_by``
(module (function_definition (function_name__to_tuple) function_name__to_tuple (parameters (identifier_self) identifier_self (identifier__list) identifier__list )parameters (block (expression_statement (assignment (identifier_result) identifier_result (cal...
Recursively converts lists to tuples
(module (function_definition (function_name_add_default_fields) function_name_add_default_fields (parameters (identifier_self) identifier_self (identifier_names) identifier_names (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )para...
Adds one or more empty default fields to self. Parameters ---------- names : (list of) string(s) The names of the fields to add. Must be a field in self's default fields. Other keyword args are any arguments passed to self's default fields. Returns ...
(module (function_definition (function_name_decode) function_name_decode (parameters (identifier_cls) identifier_cls (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_b) identifier_b (call (identifier_...
decodes a base64 string to plain text :param s: unicode str|bytes, the base64 encoded string :returns: unicode str
(module (function_definition (function_name_s2b) function_name_s2b (parameters (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (list )list )assignment )expression_statement ...
String to binary.
(module (function_definition (function_name_graphviz_imshow) function_name_graphviz_imshow (parameters (identifier_self) identifier_self (default_parameter (identifier_ax) identifier_ax (None) None )default_parameter (default_parameter (identifier_figsize) ident...
Generate flow graph in the DOT language and plot it with matplotlib. Args: ax: matplotlib :class:`Axes` or None if a new figure should be created. figsize: matplotlib figure size (None to use default) dpi: DPI value. fmt: Select format for output image R...
(module (function_definition (function_name_DEFINE_multi_enum) function_name_DEFINE_multi_enum (parameters (identifier_name) identifier_name (identifier_default) identifier_default (identifier_enum_values) identifier_enum_values (identifier_help) identifier_help (default_paramete...
Registers a flag whose value can be a list strings from enum_values. Use the flag on the command line multiple times to place multiple enum values into the list. The 'default' may be a single string (which will be converted into a single-element list) or a list of strings. Args: name: str, the flag nam...
(module (function_definition (function_name_split) function_name_split (parameters (identifier_self) identifier_self (identifier_frac) identifier_frac )parameters (block (import_from_statement (relative_import (import_prefix )import_prefix )relativ...
Split the DataFrame into two DataFrames with certain ratio. :param frac: Split ratio :type frac: float :return: two split DataFrame objects :rtype: list[DataFrame]
(module (function_definition (function_name_parallel_map) function_name_parallel_map (parameters (identifier_func) identifier_func (identifier_iterable) identifier_iterable (default_parameter (identifier_args) identifier_args (None) None )default_parameter (defaul...
Map func on a list using gevent greenlets. :param func: function applied on iterable elements :type func: function :param iterable: elements to map the function over :type iterable: iterable :param args: arguments of func :type args: tuple :param kwargs: keyword arguments of func :type ...
(module (function_definition (function_name_getsourcelines) function_name_getsourcelines (parameters (identifier_object) identifier_object )parameters (block (expression_statement (assignment (pattern_list (identifier_lines) identifier_lines (ident...
Return a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of the lines corresponding to the object and the line number indicates where in the original source file ...
(module (function_definition (function_name_create_from_previous_version) function_name_create_from_previous_version (parameters (identifier_cls) identifier_cls (identifier_previous_shadow) identifier_previous_shadow (identifier_payload) identifier_payload )parameters (block (e...
set None to payload when you want to delete shadow
(module (function_definition (function_name_degree_histogram) function_name_degree_histogram (parameters (identifier_G) identifier_G (default_parameter (identifier_t) identifier_t (None) None )default_parameter )parameters (block (expression_statement (a...
Return a list of the frequency of each degree value. Parameters ---------- G : Graph opject DyNetx graph object t : snapshot id (default=None) snapshot id Returns ------- hist : list A list of frequencies of degrees. ...
(module (function_definition (function_name_set_current_context) function_name_set_current_context (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (if_statement (call (attribute (identifier_self) identif...
Set the current context in kubeconfig.
(module (function_definition (function_name_url_converter) function_name_url_converter (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs...
Return the custom URL converter for the given file name.
(module (function_definition (function_name__get_core_transform) function_name__get_core_transform (parameters (identifier_self) identifier_self (identifier_resolution) identifier_resolution )parameters (block (return_statement (call (attribute (identifi...
The projection for the stereonet as a matplotlib transform. This is primarily called by LambertAxes._set_lim_and_transforms.
(module (function_definition (function_name_tail) function_name_tail (parameters (identifier_filename) identifier_filename (identifier_number_of_bytes) identifier_number_of_bytes )parameters (block (with_statement (with_clause (with_item (as_pattern ...
Returns the last number_of_bytes of filename
(module (function_definition (function_name_parse) function_name_parse (parameters (identifier_self) identifier_self (identifier_val) identifier_val )parameters (block (expression_statement (assignment (identifier_s) identifier_s (call (attribu...
Parses a ``bool`` from the string, matching 'true' or 'false' ignoring case.
(module (function_definition (function_name__apply_commit_rules) function_name__apply_commit_rules (parameters (identifier_rules) identifier_rules (identifier_commit) identifier_commit )parameters (block (expression_statement (assignment (identifier_all_violations) ...
Applies a set of rules against a given commit and gitcontext
(module (function_definition (function_name_remove) function_name_remove (parameters (identifier_self) identifier_self (identifier_names) identifier_names )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance ...
Deletes the given files in the current directory level. in names of type str The names to remove. return progress of type :class:`IProgress` Progress object to track the operation completion.
(module (function_definition (function_name_to_latlon) function_name_to_latlon (parameters (identifier_geojson) identifier_geojson (default_parameter (identifier_origin_espg) identifier_origin_espg (None) None )default_parameter )parameters (block (if_statement ...
Convert a given geojson to wgs84. The original epsg must be included insde the crs tag of geojson
(module (function_definition (function_name_compute) function_name_compute (parameters (identifier_mechanism) identifier_mechanism (identifier_subsystem) identifier_subsystem (identifier_purviews) identifier_purviews (identifier_cause_purviews) identifier_cause_purviews (identifi...
Compute a |Concept| for a mechanism, in this |Subsystem| with the provided purviews.
(module (function_definition (function_name_perturb_vec) function_name_perturb_vec (parameters (identifier_q) identifier_q (default_parameter (identifier_cone_half_angle) identifier_cone_half_angle (integer_2) integer_2 )default_parameter )parameters (block (exp...
r"""Perturb a vector randomly qp = perturb_vec(q, cone_half_angle=2) Parameters ---------- q : (n,) numpy array Vector to perturb cone_half_angle : float Maximum angle to perturb the vector in degrees Returns ------- perturbed : (n,) numpy array Perturbed numpy...
(module (function_definition (function_name_compile) function_name_compile (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_content) identifi...
Recursively compile this widget as well as all of its children to HTML. :returns: HTML string representation of this widget.
(module (function_definition (function_name_removeDomain) function_name_removeDomain (parameters (identifier_self) identifier_self (identifier_subnetId) identifier_subnetId (identifier_domainId) identifier_domainId )parameters (block (expression_statement (assignment ...
Function removeDomain Delete a domain from a subnet @param subnetId: The subnet Id @param domainId: The domainId to be attached wiuth the subnet @return RETURN: boolean
(module (function_definition (function_name_probe_disable) function_name_probe_disable (parameters (identifier_cls) identifier_cls (identifier_resource) identifier_resource )parameters (block (expression_statement (assignment (identifier_oper) identifier_oper ...
Disable a probe on a webaccelerator
(module (function_definition (function_name_get_meta) function_name_get_meta (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_rdf) identifier_rdf (call (attribute (identifier...
Get the metadata object for this Thing Returns a [ThingMeta](ThingMeta.m.html#IoticAgent.IOT.ThingMeta.ThingMeta) object
(module (function_definition (function_name_from_files) function_name_from_files (parameters (identifier_cls) identifier_cls (identifier_ID) identifier_ID (identifier_datafiles) identifier_datafiles (default_parameter (identifier_parser) identifier_parser (string_'name'...
Create an OrderedCollection of measurements from a set of data files. Parameters ---------- {_bases_ID} {_bases_data_files} {_bases_filename_parser} {_bases_position_mapper} {_bases_ID_kwargs} kwargs : dict Additional key word arguments to be ...
(module (function_definition (function_name__get_files_modified) function_name__get_files_modified (parameters )parameters (block (expression_statement (assignment (identifier_cmd) identifier_cmd (string_"git diff-index --cached --name-only --diff-filter=ACMRTUXB HEAD...
Get the list of modified files that are Python or Jinja2.
(module (function_definition (function_name_unnest) function_name_unnest (parameters (identifier_elem) identifier_elem )parameters (block (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list ...
Flatten an arbitrarily nested iterable :param elem: An iterable to flatten :type elem: :class:`~collections.Iterable` >>> nested_iterable = (1234, (3456, 4398345, (234234)), (2396, (23895750, 9283798, 29384, (289375983275, 293759, 2347, (2098, 7987, 27599))))) >>> list(vistir.misc.unnest(nested_iterab...
(module (function_definition (function_name_destroy) function_name_destroy (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_v) identifier_v (call (attribute (identifier_vagra...
Destroy all vagrant box involved in the deployment.
(module (function_definition (function_name_time) function_name_time (parameters (typed_parameter (identifier_ctx) identifier_ctx (type (identifier_Context) identifier_Context )type )typed_parameter (typed_parameter (identifier_command) identifier_co...
Time the output of a command.
(module (function_definition (function_name_is_file_secure) function_name_is_file_secure (parameters (identifier_file_name) identifier_file_name )parameters (block (if_statement (not_operator (call (attribute (attribute (identifie...
Returns false if file is considered insecure, true if secure. If file doesn't exist, it's considered secure!
(module (function_definition (function_name_inferTM) function_name_inferTM (parameters (identifier_self) identifier_self (identifier_bottomUp) identifier_bottomUp (identifier_externalInput) identifier_externalInput )parameters (block (expression_statement (call ...
Run inference and return the set of predicted cells
(module (function_definition (function_name_create) function_name_create (parameters (identifier_self) identifier_self (identifier_provider) identifier_provider (identifier_names) identifier_names (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary...
Create the named VMs, without using a profile Example: .. code-block:: python client.create(provider='my-ec2-config', names=['myinstance'], image='ami-1624987f', size='t1.micro', ssh_username='ec2-user', securitygroup='default', delvol_on_destroy=True)
(module (function_definition (function_name_has_next_async) function_name_has_next_async (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__f...
Return a Future whose result will say whether a next item is available. See the module docstring for the usage pattern.
(module (function_definition (function_name_get_xy) function_name_get_xy (parameters (identifier_self) identifier_self (identifier_yidx) identifier_yidx (default_parameter (identifier_xidx) identifier_xidx (integer_0) integer_0 )default_parameter )parameters (bl...
Return stored data for the given indices for plot :param yidx: the indices of the y-axis variables(1-indexing) :param xidx: the index of the x-axis variables :return: None
(module (function_definition (function_name_target_timestamp) function_name_target_timestamp (parameters (identifier_self) identifier_self )parameters (type (identifier_datetime) identifier_datetime )type (block (expression_statement (assignment (identifier_...
Get the target state timestamp.
(module (function_definition (function_name_countries) function_name_countries (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__countries) ...
Access the countries :returns: twilio.rest.voice.v1.dialing_permissions.country.CountryList :rtype: twilio.rest.voice.v1.dialing_permissions.country.CountryList
(module (function_definition (function_name_get_energies) function_name_get_energies (parameters (identifier_atoms_list) identifier_atoms_list )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_lis...
Potential energy for a list of atoms objects
(module (function_definition (function_name_get_activity) function_name_get_activity (parameters (identifier_self) identifier_self (identifier_activity_id) identifier_activity_id (default_parameter (identifier_include_all_efforts) identifier_include_all_efforts (False) False ...
Gets specified activity. Will be detail-level if owned by authenticated user; otherwise summary-level. http://strava.github.io/api/v3/activities/#get-details :param activity_id: The ID of activity to fetch. :type activity_id: int :param inclue_all_efforts: Whether to include ...
(module (function_definition (function_name_reorder) function_name_reorder (parameters (identifier_self) identifier_self (default_parameter (identifier_module) identifier_module (None) None )default_parameter )parameters (block (expression_statement (ass...
Reorder the Activations in the Agenda. If no Module is specified, the current one is used. To be called after changing the conflict resolution strategy.
(module (function_definition (function_name_next_state) function_name_next_state (parameters (identifier_self) identifier_self (identifier_index) identifier_index (identifier_event_time) identifier_event_time (identifier_population_view) identifier_population_view )parameters (...
Moves a population between different states using information this state's `transition_set`. Parameters ---------- index : iterable of ints An iterable of integer labels for the simulants. event_time : pandas.Timestamp When this transition is occurring. p...
(module (function_definition (function_name_init_properties) function_name_init_properties (parameters (identifier_self) identifier_self )parameters (type (string_'PygalleBaseClass') string_'PygalleBaseClass' )type (block (expression_statement (assignment (a...
Initialize the Pigalle properties. # Returns: PygalleBaseClass: The current instance.
(module (function_definition (function_name__element_to_bson) function_name__element_to_bson (parameters (identifier_key) identifier_key (identifier_value) identifier_value (identifier_check_keys) identifier_check_keys (identifier_opts) identifier_opts )parameters (block ...
Encode a single key, value pair.
(module (function_definition (function_name_process_from_web) function_name_process_from_web (parameters )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribut...
Return a TrrustProcessor based on the online interaction table. Returns ------- TrrustProcessor A TrrustProcessor object that has a list of INDRA Statements in its statements attribute.
(module (function_definition (function_name_remove_accounts_from_group) function_name_remove_accounts_from_group (parameters (identifier_accounts_query) identifier_accounts_query (identifier_group) identifier_group )parameters (block (expression_statement (assignment ...
Remove accounts from group.
(module (function_definition (function_name_get_resource_name) function_name_get_resource_name (parameters (identifier_context) identifier_context (default_parameter (identifier_expand_polymorphic_types) identifier_expand_polymorphic_types (False) False )default_parameter ...
Return the name of a resource.
(module (function_definition (function_name_overlap) function_name_overlap (parameters (identifier_xl1) identifier_xl1 (identifier_yl1) identifier_yl1 (identifier_nx1) identifier_nx1 (identifier_ny1) identifier_ny1 (identifier_xl2) identifier_xl2 (identifier_yl2) identifier...
Determines whether two windows overlap
(module (function_definition (function_name_get_random_theme) function_name_get_random_theme (parameters (default_parameter (identifier_dark) identifier_dark (True) True )default_parameter )parameters (block (expression_statement (assignment (identif...
Get a random theme file.
(module (function_definition (function_name_create_api_ipv6) function_name_create_api_ipv6 (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_ApiIPv6) identifier_ApiIPv6 (argument_list (attribute ...
Get an instance of Api IPv6 services facade.
(module (function_definition (function_name__status_change) function_name__status_change (parameters (identifier_id) identifier_id (identifier_new_status) identifier_new_status )parameters (block (expression_statement (assignment (identifier_job_info) identifier_job...
Update the status of a job The status associated with the id is updated, an update command is issued to the job's pubsub, and and the old status is returned. Parameters ---------- id : str The job ID new_status : str The status change Returns ------- str Th...
(module (function_definition (function_name___load_yml) function_name___load_yml (parameters (identifier_self) identifier_self (identifier_stream) identifier_stream )parameters (block (try_statement (block (return_statement (call (attribute...
Load yml stream into a dict object
(module (function_definition (function_name_get_entry) function_name_get_entry (parameters (identifier_journal_location) identifier_journal_location (identifier_date) identifier_date )parameters (block (if_statement (not_operator (call (identifier_isinst...
args date - date object returns entry text or None if entry doesn't exist
(module (function_definition (function_name__dfs_preorder) function_name__dfs_preorder (parameters (identifier_node) identifier_node (identifier_visited) identifier_visited )parameters (block (if_statement (comparison_operator (identifier_node) identifier_node ...
Iterate through nodes in DFS pre-order.
(module (function_definition (function_name_make_het_matrix) function_name_make_het_matrix (parameters (identifier_fn) identifier_fn )parameters (block (expression_statement (assignment (identifier_vcf_df) identifier_vcf_df (call (identifier_vcf_as_d...
Make boolean matrix of samples by variants. One indicates that the sample is heterozygous for that variant. Parameters: ----------- vcf : str Path to VCF file.
(module (function_definition (function_name__from_dict) function_name__from_dict (parameters (identifier_cls) identifier_cls (identifier__dict) identifier__dict )parameters (block (expression_statement (assignment (identifier_args) identifier_args (diction...
Initialize a QueryResponse object from a json dictionary.
(module (function_definition (function_name_get_revocation_key) function_name_get_revocation_key (parameters (identifier_self) identifier_self (identifier_user) identifier_user )parameters (block (expression_statement (assignment (identifier_value) identifier_value ...
When the value returned by this method changes, this revocates tokens. It always includes the password so that changing the password revokes existing tokens. In addition, for one-time tokens, it also contains the last login datetime so that logging in revokes existing tokens.
(module (function_definition (function_name_split_spec) function_name_split_spec (parameters (identifier_spec) identifier_spec (identifier_sep) identifier_sep )parameters (block (expression_statement (assignment (identifier_parts) identifier_parts (call ...
Split a spec by separator and return stripped start and end parts.
(module (function_definition (function_name_search_last_modified_unique_identities) function_name_search_last_modified_unique_identities (parameters (identifier_db) identifier_db (identifier_after) identifier_after )parameters (block (with_statement (with_clause (wi...
Look for the uuids of unique identities modified on or after a given date. This function returns the uuids of unique identities modified on the given date or after it. The result is a list of uuids unique identities. :param db: database manager :param after: look for identities modified on or ...
(module (function_definition (function_name_setPrivates) function_name_setPrivates (parameters (identifier_self) identifier_self (identifier_fieldDict) identifier_fieldDict )parameters (block (for_statement (identifier_priv) identifier_priv (attribute (ident...
will set self._id, self._rev and self._key field.
(module (function_definition (function_name_set_label) function_name_set_label (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (not_operator (attribute (attribute (identifier_self) ...
Set label markup.
(module (function_definition (function_name_make_mapping) function_name_make_mapping (parameters (identifier_self) identifier_self )parameters (type (None) None )type (block (expression_statement (assignment (identifier_start_mark) identifier_start_mark ...
Replaces the node with a new, empty mapping. Note that this will work on the Node object that is passed to \ a yatiml_savorize() or yatiml_sweeten() function, but not on \ any of its attributes or items. If you need to set an attribute \ to a complex value, build a yaml.Node representin...
(module (function_definition (function_name_add_rule) function_name_add_rule (parameters (identifier_self) identifier_self (identifier_ip_protocol) identifier_ip_protocol (identifier_from_port) identifier_from_port (identifier_to_port) identifier_to_port (identifier_src_group_nam...
Add a rule to the SecurityGroup object. Note that this method only changes the local version of the object. No information is sent to EC2.
(module (function_definition (function_name_filter) function_name_filter (parameters (identifier_self) identifier_self (identifier_chamber) identifier_chamber (default_parameter (identifier_congress) identifier_congress (identifier_CURRENT_CONGRESS) identifier_CURRENT_CONGRES...
Takes a chamber and Congress, OR state and district, returning a list of members
(module (function_definition (function_name_data_received) function_name_data_received (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier...
Used to signal `asyncio.Protocol` of incoming data.
(module (function_definition (function_name_get_processor) function_name_get_processor (parameters (identifier_self) identifier_self (identifier_entity_id) identifier_entity_id (identifier_sp_config) identifier_sp_config )parameters (block (expression_statement (assignm...
Instantiate user-specified processor or default to an all-access base processor. Raises an exception if the configured processor class can not be found or initialized.
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_ix_command) identifier_ix_c...
Write configuration to chassis. Raise StreamWarningsError if configuration warnings found.
(module (function_definition (function_name_permission_to_perm) function_name_permission_to_perm (parameters (identifier_permission) identifier_permission )parameters (block (expression_statement (assignment (identifier_app_label) identifier_app_label (attribute...
Convert a permission instance to a permission-string. Examples -------- >>> permission = Permission.objects.get( ... content_type__app_label='auth', ... codename='add_user', ... ) >>> permission_to_perm(permission) 'auth.add_user'
(module (function_definition (function_name_remove) function_name_remove (parameters (identifier_self) identifier_self (identifier_template) identifier_template )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_...
Remove a template from the tribe. :type template: :class:`eqcorrscan.core.match_filter.Template` :param template: Template to remove from tribe .. rubric:: Example >>> tribe = Tribe(templates=[Template(name='c'), Template(name='b'), ... Template(name='...
(module (function_definition (function_name_items) function_name_items (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (attribute (dictionary_comprehension (pair (attribute ...
Returns dictionary items
(module (function_definition (function_name_connect) function_name_connect (parameters (identifier_self) identifier_self (identifier_socket_or_address) identifier_socket_or_address )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance ...
Connect to server and start serving registered functions. :type socket_or_address: tuple or socket object :arg socket_or_address: A ``(host, port)`` pair to be passed to `socket.create_connection`, or a socket object.
(module (function_definition (function_name_register_agent) function_name_register_agent (parameters (identifier_self) identifier_self (identifier_host) identifier_host (default_parameter (identifier_sweep_id) identifier_sweep_id (None) None )default_parameter (de...
Register a new agent Args: host (str): hostname persistent (bool): long running or oneoff sweep (str): sweep id project_name: (str): model that contains sweep
(module (function_definition (function_name_show_input) function_name_show_input (parameters (identifier_self) identifier_self (identifier_template_helper) identifier_template_helper (identifier_language) identifier_language (identifier_seed) identifier_seed )parameters (block ...
Show BasicCodeProblem and derivatives
(module (function_definition (function_name_with_descriptor) function_name_with_descriptor (parameters (identifier_self) identifier_self (identifier_descriptor) identifier_descriptor )parameters (block (expression_statement (assignment (identifier_res) identifier_re...
Returns any entities with the specified descriptor
(module (function_definition (function_name_read_stream) function_name_read_stream (parameters (identifier_self) identifier_self (typed_parameter (identifier_file) identifier_file (type (identifier_IO) identifier_IO )type )typed_parameter (typed_parame...
Read from the data stream. Args: file: A destination file object or a stream writer. data_stream: The stream of which to read from. Coroutine. Returns: Reply: The final reply.
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_definition) identifier_definition )parameters (block (expression_statement (assignment (subscript ...
Register a definition to the registry. Existing definitions are replaced silently. :param name: The name which can be used as reference in a validation schema. :type name: :class:`str` :param definition: The definition. :type definition: any :term:`mapping`
(module (function_definition (function_name_pw_score_cosine) function_name_pw_score_cosine (parameters (identifier_self) identifier_self (typed_parameter (identifier_s1) identifier_s1 (type (identifier_ClassId) identifier_ClassId )type )typed_parameter ...
Cosine similarity of two subjects Arguments --------- s1 : str class id Return ------ number A number between 0 and 1