sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_min_count) function_name_min_count
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_n) identifier_n
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
... | Returns a vocabulary after eliminating the words that appear < `n`.
Args:
n (integer): specifies the minimum word frequency allowed. |
(module
(function_definition
(function_name_is_transition_matrix) function_name_is_transition_matrix
(parameters
(identifier_T) identifier_T
(default_parameter
(identifier_tol) identifier_tol
(float_1e-10) float_1e-10
)default_parameter
)parameters
(block
(if_st... | Tests whether T is a transition matrix
Parameters
----------
T : ndarray shape=(n, n)
matrix to test
tol : float
tolerance to check with
Returns
-------
Truth value : bool
True, if all elements are in interval [0, 1]
and each row of T sums up to 1.
... |
(module
(function_definition
(function_name_InteractiveShell) function_name_InteractiveShell
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_cmd) identifier_cmd
(None) None
)default_parameter
(default_parameter
(identifier_strip_cmd)... | Get stdout from the currently open interactive shell and optionally run a command
on the device, returning all output.
Args:
cmd: Optional. Command to run on the target.
strip_cmd: Optional (default True). Strip command name from stdout.
delim: Optional. Delimiter to l... |
(module
(function_definition
(function_name__expire) function_name__expire
(parameters
(identifier_self) identifier_self
)parameters
(block
(delete_statement
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identi... | callback done via callLater |
(module
(function_definition
(function_name_apply) function_name_apply
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_reboot) identifier_reboot
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assig... | Apply the configuration to iRMC. |
(module
(function_definition
(function_name_format_field) function_name_format_field
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
)parameters
(block
(if_statement
(comparison_operator
(identifier_field) identifier_field
... | Format a single Dynamo value |
(module
(function_definition
(function_name_fit_transform) function_name_fit_transform
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
(default_parameter
(identifier_y) identifier_y
(None) None
)default_parameter
(dictionary_splat_pattern... | Fit label encoder and return encoded labels
Parameters
----------
y : array-like of shape [n_samples]
Target values.
Returns
-------
y : array-like of shape [n_samples] |
(module
(function_definition
(function_name_generate_hypergraph) function_name_generate_hypergraph
(parameters
(identifier_num_nodes) identifier_num_nodes
(identifier_num_edges) identifier_num_edges
(default_parameter
(identifier_r) identifier_r
(integer_0) integer_0
)d... | Create a random hyper graph.
@type num_nodes: number
@param num_nodes: Number of nodes.
@type num_edges: number
@param num_edges: Number of edges.
@type r: number
@param r: Uniform edges of size r. |
(module
(function_definition
(function_name_updateDynamics) function_name_updateDynamics
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_history_vars_string) identifier_history_vars_string
(string_''... | Calculates a new "aggregate dynamic rule" using the history of variables
named in track_vars, and distributes this rule to AgentTypes in agents.
Parameters
----------
none
Returns
-------
dynamics : instance
The new "aggregate dynamic rule" that agen... |
(module
(function_definition
(function_name_stop_condition) function_name_stop_condition
(parameters
(identifier_self) identifier_self
(identifier_condition) identifier_condition
)parameters
(block
(for_statement
(identifier_cond_format) identifier_cond_format
(attrib... | Add a stop condition to this simulation.
Stop conditions are specified as strings and parsed into
the appropriate internal structures.
Args:
condition (str): a string description of the stop condition |
(module
(function_definition
(function_name__get_jar_fp) function_name__get_jar_fp
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_... | Returns the full path to the JAR file.
If the JAR file cannot be found in the current directory and
the environment variable RDP_JAR_PATH is not set, returns
None. |
(module
(function_definition
(function_name__get_lb) function_name__get_lb
(parameters
(identifier_self) identifier_self
(identifier_lb_or_id) identifier_lb_or_id
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argumen... | Accepts either a loadbalancer or the ID of a loadbalancer, and returns
the CloudLoadBalancer instance. |
(module
(function_definition
(function_name_IsFile) function_name_IsFile
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__stat_object) iden... | Determines if the file entry is a file.
Returns:
bool: True if the file entry is a file. |
(module
(function_definition
(function_name_update_utxoset) function_name_update_utxoset
(parameters
(identifier_self) identifier_self
(identifier_transaction) identifier_transaction
)parameters
(block
(expression_statement
(assignment
(identifier_spent_outputs) ide... | Update the UTXO set given ``transaction``. That is, remove
the outputs that the given ``transaction`` spends, and add the
outputs that the given ``transaction`` creates.
Args:
transaction (:obj:`~bigchaindb.models.Transaction`): A new
transaction incoming into the sy... |
(module
(function_definition
(function_name_score) function_name_score
(parameters
(identifier_ID) identifier_ID
(identifier_sign) identifier_sign
(identifier_lon) identifier_lon
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier... | Returns the score of an object on
a sign and longitude. |
(module
(function_definition
(function_name_phrase_replace) function_name_phrase_replace
(parameters
(identifier_self) identifier_self
(identifier_replace_dict) identifier_replace_dict
)parameters
(block
(function_definition
(function_name_r) function_name_r
(paramete... | Replace phrases with single token, mapping defined in replace_dict |
(module
(function_definition
(function_name_add_f77_to_env) function_name_add_f77_to_env
(parameters
(identifier_env) identifier_env
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_F77Suffixes) identifier_F7... | Add Builders and construction variables for f77 to an Environment. |
(module
(function_definition
(function_name_run_id) function_name_run_id
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_s1) identifier_s1
(call
(attribute
(identifier_re) i... | Run name without whitespace |
(module
(function_definition
(function_name_logon) function_name_logon
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(attribute
(identifier_requests) identifier_requests
... | Logs into the bluecoat_sslv device and returns the session cookies. |
(module
(function_definition
(function_name_percentile) function_name_percentile
(parameters
(default_parameter
(identifier_values) identifier_values
(None) None
)default_parameter
(default_parameter
(identifier_percentile) identifier_percentile
(None) None
... | Calculates a simplified weighted average percentile |
(module
(function_definition
(function_name_validate_type) function_name_validate_type
(parameters
(identifier_prop) identifier_prop
(identifier_value) identifier_value
(identifier_expected) identifier_expected
)parameters
(block
(if_statement
(boolean_operator
... | Default validation for all types |
(module
(function_definition
(function_name_structs2pandas) function_name_structs2pandas
(parameters
(identifier_structs) identifier_structs
)parameters
(block
(try_statement
(block
(import_statement
(dotted_name
(identifier_pandas) identifier_pa... | convert ctypes structure or structure array to pandas data frame |
(module
(function_definition
(function_name__influxdb_url) function_name__influxdb_url
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(... | Return REST API URL to access time series. |
(module
(function_definition
(function_name_Bmatrix) function_name_Bmatrix
(parameters
(identifier_C) identifier_C
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_L) identifier_L
(identifier_Q) identifier_Q
... | Calculate a matrix which is effectively the square root of the correlation matrix C
Parameters
----------
C : 2d array
A covariance matrix
Returns
-------
B : 2d array
A matrix B such the B.dot(B') = inv(C) |
(module
(function_definition
(function_name_get_comments) function_name_get_comments
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_sharekey) identifier_sharekey
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Retrieve comments on a SharedFile
Args:
sharekey (str): Sharekey for the file from which you want to return
the set of comments.
Returns:
List of Comment objects. |
(module
(function_definition
(function_name_dependencies_as_list) function_name_dependencies_as_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dependencies) identifier_dependencies
(list
... | Returns a list of dependency names. |
(module
(function_definition
(function_name_get_gains_losses) function_name_get_gains_losses
(parameters
(identifier_changes) identifier_changes
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(dictionary
(pair
... | Categorizes changes into gains and losses
Args:
changes: List of floats of price changes between entries in JSON.
Returns:
Dict of changes with keys 'gains' and 'losses'.
All values are positive. |
(module
(function_definition
(function_name_urlretrieve) function_name_urlretrieve
(parameters
(identifier_url) identifier_url
(identifier_dest) identifier_dest
(default_parameter
(identifier_write_mode) identifier_write_mode
(string_"w") string_"w"
)default_parameter
... | save a file to disk from a given url |
(module
(function_definition
(function_name_upload) function_name_upload
(parameters
(identifier_client) identifier_client
(identifier_source_dir) identifier_source_dir
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(arg... | Upload listing files in source_dir. folder herachy. |
(module
(function_definition
(function_name_from_coffeescript) function_name_from_coffeescript
(parameters
(identifier_cls) identifier_cls
(identifier_func) identifier_func
(identifier_v_func) identifier_v_func
(default_parameter
(identifier_args) identifier_args
(dicti... | Create a ``CustomJSTransform`` instance from a pair of CoffeeScript
snippets. The function bodies are translated to JavaScript functions
using node and therefore require return statements.
The ``func`` snippet namespace will contain the variable ``x`` (the
untransformed value) at render... |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_doppel) identifier_doppel
(call
(call
(identifier_type) ... | Be sure to implement this method when sub-classing, otherwise you
will lose any specialization context. |
(module
(function_definition
(function_name__related) function_name__related
(parameters
(identifier_self) identifier_self
(identifier_concept) identifier_concept
)parameters
(block
(return_statement
(binary_operator
(binary_operator
(binary_operator
... | Returns related concepts for a concept. |
(module
(function_definition
(function_name_update_team) function_name_update_team
(parameters
(identifier_self) identifier_self
(identifier_slug) identifier_slug
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__or... | Trigger update and cache invalidation for the team identified by the
given `slug`, if any. Returns `True` if the update was successful,
`False` otherwise.
:param slug: GitHub 'slug' name for the team to be updated. |
(module
(function_definition
(function_name_get_right_word) function_name_get_right_word
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_cursor) identifier_cursor
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Gets the character on the right of the text cursor.
:param cursor: QTextCursor where the search will start.
:return: The word that is on the right of the text cursor. |
(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... | Runs the firmware command.
Args:
self (FirmwareCommand): the ``FirmwareCommand`` instance
args (Namespace): arguments to parse
Returns:
``None`` |
(module
(function_definition
(function_name_max_zoom) function_name_max_zoom
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_zoom_levels) identifier_zoom_levels
(list_comprehension
(attri... | Get the maximal zoom level of all layers.
Returns:
int: the maximum of all zoom levels of all layers
Raises:
ValueError: if no layers exist |
(module
(function_definition
(function_name__cancel_payloads) function_name__cancel_payloads
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_task) identifier_task
(attribute
(identifier_self) identifier_self
(i... | Cancel all remaining payloads |
(module
(function_definition
(function_name_ensure_float_vector) function_name_ensure_float_vector
(parameters
(identifier_F) identifier_F
(default_parameter
(identifier_require_order) identifier_require_order
(False) False
)default_parameter
)parameters
(block
... | Ensures that F is a numpy array of floats
If F is already a numpy array of floats, F is returned (no copied!)
Otherwise, checks if the argument can be converted to an array of floats and does that.
Parameters
----------
F: float, or iterable of float
require_order : bool
If False (defa... |
(module
(function_definition
(function_name_moveto) function_name_moveto
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(default_parameter
(identifier_scale) identifier_scale
(integer_1) integer_1
)default_par... | Move and scale element.
Parameters
----------
x, y : float
displacement in x and y coordinates in user units ('px').
scale : float
scaling factor. To scale down scale < 1, scale up scale > 1.
For no scaling scale = 1. |
(module
(function_definition
(function_name_custom_objective) function_name_custom_objective
(parameters
(identifier_self) identifier_self
(identifier_objective_function) identifier_objective_function
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
... | Optimise some objective function. While an implicit requirement is that the function
can be optimised via a quadratic optimiser, this is not enforced. Thus there is a
decent chance of silent failure.
:param objective_function: function which maps (weight, args) -> cost
:type objective_f... |
(module
(function_definition
(function_name_extract_fields) function_name_extract_fields
(parameters
(identifier_cls) identifier_cls
(identifier_schema) identifier_schema
)parameters
(block
(for_statement
(identifier_part) identifier_part
(call
(attribute
... | Extract fields in a parse expression schema.
:param schema: Parse expression schema/format to use (as string).
:return: Generator for fields in schema (as Field objects). |
(module
(function_definition
(function_name_dummynum) function_name_dummynum
(parameters
(identifier_character) identifier_character
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_num) identifier_num
(int... | Count how many nodes there already are in the character whose name
starts the same. |
(module
(function_definition
(function_name_remove_stage_from_deployed_values) function_name_remove_stage_from_deployed_values
(parameters
(identifier_key) identifier_key
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
... | Delete a top level key from the deployed JSON file. |
(module
(function_definition
(function_name_install) function_name_install
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ceph_dir) identifier_ceph_dir
(string_"/etc/ceph") string_"/etc/ceph"
)assignment
)expression_statemen... | Basic Ceph client installation. |
(module
(function_definition
(function_name__print_pgfplot_libs_message) function_name__print_pgfplot_libs_message
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_pgfplotslibs) identifier_pgfplotslibs
... | Prints message to screen indicating the use of PGFPlots and its
libraries. |
(module
(function_definition
(function_name_get_signing_policy) function_name_get_signing_policy
(parameters
(identifier_signing_policy_name) identifier_signing_policy_name
)parameters
(block
(expression_statement
(assignment
(identifier_signing_policy) identifier_signing... | Returns the details of a names signing policy, including the text of
the public key that will be used to sign it. Does not return the
private key.
CLI Example:
.. code-block:: bash
salt '*' x509.get_signing_policy www |
(module
(function_definition
(function_name_get_computers) function_name_get_computers
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filterTerm) identifier_filterTerm
(None) None
)default_parameter
(default_parameter
(identifier_do... | Return hosts from the database. |
(module
(function_definition
(function_name_getConstraints) function_name_getConstraints
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_constraints) identifier_constraints
(call
(identif... | Get all the constraints declared. |
(module
(function_definition
(function_name_end_of_directory) function_name_end_of_directory
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_succeeded) identifier_succeeded
(True) True
)default_parameter
(default_parameter
(identifie... | Wrapper for xbmcplugin.endOfDirectory. Records state in
self._end_of_directory.
Typically it is not necessary to call this method directly, as
calling :meth:`~xbmcswift2.Plugin.finish` will call this method. |
(module
(function_definition
(function_name_new_port) function_name_new_port
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_socket) identifier_socket
(id... | Find a free local port and allocate it |
(module
(function_definition
(function_name_set_parameter_vector) function_name_set_parameter_vector
(parameters
(identifier_self) identifier_self
(identifier_vector) identifier_vector
(default_parameter
(identifier_include_frozen) identifier_include_frozen
(False) False
... | Set the parameter values to the given vector
Args:
vector (array[vector_size] or array[full_size]): The target
parameter vector. This must be in the same order as
``parameter_names`` and it should only include frozen
parameters if ``include_frozen`` i... |
(module
(function_definition
(function_name_printmp) function_name_printmp
(parameters
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(assignment
(identifier_filler) identifier_filler
(binary_operator
(parenthesized_expressi... | Print temporarily, until next print overrides it. |
(module
(function_definition
(function_name_remove_zero_normals) function_name_remove_zero_normals
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_points_of_interest) identifier_points_of_interest
(s... | Removes normal vectors with a zero magnitude.
Note
----
This returns nothing and updates the NormalCloud in-place. |
(module
(function_definition
(function_name_get_model) function_name_get_model
(parameters
(identifier_name) identifier_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assig... | Returns a pre-defined model by name
Parameters
----------
name : str
Name of the model.
pretrained : bool
Whether to load the pretrained weights for model.
classes : int
Number of classes for the output layer.
ctx : Context, default CPU
The context in which to lo... |
(module
(function_definition
(function_name__agate_to_schema) function_name__agate_to_schema
(parameters
(identifier_self) identifier_self
(identifier_agate_table) identifier_agate_table
(identifier_column_override) identifier_column_override
)parameters
(block
(expression_stat... | Convert agate.Table with column names to a list of bigquery schemas. |
(module
(function_definition
(function_name_tag_syntax_maltparser) function_name_tag_syntax_maltparser
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) ide... | Changes default syntactic parser to MaltParser, performs syntactic analysis,
and stores the results in the layer named LAYER_CONLL. |
(module
(function_definition
(function_name_read_until) function_name_read_until
(parameters
(identifier_self) identifier_self
(identifier_expected_commands) identifier_expected_commands
(identifier_timeout) identifier_timeout
)parameters
(block
(expression_statement
(a... | Read AdbMessages from this transport until we get an expected command.
The ADB protocol specifies that before a successful CNXN handshake, any
other packets must be ignored, so this method provides the ability to
ignore unwanted commands. It's primarily used during the initial
connection to the device... |
(module
(function_definition
(function_name_match_route) function_name_match_route
(parameters
(identifier_self) identifier_self
(identifier_reqpath) identifier_reqpath
)parameters
(block
(expression_statement
(assignment
(identifier_route_dicts) identifier_route_di... | match a request with parameter to it's corresponding route |
(module
(function_definition
(function_name_providerIsAuthoritative) function_name_providerIsAuthoritative
(parameters
(identifier_providerID) identifier_providerID
(identifier_canonicalID) identifier_canonicalID
)parameters
(block
(expression_statement
(assignment
... | Is this provider ID authoritative for this XRI?
@returntype: bool |
(module
(function_definition
(function_name_iflatten) function_name_iflatten
(parameters
(identifier_L) identifier_L
)parameters
(block
(for_statement
(identifier_sublist) identifier_sublist
(identifier_L) identifier_L
(block
(if_statement
(cal... | Iterative flatten. |
(module
(function_definition
(function_name_coders) function_name_coders
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(tuple
(identifier_PrimitiveTypeCoder) identifier_PrimitiveTypeCoder
(identifier_TensorFlowCoder) identifi... | List of default supported coders. First coder in the list has higher priority. |
(module
(function_definition
(function_name_visit_GpxModel) function_name_visit_GpxModel
(parameters
(identifier_self) identifier_self
(identifier_gpx_model) identifier_gpx_model
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_p... | Render a GPXModel as a single JSON structure. |
(module
(function_definition
(function_name_get_execution) function_name_get_execution
(parameters
(identifier_self) identifier_self
(identifier_id_execution) identifier_id_execution
(default_parameter
(identifier_access_token) identifier_access_token
(None) None
)defau... | Get a execution, by its id |
(module
(function_definition
(function_name_lint) function_name_lint
(parameters
(default_parameter
(identifier_fmt) identifier_fmt
(string_'colorized') string_'colorized'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(iden... | Run verbose PyLint on source. Optionally specify fmt=html for HTML output. |
(module
(function_definition
(function_name_getconnections) function_name_getconnections
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_vhost) identifier_vhost
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Return accepted connections, optionally filtered by vhost |
(module
(function_definition
(function_name__select_default_algorithm) function_name__select_default_algorithm
(parameters
(identifier_analysis) identifier_analysis
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_analysis) identifi... | Provide default algorithm sections from templates or standard |
(module
(function_definition
(function_name_get_config_load_path) function_name_get_config_load_path
(parameters
(default_parameter
(identifier_conf_path) identifier_conf_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator... | Return config file load path
Priority:
1. conf_path
2. current directory
3. home directory
Parameters
----------
conf_path
Returns
------- |
(module
(function_definition
(function_name_badge_width) function_name_badge_width
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(binary_operator
(binary_operator
(call
(attribute
(identifier_s... | The total width of badge.
>>> badge = Badge('pylint', '5', font_name='DejaVu Sans,Verdana,Geneva,sans-serif',
... font_size=11)
>>> badge.badge_width
91 |
(module
(function_definition
(function_name___folder_size) function_name___folder_size
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(int... | Return the size of the directory given by path
path: <string> |
(module
(function_definition
(function_name_listen) function_name_listen
(parameters
(identifier_cls) identifier_cls
(identifier_event) identifier_event
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(call
(attribute
(ca... | Add a callback for a signal against the class |
(module
(function_definition
(function_name_get_forecast) function_name_get_forecast
(parameters
(identifier_self) identifier_self
(identifier_latitude) identifier_latitude
(identifier_longitude) identifier_longitude
)parameters
(block
(expression_statement
(assignment
... | Gets the weather data from darksky api and stores it in
the respective dictionaries if available.
This function should be used to fetch weather information. |
(module
(function_definition
(function_name_load_configuration_from_file) function_name_load_configuration_from_file
(parameters
(identifier_directory) identifier_directory
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(ident... | Return new ``args`` with configuration loaded from file. |
(module
(function_definition
(function_name_mda_count) function_name_mda_count
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_op... | Returns the physical volume mda count. |
(module
(function_definition
(function_name__check) function_name__check
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_statement
(dotted_name
(identifier_time) identifier_time
)dotted_name
)import_statement
(if_statement
... | Check if the access token is expired or not. |
(module
(function_definition
(function_name__check_unit) function_name__check_unit
(parameters
(identifier_new_unit) identifier_new_unit
(identifier_old_unit) identifier_old_unit
)parameters
(block
(try_statement
(block
(expression_statement
(attribute
... | Check that the new unit is compatible with the old unit for the quantity described by variable_name
:param new_unit: instance of astropy.units.Unit
:param old_unit: instance of astropy.units.Unit
:return: nothin |
(module
(function_definition
(function_name_get_trips) function_name_get_trips
(parameters
(identifier_self) identifier_self
(identifier_authentication_info) identifier_authentication_info
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
... | Get trips for this device between start and end. |
(module
(function_definition
(function_name_block_comment) function_name_block_comment
(parameters
(identifier_solver) identifier_solver
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(expression_statement
(assignment
(p... | embedable block comment |
(module
(function_definition
(function_name_register_hit_type) function_name_register_hit_type
(parameters
(identifier_self) identifier_self
(identifier_title) identifier_title
(identifier_description) identifier_description
(identifier_reward) identifier_reward
(identifier_durat... | Register HIT Type for this HIT and return the type's ID, which
is required for creating a HIT. |
(module
(function_definition
(function_name_delete_leaderboard_named) function_name_delete_leaderboard_named
(parameters
(identifier_self) identifier_self
(identifier_leaderboard_name) identifier_leaderboard_name
)parameters
(block
(expression_statement
(assignment
... | Delete the named leaderboard.
@param leaderboard_name [String] Name of the leaderboard. |
(module
(function_definition
(function_name_get_dir_meta) function_name_get_dir_meta
(parameters
(identifier_fp) identifier_fp
(identifier_atts) identifier_atts
)parameters
(block
(expression_statement
(call
(attribute
(identifier_atts) identifier_atts
... | Pop path information and map to supplied atts |
(module
(function_definition
(function_name_normalizeToTag) function_name_normalizeToTag
(parameters
(identifier_val) identifier_val
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_val) identifier_val
... | Converts tags or full names to 2 character tags, case insensitive
# Parameters
_val_: `str`
> A two character string giving the tag or its full name
# Returns
`str`
> The short name of _val_ |
(module
(function_definition
(function_name_numRegisteredForRole) function_name_numRegisteredForRole
(parameters
(identifier_self) identifier_self
(identifier_role) identifier_role
(default_parameter
(identifier_includeTemporaryRegs) identifier_includeTemporaryRegs
(False) Fa... | Accepts a DanceRole object and returns the number of registrations of that role. |
(module
(function_definition
(function_name__cb_inform_interface_change) function_name__cb_inform_interface_change
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(call
(attribute
(at... | Update the sensors and requests available. |
(module
(function_definition
(function_name_filterlet) function_name_filterlet
(parameters
(default_parameter
(identifier_function) identifier_function
(identifier_bool) identifier_bool
)default_parameter
(default_parameter
(identifier_iterable) identifier_iterable
... | Filter chunks of data from an iterable or a chain
:param function: callable selecting valid elements
:type function: callable
:param iterable: object providing chunks via iteration
:type iterable: iterable or None
For any chunk in ``iterable`` or the chain, it is passed on only if
``function(c... |
(module
(function_definition
(function_name_benchmark_forward) function_name_benchmark_forward
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__se... | Benchmark forward execution. |
(module
(function_definition
(function_name_emphasis) function_name_emphasis
(parameters
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(identifier_o) identifier_o
(call
(attribute
(identifier_nod... | An italicized section |
(module
(function_definition
(function_name_cube) function_name_cube
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_xcoords) identifier_xcoords
(None) None
)default_parameter
(default_parameter
(identifier_ycoords) identifier_ycoord... | Create a cube as an instance of xarray.DataArray with Decode accessor.
Args:
data (numpy.ndarray): 3D (x x y x channel) array.
xcoords (dict, optional): Dictionary of arrays that label x axis.
ycoords (dict, optional): Dictionary of arrays that label y axis.
chcoords (dict, optional... |
(module
(function_definition
(function_name_call) function_name_call
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(try_statement
... | Calls the service method defined with the arguments provided |
(module
(function_definition
(function_name_success_rate) function_name_success_rate
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_self) identifier_self... | Returns a float with the rate of success from all the logged results. |
(module
(function_definition
(function_name___populate_archive_files) function_name___populate_archive_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
... | Store the list of files inside an archive file. |
(module
(function_definition
(function_name_domain_unblock) function_name_domain_unblock
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_domain) identifier_domain
(None) None
)default_parameter
)parameters
(block
(expression_statemen... | Remove a domain block for the logged-in user. |
(module
(function_definition
(function_name_get_max_distance_from_start) function_name_get_max_distance_from_start
(parameters
(identifier_latlon_track) identifier_latlon_track
)parameters
(block
(expression_statement
(assignment
(identifier_latlon_list) identifier_latlon... | Returns the radius of an entire GPS track. Used to calculate whether or not the entire sequence was just stationary video
Takes a sequence of points as input |
(module
(function_definition
(function_name__get_url) function_name__get_url
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_administration_id) identifier_administration_id
(type
(identifier_int) identifier_int
)type
)typed_parameter... | Builds the URL to the API endpoint specified by the given parameters.
:param administration_id: The ID of the administration (may be None).
:param resource_path: The path to the resource.
:return: The absolute URL to the endpoint. |
(module
(function_definition
(function_name_sum) function_name_sum
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_only_valid) identifier_only_valid
(True) True
)default_parameter
)parameters
(type
(identifier_ErrorValue) identifier_... | Calculate the sum of pixels, not counting the masked ones if only_valid is True. |
(module
(function_definition
(function_name_getNextSample) function_name_getNextSample
(parameters
(identifier_self) identifier_self
(identifier_V) identifier_V
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_W) identifier_... | Given a ranking over the candidates, generate a new ranking by assigning each candidate at
position i a Plakett-Luce weight of phi^i and draw a new ranking.
:ivar list<int> V: Contains integer representations of each candidate in order of their
ranking in a vote, from first to last. |
(module
(function_definition
(function_name_sync) function_name_sync
(parameters
(default_parameter
(identifier_remote) identifier_remote
(string_'origin') string_'origin'
)default_parameter
(default_parameter
(identifier_branch) identifier_branch
(string_'mas... | git pull and push commit |
(module
(function_definition
(function_name_cmd_list_identities) function_name_cmd_list_identities
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(a... | List the available identities to use for signing. |
(module
(function_definition
(function_name_squeeze) function_name_squeeze
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_axis) identifier_axis
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignm... | Squeeze 1 dimensional axis objects into scalars.
Series or DataFrames with a single element are squeezed to a scalar.
DataFrames with a single column or a single row are squeezed to a
Series. Otherwise the object is unchanged.
This method is most useful when you don't know if your
... |
(module
(function_definition
(function_name_is_deletion) function_name_is_deletion
(parameters
(identifier_reference_bases) identifier_reference_bases
(identifier_alternate_bases) identifier_alternate_bases
)parameters
(block
(if_statement
(comparison_operator
(call... | Return whether or not the INDEL is a deletion |
(module
(function_definition
(function_name_show_help) function_name_show_help
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(ide... | Show usage info to the user.
.. versionadded: 4.3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.