sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_handle_status) function_name_handle_status (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_status) identifier_status (call (attribute ...
Handle status from device
(module (function_definition (function_name_absorption_coefficient) function_name_absorption_coefficient (parameters (identifier_dielectric) identifier_dielectric )parameters (block (expression_statement (assignment (identifier_energies_in_eV) identifier_energies_in_eV ...
Calculate the optical absorption coefficient from an input set of pymatgen vasprun dielectric constant data. Args: dielectric (list): A list containing the dielectric response function in the pymatgen vasprun format. | element 0: list of energies ...
(module (function_definition (function_name_menu) function_name_menu (parameters (identifier_self) identifier_self (identifier_prompt) identifier_prompt (identifier_choices) identifier_choices )parameters (block (expression_statement (assignment (identifier_me...
Presents a selection menu and returns the user's choice. Args: prompt (str): Text to ask the user what to select. choices (Sequence[str]): Values for the user to select from. Returns: The value selected by the user, or ``None``. Todo: Nice oppor...
(module (function_definition (function_name_format_call) function_name_format_call (parameters (identifier_self) identifier_self (identifier_api_version) identifier_api_version (identifier_api_call) identifier_api_call )parameters (block (expression_statement (assignmen...
Return properly formatted QualysGuard API call according to api_version etiquette.
(module (function_definition (function_name_cache_security_group_exists) function_name_cache_security_group_exists (parameters (identifier_name) identifier_name (default_parameter (identifier_region) identifier_region (None) None )default_parameter (default_parameter ...
Check to see if an ElastiCache security group exists. Example: .. code-block:: bash salt myminion boto3_elasticache.cache_security_group_exists mysecuritygroup
(module (function_definition (function_name_set_stepdown_window) function_name_set_stepdown_window (parameters (identifier_self) identifier_self (identifier_start) identifier_start (identifier_end) identifier_end (default_parameter (identifier_enabled) identifier_enabled ...
Set the stepdown window for this instance. Date times are assumed to be UTC, so use UTC date times. :param datetime.datetime start: The datetime which the stepdown window is to open. :param datetime.datetime end: The datetime which the stepdown window is to close. :param bool enabled: ...
(module (function_definition (function_name_can_proceed) function_name_can_proceed (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_now) identifier_now (call (attribute (attr...
Checks whether app can proceed :return: True iff app is not locked and times since last update < app update interval
(module (function_definition (function_name_nb_per_chunk) function_name_nb_per_chunk (parameters (identifier_item_size) identifier_item_size (identifier_item_dim) identifier_item_dim (identifier_chunk_size) identifier_chunk_size )parameters (block (expression_statement ...
Return the number of items that can be stored in one chunk. :param int item_size: Size of an item's scalar componant in Bytes (e.g. for np.float64 this is 8) :param int item_dim: Items dimension (length of the second axis) :param float chunk_size: The size of a chunk given in MBytes.
(module (function_definition (function_name_get_mapping) function_name_get_mapping (parameters (identifier_self) identifier_self (identifier_index) identifier_index (default_parameter (identifier_doc_type) identifier_doc_type (None) None )default_parameter )paramete...
Get mapping for index. :param index: index name
(module (function_definition (function_name_session_end_pb) function_name_session_end_pb (parameters (identifier_status) identifier_status (default_parameter (identifier_end_time_secs) identifier_end_time_secs (None) None )default_parameter )parameters (block (i...
Constructs a SessionEndInfo protobuffer. Creates a summary that contains status information for a completed training session. Should be exported after the training session is completed. One such summary per training session should be created. Each should have a different run. Args: status: A tensorboard...
(module (function_definition (function_name__mesh_to_material) function_name__mesh_to_material (parameters (identifier_mesh) identifier_mesh (default_parameter (identifier_metallic) identifier_metallic (float_0.0) float_0.0 )default_parameter (default_parameter ...
Create a simple GLTF material for a mesh using the most commonly occurring color in that mesh. Parameters ------------ mesh: trimesh.Trimesh Mesh to create a material from Returns ------------ material: dict In GLTF material format
(module (function_definition (function_name_CheckInputArgs) function_name_CheckInputArgs (parameters (list_splat_pattern (identifier_interfaces) identifier_interfaces )list_splat_pattern )parameters (block (expression_statement (assignment (identifier_l) ide...
Must provide at least one interface, the last one may be repeated.
(module (function_definition (function_name_daily) function_name_daily (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__daily) identifier__...
Access the daily :returns: twilio.rest.api.v2010.account.usage.record.daily.DailyList :rtype: twilio.rest.api.v2010.account.usage.record.daily.DailyList
(module (function_definition (function_name_get_data_with_timestamps) function_name_get_data_with_timestamps (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_result) identifier_result (list ...
Returns the data points with timestamps. Returns: A list of tuples in the format of (timestamp, data)
(module (function_definition (function_name_validate_data_columns) function_name_validate_data_columns (parameters (identifier_self) identifier_self (identifier_data_columns) identifier_data_columns (identifier_min_itemsize) identifier_min_itemsize )parameters (block (if_statem...
take the input data_columns and min_itemize and create a data columns spec
(module (function_definition (function_name_get_channel_property) function_name_get_channel_property (parameters (identifier_self) identifier_self (identifier_channel_id) identifier_channel_id (identifier_property_name) identifier_property_name )parameters (block (if_statement ...
This function returns the data stored under the property name from the given channel. Parameters ---------- channel_id: int The channel id for which the property will be returned property_name: str A property stored by the RecordingExtractor (location, et...
(module (function_definition (function_name_x_y_by_col_lbl) function_name_x_y_by_col_lbl (parameters (identifier_df) identifier_df (identifier_y_col_lbl) identifier_y_col_lbl )parameters (block (expression_statement (assignment (identifier_x_cols) identifier_x_cols ...
Returns an X dataframe and a y series by the given column name. Parameters ---------- df : pandas.DataFrame The dataframe to split. y_col_lbl : object The label of the y column. Returns ------- X, y : pandas.DataFrame, pandas.Series A dataframe made up of all column...
(module (function_definition (function_name_remove_unsafe_chars) function_name_remove_unsafe_chars (parameters (identifier_text) identifier_text )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (iden...
Remove unsafe unicode characters from a piece of text.
(module (function_definition (function_name_vi_score) function_name_vi_score (parameters (identifier_self) identifier_self (identifier_x) identifier_x (identifier_index) identifier_index )parameters (block (if_statement (comparison_operator (identifier_index) ...
Wrapper function for selecting appropriate score Parameters ---------- x : float A random variable index : int 0 or 1 depending on which latent variable Returns ---------- The gradient of the scale latent variable at x
(module (function_definition (function_name_merge) function_name_merge (parameters (identifier_self) identifier_self (identifier_other) identifier_other )parameters (block (if_statement (not_operator (call (identifier_getattr) identifier_getattr ...
Merge another translation into this catalog.
(module (function_definition (function_name_add_weight) function_name_add_weight (parameters (identifier_cls) identifier_cls )parameters (block (decorated_definition (decorator (call (attribute (identifier_functools) identifier_functools ...
Decorator for Layers, overriding add_weight for trainable initializers.
(module (function_definition (function_name_allowed_entries) function_name_allowed_entries (parameters (identifier_self) identifier_self (identifier_capability) identifier_capability )parameters (block (expression_statement (assignment (identifier_index) identifier_...
Return list of allowed entries for given capability document. Includes handling of capability = *index where the only acceptable entries are *.
(module (function_definition (function_name_lex) function_name_lex (parameters (identifier_args) identifier_args )parameters (block (if_statement (boolean_operator (comparison_operator (call (identifier_len) identifier_len (argument...
Lex input and return a list of actions to perform.
(module (function_definition (function_name__download) function_name__download (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_min_x) identifier_min_x (identifier_max_x) i...
download ERA5 data for GSSHA domain
(module (function_definition (function_name__save_vocab_file) function_name__save_vocab_file (parameters (identifier_vocab_file) identifier_vocab_file (identifier_subtoken_list) identifier_subtoken_list )parameters (block (with_statement (with_clause (with_item ...
Save subtokens to file.
(module (function_definition (function_name__is_env_per_bucket) function_name__is_env_per_bucket (parameters )parameters (block (expression_statement (assignment (identifier_buckets) identifier_buckets (call (identifier__get_buckets) identifier__get_bucket...
Return the configuration mode, either buckets per environment or a list of buckets that have environment dirs in their root
(module (function_definition (function_name_read_csv_from_file) function_name_read_csv_from_file (parameters (identifier_filename) identifier_filename )parameters (block (expression_statement (call (attribute (identifier_logger_csvs) identifier_logger_csvs ...
Opens the target CSV file and creates a dictionary with one list for each CSV column. :param str filename: :return list of lists: column values
(module (function_definition (function_name_get_api_service) function_name_get_api_service (parameters (identifier_self) identifier_self (default_parameter (identifier_name) identifier_name (None) None )default_parameter )parameters (block (try_statement ...
Returns the specific service config definition
(module (function_definition (function_name_list_services) function_name_list_services (parameters (identifier_self) identifier_self (default_parameter (identifier_limit) identifier_limit (None) None )default_parameter (default_parameter (identifier_marker) iden...
List CDN services.
(module (function_definition (function_name__update_dict) function_name__update_dict (parameters (identifier_self) identifier_self (identifier_to_dict) identifier_to_dict (identifier_from_dict) identifier_from_dict )parameters (block (for_statement (pattern_list ...
Recursively merges the fields for two dictionaries. Args: to_dict (dict): The dictionary onto which the merge is executed. from_dict (dict): The dictionary merged into to_dict
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (parenthesized_expression (comparison_operator (attribute (identif...
Get the wrapped object.
(module (function_definition (function_name_get_processor_name) function_name_get_processor_name (parameters )parameters (block (if_statement (comparison_operator (call (attribute (identifier_platform) identifier_platform (identifier_syst...
Returns the processor name in the system
(module (function_definition (function_name_responses_callback) function_name_responses_callback (parameters (identifier_request) identifier_request )parameters (block (expression_statement (assignment (identifier_method) identifier_method (attribute ...
Responses Request Handler. Converts a call intercepted by Responses to the Stack-In-A-Box infrastructure :param request: request object :returns: tuple - (int, dict, string) containing: int - the HTTP response status code dict - the headers for the HTTP res...
(module (function_definition (function_name__prepare_colors) function_name__prepare_colors (parameters (identifier_color) identifier_color (identifier_values) identifier_values (identifier_limits_c) identifier_limits_c (identifier_colormap) identifier_colormap (identifier_alpha) ...
Return colors for all the channels based on various inputs. Parameters ---------- color : tuple 3-, 4-element tuple, representing RGB and alpha, between 0 and 1 values : ndarray array with values for each channel limits_c : tuple of 2 floats, optional min and max values to n...
(module (function_definition (function_name_validate_value) function_name_validate_value (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (identifier_value) identifier_value ...
Validate provided record is a part of the appropriate target app for the field
(module (function_definition (function_name_wheelEvent) function_name_wheelEvent (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (expression_statement (assignment (identifier_initial_state) identifier_initial_stat...
Emits the mouse_wheel_activated signal. :param event: QMouseEvent
(module (function_definition (function_name_generate) function_name_generate (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_header) identifier_header (call (attribute (stri...
Generate a list of strings representing the table in RST format.
(module (function_definition (function_name_transaction_error_code) function_name_transaction_error_code (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_error) identifier_error (call (att...
The machine-readable error code for a transaction error.
(module (function_definition (function_name_image_get) function_name_image_get (parameters (default_parameter (identifier_auth) identifier_auth (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_patte...
Get a single image CLI Example: .. code-block:: bash salt '*' glanceng.image_get name=image1 salt '*' glanceng.image_get name=0e4febc2a5ab4f2c8f374b054162506d
(module (function_definition (function_name_installedUniqueRequirements) function_name_installedUniqueRequirements (parameters (identifier_self) identifier_self (identifier_target) identifier_target )parameters (block (expression_statement (assignment (identifier_my...
Return an iterable of things installed on the target that this item requires and are not required by anything else.
(module (function_definition (function_name_next_chunks) function_name_next_chunks (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (attribute (identifier_self) identifier_self ...
Gets a new chunk from all played sound and mix them together.
(module (function_definition (function_name_try_enqueue) function_name_try_enqueue (parameters (identifier_conn) identifier_conn (identifier_queue_name) identifier_queue_name (identifier_msg) identifier_msg )parameters (block (expression_statement (call (attri...
Try to enqueue a message. If it succeeds, return the message ID. :param conn: SQS API connection :type conn: :py:class:`botocore:SQS.Client` :param queue_name: name of queue to put message in :type queue_name: str :param msg: JSON-serialized message body :type msg: str :return: message ID ...
(module (function_definition (function_name__get_auth_token) function_name__get_auth_token (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url) identifier_url (binary_operator (string_'/%...
Given the office356 tenant and client id, and client secret acquire a new authorization token
(module (function_definition (function_name_remove_from_queue) function_name_remove_from_queue (parameters (identifier_self) identifier_self (identifier_index) identifier_index )parameters (block (expression_statement (assignment (identifier_updid) identifier_updid ...
Remove a track from the queue by index. The index number is required as an argument, where the first index is 0. Args: index (int): The (0-based) index of the track to remove
(module (function_definition (function_name__convert_to_clusters) function_name__convert_to_clusters (parameters (identifier_c) identifier_c )parameters (block (expression_statement (assignment (identifier_new_dict) identifier_new_dict (dictionary )dic...
Return 1 cluster per loci
(module (function_definition (function_name_read) function_name_read (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (call (attribute (identifier_self) identifier_self (identifier_ready_t...
If there is data available to be read from the transport, reads the data and tries to parse it as a protobuf message. If the parsing succeeds, return a protobuf object. Otherwise, returns None.
(module (function_definition (function_name_loc) function_name_loc (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (return_statement (call (attribute (string_'{}:{}') string_'{}:{}' ...
Locate the error position in the source code text.
(module (function_definition (function_name_send_status) function_name_send_status (parameters (identifier_self) identifier_self (identifier_payload) identifier_payload )parameters (block (expression_statement (assignment (identifier_answer) identifier_answer ...
Send the daemon status and the current queue for displaying.
(module (function_definition (function_name__tracebacks) function_name__tracebacks (parameters (identifier_score_matrix) identifier_score_matrix (identifier_traceback_matrix) identifier_traceback_matrix (identifier_idx) identifier_idx )parameters (block (expression_statement ...
Implementation of traceeback. This version can produce empty tracebacks, which we generally don't want users seeing. So the higher level `tracebacks` filters those out.
(module (function_definition (function_name__parse_content_type) function_name__parse_content_type (parameters (typed_parameter (identifier_content_type) identifier_content_type (type (generic_type (identifier_Optional) identifier_Optional (type_paramete...
Tease out the content-type and character encoding. A default character encoding of UTF-8 is used, so the content-type must be used to determine if any decoding is necessary to begin with.
(module (function_definition (function_name_get_similar) function_name_get_similar (parameters (identifier_self) identifier_self (default_parameter (identifier_limit) identifier_limit (None) None )default_parameter )parameters (block (expression_statement ...
Returns the similar artists on the network.
(module (function_definition (function_name_resolve) function_name_resolve (parameters (identifier_self) identifier_self (default_parameter (identifier_working_set) identifier_working_set (None) None )default_parameter )parameters (block (expression_statement ...
Resolves any configured plugins and adds them to the global working set. :param working_set: The working set to add the resolved plugins to instead of the global working set (for testing). :type: :class:`pkg_resources.WorkingSet`
(module (function_definition (function_name_OnDestroy) function_name_OnDestroy (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list ...
Called on panel destruction.
(module (function_definition (function_name_get_effective_target_sdk_version) function_name_get_effective_target_sdk_version (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_target_sdk_version) identifier_targe...
Return the effective targetSdkVersion, always returns int > 0. If the targetSdkVersion is not set, it defaults to 1. This is set based on defaults as defined in: https://developer.android.com/guide/topics/manifest/uses-sdk-element.html :rtype: int
(module (function_definition (function_name_GET_savedtimegrid) function_name_GET_savedtimegrid (parameters (identifier_self) identifier_self )parameters (type (None) None )type (block (try_statement (block (expression_statement (call ...
Get the previously saved simulation period.
(module (function_definition (function_name_append) function_name_append (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self ...
Adds certificate to stack
(module (function_definition (function_name_rank_dated_files) function_name_rank_dated_files (parameters (identifier_pattern) identifier_pattern (identifier_dir) identifier_dir (default_parameter (identifier_descending) identifier_descending (True) True )default_paramet...
Search a directory for files that match a pattern. Return an ordered list of these files by filename. Args: pattern: The glob pattern to search for. dir: Path to directory where the files will be searched for. descending: Default True, will sort alphabetically by descending order. Retu...
(module (function_definition (function_name__no_primary) function_name__no_primary (parameters (identifier_max_staleness) identifier_max_staleness (identifier_selection) identifier_selection )parameters (block (expression_statement (assignment (identifier_smax) iden...
Apply max_staleness, in seconds, to a Selection with no known primary.
(module (function_definition (function_name_has_permission) function_name_has_permission (parameters (identifier_self) identifier_self (identifier_request) identifier_request (identifier_view) identifier_view )parameters (block (if_statement (not_operator (att...
Overrides the standard function and figures out methods to call for global permissions.
(module (function_definition (function_name_targetpop) function_name_targetpop (parameters (identifier_upper_density) identifier_upper_density (identifier_coul) identifier_coul (identifier_target_cf) identifier_target_cf (identifier_slsp) identifier_slsp (identifier_n_tot) identi...
restriction on finding the right populations that leave the crystal field same
(module (function_definition (function_name_rav2xf) function_name_rav2xf (parameters (identifier_rot) identifier_rot (identifier_av) identifier_av )parameters (block (expression_statement (assignment (identifier_rot) identifier_rot (call (attri...
This routine determines a state transformation matrix from a rotation matrix and the angular velocity of the rotation. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rav2xf_c.html :param rot: Rotation matrix. :type rot: 3x3-Element Array of floats :param av: Angular velocity vector. ...
(module (function_definition (function_name_no_coroutine) function_name_no_coroutine (parameters (identifier_f) identifier_f )parameters (block (decorated_definition (decorator (call (attribute (identifier_functools) identifier_functools ...
This is not a coroutine ;) Use as a decorator: @no_coroutine def foo(): five = yield 5 print(yield "hello") The function passed should be a generator yielding whatever you feel like. The yielded values instantly get passed back into the generator. It's basically the same as if ...
(module (function_definition (function_name_get_cache_time) function_name_get_cache_time (parameters (identifier_self) identifier_self (typed_parameter (identifier_path) identifier_path (type (identifier_str) identifier_str )type )typed_parameter (type...
Override to customize cache control behavior. Return a positive number of seconds to make the result cacheable for that amount of time or 0 to mark resource as cacheable for an unspecified amount of time (subject to browser heuristics). By default returns cache expiry of 10 yea...
(module (function_definition (function_name_find_cached_dm) function_name_find_cached_dm (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_pmag_dir) identifier_pmag_dir (call (attribute ...
Find filename where cached data model json is stored. Returns --------- model_file : str data model json file location
(module (function_definition (function_name__in_tag) function_name__in_tag (parameters (identifier_self) identifier_self (identifier_tagname) identifier_tagname (default_parameter (identifier_attributes) identifier_attributes (None) None )default_parameter )paramete...
Determine if we are already in a certain tag. If we give attributes, make sure they match.
(module (function_definition (function_name_datapath) function_name_datapath (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_path) identifier_path (subscript (attribute (ide...
Get an item's data path.
(module (function_definition (function_name_get_gallery_favorites) function_name_get_gallery_favorites (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url) identifier_url (parenthesized_expression ...
Get a list of the images in the gallery this user has favorited.
(module (function_definition (function_name_participant_policy) function_name_participant_policy (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_old_policy) identifier...
Changing participation policy fires a "ParticipationPolicyChanged" event
(module (function_definition (function_name_sell) function_name_sell (parameters (identifier_self) identifier_self (identifier_product_id) identifier_product_id (identifier_order_type) identifier_order_type (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )...
Place a sell order. This is included to maintain backwards compatibility with older versions of cbpro-Python. For maximum support from docstrings and function signatures see the order type-specific functions place_limit_order, place_market_order, and place_stop_order. Args: ...
(module (function_definition (function_name_job_delayed) function_name_job_delayed (parameters (identifier_self) identifier_self (identifier_job) identifier_job (identifier_queue) identifier_queue )parameters (block (expression_statement (assignment (identifie...
Called if a job, before trying to run it, has the "delayed" status, or, after run, if its status was set to "delayed" If delayed_until was not set, or is invalid, set it to 60sec in the future
(module (function_definition (function_name__resolve_deps) function_name__resolve_deps (parameters (identifier_self) identifier_self (identifier_depmap) identifier_depmap )parameters (block (expression_statement (assignment (identifier_deps) identifier_deps ...
Given a map of gen-key=>target specs, resolves the target specs into references.
(module (function_definition (function_name_infer) function_name_infer (parameters (identifier_self) identifier_self (identifier_ob) identifier_ob )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (id...
Add new observation to frame stack and infer policy. Args: ob: array of shape (height, width, channels) Returns: logits and vf.
(module (function_definition (function_name_remove_entity) function_name_remove_entity (parameters (identifier_self) identifier_self (identifier_entity) identifier_entity (default_parameter (identifier_second) identifier_second (False) False )default_parameter )para...
Removes entity from world and kills entity
(module (function_definition (function_name_E_Advective_Dispersion) function_name_E_Advective_Dispersion (parameters (identifier_t) identifier_t (identifier_Pe) identifier_Pe )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance ...
Calculate a dimensionless measure of the output tracer concentration from a spike input to reactor with advection and dispersion. :param t: The time(s) at which to calculate the effluent concentration. Time can be made dimensionless by dividing by the residence time of the CMFR. :type t: float or numpy.arr...
(module (function_definition (function_name_dump_tree) function_name_dump_tree (parameters (identifier_self) identifier_self (default_parameter (identifier_statement) identifier_statement (None) None )default_parameter (default_parameter (identifier_indent_level...
Dump the AST for this parsed file. Args: statement (SensorGraphStatement): the statement to print if this function is called recursively. indent_level (int): The number of spaces to indent this statement. Used for recursively printing blocks of ...
(module (function_definition (function_name_maybe_reduce) function_name_maybe_reduce (parameters (identifier_nodes) identifier_nodes )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignment ...
r"""Reduce nodes in a curve if they are degree-elevated. .. note:: This is a helper for :func:`_full_reduce`. Hence there is no corresponding Fortran speedup. We check if the nodes are degree-elevated by projecting onto the space of degree-elevated curves of the same degree, then comparin...
(module (function_definition (function_name_thresholdBlocks) function_name_thresholdBlocks (parameters (identifier_self) identifier_self (identifier_blocks) identifier_blocks (default_parameter (identifier_recall_weight) identifier_recall_weight (float_1.5) float_1.5 )d...
Returns the threshold that maximizes the expected F score, a weighted average of precision and recall for a sample of blocked data. Arguments: blocks -- Sequence of tuples of records, where each tuple is a set of records covered by a blocking predicate recall...
(module (function_definition (function_name_resize) function_name_resize (parameters (identifier_self) identifier_self (identifier_size) identifier_size (default_parameter (identifier_disk) identifier_disk (None) None )default_parameter )parameters (block ...
Resize the droplet :param size: a size slug or a `Size` object representing the size to resize to :type size: string or `Size` :param bool disk: Set to `True` for a permanent resize, including disk changes :return: an `Action` representing the in-progress operati...
(module (function_definition (function_name_image_create) function_name_image_create (parameters (identifier_cmptparms) identifier_cmptparms (identifier_cspace) identifier_cspace )parameters (block (expression_statement (assignment (identifier_lst) identifier_lst ...
Wrapper for openjpeg library function opj_image_create.
(module (function_definition (function_name_boolean) function_name_boolean (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (return_statement (attribute (identifier_self) identifier_self (identi...
A mapping of this `StateVector` to a 2-D array containing all binary bits as booleans, for each time point.
(module (function_definition (function_name__is_cow) function_name__is_cow (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_dirname) identifier_dirname (call (attribute (attr...
Check if the subvolume is copy on write
(module (function_definition (function_name_check_query) function_name_check_query (parameters (identifier_query) identifier_query )parameters (block (expression_statement (assignment (identifier_q) identifier_q (call (attribute (identi...
Check query sanity Args: query: query string Returns: None
(module (function_definition (function_name_rbac_policy_create) function_name_rbac_policy_create (parameters (identifier_request) identifier_request (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_...
Create a RBAC Policy. :param request: request context :param target_tenant: target tenant of the policy :param tenant_id: owner tenant of the policy(Not recommended) :param object_type: network or qos_policy :param object_id: object id of policy :param action: access_as_shared or access_as_exte...
(module (function_definition (function_name_on_data) function_name_on_data (parameters (identifier_self) identifier_self (identifier_raw_data) identifier_raw_data )parameters (block (try_statement (block (expression_statement (assignment (i...
Called when raw data is received from connection. Override this method if you wish to manually handle the stream data :param raw_data: Received raw data :return: Return False to stop stream and close connection
(module (function_definition (function_name___calculate_boltzmann_factor) function_name___calculate_boltzmann_factor (parameters (identifier_self) identifier_self (identifier_state_key) identifier_state_key (identifier_next_action_list) identifier_next_action_list )parameters (block ...
Calculate boltzmann factor. Args: state_key: The key of state. next_action_list: The possible action in `self.t+1`. If the length of this list is 0, all action should be possible. Returns: [(`The key of action`,...
(module (function_definition (function_name__authenticate) function_name__authenticate (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (assignment (identifier_hosted_zones) identifier_h...
Determine the hosted zone id for the domain.
(module (function_definition (function_name_handle_message) function_name_handle_message (parameters (identifier_self) identifier_self (identifier_msg) identifier_msg )parameters (block (if_statement (comparison_operator (attribute (identifier_msg) ident...
Issues an `inspection` service message based on a PyLint message. Registers each message type upon first encounter. :param utils.Message msg: a PyLint message
(module (function_definition (function_name_get_posix) function_name_get_posix (parameters (identifier_self) identifier_self (identifier_i) identifier_i )parameters (block (expression_statement (assignment (identifier_index) identifier_index (attribute ...
Get POSIX.
(module (function_definition (function_name_many_nodes) function_name_many_nodes (parameters (typed_parameter (identifier_lexer) identifier_lexer (type (identifier_Lexer) identifier_Lexer )type )typed_parameter (typed_parameter (identifier_open_kind)...
Fetch matching nodes, at least one. Returns a non-empty list of parse nodes, determined by the `parse_fn`. This list begins with a lex token of `open_kind` and ends with a lex token of `close_kind`. Advances the parser to the next lex token after the closing token.
(module (function_definition (function_name_save_statement) function_name_save_statement (parameters (identifier_self) identifier_self (identifier_statement) identifier_statement )parameters (block (if_statement (not_operator (call (identifier_isinstance...
Save statement to LRS and update statement id if necessary :param statement: Statement object to be saved :type statement: :class:`tincan.statement.Statement` :return: LRS Response object with the saved statement as content :rtype: :class:`tincan.lrs_response.LRSResponse`
(module (function_definition (function_name__start_reader) function_name__start_reader (parameters (identifier_self) identifier_self )parameters (block (while_statement (True) True (block (expression_statement (assignment (identifier_mess...
Read messages from the Win32 pipe server and handle them.
(module (function_definition (function_name_format_norm) function_name_format_norm (parameters (identifier_kwargs) identifier_kwargs (default_parameter (identifier_current) identifier_current (None) None )default_parameter )parameters (block (expression_statemen...
Format a `~matplotlib.colors.Normalize` from a set of kwargs Returns ------- norm, kwargs the formatted `Normalize` instance, and the remaining keywords
(module (function_definition (function_name_OnDrawBackground) function_name_OnDrawBackground (parameters (identifier_self) identifier_self (identifier_dc) identifier_dc (identifier_rect) identifier_rect (identifier_item) identifier_item (identifier_flags) identifier_flags )pa...
Called for drawing the background area of each item Overridden from OwnerDrawnComboBox
(module (function_definition (function_name_sign_off) function_name_sign_off (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (call (attribute (identifier_logger) identif...
Submit questionnaire and finish. This uses Selenium to click the submit button on the questionnaire and return to the original window.
(module (function_definition (function_name_to_yaml) function_name_to_yaml (parameters (identifier_value) identifier_value )parameters (type (identifier_str) identifier_str )type (block (expression_statement (assignment (identifier_stream) identifier_stream ...
Convert a given value to a YAML string.
(module (function_definition (function_name__make_version) function_name__make_version (parameters (identifier_major) identifier_major (identifier_minor) identifier_minor (identifier_micro) identifier_micro (identifier_releaselevel) identifier_releaselevel (identifier_serial) ide...
Create a readable version string from version_info tuple components.
(module (function_definition (function_name__build_auth_request) function_name__build_auth_request (parameters (identifier_self) identifier_self (default_parameter (identifier_verify) identifier_verify (False) False )default_parameter (dictionary_splat_pattern (...
Build the authentication request to SMC
(module (function_definition (function_name_finalize) function_name_finalize (parameters (identifier_self) identifier_self (identifier_result) identifier_result )parameters (block (expression_statement (assignment (identifier_runtime) identifier_runtime (b...
At the end of the run, we want to update the DB row with the execution time.
(module (function_definition (function_name_ListAssets) function_name_ListAssets (parameters (identifier_logdir) identifier_logdir (identifier_plugin_name) identifier_plugin_name )parameters (block (expression_statement (assignment (identifier_plugin_dir) identifier...
List all the assets that are available for given plugin in a logdir. Args: logdir: A directory that was created by a TensorFlow summary.FileWriter. plugin_name: A string name of a plugin to list assets for. Returns: A string list of available plugin assets. If the plugin subdirectory does not exis...
(module (function_definition (function_name__register_allocator) function_name__register_allocator (parameters (identifier_self) identifier_self (identifier_plugin_name) identifier_plugin_name (identifier_plugin_instance) identifier_plugin_instance )parameters (block (for_state...
Register an allocator. :param plugin_name: Allocator name :param plugin_instance: RunPluginBase :return: