sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_subgraph) function_name_subgraph
(parameters
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)parameters
(block
(expression_statement
(assignment
(identifier_adj_matrix) identifier_adj_matrix
... | Return the subgraph consisting of the given nodes and edges
between thses nodes.
Parameters
----------
nodes : array_like(int, ndim=1)
Array of node indices.
Returns
-------
DiGraph
A DiGraph representing the subgraph. |
(module
(function_definition
(function_name__index_key_for) function_name__index_key_for
(parameters
(identifier_self) identifier_self
(identifier_att) identifier_att
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
)parameters
... | Returns a key based on the attribute and its value.
The key is used for indexing. |
(module
(function_definition
(function_name_cli) function_name_cli
(parameters
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) identifier_mgr
(call
(attribute
(identifier_SoftLayer) ... | Get Event Log Types |
(module
(function_definition
(function_name_check_roundoff) function_name_check_roundoff
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_rtol) identifier_rtol
(float_0.25) float_0.25
)default_parameter
(default_parameter
(identifier_... | Check for roundoff errors in fit.p.
Compares standard deviations from fit.p and fit.palt to see if they
agree to within relative tolerance ``rtol`` and absolute tolerance
``atol``. Generates a warning if they do not (in which
case an SVD cut might be advisable). |
(module
(function_definition
(function_name__apply_to_data) function_name__apply_to_data
(parameters
(identifier_data) identifier_data
(identifier_func) identifier_func
(default_parameter
(identifier_unpack_dict) identifier_unpack_dict
(False) False
)default_parameter
... | Apply a function to data, trying to unpack different data
types. |
(module
(function_definition
(function_name_publish_server_closed) function_name_publish_server_closed
(parameters
(identifier_self) identifier_self
(identifier_server_address) identifier_server_address
(identifier_topology_id) identifier_topology_id
)parameters
(block
(express... | Publish a ServerClosedEvent to all server listeners.
:Parameters:
- `server_address`: The address (host/port pair) of the server.
- `topology_id`: A unique identifier for the topology this server
is a part of. |
(module
(function_definition
(function_name_fromDictionary) function_name_fromDictionary
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v... | creates the portal properties object from a dictionary |
(module
(function_definition
(function_name_request_uplink_info) function_name_request_uplink_info
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
(identifier_agent) identifier_agent
)parameters
(block
(expression_statement
(call
... | Process uplink message from an agent. |
(module
(function_definition
(function_name_command) function_name_command
(parameters
(identifier_cmd) identifier_cmd
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_status) identifier_status
(identifier_out) identif... | Execute command and raise an exception upon an error.
>>> 'README' in command('ls')
True
>>> command('nonexistingcommand') #doctest: +ELLIPSIS
Traceback (most recent call last):
...
SdistCreationError |
(module
(function_definition
(function_name_future) function_name_future
(parameters
(identifier_self) identifier_self
(identifier_request_iterator) identifier_request_iterator
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
... | Asynchronously invokes the underlying RPC on the client.
Args:
request_iterator: An ASYNC iterator that yields request values for the RPC.
timeout: An optional duration of time in seconds to allow for the RPC.
If None, the timeout is considered infinite.
metadata: Optional :term:`m... |
(module
(function_definition
(function_name_unset) function_name_unset
(parameters
(identifier_ctx) identifier_ctx
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_file) identifier_file
(subscript
... | Removes the given key. |
(module
(function_definition
(function_name_score_kmer) function_name_score_kmer
(parameters
(identifier_self) identifier_self
(identifier_kmer) identifier_kmer
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
... | Calculate the log-odds score for a specific k-mer.
Parameters
----------
kmer : str
String representing a kmer. Should be the same length as the motif.
Returns
-------
score : float
Log-odd score. |
(module
(function_definition
(function_name_decode_vlqs) function_name_decode_vlqs
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_ints) identifier_ints
(list
)list
)assignment
)exp... | Decode str `s` into a list of integers. |
(module
(function_definition
(function_name__tweak_lane) function_name__tweak_lane
(parameters
(identifier_lane_details) identifier_lane_details
(identifier_dname) identifier_dname
)parameters
(block
(expression_statement
(assignment
(identifier_tweak_config_file) i... | Potentially tweak lane information to handle custom processing, reading a lane_config.yaml file. |
(module
(function_definition
(function_name__recurse_find_trace) function_name__recurse_find_trace
(parameters
(identifier_self) identifier_self
(identifier_structure) identifier_structure
(identifier_item) identifier_item
(default_parameter
(identifier_trace) identifier_trace
... | given a nested structure from _parse_repr and find the trace route to get to item |
(module
(function_definition
(function_name__previewFile) function_name__previewFile
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dataFrame) identifier_dataFrame
(call
(attribute
... | Updates the preview widgets with new models for both tab panes. |
(module
(function_definition
(function_name_check_vtech) function_name_check_vtech
(parameters
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_err) identifier_err
(string_"institution.vtech") string_"institution... | Suggest the correct name.
source: Virginia Tech Division of Student Affairs
source_url: http://bit.ly/2en1zbv |
(module
(function_definition
(function_name_update_collisions) function_name_update_collisions
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(subscript
(attribute
(i... | Test player for collisions with items |
(module
(function_definition
(function_name_list_nodes_full) function_name_list_nodes_full
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_... | Return all data on nodes |
(module
(function_definition
(function_name_unfreeze) function_name_unfreeze
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(default_parameter
(identifier_use_vt) identifier_use_v... | Unfreeze the named container.
path
path to the container parent directory
default: /var/lib/lxc (system)
.. versionadded:: 2015.8.0
use_vt
run the command through VT
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' lxc.unfreeze ... |
(module
(function_definition
(function_name_find_method) function_name_find_method
(parameters
(identifier_self) identifier_self
(identifier_decl) identifier_decl
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(attri... | Find class method to call for declaration based on name. |
(module
(function_definition
(function_name_aggregated_records) function_name_aggregated_records
(parameters
(identifier_all_records) identifier_all_records
(default_parameter
(identifier_key_fields) identifier_key_fields
(identifier_KEY_FIELDS) identifier_KEY_FIELDS
)default... | Yield dicts that correspond to aggregates of the flow records given by
the sequence of FlowRecords in `all_records`. Skips incomplete records.
This will consume the `all_records` iterator, and requires enough memory to
be able to read it entirely.
`key_fields` optionally contains the fields over which t... |
(module
(function_definition
(function_name_clone) function_name_clone
(parameters
(identifier_self) identifier_self
(identifier_source_id) identifier_source_id
(identifier_backup_id) identifier_backup_id
(identifier_size) identifier_size
(default_parameter
(identifier_vo... | create a volume then clone the contents of
the backup into the new volume |
(module
(function_definition
(function_name_set_rule_name) function_name_set_rule_name
(parameters
(identifier_self) identifier_self
(identifier_rule_name) identifier_rule_name
)parameters
(block
(if_statement
(not_operator
(call
(attribute
... | Add the matched centralized sampling rule name
if a segment is sampled because of that rule.
This method should be only used by the recorder. |
(module
(function_definition
(function_name_i32) function_name_i32
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(default_parameter
(ide... | Add an 32 byte integer field to template.
This is an convenience method that simply calls `Int` keyword with predefined length. |
(module
(function_definition
(function_name_limit_mem) function_name_limit_mem
(parameters
(default_parameter
(identifier_limit) identifier_limit
(parenthesized_expression
(binary_operator
(integer_4) integer_4
(binary_operator
(integer_102... | Set soft memory limit |
(module
(function_definition
(function_name_read_config) function_name_read_config
(parameters
(identifier_ip) identifier_ip
(identifier_mac) identifier_mac
)parameters
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
... | Read the current configuration of a myStrom device. |
(module
(function_definition
(function_name_prepare_function_symbol) function_name_prepare_function_symbol
(parameters
(identifier_self) identifier_self
(identifier_symbol_name) identifier_symbol_name
(default_parameter
(identifier_basic_addr) identifier_basic_addr
(None) Non... | Prepare the address space with the data necessary to perform relocations pointing to the given symbol
Returns a 2-tuple. The first item is the address of the function code, the second is the address of the
relocation target. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_build_parser) identifier_build_parser
(argument_list
... | This is a Toil pipeline for the UNC best practice RNA-Seq analysis.
RNA-seq fastqs are combined, aligned, sorted, filtered, and quantified.
Please read the README.md located in the same directory. |
(module
(function_definition
(function_name_dir2zip) function_name_dir2zip
(parameters
(identifier_in_dir) identifier_in_dir
(identifier_zip_fname) identifier_zip_fname
)parameters
(block
(expression_statement
(assignment
(identifier_z) identifier_z
(call
... | Make a zip file `zip_fname` with contents of directory `in_dir`
The recorded filenames are relative to `in_dir`, so doing a standard zip
unpack of the resulting `zip_fname` in an empty directory will result in
the original directory contents.
Parameters
----------
in_dir : str
Director... |
(module
(function_definition
(function_name___get_wbfmt_usrfld) function_name___get_wbfmt_usrfld
(parameters
(identifier_self) identifier_self
(identifier_data_nt) identifier_data_nt
)parameters
(block
(if_statement
(comparison_operator
(attribute
(ident... | Return format for text cell from namedtuple field specified by 'ntfld_wbfmt |
(module
(function_definition
(function_name_activate) function_name_activate
(parameters
(identifier_self) identifier_self
(identifier_ideSettings) identifier_ideSettings
(identifier_ideGlobalData) identifier_ideGlobalData
)parameters
(block
(expression_statement
(call
... | Activates the plugin.
The plugin may override the method to do specific
plugin activation handling.
ideSettings - reference to the IDE Settings singleton
see codimension/src/utils/settings.py
ideGlobalData - reference to the IDE global settings
... |
(module
(function_definition
(function_name_orphans_single) function_name_orphans_single
(parameters
(default_parameter
(identifier_default_exec) identifier_default_exec
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
... | Remove all orphans in the site, in the single user-mode. |
(module
(function_definition
(function_name__CreateImage) function_name__CreateImage
(parameters
(identifier_media_service) identifier_media_service
(identifier_opener) identifier_opener
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignmen... | Creates an image and uploads it to the server.
Args:
media_service: a SudsServiceProxy instance for AdWords's MediaService.
opener: an OpenerDirector instance.
url: a str URL used to load image data.
Returns:
The image that was successfully uploaded. |
(module
(function_definition
(function_name_get_apps_tools) function_name_get_apps_tools
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_tools_paths) identifier_tools_paths
(dictionary
)dictionary
)assignment
)expre... | Get applications' tools and their paths.
Return a dict with application names as keys and paths to tools'
directories as values. Applications without tools are omitted. |
(module
(function_definition
(function_name__postcheck) function_name__postcheck
(parameters
(identifier_self) identifier_self
(identifier_network) identifier_network
(identifier_feedin) identifier_feedin
)parameters
(block
(expression_statement
(assignment
(i... | Raises an error if the curtailment of a generator exceeds the
feed-in of that generator at any time step.
Parameters
-----------
network : :class:`~.grid.network.Network`
feedin : :pandas:`pandas.DataFrame<dataframe>`
DataFrame with feed-in time series in kW. Columns... |
(module
(function_definition
(function_name_accuracy) function_name_accuracy
(parameters
(identifier_current) identifier_current
(identifier_predicted) identifier_predicted
)parameters
(block
(expression_statement
(assignment
(identifier_acc) identifier_acc
... | Computes the accuracy of the TM at time-step t based on the prediction
at time-step t-1 and the current active columns at time-step t.
@param current (array) binary vector containing current active columns
@param predicted (array) binary vector containing predicted active columns
@return acc (float) predic... |
(module
(function_definition
(function_name_preflightInfo) function_name_preflightInfo
(parameters
(identifier_info) identifier_info
)parameters
(block
(expression_statement
(assignment
(identifier_missingRequired) identifier_missingRequired
(call
(i... | Returns a dict containing two items. The value for each
item will be a list of info attribute names.
================== ===
missingRequired Required data that is missing.
missingRecommended Recommended data that is missing.
================== === |
(module
(function_definition
(function_name_cli) function_name_cli
(parameters
(identifier_env) identifier_env
(identifier_volume_id) identifier_volume_id
(identifier_reason) identifier_reason
(identifier_immediate) identifier_immediate
)parameters
(block
(expression_stat... | Cancel existing snapshot space for a given volume. |
(module
(function_definition
(function_name_wheel) function_name_wheel
(parameters
(identifier_self) identifier_self
(identifier_direction) identifier_direction
(identifier_steps) identifier_steps
)parameters
(block
(expression_statement
(call
(attribute
... | Clicks the wheel the specified number of steps in the given direction.
Use Mouse.WHEEL_DOWN, Mouse.WHEEL_UP |
(module
(function_definition
(function_name_update_user_info) function_name_update_user_info
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
... | Update user info and settings.
:param \*\*kwargs: settings to be merged with
:func:`User.get_configfile` setings and sent to Filemail.
:rtype: ``bool`` |
(module
(function_definition
(function_name_broadcast) function_name_broadcast
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_deb... | Send a multicast M-SEARCH request asking for devices to report in. |
(module
(function_definition
(function_name_get_last_nonce) function_name_get_last_nonce
(parameters
(identifier_app) identifier_app
(identifier_key) identifier_key
(identifier_nonce) identifier_nonce
)parameters
(block
(expression_statement
(assignment
(ident... | Get the last_nonce used by the given key from the SQLAlchemy database.
Update the last_nonce to nonce at the same time.
:param str key: the public key the nonce belongs to
:param int nonce: the last nonce used by this key |
(module
(function_definition
(function_name_add_item) function_name_add_item
(parameters
(identifier_self) identifier_self
(identifier_alias) identifier_alias
(identifier_item) identifier_item
)parameters
(block
(if_statement
(not_operator
(call
(i... | Add a config item to this section. |
(module
(function_definition
(function_name_lexeme) function_name_lexeme
(parameters
(identifier_self) identifier_self
(identifier_verb) identifier_verb
(default_parameter
(identifier_parse) identifier_parse
(True) True
)default_parameter
)parameters
(block
... | Returns a list of all possible inflections of the given verb. |
(module
(function_definition
(function_name_unwrap) function_name_unwrap
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(default_parameter
(identifier_session) identifier_session
(None) None
)default_parameter
)parameters
(bloc... | Unwraps the elements of ``value`` using ``SetField.item_type`` and
returns them in a set |
(module
(function_definition
(function_name_get_subscriber_queue) function_name_get_subscriber_queue
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_event_types) identifier_event_types
(None) None
)default_parameter
)parameters
(block
... | Create a new queue for a specific combination of event types
and return it.
Returns:
a :class:`multiprocessing.Queue`.
Raises:
RuntimeError if called after `run` |
(module
(function_definition
(function_name_is_valid_schedule) function_name_is_valid_schedule
(parameters
(identifier_schedule) identifier_schedule
(identifier_events) identifier_events
(identifier_slots) identifier_slots
)parameters
(block
(if_statement
(comparison_op... | Take a schedule and return whether it is a valid solution for the
given constraints
Parameters
----------
schedule : list or tuple
a schedule in schedule form
events : list or tuple
of resources.Event instances
slots : list or tuple
of resources.S... |
(module
(function_definition
(function_name_upload_file) function_name_upload_file
(parameters
(identifier_self) identifier_self
(identifier_dataset_key) identifier_dataset_key
(identifier_name) identifier_name
(default_parameter
(identifier_file_metadata) identifier_file_metad... | Upload one file to a dataset
:param dataset_key: Dataset identifier, in the form of owner/id
:type dataset_key: str
:param name: Name/path for files stored in the local filesystem
:type name: str
:param expand_archives: Boolean value to indicate files should be
expanded ... |
(module
(function_definition
(function_name_render_description_meta_tag) function_name_render_description_meta_tag
(parameters
(identifier_context) identifier_context
(default_parameter
(identifier_is_og) identifier_is_og
(False) False
)default_parameter
)parameters
(... | Returns the description as meta or open graph tag. |
(module
(function_definition
(function_name_getOntology) function_name_getOntology
(parameters
(identifier_self) identifier_self
(identifier_id_) identifier_id_
)parameters
(block
(if_statement
(comparison_operator
(identifier_id_) identifier_id_
(attribut... | Returns the ontology with the specified ID. |
(module
(function_definition
(function_name_repl_update) function_name_repl_update
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_cfg) identifier_cfg
(cal... | Reconfig Replicaset with new config |
(module
(function_definition
(function_name_reload) function_name_reload
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
(default_parameter
(identifier_errback) identifier_... | Reload record data from the API. |
(module
(function_definition
(function_name_HandleAccounts) function_name_HandleAccounts
(parameters
(identifier_self) identifier_self
(identifier_result) identifier_result
)parameters
(block
(expression_statement
(call
(attribute
(attribute
... | Called when there are changes to the contents of the metadata server.
Args:
result: json, the deserialized contents of the metadata server. |
(module
(function_definition
(function_name_default) function_name_default
(parameters
(identifier_self) identifier_self
(identifier_meth) identifier_meth
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
... | Decorator that allows to set the default for an attribute.
Returns *meth* unchanged.
:raises DefaultAlreadySetError: If default has been set before.
.. versionadded:: 17.1.0 |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(identifier_content_bytes) identifier_content_bytes
)parameters
(block
(expression_statement
(assignment
(identifier_derived_path) identifier_derived_pat... | Save the `bytes` under a key derived from `path` in Memcache.
:return: A string representing the content path if it is stored.
:rettype: string or None |
(module
(function_definition
(function_name_angle_to_name) function_name_angle_to_name
(parameters
(identifier_angle) identifier_angle
(default_parameter
(identifier_segments) identifier_segments
(integer_8) integer_8
)default_parameter
(default_parameter
(ident... | Convert angle in to direction name.
Args:
angle (float): Angle in degrees to convert to direction name
segments (int): Number of segments to split compass in to
abbr (bool): Whether to return abbreviated direction string
Returns:
str: Direction name for ``angle`` |
(module
(function_definition
(function_name__eratosthenes) function_name__eratosthenes
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
)dictionary
)assignment
)expression_statement
... | Yields the sequence of prime numbers via the Sieve of Eratosthenes. |
(module
(function_definition
(function_name_RetrievePluginAsset) function_name_RetrievePluginAsset
(parameters
(identifier_self) identifier_self
(identifier_plugin_name) identifier_plugin_name
(identifier_asset_name) identifier_asset_name
)parameters
(block
(return_statement
... | Return the contents of a given plugin asset.
Args:
plugin_name: The string name of a plugin.
asset_name: The string name of an asset.
Returns:
The string contents of the plugin asset.
Raises:
KeyError: If the asset is not available. |
(module
(function_definition
(function_name_normalize) function_name_normalize
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(tuple_pattern
(identifier__) identifier__
... | Adapt self.model so that amplitudes are positive and phases are in [0,360) as per convention |
(module
(function_definition
(function_name_ack) function_name_ack
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(assignment
(identifier_message_id) identifier_message_id
(subscript
... | Called when a MESSAGE has been received.
Override this method to handle received messages.
This function will generate an acknowledge message
for the given message and transaction (if present). |
(module
(function_definition
(function_name_build_dependencies) function_name_build_dependencies
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_m) identifier_m
(attribute
(identifier_self) identifier_self
(ide... | Recursively build the dependencies for sub-modules and sub-packages.
Iterate on node's modules then packages and call their
build_dependencies methods. |
(module
(function_definition
(function_name_submit) function_name_submit
(parameters
(identifier_self) identifier_self
(identifier_spec) identifier_spec
)parameters
(block
(expression_statement
(assignment
(identifier_spec) identifier_spec
(call
... | Submit a new skein application.
Parameters
----------
spec : ApplicationSpec, str, or dict
A description of the application to run. Can be an
``ApplicationSpec`` object, a path to a yaml/json file, or a
dictionary description of an application specification.
... |
(module
(function_definition
(function_name_snapshot_list) function_name_snapshot_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_NO_SNAPSHOTS_TAKEN) identifier_NO_SNAPSHOTS_TAKEN
(string_'No sn... | This command will list all the snapshots taken. |
(module
(function_definition
(function_name_create_app_from_yml) function_name_create_app_from_yml
(parameters
(identifier_path) identifier_path
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_... | Return an application instance created from YAML. |
(module
(function_definition
(function_name_request_access_token) function_name_request_access_token
(parameters
(identifier_self) identifier_self
(identifier_params) identifier_params
)parameters
(block
(return_statement
(call
(attribute
(identifier_sel... | Foursquare does not accept POST requests to retrieve an access token,
so we'll be doing a GET request instead. |
(module
(function_definition
(function_name_from_wif_or_ewif_hex) function_name_from_wif_or_ewif_hex
(parameters
(typed_parameter
(identifier_wif_hex) identifier_wif_hex
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
... | Return SigningKey instance from Duniter WIF or EWIF in hexadecimal format
:param wif_hex: WIF or EWIF string in hexadecimal format
:param password: Password of EWIF encrypted seed |
(module
(function_definition
(function_name_tar_open) function_name_tar_open
(parameters
(identifier_f) identifier_f
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_f) identifier_f
... | Open either a filename or a file-like object as a TarFile.
Parameters
----------
f : str or file-like object
The filename or file-like object from which to read.
Returns
-------
TarFile
A `TarFile` instance. |
(module
(function_definition
(function_name_slice_target) function_name_slice_target
(parameters
(identifier_self) identifier_self
(identifier_chr) identifier_chr
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(expression_statement
... | Slice the mapping by the target coordinate
First coordinate is 0-indexed start
Second coordinate is 1-indexed finish |
(module
(function_definition
(function_name_status_charge) function_name_status_charge
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_status) identifier_status
(argument_list... | Return battery charge
CLI Example:
.. code-block:: bash
salt '*' apcups.status_charge |
(module
(function_definition
(function_name_cmd_posvel) function_name_cmd_posvel
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_ignoremask) identifier_ignoremask
... | posvel mapclick vN vE vD |
(module
(function_definition
(function_name_scale_joint_sfs) function_name_scale_joint_sfs
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_i) identifier_i
(subscript
(call
(attrib... | Scale a joint site frequency spectrum.
Parameters
----------
s : array_like, int, shape (n1, n2)
Joint site frequency spectrum.
Returns
-------
joint_sfs_scaled : ndarray, int, shape (n1, n2)
Scaled joint site frequency spectrum. |
(module
(function_definition
(function_name_register_on_machine_registered) function_name_register_on_machine_registered
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)parameters
(block
(expression_statement
(assignment
(ide... | Set the callback function to consume on machine registered events.
Callback receives a IMachineRegisteredEvent object.
Returns the callback_id |
(module
(function_definition
(function_name_get_all_launch_configurations) function_name_get_all_launch_configurations
(parameters
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_ke... | Fetch and return all Launch Configuration with details.
CLI example::
salt myminion boto_asg.get_all_launch_configurations |
(module
(function_definition
(function_name_get_escalation_policies) function_name_get_escalation_policies
(parameters
(default_parameter
(identifier_profile) identifier_profile
(string_'pagerduty') string_'pagerduty'
)default_parameter
(default_parameter
(identifier_... | List escalation_policies belonging to this account
CLI Example:
salt myminion pagerduty.get_escalation_policies |
(module
(function_definition
(function_name_cache) function_name_cache
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__cache) identifier__cache
... | Get the Django cache interface.
This allows disabling the cache with
settings.USE_DRF_INSTANCE_CACHE=False. It also delays import so that
Django Debug Toolbar will record cache requests. |
(module
(function_definition
(function_name_get_all_args) function_name_get_all_args
(parameters
(identifier_fn) identifier_fn
)parameters
(type
(identifier_list) identifier_list
)type
(block
(expression_statement
(assignment
(identifier_sig) identifier_sig
... | Returns a list of all arguments for the function fn.
>>> def foo(x, y, z=100): return x + y + z
>>> get_all_args(foo)
['x', 'y', 'z'] |
(module
(function_definition
(function_name_qs_for_ip) function_name_qs_for_ip
(parameters
(identifier_cls) identifier_cls
(identifier_ip_str) identifier_ip_str
)parameters
(block
(expression_statement
(assignment
(identifier_ip) identifier_ip
(call
... | Returns a queryset with matching IPNetwork objects for the given IP. |
(module
(function_definition
(function_name_UpdateClientsFromFleetspeak) function_name_UpdateClientsFromFleetspeak
(parameters
(identifier_clients) identifier_clients
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(id... | Updates ApiClient records to include info from Fleetspeak. |
(module
(function_definition
(function_name_dtypes) function_name_dtypes
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(list_comprehension
(tuple
(call
(identifier_str) identifier_str
(argument_l... | Returns all column names and their data types as a list.
>>> df.dtypes
[('age', 'int'), ('name', 'string')] |
(module
(function_definition
(function_name_add_row) function_name_add_row
(parameters
(identifier_self) identifier_self
(identifier_row_data) identifier_row_data
(default_parameter
(identifier_resize_x) identifier_resize_x
(True) True
)default_parameter
)parameters... | Adds a row at the end of the table |
(module
(function_definition
(function_name_createManager) function_name_createManager
(parameters
(identifier_self) identifier_self
(identifier_services) identifier_services
(default_parameter
(identifier_yadis_url) identifier_yadis_url
(None) None
)default_parameter
... | Create a new YadisService Manager for this starting URL and
suffix, and store it in the session.
@raises KeyError: When I already have a manager.
@return: A new YadisServiceManager or None |
(module
(function_definition
(function_name_reind_proc) function_name_reind_proc
(parameters
(identifier_self) identifier_self
(identifier_inputstring) identifier_inputstring
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)paramete... | Add back indentation. |
(module
(function_definition
(function_name_validate_row_lengths) function_name_validate_row_lengths
(parameters
(identifier_fields) identifier_fields
(identifier_data) identifier_data
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
... | Validate the `data` row lengths according to the specification
in `fields`.
:param fields: The `FieldSpec` objects forming the
specification.
:param data: The rows to check.
:raises FormatError: When the number of entries in a row does
not match expectation. |
(module
(function_definition
(function_name_get_resource_path) function_name_get_resource_path
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_raise_exception) identifier_raise_exception
(False) False
)default_parameter
)parameters
(block
... | Returns the resource file path matching the given name.
:param name: Resource name.
:type name: unicode
:param raise_exception: Raise the exception.
:type raise_exception: bool
:return: Resource path.
:rtype: unicode |
(module
(function_definition
(function_name_b58check_encode) function_name_b58check_encode
(parameters
(identifier_bin_s) identifier_bin_s
(default_parameter
(identifier_version_byte) identifier_version_byte
(integer_0) integer_0
)default_parameter
)parameters
(block
... | Takes in a binary string and converts it to a base 58 check string. |
(module
(function_definition
(function_name_is_sub_plate) function_name_is_sub_plate
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(if_statement
(call
(identifier_all) identifier_all
(generator_express... | Determines if this plate is a sub-plate of another plate -
i.e. has the same meta data but a restricted set of values
:param other: The other plate
:return: True if this plate is a sub-plate of the other plate |
(module
(function_definition
(function_name__bsecurate_cli_view_graph) function_name__bsecurate_cli_view_graph
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(call
(attribute
(identifier_curate) identifier_curate
... | Handles the view-graph subcommand |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_hook_id) identifier_hook_id
)parameters
(block
(try_statement
(block
(expression_statement
... | Verify token when configuring webhook from facebook dev.
MessengerBot.id is used for verification |
(module
(function_definition
(function_name_path_is_known_executable) function_name_path_is_known_executable
(parameters
(identifier_path) identifier_path
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(call
(ide... | Returns whether a given path is a known executable from known executable extensions
or has the executable bit toggled.
:param path: The path to the target executable.
:type path: :class:`~vistir.compat.Path`
:return: True if the path has chmod +x, or is a readable, known executable extension.
:rtyp... |
(module
(function_definition
(function_name_get_readable_forums) function_name_get_readable_forums
(parameters
(identifier_self) identifier_self
(identifier_forums) identifier_forums
(identifier_user) identifier_user
)parameters
(block
(if_statement
(attribute
... | Returns a queryset of forums that can be read by the considered user. |
(module
(function_definition
(function_name_get_index) function_name_get_index
(parameters
(identifier_binstr) identifier_binstr
(default_parameter
(identifier_end_index) identifier_end_index
(integer_160) integer_160
)default_parameter
)parameters
(block
(expre... | Return the position of the first 1 bit
from the left in the word until end_index
:param binstr:
:param end_index:
:return: |
(module
(function_definition
(function_name_get_trust) function_name_get_trust
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(identifier_bool) identifier_bool
(argument_list
(subscr... | Gets the ``Trust`` for this authorization.
return: (osid.authentication.process.Trust) - the ``Trust``
raise: IllegalState - ``has_trust()`` is ``false``
raise: OperationFailed - unable to complete request
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_get_acl_on) function_name_get_acl_on
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_acl_on) identifier_acl_on
(attribute
(identifier_set... | Returns `True` if ACL should be honorated, returns otherwise `False`. |
(module
(function_definition
(function_name__precompile_substitution) function_name__precompile_substitution
(parameters
(identifier_self) identifier_self
(identifier_kind) identifier_kind
(identifier_pattern) identifier_pattern
)parameters
(block
(if_statement
(compari... | Pre-compile the regexp for a substitution pattern.
This will speed up the substitutions that happen at the beginning of
the reply fetching process. With the default brain, this took the
time for _substitute down from 0.08s to 0.02s
:param str kind: One of ``sub``, ``person``.
:... |
(module
(function_definition
(function_name_And) function_name_And
(parameters
(typed_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(type
(generic_type
(identifier_Union) identifier_Union
(type_para... | Create an And expression. |
(module
(function_definition
(function_name_weight_decay) function_name_weight_decay
(parameters
(identifier_decay_rate) identifier_decay_rate
(identifier_var_list) identifier_var_list
(default_parameter
(identifier_skip_biases) identifier_skip_biases
(True) True
)defau... | Apply weight decay to vars in var_list. |
(module
(function_definition
(function_name_get_option_choices) function_name_get_option_choices
(parameters
(identifier_opt_name) identifier_opt_name
(identifier_opt_value) identifier_opt_value
(identifier_default_value) identifier_default_value
(identifier_all_choices) identifier_all... | Generate possible choices for the option `opt_name`
limited to `opt_value` value with default value
as `default_value` |
(module
(function_definition
(function_name__parse_version) function_name__parse_version
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
)parameters
(block
(expression_statement
(assignment
(identifier_version_string) identifier_versi... | There's a magic suffix to the release version, currently it's -03, but
it increments seemingly randomly. |
(module
(function_definition
(function_name_get_checkpoint_async) function_name_get_checkpoint_async
(parameters
(identifier_self) identifier_self
(identifier_partition_id) identifier_partition_id
)parameters
(block
(expression_statement
(assignment
(identifier_leas... | Get the checkpoint data associated with the given partition.
Could return null if no checkpoint has been created for that partition.
:param partition_id: The partition ID.
:type partition_id: str
:return: Given partition checkpoint info, or `None` if none has been previously stored.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.