sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_load_distant) function_name_load_distant
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Loading dist... | Load the distant Zotero data. |
(module
(function_definition
(function_name_extract_audio) function_name_extract_audio
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_channels) identifier_channels
(integer_1) integer_1
)default_parameter
(default_parameter
... | Extract audio from an input file to a temporary WAV file. |
(module
(function_definition
(function_name_on_any_event) function_name_on_any_event
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(for_statement
(identifier_delegate) identifier_delegate
(attribute
(ide... | On any event method |
(module
(function_definition
(function_name_processing_blocks) function_name_processing_blocks
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_sbi_ids) identifier_sbi_ids
(attribute
(call... | Return list of PBs associated with the subarray.
<http://www.esrf.eu/computing/cs/tango/pytango/v920/server_api/server.html#PyTango.server.pipe> |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Process text, writing it to the virtual screen while handling
ANSI escape codes. |
(module
(function_definition
(function_name__get_service_config) function_name__get_service_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifie... | Reads in config file of UAA credential information
or generates one as a side-effect if not yet
initialized. |
(module
(function_definition
(function_name_transform_e1e2) function_name_transform_e1e2
(parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_e1) identifier_e1
(identifier_e2) identifier_e2
(default_parameter
(identifier_center_x) identifier_cen... | maps the coordinates x, y with eccentricities e1 e2 into a new elliptical coordiante system
:param x:
:param y:
:param e1:
:param e2:
:param center_x:
:param center_y:
:return: |
(module
(function_definition
(function_name_parse_string) function_name_parse_string
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_word) identifier_word
(string_'') string_''
)assignment
... | Tokenize a Fortran string. |
(module
(function_definition
(function_name_prepare_read) function_name_prepare_read
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_method) identifier_method
(string_'readlines') string_'readlines'
)default_parameter
(default_parameter
... | Prepare various input types for parsing.
Args:
data (iter): Data to read
method (str): Method to process data with
mode (str): Custom mode to process with, if data is a file
Returns:
list: List suitable for parsing
Raises:
TypeError: Invalid value for data |
(module
(function_definition
(function_name_set_log_block_num) function_name_set_log_block_num
(parameters
(identifier_self) identifier_self
(identifier_bl) identifier_bl
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identif... | Set the logical block number for the child.
Parameters:
bl - Logical block number of the child.
Returns:
Nothing. |
(module
(function_definition
(function_name_get_access_token) function_name_get_access_token
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_access_tok... | get a valid access token |
(module
(function_definition
(function_name_match) function_name_match
(parameters
(identifier_self) identifier_self
(identifier_device) identifier_device
)parameters
(block
(return_statement
(call
(identifier_all) identifier_all
(generator_expression
... | Check if the device object matches this filter. |
(module
(function_definition
(function_name_threaded_start) function_name_threaded_start
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_no_init) identifier_no_init
(False) False
)default_parameter
)parameters
(block
(expression_stat... | Spawns a worker thread to set up the zookeeper connection |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_destination) identifier_destination
(identifier_filename) identifier_filename
(identifier_template_name) identifier_template_name
(dictionary_splat_pat... | Write a file according to the template name
Args:
destination (string): the destination location
filename (string): the filename that will be written
template_name (string): the name of the template
kwargs (dict): all attribute that will be pa... |
(module
(function_definition
(function_name__effective_perm_list_from_iter) function_name__effective_perm_list_from_iter
(parameters
(identifier_self) identifier_self
(identifier_perm_iter) identifier_perm_iter
)parameters
(block
(expression_statement
(assignment
(i... | Return list of effective permissions for for highest permission in
``perm_iter``, ordered lower to higher, or None if ``perm_iter`` is empty. |
(module
(function_definition
(function_name__get_block_publisher) function_name__get_block_publisher
(parameters
(identifier_self) identifier_self
(identifier_state_hash) identifier_state_hash
)parameters
(block
(expression_statement
(assignment
(identifier_state_vi... | Returns the block publisher based on the consensus module set by the
"sawtooth_settings" transaction family.
Args:
state_hash (str): The current state root hash for reading settings.
Raises:
InvalidGenesisStateError: if any errors occur getting the
Block... |
(module
(function_definition
(function_name_unlock) function_name_unlock
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_password) identifier_password
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
... | Unlock the account with a password.
If the account is already unlocked, nothing happens, even if the password is wrong.
Raises:
ValueError: (originating in ethereum.keys) if the password is wrong
(and the account is locked) |
(module
(function_definition
(function_name_hybrid_meco_frequency) function_name_hybrid_meco_frequency
(parameters
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
(identifier_chi1) identifier_chi1
(identifier_chi2) identifier_chi2
(default_parameter
(identifie... | Return the frequency of the hybrid MECO
Parameters
----------
m1 : float
Mass of the primary object in solar masses.
m2 : float
Mass of the secondary object in solar masses.
chi1: float
Dimensionless spin of the primary object.
chi2: float
Dimensionless spin of t... |
(module
(function_definition
(function_name_write_tex) function_name_write_tex
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_datadir) identifier_datadir
(attribute
(identifier_livvkit) identifier_livvkit
(identifi... | Finds all of the output data files, and writes them out to .tex |
(module
(function_definition
(function_name_parse_tibiadata_datetime) function_name_parse_tibiadata_datetime
(parameters
(identifier_date_dict) identifier_date_dict
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
... | Parses time objects from the TibiaData API.
Time objects are made of a dictionary with three keys:
date: contains a string representation of the time
timezone: a string representation of the timezone the date time is based on
timezone_type: the type of representation used in the timezone ke... |
(module
(function_definition
(function_name_set_properties) function_name_set_properties
(parameters
(identifier_self) identifier_self
(identifier_pathobj) identifier_pathobj
(identifier_props) identifier_props
(identifier_recursive) identifier_recursive
)parameters
(block
... | Set artifact properties |
(module
(function_definition
(function_name_power_on) function_name_power_on
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_comment) identifier_comment
(type
(identifier_str) identifier_str
)type
(None) None
)typed... | Power on.
:param comment: Reason machine was powered on.
:type comment: `str`
:param wait: If specified, wait until the machine is powered on.
:type wait: `bool`
:param wait_interval: How often to poll, defaults to 5 seconds.
:type wait_interval: `int` |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_options) identifier_options
)dict... | get the trigger to fire |
(module
(function_definition
(function_name_from_hising) function_name_from_hising
(parameters
(identifier_cls) identifier_cls
(identifier_h) identifier_h
(identifier_J) identifier_J
(default_parameter
(identifier_offset) identifier_offset
(None) None
)default_par... | Construct a binary polynomial from a higher-order Ising problem.
Args:
h (dict):
The linear biases.
J (dict):
The higher-order biases.
offset (optional, default=0.0):
Constant offset applied to the model.
Returns:
... |
(module
(function_definition
(function_name_authenticate) function_name_authenticate
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_password) identifier_password
)parameters
(block
(expression_statement
(assignment
... | Authenticates your user and returns an auth token.
:param str username: Hummingbird username.
:param str password: Hummingbird password.
:returns: str -- The Auth Token
:raises: ValueError -- If the Authentication is wrong |
(module
(function_definition
(function_name_age) function_name_age
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_aff4_type) identifier_aff4_type
(call
(attribute
(identifi... | RDFDatetime at which the object was created. |
(module
(function_definition
(function_name_getLogs) function_name_getLogs
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_argument_filters) identifier_argument_filters
(None) None
)default_parameter
(default_parameter
(identifier_fr... | Get events for this contract instance using eth_getLogs API.
This is a stateless method, as opposed to createFilter.
It can be safely called against nodes which do not provide
eth_newFilter API, like Infura nodes.
If there are many events,
like ``Transfer`` events for a popular... |
(module
(function_definition
(function_name_to) function_name_to
(parameters
(identifier_self) identifier_self
(identifier_unit) identifier_unit
)parameters
(block
(import_from_statement
(dotted_name
(identifier_astropy) identifier_astropy
(identifier_unit... | Convert this velocity to the given AstroPy unit. |
(module
(function_definition
(function_name_shape) function_name_shape
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)ty... | Required shape of |NetCDFVariableDeep.array|.
For the default configuration, the first axis corresponds to the
number of devices, and the second one to the number of timesteps.
We show this for the 0-dimensional input sequence |lland_inputs.Nied|:
>>> from hydpy.core.examples import pr... |
(module
(function_definition
(function_name_any_ends_with) function_name_any_ends_with
(parameters
(identifier_self) identifier_self
(identifier_string_list) identifier_string_list
(identifier_pattern) identifier_pattern
)parameters
(block
(try_statement
(block
... | Returns true iff one of the strings in string_list ends in
pattern. |
(module
(function_definition
(function_name_tokenize_string) function_name_tokenize_string
(parameters
(identifier_cls) identifier_cls
(identifier_string) identifier_string
(identifier_separator) identifier_separator
)parameters
(block
(expression_statement
(assignment
... | Split string with given separator unless the separator is escaped with backslash |
(module
(function_definition
(function_name_dispatch) function_name_dispatch
(parameters
(identifier_self) identifier_self
(identifier_method_frame) identifier_method_frame
)parameters
(block
(expression_statement
(assignment
(identifier_method) identifier_method
... | Dispatch a method for this protocol. |
(module
(function_definition
(function_name_jsonld) function_name_jsonld
(parameters
(identifier_client) identifier_client
(identifier_datasets) identifier_datasets
)parameters
(block
(import_from_statement
(dotted_name
(identifier_renku) identifier_renku
... | Format datasets as JSON-LD. |
(module
(function_definition
(function_name_updateDatasetMenu) function_name_updateDatasetMenu
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_enabled) identifier_enabled
(True) True
)assignm... | Update the `export` QAction when the Dataset menu is pulled down.
This method is a slot. See class ctor for details. |
(module
(function_definition
(function_name_get_typecast_value) function_name_get_typecast_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier_type) identifier_type
)parameters
(block
(if_statement
(comparison_operator
... | Helper method to determine actual value based on type of feature variable.
Args:
value: Value in string form as it was parsed from datafile.
type: Type denoting the feature flag type.
Return:
Value type-casted based on type of feature variable. |
(module
(function_definition
(function_name_publish_topology_closed) function_name_publish_topology_closed
(parameters
(identifier_self) identifier_self
(identifier_topology_id) identifier_topology_id
)parameters
(block
(expression_statement
(assignment
(identifier_... | Publish a TopologyClosedEvent to all topology listeners.
:Parameters:
- `topology_id`: A unique identifier for the topology this server
is a part of. |
(module
(function_definition
(function_name__validate_columns) function_name__validate_columns
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_geom_cols) identifier_geom_cols
(set
(string... | Validate the options in the styles |
(module
(function_definition
(function_name_go) function_name_go
(parameters
(identifier_gconfig) identifier_gconfig
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_rconfig) identifier_rconfig
(subscript
... | Actually run the worker.
This does some required housekeeping, like setting up logging for
:class:`~rejester.workers.MultiWorker` and establishing the global
:mod:`yakonfig` configuration. This expects to be called with the
:mod:`yakonfig` configuration unset.
:param dict gconfig: the :mod:`yakon... |
(module
(function_definition
(function_name_restore) function_name_restore
(parameters
(identifier_self) identifier_self
(identifier_hist_uid) identifier_hist_uid
)parameters
(block
(if_statement
(subscript
(call
(attribute
(identifier_self... | Restore by ID |
(module
(function_definition
(function_name_can_execute) function_name_can_execute
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
... | True if we can execute the callback. |
(module
(function_definition
(function_name_get_value) function_name_get_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier___is_value_array) identifier___is_value_array
... | Retreive usage value within report |
(module
(function_definition
(function_name_delete_answer) function_name_delete_answer
(parameters
(identifier_self) identifier_self
(identifier_answer_id) identifier_answer_id
)parameters
(block
(import_from_statement
(dotted_name
(identifier_dlkit) identifier_dlki... | Deletes the ``Answer`` identified by the given ``Id``.
arg: answer_id (osid.id.Id): the ``Id`` of the ``Answer`` to
delete
raise: NotFound - an ``Answer`` was not found identified by the
given ``Id``
raise: NullArgument - ``answer_id`` is ``null``
ra... |
(module
(function_definition
(function_name_parse_json) function_name_parse_json
(parameters
(identifier_target) identifier_target
(identifier_json) identifier_json
(default_parameter
(identifier_create_sections) identifier_create_sections
(False) False
)default_paramet... | Given a confmanager object and a dictionary object, import the values from the dictionary into the object, optionally adding sections and options as it goes. |
(module
(function_definition
(function_name_show_error) function_name_show_error
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
... | Send an error message to the active client. The new error will be
displayed on any active GUI clients.
Args:
message (str): Plain-text message to display.
Returns:
None
>>> s = _syncthing()
>>> s.system.show_error('my error m... |
(module
(function_definition
(function_name_generate_lifetime_subparser) function_name_generate_lifetime_subparser
(parameters
(identifier_subparsers) identifier_subparsers
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
... | Adds a sub-command parser to `subparsers` to make a lifetime report. |
(module
(function_definition
(function_name_results) function_name_results
(parameters
(identifier_project) identifier_project
(identifier_apikey) identifier_apikey
(identifier_run) identifier_run
(identifier_watch) identifier_watch
(identifier_server) identifier_server
(id... | Check to see if results are available for a particular mapping
and if so download.
Authentication is carried out using the --apikey option which
must be provided. Depending on the server operating mode this
may return a mask, a linkage table, or a permutation. Consult
the entity service documentati... |
(module
(function_definition
(function_name_check_cups_allowed) function_name_check_cups_allowed
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_l... | Check if CUPS is allowd by token |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier__do_... | Initiate server connection. |
(module
(function_definition
(function_name_add_key_filters) function_name_add_key_filters
(parameters
(identifier_self) identifier_self
(identifier_key_filters) identifier_key_filters
)parameters
(block
(if_statement
(comparison_operator
(attribute
(ide... | Adds key filters to the inputs.
:param key_filters: a list of filters
:type key_filters: list
:rtype: :class:`RiakMapReduce` |
(module
(function_definition
(function_name__emit) function_name__emit
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
... | Append content to the main report file. |
(module
(function_definition
(function_name_get_allow_future) function_name_get_allow_future
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_qs) identifier_qs
(call
(attribute
... | Only superusers and users with the permission can edit the post. |
(module
(function_definition
(function_name_set_managing_editor) function_name_set_managing_editor
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(attribute
... | Parses managing editor and set value |
(module
(function_definition
(function_name_date_this_decade) function_name_date_this_decade
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_before_today) identifier_before_today
(True) True
)default_parameter
(default_parameter
(ide... | Gets a Date object for the decade year.
:param before_today: include days in current decade before today
:param after_today: include days in current decade after today
:example Date('2012-04-04')
:return Date |
(module
(function_definition
(function_name_binary_op) function_name_binary_op
(parameters
(identifier_data) identifier_data
(identifier_op) identifier_op
(identifier_other) identifier_other
(default_parameter
(identifier_blen) identifier_blen
(None) None
)default... | Compute a binary operation block-wise over `data`. |
(module
(function_definition
(function_name_iter_identities) function_name_iter_identities
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_stanza) identifier_stanza
(None) None
)default_parameter
)parameters
(block
(for_statement
... | Return an iterator of tuples describing the identities of the node.
:param stanza: The IQ request stanza
:type stanza: :class:`~aioxmpp.IQ` or :data:`None`
:rtype: iterable of (:class:`str`, :class:`str`, :class:`str` or
:data:`None`, :class:`str` or :data:`None`) tuples
:re... |
(module
(function_definition
(function_name_delete_tenant) function_name_delete_tenant
(parameters
(identifier_self) identifier_self
(identifier_tenant) identifier_tenant
)parameters
(block
(expression_statement
(assignment
(identifier_tenant_id) identifier_tenant_i... | ADMIN ONLY. Removes the tenant from the system. There is no 'undo'
available, so you should be certain that the tenant specified is the
tenant you wish to delete. |
(module
(function_definition
(function_name__find_neighbor_and_lambda) function_name__find_neighbor_and_lambda
(parameters
(identifier_neighbor_indices) identifier_neighbor_indices
(identifier_neighbor_distances) identifier_neighbor_distances
(identifier_core_distances) identifier_core_dista... | Find the nearest mutual reachability neighbor of a point, and compute
the associated lambda value for the point, given the mutual reachability
distance to a nearest neighbor.
Parameters
----------
neighbor_indices : array (2 * min_samples, )
An array of raw distance based nearest neighbor ... |
(module
(function_definition
(function_name_getNameOwner) function_name_getNameOwner
(parameters
(identifier_self) identifier_self
(identifier_busName) identifier_busName
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(cal... | Calls org.freedesktop.DBus.GetNameOwner
@rtype: L{twisted.internet.defer.Deferred}
@returns: a Deferred to the unique connection name owning the bus name |
(module
(function_definition
(function_name_get_named_graph) function_name_get_named_graph
(parameters
(identifier_identifier) identifier_identifier
(default_parameter
(identifier_store_id) identifier_store_id
(identifier_DEFAULT_STORE) identifier_DEFAULT_STORE
)default_param... | Returns an open named graph. |
(module
(function_definition
(function_name_DbGetExportdDeviceListForClass) function_name_DbGetExportdDeviceListForClass
(parameters
(identifier_self) identifier_self
(identifier_argin) identifier_argin
)parameters
(block
(expression_statement
(call
(attribute
... | Query the database for device exported for the specified class.
:param argin: Class name
:type: tango.DevString
:return: Device exported list
:rtype: tango.DevVarStringArray |
(module
(function_definition
(function_name__compile_to_sklearn) function_name__compile_to_sklearn
(parameters
(identifier_self) identifier_self
(identifier_expr) identifier_expr
)parameters
(block
(expression_statement
(assignment
(identifier_sklearn_pipeline_str) ... | Compile a DEAP pipeline into a sklearn pipeline.
Parameters
----------
expr: DEAP individual
The DEAP pipeline to be compiled
Returns
-------
sklearn_pipeline: sklearn.pipeline.Pipeline |
(module
(function_definition
(function_name_update_policy) function_name_update_policy
(parameters
(identifier_self) identifier_self
(identifier_defaultHeaders) identifier_defaultHeaders
)parameters
(block
(if_statement
(comparison_operator
(attribute
(i... | rewrite update policy so that additional pins are added and not overwritten |
(module
(function_definition
(function_name_organization_deidentify_template_path) function_name_organization_deidentify_template_path
(parameters
(identifier_cls) identifier_cls
(identifier_organization) identifier_organization
(identifier_deidentify_template) identifier_deidentify_template... | Return a fully-qualified organization_deidentify_template string. |
(module
(function_definition
(function_name_show_calltip) function_name_show_calltip
(parameters
(identifier_self) identifier_self
(identifier_signature) identifier_signature
(default_parameter
(identifier_doc) identifier_doc
(string_'') string_''
)default_parameter
... | Show calltip.
Calltips look like tooltips but will not disappear if mouse hovers
them. They are useful for displaying signature information on methods
and functions. |
(module
(function_definition
(function_name_copy_func) function_name_copy_func
(parameters
(typed_parameter
(identifier_func) identifier_func
(type
(identifier_Callable) identifier_Callable
)type
)typed_parameter
)parameters
(type
(identifier_Callabl... | Returns a copy of a function.
:param func: The function to copy.
:returns: The copied function. |
(module
(function_definition
(function_name_hyphenation) function_name_hyphenation
(parameters
(identifier_phrase) identifier_phrase
(default_parameter
(identifier_format) identifier_format
(string_'json') string_'json'
)default_parameter
)parameters
(block
(exp... | Returns back the stress points in the "phrase" passed
:param phrase: word for which hyphenation is to be found
:param format: response structure type. Defaults to: "json"
:returns: returns a json object as str, False if invalid phrase |
(module
(function_definition
(function_name_wait) function_name_wait
(parameters
(default_parameter
(identifier_msg) identifier_msg
(string_'') string_''
)default_parameter
(default_parameter
(identifier_exceptions) identifier_exceptions
(None) None
)def... | Decorator to handle generic waiting situations.
Will handle StaleElementReferenceErrors.
:param msg: Error message
:param exceptions: Extra exceptions to handle
:param timeout: time to keep trying (default: 10 seconds)
:return: the result of the decorated function |
(module
(function_definition
(function_name_rotation) function_name_rotation
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_rotation) identifier_rotation
(call
(attribute
(... | The current Z rotation of the tool in degrees, clockwise
from the tool's logical neutral position and whether it has changed
in this event.
For tools of type :attr:`~libinput.constant.TabletToolType.MOUSE`
and :attr:`~libinput.constant.TabletToolType.LENS` the logical
neutral position is pointing to the curr... |
(module
(function_definition
(function_name_anscombe) function_name_anscombe
(parameters
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(tuple_pattern
(tuple_pattern
(identifie... | Creates 2x2 grid plot of the 4 anscombe datasets for illustration. |
(module
(function_definition
(function_name_create_ui) function_name_create_ui
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_entry) identi... | Create the user interface
create_ui is a method called during the Delegate's
initialisation process, to create, add to, or modify any UI
created by GtkBuilder files. |
(module
(function_definition
(function_name_integrate) function_name_integrate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_wave) identifier_wave
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_... | Integrate the throughput over the specified wavelength set.
If no wavelength set is specified, the built-in one is used.
Integration is done using :meth:`~Integrator.trapezoidIntegration`
with ``x=wave`` and ``y=throughput``.
Also see :ref:`pysynphot-formula-equvw`.
Parameters
... |
(module
(function_definition
(function_name_get_all_parcels) function_name_get_all_parcels
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_view) identifier_view
(None) None
)default_parameter
)parameters
(block
(return_statement
... | Get all parcels in this cluster.
@return: A list of ApiParcel objects. |
(module
(function_definition
(function_name_get_attr_info) function_name_get_attr_info
(parameters
(identifier_binary_view) identifier_binary_view
)parameters
(block
(global_statement
(identifier__ATTR_BASIC) identifier__ATTR_BASIC
)global_statement
(expression_statemen... | Gets basic information from a binary stream to allow correct processing of
the attribute header.
This function allows the interpretation of the Attribute type, attribute length
and if the attribute is non resident.
Args:
binary_view (memoryview of bytearray) - A binary stream with the
... |
(module
(function_definition
(function_name__render_internal_label) function_name__render_internal_label
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ncc) identifier_ncc
(attribute
(id... | Render with a label inside the bar graph. |
(module
(function_definition
(function_name_get_action_group_names) function_name_get_action_group_names
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifi... | Return all the security group names configured in this action. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_basicConfig) identifier_basicConfig
)attribute
... | Module level test. |
(module
(function_definition
(function_name_A_hollow_cylinder) function_name_A_hollow_cylinder
(parameters
(identifier_Di) identifier_Di
(identifier_Do) identifier_Do
(identifier_L) identifier_L
)parameters
(block
(expression_statement
(identifier_r) identifier_r
... | r'''Returns the surface area of a hollow cylinder.
.. math::
A = \pi D_o L + \pi D_i L + 2\cdot \frac{\pi D_o^2}{4}
- 2\cdot \frac{\pi D_i^2}{4}
Parameters
----------
Di : float
Diameter of the hollow in the cylinder, [m]
Do : float
Diameter of the exterior of the ... |
(module
(function_definition
(function_name_update_milestone) function_name_update_milestone
(parameters
(identifier_self) identifier_self
(identifier_milestone_id) identifier_milestone_id
(identifier_title) identifier_title
(identifier_deadline) identifier_deadline
(identifier_p... | Modifies a single milestone. You can use this to shift the deadline of
a single milestone, and optionally shift the deadlines of subsequent
milestones as well. |
(module
(function_definition
(function_name__read_mode_qsopt) function_name__read_mode_qsopt
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
(identifier_kind) identifier_kind
)parameters
(block
(expression_statement
(assignment
... | Read Quick-Start Response option.
Positional arguments:
* size - int, length of option
* kind - int, 27 (Quick-Start Response)
Returns:
* dict -- extracted Quick-Start Response (QS) option
Structure of TCP QSopt [RFC 4782]:
0 ... |
(module
(function_definition
(function_name_get_item_key) function_name_get_item_key
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
... | Return the value of the item 'key'. |
(module
(function_definition
(function_name_get_fw_dict) function_name_get_fw_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_fw_dict) identifier_fw_dict
(dictionary
)dictionary
... | This API creates a FW dictionary from the local attributes. |
(module
(function_definition
(function_name_fill_nulls) function_name_fill_nulls
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_col) identifier_col
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(... | Fill all null values with NaN values in a column.
Null values are ``None`` or en empty string
:param col: column name
:type col: str
:example: ``ds.fill_nulls("mycol")`` |
(module
(function_definition
(function_name_search_function) function_name_search_function
(parameters
(identifier_encoding) identifier_encoding
)parameters
(block
(if_statement
(comparison_operator
(identifier_encoding) identifier_encoding
(identifier__CACHE) i... | Register our "bad codecs" with Python's codecs API. This involves adding
a search function that takes in an encoding name, and returns a codec
for that encoding if it knows one, or None if it doesn't.
The encodings this will match are:
- Encodings of the form 'sloppy-windows-NNNN' or 'sloppy-iso-8859-... |
(module
(function_definition
(function_name_lock) function_name_lock
(parameters
(identifier_key) identifier_key
(identifier_text) identifier_text
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(ident... | Locks the given text using the given key and returns the result |
(module
(function_definition
(function_name__calc_d) function_name__calc_d
(parameters
(identifier_aod700) identifier_aod700
(identifier_p) identifier_p
)parameters
(block
(expression_statement
(assignment
(identifier_p0) identifier_p0
(float_101325.) floa... | Calculate the d coefficient. |
(module
(function_definition
(function_name_init0) function_name_init0
(parameters
(identifier_self) identifier_self
(identifier_dae) identifier_dae
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_dae)... | Set initial voltage and reactive power for PQ.
Overwrites Bus.voltage values |
(module
(function_definition
(function_name_safe_unicode) function_name_safe_unicode
(parameters
(identifier_string) identifier_string
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list... | Safely transform any object into utf8 encoded bytes |
(module
(function_definition
(function_name_separate_struct_array) function_name_separate_struct_array
(parameters
(identifier_array) identifier_array
(identifier_dtypes) identifier_dtypes
)parameters
(block
(try_statement
(block
(expression_statement
(a... | Takes an array with a structured dtype, and separates it out into
a list of arrays with dtypes coming from the input ``dtypes``.
Does the inverse of ``join_struct_arrays``.
:param np.ndarray array: Structured array.
:param dtypes: List of ``np.dtype``, or just a ``np.dtype`` and the number of
t... |
(module
(function_definition
(function_name_write_blockdata) function_name_write_blockdata
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(default_parameter
(identifier_parent) identifier_parent
(None) None
)default_parameter
)paramete... | Appends a block of data to the serialization stream
:param obj: String form of the data block |
(module
(function_definition
(function_name_preproc_directive) function_name_preproc_directive
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(call
(attribute
(... | Consume a preproc directive. |
(module
(function_definition
(function_name_hostname) function_name_hostname
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_hostname) identifier_hostname
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Ensures that the hostname is set to the specified value.
.. versionadded:: 2019.2.0
name: The name of the module function to execute.
hostname(str): The hostname of the server.
SLS Example:
.. code-block:: yaml
set_name:
cimc.hostname:
- hostname: foobar |
(module
(function_definition
(function_name_component_acting_parent_tag) function_name_component_acting_parent_tag
(parameters
(identifier_parent_tag) identifier_parent_tag
(identifier_tag) identifier_tag
)parameters
(block
(if_statement
(comparison_operator
(attrib... | Only intended for use in getting components, look for tag name of fig-group
and if so, find the first fig tag inside it as the acting parent tag |
(module
(function_definition
(function_name_restore_site_properties) function_name_restore_site_properties
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_site_property) identifier_site_property
(string_"ff_map") string_"ff_map"
)default_parameter... | Restore the site properties for the final packed molecule.
Args:
site_property (str):
filename (str): path to the final packed molecule.
Returns:
Molecule |
(module
(function_definition
(function_name_predict_files) function_name_predict_files
(parameters
(identifier_self) identifier_self
(identifier_files) identifier_files
)parameters
(block
(expression_statement
(assignment
(identifier_imgs) identifier_imgs
... | reads files off disk, resizes them
and then predicts them, files should
be a list or itrerable of file paths
that lead to images, they are then
loaded with opencv, resized, and predicted |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_invoice_id) identifier_invoice_id
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(bl... | Delete an invoice
You can delete an invoice which is in the draft state.
Args:
invoice_id : Id for delete the invoice
Returns:
The response is always be an empty array like this - [] |
(module
(function_definition
(function_name_add_resource) function_name_add_resource
(parameters
(identifier_self) identifier_self
(identifier_resource_id) identifier_resource_id
(identifier_attributes) identifier_attributes
(default_parameter
(identifier_parents) identifier_pa... | Will add the given resource with a given identifier and attribute
dictionary.
example/
add_resource('/asset/12', {'id': 12, 'manufacturer': 'GE'}) |
(module
(function_definition
(function_name_register) function_name_register
(parameters
(identifier_scraper) identifier_scraper
)parameters
(block
(global_statement
(identifier_scrapers) identifier_scrapers
)global_statement
(expression_statement
(assignment
... | Registers a scraper to make it available for the generic scraping interface. |
(module
(function_definition
(function_name__red_listing_validation) function_name__red_listing_validation
(parameters
(identifier_key) identifier_key
(identifier_listing) identifier_listing
)parameters
(block
(if_statement
(identifier_listing) identifier_listing
(blo... | Raises an RedValidationError, if the given listing does not comply with cwl_job_listing_schema.
If listing is None or an empty list, no exception is thrown.
:param key: The input key to build an error message if needed.
:param listing: The listing to validate
:raise RedValidationError: If the given lis... |
(module
(function_definition
(function_name_get_ilwdchar_class) function_name_get_ilwdchar_class
(parameters
(identifier_tbl_name) identifier_tbl_name
(identifier_col_name) identifier_col_name
(default_parameter
(identifier_namespace) identifier_namespace
(call
(ide... | Searches this module's namespace for a subclass of _ilwd.ilwdchar
whose table_name and column_name attributes match those provided.
If a matching subclass is found it is returned; otherwise a new
class is defined, added to this module's namespace, and returned.
Example:
>>> process_id = get_ilwdchar_class("proce... |
(module
(function_definition
(function_name__infer_decorator_callchain) function_name__infer_decorator_callchain
(parameters
(identifier_node) identifier_node
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
... | Detect decorator call chaining and see if the end result is a
static or a classmethod. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.