sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_create_client_with_manual_poll) function_name_create_client_with_manual_poll
(parameters
(identifier_api_key) identifier_api_key
(default_parameter
(identifier_config_cache_class) identifier_config_cache_class
(None) None
)default_p... | Create an instance of ConfigCatClient and setup Manual Poll mode with custom options
:param api_key: ConfigCat ApiKey to access your configuration.
:param config_cache_class: If you want to use custom caching instead of the client's default InMemoryConfigCache,
You can provide an implementation of ConfigCa... |
(module
(function_definition
(function_name_has_textonly_pdf) function_name_has_textonly_pdf
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_args_tess) identifier_args_tess
(list
(string_'tesseract') string_'tesseract'
... | Does Tesseract have textonly_pdf capability?
Available in v4.00.00alpha since January 2017. Best to
parse the parameter list |
(module
(function_definition
(function_name_Delete) function_name_Delete
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_u... | Deletes the user. |
(module
(function_definition
(function_name_cast_values_csvs) function_name_cast_values_csvs
(parameters
(identifier_d) identifier_d
(identifier_idx) identifier_idx
(identifier_x) identifier_x
)parameters
(block
(try_statement
(block
(expression_statement
... | Attempt to cast string to float. If error, keep as a string.
:param dict d: Data
:param int idx: Index number
:param str x: Data
:return any: |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_friendly_name) identifier_friendly_name
(default_parameter
(identifier_event_callback_url) identifier_event_callback_url
(attribute
(id... | Create a new WorkspaceInstance
:param unicode friendly_name: Human readable description of this workspace
:param unicode event_callback_url: If provided, the Workspace will publish events to this URL.
:param unicode events_filter: Use this parameter to receive webhooks on EventCallbackUrl for s... |
(module
(function_definition
(function_name__get_proc_username) function_name__get_proc_username
(parameters
(identifier_proc) identifier_proc
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
... | Returns the username of a Process instance.
It's backward compatible with < 2.0 versions of psutil. |
(module
(function_definition
(function_name__switch_partition) function_name__switch_partition
(parameters
)parameters
(type
(identifier_RootPartitions) identifier_RootPartitions
)type
(block
(expression_statement
(assignment
(identifier_res) identifier_res
... | Switch the active boot partition using the switch script |
(module
(function_definition
(function_name_ver_cmp) function_name_ver_cmp
(parameters
(identifier_ver1) identifier_ver1
(identifier_ver2) identifier_ver2
)parameters
(block
(return_statement
(call
(identifier_cmp) identifier_cmp
(argument_list
... | Compare lago versions
Args:
ver1(str): version string
ver2(str): version string
Returns:
Return negative if ver1<ver2, zero if ver1==ver2, positive if
ver1>ver2. |
(module
(function_definition
(function_name_get_min_instability) function_name_get_min_instability
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_min_voltage) identifier_min_voltage
(None) None
)default_parameter
(default_parameter
... | The minimum instability along a path for a specific voltage range.
Args:
min_voltage: The minimum allowable voltage.
max_voltage: The maximum allowable voltage.
Returns:
Minimum decomposition energy of all compounds along the insertion
path (a subset of ... |
(module
(function_definition
(function_name_hash) function_name_hash
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_hash) identifier_hash
(argument_list
(binary_operator
(attribute
... | Return checksum to identify pages in same series. |
(module
(function_definition
(function_name__deserialize) function_name__deserialize
(parameters
(identifier_cls) identifier_cls
(identifier_key) identifier_key
(identifier_value) identifier_value
(identifier_fields) identifier_fields
)parameters
(block
(expression_statem... | Marshal incoming data into Python objects. |
(module
(function_definition
(function_name_calc_qpout_v1) function_name_calc_qpout_v1
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_der) identifier_der
(attribute
(attribute
... | Calculate the ARMA results for the different response functions.
Required derived parameter:
|Nmb|
Required flux sequences:
|QMA|
|QAR|
Calculated flux sequence:
|QPOut|
Examples:
Initialize an arma model with three different response functions:
>>> from hyd... |
(module
(function_definition
(function_name_parse_kwargs) function_name_parse_kwargs
(parameters
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_defaultdict) ide... | Convert a list of kwargs into a dictionary. Duplicates of the same keyword
get added to an list within the dictionary.
>>> parse_kwargs(['--var1=1', '--var2=2', '--var1=3']
{'var1': [1, 3], 'var2': 2} |
(module
(function_definition
(function_name_get_script_property) function_name_get_script_property
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_is_bytes) identifier_is_bytes
(False) False
)default_parameter
)parameters
(block
(e... | Get `SC` property. |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
(identifier_region) identifier_region
(dictionary_splat_pattern
(identifier_kw_params) identifier_kw_params
)dictionary_splat_pattern
)parameters
(bl... | Connect to a EC2.
:param region: The name of the region to connect to.
:type region: str
:param kw_params:
:type kw_params: dict |
(module
(function_definition
(function_name_get_record_types) function_name_get_record_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
... | Gets the record types available in this object.
A record ``Type`` explicitly indicates the specification of an
interface to the record. A record may or may not inherit other
record interfaces through interface inheritance in which case
support of a record type may not be explicit in the... |
(module
(function_definition
(function_name_default) function_name_default
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(identifier_ensure_unicode) iden... | Return last changes in truncated unified diff format |
(module
(function_definition
(function_name_defaults) function_name_defaults
(parameters
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(call
(identifier_str) identifi... | return a dictionary with default option values and description |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_entity) identifier_entity
)parameters
(block
(expression_statement
(assignment
(identifier_characteristic) identifier_characteristic
... | Add entity to index.
:param object entity: single object to add to box's index |
(module
(function_definition
(function_name_zip_dict) function_name_zip_dict
(parameters
(typed_parameter
(identifier_a) identifier_a
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_st... | Combine the values within two dictionaries by key.
:param a: The first dictionary.
:param b: The second dictionary.
:return: A dictionary containing all keys that appear in the union of a and
b. Values are pairs where the first part is a's value for the key,
and right second part ... |
(module
(function_definition
(function_name_get_commits) function_name_get_commits
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_since_sha) identifier_since_sha
(None) None
)default_parameter
)parameters
(block
(assert_statement
... | Returns a list of Commit objects.
Args:
since_sha - (optional) A sha to search from |
(module
(function_definition
(function_name_set_ard_time) function_name_set_ard_time
(parameters
(identifier_self) identifier_self
(identifier_us) identifier_us
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
... | Set the ACK retry delay for radio communication |
(module
(function_definition
(function_name__default) function_name__default
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(return_statement
(conditional_expression
(attribute
(identifier_obj) identifier... | return a serialized version of obj or raise a TypeError
:param obj:
:return: Serialized version of obj |
(module
(function_definition
(function_name_request_login) function_name_request_login
(parameters
(identifier_blink) identifier_blink
(identifier_url) identifier_url
(identifier_username) identifier_username
(identifier_password) identifier_password
(default_parameter
(i... | Login request.
:param blink: Blink instance.
:param url: Login url.
:param username: Blink username.
:param password: Blink password.
:param is_retry: Is this part of a re-authorization attempt? |
(module
(function_definition
(function_name_get_as_float_with_default) function_name_get_as_float_with_default
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
(identifier_default_value) identifier_default_value
)parameters
(block
(expression_st... | Converts array element into a float or returns default value if conversion is not possible.
:param index: an index of element to get.
:param default_value: the default value
:return: float value ot the element or default value if conversion is not supported. |
(module
(function_definition
(function_name__auto_commit) function_name__auto_commit
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
... | Check if we have to commit based on number of messages and commit |
(module
(function_definition
(function_name_updateData) function_name_updateData
(parameters
(identifier_self) identifier_self
(identifier_exten) identifier_exten
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifie... | Write out updated data and header to
the original input file for this object. |
(module
(function_definition
(function_name_languages_column) function_name_languages_column
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_languages) identifier_language... | Adds languages columns. |
(module
(function_definition
(function_name_ip) function_name_ip
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__ip) identifier__ip
)at... | return bot's ip as an ``ip_address`` object |
(module
(function_definition
(function_name_dicomdir_info) function_name_dicomdir_info
(parameters
(identifier_dirpath) identifier_dirpath
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_... | Get information about series in dir |
(module
(function_definition
(function_name_checkout) function_name_checkout
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)di... | This function checks out source code. |
(module
(function_definition
(function_name_get_session_key) function_name_get_session_key
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_password_hash) identifier_password_hash
)parameters
(block
(expression_statement
... | Retrieve a session key with a username and a md5 hash of the user's
password. |
(module
(function_definition
(function_name_set_level) function_name_set_level
(parameters
(identifier_level) identifier_level
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_Logger) identifier_Logger
(identifier_level) ... | Set level of logging for all loggers.
Args:
level (int): level of logging. |
(module
(function_definition
(function_name_pack_value) function_name_pack_value
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_li... | Convert 8-byte string into 16-byte list |
(module
(function_definition
(function_name__delete_partition) function_name__delete_partition
(parameters
(identifier_self) identifier_self
(identifier_tenant_id) identifier_tenant_id
(identifier_tenant_name) identifier_tenant_name
)parameters
(block
(expression_statement
... | Function to delete a service partition. |
(module
(function_definition
(function_name__token_extensions) function_name__token_extensions
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_token_provider) identifier_token_provider
(subscript
... | Return a string representation of the OPTIONAL key-value pairs that can be sent with an OAUTHBEARER
initial request. |
(module
(function_definition
(function_name__build_indexes) function_name__build_indexes
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
... | Build indexes from data for fast filtering of data.
Building indexes of data when possible. This is only supported when dealing with a
List of Dictionaries with String values. |
(module
(function_definition
(function_name_show_grid) function_name_show_grid
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
... | A wrapped implementation of ``show_bounds`` to change default
behaviour to use gridlines and showing the axes labels on the outer
edges. This is intended to be silimar to ``matplotlib``'s ``grid``
function. |
(module
(function_definition
(function_name_get_model) function_name_get_model
(parameters
(default_parameter
(identifier_with_pipeline) identifier_with_pipeline
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(i... | Get a multi-layer perceptron model.
Optionally, put it in a pipeline that scales the data. |
(module
(function_definition
(function_name_print) function_name_print
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
... | Print self. |
(module
(function_definition
(function_name_desaturate) function_name_desaturate
(parameters
(identifier_self) identifier_self
(identifier_level) identifier_level
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_h) identifie... | Create a new instance based on this one but less saturated.
Parameters:
:level:
The amount by which the color should be desaturated to produce
the new one [0...1].
Returns:
A grapefruit.Color instance.
>>> Color.from_hsl(30, 0.5, 0.5).desaturate(0.25)
Color(0.625, 0.5, 0.3... |
(module
(function_definition
(function_name_from_json) function_name_from_json
(parameters
(identifier_cls) identifier_cls
(identifier_json_data) identifier_json_data
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(c... | Tries to convert a JSON representation to an object of the same
type as self
A class can provide a _fromJSON implementation in order to do specific
type checking or other custom implementation details. This method
will throw a ValueError for invalid JSON, a TypeError for
imprope... |
(module
(function_definition
(function_name__udp_transact) function_name__udp_transact
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
(identifier_handler) identifier_handler
(list_splat_pattern
(identifier_args) identifier_args
)list... | Complete a UDP transaction.
UDP is stateless and not guaranteed, so we have to
take some mitigation steps:
- Send payload multiple times.
- Wait for awhile to receive response.
:param payload: Payload to send.
:param handler: Response handler.
:param args: Argum... |
(module
(function_definition
(function_name_match_sr) function_name_match_sr
(parameters
(identifier_self) identifier_self
(identifier_svc_ref) identifier_svc_ref
(default_parameter
(identifier_cid) identifier_cid
(None) None
)default_parameter
)parameters
(bloc... | Checks if this export registration matches the given service reference
:param svc_ref: A service reference
:param cid: A container ID
:return: True if the service matches this export registration |
(module
(function_definition
(function_name__delete_masked_points) function_name__delete_masked_points
(parameters
(list_splat_pattern
(identifier_arrs) identifier_arrs
)list_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_any) identifier_an... | Delete masked points from arrays.
Takes arrays and removes masked points to help with calculations and plotting.
Parameters
----------
arrs : one or more array-like
source arrays
Returns
-------
arrs : one or more array-like
arrays with masked elements removed |
(module
(function_definition
(function_name_filter_ignoring_case) function_name_filter_ignoring_case
(parameters
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_s... | Like ``filter`` but case-insensitive.
Expects a regular expression string without the surrounding ``/``
characters.
>>> see().filter('^my', ignore_case=True)
MyClass() |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_maximum_version) identifier_maximum_version
(None) None
)default_parameter
(default_parameter
(identifier_requir... | Update a PowerShell module to a specific version, or the newest
:param name: Name of a Powershell module
:type name: ``str``
:param maximum_version: The maximum version to install, e.g. 1.23.2
:type maximum_version: ``str``
:param required_version: Install a specific version
:type required... |
(module
(function_definition
(function_name_add_to_obj) function_name_add_to_obj
(parameters
(identifier_obj) identifier_obj
(identifier_dictionary) identifier_dictionary
(default_parameter
(identifier_objs) identifier_objs
(None) None
)default_parameter
(default_... | Cycles through a dictionary and adds the key-value pairs to an object.
:param obj:
:param dictionary:
:param exceptions:
:param verbose:
:return: |
(module
(function_definition
(function_name_imagetransformerpp_base_14l_8h_big_uncond_dr03_dan_p) function_name_imagetransformerpp_base_14l_8h_big_uncond_dr03_dan_p
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_hparams) identifier_hparams
... | Gets to 2.92 in just under 4 days on 8 p100s. |
(module
(function_definition
(function_name_make_field) function_name_make_field
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(ass... | create serializer field |
(module
(function_definition
(function_name_version) function_name_version
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(string_'lvm version') string_'lvm version'
)assignment
)expression_statement
... | Return LVM version from lvm version
CLI Example:
.. code-block:: bash
salt '*' lvm.version |
(module
(function_definition
(function_name_get_formatted_string) function_name_get_formatted_string
(parameters
(identifier_self) identifier_self
(identifier_input_string) identifier_input_string
)parameters
(block
(if_statement
(call
(identifier_isinstance) identi... | Return formatted value for input_string.
get_formatted gets a context[key] value.
get_formatted_string is for any arbitrary string that is not in the
context.
Only valid if input_string is a type string.
Return a string interpolated from the context dictionary.
If inpu... |
(module
(function_definition
(function_name_setupTable_vmtx) function_name_setupTable_vmtx
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(string_"vmtx") string_"vmtx"
(attribute
(identifier_self) ... | Make the vmtx table.
**This should not be called externally.** Subclasses
may override or supplement this method to handle the
table creation in a different way if desired. |
(module
(function_definition
(function_name_get_message) function_name_get_message
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(string_'') string_''
)assignment
... | Return the message embedded in the JSON error response body,
or an empty string if the JSON couldn't be parsed. |
(module
(function_definition
(function_name_list) function_name_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_databases) identifier_databases
(list
)list
)assignment
)e... | List all the databases on the given path.
:return: |
(module
(function_definition
(function_name_WriteFromFD) function_name_WriteFromFD
(parameters
(identifier_self) identifier_self
(identifier_src_fd) identifier_src_fd
(default_parameter
(identifier_arcname) identifier_arcname
(None) None
)default_parameter
(defaul... | Write a zip member from a file like object.
Args:
src_fd: A file like object, must support seek(), tell(), read().
arcname: The name in the archive this should take.
compress_type: Compression type (zipfile.ZIP_DEFLATED, or ZIP_STORED)
st: An optional stat object to be used for setting head... |
(module
(function_definition
(function_name_get_allowed_methods) function_name_get_allowed_methods
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
... | Return a list of the valid HTTP methods for this endpoint. |
(module
(function_definition
(function_name_pub) function_name_pub
(parameters
(identifier_self) identifier_self
(identifier_topic) identifier_topic
(identifier_message) identifier_message
)parameters
(block
(return_statement
(call
(attribute
(iden... | Publish to a topic |
(module
(function_definition
(function_name_times) function_name_times
(parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_fn) i... | Do something a random amount of times
between x & y |
(module
(function_definition
(function_name_recursive_apply) function_name_recursive_apply
(parameters
(identifier_inval) identifier_inval
(identifier_func) identifier_func
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
... | Recursively apply a function to all levels of nested iterables
:param inval: the object to run the function on
:param func: the function that will be run on the inval |
(module
(function_definition
(function_name_get_account) function_name_get_account
(parameters
(identifier_self) identifier_self
(identifier_account) identifier_account
(default_parameter
(identifier_use_sis_id) identifier_use_sis_id
(False) False
)default_parameter
... | Retrieve information on an individual account.
:calls: `GET /api/v1/accounts/:id \
<https://canvas.instructure.com/doc/api/accounts.html#method.accounts.show>`_
:param account: The object or ID of the account to retrieve.
:type account: int, str or :class:`canvasapi.account.Account`
... |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_validate_url) identifier_validate_url
(string_"https://api.pushover.net/1/... | Validate the user and token, returns the Requests response. |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_code) identifier_code
(type
(identifier_int) identifier_int
)type
(integer_1000) integer_1000
)t... | This coroutine performs the closing handshake.
It waits for the other end to complete the handshake and for the TCP
connection to terminate. As a consequence, there's no need to await
:meth:`wait_closed`; :meth:`close` already does it.
:meth:`close` is idempotent: it doesn't do anythin... |
(module
(function_definition
(function_name_lrange) function_name_lrange
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_start) identifier_start
(identifier_stop) identifier_stop
)parameters
(block
(with_statement
(with_... | Returns a range of items.
:param name: str the name of the redis key
:param start: integer representing the start index of the range
:param stop: integer representing the size of the list.
:return: Future() |
(module
(function_definition
(function_name_labels) function_name_labels
(parameters
(identifier_data) identifier_data
(identifier_label_column) identifier_label_column
(default_parameter
(identifier_color) identifier_color
(None) None
)default_parameter
(default_... | Draw a text label for each sample
:param data: data access object
:param label_column: column in the data access object where the labels text is stored
:param color: color
:param font_name: font name
:param font_size: font size
:param anchor_x: anchor x
:param anchor_y: anchor y |
(module
(function_definition
(function_name__start_primary) function_name__start_primary
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
... | Start as the primary |
(module
(function_definition
(function_name_populate_items) function_name_populate_items
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_sel... | populate and returns filtered items |
(module
(function_definition
(function_name_parent_tags) function_name_parent_tags
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(identifier_set) identifier_... | Provides tags of all parent HTML elements. |
(module
(function_definition
(function_name_prepare) function_name_prepare
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionar... | Handles transforming the provided data into the fielded data that should
be exposed to the end user.
Uses the ``lookup_data`` method to traverse dotted paths.
Returns a dictionary of data as the response. |
(module
(function_definition
(function_name__spacingx) function_name__spacingx
(parameters
(identifier_node) identifier_node
(identifier_max_dims) identifier_max_dims
(identifier_xoffset) identifier_xoffset
(identifier_xspace) identifier_xspace
)parameters
(block
(express... | Determine the spacing of the current node depending on the number
of the leaves of the tree |
(module
(function_definition
(function_name_get_networks_by_name) function_name_get_networks_by_name
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter... | Get all networks with the given name. Useful for getting all versions of a given network. |
(module
(function_definition
(function_name_plot_vyx) function_name_plot_vyx
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_colorbar) identifier_colorbar
(True) True
)default_parameter
(default_parameter
(identifier_cb_orientation) ... | Plot the Vyx component of the tensor.
Usage
-----
x.plot_vyx([tick_interval, xlabel, ylabel, ax, colorbar,
cb_orientation, cb_label, show, fname])
Parameters
----------
tick_interval : list or tuple, optional, default = [30, 30]
Intervals... |
(module
(function_definition
(function_name__get_variable) function_name__get_variable
(parameters
(identifier_vid) identifier_vid
(identifier_variables) identifier_variables
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
... | Retrieve an input variable from our existing pool of options. |
(module
(function_definition
(function_name_can_handle) function_name_can_handle
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_text) identifier_text
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
... | Check whether this parser can parse the text |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(attribu... | Parses a date string formatted like ``YYYY-MM-DD``. |
(module
(function_definition
(function_name_configure_for_kerberos) function_name_configure_for_kerberos
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_datanode_transceiver_port) identifier_datanode_transceiver_port
(None) None
)default_parameter... | Command to configure the cluster to use Kerberos for authentication.
This command will configure all relevant services on a cluster for
Kerberos usage. This command will trigger a GenerateCredentials command
to create Kerberos keytabs for all roles in the cluster.
@param datanode_transceiver_port: Th... |
(module
(function_definition
(function_name__update_entry) function_name__update_entry
(parameters
(identifier_entry) identifier_entry
(identifier_status) identifier_status
(identifier_directives) identifier_directives
)parameters
(block
(for_statement
(pattern_list
... | Update an entry's attributes using the provided directives
:param entry:
A dict mapping each attribute name to a set of its values
:param status:
A dict holding cross-invocation status (whether delete_others
is True or not, and the set of mentioned attributes)
:param directives:
... |
(module
(function_definition
(function_name__get_value) function_name__get_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_x) identifier_x
(identifier_y) identifier_... | Return two delegating variables. Each variable should contain
a value attribute with the real value. |
(module
(function_definition
(function_name_configure_arrays) function_name_configure_arrays
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier... | Get the SCI and ERR data. |
(module
(function_definition
(function_name_cache_key) function_name_cache_key
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters... | Base method for computing the cache key with respect to the given
arguments. |
(module
(function_definition
(function_name_badge) function_name_badge
(parameters
(identifier_pipeline_id) identifier_pipeline_id
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_pipeline_id) identifier_pipeline_id
... | An individual pipeline status |
(module
(function_definition
(function_name_sendto) function_name_sendto
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_component) identifier_component
)parameters
(block
(expression_statement
(assignment
(identifie... | Send a datagram on the specified component.
If the connection is not established, a `ConnectionError` is raised. |
(module
(function_definition
(function_name__registerNode) function_name__registerNode
(parameters
(identifier_self) identifier_self
(identifier_nodeAddress) identifier_nodeAddress
(identifier_agentId) identifier_agentId
(default_parameter
(identifier_nodePort) identifier_nodeP... | Called when we get communication from an agent. Remembers the
information about the agent by address, and the agent address by agent
ID. |
(module
(function_definition
(function_name_pair_hmm_align_unaligned_seqs) function_name_pair_hmm_align_unaligned_seqs
(parameters
(identifier_seqs) identifier_seqs
(default_parameter
(identifier_moltype) identifier_moltype
(identifier_DNA_cogent) identifier_DNA_cogent
)defau... | Checks parameters for pairwise alignment, returns alignment.
Code from Greg Caporaso. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(typed_parameter
(identifier_gc) identifier_gc
(type
(identifier_GroupControl) identifier_GroupControl
)type
)typed_parameter
(identifier_name) identifier_name
(identi... | Create new group |
(module
(function_definition
(function_name__build_toc_node) function_name__build_toc_node
(parameters
(identifier_docname) identifier_docname
(default_parameter
(identifier_anchor) identifier_anchor
(string_"anchor") string_"anchor"
)default_parameter
(default_paramete... | Create the node structure that Sphinx expects for TOC Tree entries.
The ``bullet`` argument wraps it in a ``nodes.bullet_list``,
which is how you nest TOC Tree entries. |
(module
(function_definition
(function_name__hdparm) function_name__hdparm
(parameters
(identifier_args) identifier_args
(default_parameter
(identifier_failhard) identifier_failhard
(True) True
)default_parameter
)parameters
(block
(expression_statement
... | Execute hdparm
Fail hard when required
return output when possible |
(module
(function_definition
(function_name__start_loop) function_name__start_loop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(call
(attribute
(id... | Starts main event handler loop, run in handler thread t. |
(module
(function_definition
(function_name__upload_simple) function_name__upload_simple
(parameters
(identifier_self) identifier_self
(identifier_upload_info) identifier_upload_info
(default_parameter
(identifier__) identifier__
(None) None
)default_parameter
)para... | Simple upload and return quickkey
Can be used for small files smaller than UPLOAD_SIMPLE_LIMIT_BYTES
upload_info -- UploadInfo object
check_result -- ignored |
(module
(function_definition
(function_name_batch_get_assets_history) function_name_batch_get_assets_history
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
(identifier_content_type) identifier_content_type
(identifier_read_time_window) identifier_re... | Batch gets the update history of assets that overlap a time window. For
RESOURCE content, this API outputs history with asset in both non-delete
or deleted status. For IAM\_POLICY content, this API outputs history
when the asset and its attached IAM POLICY both exist. This can create
gap... |
(module
(function_definition
(function_name__convert_template_option) function_name__convert_template_option
(parameters
(identifier_template) identifier_template
)parameters
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(diction... | Convert Tabula app template to tabula-py option
Args:
template (dict): Tabula app template
Returns:
`obj`:dict: tabula-py option |
(module
(function_definition
(function_name_autobuild_onlycopy) function_name_autobuild_onlycopy
(parameters
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_family) identifier_family
(call
... | Autobuild a project that does not require building firmware, pcb or documentation |
(module
(function_definition
(function_name_get_staff) function_name_get_staff
(parameters
(identifier_self) identifier_self
(identifier_gradebook_id) identifier_gradebook_id
(default_parameter
(identifier_simple) identifier_simple
(False) False
)default_parameter
)... | Get staff list for gradebook.
Get staff list for the gradebook specified. Optionally, return
a less detailed list by specifying ``simple = True``.
If simple=True, return a list of dictionaries, one dictionary
for each member. The dictionary contains a member's ``email``,
``disp... |
(module
(function_definition
(function_name_get_authors) function_name_get_authors
(parameters
(identifier_self) identifier_self
(identifier_entry) identifier_entry
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifie... | Return the authors in HTML. |
(module
(function_definition
(function_name_as_text) function_name_as_text
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_max_rows) identifier_max_rows
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_sep) ide... | Format table as text. |
(module
(function_definition
(function_name__estimate_centers_widths) function_name__estimate_centers_widths
(parameters
(identifier_self) identifier_self
(identifier_unique_R) identifier_unique_R
(identifier_inds) identifier_inds
(identifier_X) identifier_X
(identifier_W) identi... | Estimate centers and widths
Parameters
----------
unique_R : a list of array,
Each element contains unique value in one dimension of
coordinate matrix R.
inds : a list of array,
Each element contains the indices to reconstruct one
dimens... |
(module
(function_definition
(function_name__GetCachedEntryDataTypeMap) function_name__GetCachedEntryDataTypeMap
(parameters
(identifier_self) identifier_self
(identifier_format_type) identifier_format_type
(identifier_value_data) identifier_value_data
(identifier_cached_entry_offset) ... | Determines the cached entry data type map.
Args:
format_type (int): format type.
value_data (bytes): value data.
cached_entry_offset (int): offset of the first cached entry data
relative to the start of the value data.
Returns:
dtfabric.DataTypeMap: data type map which contai... |
(module
(function_definition
(function_name__unhandled_event_default) function_name__unhandled_event_default
(parameters
(identifier_event) identifier_event
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Default unhandled event handler for handling simple scene navigation. |
(module
(function_definition
(function_name_Find) function_name_Find
(parameters
(identifier_cls) identifier_cls
(identifier_setting_matcher) identifier_setting_matcher
(default_parameter
(identifier_port_path) identifier_port_path
(None) None
)default_parameter
(... | Gets the first device that matches according to the keyword args. |
(module
(function_definition
(function_name_enable_vmm_statistics) function_name_enable_vmm_statistics
(parameters
(identifier_self) identifier_self
(identifier_enable) identifier_enable
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is... | Enables or disables collection of VMM RAM statistics.
in enable of type bool
True enables statistics collection.
raises :class:`VBoxErrorInvalidVmState`
Machine session is not open.
raises :class:`VBoxErrorInvalidObjectState`
Session type is not dir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.