sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__tag_ebs) function_name__tag_ebs
(parameters
(identifier_self) identifier_self
(identifier_conn) identifier_conn
(identifier_role) identifier_role
)parameters
(block
(expression_statement
(assignment
(identifier_tags... | set tags, carrying the cluster name, instance role and instance id for the EBS storage |
(module
(function_definition
(function_name_upload_mission) function_name_upload_mission
(parameters
(identifier_aFileName) identifier_aFileName
)parameters
(block
(expression_statement
(assignment
(identifier_missionlist) identifier_missionlist
(call
... | Upload a mission from a file. |
(module
(function_definition
(function_name_integral) function_name_integral
(parameters
(identifier_self) identifier_self
(identifier_bandname) identifier_bandname
)parameters
(block
(expression_statement
(assignment
(identifier_intg) identifier_intg
(dic... | Calculate the integral of the spectral response function for each
detector. |
(module
(function_definition
(function_name__CheckPythonVersionAndDisableWarnings) function_name__CheckPythonVersionAndDisableWarnings
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(id... | Checks python version, and disables SSL warnings.
urllib3 will warn on each HTTPS request made by older versions of Python.
Rather than spamming the user, we print one warning message, then disable
warnings in urllib3. |
(module
(function_definition
(function_name_libvlc_media_library_media_list) function_name_libvlc_media_library_media_list
(parameters
(identifier_p_mlib) identifier_p_mlib
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(boolean... | Get media library subitems.
@param p_mlib: media library object.
@return: media list subitems. |
(module
(function_definition
(function_name__makeTimingAbsolute) function_name__makeTimingAbsolute
(parameters
(identifier_relativeDataList) identifier_relativeDataList
(identifier_startTime) identifier_startTime
(identifier_endTime) identifier_endTime
)parameters
(block
(expre... | Maps values from 0 to 1 to the provided start and end time
Input is a list of tuples of the form
([(time1, pitch1), (time2, pitch2),...] |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__i... | Clear index. |
(module
(function_definition
(function_name_pong) function_name_pong
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | send pong data.
payload: data payload to send server. |
(module
(function_definition
(function_name__cleanup_tempdir) function_name__cleanup_tempdir
(parameters
(identifier_tempdir) identifier_tempdir
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(iden... | Clean up temp directory ignoring ENOENT errors. |
(module
(function_definition
(function_name_keys) function_name_keys
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
)list
)assignment
)expression_... | return a list of all app_names |
(module
(function_definition
(function_name_getNumDownloads) function_name_getNumDownloads
(parameters
(identifier_self) identifier_self
(identifier_fileInfo) identifier_fileInfo
)parameters
(block
(expression_statement
(assignment
(identifier_downloads) identifier_... | Function to get the number of times a file has been downloaded |
(module
(function_definition
(function_name_create_form) function_name_create_form
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_label_columns) identifier_label_columns
(None) None
)default_parameter
(default_parameter
(identifier_... | Converts a model to a form given
:param label_columns:
A dictionary with the column's labels.
:param inc_columns:
A list with the columns to include
:param description_columns:
A dictionary with a description for cols.
:par... |
(module
(function_definition
(function_name_attach) function_name_attach
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_stdout) identifier_stdout
(True) True
)default_parameter
(default_parameter
(identifier_stderr) identifier_stder... | Keeping this simple until we need to extend later. |
(module
(function_definition
(function_name_on_breakpoints_changed) function_name_on_breakpoints_changed
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_removed) identifier_removed
(False) False
)default_parameter
)parameters
(block
... | When breakpoints change, we have to re-evaluate all the assumptions we've made so far. |
(module
(function_definition
(function_name__print_config_text) function_name__print_config_text
(parameters
(identifier_tree) identifier_tree
(default_parameter
(identifier_indentation) identifier_indentation
(integer_0) integer_0
)default_parameter
)parameters
(bloc... | Return the config as text from a config tree. |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(typed_parameter
(identifier_request) identifier_request
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
... | Wraps jsonschema.validate, returning the same object passed in.
Args:
request: The deserialized-from-json request.
schema: The jsonschema schema to validate against.
Raises:
jsonschema.ValidationError |
(module
(function_definition
(function_name__integrate_fixed_trajectory) function_name__integrate_fixed_trajectory
(parameters
(identifier_self) identifier_self
(identifier_h) identifier_h
(identifier_T) identifier_T
(identifier_step) identifier_step
(identifier_relax) identifier... | Generates a solution trajectory of fixed length. |
(module
(function_definition
(function_name_helper_add) function_name_helper_add
(parameters
(identifier_access_token) identifier_access_token
(identifier_ck_id) identifier_ck_id
(identifier_path) identifier_path
(identifier_body) identifier_body
)parameters
(block
(expre... | Helper Function to add strings to a URL path.
Args:
access_token (str): A valid Azure authentication token.
ck_id (str): A CK ID.
path (str): A URL Path.
body (str): A Body.
Returns:
HTTP response. JSON body. |
(module
(function_definition
(function_name_get_singularity_version) function_name_get_singularity_version
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(attribute
(attribute
... | get the singularity client version. Useful in the case that functionality
has changed, etc. Can be "hacked" if needed by exporting
SPYTHON_SINGULARITY_VERSION, which is checked before checking on the
command line. |
(module
(function_definition
(function_name_release) function_name_release
(parameters
(identifier_self) identifier_self
(identifier_message_id) identifier_message_id
(identifier_reservation_id) identifier_reservation_id
(default_parameter
(identifier_delay) identifier_delay
... | Release locked message after specified time. If there is no message with such id on the queue.
Arguments:
message_id -- The ID of the message.
reservation_id -- Reservation Id of the message.
delay -- The time after which the message will be released. |
(module
(function_definition
(function_name_unique_authors) function_name_unique_authors
(parameters
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)parameters
(block
(expression_statement
(assignment
(identifier_seen) identifier_seen
... | Unique list of authors, but preserving order. |
(module
(function_definition
(function_name_cross_v2) function_name_cross_v2
(parameters
(identifier_vec1) identifier_vec1
(identifier_vec2) identifier_vec2
)parameters
(block
(return_statement
(binary_operator
(binary_operator
(attribute
(... | Return the crossproduct of the two vectors as a Vec2.
Cross product doesn't really make sense in 2D, but return the Z component
of the 3d result. |
(module
(function_definition
(function_name_serverDirectories) function_name_serverDirectories
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_directs) identifier_directs
(list
)list
... | returns the server directory object in a list |
(module
(function_definition
(function_name__merge_maps) function_name__merge_maps
(parameters
(identifier_m1) identifier_m1
(identifier_m2) identifier_m2
)parameters
(block
(return_statement
(call
(call
(identifier_type) identifier_type
(arg... | merge two Mapping objects, keeping the type of the first mapping |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_blocking) identifier_blocking
(True) True
)default_parameter
)parameters
(block
(if_statement
(attribute
... | Gets a connection.
Args:
blocking: Whether to block when max_size connections are already in use.
If false, may return None.
Returns:
A connection to the database.
Raises:
PoolAlreadyClosedError: if close() method was already called on
this pool. |
(module
(function_definition
(function_name_timestamp_file) function_name_timestamp_file
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_config_dir) identifier_config_dir
(call
(attribute
(attribute
... | Opens a file for tracking the time of the last version check |
(module
(function_definition
(function_name_crypto_core_ed25519_add) function_name_crypto_core_ed25519_add
(parameters
(identifier_p) identifier_p
(identifier_q) identifier_q
)parameters
(block
(expression_statement
(call
(identifier_ensure) identifier_ensure
... | Add two points on the edwards25519 curve.
:param p: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence
representing a point on the edwards25519 curve
:type p: bytes
:param q: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence
representing a point on the edwards... |
(module
(function_definition
(function_name_run_all) function_name_run_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_d... | Run all the jobs specified in the configuration file. |
(module
(function_definition
(function_name_is_mastercard) function_name_is_mastercard
(parameters
(identifier_n) identifier_n
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_n) identifier_n
(identifier_length) identi... | Checks if credit card number fits the mastercard format. |
(module
(function_definition
(function_name_choice) function_name_choice
(parameters
(identifier_anon) identifier_anon
(identifier_obj) identifier_obj
(identifier_field) identifier_field
(identifier_val) identifier_val
)parameters
(block
(return_statement
(call
... | Randomly chooses one of the choices set on the field. |
(module
(function_definition
(function_name__param_fields) function_name__param_fields
(parameters
(identifier_kwargs) identifier_kwargs
(identifier_fields) identifier_fields
)parameters
(block
(if_statement
(comparison_operator
(identifier_fields) identifier_fields... | Normalize the "fields" argument to most find methods |
(module
(function_definition
(function_name_partial_normalize) function_name_partial_normalize
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_axis) identifier_axis
(type
(identifier_AxisIdentifier) identifier_AxisIdentifier
)typ... | Normalize in rows or columns.
Parameters
----------
axis: int or str
Along which axis to sum (numpy-sense)
inplace: bool
Update the object itself
Returns
-------
hist : Histogram2D |
(module
(function_definition
(function_name_is_element_visible) function_name_is_element_visible
(parameters
(identifier_driver) identifier_driver
(identifier_selector) identifier_selector
(default_parameter
(identifier_by) identifier_by
(attribute
(identifier_By) i... | Returns whether the specified element selector is visible on the page.
@Params
driver - the webdriver object (required)
selector - the locator that is used (required)
by - the method to search for the locator (Default: By.CSS_SELECTOR)
@Returns
Boolean (is element visible) |
(module
(function_definition
(function_name_unpickler) function_name_unpickler
(parameters
(identifier_zone) identifier_zone
(default_parameter
(identifier_utcoffset) identifier_utcoffset
(None) None
)default_parameter
(default_parameter
(identifier_dstoffset) i... | Factory function for unpickling pytz tzinfo instances.
This is shared for both StaticTzInfo and DstTzInfo instances, because
database changes could cause a zones implementation to switch between
these two base classes and we can't break pickles on a pytz version
upgrade. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_bucket) identifier_bucke... | Create a bucket, directory, or empty file. |
(module
(function_definition
(function_name__normalize_properties) function_name__normalize_properties
(parameters
(identifier_self) identifier_self
(identifier_definition) identifier_definition
)parameters
(block
(expression_statement
(assignment
(identifier_args) ... | Inspects the definition and returns a copy of it that is updated
with any special property such as Condition, UpdatePolicy and the
like. |
(module
(function_definition
(function_name__checksum) function_name__checksum
(parameters
(identifier_self) identifier_self
(identifier_packet) identifier_packet
)parameters
(block
(expression_statement
(assignment
(identifier_xorsum) identifier_xorsum
(i... | calculate the XOR checksum of a packet in string format |
(module
(function_definition
(function_name_fullversion) function_name_fullversion
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(string_'dnsmasq -v') string_'dnsmasq -v'
)assignment
)expression_statemen... | Shows installed version of dnsmasq and compile options.
CLI Example:
.. code-block:: bash
salt '*' dnsmasq.fullversion |
(module
(function_definition
(function_name_build_sort) function_name_build_sort
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_sorts) identifier_sorts
(call
(attribute
(attribute
(identifier_requ... | Build sort query paramter from kwargs |
(module
(function_definition
(function_name_on_idle) function_name_on_idle
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | To adjust text and positions on rescaling the window when resized. |
(module
(function_definition
(function_name_send_exception_to_sentry) function_name_send_exception_to_sentry
(parameters
(identifier_self) identifier_self
(identifier_exc_info) identifier_exc_info
)parameters
(block
(if_statement
(not_operator
(attribute
... | Send an exception to Sentry if enabled.
:param tuple exc_info: exception information as returned from
:func:`sys.exc_info` |
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_modules) identifier_modu... | Get the current version from ``setup.py``.
Assumes that importing ``setup.py`` will have no side-effects (i.e.
assumes the behavior is guarded by ``if __name__ == "__main__"``).
Returns:
str: The current version in ``setup.py``. |
(module
(function_definition
(function_name_get_roots) function_name_get_roots
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier___directionless) identifier___directionless
... | get the roots of a graph. must be a directed graph
:returns: root list of nodes
:rtype: Node[] |
(module
(function_definition
(function_name__add_q) function_name__add_q
(parameters
(identifier_self) identifier_self
(identifier_q_object) identifier_q_object
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_... | Add a Q-object to the current filter. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(identifier_datacenter) identifier_datacenter
(default_parameter
(identifier_subnet) identifier_subnet
(None) None
... | Create a new vlan. |
(module
(function_definition
(function_name_params) function_name_params
(parameters
(identifier_self) identifier_self
(identifier_dict) identifier_dict
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) ... | Set configuration variables for an OnShape part. |
(module
(function_definition
(function_name_encode) function_name_encode
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_re... | Returns ``obj`` serialized as JSON formatted bytes.
Raises
------
~ipfsapi.exceptions.EncodingError
Parameters
----------
obj : str | list | dict | int
JSON serializable Python object
Returns
-------
bytes |
(module
(function_definition
(function_name_streamDefByThreshold) function_name_streamDefByThreshold
(parameters
(identifier_self) identifier_self
(identifier_stream_raster_grid) identifier_stream_raster_grid
(identifier_threshold) identifier_threshold
(identifier_contributing_area_gri... | Calculates the stream definition by threshold. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_context) identifier_context
(call
(attribute
(identifier_z... | main loop that fires the event every second |
(module
(function_definition
(function_name_api_post) function_name_api_post
(parameters
(identifier_self) identifier_self
(identifier_action) identifier_action
(identifier_data) identifier_data
(default_parameter
(identifier_binary_data_param) identifier_binary_data_param
... | Perform an HTTP POST request, using the shared-secret auth hash.
@param action: API action call
@param data: dictionary values |
(module
(function_definition
(function_name_remove_token) function_name_remove_token
(parameters
(identifier_self) identifier_self
(identifier_token_stack) identifier_token_stack
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(call
... | Remove last occurance of token from stack |
(module
(function_definition
(function_name_select_sample) function_name_select_sample
(parameters
(identifier_in_file) identifier_in_file
(identifier_sample) identifier_sample
(identifier_out_file) identifier_out_file
(identifier_config) identifier_config
(default_parameter
... | Select a single sample from the supplied multisample VCF file. |
(module
(function_definition
(function_name_set_pixel) function_name_set_pixel
(parameters
(identifier_framebuf) identifier_framebuf
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_color) identifier_color
)parameters
(block
(expression_statement
... | Set a given pixel to a color. |
(module
(function_definition
(function_name_get_client) function_name_get_client
(parameters
(identifier_host) identifier_host
(identifier_userid) identifier_userid
(identifier_password) identifier_password
(default_parameter
(identifier_port) identifier_port
(integer_4... | get SCCI command partial function
This function returns SCCI command partial function
:param host: hostname or IP of iRMC
:param userid: userid for iRMC with administrator privileges
:param password: password for userid
:param port: port number of iRMC
:param auth_method: irmc_username
:par... |
(module
(function_definition
(function_name_compile_file) function_name_compile_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_encoding) identifier_encoding
(string_"utf-8") string_"utf-8"
)def... | compile a CoffeeScript script file to a JavaScript code.
filename can be a list or tuple of filenames,
then contents of files are concatenated with line feeds.
if bare is True, then compile the JavaScript without the top-level
function safety wrapper (like the coffee command). |
(module
(function_definition
(function_name_meet) function_name_meet
(parameters
(identifier_self) identifier_self
(identifier_featuresets) identifier_featuresets
)parameters
(block
(expression_statement
(assignment
(identifier_concepts) identifier_concepts
... | Return the nearest featureset that implies all given ones. |
(module
(function_definition
(function_name_handle_request) function_name_handle_request
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_service_name) identifier_s... | Respond to request if PIN is correct. |
(module
(function_definition
(function_name_from_file) function_name_from_file
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_file_path) identifier_file_path
(type
(identifier_Path) identifier_Path
)type
)typed_parameter
(type... | Returns a ``Package`` instantiated by a manifest located at the provided Path.
``file_path`` arg must be a ``pathlib.Path`` instance.
A valid ``Web3`` instance is required to instantiate a ``Package``. |
(module
(function_definition
(function_name__parse_path_table) function_name__parse_path_table
(parameters
(identifier_self) identifier_self
(identifier_ptr_size) identifier_ptr_size
(identifier_extent) identifier_extent
)parameters
(block
(expression_statement
(call
... | An internal method to parse a path table on an ISO. For each path
table entry found, a Path Table Record object is created, and the
callback is called.
Parameters:
vd - The volume descriptor that these path table records correspond to.
extent - The extent at which this path t... |
(module
(function_definition
(function_name__get_whitelist_licenses) function_name__get_whitelist_licenses
(parameters
(identifier_config_path) identifier_config_path
)parameters
(block
(expression_statement
(assignment
(identifier_whitelist_licenses) identifier_whitelist... | Get whitelist license names from config file.
:param config_path: str
:return: list |
(module
(function_definition
(function_name__get_type_hints) function_name__get_type_hints
(parameters
(identifier_func) identifier_func
(default_parameter
(identifier_args) identifier_args
(None) None
)default_parameter
(default_parameter
(identifier_res) ident... | Helper for get_type_hints. |
(module
(function_definition
(function_name_add_fs) function_name_add_fs
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_fs) identifier_fs
(default_parameter
(identifier_write) identifier_write
(False) False
)default_par... | Add a filesystem to the MultiFS.
Arguments:
name (str): A unique name to refer to the filesystem being
added.
fs (FS or str): The filesystem (instance or URL) to add.
write (bool): If this value is True, then the ``fs`` will
be used as the wri... |
(module
(function_definition
(function_name_add_time) function_name_add_time
(parameters
(identifier_self) identifier_self
(identifier_extra_time) identifier_extra_time
)parameters
(block
(expression_statement
(assignment
(identifier_window_start) identifier_window_... | Go to the predefined time forward. |
(module
(function_definition
(function_name_update_workspace_acl) function_name_update_workspace_acl
(parameters
(identifier_namespace) identifier_namespace
(identifier_workspace) identifier_workspace
(identifier_acl_updates) identifier_acl_updates
(default_parameter
(identifie... | Update workspace access control list.
Args:
namespace (str): project to which workspace belongs
workspace (str): Workspace name
acl_updates (list(dict)): Acl updates as dicts with two keys:
"email" - Firecloud user email
"accessLevel" - one of "OWNER", "READER", "WRI... |
(module
(function_definition
(function_name_check_file) function_name_check_file
(parameters
(identifier_self) identifier_self
(identifier_fs) identifier_fs
(identifier_info) identifier_info
)parameters
(block
(if_statement
(boolean_operator
(comparison_operat... | Check if a filename should be included.
Override to exclude files from the walk.
Arguments:
fs (FS): A filesystem instance.
info (Info): A resource info object.
Returns:
bool: `True` if the file should be included. |
(module
(function_definition
(function_name_evaluator) function_name_evaluator
(parameters
(identifier_evaluate) identifier_evaluate
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
... | Return an inspyred evaluator function based on the given function.
This function generator takes a function that evaluates only one
candidate. The generator handles the iteration over each candidate
to be evaluated.
The given function ``evaluate`` must have the following signature::
... |
(module
(function_definition
(function_name__tm) function_name__tm
(parameters
(identifier_self) identifier_self
(identifier_theta) identifier_theta
(identifier_phi) identifier_phi
(identifier_psi) identifier_psi
(identifier_dx) identifier_dx
(identifier_dy) identifier_dy
... | Compute the minimisation target, not normalised. |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_cls) identifier_cls
(identifier_url) identifier_url
(default_parameter
(identifier_filename) identifier_filename
(None) None
)default_parameter
)parameters
(bloc... | Download a file into the correct cache directory. |
(module
(function_definition
(function_name_encrypt_data) function_name_encrypt_data
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_plaintext) identifier_plaintext
(default_parameter
(identifier_context) identifier_context
(s... | Encrypt the provided plaintext using the named key.
This path supports the create and update policy capabilities as follows: if the user has the create capability
for this endpoint in their policies, and the key does not exist, it will be upserted with default values
(whether the key requires d... |
(module
(function_definition
(function_name_create_response) function_name_create_response
(parameters
(identifier_request) identifier_request
(default_parameter
(identifier_body) identifier_body
(None) None
)default_parameter
(default_parameter
(identifier_stat... | Generate a HttpResponse.
:param request: Request object
:param body: Body of the response
:param status: HTTP status code
:param headers: Any headers. |
(module
(function_definition
(function_name_zremrangebyscore) function_name_zremrangebyscore
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_min_score) identifier_min_score
(identifier_max_score) identifier_max_score
)parameters
(block
... | Removes all elements in the sorted set stored at key with a score
between min and max.
Intervals are described in :meth:`~tredis.RedisClient.zrangebyscore`.
Returns the number of elements removed.
.. note::
**Time complexity**: ``O(log(N)+M)`` with ``N`` being the number o... |
(module
(function_definition
(function_name_add_tag_for_component) function_name_add_tag_for_component
(parameters
(identifier_user) identifier_user
(identifier_c_id) identifier_c_id
)parameters
(block
(expression_statement
(call
(attribute
(identifier_v... | Add a tag on a specific component. |
(module
(function_definition
(function_name_triangle_center) function_name_triangle_center
(parameters
(identifier_tri) identifier_tri
(default_parameter
(identifier_uv) identifier_uv
(False) False
)default_parameter
)parameters
(block
(if_statement
(ide... | Computes the center of mass of the input triangle.
:param tri: triangle object
:type tri: elements.Triangle
:param uv: if True, then finds parametric position of the center of mass
:type uv: bool
:return: center of mass of the triangle
:rtype: tuple |
(module
(function_definition
(function_name_writeinfo) function_name_writeinfo
(parameters
(identifier_self) identifier_self
(identifier_linelist) identifier_linelist
(default_parameter
(identifier_colour) identifier_colour
(None) None
)default_parameter
)parameters... | We add a longer chunk of text on the upper left corner of the image.
Provide linelist, a list of strings that will be written one below the other. |
(module
(function_definition
(function_name___connect) function_name___connect
(parameters
(identifier_self) identifier_self
(identifier_wsURL) identifier_wsURL
(identifier_symbol) identifier_symbol
)parameters
(block
(expression_statement
(call
(attribute
... | Connect to the websocket in a thread. |
(module
(function_definition
(function_name_pipes) function_name_pipes
(parameters
(identifier_stream) identifier_stream
(list_splat_pattern
(identifier_transformers) identifier_transformers
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_trans... | Pipe several transformers end to end. |
(module
(function_definition
(function_name_mongo_retry) function_name_mongo_retry
(parameters
(identifier_f) identifier_f
)parameters
(block
(expression_statement
(assignment
(identifier_log_all_exceptions) identifier_log_all_exceptions
(conditional_expression
... | Catch-all decorator that handles AutoReconnect and OperationFailure
errors from PyMongo |
(module
(function_definition
(function_name_cmd_create) function_name_cmd_create
(parameters
(identifier_args) identifier_args
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_args) identifier_args
(identifier_type) iden... | Create a generator.
Parameters
----------
args : `argparse.Namespace`
Command arguments. |
(module
(function_definition
(function_name_create_policy) function_name_create_policy
(parameters
(identifier_policyName) identifier_policyName
(identifier_policyDocument) identifier_policyDocument
(default_parameter
(identifier_region) identifier_region
(None) None
)d... | Given a valid config, create a policy.
Returns {created: true} if the policy was created and returns
{created: False} if the policy was not created.
CLI Example:
.. code-block:: bash
salt myminion boto_iot.create_policy my_policy \\
'{"Version":"2015-12-12",\\
"St... |
(module
(function_definition
(function_name_get_bounds) function_name_get_bounds
(parameters
(identifier_pts) identifier_pts
)parameters
(block
(expression_statement
(assignment
(identifier_pts_t) identifier_pts_t
(attribute
(call
(attr... | Return the minimum point and maximum point bounding a
set of points. |
(module
(function_definition
(function_name_http_get) function_name_http_get
(parameters
(identifier_url) identifier_url
(default_parameter
(identifier_filename) identifier_filename
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
... | Download HTTP data. |
(module
(function_definition
(function_name_job_started_message) function_name_job_started_message
(parameters
(identifier_self) identifier_self
(identifier_job) identifier_job
(identifier_queue) identifier_queue
)parameters
(block
(return_statement
(binary_operator
... | Return the message to log just befre the execution of the job |
(module
(function_definition
(function_name__deserialize) function_name__deserialize
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier_attr) identifier_attr
(identifier_data) identifier_data
)parameters
(block
(if_statement
... | Deserializes a string into an Arrow object. |
(module
(function_definition
(function_name_make_response) function_name_make_response
(parameters
(identifier_message) identifier_message
(identifier_status_code) identifier_status_code
(default_parameter
(identifier_details) identifier_details
(None) None
)default_par... | Make a jsonified response with specified message and status code. |
(module
(function_definition
(function_name_pack) function_name_pack
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_six) identifier_six
(identifier_PY3) identifier_PY3
)attribute
(block
... | Pack this exception into a serializable dictionary that is safe for
transport via msgpack |
(module
(function_definition
(function_name_disable_logger) function_name_disable_logger
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_disabled) identifier_disabled
(True) True
)default_parameter
)parameters
(block
(if_statement
... | Disable all logging calls. |
(module
(function_definition
(function_name_bin) function_name_bin
(parameters
(identifier_x) identifier_x
(identifier_bins) identifier_bins
(default_parameter
(identifier_maxX) identifier_maxX
(None) None
)default_parameter
(default_parameter
(identifier_... | bin signal x using 'binsN' bin. If minX, maxX are None, they default to the full
range of the signal. If they are not None, everything above maxX gets assigned to
binsN-1 and everything below minX gets assigned to 0, this is effectively the same
as clipping x before passing it to 'bin'
input:
-----... |
(module
(function_definition
(function_name_set_execution_mode) function_name_set_execution_mode
(parameters
(identifier_self) identifier_self
(identifier_execution_mode) identifier_execution_mode
(default_parameter
(identifier_notify) identifier_notify
(True) True
)def... | An observed setter for the execution mode of the state machine status. This is necessary for the
monitoring client to update the local state machine in the same way as the root state machine of the server.
:param execution_mode: the new execution mode of the state machine
:raises exceptions.Typ... |
(module
(function_definition
(function_name_print_dedicated_access) function_name_print_dedicated_access
(parameters
(identifier_access) identifier_access
)parameters
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(call
... | Prints out the dedicated hosts a user can access |
(module
(function_definition
(function_name_get_hyperedge_id) function_name_get_hyperedge_id
(parameters
(identifier_self) identifier_self
(identifier_tail) identifier_tail
(identifier_head) identifier_head
)parameters
(block
(expression_statement
(assignment
... | From a tail and head set of nodes, returns the ID of the hyperedge
that these sets comprise.
:param tail: iterable container of references to nodes in the
tail of the hyperedge to be added
:param head: iterable container of references to nodes in the
head... |
(module
(function_definition
(function_name_validate_date) function_name_validate_date
(parameters
(identifier_date) identifier_date
(identifier_project_member_id) identifier_project_member_id
(identifier_filename) identifier_filename
)parameters
(block
(try_statement
(... | Check if date is in ISO 8601 format.
:param date: This field is the date to be checked.
:param project_member_id: This field is the project_member_id corresponding
to the date provided.
:param filename: This field is the filename corresponding to the date
provided. |
(module
(function_definition
(function_name_unbounded) function_name_unbounded
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_valid) ident... | Whether the solution is unbounded |
(module
(function_definition
(function_name_list_networks) function_name_list_networks
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) None
)d... | List all the standard networks for this VMware environment
CLI Example:
.. code-block:: bash
salt-cloud -f list_networks my-vmware-config |
(module
(function_definition
(function_name_schedule_violations) function_name_schedule_violations
(parameters
(identifier_schedule) identifier_schedule
(identifier_events) identifier_events
(identifier_slots) identifier_slots
)parameters
(block
(expression_statement
(a... | Take a schedule and return a list of violated 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.Slot instances
Returns
... |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__level) identifier__l... | Clears the entire scope. |
(module
(function_definition
(function_name_build_command) function_name_build_command
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
... | Builds the command to execute MIP. |
(module
(function_definition
(function_name_relabel_squeeze) function_name_relabel_squeeze
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_palette) identifier_palette
(ide... | Makes relabeling of data if there are unused values. |
(module
(function_definition
(function_name__get_recipients) function_name__get_recipients
(parameters
(identifier_self) identifier_self
(identifier_array) identifier_array
)parameters
(block
(for_statement
(pattern_list
(identifier_address) identifier_address
... | Returns an iterator of objects
in the form ["Name <address@example.com", ...]
from the array [["address@example.com", "Name"]] |
(module
(function_definition
(function_name_inverse_gaussian_gradient) function_name_inverse_gaussian_gradient
(parameters
(identifier_image) identifier_image
(default_parameter
(identifier_alpha) identifier_alpha
(float_100.0) float_100.0
)default_parameter
(default_pa... | Inverse of gradient magnitude.
Compute the magnitude of the gradients in the image and then inverts the
result in the range [0, 1]. Flat areas are assigned values close to 1,
while areas close to borders are assigned values close to 0.
This function or a similar one defined by the user should be appli... |
(module
(function_definition
(function_name_from_etree) function_name_from_etree
(parameters
(identifier_root) identifier_root
)parameters
(block
(expression_statement
(assignment
(identifier_cite_list) identifier_cite_list
(list
)list
)assignm... | Load up the citations, if present, for initializing with the Voevent. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.