sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_parser) identifier_parser
(identifier_args) identifier_args
)pattern_list
... | Entrypoint, sweet Entrypoint |
(module
(function_definition
(function_name_encode_setid) function_name_encode_setid
(parameters
(identifier_uint128) identifier_uint128
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_hi) identifier_hi
(identifier_lo... | Encode uint128 setid as stripped b32encoded string |
(module
(function_definition
(function_name___to_browser) function_name___to_browser
(parameters
(identifier_self) identifier_self
(identifier_message_no) identifier_message_no
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_fil... | Write a single message to file and open the file in a
browser |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
... | Fire up halite! |
(module
(function_definition
(function_name_show_env) function_name_show_env
(parameters
(identifier_self) identifier_self
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self... | Show environment variables. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_alias_name) identifier_alias_name
(default_parameter
(identifier_timeout) identifier_timeout
(unary_operator
(integer_1) integer_1
... | Revokes a certificate signed by the internal CA. If client certificate to be revoked is RabbitMQ_readonly,
then the internal CA root certificate, RabbitMQ client certificate and RabbitMQ server certificate will be
regenerated. This will invalidate the previous version of RabbitMQ client certificate and ... |
(module
(function_definition
(function_name_block) function_name_block
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_warn_only) identifier_warn_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
... | blocked executation. |
(module
(function_definition
(function_name_config_read) function_name_config_read
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_config_file) identifier_config_file
(parenthesized_expression
(call
(attribute
... | Read config info from config file. |
(module
(function_definition
(function_name_get_calling_file) function_name_get_calling_file
(parameters
(default_parameter
(identifier_file_path) identifier_file_path
(None) None
)default_parameter
(default_parameter
(identifier_result) identifier_result
(str... | Retrieve file_name or file_path of calling Python script |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier... | Downloads the signature.
Returns: |
(module
(function_definition
(function_name__time_query_parms) function_name__time_query_parms
(parameters
(identifier_begin_time) identifier_begin_time
(identifier_end_time) identifier_end_time
)parameters
(block
(expression_statement
(assignment
(identifier_query_... | Return the URI query paramterer string for the specified begin time
and end time. |
(module
(function_definition
(function_name_event_date) function_name_event_date
(parameters
(identifier_self) identifier_self
(identifier_event_date) identifier_event_date
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
... | Set the Events "event date" value. |
(module
(function_definition
(function_name_version) function_name_version
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(binary_oper... | Shows version information. |
(module
(function_definition
(function_name_init_app) function_name_init_app
(parameters
(identifier_self) identifier_self
(identifier_app) identifier_app
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
... | Initializes the extension for the provided Flask application.
Args:
app (flask.Flask). the Flask application for which to initialize the extension. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_file_object) identifier_file_object
(list_splat_pattern
(identifier_transformers) identifier_transformers
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) ident... | Deserializes Java primitive data and objects serialized using
ObjectOutputStream from a file-like object.
:param file_object: A file-like object
:param transformers: Custom transformers to use
:param ignore_remaining_data: If True, don't log an error when unused
traili... |
(module
(function_definition
(function_name_image_feature_engineering) function_name_image_feature_engineering
(parameters
(identifier_features) identifier_features
(identifier_feature_tensors_dict) identifier_feature_tensors_dict
)parameters
(block
(expression_statement
(ass... | Add a hidden layer on image features.
Args:
features: features dict
feature_tensors_dict: dict of feature-name: tensor |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
... | Saves all the parameters to a text file using the databox
functionality. If path=None, saves to self._autosettings_path. If
self._autosettings_path=None, does not save. |
(module
(function_definition
(function_name__modify_eni_properties) function_name__modify_eni_properties
(parameters
(identifier_eni_id) identifier_eni_id
(default_parameter
(identifier_properties) identifier_properties
(None) None
)default_parameter
(default_parameter
... | Change properties of the interface
with id eni_id to the values in properties dict |
(module
(function_definition
(function_name_is_system_rpm) function_name_is_system_rpm
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_sys_rpm_paths) identifier_sys_rpm_paths
(list
(strin... | Check if the RPM is system RPM. |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug... | Reset the service to its' initial state. |
(module
(function_definition
(function_name_find_gsc_offset) function_name_find_gsc_offset
(parameters
(identifier_image) identifier_image
(default_parameter
(identifier_input_catalog) identifier_input_catalog
(string_'GSC1') string_'GSC1'
)default_parameter
(default_pa... | Find the GSC to GAIA offset based on guide star coordinates
Parameters
----------
image : str
Filename of image to be processed.
Returns
-------
delta_ra, delta_dec : tuple of floats
Offset in decimal degrees of image based on correction to guide star
coordinates relati... |
(module
(function_definition
(function_name_get_init_args) function_name_get_init_args
(parameters
(identifier_inst_type) identifier_inst_type
(typed_parameter
(identifier_init_args) identifier_init_args
(type
(identifier_dict) identifier_dict
)type
)typed_p... | Returns tuple with args and kwargs to pass it to inst_type constructor |
(module
(function_definition
(function_name_jwt_grant) function_name_jwt_grant
(parameters
(identifier_request) identifier_request
(identifier_token_uri) identifier_token_uri
(identifier_assertion) identifier_assertion
)parameters
(block
(expression_statement
(assignmen... | Implements the JWT Profile for OAuth 2.0 Authorization Grants.
For more details, see `rfc7523 section 4`_.
Args:
request (google.auth.transport.Request): A callable used to make
HTTP requests.
token_uri (str): The OAuth 2.0 authorizations server's token endpoint
URI.
... |
(module
(function_definition
(function_name_limit) function_name_limit
(parameters
(identifier_self) identifier_self
(identifier_v) identifier_v
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(com... | Sets the limit on the number of results returned
CQL has a default limit of 10,000 |
(module
(function_definition
(function_name_rank_member) function_name_rank_member
(parameters
(identifier_self) identifier_self
(identifier_member) identifier_member
(identifier_score) identifier_score
(default_parameter
(identifier_member_data) identifier_member_data
... | Rank a member in the leaderboard.
@param member [String] Member name.
@param score [float] Member score.
@param member_data [String] Optional member data. |
(module
(function_definition
(function_name_mutate_json_record) function_name_mutate_json_record
(parameters
(identifier_self) identifier_self
(identifier_json_record) identifier_json_record
)parameters
(block
(for_statement
(identifier_attr_name) identifier_attr_name
... | Override it to convert fields of `json_record` to needed types.
Default implementation converts `datetime` to string in ISO8601 format. |
(module
(function_definition
(function_name__chk_docopts) function_name__chk_docopts
(parameters
(identifier_self) identifier_self
(identifier_kws) identifier_kws
)parameters
(block
(expression_statement
(assignment
(identifier_outfile) identifier_outfile
... | Check for common user command-line errors. |
(module
(function_definition
(function_name_save_matpower) function_name_save_matpower
(parameters
(identifier_self) identifier_self
(identifier_fd) identifier_fd
)parameters
(block
(import_from_statement
(dotted_name
(identifier_pylon) identifier_pylon
(i... | Serialize the case as a MATPOWER data file. |
(module
(function_definition
(function_name_validate_digit) function_name_validate_digit
(parameters
(identifier_value) identifier_value
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(if_statement
(boolean_operator
(boo... | validate if a digit is valid |
(module
(function_definition
(function_name_remove_folder) function_name_remove_folder
(parameters
(identifier_self) identifier_self
(identifier_tree) identifier_tree
(identifier_prefix) identifier_prefix
)parameters
(block
(while_statement
(True) True
(block
... | Used to remove any empty folders
If this folder is empty then it is removed. If the parent is empty as a
result, then the parent is also removed, and so on. |
(module
(function_definition
(function_name_debug) function_name_debug
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_i) identifier_i
(type
(identifier_int) identifier_int
)type
(None) None
)typed_default_parameter... | Returns a debug message |
(module
(function_definition
(function_name_insert_child) function_name_insert_child
(parameters
(identifier_self) identifier_self
(identifier_child_pid) identifier_child_pid
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) ide... | Add the given PID to the list of children PIDs. |
(module
(function_definition
(function_name_list_state) function_name_list_state
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_paging_controls) identifier_paging... | Fetches list of data entries, optionally filtered by address prefix.
Request:
query:
- head: The id of the block to use as the head of the chain
- address: Return entries whose addresses begin with this
prefix
Response:
data: An a... |
(module
(function_definition
(function_name_context) function_name_context
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_parent) identifier_parent
(call
(attribute
(identi... | Create a context manager that ensures code runs within action's context.
The action does NOT finish when the context is exited. |
(module
(function_definition
(function_name_parse_alert) function_name_parse_alert
(parameters
(identifier_output) identifier_output
)parameters
(block
(for_statement
(identifier_x) identifier_x
(call
(attribute
(identifier_output) identifier_output
... | Parses the supplied output and yields any alerts.
Example alert format:
01/28/14-22:26:04.885446 [**] [1:1917:11] INDICATOR-SCAN UPnP service discover attempt [**] [Classification: Detection of a Network Scan] [Priority: 3] {UDP} 10.1.1.132:58650 -> 239.255.255.250:1900
:param output: A string containing... |
(module
(function_definition
(function_name_set_row_gap) function_name_set_row_gap
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(b... | Sets the gap value between rows
Args:
value (int or str): gap value (i.e. 10 or "10px") |
(module
(function_definition
(function_name_conditional_expected_average_profit) function_name_conditional_expected_average_profit
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_frequency) identifier_frequency
(None) None
)default_parameter
... | Conditional expectation of the average profit.
This method computes the conditional expectation of the average profit
per transaction for a group of one or more customers.
Parameters
----------
frequency: array_like, optional
a vector containing the customers' frequ... |
(module
(function_definition
(function_name__ParseDistributedTrackingIdentifier) function_name__ParseDistributedTrackingIdentifier
(parameters
(identifier_self) identifier_self
(identifier_parser_mediator) identifier_parser_mediator
(identifier_uuid_object) identifier_uuid_object
(iden... | Extracts data from a Distributed Tracking identifier.
Args:
parser_mediator (ParserMediator): mediates interactions between parsers
and other components, such as storage and dfvfs.
uuid_object (uuid.UUID): UUID of the Distributed Tracking identifier.
origin (str): origin of the event (e... |
(module
(function_definition
(function_name_allow_port) function_name_allow_port
(parameters
(identifier_port) identifier_port
(default_parameter
(identifier_proto) identifier_proto
(string_'tcp') string_'tcp'
)default_parameter
(default_parameter
(identifier_di... | Like allow_ports, but it will append to the
existing entry instead of replacing it.
Takes a single port instead of a list of ports.
CLI Example:
.. code-block:: bash
salt '*' csf.allow_port 22 proto='tcp' direction='in' |
(module
(function_definition
(function_name__save) function_name__save
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier___modified_flag) identifier___modified_flag
)at... | save the cache index, in case it was modified.
Saves the index table and the file name repository in the file
`index.dat` |
(module
(function_definition
(function_name_order_by) function_name_order_by
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_field_names) identifier_field_names
)list_splat_pattern
)parameters
(block
(expression_statement
(assignmen... | Returns a new QuerySet instance with the ordering changed.
We have a special field "_random" |
(module
(function_definition
(function_name_check_updates) function_name_check_updates
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_startup) identifier_startup
(False) False
)default_parameter
)parameters
(block
(import_from_state... | Check for spyder updates on github releases using a QThread. |
(module
(function_definition
(function_name_add_metadata_defaults) function_name_add_metadata_defaults
(parameters
(identifier_md) identifier_md
)parameters
(block
(expression_statement
(assignment
(identifier_defaults) identifier_defaults
(dictionary
... | Central location for defaults for algorithm inputs. |
(module
(function_definition
(function_name_add_batch_parser) function_name_add_batch_parser
(parameters
(identifier_subparsers) identifier_subparsers
(identifier_parent_parser) identifier_parent_parser
)parameters
(block
(expression_statement
(assignment
(identifie... | Adds arguments parsers for the batch list, batch show and batch status
commands
Args:
subparsers: Add parsers to this subparser object
parent_parser: The parent argparse.ArgumentParser object |
(module
(function_definition
(function_name__warn_on_old_config) function_name__warn_on_old_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_old_sections) identifier_old_sections
(list
... | Warn the user if an old config format is detected. |
(module
(function_definition
(function_name_update_cache) function_name_update_cache
(parameters
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
(default_parameter
(identifier_cache_file) identifier_cache_file
(None) Non... | Load a build cache, updating it if necessary.
A cache is considered outdated if any of its inputs have changed.
Arguments
force -- Consider a cache outdated regardless of whether its inputs have
been modified. |
(module
(function_definition
(function_name_load_data) function_name_load_data
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_digits) identifier_digits
(call
(identifier_load_digits) identifier_load_digits
(argumen... | Load dataset, use 20newsgroups dataset |
(module
(function_definition
(function_name__vertical_x) function_name__vertical_x
(parameters
(identifier_axis) identifier_axis
(default_parameter
(identifier_ticks) identifier_ticks
(None) None
)default_parameter
(default_parameter
(identifier_max_width) ident... | Switch labels to vertical if they are long. |
(module
(function_definition
(function_name_read_dataset) function_name_read_dataset
(parameters
(identifier_args) identifier_args
(identifier_dataset) identifier_dataset
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
... | Read dataset from tokenized files. |
(module
(function_definition
(function_name_writeline) function_name_writeline
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_crlf) identifier_crlf
(string_"\r\n") string_"\r\n"
)default_parameter
)para... | Writeline implementation.
:param data: Data to write
:param crlf: Line end characters, defailt is \r\n
:return: Nothing
:raises: RuntimeError if errors happen while writing to PIPE or process stops. |
(module
(function_definition
(function_name_ngram_similarity) function_name_ngram_similarity
(parameters
(identifier_samegrams) identifier_samegrams
(identifier_allgrams) identifier_allgrams
(default_parameter
(identifier_warp) identifier_warp
(float_1.0) float_1.0
)def... | Similarity for two sets of n-grams.
:note: ``similarity = (a**e - d**e)/a**e`` where `a` is \
"all n-grams", `d` is "different n-grams" and `e` is the warp.
:param samegrams: number of n-grams shared by the two strings.
:param allgrams: total of the distinct n-grams across the two str... |
(module
(function_definition
(function_name_register_endpoint) function_name_register_endpoint
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_app) identifier_app
(None) None
)default_parameter
)paramete... | Register the metrics endpoint on the Flask application.
:param path: the path of the endpoint
:param app: the Flask application to register the endpoint on
(by default it is the application registered with this class) |
(module
(function_definition
(function_name_setOverlayWidthInMeters) function_name_setOverlayWidthInMeters
(parameters
(identifier_self) identifier_self
(identifier_ulOverlayHandle) identifier_ulOverlayHandle
(identifier_fWidthInMeters) identifier_fWidthInMeters
)parameters
(block
... | Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across |
(module
(function_definition
(function_name__norm_squared) function_name__norm_squared
(parameters
(typed_parameter
(identifier_args) identifier_args
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
... | Returns the norm for each state shard. |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_is_active) identifier_is_active
)attribute
... | Opens the stream. |
(module
(function_definition
(function_name_randomize) function_name_randomize
(parameters
(default_parameter
(identifier_length) identifier_length
(integer_6) integer_6
)default_parameter
(default_parameter
(identifier_choices) identifier_choices
(None) None
... | Returns a random string of the given length. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_op... | Delete a workflow object.
If `force` is ``False``, the record is soft-deleted, i.e. the record
stays in the database. This ensures e.g. that the same record
identifier cannot be used twice, and that you can still retrieve the
history of an object. If `force` is True, the record is compl... |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_version) identif... | Return a dict representation of the macaroon data in JSON format.
@return a dict |
(module
(function_definition
(function_name_data_shape) function_name_data_shape
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_header) identifie... | Shape tuple of the whole data block as determined from `header`.
If no header is available (i.e., before it has been initialized),
or any of the header entries ``'nx', 'ny', 'nz'`` is missing,
-1 is returned, which makes reshaping a no-op.
Otherwise, the returned shape is ``(nx, ny, nz)... |
(module
(function_definition
(function_name_output_row) function_name_output_row
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(string_"Output a scoring row.") string_"Output a scoring row."
)exp... | Output a scoring row. |
(module
(function_definition
(function_name_get_mutations) function_name_get_mutations
(parameters
(identifier_study_id) identifier_study_id
(identifier_gene_list) identifier_gene_list
(default_parameter
(identifier_mutation_type) identifier_mutation_type
(None) None
)d... | Return mutations as a list of genes and list of amino acid changes.
Parameters
----------
study_id : str
The ID of the cBio study.
Example: 'cellline_ccle_broad' or 'paad_icgc'
gene_list : list[str]
A list of genes with their HGNC symbols.
Example: ['BRAF', 'KRAS']
m... |
(module
(function_definition
(function_name_url_for) function_name_url_for
(parameters
(identifier_obj) identifier_obj
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_... | Polymorphic variant of Flask's `url_for` function.
Behaves like the original function when the first argument is a
string. When it's an object, it |
(module
(function_definition
(function_name_compare_lists) function_name_compare_lists
(parameters
(default_parameter
(identifier_old) identifier_old
(None) None
)default_parameter
(default_parameter
(identifier_new) identifier_new
(None) None
)default_p... | Compare before and after results from various salt functions, returning a
dict describing the changes that were made |
(module
(function_definition
(function_name__configure_buffer_sizes) function_name__configure_buffer_sizes
(parameters
)parameters
(block
(global_statement
(identifier_PIPE_BUF_BYTES) identifier_PIPE_BUF_BYTES
)global_statement
(global_statement
(identifier_OS_PIPE_SZ... | Set up module globals controlling buffer sizes |
(module
(function_definition
(function_name_get_dimension_by_name) function_name_get_dimension_by_name
(parameters
(identifier_dimension_name) identifier_dimension_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(bloc... | Given a dimension name returns all its data. Used in convert functions |
(module
(function_definition
(function_name_show_driver) function_name_show_driver
(parameters
(identifier_devname) identifier_devname
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_module) identifier_modul... | Queries the specified network device for associated driver information
CLI Example:
.. code-block:: bash
salt '*' ethtool.show_driver <devname> |
(module
(function_definition
(function_name__notify_fn) function_name__notify_fn
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__notifyrunn... | The notify thread function. |
(module
(function_definition
(function_name_inMicrolensRegion_main) function_name_inMicrolensRegion_main
(parameters
(default_parameter
(identifier_args) identifier_args
(None) None
)default_parameter
)parameters
(block
(import_statement
(dotted_name
... | Exposes K2visible to the command line. |
(module
(function_definition
(function_name_create_tarfile) function_name_create_tarfile
(parameters
(typed_parameter
(identifier_files) identifier_files
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
... | Create a tar file based on the list of files passed |
(module
(function_definition
(function_name_model_fields) function_name_model_fields
(parameters
(identifier_model) identifier_model
(default_parameter
(identifier_allow_pk) identifier_allow_pk
(False) False
)default_parameter
(default_parameter
(identifier_only... | Generate a dictionary of fields for a given Peewee model.
See `model_form` docstring for description of parameters. |
(module
(function_definition
(function_name_receive) function_name_receive
(parameters
(identifier_self) identifier_self
(identifier_content) identifier_content
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
... | Called when a message is received with either text or bytes
filled out. |
(module
(function_definition
(function_name_add_specification) function_name_add_specification
(parameters
(identifier_self) identifier_self
(identifier_specification) identifier_specification
)parameters
(block
(expression_statement
(assignment
(identifier_name) id... | Add a new query parameter specification. If this object already has a specification for the
specified parameter - exception is raised. No checks for the specified or any parameter are made
regarding specification appending
:param specification: new specification that will be added
:return: None |
(module
(function_definition
(function_name___xinclude_libxml2) function_name___xinclude_libxml2
(parameters
(identifier_target) identifier_target
(identifier_source) identifier_source
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(assignment
... | Resolving XIncludes, using the libxml2 module. |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_cls) identifier_cls
(identifier_grammar_filename) identifier_grammar_filename
(default_parameter
(identifier_rel_to) identifier_rel_to
(None) None
)default_parameter
(dict... | Create an instance of Lark with the grammar given by its filename
If rel_to is provided, the function will find the grammar filename in relation to it.
Example:
>>> Lark.open("grammar_file.lark", rel_to=__file__, parser="lalr")
Lark(...) |
(module
(function_definition
(function_name_fetch) function_name_fetch
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_w) identifier_w
(identifier_h) identifier_h
)parameters
(block
(if_statement
... | Fill a region with pixel data.
Pixels are filled with data!
Returns:
Pixel data.
Raises:
:class:`.Error` |
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_attrs) identifier_attrs
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | Perform all actions on a given attribute dict. |
(module
(function_definition
(function_name___validate_path_parameters) function_name___validate_path_parameters
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
(identifier_path_parameters) identifier_path_parameters
)parameters
(block
(for_sta... | Verifies that all path parameters correspond to an existing subfield.
Args:
field: An instance of a subclass of messages.Field. Should be the root
level property name in each path parameter in path_parameters. For
example, if the field is called 'foo', then each path parameter should
... |
(module
(function_definition
(function_name_group_shelf_fqfn) function_name_group_shelf_fqfn
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifie... | Return groups shelf fully qualified filename.
For testing/debugging a previous shelf file can be copied into the tc_temp_path directory
instead of creating a new shelf file. |
(module
(function_definition
(function_name___call_api) function_name___call_api
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parame... | Call the datapoint api using the requests module |
(module
(function_definition
(function_name__dehex) function_name__dehex
(parameters
(identifier_s) identifier_s
)parameters
(block
(import_statement
(dotted_name
(identifier_re) identifier_re
)dotted_name
)import_statement
(import_statement
(d... | Liberally convert from hex string to binary string. |
(module
(function_definition
(function_name_hosting_devices_assigned_to_cfg_agent) function_name_hosting_devices_assigned_to_cfg_agent
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
(identifier_ids) identifier_ids
(identifier_host) identifier_host... | Notify cfg agent to now handle some hosting devices.
This notification relieves the cfg agent in <host> of responsibility
to monitor and configure hosting devices with id specified in <ids>. |
(module
(function_definition
(function_name_show_tables) function_name_show_tables
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier__State) identifier__State
(identifier_connection) identifier_connection
)attrib... | Return the names of the tables currently in the database. |
(module
(function_definition
(function_name_binary_dumps) function_name_binary_dumps
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_alt_format) identifier_alt_format
(False) False
)default_parameter
)parameters
(block
(return_statemen... | Serialize ``obj`` to a binary VDF formatted ``bytes``. |
(module
(function_definition
(function_name__compute_quads) function_name__compute_quads
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
(identifier_data) identifier_data
(identifier_mapping) identifier_mapping
)parameters
(block
(exp... | Computes the node quad glyph data.x |
(module
(function_definition
(function_name_architecture) function_name_architecture
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_arch) identifier_arch
(dictionary
(pair
... | Returns a dictionary describing the architecture of the layer. |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(identifier_record) identifier_record
(call
... | Handle an item.
This just loops through the handlers offering them the record
to handle. |
(module
(function_definition
(function_name_createComment) function_name_createComment
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs... | Post a comment on a given GitHub Issue or Pull Request
For a given Issue or Pull Request of a repository, this will write a new message.
This method takes input: ``v1/create-comment.json#``
This method is ``experimental`` |
(module
(function_definition
(function_name_Cinv) function_name_Cinv
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifie... | Inverse of the noise covariance. |
(module
(function_definition
(function_name_resize_psf) function_name_resize_psf
(parameters
(identifier_psf) identifier_psf
(identifier_input_pixel_scale) identifier_input_pixel_scale
(identifier_output_pixel_scale) identifier_output_pixel_scale
(default_parameter
(identifier_... | Resize a PSF using spline interpolation of the requested order.
Parameters
----------
psf : 2D `~numpy.ndarray`
The 2D data array of the PSF.
input_pixel_scale : float
The pixel scale of the input ``psf``. The units must
match ``output_pixel_scale``.
output_pixel_scale : ... |
(module
(function_definition
(function_name_psychrometric_vapor_pressure_wet) function_name_psychrometric_vapor_pressure_wet
(parameters
(identifier_dry_bulb_temperature) identifier_dry_bulb_temperature
(identifier_wet_bulb_temperature) identifier_wet_bulb_temperature
(identifier_pressure) i... | r"""Calculate the vapor pressure with wet bulb and dry bulb temperatures.
This uses a psychrometric relationship as outlined in [WMO8-2014]_, with
coefficients from [Fan1987]_.
Parameters
----------
dry_bulb_temperature: `pint.Quantity`
Dry bulb temperature
wet_bulb_temperature: `pint.... |
(module
(function_definition
(function_name_flags) function_name_flags
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_index) iden... | Overriding method flags |
(module
(function_definition
(function_name_rm) function_name_rm
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attri... | Delete file or directory. |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(identifier_rownr) identifier_rownr
(identifier_value) identifier_value
(default_parameter
(identifier_matchingfields) identifier_matchingfields
(True) True
... | Put the values into the given row.
The value should be a dict (as returned by method :func:`get`.
The names of the fields in the dict should match the names of the
columns used in the `tablerow` object.
`matchingfields=True` means that the value may contain more fields
and only... |
(module
(function_definition
(function_name_parse_cuda_device) function_name_parse_cuda_device
(parameters
(typed_parameter
(identifier_cuda_device) identifier_cuda_device
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
... | Disambiguates single GPU and multiple GPU settings for cuda_device param. |
(module
(function_definition
(function_name__compile_set) function_name__compile_set
(parameters
(identifier_self) identifier_self
(identifier_schema) identifier_schema
)parameters
(block
(expression_statement
(assignment
(identifier_type_) identifier_type_
... | Validate a set.
A set is an unordered collection of unique elements.
>>> validator = Schema({int})
>>> validator(set([42])) == set([42])
True
>>> with raises(er.Invalid, 'expected a set'):
... validator(42)
>>> with raises(er.MultipleInvalid, 'invalid value in... |
(module
(function_definition
(function_name__QueryHash) function_name__QueryHash
(parameters
(identifier_self) identifier_self
(identifier_nsrl_socket) identifier_nsrl_socket
(identifier_digest) identifier_digest
)parameters
(block
(try_statement
(block
(expre... | Queries nsrlsvr for a specific hash.
Args:
nsrl_socket (socket._socketobject): socket of connection to nsrlsvr.
digest (str): hash to look up.
Returns:
bool: True if the hash was found, False if not or None on error. |
(module
(function_definition
(function_name_rounding) function_name_rounding
(parameters
(identifier_price) identifier_price
(identifier_currency) identifier_currency
)parameters
(block
(expression_statement
(assignment
(identifier_currency) identifier_currency
... | rounding currency value based on its max decimal digits |
(module
(function_definition
(function_name_attach) function_name_attach
(parameters
(identifier_self) identifier_self
(identifier_api_object) identifier_api_object
(default_parameter
(identifier_on_cloud) identifier_on_cloud
(False) False
)default_parameter
)parame... | Attach this attachment to an existing api_object. This
BaseAttachment object must be an orphan BaseAttachment created for the
sole purpose of attach it to something and therefore run this method.
:param api_object: object to attach to
:param on_cloud: if the attachment is on cloud or no... |
(module
(function_definition
(function_name_commands) function_name_commands
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(tuple_pattern
(attribute
(identifier_self) identifier_self
... | Returns a list of commands that are supported by the motor
controller. Possible values are `run-forever`, `run-to-abs-pos`, `run-to-rel-pos`,
`run-timed`, `run-direct`, `stop` and `reset`. Not all commands may be supported.
- `run-forever` will cause the motor to run until another command is se... |
(module
(function_definition
(function_name_snapshot) function_name_snapshot
(parameters
(identifier_domain) identifier_domain
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_suffix) identifier_s... | Create a snapshot of a VM.
:param domain: domain name
:param name: Name of the snapshot. If the name is omitted, then will be used original domain
name with ISO 8601 time as a suffix.
:param suffix: Add suffix for the new name. Useful in states, where such snapshots
can... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.