sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__apply_decorator_to_methods) function_name__apply_decorator_to_methods
(parameters
(identifier_cls) identifier_cls
(identifier_decorator) identifier_decorator
)parameters
(block
(for_statement
(identifier_method) identifier_method
... | This helper can apply a given decorator to all methods on the current
Resource.
NOTE: In contrast to ``Resource.method_decorators``, which has a
similar use-case, this method applies decorators directly and override
methods in-place, while the decorators listed in
``Resource.met... |
(module
(function_definition
(function_name_result_anything_found) function_name_result_anything_found
(parameters
(identifier_result) identifier_result
)parameters
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
(str... | Interim solution for the fact that sometimes determine_scanning_method can
legitimately return a valid scanning method, but it results that the site
does not belong to a particular CMS.
@param result: the result as passed to Output.result()
@return: whether anything was found. |
(module
(function_definition
(function_name_create_order_keyword_list) function_name_create_order_keyword_list
(parameters
(identifier_keywords) identifier_keywords
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
... | Takes a given keyword list and returns a ready-to-go
list of possible ordering values.
Example: ['foo'] returns [('foo', ''), ('-foo', '')] |
(module
(function_definition
(function_name_import_object_ns) function_name_import_object_ns
(parameters
(identifier_name_space) identifier_name_space
(identifier_import_str) identifier_import_str
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(... | Tries to import object from default namespace.
Imports a class and return an instance of it, first by trying
to find the class in a default namespace, then failing back to
a full path if not found in the default namespace. |
(module
(function_definition
(function_name_add_workflow_definitions) function_name_add_workflow_definitions
(parameters
(typed_parameter
(identifier_sbi_config) identifier_sbi_config
(type
(identifier_dict) identifier_dict
)type
)typed_parameter
)parameters
... | Add any missing SBI workflow definitions as placeholders.
This is a utility function used in testing and adds mock / test workflow
definitions to the database for workflows defined in the specified
SBI config.
Args:
sbi_config (dict): SBI configuration dictionary. |
(module
(function_definition
(function_name_map_cluster) function_name_map_cluster
(parameters
(identifier_events) identifier_events
(identifier_cluster) identifier_cluster
)parameters
(block
(expression_statement
(assignment
(identifier_cluster) identifier_cluster
... | Maps the cluster hits on events. Not existing hits in events have all values set to 0 |
(module
(function_definition
(function_name_treeAggregate) function_name_treeAggregate
(parameters
(identifier_self) identifier_self
(identifier_zeroValue) identifier_zeroValue
(identifier_seqOp) identifier_seqOp
(identifier_combOp) identifier_combOp
(default_parameter
(i... | Aggregates the elements of this RDD in a multi-level tree
pattern.
:param depth: suggested depth of the tree (default: 2)
>>> add = lambda x, y: x + y
>>> rdd = sc.parallelize([-5, -4, -3, -2, -1, 1, 2, 3, 4], 10)
>>> rdd.treeAggregate(0, add, add)
-5
>>> rdd.tr... |
(module
(function_definition
(function_name_logout) function_name_logout
(parameters
(identifier_self) identifier_self
(identifier_refresh_token) identifier_refresh_token
)parameters
(block
(return_statement
(call
(attribute
(attribute
(att... | The logout endpoint logs out the authenticated user.
:param str refresh_token: |
(module
(function_definition
(function_name__insert_breathe_configs) function_name__insert_breathe_configs
(parameters
(identifier_c) identifier_c
(keyword_separator
)keyword_separator
(identifier_project_name) identifier_project_name
(identifier_doxygen_xml_dirname) identifier_d... | Add breathe extension configurations to the state. |
(module
(function_definition
(function_name_runSearchReadGroupSets) function_name_runSearchReadGroupSets
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(return_statement
(call
(attribute
(identifi... | Runs the specified SearchReadGroupSetsRequest. |
(module
(function_definition
(function_name_ip_in_ip_mask) function_name_ip_in_ip_mask
(parameters
(identifier_ip) identifier_ip
(identifier_mask_ip) identifier_mask_ip
(identifier_mask) identifier_mask
)parameters
(block
(expression_statement
(assignment
(ide... | Checks whether an ip is contained in an ip subnet where the subnet is stated as an ip in the dotted format, and a hex mask |
(module
(function_definition
(function_name_push_resource_cache) function_name_push_resource_cache
(parameters
(identifier_resourceid) identifier_resourceid
(identifier_info) identifier_info
)parameters
(block
(if_statement
(not_operator
(identifier_resourceid) iden... | Cache resource specific information
:param resourceid: Resource id as string
:param info: Dict to push
:return: Nothing |
(module
(function_definition
(function_name_add_host) function_name_add_host
(parameters
(identifier_host) identifier_host
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_new_prefix) identifier_new_p... | Put your host information in the prefix object. |
(module
(function_definition
(function_name_clean_session_table) function_name_clean_session_table
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_sessions) identifier_sessions
(call
(attribute
(call
... | Automatically clean session table.
To enable a periodically clean of the session table, you should configure
the task as a celery periodic task.
.. code-block:: python
from datetime import timedelta
CELERYBEAT_SCHEDULE = {
'session_cleaner': {
'task': 'invenio_... |
(module
(function_definition
(function_name___read_docker_compose_file) function_name___read_docker_compose_file
(parameters
(identifier_file_path) identifier_file_path
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
... | Read the compose file if it exists in the directory
:param file_path:
:return: |
(module
(function_definition
(function_name_get_file_hash) function_name_get_file_hash
(parameters
(identifier_fd) identifier_fd
(identifier_hashfunc) identifier_hashfunc
(default_parameter
(identifier_fd_len) identifier_fd_len
(None) None
)default_parameter
)parame... | Get the hex-encoded hash of the fd's data |
(module
(function_definition
(function_name_get_contents_sig) function_name_get_contents_sig
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(attribute
(identifier_self) identifier_self
... | A helper method for get_cachedir_bsig.
It computes and returns the signature for this
node's contents. |
(module
(function_definition
(function_name__sge_info) function_name__sge_info
(parameters
(identifier_queue) identifier_queue
)parameters
(block
(expression_statement
(assignment
(identifier_qhost_out) identifier_qhost_out
(call
(attribute
... | Returns machine information for an sge job scheduler. |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_cls) identifier_cls
(identifier_metadata) identifier_metadata
)parameters
(block
(expression_statement
(assignment
(identifier_hyperparameters) identifier_hyperpar... | Create a new MLPipeline from a dict specification.
The dict structure is the same as the one created by the `to_dict` method.
Args:
metadata (dict): Dictionary containing the pipeline specification.
Returns:
MLPipeline:
A new MLPipeline instance with th... |
(module
(function_definition
(function_name_send_quick_chat_from_agent) function_name_send_quick_chat_from_agent
(parameters
(identifier_self) identifier_self
(identifier_team_only) identifier_team_only
(identifier_quick_chat) identifier_quick_chat
)parameters
(block
(expressio... | Passes the agents quick chats to the game, and also to other python bots.
This does perform limiting.
You are limited to 5 quick chats in a 2 second period starting from the first chat.
This means you can spread your chats out to be even within that 2 second period.
You could spam them i... |
(module
(function_definition
(function_name_get_user_stats) function_name_get_user_stats
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(c... | Return data about the given user. Returns None if user
does not exist. |
(module
(function_definition
(function_name_apns_send_bulk_message) function_name_apns_send_bulk_message
(parameters
(identifier_registration_ids) identifier_registration_ids
(identifier_alert) identifier_alert
(default_parameter
(identifier_application_id) identifier_application_id
... | Sends an APNS notification to one or more registration_ids.
The registration_ids argument needs to be a list.
Note that if set alert should always be a string. If it is not set,
it won"t be included in the notification. You will need to pass None
to this for silent notifications. |
(module
(function_definition
(function_name_convert_transpose) function_name_convert_transpose
(parameters
(identifier_net) identifier_net
(identifier_node) identifier_node
(identifier_module) identifier_module
(identifier_builder) identifier_builder
)parameters
(block
(e... | Convert a transpose layer from mxnet to coreml.
Parameters
----------
network: net
A mxnet network object.
layer: node
Node to convert.
module: module
An module for MXNet
builder: NeuralNetworkBuilder
A neural network builder object. |
(module
(function_definition
(function_name_rectangle_centroid) function_name_rectangle_centroid
(parameters
(identifier_rectangle) identifier_rectangle
)parameters
(block
(expression_statement
(assignment
(identifier_bbox) identifier_bbox
(subscript
... | get the centroid of the rectangle
Keyword arguments:
rectangle -- polygon geojson object
return centroid |
(module
(function_definition
(function_name_configure_logger) function_name_configure_logger
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_logger_name) identifier_logger_name
(string_'brome_runner'... | Configure the test batch runner logger |
(module
(function_definition
(function_name_has_pending) function_name_has_pending
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_workqueue) identifier_workqueue
)at... | Return True if there are pending test items.
This indicates that collection has finished and nodes are still
processing test items, so this can be thought of as
"the scheduler is active". |
(module
(function_definition
(function_name_command) function_name_command
(parameters
(identifier_self) identifier_self
(identifier_details) identifier_details
)parameters
(block
(expression_statement
(assignment
(identifier_log) identifier_log
(call
... | Handles executing a command-based event. This starts the command
as specified in the 'commands' section of the task config.
A separate event is registered to handle the command exit. This
simply logs the exit status. |
(module
(function_definition
(function_name_message_info) function_name_message_info
(parameters
(identifier_exchange) identifier_exchange
(identifier_routing_key) identifier_routing_key
(identifier_properties) identifier_properties
)parameters
(block
(expression_statement
... | Return info about a message using the same conditional constructs
:param str exchange: The exchange the message was published to
:param str routing_key: The routing key used
:param properties: The AMQP message properties
:type properties: pika.spec.Basic.Properties
:rtype: str |
(module
(function_definition
(function_name_create_chat) function_name_create_chat
(parameters
(identifier_self) identifier_self
(identifier_blogname) identifier_blogname
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
... | Create a chat post on a blog
:param blogname: a string, the url of the blog you want to post to.
:param state: a string, The state of the post.
:param tags: a list of tags that you want applied to the post
:param tweet: a string, the customized tweet that you want
:param date: a... |
(module
(function_definition
(function_name_save_map) function_name_save_map
(parameters
(identifier_self) identifier_self
(identifier_map_path) identifier_map_path
(identifier_map_data) identifier_map_data
)parameters
(block
(return_statement
(call
(attribute... | Save a map into temp dir so create game can access it in multiplayer. |
(module
(function_definition
(function_name__tokens_to_subtoken_ids) function_name__tokens_to_subtoken_ids
(parameters
(identifier_self) identifier_self
(identifier_tokens) identifier_tokens
)parameters
(block
(expression_statement
(assignment
(identifier_ret) ident... | Converts a list of tokens to a list of subtoken ids.
Args:
tokens: a list of strings.
Returns:
a list of integers in the range [0, vocab_size) |
(module
(function_definition
(function_name_yaml_encode) function_name_yaml_encode
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_yrepr) identifier_yrepr
(call
(attribute
(... | A simple YAML encode that can take a single-element datatype and return
a string representation. |
(module
(function_definition
(function_name_get_register) function_name_get_register
(parameters
(identifier_self) identifier_self
(identifier_cpu_id) identifier_cpu_id
(identifier_name) identifier_name
)parameters
(block
(if_statement
(not_operator
(call
... | Gets one register.
in cpu_id of type int
The identifier of the Virtual CPU.
in name of type str
The register name, case is ignored.
return value of type str
The register value. This is usually a hex value (always 0x prefixed)
but other format ma... |
(module
(function_definition
(function_name_console_get_height_rect) function_name_console_get_height_rect
(parameters
(typed_parameter
(identifier_con) identifier_con
(type
(attribute
(attribute
(identifier_tcod) identifier_tcod
(identif... | Return the height of this text once word-wrapped into this rectangle.
Returns:
int: The number of lines of text once word-wrapped.
.. deprecated:: 8.5
Use :any:`Console.get_height_rect` instead. |
(module
(function_definition
(function_name__chunkForSend) function_name__chunkForSend
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_LIMIT) identifier_LIMIT
... | limit the chunks that we send over PB to 128k, since it has a hardwired
string-size limit of 640k. |
(module
(function_definition
(function_name_get_password) function_name_get_password
(parameters
(identifier_hsm) identifier_hsm
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_expected_len) identifier_expected_len
... | Get password of correct length for this YubiHSM version. |
(module
(function_definition
(function_name_filter_lines_from_comments) function_name_filter_lines_from_comments
(parameters
(identifier_lines) identifier_lines
)parameters
(block
(for_statement
(pattern_list
(identifier_line_nb) identifier_line_nb
(identifier_r... | Filter the lines from comments and non code lines. |
(module
(function_definition
(function_name_get_word_app) function_name_get_word_app
(parameters
)parameters
(block
(if_statement
(not_operator
(call
(identifier_has_word) identifier_has_word
(argument_list
)argument_list
)call
... | Return open Word.Application handle, or None if Word is not available
on this system. |
(module
(function_definition
(function_name_list_queries) function_name_list_queries
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
... | List queries in device query service.
:param int limit: The number of devices to retrieve.
:param str order: The ordering direction, ascending (asc) or
descending (desc)
:param str after: Get devices after/starting at given `device_id`
:param filters: Dictionary of filters t... |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(identifier_dst_bucket) identifier_dst_bucket
(identifier_dst_key) identifier_dst_key
(default_parameter
(identifier_metadata) identifier_metadata
(None) N... | Copy this Key to another bucket.
:type dst_bucket: string
:param dst_bucket: The name of the destination bucket
:type dst_key: string
:param dst_key: The name of the destination key
:type metadata: dict
:param metadata: Metadata to be associated with new key.
... |
(module
(function_definition
(function_name_streaming_recognize) function_name_streaming_recognize
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
(identifier_requests) identifier_requests
(default_parameter
(identifier_retry) identifier_retr... | Perform bi-directional speech recognition.
This method allows you to receive results while sending audio;
it is only available via. gRPC (not REST).
.. warning::
This method is EXPERIMENTAL. Its interface might change in the
future.
Example:
>>> from... |
(module
(function_definition
(function_name_respond_to_SIGHUP) function_name_respond_to_SIGHUP
(parameters
(identifier_signal_number) identifier_signal_number
(identifier_frame) identifier_frame
(default_parameter
(identifier_logger) identifier_logger
(None) None
)defau... | raise the KeyboardInterrupt which will cause the app to effectively
shutdown, closing all it resources. Then, because it sets 'restart' to
True, the app will reread all the configuration information, rebuild all
of its structures and resources and start running again |
(module
(function_definition
(function_name_parse_table_column_properties) function_name_parse_table_column_properties
(parameters
(identifier_doc) identifier_doc
(identifier_cell) identifier_cell
(identifier_prop) identifier_prop
)parameters
(block
(expression_statement
... | Parse table column properties. |
(module
(function_definition
(function_name_store_many_vectors) function_name_store_many_vectors
(parameters
(identifier_self) identifier_self
(identifier_hash_name) identifier_hash_name
(identifier_bucket_keys) identifier_bucket_keys
(identifier_vs) identifier_vs
(identifier_dat... | Store a batch of vectors.
Stores vector and JSON-serializable data in bucket with specified key. |
(module
(function_definition
(function_name_set_connection) function_name_set_connection
(parameters
(default_parameter
(identifier_connection) identifier_connection
(attribute
(identifier_defaults) identifier_defaults
(identifier_sqlalchemy_connection_string_default)... | Set the connection string for SQLAlchemy
:param str connection: SQLAlchemy connection string |
(module
(function_definition
(function_name_connection_exists) function_name_connection_exists
(parameters
(typed_parameter
(identifier_ssid) identifier_ssid
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(generic_type... | If there is already a connection for this ssid, return the name of
the connection; if there is not, return None. |
(module
(function_definition
(function_name__GetConnectionArgs) function_name__GetConnectionArgs
(parameters
(default_parameter
(identifier_host) identifier_host
(None) None
)default_parameter
(default_parameter
(identifier_port) identifier_port
(None) None
... | Builds connection arguments for MySQLdb.Connect function. |
(module
(function_definition
(function_name_union) function_name_union
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Returns a FrozenList with other concatenated to the end of self.
Parameters
----------
other : array-like
The array-like whose elements we are concatenating.
Returns
-------
diff : FrozenList
The collection difference between self and other. |
(module
(function_definition
(function_name_copy_and_sum_families) function_name_copy_and_sum_families
(parameters
(identifier_family_source) identifier_family_source
(identifier_family_target) identifier_family_target
)parameters
(block
(for_statement
(identifier_every) iden... | methods iterates thru source family and copies its entries to target family
in case key already exists in both families - then the values are added |
(module
(function_definition
(function_name_safestr) function_name_safestr
(parameters
(identifier_str_) identifier_str_
)parameters
(block
(expression_statement
(assignment
(identifier_str_) identifier_str_
(boolean_operator
(identifier_str_) identi... | get back an alphanumeric only version of source |
(module
(function_definition
(function_name_get_temp_url) function_name_get_temp_url
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(identifier_seconds) identifier_seconds
(default_parameter
(identifier_method) identifier_method
(string_"G... | Given a storage object in this container, returns a URL that can be
used to access that object. The URL will expire after `seconds`
seconds.
The only methods supported are GET and PUT. Anything else will raise an
`InvalidTemporaryURLMethod` exception.
If you have your Temporary... |
(module
(function_definition
(function_name_get_theming_attribute) function_name_get_theming_attribute
(parameters
(identifier_self) identifier_self
(identifier_mode) identifier_mode
(identifier_name) identifier_name
(default_parameter
(identifier_part) identifier_part
... | looks up theming attribute
:param mode: ui-mode (e.g. `search`,`thread`...)
:type mode: str
:param name: identifier of the atttribute
:type name: str
:rtype: urwid.AttrSpec |
(module
(function_definition
(function_name_do_list_organizations) function_name_do_list_organizations
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
)parameters
(block
(expression_statement
(assignment
(identifier_org_list) identifi... | Get list of organization on DCNM. |
(module
(function_definition
(function_name_clone) function_name_clone
(parameters
(identifier_cls) identifier_cls
(identifier_objective) identifier_objective
(default_parameter
(identifier_model) identifier_model
(None) None
)default_parameter
(dictionary_splat_p... | Make a copy of an objective. The objective being copied can be of the same type or belong to
a different solver interface.
Example
----------
>>> new_objective = Objective.clone(old_objective) |
(module
(function_definition
(function_name_get_available_translations) function_name_get_available_translations
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_locale_path) identifier_locale_path
(call
(identifier_get_module_d... | List available translations for spyder based on the folders found in the
locale folder. This function checks if LANGUAGE_CODES contain the same
information that is found in the 'locale' folder to ensure that when a new
language is added, LANGUAGE_CODES is updated. |
(module
(function_definition
(function_name_html_to_tags) function_name_html_to_tags
(parameters
(identifier_code) identifier_code
)parameters
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(... | Convert HTML code to tags.
``code`` is a string containing HTML code. The return value is a
list of corresponding instances of ``TagBase``. |
(module
(function_definition
(function_name_run_recipe_timed) function_name_run_recipe_timed
(parameters
(identifier_task) identifier_task
(identifier_recipe) identifier_recipe
(identifier_rinput) identifier_rinput
)parameters
(block
(expression_statement
(call
... | Run the recipe and count the time it takes. |
(module
(function_definition
(function_name_parse_group) function_name_parse_group
(parameters
(identifier_cls) identifier_cls
(identifier_group) identifier_group
(identifier_lines) identifier_lines
(default_parameter
(identifier_dist) identifier_dist
(None) None
... | Parse an entry point group |
(module
(function_definition
(function_name_set_menu) function_name_set_menu
(parameters
(identifier_self) identifier_self
(identifier_menu) identifier_menu
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self... | add a menu from the parent |
(module
(function_definition
(function_name_infer) function_name_infer
(parameters
(identifier_self) identifier_self
(identifier_sensationList) identifier_sensationList
(default_parameter
(identifier_reset) identifier_reset
(True) True
)default_parameter
(default_... | Infer on a given set of sensations for a single object.
The provided sensationList is a list of sensations, and each sensation is a
mapping from cortical column to a tuple of three SDR's respectively
corresponding to the locationInput, the coarseSensorInput, and the
sensorInput.
For example, the i... |
(module
(function_definition
(function_name_update_devices) function_name_update_devices
(parameters
(identifier_self) identifier_self
(identifier_devices) identifier_devices
)parameters
(block
(for_statement
(identifier_qspacket) identifier_qspacket
(identifier_devic... | Update values from response of URL_DEVICES, callback if changed. |
(module
(function_definition
(function_name_pin_assets) function_name_pin_assets
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_file_or_dir_path) identifier_file_or_dir_path
(type
(identifier_Path) identifier_Path
)type
)typed_par... | Return a dict containing the IPFS hash, file name, and size of a file. |
(module
(function_definition
(function_name_delete_telnet_template) function_name_delete_telnet_template
(parameters
(identifier_auth) identifier_auth
(identifier_url) identifier_url
(default_parameter
(identifier_template_name) identifier_template_name
(None) None
)def... | Takes template_name as input to issue RESTUL call to HP IMC which will delete the specific
telnet template from the IMC system
:param auth: requests auth object #usually auth.creds from auth pyhpeimc.auth.class
:param url: base url of IMC RS interface #usually auth.url from pyhpeimc.auth.authclass
:p... |
(module
(function_definition
(function_name_solve) function_name_solve
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_Xi) identifier_Xi
(call
(attribute
(attribute
... | Call the solve method of the inner cbpdn object and return the
result. |
(module
(function_definition
(function_name_get_templates) function_name_get_templates
(parameters
(identifier_self) identifier_self
(identifier_id_or_uri) identifier_id_or_uri
(default_parameter
(identifier_start) identifier_start
(integer_0) integer_0
)default_paramet... | Gets a list of volume templates. Returns a list of storage templates belonging to the storage system.
Returns:
list: Storage Template List. |
(module
(function_definition
(function_name_setProperty) function_name_setProperty
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identif... | setProperty - Set a style property to a value.
NOTE: To remove a style, use a value of empty string, or None
@param name <str> - The style name.
NOTE: The dash names are expected here, whereas dot-access expects the camel case names.
Example... |
(module
(function_definition
(function_name_ttvar) function_name_ttvar
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_index) identifier_index
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignmen... | Return a TruthTable variable.
Parameters
----------
name : str
The variable's identifier string.
index : int or tuple[int], optional
One or more integer suffixes for variables that are part of a
multi-dimensional bit-vector, eg x[1], x[1][2][3] |
(module
(function_definition
(function_name_libvlc_audio_output_set) function_name_libvlc_audio_output_set
(parameters
(identifier_p_mi) identifier_p_mi
(identifier_psz_name) identifier_psz_name
)parameters
(block
(expression_statement
(assignment
(identifier_f) ide... | Selects an audio output module.
@note: Any change will take be effect only after playback is stopped and
restarted. Audio output cannot be changed while playing.
@param p_mi: media player.
@param psz_name: name of audio output, use psz_name of See L{AudioOutput}.
@return: 0 if function succeded, -1 ... |
(module
(function_definition
(function_name_save_config) function_name_save_config
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_cmd) identifier_cmd
(string_"write") string_"write"
)default_parameter
(default_parameter
(identifier_... | Saves Config Using write command |
(module
(function_definition
(function_name_samples_by_indices) function_name_samples_by_indices
(parameters
(identifier_self) identifier_self
(identifier_indices) identifier_indices
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_s... | Gather a batch of samples by indices, applying any index
mapping defined by the underlying data sources.
Parameters
----------
indices: 1D-array of ints or slice
An index array or a slice that selects the samples to retrieve
Returns
-------
nested li... |
(module
(function_definition
(function_name_client_auth) function_name_client_auth
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__client_auth) i... | Generate an XML element with client auth data populated. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_remove_tombstone) identifier_remove_tombstone
(True) True
)default_parameter
)parameters
(block
(expression_stat... | Method to delete resources.
Args:
remove_tombstone (bool): If True, will remove tombstone at uri/fcr:tombstone when removing resource.
Returns:
(bool) |
(module
(function_definition
(function_name_add_get) function_name_add_get
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_path) identifier_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
... | Shortcut for add_route with method GET, if allow_head is true another
route is added allowing head requests to the same endpoint |
(module
(function_definition
(function_name__get_dependency_specification) function_name__get_dependency_specification
(parameters
(typed_parameter
(identifier_dep_spec) identifier_dep_spec
(type
(subscript
(attribute
(identifier_typing) identifier_typ... | Get string representation of dependency specification as provided by PythonDependencyParser. |
(module
(function_definition
(function_name_add_log_type) function_name_add_log_type
(parameters
(identifier_self) identifier_self
(identifier_logType) identifier_logType
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_... | Add a new logtype.
:Parameters:
#. logType (string): The logtype.
#. name (None, string): The logtype name. If None, name will be set to logtype.
#. level (number): The level of logging.
#. stdoutFlag (None, boolean): Force standard output logging flag.
... |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_sid) identifier_sid
)parameters
(block
(return_statement
(call
(identifier_TaskQueueContext) identifier_TaskQueueContext
(argument_... | Constructs a TaskQueueContext
:param sid: The sid
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueContext
:rtype: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueContext |
(module
(function_definition
(function_name__repr_html_) function_name__repr_html_
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(a... | Displays the Figure in a Jupyter notebook. |
(module
(function_definition
(function_name_active) function_name_active
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(assignment
(identifier_states) identifier_states
... | Indicate if this RunState is currently active. |
(module
(function_definition
(function_name__load_connection_error) function_name__load_connection_error
(parameters
(identifier_hostname) identifier_hostname
(identifier_error) identifier_error
)parameters
(block
(expression_statement
(assignment
(identifier_ret) i... | Format and Return a connection error |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(assert_statement
(comparison_... | Send the GET request required to stop the scan
If timeout is not specified we just send the request and return. When
it is the method will wait for (at most) :timeout: seconds until the
scan changes it's status/stops. If the timeout is reached then an
exception is raised.
:para... |
(module
(function_definition
(function_name_add_insert) function_name_add_insert
(parameters
(identifier_self) identifier_self
(identifier_document) identifier_document
)parameters
(block
(expression_statement
(call
(identifier_validate_is_document_type) identifier_... | Add an insert document to the list of ops. |
(module
(function_definition
(function_name__ExtractGoogleSearchQuery) function_name__ExtractGoogleSearchQuery
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
... | Extracts a search query from a Google URL.
Google Drive: https://drive.google.com/drive/search?q=query
Google Search: https://www.google.com/search?q=query
Google Sites: https://sites.google.com/site/.*/system/app/pages/
search?q=query
Args:
url (str): URL.
Returns:
... |
(module
(function_definition
(function_name_comment) function_name_comment
(parameters
(identifier_self) identifier_self
(identifier_body) identifier_body
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self... | Adds a comment to the issue.
:params body: body, content of the comment
:returns: issue object
:rtype: :class:`exreporter.stores.github.GithubIssue` |
(module
(function_definition
(function_name_setUserAgent) function_name_setUserAgent
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_uA) identifier_uA
(None) None
)default_parameter
)parameters
(block
(expression_statement
(a... | This method will be called whenever a new query will be executed.
:param uA: Any User Agent that was needed to be inserted. This parameter is optional.
:return: Returns True if a User Agent was inserted and False if no User Agent could be inserted. |
(module
(function_definition
(function_name_check_table) function_name_check_table
(parameters
(default_parameter
(identifier_table) identifier_table
(None) None
)default_parameter
(default_parameter
(identifier_family) identifier_family
(string_'ipv4') string... | Check for the existence of a table
CLI Example::
salt '*' nftables.check_table nat |
(module
(function_definition
(function_name_conll_ner2json) function_name_conll_ner2json
(parameters
(identifier_input_data) identifier_input_data
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_st... | Convert files in the CoNLL-2003 NER format into JSON format for use with
train cli. |
(module
(function_definition
(function_name_ddb_path) function_name_ddb_path
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(attribute
(identifier_self) identifier_self
(iden... | Absolute path of the DDB file. Empty string if file is not present. |
(module
(function_definition
(function_name_get_preferred) function_name_get_preferred
(parameters
(identifier_self) identifier_self
(identifier_addr_1) identifier_addr_1
(identifier_addr_2) identifier_addr_2
)parameters
(block
(if_statement
(comparison_operator
... | Return the preferred address. |
(module
(function_definition
(function_name_register_wcs) function_name_register_wcs
(parameters
(identifier_name) identifier_name
(identifier_wrapper_class) identifier_wrapper_class
(identifier_coord_types) identifier_coord_types
)parameters
(block
(global_statement
(i... | Register a custom WCS wrapper.
Parameters
----------
name : str
The name of the custom WCS wrapper
wrapper_class : subclass of `~ginga.util.wcsmod.BaseWCS`
The class implementing the WCS wrapper
coord_types : list of str
List of names of coordinate types supported by the W... |
(module
(function_definition
(function_name__build_client) function_name__build_client
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Make a new Client object
:param name: Name of the url segment
:type name: string
:return: A Client object |
(module
(function_definition
(function_name_next_session_label) function_name_next_session_label
(parameters
(identifier_self) identifier_self
(identifier_session_label) identifier_session_label
)parameters
(block
(expression_statement
(assignment
(identifier_idx) i... | Given a session label, returns the label of the next session.
Parameters
----------
session_label: pd.Timestamp
A session whose next session is desired.
Returns
-------
pd.Timestamp
The next session label (midnight UTC).
Notes
--... |
(module
(function_definition
(function_name_add_hypermedia) function_name_add_hypermedia
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_... | Adds HATEOAS links to the resource. Adds href link to self.
Override in subclasses to include additional functionality |
(module
(function_definition
(function_name__date2int) function_name__date2int
(parameters
(identifier_date) identifier_date
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_date) identif... | Returns an integer representation of a date.
:param str|datetime.date date: The date.
:rtype: int |
(module
(function_definition
(function_name__match_setters) function_name__match_setters
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
)parameters
(block
(expression_statement
(assignment
(identifier_q) identifier_q
(cal... | Tries to match in setters
:param query: message tuple
:type query: Tuple[bytes]
:return: response if found or None
:rtype: Tuple[bytes] | None |
(module
(function_definition
(function_name_get_to_persist) function_name_get_to_persist
(parameters
(identifier_persisters) identifier_persisters
)parameters
(block
(function_definition
(function_name_specs) function_name_specs
(parameters
)parameters
(bloc... | Given a specification of what to persist, generates the corresponding set
of components. |
(module
(function_definition
(function_name_op_right) function_name_op_right
(parameters
(identifier_op) identifier_op
)parameters
(block
(function_definition
(function_name_method) function_name_method
(parameters
(identifier_self) identifier_self
(iden... | Returns a type instance method for the given operator, applied
when the instance appears on the right side of the expression. |
(module
(function_definition
(function_name_register_event_listener) function_name_register_event_listener
(parameters
(identifier_coro) identifier_coro
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_asyncio) identifi... | Registers a coroutine to receive lavalink event information.
This coroutine will accept three arguments: :py:class:`Player`,
:py:class:`LavalinkEvents`, and possibly an extra. The value of the extra depends
on the value of the second argument.
If the second argument is :py:attr:`LavalinkEvents.TRACK_E... |
(module
(function_definition
(function_name_create_supercut) function_name_create_supercut
(parameters
(identifier_composition) identifier_composition
(identifier_outputfile) identifier_outputfile
(identifier_padding) identifier_padding
)parameters
(block
(expression_statement
... | Concatenate video clips together and output finished video file to the
output directory. |
(module
(function_definition
(function_name_noisy_operation) function_name_noisy_operation
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_operation) identifier_operation
(type
(string_'cirq.Operation') string_'cirq.Operation'
)type
... | Adds noise to an individual operation.
Args:
operation: The operation to make noisy.
Returns:
An OP_TREE corresponding to the noisy operations implementing the
noisy version of the given operation. |
(module
(function_definition
(function_name_update_domain_queues) function_name_update_domain_queues
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
... | Check to update existing queues already in memory
new queues are created elsewhere |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.