sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_parse_get_revoc_reg_def_response) function_name_parse_get_revoc_reg_def_response (parameters (typed_parameter (identifier_get_revoc_ref_def_response) identifier_get_revoc_ref_def_response (type (identifier_str) identifier_str ...
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API. :param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request. :return: Revocation Registry Definition Id and Revocation Registry Definition json. { "id": string - ID...
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_console) identifier_console (attribute (identifier_self) identifie...
Destroy an recreate the container with the new settings
(module (function_definition (function_name_new_method_return) function_name_new_method_return (parameters (identifier_self) identifier_self )parameters (block (expression_statement (string_"creates a new DBUS.MESSAGE_TYPE_METHOD_RETURN that is a reply to this Message.") string_"cr...
creates a new DBUS.MESSAGE_TYPE_METHOD_RETURN that is a reply to this Message.
(module (function_definition (function_name_hull_moving_average) function_name_hull_moving_average (parameters (identifier_data) identifier_data (identifier_period) identifier_period )parameters (block (expression_statement (call (attribute (identifier_c...
Hull Moving Average. Formula: HMA = WMA(2*WMA(n/2) - WMA(n)), sqrt(n)
(module (function_definition (function_name_get_similar_items) function_name_get_similar_items (parameters (identifier_self) identifier_self (default_parameter (identifier_items) identifier_items (None) None )default_parameter (default_parameter (identifier_k) i...
Get the k most similar items for each item in items. Each type of recommender has its own model for the similarity between items. For example, the item_similarity_recommender will return the most similar items according to the user-chosen similarity; the factorization_recommender will r...
(module (function_definition (function_name_create_disk) function_name_create_disk (parameters (identifier_name) identifier_name (identifier_size) identifier_size )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (False) ...
Create a VMM disk with the specified `name` and `size`. size: Size in megabytes, or use a specifier such as M, G, T. CLI Example: .. code-block:: bash salt '*' vmctl.create_disk /path/to/disk.img size=10G
(module (function_definition (function_name__sethex) function_name__sethex (parameters (identifier_self) identifier_self (identifier_hexstring) identifier_hexstring )parameters (block (expression_statement (assignment (identifier_hexstring) identifier_hexstring ...
Reset the bitstring to have the value given in hexstring.
(module (function_definition (function_name_get_encodings) function_name_get_encodings (parameters )parameters (block (expression_statement (assignment (identifier_encodings) identifier_encodings (list (identifier___salt_system_encoding__) identifier___sal...
return a list of string encodings to try
(module (function_definition (function_name_decrement) function_name_decrement (parameters (identifier_name) identifier_name (default_parameter (identifier_tags) identifier_tags (None) None )default_parameter )parameters (block (function_definition (func...
Function decorator for decrementing a statsd stat whenever a function is invoked. >>> from statsdecor.decorators import decrement >>> @decrement('my.metric') >>> def my_func(): >>> pass
(module (function_definition (function_name_get_credit_notes_per_page) function_name_get_credit_notes_per_page (parameters (identifier_self) identifier_self (default_parameter (identifier_per_page) identifier_per_page (integer_1000) integer_1000 )default_parameter (defa...
Get credit notes per page :param per_page: How many objects per page. Default: 1000 :param page: Which page. Default: 1 :param params: Search parameters. Default: {} :return: list
(module (function_definition (function_name_list_team_codes) function_name_list_team_codes (parameters )parameters (block (expression_statement (assignment (identifier_cleanlist) identifier_cleanlist (call (identifier_sorted) identifier_sorted ...
List team names in alphabetical order of team ID, per league.
(module (function_definition (function_name_on_purchase_completed) function_name_on_purchase_completed (parameters (identifier_self) identifier_self (default_parameter (identifier_mapping) identifier_mapping (dictionary (pair (string_'payload') string_'payload...
Decorator routes an Connections.Response to the wrapped function. Request is sent when Alexa completes the purchase flow. See https://developer.amazon.com/docs/in-skill-purchase/add-isps-to-a-skill.html#handle-results The wrapped view function may accept parameters from the Request. ...
(module (function_definition (function_name_related_to) function_name_related_to (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_params) identifier_params (list )list )assignment ...
returns a list of all parameters that are either constrained by or constrain this parameter
(module (function_definition (function_name_has_port_by_ref) function_name_has_port_by_ref (parameters (identifier_self) identifier_self (identifier_port_ref) identifier_port_ref )parameters (block (with_statement (with_clause (with_item (attribute ...
Check if this component has a port by the given reference to a CORBA PortService object.
(module (function_definition (function_name_assure_image) function_name_assure_image (parameters (identifier_fnc) identifier_fnc )parameters (block (decorated_definition (decorator (call (identifier_wraps) identifier_wraps (argument_list ...
Converts a image ID passed as the 'image' parameter to a image object.
(module (function_definition (function_name_is_valid) function_name_is_valid (parameters (identifier_self) identifier_self (default_parameter (identifier_name) identifier_name (None) None )default_parameter (default_parameter (identifier_debug) identifier_debug ...
Check to see if the current xml path is to be processed.
(module (function_definition (function_name_update_status) function_name_update_status (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_task) identifier_task (call (attribute ...
Gets the current status of this task and returns a new task object. :raises TaskRunFailed: fail to update task status
(module (function_definition (function_name_nmb_weights_hidden) function_name_nmb_weights_hidden (parameters (identifier_self) identifier_self )parameters (type (identifier_int) identifier_int )type (block (expression_statement (assignment (identifier_nmb) i...
Number of hidden weights. >>> from hydpy import ANN >>> ann = ANN(None) >>> ann(nmb_inputs=2, nmb_neurons=(4, 3, 2), nmb_outputs=3) >>> ann.nmb_weights_hidden 18
(module (function_definition (function_name_get_sampleS) function_name_get_sampleS (parameters (identifier_self) identifier_self (identifier_res) identifier_res (default_parameter (identifier_DS) identifier_DS (None) None )default_parameter (default_parameter ...
Sample, with resolution res, the surface defined by DS or ind An optionnal offset perpendicular to the surface can be used (offsetIn>0 => inwards) Parameters ---------- res : float / list of 2 floats Desired resolution of the surfacic sample fl...
(module (function_definition (function_name_rolling_window) function_name_rolling_window (parameters (identifier_a) identifier_a (identifier_axis) identifier_axis (identifier_window) identifier_window (identifier_center) identifier_center (identifier_fill_value) identifier_fill_v...
rolling window with padding.
(module (function_definition (function_name_check_dimensions) function_name_check_dimensions (parameters (identifier_self) identifier_self (identifier_dataset) identifier_dataset )parameters (block (expression_statement (assignment (identifier_results) identifier_re...
Checks that the feature types of this dataset are consistent with a timeseries-profile-orthogonal dataset. :param netCDF4.Dataset dataset: An open netCDF dataset
(module (function_definition (function_name_tabLayout) function_name_tabLayout (parameters (identifier_self) identifier_self )parameters (block (expression_statement (augmented_assignment (attribute (attribute (identifier_self) identifier_self ...
For all tabs, specify the number of buttons in a row
(module (function_definition (function_name_add_mongo_config_simple) function_name_add_mongo_config_simple (parameters (identifier_app) identifier_app (identifier_connection_string) identifier_connection_string (identifier_collection_name) identifier_collection_name )parameters (bloc...
Configure the app to use MongoDB. :param app: Flask Application :type app: Flask :param connection_string: in format host:port:database or database (default: sacred) :type connection_string: str :param collection_name: Name of the collection :type collection_name: str
(module (function_definition (function_name_draw) function_name_draw (parameters (identifier_self) identifier_self )parameters (block (import_from_statement (dotted_name (identifier_calysto) identifier_calysto (identifier_display) identifier_display )dot...
Render and draw the world and robots.
(module (function_definition (function_name_unnest_collection) function_name_unnest_collection (parameters (identifier_collection) identifier_collection (identifier_df_list) identifier_df_list )parameters (block (for_statement (identifier_item) identifier_item (subscr...
Unnest collection structure extracting all its datasets and converting \ them to Pandas Dataframes. Args: collection (OrderedDict): data in JSON-stat format, previously \ deserialized to a python object by \ json.l...
(module (function_definition (function_name_handle_existing_user) function_name_handle_existing_user (parameters (identifier_self) identifier_self (identifier_provider) identifier_provider (identifier_user) identifier_user (identifier_access) identifier_access (identifier_info) i...
Login user and redirect.
(module (function_definition (function_name_calcChebyshev) function_name_calcChebyshev (parameters (identifier_coeffs) identifier_coeffs (identifier_validDomain) identifier_validDomain (identifier_freqs) identifier_freqs )parameters (block (expression_statement (assignm...
Given a set of coefficients, this method evaluates a Chebyshev approximation. Used for CASA bandpass reading. input coeffs and freqs are numpy arrays
(module (function_definition (function_name_install) function_name_install (parameters (list_splat_pattern (identifier_pkgs) identifier_pkgs )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters ...
Installs a single or multiple packages via nix :type pkgs: list(str) :param pkgs: packages to update :param bool attributes: Pass the list of packages or single package as attribues, not package names. default: False :return: Installed packages. Example element: ``gcc-3.3.2`` ...
(module (function_definition (function_name_toFilename) function_name_toFilename (parameters (identifier_url) identifier_url )parameters (block (expression_statement (assignment (identifier_urlp) identifier_urlp (call (identifier_urlparse) identifier...
gets url and returns filename
(module (function_definition (function_name_compute_positive_association) function_name_compute_positive_association (parameters (identifier_self) identifier_self (identifier_visible) identifier_visible (identifier_hidden_probs) identifier_hidden_probs (identifier_hidden_states) identi...
Compute positive associations between visible and hidden units. :param visible: visible units :param hidden_probs: hidden units probabilities :param hidden_states: hidden units states :return: positive association = dot(visible.T, hidden)
(module (function_definition (function_name_FromArchive) function_name_FromArchive (parameters (identifier_cls) identifier_cls (identifier_path) identifier_path (identifier_actions_dict) identifier_actions_dict (identifier_resources_dict) identifier_resources_dict (default_parame...
Create a RecipeObject from a .ship archive. This archive should have been generated from a previous call to iotile-ship -a <path to yaml file> or via iotile-build using autobuild_shiparchive(). Args: path (str): The path to the recipe file that we wish to load ...
(module (function_definition (function_name_absent) function_name_absent (parameters (identifier_name) identifier_name (default_parameter (identifier_driver) identifier_driver (None) None )default_parameter )parameters (block (expression_statement (assig...
Ensure that a volume is absent. .. versionadded:: 2015.8.4 .. versionchanged:: 2017.7.0 This state was renamed from **docker.volume_absent** to **docker_volume.absent** name Name of the volume Usage Examples: .. code-block:: yaml volume_foo: docker_volume.absen...
(module (function_definition (function_name_hl_canvas2table_box) function_name_hl_canvas2table_box (parameters (identifier_self) identifier_self (identifier_canvas) identifier_canvas (identifier_tag) identifier_tag )parameters (block (expression_statement (call ...
Highlight all masks inside user drawn box on table.
(module (function_definition (function_name_get_keyword_query) function_name_get_keyword_query (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kw) identifier_kw )dictionary_splat_pattern )parameters (block (expression_statement ...
Generates a query from the given keywords. Only known indexes make it into the generated query. :returns: Catalog query :rtype: dict
(module (function_definition (function_name_copy_data_ext) function_name_copy_data_ext (parameters (identifier_self) identifier_self (identifier_model) identifier_model (identifier_field) identifier_field (default_parameter (identifier_dest) identifier_dest (None) None ...
Retrieve the field of another model and store it as a field. :param model: name of the source model being a model name or a group name :param field: name of the field to retrieve :param dest: name of the destination field in ``self`` :param idx: idx of elements to access :param ...
(module (function_definition (function_name_to_bed) function_name_to_bed (parameters (identifier_call) identifier_call (identifier_sample) identifier_sample (identifier_work_dir) identifier_work_dir (identifier_calls) identifier_calls (identifier_data) identifier_data )parame...
Create a simplified BED file from caller specific input.
(module (function_definition (function_name_vlog) function_name_vlog (parameters (identifier_self) identifier_self (identifier_msg) identifier_msg (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (if_statement (a...
Logs a message to stderr only if verbose is enabled.
(module (function_definition (function_name_calc_sasa) function_name_calc_sasa (parameters (identifier_dssp_df) identifier_dssp_df )parameters (block (expression_statement (assignment (identifier_infodict) identifier_infodict (dictionary (pair ...
Calculation of SASA utilizing the DSSP program. DSSP must be installed for biopython to properly call it. Install using apt-get on Ubuntu or from: http://swift.cmbi.ru.nl/gv/dssp/ Input: PDB or CIF structure file Output: SASA (integer) of structure
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (identifier_sensor) identifier_sensor (identifier_reading) identifier_reading )parameters (block (expression_statement (assignment (identifie...
Update callback used by sensors to notify obervers of changes. Parameters ---------- sensor : :class:`katcp.Sensor` object The sensor whose value has changed. reading : (timestamp, status, value) tuple Sensor reading as would be returned by sensor.read()
(module (function_definition (function_name_random_id) function_name_random_id (parameters (identifier_length) identifier_length )parameters (block (function_definition (function_name_char) function_name_char (parameters )parameters (block (return_...
Generates a random ID of given length
(module (function_definition (function_name_free_cache) function_name_free_cache (parameters (identifier_ctx) identifier_ctx (list_splat_pattern (identifier_elts) identifier_elts )list_splat_pattern )parameters (block (for_statement (identifier_elt) identifier_e...
Free properties bound to input cached elts. If empty, free the whole cache.
(module (function_definition (function_name_maybe_inspect_zip) function_name_maybe_inspect_zip (parameters (identifier_models) identifier_models )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (if_statement (not_operato...
r''' Detect if models is a list of protocolbuffer files or a ZIP file. If the latter, then unzip it and return the list of protocolbuffer files that were inside.
(module (function_definition (function_name_after_model_change) function_name_after_model_change (parameters (identifier_self) identifier_self (identifier_form) identifier_form (identifier_User) identifier_User (identifier_is_created) identifier_is_created )parameters (block ...
Send password instructions if desired.
(module (function_definition (function_name_create_relationship) function_name_create_relationship (parameters (identifier_manager) identifier_manager (identifier_handle_id) identifier_handle_id (identifier_other_handle_id) identifier_other_handle_id (identifier_rel_type) identifier_re...
Makes a relationship from node to other_node depending on which meta_type the nodes are. Returns the relationship or raises NoRelationshipPossible exception.
(module (function_definition (function_name_highlightBlock) function_name_highlightBlock (parameters (identifier_self) identifier_self (identifier_string) identifier_string )parameters (block (expression_statement (assignment (identifier_prev_data) identifier_prev_d...
Highlight a block of text.
(module (function_definition (function_name_get_alt_lengths) function_name_get_alt_lengths (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_out) identifier_out (list )list )assignmen...
Returns the longest length of the variant. For deletions, return is negative, SNPs return 0, and insertions are +. None return corresponds to no variant in interval for specified individual
(module (function_definition (function_name_beautify_file) function_name_beautify_file (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_error) identifier_error ...
Beautify bash script file.
(module (function_definition (function_name___cloudflare_list_zones) function_name___cloudflare_list_zones (parameters (identifier_self) identifier_self (keyword_separator )keyword_separator (identifier_account) identifier_account (dictionary_splat_pattern (identifier_kwa...
Helper function to list all zones registered in the CloudFlare system. Returns a `list` of the zones Args: account (:obj:`CloudFlareAccount`): A CloudFlare Account object **kwargs (`dict`): Extra arguments to pass to the API endpoint Returns: `list` of `dict`
(module (function_definition (function_name__get_vm_by_name) function_name__get_vm_by_name (parameters (identifier_name) identifier_name (default_parameter (identifier_allDetails) identifier_allDetails (False) False )default_parameter )parameters (block (express...
Since Proxmox works based op id's rather than names as identifiers this requires some filtering to retrieve the required information.
(module (function_definition (function_name_network_lopf) function_name_network_lopf (parameters (identifier_network) identifier_network (default_parameter (identifier_snapshots) identifier_snapshots (None) None )default_parameter (default_parameter (identifier_...
Linear optimal power flow for a group of snapshots. Parameters ---------- snapshots : list or index slice A list of snapshots to optimise, must be a subset of network.snapshots, defaults to network.snapshots solver_name : string Must be a solver name that pyomo recognises and th...
(module (function_definition (function_name_get_fitness) function_name_get_fitness (parameters (identifier_self) identifier_self (identifier_chromosome) identifier_chromosome )parameters (block (expression_statement (assignment (identifier_fitness) identifier_fitnes...
Get the fitness score for a chromosome, using the cached value if available.
(module (function_definition (function_name_run_shell) function_name_run_shell (parameters (typed_parameter (identifier_args) identifier_args (type (identifier_dict) identifier_dict )type )typed_parameter )parameters (type (identifier_int) identifier...
Run the shell sub command
(module (function_definition (function_name_timeout) function_name_timeout (parameters (identifier_limit) identifier_limit (identifier_handler) identifier_handler )parameters (block (function_definition (function_name_wrapper) function_name_wrapper (parameters ...
A decorator ensuring that the decorated function tun time does not exceeds the argument limit. :args limit: the time limit :type limit: int :args handler: the handler function called when the decorated function times out. :type handler: callable Example: >>>def timeout_handler(limit, ...
(module (function_definition (function_name_find_parent_id_for_component) function_name_find_parent_id_for_component (parameters (identifier_self) identifier_self (identifier_component_id) identifier_component_id )parameters (block (expression_statement (assignment ...
Given the ID of a component, returns the parent component's ID. :param string component_id: The ID of the component. :return: A tuple containing: * The type of the parent record; valid values are ArchivesSpaceClient.RESOURCE and ArchivesSpaceClient.RESOURCE_COMPONENT. * The ID o...
(module (function_definition (function_name_unify_mp) function_name_unify_mp (parameters (identifier_b) identifier_b (identifier_partition_name) identifier_partition_name )parameters (block (with_statement (with_clause (with_item (as_pattern ...
Unify all of the segment partitions for a parent partition, then run stats on the MPR file
(module (function_definition (function_name_combine_ctrlpts_weights) function_name_combine_ctrlpts_weights (parameters (identifier_ctrlpts) identifier_ctrlpts (default_parameter (identifier_weights) identifier_weights (None) None )default_parameter )parameters (block ...
Multiplies control points by the weights to generate weighted control points. This function is dimension agnostic, i.e. control points can be in any dimension but weights should be 1D. The ``weights`` function parameter can be set to None to let the function generate a weights vector composed of 1.0 value...
(module (function_definition (function_name_dump_stats) function_name_dump_stats (parameters (identifier_self) identifier_self (identifier_pattern) identifier_pattern )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier...
Dumps VM statistics. in pattern of type str The selection pattern. A bit similar to filename globbing.
(module (function_definition (function_name_up_alpha_beta) function_name_up_alpha_beta (parameters (identifier_returns) identifier_returns (identifier_factor_returns) identifier_factor_returns (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pat...
Computes alpha and beta for periods when the benchmark return is positive. Parameters ---------- see documentation for `alpha_beta`. Returns ------- float Alpha. float Beta.
(module (function_definition (function_name_put) function_name_put (parameters (identifier_self) identifier_self (identifier_item) identifier_item (default_parameter (identifier_block) identifier_block (True) True )default_parameter (default_parameter (ide...
put an item into the queue .. note:: if the queue was created with a `maxsize` and it is currently :meth:`full`, this method will block the calling coroutine until another coroutine :meth:`get`\ s an item. :param item: the object to put into the queue, can be any t...
(module (function_definition (function_name__execfile) function_name__execfile (parameters (identifier_filename) identifier_filename (identifier_globals) identifier_globals (default_parameter (identifier_locals) identifier_locals (None) None )default_parameter )para...
Python 3 implementation of execfile.
(module (function_definition (function_name_get_ip_reports) function_name_get_ip_reports (parameters (identifier_self) identifier_self (identifier_ips) identifier_ips )parameters (block (expression_statement (assignment (identifier_api_name) identifier_api_name ...
Retrieves the most recent VT info for a set of ips. Args: ips: list of IPs. Returns: A dict with the IP as key and the VT report as value.
(module (function_definition (function_name_parse_mtl) function_name_parse_mtl (parameters (identifier_mtl) identifier_mtl )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_mtl) identifier_mtl ...
Parse a loaded MTL file. Parameters ------------- mtl : str or bytes Data from an MTL file Returns ------------ mtllibs : list of dict Each dict has keys: newmtl, map_Kd, Kd
(module (function_definition (function_name_spam) function_name_spam (parameters (identifier_self) identifier_self (default_parameter (identifier_tag) identifier_tag (None) None )default_parameter (default_parameter (identifier_fromdate) identifier_fromdate ...
Gets a total count of recipients who have marked your email as spam.
(module (function_definition (function_name_in_download_archive) function_name_in_download_archive (parameters (identifier_track) identifier_track )parameters (block (global_statement (identifier_arguments) identifier_arguments )global_statement (if_statement (n...
Returns True if a track_id exists in the download archive
(module (function_definition (function_name_select_time) function_name_select_time (parameters (identifier_da) identifier_da (dictionary_splat_pattern (identifier_indexer) identifier_indexer )dictionary_splat_pattern )parameters (block (if_statement (not_operato...
Select entries according to a time period. Parameters ---------- da : xarray.DataArray Input data. **indexer : {dim: indexer, }, optional Time attribute and values over which to subset the array. For example, use season='DJF' to select winter values, month=1 to select January, or mont...
(module (function_definition (function_name_get_image_code) function_name_get_image_code (parameters (identifier_self) identifier_self (identifier_id_code) identifier_id_code (default_parameter (identifier_access_token) identifier_access_token (None) None )default_param...
Get the image of a code, by its id
(module (function_definition (function_name_data_url) function_name_data_url (parameters (identifier_content) identifier_content (default_parameter (identifier_mimetype) identifier_mimetype (None) None )default_parameter )parameters (block (if_statement ...
Returns content encoded as base64 Data URI. :param content: bytes or str or Path :param mimetype: mimetype for :return: str object (consisting only of ASCII, though) .. seealso:: https://en.wikipedia.org/wiki/Data_URI_scheme
(module (function_definition (function_name_get_composition_mdata) function_name_get_composition_mdata (parameters )parameters (block (return_statement (dictionary (pair (string_'children') string_'children' (dictionary (pair ...
Return default mdata map for Composition
(module (function_definition (function_name_run) function_name_run (parameters (identifier_plugin_name) identifier_plugin_name (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs ...
Run a specific plugin
(module (function_definition (function_name_stop) function_name_stop (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__running) identifier__r...
Stop listening.
(module (function_definition (function_name_GameTypeEnum) function_name_GameTypeEnum (parameters (identifier_ctx) identifier_ctx )parameters (block (return_statement (call (identifier_Enum) identifier_Enum (argument_list (identifier_ctx) identifier_c...
Game Type Enumeration.
(module (function_definition (function_name_align) function_name_align (parameters (identifier_self) identifier_self (identifier_inputwords) identifier_inputwords (identifier_outputwords) identifier_outputwords )parameters (block (expression_statement (assignment ...
For each inputword, provides the index of the outputword
(module (function_definition (function_name_inception_v3_parameters) function_name_inception_v3_parameters (parameters (default_parameter (identifier_weight_decay) identifier_weight_decay (float_0.00004) float_0.00004 )default_parameter (default_parameter (identifier_...
Yields the scope with the default parameters for inception_v3. Args: weight_decay: the weight decay for weights variables. stddev: standard deviation of the truncated guassian weight distribution. batch_norm_decay: decay for the moving average of batch_norm momentums. batch_norm_epsilon: small float ...
(module (function_definition (function_name_get_registered) function_name_get_registered (parameters (default_parameter (identifier_option_hooks) identifier_option_hooks (None) None )default_parameter (default_parameter (identifier_event_hooks) identifier_event_hooks ...
Returns a generator of registered plugins matching filters. `option_hooks` Boolean to include or exclude plugins using option hooks. `event_hooks` Boolean to include or exclude task event plugins. `command_hooks` Boolean to include or exclude command plugins....
(module (function_definition (function_name_shortDescription) function_name_shortDescription (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_cd) identifier_cd (call (identifier_getattr) i...
Overrides property from Event base class.
(module (function_definition (function_name_handler_for) function_name_handler_for (parameters (identifier_obj) identifier_obj )parameters (block (for_statement (identifier_handler_type) identifier_handler_type (identifier_handlers) identifier_handlers (block ...
return the handler for the object type
(module (function_definition (function_name_discard) function_name_discard (parameters (identifier_self) identifier_self (identifier_element) identifier_element )parameters (block (try_statement (block (expression_statement (assignment (ide...
Remove element from the RangeSet if it is a member. If the element is not a member, do nothing.
(module (function_definition (function_name_is_russian) function_name_is_russian (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_russian_chars) identifier_russian_chars (integer_0) integer_0 ...
Checks if file path is russian :return: True iff document has a russian name
(module (function_definition (function_name_sync_db) function_name_sync_db (parameters )parameters (block (with_statement (with_clause (with_item (call (identifier_cd) identifier_cd (argument_list (call (...
Runs the django syncdb command
(module (function_definition (function_name__set_repo_option) function_name__set_repo_option (parameters (identifier_repo) identifier_repo (identifier_option) identifier_option )parameters (block (if_statement (not_operator (identifier_option) identifier_option ...
Set the option to repo
(module (function_definition (function_name_verify_axis_labels) function_name_verify_axis_labels (parameters (identifier_self) identifier_self (identifier_expected) identifier_expected (identifier_actual) identifier_actual (identifier_source_name) identifier_source_name )parameters...
Verify that axis labels for a given source are as expected. Parameters ---------- expected : tuple A tuple of strings representing the expected axis labels. actual : tuple or None A tuple of strings representing the actual axis labels, or `None` if th...
(module (function_definition (function_name__handle_iorder) function_name__handle_iorder (parameters (identifier_self) identifier_self (identifier_state) identifier_state )parameters (block (if_statement (subscript (attribute (identifier_self) identifier...
Take a state and apply the iorder system
(module (function_definition (function_name_get_statements_noprior) function_name_get_statements_noprior (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_stmt_lists) identifier_stmt_lists (list_compre...
Return a list of all non-prior Statements in a single list. Returns ------- stmts : list[indra.statements.Statement] A list of all the INDRA Statements in the model (excluding the prior).
(module (function_definition (function_name_create_fw_db) function_name_create_fw_db (parameters (identifier_self) identifier_self (identifier_fw_id) identifier_fw_id (identifier_fw_name) identifier_fw_name (identifier_tenant_id) identifier_tenant_id )parameters (block (e...
Create FW dict.
(module (function_definition (function_name_build_dictionary) function_name_build_dictionary (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_d) identifier_d (dictionary )dictionary ...
Return a dictionary of characterIds to their defining tags.
(module (function_definition (function_name_virtualchain_set_opfields) function_name_virtualchain_set_opfields (parameters (identifier_op) identifier_op (dictionary_splat_pattern (identifier_fields) identifier_fields )dictionary_splat_pattern )parameters (block (for_sta...
Pass along virtualchain-reserved fields to a virtualchain operation. This layer of indirection is meant to help with future compatibility, so virtualchain implementations do not try to set operation fields directly.
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_entity) identifier_entity )parameters (block (expression_statement (assignment (identifier_do_append) identifier_do_append (call ...
Adds the given entity to this cache. :param entity: Entity to add. :type entity: Object implementing :class:`everest.interfaces.IEntity`. :raises ValueError: If the ID of the entity to add is ``None`` (unless the `allow_none_id` constructor argument was set).
(module (function_definition (function_name_access_token) function_name_access_token (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_access_token) identifier_access_token (call (identifie...
Create an OAuth access token for an authorized client. Defaults to /access_token. Invoked by client applications.
(module (function_definition (function_name__extract_centerdistance) function_name__extract_centerdistance (parameters (identifier_image) identifier_image (default_parameter (identifier_mask) identifier_mask (call (identifier_slice) identifier_slice (argument_li...
Internal, single-image version of `centerdistance`.
(module (function_definition (function_name_reconfigure_log_level) function_name_reconfigure_log_level (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_Global) identifier_Global (identifier_LOGGER) identifier_...
Returns a new standard logger instance
(module (function_definition (function_name_getParameter) function_name_getParameter (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (return_statement (call (identifier_lock_and_call) identifier_lock_and_call ...
Get the parameter with the corresponding name. Args: name: Name of the parameter to be found. Raises: TypeError: if the specified parameter does not exist.
(module (function_definition (function_name_mtr_tr_dense) function_name_mtr_tr_dense (parameters (identifier_sz) identifier_sz )parameters (block (expression_statement (assignment (identifier_n) identifier_n (binary_operator (integer_2) integer_2 ...
Series of machine translation models. All models are trained on sequences of 256 tokens. You can use the dataset translate_enfr_wmt32k_packed. 154000 steps = 3 epochs. Args: sz: an integer Returns: a hparams
(module (function_definition (function_name_get_conversations) function_name_get_conversations (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_cs) identifier_cs (subscript (attribute ...
Returns list of Conversation objects
(module (function_definition (function_name_add_url_rule) function_name_add_url_rule (parameters (identifier_self) identifier_self (identifier_host) identifier_host (identifier_rule_string) identifier_rule_string (identifier_endpoint) identifier_endpoint (dictionary_splat_pattern...
Add a url rule to the app instance. The url rule is the same with Flask apps and other Werkzeug apps. :param host: the matched hostname. e.g. "www.python.org" :param rule_string: the matched path pattern. e.g. "/news/<int:id>" :param endpoint: the endpoint name as a dispatching key suc...
(module (function_definition (function_name_fit) function_name_fit (parameters (identifier_self) identifier_self (identifier_X) identifier_X (default_parameter (identifier_y) identifier_y (None) None )default_parameter (dictionary_splat_pattern (identifier...
Fits the PCA transformer, transforms the data in X, then draws the decomposition in either 2D or 3D space as a scatter plot. Parameters ---------- X : ndarray or DataFrame of shape n x m A matrix of n instances with m features. y : ndarray or Series of length n ...
(module (function_definition (function_name_make_fitness) function_name_make_fitness (parameters (identifier_function) identifier_function (identifier_greater_is_better) identifier_greater_is_better )parameters (block (if_statement (not_operator (call (i...
Make a fitness measure, a metric scoring the quality of a program's fit. This factory function creates a fitness measure object which measures the quality of a program's fit and thus its likelihood to undergo genetic operations into the next generation. The resulting object is able to be called with Nu...
(module (function_definition (function_name_eval) function_name_eval (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_magic) identifier_magic )attribute (block...
Returns a filename to be used for script output.
(module (function_definition (function_name__receive) function_name__receive (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_preamble) identifier_preamble (call (attribute (...
Read and build SBP message.
(module (function_definition (function_name_list_nodes) function_name_list_nodes (parameters )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (dictionary )dictionary )assignment )expression_statement (e...
Return a list of registered VMs CLI Example: .. code-block:: bash salt '*' vboxmanage.list_nodes
(module (function_definition (function_name_connect_to_endpoints) function_name_connect_to_endpoints (parameters (identifier_self) identifier_self (typed_parameter (list_splat_pattern (identifier_endpoints) identifier_endpoints )list_splat_pattern (type ...
Connect to the given endpoints and await until all connections are established.