sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_invoke_in_mainloop) function_name_invoke_in_mainloop (parameters (identifier_func) identifier_func (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identif...
Invoke a function in the mainloop, pass the data back.
(module (function_definition (function_name_get_adapted_session) function_name_get_adapted_session (parameters (identifier_adapter) identifier_adapter )parameters (block (expression_statement (assignment (identifier_session) identifier_session (call ...
Mounts an adapter capable of communication over HTTP or HTTPS to the supplied session. :param adapter: A :class:`requests.adapters.HTTPAdapter` instance :return: The adapted :class:`requests.Session` instance
(module (function_definition (function_name__fetch_router_chunk_data) function_name__fetch_router_chunk_data (parameters (identifier_self) identifier_self (default_parameter (identifier_router_ids) identifier_router_ids (None) None )default_parameter )parameters (bloc...
Fetch router data from the routing plugin in chunks. :param router_ids: List of router_ids of routers to fetch :return: List of router dicts of format: [ {router_dict1}, {router_dict2},.....]
(module (function_definition (function_name_make_file_cm) function_name_make_file_cm (parameters (identifier_filename) identifier_filename (default_parameter (identifier_mode) identifier_mode (string_'a') string_'a' )default_parameter )parameters (block (decorat...
Open a file for appending and yield the open filehandle. Close the filehandle after yielding it. This is useful for creating a context manager for logging the output of a `Vagrant` instance. filename: a path to a file mode: The mode in which to open the file. Defaults to 'a', append Usage exam...
(module (function_definition (function_name_to_json) function_name_to_json (parameters (identifier_value) identifier_value (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignm...
Return a copy of the tuple as a list If the tuple contains HasProperties instances, they are serialized.
(module (function_definition (function_name_execute) function_name_execute (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dict...
Initializes and runs the tool. This is shorhand to parse command line arguments, then calling: self.setup(parsed_arguments) self.process()
(module (function_definition (function_name_get_alert_community) function_name_get_alert_community (parameters (identifier_self) identifier_self (default_parameter (identifier_channel) identifier_channel (None) None )default_parameter )parameters (block (if_stat...
Get the current community string for alerts Returns the community string that will be in SNMP traps from this BMC :param channel: The channel to get configuration for, autodetect by default :returns: The community string
(module (function_definition (function_name_doWaitWebRequest) function_name_doWaitWebRequest (parameters (identifier_url) identifier_url (default_parameter (identifier_method) identifier_method (string_"GET") string_"GET" )default_parameter (default_parameter (i...
Same as doWebRequest, but with built in wait-looping
(module (function_definition (function_name_is_visit_primitive) function_name_is_visit_primitive (parameters (identifier_obj) identifier_obj )parameters (block (import_from_statement (relative_import (import_prefix )import_prefix (dotted_name ...
Returns true if properly visiting the object returns only the object itself.
(module (function_definition (function_name_finish) function_name_finish (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_update) identifier_update...
Used to tell the progress is finished.
(module (function_definition (function_name_fulfill_access_secret_store_condition) function_name_fulfill_access_secret_store_condition (parameters (identifier_event) identifier_event (identifier_agreement_id) identifier_agreement_id (identifier_did) identifier_did (identifier_service_a...
Fulfill the access condition. :param event: AttributeDict with the event data. :param agreement_id: id of the agreement, hex str :param did: DID, str :param service_agreement: ServiceAgreement instance :param consumer_address: ethereum account address of consumer, hex str :param publisher_accou...
(module (function_definition (function_name_open) function_name_open (parameters (identifier_self) identifier_self (identifier_name) identifier_name (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwa...
Open file, possibly relative to a base directory.
(module (function_definition (function_name_publish_post) function_name_publish_post (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_payload) identifier_payload (dictionary (pair ...
If it's a new file, add it. Else, update it.
(module (function_definition (function_name__get_form_defaults) function_name__get_form_defaults (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary (pair (string_'response_format') string_'response_format' ...
Returns default values for the identify form
(module (function_definition (function_name_constrain_cfgdict_list) function_name_constrain_cfgdict_list (parameters (identifier_cfgdict_list_) identifier_cfgdict_list_ (identifier_constraint_func) identifier_constraint_func )parameters (block (expression_statement (assignmen...
constrains configurations and removes duplicates
(module (function_definition (function_name_use_quandl_data) function_name_use_quandl_data (parameters (identifier_self) identifier_self (identifier_authtoken) identifier_authtoken )parameters (block (expression_statement (assignment (identifier_dfs) identifier_dfs ...
Use quandl data to build conversion table
(module (function_definition (function_name_highlight_matches) function_name_highlight_matches (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (attribute (identifier_self) identifier_self (identifier...
Highlight found results
(module (function_definition (function_name_connect_to_apple_tv) function_name_connect_to_apple_tv (parameters (identifier_details) identifier_details (identifier_loop) identifier_loop (default_parameter (identifier_protocol) identifier_protocol (None) None )default_par...
Connect and logins to an Apple TV.
(module (function_definition (function_name_read) function_name_read (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (assignment (identifier_buf) identifier_buf (call ...
Read the brightness of the LED. Returns: int: Current brightness. Raises: LEDError: if an I/O or OS error occurs.
(module (function_definition (function_name_update_contact) function_name_update_contact (parameters (identifier_self) identifier_self (identifier_um_from_user) identifier_um_from_user (identifier_um_to_user) identifier_um_to_user (identifier_message) identifier_message )parameters...
Get or update a contacts information
(module (function_definition (function_name_add_def) function_name_add_def (parameters (identifier_self) identifier_self (identifier_def_item) identifier_def_item )parameters (block (expression_statement (call (attribute (attribute (identif...
Adds a def universally.
(module (function_definition (function_name_create_knowledge_base) function_name_create_knowledge_base (parameters (identifier_self) identifier_self (identifier_parent) identifier_parent (identifier_knowledge_base) identifier_knowledge_base (default_parameter (identifier_retry)...
Creates a knowledge base. Example: >>> import dialogflow_v2beta1 >>> >>> client = dialogflow_v2beta1.KnowledgeBasesClient() >>> >>> parent = client.project_path('[PROJECT]') >>> >>> # TODO: Initialize ``knowledge_base``: ...
(module (function_definition (function_name_remove_network) function_name_remove_network (parameters (identifier_self) identifier_self (identifier_action) identifier_action (identifier_n_name) identifier_n_name (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs ...
Removes a network. :param action: Action configuration. :type action: dockermap.map.runner.ActionConfig :param n_name: Network name or id. :type n_name: unicode | str :param kwargs: Additional keyword arguments. :type kwargs: dict
(module (function_definition (function_name_update_state_from_api) function_name_update_state_from_api (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self ...
Pull and update the current state from the API.
(module (function_definition (function_name_create) function_name_create (parameters (identifier_cls) identifier_cls (identifier_entry) identifier_entry )parameters (block (try_statement (block (expression_statement (assignment (identifier_...
Factory that creates an bot config from an entry in INSTALLED_APPS.
(module (function_definition (function_name_from_bundle) function_name_from_bundle (parameters (identifier_cls) identifier_cls (identifier_b) identifier_b (identifier_feature) identifier_feature )parameters (block (expression_statement (assignment (identifier_...
Initialize a Pulsation feature from the bundle.
(module (function_definition (function_name_graph_from_edges) function_name_graph_from_edges (parameters (identifier_edges) identifier_edges )parameters (block (expression_statement (assignment (identifier_M) identifier_M (call (attribute ...
Constructs an undirected multigraph from a list containing data on weighted edges. Parameters ---------- edges : list List of tuples each containing first node, second node, weight, key. Returns ------- M : :class:`networkx.classes.multigraph.MultiGraph
(module (function_definition (function_name_as_dataframe) function_name_as_dataframe (parameters (identifier_self) identifier_self (default_parameter (identifier_pattern) identifier_pattern (string_'*') string_'*' )default_parameter (default_parameter (identifie...
Creates a pandas dataframe from the groups that match the filters. Args: pattern: An optional pattern to further filter the groups. This can include Unix shell-style wildcards. E.g. ``"Production *"``, ``"*-backend"``. max_rows: The maximum number of groups to return. If None, retur...
(module (function_definition (function_name_keyPressEvent) function_name_keyPressEvent (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (if_statement (comparison_operator (call (attribute ...
Reimplement Qt method to allow cyclic behavior.
(module (function_definition (function_name_set_cache_value) function_name_set_cache_value (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_value) identifier_value )parameters (block (expression_statement (assignment ...
Set a variable in the local state dictionary. This does not change the physical device. Useful if you want the device state to refect a new value which has not yet updated drom Vera.
(module (function_definition (function_name_get_all_database_accessions) function_name_get_all_database_accessions (parameters (identifier_chebi_ids) identifier_chebi_ids )parameters (block (expression_statement (assignment (identifier_all_database_accessions) identifier_...
Returns all database accessions
(module (function_definition (function_name_remove_obsolete_folders) function_name_remove_obsolete_folders (parameters (identifier_states) identifier_states (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_elements_i...
Removes obsolete state machine folders This function removes all folders in the file system folder `path` that do not belong to the states given by `states`. :param list states: the states that should reside in this very folder :param str path: the file system path to be checked for valid folders
(module (function_definition (function_name_thumbUrl) function_name_thumbUrl (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_key) identifier_key (call (attribute (identifier...
Return url to for the thumbnail image.
(module (function_definition (function_name_cancel) function_name_cancel (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (attribute (identifier_self) identifier_self (identifi...
Cancel the future if possible. Returns True if the future was cancelled, False otherwise. A future cannot be cancelled if it is running or has already completed.
(module (function_definition (function_name_addMonitor) function_name_addMonitor (parameters (identifier_self) identifier_self (identifier_monitorFriendlyName) identifier_monitorFriendlyName (identifier_monitorURL) identifier_monitorURL )parameters (block (expression_statement ...
Returns True if Monitor was added, otherwise False.
(module (function_definition (function_name_get_annotations) function_name_get_annotations (parameters (identifier_self) identifier_self )parameters (type (identifier_Dict) identifier_Dict )type (block (return_statement (dictionary (pair (identif...
Get the current annotations.
(module (function_definition (function_name_edit) function_name_edit (parameters (identifier_filename) identifier_filename (default_parameter (identifier_connection) identifier_connection (None) None )default_parameter )parameters (block (expression_statement ...
Checks out a file into the default changelist :param filename: File to check out :type filename: str :param connection: Connection object to use :type connection: :py:class:`Connection`
(module (function_definition (function_name_mesh_stable_pose) function_name_mesh_stable_pose (parameters (identifier_mesh) identifier_mesh (identifier_T_obj_table) identifier_T_obj_table (default_parameter (identifier_T_table_world) identifier_T_table_world (call (i...
Visualize a mesh in a stable pose. Parameters ---------- mesh : trimesh.Trimesh The mesh to visualize. T_obj_table : autolab_core.RigidTransform Pose of object relative to table. T_table_world : autolab_core.RigidTransform Pose of table relati...
(module (function_definition (function_name_change_state) function_name_change_state (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (identi...
Changes the state of the instance data with the given ``key`` and the provided ``value``. Wrapping with a decorator is probably not necessary. :param key: A ``str`` containing the key to update :param value: A value to change the ``key`` to :return: None
(module (function_definition (function_name_stop) function_name_stop (parameters (identifier_self) identifier_self (default_parameter (identifier_sig) identifier_sig (attribute (identifier_signal) identifier_signal (identifier_SIGINT) identifier_SIGINT )...
Stop all the workers, and then wait for them
(module (function_definition (function_name_get_params) function_name_get_params (parameters (identifier_self) identifier_self )parameters (block (return_statement (expression_list (attribute (identifier_self) identifier_self (identifier_timeout) i...
Get parameters as a tuple. :return: timeout, xonxoff, rtscts, baudrate
(module (function_definition (function_name_integer_binning) function_name_integer_binning (parameters (default_parameter (identifier_data) identifier_data (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary...
Construct fixed-width binning schema with bins centered around integers. Parameters ---------- range: Optional[Tuple[int]] min (included) and max integer (excluded) bin bin_width: Optional[int] group "bin_width" integers into one bin (not recommended)
(module (function_definition (function_name_havdalah) function_name_havdalah (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_today) identifier_today (call (identifier_HDate) identifier_HD...
Return the time for havdalah, or None if not applicable. If havdalah_offset is 0, uses the time for three_stars. Otherwise, adds the offset to the time of sunset and uses that. If it's currently a multi-day YomTov, and the end of the stretch is after today, the havdalah value is defined...
(module (function_definition (function_name_space_out_camel_case) function_name_space_out_camel_case (parameters (identifier_stringAsCamelCase) identifier_stringAsCamelCase )parameters (block (expression_statement (assignment (identifier_pattern) identifier_pattern ...
Adds spaces to a camel case string. Failure to space out string returns the original string. >>> space_out_camel_case('DMLSServicesOtherBSTextLLC') 'DMLS Services Other BS Text LLC'
(module (function_definition (function_name_monthly) function_name_monthly (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__monthly) identi...
Access the monthly :returns: twilio.rest.api.v2010.account.usage.record.monthly.MonthlyList :rtype: twilio.rest.api.v2010.account.usage.record.monthly.MonthlyList
(module (function_definition (function_name_get_tensors_by_names) function_name_get_tensors_by_names (parameters (identifier_names) identifier_names )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (list )list ...
Get a list of tensors in the default graph by a list of names. Args: names (list):
(module (function_definition (function_name_dfbool2intervals) function_name_dfbool2intervals (parameters (identifier_df) identifier_df (identifier_colbool) identifier_colbool )parameters (block (expression_statement (assignment (attribute (identifier_df)...
ds contains bool values
(module (function_definition (function_name_send_note) function_name_send_note (parameters (identifier_self) identifier_self (identifier_to) identifier_to (default_parameter (identifier_subject) identifier_subject (string_"") string_"" )default_parameter (default_...
Send a note :param to: The username(s) that this note is to :param subject: The subject of the note :param body: The body of the note :param noetid: The UUID of the note that is being responded to
(module (function_definition (function_name_convert_from_rosetta) function_name_convert_from_rosetta (parameters (identifier_self) identifier_self (identifier_residue_id) identifier_residue_id (identifier_to_scheme) identifier_to_scheme )parameters (block (assert_statement ...
A simpler conversion function to convert from Rosetta numbering without requiring the chain identifier.
(module (function_definition (function_name_json_pretty_print) function_name_json_pretty_print (parameters (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_s) identifier_s (call (attribute (id...
pretty print JSON
(module (function_definition (function_name_getPageType) function_name_getPageType (parameters (identifier_name) identifier_name (default_parameter (identifier_number) identifier_number (False) False )default_parameter )parameters (block (if_statement (n...
Returns the type of the page with that name. If that name doesn't exist, None is returned. Args: name (str): name of the page to get the folder from number (bool): if True, return numbers (i.e., a graph will be 3) if False, return words where appropriate (i.e, "graph") Returns:...
(module (function_definition (function_name_SummaryMetadata) function_name_SummaryMetadata (parameters (identifier_self) identifier_self (identifier_run) identifier_run (identifier_tag) identifier_tag )parameters (block (expression_statement (assignment (ident...
Return the summary metadata for the given tag on the given run. Args: run: A string name of the run for which summary metadata is to be retrieved. tag: A string name of the tag whose summary metadata is to be retrieved. Raises: KeyError: If the run is not found, or the tag is...
(module (function_definition (function_name_callback) function_name_callback (parameters (identifier_cfunc) identifier_cfunc )parameters (block (return_statement (call (attribute (attribute (identifier_C) identifier_C (identifier_c_...
Turn a ctypes CFUNCTYPE instance into a value which can be passed into PyROOT
(module (function_definition (function_name__remove_debug_handlers) function_name__remove_debug_handlers (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_remove) identifier_remove (call (i...
Remove any handlers with an attribute of debug_only that is True and remove the references to said handlers from any loggers that are referencing them.
(module (function_definition (function_name_get_or_create) function_name_get_or_create (parameters (identifier_cls) identifier_cls (identifier_issue) identifier_issue (identifier_header) identifier_header (default_parameter (identifier_text) identifier_text (None) None ...
Get or create the dashboard comment in this issue.
(module (function_definition (function_name__compile) function_name__compile (parameters (identifier_self) identifier_self (identifier_dirpath) identifier_dirpath (identifier_makename) identifier_makename (identifier_compiler) identifier_compiler (identifier_debug) identifier_deb...
Compiles the makefile at the specified location with 'compiler'. :arg dirpath: the full path to the directory where the makefile lives. :arg compiler: one of ['ifort', 'gfortran']. :arg makename: the name of the make file to compile.
(module (function_definition (function_name__rgetattr) function_name__rgetattr (parameters (identifier_obj) identifier_obj (identifier_key) identifier_key )parameters (block (for_statement (identifier_k) identifier_k (call (attribute (identifier_...
Recursive getattr for handling dots in keys.
(module (function_definition (function_name_decrypt_filedata) function_name_decrypt_filedata (parameters (identifier_data) identifier_data (identifier_keys) identifier_keys )parameters (block (expression_statement (call (attribute (identifier_data) ident...
Decrypts a file from Send
(module (function_definition (function_name__spawn) function_name__spawn (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_queue) identifier_q...
Initialize the queue and the threads.
(module (function_definition (function_name_make_context) function_name_make_context (parameters (identifier_self) identifier_self (default_parameter (identifier_docker_file) identifier_docker_file (None) None )default_parameter )parameters (block (expression_st...
Determine the docker lines for this image
(module (function_definition (function_name_unit_doomed) function_name_unit_doomed (parameters (default_parameter (identifier_unit) identifier_unit (None) None )default_parameter )parameters (block (if_statement (not_operator (call (ident...
Determines if the unit is being removed from the model Requires Juju 2.4.1. :param unit: string unit name, defaults to local_unit :side effect: calls goal_state :side effect: calls local_unit :side effect: calls has_juju_version :return: True if the unit is being removed, already gone, or neve...
(module (function_definition (function_name_poke) function_name_poke (parameters (identifier_library) identifier_library (identifier_session) identifier_session (identifier_address) identifier_address (identifier_width) identifier_width (identifier_data) identifier_data )para...
Writes an 8, 16 or 32-bit value from the specified address. Corresponds to viPoke* functions of the VISA library. :param library: the visa library wrapped by ctypes. :param session: Unique logical identifier to a session. :param address: Source address to read the value. :param width: Number of bi...
(module (function_definition (function_name_print_yielded) function_name_print_yielded (parameters (identifier_func) identifier_func )parameters (block (expression_statement (assignment (identifier_print_all) identifier_print_all (call (attribute ...
Convert a generator into a function that prints all yielded elements >>> @print_yielded ... def x(): ... yield 3; yield None >>> x() 3 None
(module (function_definition (function_name_copy_shell__) function_name_copy_shell__ (parameters (identifier_self) identifier_self (identifier_new_i) identifier_new_i )parameters (block (for_statement (identifier_prop) identifier_prop (identifier_ONLY_COPY_PROP) ident...
Create all attributes listed in 'ONLY_COPY_PROP' and return `self` with these attributes. :param new_i: object to :type new_i: object :return: object with new properties added :rtype: object
(module (function_definition (function_name_remove_spawned_gates) function_name_remove_spawned_gates (parameters (identifier_self) identifier_self (default_parameter (identifier_spawn_gate) identifier_spawn_gate (None) None )default_parameter )parameters (block ...
Removes all spawned gates.
(module (function_definition (function_name_update_resource) function_name_update_resource (parameters (identifier_self) identifier_self (identifier_resource) identifier_resource (default_parameter (identifier_underlined) identifier_underlined (None) None )default_param...
Update the cache for global names in `resource`
(module (function_definition (function_name_blank_object) function_name_blank_object (parameters (typed_parameter (identifier_obj) identifier_obj (type (identifier_T) identifier_T )type )typed_parameter (typed_parameter (identifier_fieldlist) identif...
Within "obj", sets all fields in the fieldlist to None.
(module (function_definition (function_name_refresh) function_name_refresh (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_table) identifier_table (call (attribute (identifi...
Refreshes the contents of the completer based on the current text.
(module (function_definition (function_name_check_outputs) function_name_check_outputs (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_outpu...
Check for the existence of output files
(module (function_definition (function_name__get_cookies_as_dict) function_name__get_cookies_as_dict (parameters )parameters (block (expression_statement (assignment (identifier_config) identifier_config (call (attribute (identifier_ConfigPar...
Get cookies as a dict
(module (function_definition (function_name_tuple_len) function_name_tuple_len (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (return_statement (attribute (identifier_self) identifier_self (id...
Length of tuples produced by this generator.
(module (function_definition (function_name__k_value_square_reduction) function_name__k_value_square_reduction (parameters (identifier_ent_pipe_id) identifier_ent_pipe_id (identifier_exit_pipe_id) identifier_exit_pipe_id (identifier_re) identifier_re (identifier_f) identifier_f )pa...
Returns the minor loss coefficient for a square reducer. Parameters: ent_pipe_id: Entrance pipe's inner diameter. exit_pipe_id: Exit pipe's inner diameter. re: Reynold's number. f: Darcy friction factor.
(module (function_definition (function_name_remove_not_requested_analyses_view) function_name_remove_not_requested_analyses_view (parameters (identifier_portal) identifier_portal )parameters (block (expression_statement (call (attribute (identifier_logger) ide...
Remove the view 'Not requested analyses" from inside AR
(module (function_definition (function_name_count_unique) function_name_count_unique (parameters (identifier_table) identifier_table (default_parameter (identifier_field) identifier_field (unary_operator (integer_1) integer_1 )unary_operator )default_paramet...
Use the Django ORM or collections.Counter to count unique values of a field in a table `table` is one of: 1. An iterable of Django model instances for a database table (e.g. a Django queryset) 2. An iterable of dicts or lists with elements accessed by row[field] where field can be an integer or string ...
(module (function_definition (function_name_node2geoff) function_name_node2geoff (parameters (identifier_node_name) identifier_node_name (identifier_properties) identifier_properties (identifier_encoder) identifier_encoder )parameters (block (if_statement (identifier_pr...
converts a NetworkX node into a Geoff string. Parameters ---------- node_name : str or int the ID of a NetworkX node properties : dict a dictionary of node attributes encoder : json.JSONEncoder an instance of a JSON encoder (e.g. `json.JSONEncoder`) Returns ------- ...
(module (function_definition (function_name_get_model) function_name_get_model (parameters (identifier_self) identifier_self (identifier_ids) identifier_ids )parameters (block (expression_statement (assignment (identifier_to_get_ids) identifier_to_get_ids ...
Gets the model for the specified motors.
(module (function_definition (function_name_backupIds) function_name_backupIds (parameters (identifier_self) identifier_self )parameters (type (generic_type (identifier_Sequence) identifier_Sequence (type_parameter (type (identifier_int) identifier_int...
Return the list of replicas that don't belong to the master protocol instance
(module (function_definition (function_name_read_pcap_from_source) function_name_read_pcap_from_source (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier__capture_node) identifi...
Return a FileStream of the Pcap from the compute node
(module (function_definition (function_name__compute_length) function_name__compute_length (parameters (identifier_nodes) identifier_nodes )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignmen...
r"""Approximately compute the length of a curve. .. _QUADPACK: https://en.wikipedia.org/wiki/QUADPACK If ``degree`` is :math:`n`, then the Hodograph curve :math:`B'(s)` is degree :math:`d = n - 1`. Using this curve, we approximate the integral: .. math:: \int_{B\left(\left[0, 1\right]\rig...
(module (function_definition (function_name_config_get) function_name_config_get (parameters (identifier_self) identifier_self (default_parameter (identifier_pattern) identifier_pattern (string_'*') string_'*' )default_parameter )parameters (block (expression_st...
Get one or more configuration parameters.
(module (function_definition (function_name__replace) function_name__replace (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwds) identifier_kwds )dictionary_splat_pattern )parameters (block (expression_statement (string_'Ret...
Return a new NamedTuple object replacing specified fields with new values
(module (function_definition (function_name_handle) function_name_handle (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_options) identifier_options )dict...
Collect all comments that hasn't already been classified or are classified as unsure. Order randomly so we don't rehash previously unsure classifieds when count limiting.
(module (function_definition (function_name_find_local_id) function_name_find_local_id (parameters (identifier_self) identifier_self (identifier_name_id) identifier_name_id )parameters (block (try_statement (block (return_statement (subscript ...
Only find persistent IDs :param name_id: :return:
(module (function_definition (function_name_auth) function_name_auth (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_credentials) identifier_credentials (await (call (attrib...
Perform AirPlay device authentication.
(module (function_definition (function_name_repr_args) function_name_repr_args (parameters (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_res) identifier_res (list )list )assignment )exp...
formats a list of function arguments prettily but as working code (kwargs are tuples (argname, argvalue)
(module (function_definition (function_name_facetintervallookupone) function_name_facetintervallookupone (parameters (identifier_table) identifier_table (identifier_key) identifier_key (default_parameter (identifier_start) identifier_start (string_'start') string_'start' ...
Construct a faceted interval lookup for the given table, returning at most one result for each query. If ``strict=True``, queries returning more than one result will raise a `DuplicateKeyError`. If ``strict=False`` and there is more than one result, the first result is returned.
(module (function_definition (function_name_filter_whitespace) function_name_filter_whitespace (parameters (typed_parameter (identifier_mode) identifier_mode (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier_te...
Transform whitespace in ``text`` according to ``mode``. Available modes are: * ``all``: Return all whitespace unmodified. * ``single``: Collapse consecutive whitespace with a single whitespace character, preserving newlines. * ``oneline``: Collapse all runs of whitespace into a single space ...
(module (function_definition (function_name_tail) function_name_tail (parameters (identifier_self) identifier_self (default_parameter (identifier_n) identifier_n (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs ...
Return the last n rows. Execute at once. :param n: :return: result frame :rtype: :class:`odps.df.backends.frame.ResultFrame`
(module (function_definition (function_name_build_insert) function_name_build_insert (parameters (identifier_table_name) identifier_table_name (identifier_attributes) identifier_attributes )parameters (block (expression_statement (assignment (identifier_sql) identif...
Given the table_name and the data, return the sql to insert the data
(module (function_definition (function_name_highpass) function_name_highpass (parameters (identifier_timeseries) identifier_timeseries (identifier_frequency) identifier_frequency (default_parameter (identifier_filter_order) identifier_filter_order (integer_8) integer_8 ...
Return a new timeseries that is highpassed. Return a new time series that is highpassed above the `frequency`. Parameters ---------- Time Series: TimeSeries The time series to be high-passed. frequency: float The frequency below which is suppressed. filter_order: {8, int}, opti...
(module (function_definition (function_name_expose) function_name_expose (parameters (list_splat_pattern (identifier_methods) identifier_methods )list_splat_pattern )parameters (block (function_definition (function_name_setup) function_name_setup (parameters ...
A decorator for exposing the methods of a class. Parameters ---------- *methods : str A str representation of the methods that should be exposed to callbacks. Returns ------- decorator : function A function accepting one argument - the class whose methods will be expose...
(module (function_definition (function_name__next_file) function_name__next_file (parameters (identifier_self) identifier_self )parameters (block (while_statement (True) True (block (if_statement (attribute (identifier_self) identifier_se...
Find next filename. self._filenames may need to be expanded via listbucket. Returns: None if no more file is left. Filename otherwise.
(module (function_definition (function_name_get_level) function_name_get_level (parameters )parameters (block (expression_statement (assignment (pattern_list (identifier_handler) identifier_handler (identifier_logger) identifier_logger )pattern...
Get the logging level of the root handler. :returns: The logging level of the root handler (an integer) or :data:`DEFAULT_LOG_LEVEL` (if no root handler exists).
(module (function_definition (function_name_list_vnets) function_name_list_vnets (parameters (identifier_access_token) identifier_access_token (identifier_subscription_id) identifier_subscription_id )parameters (block (expression_statement (assignment (identifier_en...
List the VNETs in a subscription . Args: access_token (str): A valid Azure authentication token. subscription_id (str): Azure subscription id. Returns: HTTP response. JSON body of VNets list with properties.
(module (function_definition (function_name_tvdb_refresh_token) function_name_tvdb_refresh_token (parameters (identifier_token) identifier_token )parameters (block (expression_statement (assignment (identifier_url) identifier_url (string_"https://api.thetvdb.com...
Refreshes JWT token Online docs: api.thetvdb.com/swagger#!/Authentication/get_refresh_token=
(module (function_definition (function_name__callback) function_name__callback (parameters (identifier_self) identifier_self (identifier_ch) identifier_ch (identifier_method) identifier_method (identifier_properties) identifier_properties (identifier_body) identifier_body )pa...
Internal method that will be called when receiving message.
(module (function_definition (function_name___load) function_name___load (parameters (identifier_self) identifier_self (default_parameter (identifier_redirect) identifier_redirect (True) True )default_parameter (default_parameter (identifier_preload) identifier_...
load the basic page information
(module (function_definition (function_name_name) function_name_name (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (return_statement (subscript (attribute (identifier_TIFF) identifier_TIFF ...
Return name of tag from TIFF.TAGS registry.
(module (function_definition (function_name_total_number) function_name_total_number (parameters (identifier_slug) identifier_slug (default_parameter (identifier_kind) identifier_kind (string_'1') string_'1' )default_parameter )parameters (block (return_statemen...
Return the number of certian slug.
(module (function_definition (function_name_child) function_name_child (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (i...
set childSelector.