sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_clearScreen) function_name_clearScreen (parameters (identifier_cls) identifier_cls )parameters (block (if_statement (comparison_operator (string_"win32") string_"win32" (attribute (identifier_sys) identifie...
Clear the screen
(module (function_definition (function_name_set_socket_address) function_name_set_socket_address (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_Global) identifier_Glo...
Set a random port to be used by zmq
(module (function_definition (function_name_redirect_stdout) function_name_redirect_stdout (parameters (identifier_self) identifier_self (default_parameter (identifier_enabled) identifier_enabled (True) True )default_parameter (default_parameter (identifier_log_...
Redirect sys.stdout to file-like object.
(module (function_definition (function_name__validate_handler) function_name__validate_handler (parameters (identifier_column_name) identifier_column_name (identifier_value) identifier_value (identifier_predicate_refs) identifier_predicate_refs )parameters (block (if_statement ...
handle predicate's return value
(module (function_definition (function_name_attach) function_name_attach (parameters (identifier_self) identifier_self (identifier_attachments) identifier_attachments )parameters (block (if_statement (not_operator (call (identifier_is_iterable) identifie...
Add an attachment, or a list of attachments, to this item. If the item has already been saved, the attachments will be created on the server immediately. If the item has not yet been saved, the attachments will be created on the server the item is saved. Adding attachments to an existing item w...
(module (function_definition (function_name_add_edge) function_name_add_edge (parameters (identifier_edges) identifier_edges (identifier_edge_points) identifier_edge_points (identifier_coords) identifier_coords (identifier_i) identifier_i (identifier_j) identifier_j )paramete...
Add a line between the i-th and j-th points, if not in the list already
(module (function_definition (function_name_list_tags) function_name_list_tags (parameters )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (call (identifier_set) identifier_set (argument_list )ar...
Returns a list of tagged images CLI Example: .. code-block:: bash salt myminion docker.list_tags
(module (function_definition (function_name_get_device_state) function_name_get_device_state (parameters (identifier_self) identifier_self (identifier_device) identifier_device (default_parameter (identifier_id_override) identifier_id_override (None) None )default_param...
Get device state via online API. Args: device (WinkDevice): The device the change is being requested for. id_override (String, optional): A device ID used to override the passed in device's ID. Used to make changes on sub-devices. i.e. Outlet in a Powerst...
(module (function_definition (function_name_is_dir) function_name_is_dir (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (return_statement (call (identifier_S_ISDIR) identifier_S_ISDIR (argumen...
Whether this path is a directory.
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_sid) identifier_sid )parameters (block (return_statement (call (identifier_DomainContext) identifier_DomainContext (argument_list ...
Constructs a DomainContext :param sid: The unique string that identifies the resource :returns: twilio.rest.api.v2010.account.sip.domain.DomainContext :rtype: twilio.rest.api.v2010.account.sip.domain.DomainContext
(module (function_definition (function_name__merge_dict) function_name__merge_dict (parameters (identifier_self) identifier_self (identifier_global_dict) identifier_global_dict (identifier_local_dict) identifier_local_dict )parameters (block (expression_statement (assig...
Merges the two dictionaries together :param global_dict: Global dictionary to be merged :param local_dict: Local dictionary to be merged :return: New merged dictionary with values shallow copied
(module (function_definition (function_name_getFilename) function_name_getFilename (parameters (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_name) identifier_name (call (attribute (id...
Get a filename from given name without dangerous or incompatible characters.
(module (function_definition (function_name_der_cert) function_name_der_cert (parameters (identifier_der_data) identifier_der_data )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_der_dat...
Load a DER encoded certificate :param der_data: DER-encoded certificate :return: A cryptography.x509.certificate instance
(module (function_definition (function_name__make_patterns) function_name__make_patterns (parameters (identifier_patterns) identifier_patterns )parameters (block (expression_statement (assignment (identifier_field_registry) identifier_field_registry (call ...
Create a ScreenPatternList from a given pattern text. Args: pattern_txt (str list): the patterns Returns: mpdlcd.display_pattern.ScreenPatternList: a list of patterns from the given entries.
(module (function_definition (function_name_standalone_from_launchable) function_name_standalone_from_launchable (parameters (identifier_cls) identifier_cls (identifier_launch) identifier_launch )parameters (block (expression_statement (assignment (identifier_attrs)...
Given a launchable resource, create a definition of a standalone instance, which doesn't depend on or contain references to other elements.
(module (function_definition (function_name_to_json) function_name_to_json (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_result) identifier_result (dictionary (pair (strin...
Returns the JSON Representation of the content type field.
(module (function_definition (function_name_copy) function_name_copy (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_properties) identifier_properties (dictionary )dictionary )assig...
Returns a copy of this database option set. :return <orb.Context>
(module (function_definition (function_name_dict_to_literal) function_name_dict_to_literal (parameters (typed_parameter (identifier_dict_container) identifier_dict_container (type (identifier_dict) identifier_dict )type )typed_parameter )parameters (block ...
Transforms a JSON+LD PyLD dictionary into an RDFLib object
(module (function_definition (function_name_set_energy_range) function_name_set_energy_range (parameters (identifier_self) identifier_self (identifier_logemin) identifier_logemin (identifier_logemax) identifier_logemax )parameters (block (if_statement (comparison_operat...
Set the energy bounds of the analysis. This restricts the evaluation of the likelihood to the data that falls in this range. Input values will be rounded to the closest bin edge value. If either argument is None then the lower or upper bound of the analysis instance will be used. ...
(module (function_definition (function_name_config_hook) function_name_config_hook (parameters (identifier_self) identifier_self (identifier_func) identifier_func )parameters (block (expression_statement (assignment (identifier_argspec) identifier_argspec ...
Decorator to add a config hook to this ingredient. Config hooks need to be a function that takes 3 parameters and returns a dictionary: (config, command_name, logger) --> dict Config hooks are run after the configuration of this Ingredient, but before any further ingredient-con...
(module (function_definition (function_name_last_job_statuses) function_name_last_job_statuses (parameters (identifier_self) identifier_self )parameters (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_str) identi...
The last constants of the job in this experiment.
(module (function_definition (function_name_create) function_name_create (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (try_statement (block (e...
Corresponds to POST request without a resource identifier, inserting a document into the database
(module (function_definition (function_name_insert) function_name_insert (parameters (identifier_self) identifier_self (identifier_thread) identifier_thread )parameters (block (expression_statement (assignment (identifier_thread_id) identifier_thread_id (s...
Process a thread and insert its comments in the DB.
(module (function_definition (function_name_build_joblist) function_name_build_joblist (parameters (identifier_jobgraph) identifier_jobgraph )parameters (block (expression_statement (assignment (identifier_jobset) identifier_jobset (call (identifier_...
Returns a list of jobs, from a passed jobgraph.
(module (function_definition (function_name_html_for_modules_method) function_name_html_for_modules_method (parameters (identifier_method_name) identifier_method_name (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (id...
Returns an HTML snippet for a Modules API method. Args: method_name: A string containing a Modules API method. args: Positional arguments to be passed to the method. kwargs: Keyword arguments to be passed to the method. Returns: String HTML representing the Modules API method a...
(module (function_definition (function_name_filter) function_name_filter (parameters (identifier_self) identifier_self (identifier_source_file) identifier_source_file (identifier_encoding) identifier_encoding )parameters (block (with_statement (with_clause (wi...
Parse file.
(module (function_definition (function_name_is_running) function_name_is_running (parameters (identifier_config) identifier_config (identifier_container) identifier_container (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_patte...
Is this container running container Container id Return container
(module (function_definition (function_name_error) function_name_error (parameters (default_parameter (identifier_name) identifier_name (None) None )default_parameter (default_parameter (identifier_message) identifier_message (string_'') string_'' )defau...
If name is None Then return empty dict Otherwise raise an exception with __name__ from name, message from message CLI Example: .. code-block:: bash salt-wheel error salt-wheel error.error name="Exception" message="This is an error."
(module (function_definition (function_name_minmax) function_name_minmax (parameters (identifier_arrays) identifier_arrays (default_parameter (identifier_masks) identifier_masks (None) None )default_parameter (default_parameter (identifier_dtype) identifier_dtyp...
Combine arrays using mix max rejection, with masks. Inputs and masks are a list of array objects. All input arrays have the same shape. If present, the masks have the same shape also. The function returns an array with one more dimension than the inputs and with size (3, shape). out[0] contains th...
(module (function_definition (function_name_reset_internal_states) function_name_reset_internal_states (parameters (identifier_self) identifier_self (default_parameter (identifier_record) identifier_record (None) None )default_parameter )parameters (block (expre...
Resets the internal state of the recorder. Args: record: records.TestResultRecord, the test record for a test.
(module (function_definition (function_name__search_env) function_name__search_env (parameters (identifier_keys) identifier_keys )parameters (block (expression_statement (assignment (identifier_matches) identifier_matches (generator_expression (subsc...
Search the environment for the supplied keys, returning the first one found or None if none was found.
(module (function_definition (function_name_validate_email) function_name_validate_email (parameters (identifier_email) identifier_email (default_parameter (identifier_partial_match) identifier_partial_match (False) False )default_parameter )parameters (block (e...
Perform email address validation >>> validate_email('akjaer@riotgames.com') True >>> validate_email('Asbjorn Kjaer <akjaer@riotgames.com') False >>> validate_email('Asbjorn Kjaer <akjaer@riotgames.com', partial_match=True) True Args: email (str): Email address to match part...
(module (function_definition (function_name_data_nodes) function_name_data_nodes (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary_comprehension (pair (identifier_k) identifier_k (identifier_v) identifie...
Returns all data nodes of the dispatcher. :return: All data nodes of the dispatcher. :rtype: dict[str, dict]
(module (function_definition (function_name_get_date_info) function_name_get_date_info (parameters (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_fmt) identifier_fmt (call (identifier__get_date_fo...
Returns the datetime object and the format of the date in input :type value: `str`
(module (function_definition (function_name__add_condition) function_name__add_condition (parameters (identifier_self) identifier_self (identifier_operator) identifier_operator (identifier_operand) identifier_operand (identifier_types) identifier_types )parameters (block ...
Appends condition to self._query after performing validation :param operator: operator (str) :param operand: operand :param types: allowed types :raise: - QueryMissingField: if a field hasn't been set - QueryMultipleExpressions: if a condition already has been se...
(module (function_definition (function_name_make_key) function_name_make_key (parameters (list_splat_pattern (identifier_criteria) identifier_criteria )list_splat_pattern )parameters (block (expression_statement (assignment (identifier_criteria) identifier_c...
Make a string key out of many criteria.
(module (function_definition (function_name_remove_remote_subnet) function_name_remove_remote_subnet (parameters (identifier_self) identifier_self (identifier_context_id) identifier_context_id (identifier_subnet_id) identifier_subnet_id )parameters (block (return_statement ...
Removes a remote subnet from a tunnel context. :param int context_id: The id-value representing the context instance. :param int subnet_id: The id-value representing the remote subnet. :return bool: True if remote subnet removal was successful.
(module (function_definition (function_name_normalized_rgb) function_name_normalized_rgb (parameters (identifier_self) identifier_self )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignment ...
r""" Returns a tuples of the normalized values of the red, green, and blue channels of the Colour. Returns: tuple: the rgb values of the colour (with values normalized between 0.0 and 1.0) .. note:: Uses the formula: \\[ r_{norm}...
(module (function_definition (function_name_add_relation) function_name_add_relation (parameters (identifier_self) identifier_self (identifier_source) identifier_source (identifier_destination) identifier_destination )parameters (block (if_statement (call (att...
Add new a relation to the bejection
(module (function_definition (function_name_transitingPlanets) function_name_transitingPlanets (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_transitingPlanets) identifier_transitingPlanets (list ...
Returns a list of transiting planet objects
(module (function_definition (function_name_normalize_node) function_name_normalize_node (parameters (identifier_node) identifier_node (default_parameter (identifier_headers) identifier_headers (None) None )default_parameter )parameters (block (expression_statem...
Normalizes given node as str or dict with headers
(module (function_definition (function_name_interrupt) function_name_interrupt (parameters (identifier_aggregate) identifier_aggregate )parameters (block (while_statement (True) True (block (try_statement (block (expression_statement ...
Interrupt execution and shutdown, ignoring any subsequent interrupts.
(module (function_definition (function_name_parse_qs) function_name_parse_qs (parameters (identifier_s) identifier_s (identifier_rx) identifier_rx (default_parameter (identifier_parsef) identifier_parsef (None) None )default_parameter (default_parameter (i...
helper for parsing a string that can both rx or parsef which is obstensibly the parsef for rx. Use parse colors for color tuples. This won't work with those.
(module (function_definition (function_name_output_reference) function_name_output_reference (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (if_statement (comparison_operator (identifier_name) identifier_name ...
Return a reference to the given output for use in an input of a next Step. For a Step named `echo` that has an output called `echoed`, the reference `echo/echoed` is returned. Args: name (str): the name of the Step output Raises: ValueError: The name...
(module (function_definition (function_name_get_value) function_name_get_value (parameters (identifier_self) identifier_self (identifier_property_name) identifier_property_name )parameters (block (expression_statement (assignment (identifier_log) identifier_log ...
Returns the value associated to the passed property This public method is passed a specific property as a string and returns the value of that property. If the property is not found, None will be returned. :param property_name (str) The name of the property :return: (str) value...
(module (function_definition (function_name_redis_version) function_name_redis_version (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list ...
Return the redis version as a tuple
(module (function_definition (function_name_create_tool) function_name_create_tool (parameters (identifier_self) identifier_self (identifier_task) identifier_task )parameters (block (expression_statement (assignment (identifier_gp_tool) identifier_gp_tool ...
Creates a new GPTool for the toolbox.
(module (function_definition (function_name__defaults) function_name__defaults (parameters )parameters (block (expression_statement (assignment (identifier_d) identifier_d (dictionary )dictionary )assignment )expression_statement (express...
Returns a dict of default args from the environment, which can be overridden by command line args.
(module (function_definition (function_name__jseq) function_name__jseq (parameters (identifier_self) identifier_self (identifier_cols) identifier_cols (default_parameter (identifier_converter) identifier_converter (None) None )default_parameter )parameters (bloc...
Return a JVM Seq of Columns from a list of Column or names
(module (function_definition (function_name_lazy_property) function_name_lazy_property (parameters (identifier_func) identifier_func )parameters (block (expression_statement (assignment (identifier_attr_name) identifier_attr_name (binary_operator (st...
Wraps a property to provide lazy evaluation. Eliminates boilerplate. Also provides for setting and deleting the property. Use as you would use the @property decorator:: # OLD: class MyClass(): def __init__(): self._compute = None @property d...
(module (function_definition (function_name_update_matches) function_name_update_matches (parameters (identifier_self) identifier_self (identifier_other) identifier_other )parameters (block (for_statement (identifier_match) identifier_match (call (attribute ...
Update this instance's Matches to point to the given other's Matches. Find Matches with the same TextLogError as our Matches, updating their score if less than ours and mark our matches for deletion. If there are no other matches, update ours to point to the other ClassifiedFailure.
(module (function_definition (function_name_get_method_analysis_by_name) function_name_get_method_analysis_by_name (parameters (identifier_self) identifier_self (identifier_class_name) identifier_class_name (identifier_method_name) identifier_method_name (identifier_method_descriptor) ...
Returns the crossreferencing object for a given method. This function is similar to :meth:`~get_method_analysis`, with the difference that you can look up the Method by name :param class_name: name of the class, for example `'Ljava/lang/Object;'` :param method_name: name of the method,...
(module (function_definition (function_name_bfloat16_activations_var_getter) function_name_bfloat16_activations_var_getter (parameters (identifier_getter) identifier_getter (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern ...
A custom getter function for float32 parameters and bfloat16 activations. Args: getter: custom getter *args: arguments **kwargs: keyword arguments Returns: variables with the correct dtype. Raises: KeyError: if "dtype" is not provided as a kwarg.
(module (function_definition (function_name_is_convertible_with) function_name_is_convertible_with (parameters (identifier_self) identifier_self (identifier_other) identifier_other )parameters (block (expression_statement (assignment (identifier_other) identifier_ot...
Returns true if `other` is convertible with this Dimension. Two known Dimensions are convertible if they have the same value. An unknown Dimension is convertible with all other Dimensions. Args: other: Another Dimension. Returns: True if this Dimension and `other` ...
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_headers) identifier_headers (dictionary )dictionary )assignment ...
Saves changes made to the locally cached Document object's data structures to the remote database. If the document does not exist remotely then it is created in the remote database. If the object does exist remotely then the document is updated remotely. In either case the locally cac...
(module (function_definition (function_name_prepare) function_name_prepare (parameters (identifier_self) identifier_self (identifier_session) identifier_session (identifier_event) identifier_event )parameters (block (if_statement (not_operator (identifier_even...
Prepare phase for session. :param session: sqlalchemy session
(module (function_definition (function_name_unlock) function_name_unlock (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value (keyword_separator )keyword_separator (default_parameter (identifier_flags) ide...
Unlocks the Key with the given Session. Parameters: key (str): Key to set value (Payload): Value to set, It will be encoded by flags session (ObjectID): Session ID flags (int): Flags to set with value Response: bool: ``True`` on success ...
(module (function_definition (function_name__get_default_field_kwargs) function_name__get_default_field_kwargs (parameters (identifier_model) identifier_model (identifier_field) identifier_field )parameters (block (expression_statement (assignment (identifier_kwargs...
Get the required attributes from the model field in order to instantiate a REST Framework serializer field.
(module (function_definition (function_name_find_compilation_database) function_name_find_compilation_database (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_result) identifier_result (string_'./') ...
Adjusts the directory until a compilation database is found.
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_entities) identifier_entities )parameters (block (if_statement (not_operator (call (attribute (identifier_utils) id...
Adds the given entities to the cache, if they weren't saved before.
(module (function_definition (function_name_info_1) function_name_info_1 (parameters (typed_parameter (list_splat_pattern (identifier_tokens) identifier_tokens )list_splat_pattern (type (identifier_Token) identifier_Token )type )typed_parameter ...
Print an important informative message
(module (function_definition (function_name_greedy_merge_helper) function_name_greedy_merge_helper (parameters (identifier_variant_sequences) identifier_variant_sequences (default_parameter (identifier_min_overlap_size) identifier_min_overlap_size (identifier_MIN_VARIANT_SEQUENCE_A...
Returns a list of merged VariantSequence objects, and True if any were successfully merged.
(module (function_definition (function_name_find_nodes) function_name_find_nodes (parameters (identifier_self) identifier_self (default_parameter (identifier_query_dict) identifier_query_dict (None) None )default_parameter (default_parameter (identifier_exact) i...
Query on node properties. See documentation for _OTIWrapper class.
(module (function_definition (function_name_include_version) function_name_include_version (parameters (typed_parameter (identifier_global_root) identifier_global_root (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (ide...
Include files in existing bundle version.
(module (function_definition (function_name_disable_availability_zones) function_name_disable_availability_zones (parameters (identifier_self) identifier_self (identifier_load_balancer_name) identifier_load_balancer_name (identifier_zones_to_remove) identifier_zones_to_remove )parameters...
Remove availability zones from an existing Load Balancer. All zones must be in the same region as the Load Balancer. Removing zones that are not registered with the Load Balancer has no effect. You cannot remove all zones from an Load Balancer. :type load_balancer_name: string ...
(module (function_definition (function_name_load) function_name_load (parameters (identifier_cls) identifier_cls (identifier_cache_file) identifier_cache_file (default_parameter (identifier_backend) identifier_backend (None) None )default_parameter )parameters (...
Instantiate AsyncResult from dumped `cache_file`. This is the inverse of :meth:`dump`. Parameters ---------- cache_file: str Name of file from which the run should be read. backend: clusterjob.backends.ClusterjobBackend or None The bac...
(module (function_definition (function_name_get_pidfile) function_name_get_pidfile (parameters (identifier_pidfile) identifier_pidfile )parameters (block (try_statement (block (with_statement (with_clause (with_item (as_pattern ...
Return the pid from a pidfile as an integer
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_se...
Saves the updated model to the current entity db.
(module (function_definition (function_name__check_if_tag_already_exists) function_name__check_if_tag_already_exists (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_version) identifier_version (subsc...
Check if tag already exists and show the difference if so
(module (function_definition (function_name__cast_to_type) function_name__cast_to_type (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (a...
Convert the value to a date and raise error on failures
(module (function_definition (function_name_nic_v1) function_name_nic_v1 (parameters (identifier_msg) identifier_msg (identifier_NICs) identifier_NICs )parameters (block (if_statement (boolean_operator (comparison_operator (call (identifier...
Calculate NIC, navigation integrity category, for ADS-B version 1 Args: msg (string): 28 bytes hexadecimal message string NICs (int or string): NIC supplement Returns: int or string: Horizontal Radius of Containment int or string: Vertical Protection Limit
(module (function_definition (function_name_order_market_buy) function_name_order_market_buy (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_params) identifier_params )dictionary_splat_pattern )parameters (block (expression_statement ...
Send in a new market buy order :param symbol: required :type symbol: str :param quantity: required :type quantity: decimal :param newClientOrderId: A unique id for the order. Automatically generated if not sent. :type newClientOrderId: str :param newOrderRespType...
(module (function_definition (function_name_sizeHint) function_name_sizeHint (parameters (identifier_self) identifier_self (identifier_option) identifier_option (identifier_index) identifier_index )parameters (block (expression_statement (assignment (identifie...
Size based on component duration and a fixed height
(module (function_definition (function_name_device_state) function_name_device_state (parameters (identifier_device_id) identifier_device_id )parameters (block (if_statement (comparison_operator (identifier_device_id) identifier_device_id (identifier_devices) id...
Get device state via HTTP GET.
(module (function_definition (function_name__parse_metadata) function_name__parse_metadata (parameters (identifier_self) identifier_self (identifier_meta) identifier_meta )parameters (block (expression_statement (assignment (identifier_formatted_fields) identifier_f...
Return the dict containing document metadata
(module (function_definition (function_name_search_external_subtitles) function_name_search_external_subtitles (parameters (identifier_path) identifier_path (default_parameter (identifier_directory) identifier_directory (None) None )default_parameter )parameters (bloc...
Search for external subtitles from a video `path` and their associated language. Unless `directory` is provided, search will be made in the same directory as the video file. :param str path: path to the video. :param str directory: directory to search for subtitles. :return: found subtitles with their...
(module (function_definition (function_name_bridge_create) function_name_bridge_create (parameters (identifier_br) identifier_br (default_parameter (identifier_may_exist) identifier_may_exist (True) True )default_parameter (default_parameter (identifier_parent) ...
Creates a new bridge. Args: br: A string - bridge name may_exist: Bool, if False - attempting to create a bridge that exists returns False. parent: String, the name of the parent bridge (if the bridge shall be created as a fake bridge). If specified, vlan must also be ...
(module (function_definition (function_name_is_valid_timestamp) function_name_is_valid_timestamp (parameters (identifier_date) identifier_date (default_parameter (identifier_unit) identifier_unit (string_'millis') string_'millis' )default_parameter )parameters (block ...
Checks that a number that represents a date as milliseconds is correct.
(module (function_definition (function_name_write_csv) function_name_write_csv (parameters (identifier_self) identifier_self (default_parameter (identifier_path) identifier_path (None) None )default_parameter )parameters (block (expression_statement (cal...
Write CSV file. Sorts the sections before calling the superclass write_csv
(module (function_definition (function_name_overlaps) function_name_overlaps (parameters (identifier_self) identifier_self (identifier_canvas) identifier_canvas (default_parameter (identifier_exclude) identifier_exclude (list )list )default_parameter )parame...
Returns True if sprite is touching any other sprite.
(module (function_definition (function_name_choices) function_name_choices (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_choice_list) identifier_choice_list (call (identifier_getattr) i...
Returns the filter list as a tuple. Useful for model choices.
(module (function_definition (function_name_iterate_analogy_datasets) function_name_iterate_analogy_datasets (parameters (identifier_args) identifier_args )parameters (block (for_statement (identifier_dataset_name) identifier_dataset_name (attribute (identifier_ar...
Generator over all analogy evaluation datasets. Iterates over dataset names, keyword arguments for their creation and the created dataset.
(module (function_definition (function_name_fork) function_name_fork (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (identifier_self) i...
Fork this gist. :returns: :class:`Gist <Gist>` if successful, ``None`` otherwise
(module (function_definition (function_name_load_snps) function_name_load_snps (parameters (identifier_self) identifier_self (identifier_raw_data) identifier_raw_data (default_parameter (identifier_discrepant_snp_positions_threshold) identifier_discrepant_snp_positions_threshold ...
Load raw genotype data. Parameters ---------- raw_data : list or str path(s) to file(s) with raw genotype data discrepant_snp_positions_threshold : int threshold for discrepant SNP positions between existing data and data to be loaded, a large value c...
(module (function_definition (function_name_space) function_name_space (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_arg_spaces) identifier_arg_spaces (list_comprehension (attribute ...
Combined Hilbert space of all matrix elements.
(module (function_definition (function_name_get_community_badge_progress) function_name_get_community_badge_progress (parameters (identifier_self) identifier_self (identifier_steamID) identifier_steamID (identifier_badgeID) identifier_badgeID (default_parameter (identifier_form...
Gets all the quests needed to get the specified badge, and which are completed. steamID: The users ID badgeID: The badge we're asking about format: Return format. None defaults to json. (json, xml, vdf)
(module (function_definition (function_name_doc) function_name_doc (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_self) identifier_self ...
Returns a PyQuery object of the response's content
(module (function_definition (function_name_clear) function_name_clear (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_...
Remove all nodes and edges from the graph. Unlike the regular networkx implementation, this does *not* remove the graph's name. But all the other graph, node, and edge attributes go away.
(module (function_definition (function_name_start_daemon) function_name_start_daemon (parameters )parameters (block (if_statement (comparison_operator (attribute (identifier_RequestLog) identifier_RequestLog (identifier_daemon) identifier_daemon ...
Start a thread to continuously read log files and append lines in DB. Work in progress. Currently the thread doesn't append anything, it only print the information parsed from each line read. Returns: thread: the started thread.
(module (function_definition (function_name_chi_squared) function_name_chi_squared (parameters (identifier_source_frequency) identifier_source_frequency (identifier_target_frequency) identifier_target_frequency )parameters (block (expression_statement (assignment (i...
Calculate the Chi Squared statistic by comparing ``source_frequency`` with ``target_frequency``. Example: >>> chi_squared({'a': 2, 'b': 3}, {'a': 1, 'b': 2}) 0.1 Args: source_frequency (dict): Frequency map of the text you are analyzing target_frequency (dict): Frequency map of...
(module (function_definition (function_name_record_result) function_name_record_result (parameters (identifier_self) identifier_self (identifier_res) identifier_res (default_parameter (identifier_prg) identifier_prg (string_'') string_'' )default_parameter )paramete...
record the output of the command. Records the result, can have multiple results, so will need to work out a consistent way to aggregate this
(module (function_definition (function_name_camel_to_underscore) function_name_camel_to_underscore (parameters (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_as_list) identifier_as_list (list )list ...
convert CamelCase style to under_score_case
(module (function_definition (function_name_parser_available) function_name_parser_available (parameters (identifier_fpath) identifier_fpath )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifi...
test if parser plugin available for fpath Examples -------- >>> load_builtin_plugins('parsers') [] >>> test_file = StringIO('{"a":[1,2,3.4]}') >>> test_file.name = 'test.json' >>> parser_available(test_file) True >>> test_file.name = 'test.other' >>> parser_available(test_file)...
(module (function_definition (function_name_read_stat) function_name_read_stat (parameters )parameters (block (return_statement (list (dictionary (pair (string_"times") string_"times" (dictionary (pair (s...
Mocks read_stat as this is a Linux-specific operation.
(module (function_definition (function_name_normrelpath) function_name_normrelpath (parameters (identifier_base) identifier_base (identifier_target) identifier_target )parameters (block (if_statement (not_operator (call (identifier_all) identifier_all ...
This function takes the base and target arguments as paths, and returns an equivalent relative path from base to the target, if both provided paths are absolute.
(module (function_definition (function_name_maxdiff_dtu_configurations) function_name_maxdiff_dtu_configurations (parameters (identifier_list_of_objects) identifier_list_of_objects )parameters (block (expression_statement (assignment (identifier_result) identifier_result ...
Return DtuConfiguration instance with maximum differences. Parameters ---------- list_of_objects : python list List of DtuConfiguration instances to be averaged. Returns ------- result : DtuConfiguration instance Object with averaged values.
(module (function_definition (function_name_close) function_name_close (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (attribute (attribute (identifier_self) identifier_self (identifier_hwm...
Close and potentially disconnect from a device.
(module (function_definition (function_name_add_qualified_edge) function_name_add_qualified_edge (parameters (identifier_self) identifier_self (identifier_u) identifier_u (identifier_v) identifier_v (keyword_separator )keyword_separator (typed_parameter (identifier_...
Add a qualified edge. Qualified edges have a relation, evidence, citation, and optional annotations, subject modifications, and object modifications. :param u: The source node :param v: The target node :param relation: The type of relation this edge represents :param ev...
(module (function_definition (function_name_web) function_name_web (parameters (identifier_host) identifier_host (identifier_port) identifier_port )parameters (block (import_from_statement (relative_import (import_prefix )import_prefix (dotted_na...
Start web application
(module (function_definition (function_name_render_form_template) function_name_render_form_template (parameters )parameters (block (expression_statement (assignment (identifier_error) identifier_error (string_"") string_"" )assignment )expression_statem...
Rennder template for user. Decide whether the user is registered or not, pull remote info and so on.