sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_to_utc_date) function_name_to_utc_date
(parameters
(identifier_date) identifier_date
)parameters
(block
(return_statement
(conditional_expression
(call
(attribute
(call
(attribute
... | Convert a datetime object from local to UTC format
>>> import datetime
>>> d = datetime.datetime(2017, 8, 15, 18, 24, 31)
>>> to_utc_date(d)
datetime.datetime(2017, 8, 16, 1, 24, 31)
Args:
date (`datetime`): Input datetime object
Returns:
`datetime` |
(module
(function_definition
(function_name_add_matplotlib_cmaps) function_name_add_matplotlib_cmaps
(parameters
(default_parameter
(identifier_fail_on_import_error) identifier_fail_on_import_error
(True) True
)default_parameter
)parameters
(block
(try_statement
... | Add all matplotlib colormaps. |
(module
(function_definition
(function_name_fit) function_name_fit
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_debug) identifier_debug
(False) False
)default_parameter
)parameters
(block
(e... | Fit each segment. Segments that have not already been explicitly
added will be automatically added with default model and ytransform.
Parameters
----------
data : pandas.DataFrame
Must have a column with the same name as `segmentation_col`.
debug : bool
I... |
(module
(function_definition
(function_name_assign) function_name_assign
(parameters
(identifier_self) identifier_self
(identifier_pm) identifier_pm
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Reassign pixmap or xpm string array to wrapper |
(module
(function_definition
(function_name__get_deleted_at_column) function_name__get_deleted_at_column
(parameters
(identifier_self) identifier_self
(identifier_builder) identifier_builder
)parameters
(block
(if_statement
(comparison_operator
(call
(id... | Get the "deleted at" column for the builder.
:param builder: The query builder
:type builder: orator.orm.builder.Builder
:rtype: str |
(module
(function_definition
(function_name_pause) function_name_pause
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_message) identifier_message
(type
(generic_type
(identifier_Optional) identifier_Optional
(typ... | Pause the session for further interaction. |
(module
(function_definition
(function_name__resolve_key) function_name__resolve_key
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
... | Attempt to lazily create a component.
:raises NotBoundError: if the component does not have a bound factory
:raises CyclicGraphError: if the factory function requires a cycle
:raises LockedGraphError: if the graph is locked |
(module
(function_definition
(function_name__recursive_merged_items) function_name__recursive_merged_items
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_subdirs) ide... | merge the partitioned items and return the as iterator
If one partition can not be fit in memory, then them will be
partitioned and merged recursively. |
(module
(function_definition
(function_name_create_alarm_subscription) function_name_create_alarm_subscription
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_on_data) identifier_on_data
(None) None
)default_parameter
(default_parameter
... | Create a new alarm subscription.
:param on_data: Function that gets called with :class:`.AlarmEvent`
updates.
:param float timeout: The amount of seconds to wait for the request
to complete.
:return: A Future that can be used to manage the... |
(module
(function_definition
(function_name_from_file) function_name_from_file
(parameters
(identifier_cls) identifier_cls
(identifier_h5_file) identifier_h5_file
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
... | Construct from an h5py.File.
Parameters
----------
h5_file : h5py.File
An HDF5 daily pricing file. |
(module
(function_definition
(function_name_geometricBar) function_name_geometricBar
(parameters
(identifier_weights) identifier_weights
(identifier_alldistribT) identifier_alldistribT
)parameters
(block
(assert_statement
(parenthesized_expression
(comparison_operat... | return the weighted geometric mean of distributions |
(module
(function_definition
(function_name_read_plugin_config) function_name_read_plugin_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_folders) identifier_folders
(subscript
(at... | Read plugin-specific configuration values. |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_streamed) identifier_streamed
(False) False
)default_parameter
(default_parameter
(identifier_action) identi... | Download the archive of a project export.
Args:
streamed (bool): If True the data will be processed by chunks of
`chunk_size` and each chunk is passed to `action` for
reatment
action (callable): Callable responsible of dealing with chunk of
... |
(module
(function_definition
(function_name__build_idp_config_endpoints) function_name__build_idp_config_endpoints
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
(identifier_providers) identifier_providers
)parameters
(block
(expression_stat... | Builds the final frontend module config
:type config: dict[str, Any]
:type providers: list[str]
:rtype: dict[str, Any]
:param config: The module config
:param providers: A list of backend names
:return: The final config |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cli) identifier_cli
(call
(identifier_ZappaCLI) id... | Main program execution handler. |
(module
(function_definition
(function_name_get_instance) function_name_get_instance
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(return_statement
(call
(identifier_AuthCallsCredentialListMappingInstance) ... | Build an instance of AuthCallsCredentialListMappingInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_calls_mapping.auth_calls_credential_list_mapping.AuthCallsCredentialListMappingInstance
:rtype: twilio.rest.api.v201... |
(module
(function_definition
(function_name_build_cycle_time) function_name_build_cycle_time
(parameters
(identifier_self) identifier_self
(identifier_build_id) identifier_build_id
)parameters
(block
(expression_statement
(assignment
(identifier_json_form) identifie... | Returns a BuildCycleTime object for the given build |
(module
(function_definition
(function_name__get_cmd) function_name__get_cmd
(parameters
(identifier_cmd) identifier_cmd
)parameters
(block
(expression_statement
(assignment
(identifier_check_cmd) identifier_check_cmd
(string_"RunTHetA.py") string_"RunTHetA.py"
... | Retrieve required commands for running THetA with our local bcbio python. |
(module
(function_definition
(function_name_process_wildcard) function_name_process_wildcard
(parameters
(identifier_fractions) identifier_fractions
)parameters
(block
(expression_statement
(assignment
(identifier_wildcard_zs) identifier_wildcard_zs
(call
... | Processes element with a wildcard ``?`` weight fraction and returns
composition balanced to 1.0. |
(module
(function_definition
(function_name_download_file) function_name_download_file
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_local_path) identifier_local_path
)parameters
(block
(expression_statement
(assignment
... | Download a file from a remote host. |
(module
(function_definition
(function_name_list_values) function_name_list_values
(parameters
(identifier_hive) identifier_hive
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_use_32bit_registry) ... | r'''
Enumerates the values in a registry key or hive.
Args:
hive (str):
The name of the hive. Can be one of the following:
- HKEY_LOCAL_MACHINE or HKLM
- HKEY_CURRENT_USER or HKCU
- HKEY_USER or HKU
- HKEY_CLASSES_ROOT or HKC... |
(module
(function_definition
(function_name_lazy_property) function_name_lazy_property
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(identifier_attr_name) identifier_attr_name
(binary_operator
(string... | Decorator that makes a property lazy-evaluated whilst preserving
docstrings.
Args:
fn (function): the property in question
Returns:
evaluated version of the property. |
(module
(function_definition
(function_name_get_opener) function_name_get_opener
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attrib... | Retrieve an opener for the given protocol
:param name: name of the opener to open
:type name: string
:raises NoOpenerError: if no opener has been registered of that name |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
(identifier_nice_quit_ev) identifier_nice_quit_ev
)parameters
(block
(expression_statement
(call
(attribute
(identifier__logger) iden... | Connect the server. We expect this to implement connection logistics
for servers that were explicitly prescribed to us. |
(module
(function_definition
(function_name_iterate_schema) function_name_iterate_schema
(parameters
(identifier_fields) identifier_fields
(identifier_schema) identifier_schema
(default_parameter
(identifier_path_prefix) identifier_path_prefix
(string_'') string_''
)def... | Iterate over all schema sub-fields.
This will iterate over all field definitions in the schema. Some field v
alues might be None.
:param fields: field values to iterate over
:type fields: dict
:param schema: schema to iterate over
:type schema: dict
:param path_prefix: dot separated path p... |
(module
(function_definition
(function_name_add_ds_ids_from_files) function_name_add_ds_ids_from_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_file_handlers) identifier_file_handlers
(call
(attribute
... | Check files for more dynamically discovered datasets. |
(module
(function_definition
(function_name_case_sensitive_name) function_name_case_sensitive_name
(parameters
(identifier_self) identifier_self
(identifier_package_name) identifier_package_name
)parameters
(block
(if_statement
(call
(identifier_len) identifier_len
... | Return case-sensitive package name given any-case package name
@param project_name: PyPI project name
@type project_name: string |
(module
(function_definition
(function_name_download_if_not_exists) function_name_download_if_not_exists
(parameters
(typed_parameter
(identifier_url) identifier_url
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(ident... | Downloads a URL to a file, unless the file already exists. |
(module
(function_definition
(function_name_is_valid) function_name_is_valid
(parameters
(typed_parameter
(identifier_obj) identifier_obj
(type
(identifier_JSGValidateable) identifier_JSGValidateable
)type
)typed_parameter
(typed_default_parameter
(i... | Determine whether obj is valid
:param obj: Object to validate
:param log: Logger to record validation failures. If absent, no information is recorded |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__current_index) ident... | Reset the field to its default state |
(module
(function_definition
(function_name__create_scaling_policies) function_name__create_scaling_policies
(parameters
(identifier_conn) identifier_conn
(identifier_as_name) identifier_as_name
(identifier_scaling_policies) identifier_scaling_policies
)parameters
(block
(expre... | helper function to create scaling policies |
(module
(function_definition
(function_name_load_xml) function_name_load_xml
(parameters
(identifier_self) identifier_self
(identifier_xmlfile) identifier_xmlfile
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identif... | Load model definition from XML.
Parameters
----------
xmlfile : str
Name of the input XML file. |
(module
(function_definition
(function_name_blocks) function_name_blocks
(parameters
(identifier_self) identifier_self
(identifier_lines) identifier_lines
)parameters
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
... | Groups lines into markdown blocks |
(module
(function_definition
(function_name_graph_edges) function_name_graph_edges
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_edges) identifier_edges
(call
(attribute
(... | Returns a generator for iterating over graph edges
The edge of a graph is described by the two adjacent node and the branch
object itself. Whereas the branch object is used to hold all relevant
power system parameters.
Yields
------
int
Description #TODO che... |
(module
(function_definition
(function_name_incr) function_name_incr
(parameters
(identifier_self) identifier_self
(identifier_att) identifier_att
(default_parameter
(identifier_val) identifier_val
(integer_1) integer_1
)default_parameter
)parameters
(block
... | Increments a counter. |
(module
(function_definition
(function_name__write_scalar) function_name__write_scalar
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(identi... | Writes single scalar value to Tensorboard. |
(module
(function_definition
(function_name_GetClientOs) function_name_GetClientOs
(parameters
(identifier_client_id) identifier_client_id
(default_parameter
(identifier_token) identifier_token
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Returns last known operating system name that the client used. |
(module
(function_definition
(function_name__resize) function_name__resize
(parameters
(identifier_self) identifier_self
(identifier_ratio_x) identifier_ratio_x
(identifier_ratio_y) identifier_ratio_y
(identifier_resampling) identifier_resampling
)parameters
(block
(expre... | Return raster resized by ratio. |
(module
(function_definition
(function_name_listen_tta) function_name_listen_tta
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
(identifier_timeout) identifier_timeout
)parameters
(block
(expression_statement
(assignment
(i... | Listen as Type A Target is not supported. |
(module
(function_definition
(function_name_deprecated) function_name_deprecated
(parameters
(identifier_instructions) identifier_instructions
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) i... | Flags a method as deprecated.
:param instructions: A human-friendly string of instructions, such as: 'Please migrate to add_proxy() ASAP.'
:return: DeprecatedWarning |
(module
(function_definition
(function_name_get_app_content_types) function_name_get_app_content_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_contrib)... | Return a list of all content_types for this app. |
(module
(function_definition
(function_name_setup_rabbitmq) function_name_setup_rabbitmq
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_rabbitmq_... | Setup RabbitMQ connection.
Call this method after spider has set its crawler object.
:return: None |
(module
(function_definition
(function_name_format_exc_skip) function_name_format_exc_skip
(parameters
(identifier_skip) identifier_skip
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
)parameters
(block
(expression_statemen... | Like traceback.format_exc but allow skipping the first frames. |
(module
(function_definition
(function_name__add_variable_proxy_methods) function_name__add_variable_proxy_methods
(parameters
(identifier_var) identifier_var
(identifier_proxy_tensor) identifier_proxy_tensor
)parameters
(block
(expression_statement
(assignment
(att... | Proxy methods of underlying variable.
This enables our custom getters to still work with, e.g., batch norm.
Args:
var: Variable to proxy
proxy_tensor: Tensor that is identity of var |
(module
(function_definition
(function_name_has_cwd) function_name_has_cwd
(parameters
(identifier_state) identifier_state
(identifier_dir) identifier_dir
(default_parameter
(identifier_incorrect_msg) identifier_incorrect_msg
(string_"Your current working directory should be ... | Check whether the student is in the expected directory.
This check is typically used before using ``has_expr_output()``
to make sure the student didn't navigate somewhere else.
Args:
state: State instance describing student and solution code. Can be omitted if used with ``Ex()``.
dir: Dire... |
(module
(function_definition
(function_name_timed) function_name_timed
(parameters
(identifier_function) identifier_function
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
... | Decorator timing the method call and printing the result to `stdout` |
(module
(function_definition
(function_name_create_datasource) function_name_create_datasource
(parameters
(identifier_jboss_config) identifier_jboss_config
(identifier_name) identifier_name
(identifier_datasource_properties) identifier_datasource_properties
(default_parameter
... | Create datasource in running jboss instance
jboss_config
Configuration dictionary with properties specified above.
name
Datasource name
datasource_properties
A dictionary of datasource properties to be created:
- driver-name: mysql
- connection-url: 'jdbc:mysql:/... |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_scheduler_threads) identifier_scheduler_threads
(list
(call
... | Start the scheduler threads. |
(module
(function_definition
(function_name_newAddress) function_name_newAddress
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_currency) identifier_currency
(string_'btc') string_'btc'
)default_parameter
(default_parameter
(identif... | Send a request for a new cryptocurrency deposit address
with an optional label. Return the response.
Arguements:
currency -- a Gemini supported cryptocurrency (btc, eth)
label -- optional label for the deposit address |
(module
(function_definition
(function_name_import_address) function_name_import_address
(parameters
(identifier_self) identifier_self
(identifier_address) identifier_address
(default_parameter
(identifier_account) identifier_account
(string_"*") string_"*"
)default_par... | param address = address to import
param label= account name to use |
(module
(function_definition
(function_name__wrap_ws) function_name__wrap_ws
(parameters
(identifier_self) identifier_self
(identifier_handler) identifier_handler
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(... | wraps a handler by receiving a websocket request and returning a websocket response |
(module
(function_definition
(function_name_deinstall) function_name_deinstall
(parameters
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_portpath) identifier_portpath
(call
(identifier__check_portn... | De-install a port.
CLI Example:
.. code-block:: bash
salt '*' ports.deinstall security/nmap |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_called) identifier_ca... | Create a normal field from the lazy field |
(module
(function_definition
(function_name_bisine_wave) function_name_bisine_wave
(parameters
(identifier_frequency) identifier_frequency
)parameters
(block
(expression_statement
(assignment
(identifier_f_hi) identifier_f_hi
(identifier_frequency) identifier_fr... | Emit two sine waves, in stereo at different octaves. |
(module
(function_definition
(function_name_column) function_name_column
(parameters
(identifier_self) identifier_self
(identifier_column) identifier_column
(default_parameter
(identifier_option) identifier_option
(None) None
)default_parameter
(dictionary_splat_p... | Query or modify the options for the specified column.
If `kw` is not given, returns a dict of the column option values. If
`option` is specified then the value for that option is returned.
Otherwise, sets the options to the corresponding values.
:param id: the column's identifier (read... |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_jlink) identifier_jlink
(call
(a... | Unlocks the target device.
Args:
self (UnlockCommand): the ``UnlockCommand`` instance
args (Namespace): the arguments passed on the command-line
Returns:
``None`` |
(module
(function_definition
(function_name_create_send_message) function_name_create_send_message
(parameters
(identifier_self) identifier_self
(identifier_string_message) identifier_string_message
(identifier_controller) identifier_controller
(default_parameter
(identifier_zo... | Creates a message from a string, substituting the necessary parameters,
that is ready to send to the socket |
(module
(function_definition
(function_name_update_firmware) function_name_update_firmware
(parameters
(identifier_self) identifier_self
(identifier_file) identifier_file
(default_parameter
(identifier_data) identifier_data
(None) None
)default_parameter
(default_... | Send file to BMC to perform firmware update
:param filename: The filename to upload to the target BMC
:param data: The payload of the firmware. Default is to read from
specified filename.
:param progress: A callback that will be given a dict describing
... |
(module
(function_definition
(function_name__get_snmp) function_name__get_snmp
(parameters
(identifier_self) identifier_self
(identifier_oid) identifier_oid
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_sel... | Wrapper for generic SNMP call. |
(module
(function_definition
(function_name_extern_store_i64) function_name_extern_store_i64
(parameters
(identifier_self) identifier_self
(identifier_context_handle) identifier_context_handle
(identifier_i64) identifier_i64
)parameters
(block
(expression_statement
(ass... | Given a context and int32_t, return a new Handle to represent the int32_t. |
(module
(function_definition
(function_name_pypi) function_name_pypi
(parameters
(identifier_click_ctx) identifier_click_ctx
(identifier_requirements) identifier_requirements
(default_parameter
(identifier_index) identifier_index
(None) None
)default_parameter
(de... | Manipulate with dependency requirements using PyPI. |
(module
(function_definition
(function_name_analyze) function_name_analyze
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_using) identifier_using
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifie... | Perform the analysis process on a text and return the tokens breakdown
of the text.
Any additional keyword arguments will be passed to
``Elasticsearch.indices.analyze`` unchanged. |
(module
(function_definition
(function_name__normalize_server_settings) function_name__normalize_server_settings
(parameters
(dictionary_splat_pattern
(identifier_settings) identifier_settings
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignm... | Convert setting values that has been improperly converted to a dict back to a string. |
(module
(function_definition
(function_name_filename) function_name_filename
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__filename) ide... | Name if the MOP formatted file to parse.
@rtype: basestring
@return: filename |
(module
(function_definition
(function_name__should_resolve_subgraph) function_name__should_resolve_subgraph
(parameters
(typed_parameter
(identifier_subgraph_check_api) identifier_subgraph_check_api
(type
(identifier_str) identifier_str
)type
)typed_parameter
... | Ask the given subgraph check API if the given package in the given version should be included in the resolution.
This subgraph resolving avoidence serves two purposes - we don't need to
resolve dependency subgraphs that were already analyzed and we also avoid
analyzing of "core" packages (like setuptools) ... |
(module
(function_definition
(function_name_render_build_args) function_name_render_build_args
(parameters
(identifier_options) identifier_options
(identifier_ns) identifier_ns
)parameters
(block
(expression_statement
(assignment
(identifier_build_args) identifier_b... | Get docker build args dict, rendering any templated args.
Args:
options (dict):
The dictionary for a given image from chartpress.yaml.
Fields in `options['buildArgs']` will be rendered and returned,
if defined.
ns (dict): the namespace used when rendering templated arguments |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(default_parameter
(identifier_auto_commit) identifier_auto_commit
(False) False
)default_parameter
)pa... | Removes a resource from the database
Args:
auto_commit (bool): Automatically commit the transaction. Default: `False`
Returns:
`None` |
(module
(function_definition
(function_name__get_lt_from_user_by_id) function_name__get_lt_from_user_by_id
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
(identifier_lt_id) identifier_lt_id
)parameters
(block
(expression_statement
(assig... | Get a layertemplate owned by a user from the database by lt_id. |
(module
(function_definition
(function_name__notify_listeners) function_name__notify_listeners
(parameters
(identifier_self) identifier_self
(identifier_sender) identifier_sender
(identifier_message) identifier_message
)parameters
(block
(expression_statement
(assignmen... | Notifies listeners of a new message |
(module
(function_definition
(function_name_get_partial_DOS) function_name_get_partial_DOS
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier... | Return frequency points and partial DOS as a tuple.
Projection is done to atoms and may be also done along directions
depending on the parameters at run_partial_dos.
Returns
-------
A tuple with (frequency_points, partial_dos).
frequency_points: ndarray
sha... |
(module
(function_definition
(function_name_confirm_login_allowed) function_name_confirm_login_allowed
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_u... | Controls whether the given User may log in. This is a policy setting,
independent of end-user authentication. This default behavior is to
allow login by active users, and reject login by inactive users.
If the given user cannot log in, this method should raise a
``forms.ValidationError`... |
(module
(function_definition
(function_name_verify_registration) function_name_verify_registration
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(ident... | Verify registration via signature. |
(module
(function_definition
(function_name_calc_temperature_stats) function_name_calc_temperature_stats
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) id... | Calculates statistics in order to derive diurnal patterns of temperature |
(module
(function_definition
(function_name__get_data_from_bigquery) function_name__get_data_from_bigquery
(parameters
(identifier_self) identifier_self
(identifier_queries) identifier_queries
)parameters
(block
(expression_statement
(assignment
(identifier_all_df) ... | Get data from bigquery table or query. |
(module
(function_definition
(function_name_create_directory) function_name_create_directory
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Create the directory for the given path. If path is None use the path of this instance
:param path: the path to create
:type path: str
:returns: None
:rtype: None
:raises: OSError |
(module
(function_definition
(function_name_writeline) function_name_writeline
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_line) identifier_line
(string_b'') string_b''
)default_parameter
(default_parameter
(identifier_sep) ident... | Write a byte sequences to the channel and terminate it with carriage
return and line feed.
Args:
line(bytes): The line to send.
sep(bytes): The separator to use after each line.
echo(bool): Whether to echo the written data to stdout.
Raises:
EOFE... |
(module
(function_definition
(function_name__fail_if_contains_errors) function_name__fail_if_contains_errors
(parameters
(identifier_response) identifier_response
(default_parameter
(identifier_sync_uuid) identifier_sync_uuid
(None) None
)default_parameter
)parameters
... | Raise a RequestError Exception if a given response
does not denote a successful request. |
(module
(function_definition
(function_name_auth_from_hass_config) function_name_auth_from_hass_config
(parameters
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
... | Initialize auth from HASS config. |
(module
(function_definition
(function_name_merge_data) function_name_merge_data
(parameters
(identifier_path_data) identifier_path_data
(identifier_request_data) identifier_request_data
)parameters
(block
(expression_statement
(assignment
(identifier_merged) identi... | Merge data from the URI path and the request.
Path data wins. |
(module
(function_definition
(function_name_num_inputs) function_name_num_inputs
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_num) identifier_num
(integer_0) integer_0
)assignment
)e... | Return the number of connected inputs.
Returns:
int: The number of connected inputs |
(module
(function_definition
(function_name_incident_exists) function_name_incident_exists
(parameters
(identifier_name) identifier_name
(identifier_message) identifier_message
(identifier_status) identifier_status
)parameters
(block
(expression_statement
(assignment
... | Check if an incident with these attributes already exists |
(module
(function_definition
(function_name_secondary_xi) function_name_secondary_xi
(parameters
(identifier_mass1) identifier_mass1
(identifier_mass2) identifier_mass2
(identifier_spin1x) identifier_spin1x
(identifier_spin1y) identifier_spin1y
(identifier_spin2x) identifier_spin... | Returns the effective precession spin argument for the smaller mass. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(identifier_bw) identifier_bw
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
... | Removes a buffer watch identifier.
@type bw: L{BufferWatch}
@param bw:
Buffer watch identifier.
@raise KeyError: The buffer watch identifier was already removed. |
(module
(function_definition
(function_name_parse_type) function_name_parse_type
(parameters
(identifier_field) identifier_field
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_i... | Function to pull a type from the binary payload. |
(module
(function_definition
(function_name_write_hyper_response) function_name_write_hyper_response
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_links) identifier_links
(list
)list
)default_parameter
(default_parameter
(i... | Writes a hyper media response object
:param list links: A list of links to the resources
:param dict meta: The meta data for this response
:param str entity_name: The entity name
:param object entity: The Entity itself
:param list notifications: List of notifications
:pa... |
(module
(function_definition
(function_name_broadcast_identifier) function_name_broadcast_identifier
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(i... | A unique string to identify a service instance for `BROADCAST`
type handlers.
The `broadcast_identifier` is appended to the queue name when the
`BROADCAST` handler type is used. It must uniquely identify service
instances that receive broadcasts.
The default `broadcast_identifi... |
(module
(function_definition
(function_name_pastdate) function_name_pastdate
(parameters
(identifier_self) identifier_self
(identifier_prompt) identifier_prompt
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
... | Prompts user to input a date in the past. |
(module
(function_definition
(function_name_add_photometry) function_name_add_photometry
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_compare_to_existing) identifier_compare_to_existing
(True) True
)default_parameter
(dictionary_splat_pat... | Add a `Photometry` instance to this entry. |
(module
(function_definition
(function_name_get_paginated_response) function_name_get_paginated_response
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identi... | Annotate the response with pagination information |
(module
(function_definition
(function_name_input_option) function_name_input_option
(parameters
(identifier_message) identifier_message
(default_parameter
(identifier_options) identifier_options
(string_"yn") string_"yn"
)default_parameter
(default_parameter
(i... | Reads an option from the screen, with a specified prompt.
Keeps asking until a valid option is sent by the user. |
(module
(function_definition
(function_name_guess_content_type_and_encoding) function_name_guess_content_type_and_encoding
(parameters
(identifier_path) identifier_path
)parameters
(block
(for_statement
(pattern_list
(identifier_ext) identifier_ext
(identifier_c... | Guess the content type of a path, using ``mimetypes``.
Falls back to "application/binary" if no content type is found.
Args:
path (str): the path to guess the mimetype of
Returns:
str: the content type of the file |
(module
(function_definition
(function_name_delete_network) function_name_delete_network
(parameters
(identifier_self) identifier_self
(identifier_network) identifier_network
)parameters
(block
(expression_statement
(assignment
(identifier_net_id) identifier_net_id
... | Deletes the specified network |
(module
(function_definition
(function_name_update_extent_from_rectangle) function_name_update_extent_from_rectangle
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | Update extent value in GUI based from the QgsMapTool rectangle.
.. note:: Delegates to update_extent() |
(module
(function_definition
(function_name_to_representation) function_name_to_representation
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_representation) identifier_r... | Convert given internal object instance into representation dict.
Representation dict may be later serialized to the content-type
of choice in the resource HTTP method handler.
This loops over all fields and retrieves source keys/attributes as
field values with respect to optional field... |
(module
(function_definition
(function_name_config) function_name_config
(parameters
(identifier_name) identifier_name
(identifier_config) identifier_config
(default_parameter
(identifier_write) identifier_write
(True) True
)default_parameter
)parameters
(block
... | Builds syslog-ng configuration. This function is intended to be used from
the state module, users should not use it directly!
name : the id of the Salt document or it is the format of <statement name>.id
config : the parsed YAML code
write : if True, it writes the config into the configuration file,
... |
(module
(function_definition
(function_name_mach2tas) function_name_mach2tas
(parameters
(identifier_Mach) identifier_Mach
(identifier_H) identifier_H
)parameters
(block
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(ident... | Mach number to True Airspeed |
(module
(function_definition
(function_name_add_child_book) function_name_add_child_book
(parameters
(identifier_self) identifier_self
(identifier_book_id) identifier_book_id
(identifier_child_id) identifier_child_id
)parameters
(block
(if_statement
(comparison_operator... | Adds a child to a book.
arg: book_id (osid.id.Id): the ``Id`` of a book
arg: child_id (osid.id.Id): the ``Id`` of the new child
raise: AlreadyExists - ``book_id`` is already a parent of
``child_id``
raise: NotFound - ``book_id`` or ``child_id`` not found
... |
(module
(function_definition
(function_name_progress_status) function_name_progress_status
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_self) identifie... | Displays progress in statusbar |
(module
(function_definition
(function_name_generate_ppi_network) function_name_generate_ppi_network
(parameters
(typed_parameter
(identifier_ppi_graph_path) identifier_ppi_graph_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parame... | Generate the protein-protein interaction network.
:return Network: Protein-protein interaction network with information on differential expression. |
(module
(function_definition
(function_name_read_float) function_name_read_float
(parameters
(identifier_self) identifier_self
(identifier_registeraddress) identifier_registeraddress
(default_parameter
(identifier_functioncode) identifier_functioncode
(integer_3) integer_3
... | Read a floating point number from the slave.
Floats are stored in two or more consecutive 16-bit registers in the slave. The
encoding is according to the standard IEEE 754.
There are differences in the byte order used by different manufacturers. A floating
point value of 1.0 is encoded... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.