sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_getDebt) function_name_getDebt
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_debt) identifier_debt
(binary_operator
(call
(iden... | Sums up all the balances of the account and returns them. |
(module
(function_definition
(function_name_overlap) function_name_overlap
(parameters
(identifier_ival0) identifier_ival0
(identifier_ival1) identifier_ival1
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_min0) identifier... | Determine if two interval tuples have overlap.
Args:
iv0 ((int,int)): An interval tuple
iv1 ((int,int)); An interval tuple
Returns:
(bool): True if the intervals overlap, otherwise False |
(module
(function_definition
(function_name_publish) function_name_publish
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute... | Pushes data to a listener. |
(module
(function_definition
(function_name_removeClassBreak) function_name_removeClassBreak
(parameters
(identifier_self) identifier_self
(identifier_label) identifier_label
)parameters
(block
(for_statement
(identifier_v) identifier_v
(attribute
(identifie... | removes a classification break value to the renderer |
(module
(function_definition
(function_name_load_z_meso) function_name_load_z_meso
(parameters
(identifier_self) identifier_self
(identifier_z_meso_path) identifier_z_meso_path
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_s... | Open the z_meso.txt file and return heights as list |
(module
(function_definition
(function_name_log_url) function_name_log_url
(parameters
(identifier_self) identifier_self
(identifier_url_data) identifier_url_data
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self... | Send new url to all configured loggers. |
(module
(function_definition
(function_name_phase_by) function_name_phase_by
(parameters
(typed_parameter
(identifier_val) identifier_val
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
(typed_parameter
(identifier_phase_turns) identifie... | Returns a phased version of the effect.
For example, an X gate phased by 90 degrees would be a Y gate.
This works by calling `val`'s _phase_by_ method and returning
the result.
Args:
val: The value to describe with a unitary matrix.
phase_turns: The amount to phase the gate, in fractio... |
(module
(function_definition
(function_name_contains_is_html) function_name_contains_is_html
(parameters
(identifier_cls) identifier_cls
(identifier_data) identifier_data
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(iden... | Detect if the problem has at least one "xyzIsHTML" key |
(module
(function_definition
(function_name_pause) function_name_pause
(parameters
(identifier_self) identifier_self
(identifier_queue_name) identifier_queue_name
(default_parameter
(identifier_kw_in) identifier_kw_in
(None) None
)default_parameter
(default_parame... | Pause a queue.
Unfortunately, the PAUSE keywords are mostly reserved words in Python,
so I've been a little creative in the function variable names. Open
to suggestions to change it (canardleteer)
:param queue_name: The job queue we are modifying.
:param kw_in: pause the queue ... |
(module
(function_definition
(function_name_bogoliubov_trans) function_name_bogoliubov_trans
(parameters
(identifier_p) identifier_p
(identifier_q) identifier_q
(identifier_theta) identifier_theta
)parameters
(block
(expression_statement
(identifier_r) identifier_r
... | r"""The 2-mode Bogoliubov transformation is mapped to two-qubit operations.
We use the identity X S^\dag X S X = Y X S^\dag Y S X = X to transform
the Hamiltonian XY+YX to XX+YY type. The time evolution of the XX + YY
Hamiltonian can be expressed as a power of the iSWAP gate.
Args:
p: the fi... |
(module
(function_definition
(function_name_decodeRPCErrorMsg) function_name_decodeRPCErrorMsg
(parameters
(identifier_e) identifier_e
)parameters
(block
(expression_statement
(assignment
(identifier_found) identifier_found
(call
(attribute
... | Helper function to decode the raised Exception and give it a
python Exception class |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
... | Indicate that we are performing work in a thread.
:returns: multiprocessing job object |
(module
(function_definition
(function_name_simulate) function_name_simulate
(parameters
(default_parameter
(identifier_radius) identifier_radius
(float_5e-6) float_5e-6
)default_parameter
(default_parameter
(identifier_sphere_index) identifier_sphere_index
(f... | Simulate scattering at a sphere
Parameters
----------
radius: float
Radius of the sphere [m]
sphere_index: float
Refractive index of the object
medium_index: float
Refractive index of the surrounding medium
wavelength: float
Vacuum wavelength of the imaging light... |
(module
(function_definition
(function_name_assert_estimator_equal) function_name_assert_estimator_equal
(parameters
(identifier_left) identifier_left
(identifier_right) identifier_right
(default_parameter
(identifier_exclude) identifier_exclude
(None) None
)default_par... | Check that two Estimators are equal
Parameters
----------
left, right : Estimators
exclude : str or sequence of str
attributes to skip in the check
kwargs : dict
Passed through to the dask `assert_eq` method. |
(module
(function_definition
(function_name_state_cpfs) function_name_state_cpfs
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_CPF) identifier_CPF
... | Returns list of state-fluent CPFs. |
(module
(function_definition
(function_name_get_rng) function_name_get_rng
(parameters
(default_parameter
(identifier_obj) identifier_obj
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_seed) identifier... | Get a good RNG seeded with time, pid and the object.
Args:
obj: some object to use to generate random seed.
Returns:
np.random.RandomState: the RNG. |
(module
(function_definition
(function_name_get_cas_client) function_name_get_cas_client
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_provider) identifier_provider
(default_parameter
(identifier_renew) identifier_renew
... | return a CAS client object matching provider
:param django.http.HttpRequest request: The current request object
:param cas_server.models.FederatedIendityProvider provider: the user identity provider
:return: The user CAS client object
:rtype: :class:`federate.CASFederate... |
(module
(function_definition
(function_name_offset) function_name_offset
(parameters
(identifier_self) identifier_self
(identifier_offset) identifier_offset
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | Move all the intervals in the list by the given ``offset``.
:param offset: the shift to be applied
:type offset: :class:`~aeneas.exacttiming.TimeValue`
:raises TypeError: if ``offset`` is not an instance of ``TimeValue`` |
(module
(function_definition
(function_name_query_source) function_name_query_source
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
... | Query by source |
(module
(function_definition
(function_name_on_before_transform_template) function_name_on_before_transform_template
(parameters
(identifier_self) identifier_self
(identifier_template_dict) identifier_template_dict
)parameters
(block
(expression_statement
(assignment
... | Hook method that gets called before the SAM template is processed.
The template has pass the validation and is guaranteed to contain a non-empty "Resources" section.
:param dict template_dict: Dictionary of the SAM template
:return: Nothing |
(module
(function_definition
(function_name_app_start) function_name_app_start
(parameters
(identifier_name) identifier_name
(identifier_profile) identifier_profile
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(bl... | Start an application with specified profile.
Does nothing if application is already running. |
(module
(function_definition
(function_name_list_supported_categories) function_name_list_supported_categories
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_categories) identifier_categories
(call
(identifier_get_supported_ca... | Prints a list of supported external account category names.
For example, "AWS" is a supported external account category name. |
(module
(function_definition
(function_name_remove_suffix) function_name_remove_suffix
(parameters
(identifier_text) identifier_text
(identifier_suffix) identifier_suffix
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_rest... | Remove the suffix from the text if it exists.
>>> remove_suffix('name.git', '.git')
'name'
>>> remove_suffix('something special', 'sample')
'something special' |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_resource) identifier_resource
(default_parameter
(identifier_timeout) identifier_timeout
(unary_operator
(integer_1) integer_1
... | Updates a User.
Args:
resource (dict): Object to update.
timeout:
Timeout in seconds. Wait for task completion by default. The timeout does not abort the operation
in OneView, just stop waiting for its completion.
Returns:
dict: Updat... |
(module
(function_definition
(function_name_search) function_name_search
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
... | Method to search asns based on extends search.
:param search: Dict containing QuerySets to find asns.
:param include: Array containing fields to include on response.
:param exclude: Array containing fields to exclude on response.
:param fields: Array containing fields to override defau... |
(module
(function_definition
(function_name_download_log) function_name_download_log
(parameters
(default_parameter
(identifier_currentfile) identifier_currentfile
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(... | downloads log of given .py file from EV3. |
(module
(function_definition
(function_name_save_graph) function_name_save_graph
(parameters
(identifier_cn_topo) identifier_cn_topo
(identifier_filename) identifier_filename
(default_parameter
(identifier_showintfs) identifier_showintfs
(False) False
)default_parameter... | Save the topology to an image file |
(module
(function_definition
(function_name_format_content_type_object) function_name_format_content_type_object
(parameters
(identifier_repo) identifier_repo
(identifier_content_type) identifier_content_type
(identifier_uuid) identifier_uuid
)parameters
(block
(try_statement
... | Return a content object from a repository for a given content_type
and uuid
:param Repo repo:
The git repository.
:param str content_type:
The content type to list
:returns: dict |
(module
(function_definition
(function_name_enable) function_name_enable
(parameters
(identifier_self) identifier_self
(identifier_key_id) identifier_key_id
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
... | Enable a deploy key for a project.
Args:
key_id (int): The ID of the key to enable
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabProjectDeployKeyError: If the key could... |
(module
(function_definition
(function_name_change_name) function_name_change_name
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identif... | changes the username to given username, throws exception if username used |
(module
(function_definition
(function_name_task2ics) function_name_task2ics
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_argparse) identifier_argparse
)dotted_name
(dotted_name
(identifier_ArgumentParser) identifier_A... | Command line tool to convert from Taskwarrior to iCalendar |
(module
(function_definition
(function_name_precompile_python_code) function_name_precompile_python_code
(parameters
(typed_parameter
(identifier_context) identifier_context
(type
(identifier_Context) identifier_Context
)type
)typed_parameter
)parameters
(... | Pre-compiles python modules |
(module
(function_definition
(function_name_layerize) function_name_layerize
(parameters
(default_parameter
(identifier_begin_update) identifier_begin_update
(None) None
)default_parameter
(default_parameter
(identifier_predict) identifier_predict
(None) None
... | Wrap a function into a layer |
(module
(function_definition
(function_name_set_as_error) function_name_set_as_error
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_color) identifier_color
(attribute
(identifier_Qt) identifier_Qt
(identifier_red) identifier_red
... | Highlights text as a syntax error.
:param color: Underline color
:type color: QtGui.QColor |
(module
(function_definition
(function_name__parse) function_name__parse
(parameters
(identifier_cls) identifier_cls
(identifier_data) identifier_data
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
)parameters
(block
(exp... | Parse a set of data to extract entity-only data.
Use classmethod `parse` if available, otherwise use the `endpoint`
class variable to extract data from a data blob. |
(module
(function_definition
(function_name_set_category) function_name_set_category
(parameters
(identifier_self) identifier_self
(identifier_category) identifier_category
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
... | Set package category
Args:
category: String of an existing category's name, or a
Category object. |
(module
(function_definition
(function_name_capture) function_name_capture
(parameters
(identifier_returns) identifier_returns
(identifier_factor_returns) identifier_factor_returns
(default_parameter
(identifier_period) identifier_period
(identifier_DAILY) identifier_DAILY
... | Compute capture ratio.
Parameters
----------
returns : pd.Series or np.ndarray
Returns of the strategy, noncumulative.
- See full explanation in :func:`~empyrical.stats.cum_returns`.
factor_returns : pd.Series or np.ndarray
Noncumulative returns of the factor to which beta is
... |
(module
(function_definition
(function_name_load_extra_data) function_name_load_extra_data
(parameters
(identifier_cls) identifier_cls
(identifier_data) identifier_data
)parameters
(block
(try_statement
(block
(expression_statement
(call
(a... | Loads extra JSON configuration parameters from a data buffer.
The data buffer must represent a JSON object.
Args:
data: str, the buffer to load the JSON data from. |
(module
(function_definition
(function_name__ensure_slack) function_name__ensure_slack
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_connector) identifier_connector
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
... | Ensure we have a SlackClient. |
(module
(function_definition
(function_name_twofilter_smoothing) function_name_twofilter_smoothing
(parameters
(identifier_self) identifier_self
(identifier_t) identifier_t
(identifier_info) identifier_info
(identifier_phi) identifier_phi
(identifier_loggamma) identifier_loggamma... | Two-filter smoothing.
Parameters
----------
t: time, in range 0 <= t < T-1
info: SMC object
the information filter
phi: function
test function, a function of (X_t,X_{t+1})
loggamma: function
a function of (X_{t+1})
linear_cost... |
(module
(function_definition
(function_name__send) function_name__send
(parameters
(identifier_self) identifier_self
(identifier_email_message) identifier_email_message
)parameters
(block
(expression_statement
(call
(attribute
(identifier_pre_send) ident... | Sends an individual message via the Amazon SES HTTP API.
Args:
email_message: A single Django EmailMessage object.
Returns:
True if the EmailMessage was sent successfully, otherwise False.
Raises:
ClientError: An interaction with the Amazon SES HTTP API
... |
(module
(function_definition
(function_name_post_build_time_coverage) function_name_post_build_time_coverage
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_ambry) identifier_ambry
(identifier_util... | Collect all of the time coverage for the bundle. |
(module
(function_definition
(function_name__get_gradient_log_pdf) function_name__get_gradient_log_pdf
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_sub_vec) identifier_sub_vec
(binary_operator
... | Method that finds gradient and its log at position |
(module
(function_definition
(function_name_value) function_name_value
(parameters
(identifier_dtype) identifier_dtype
(identifier_arg) identifier_arg
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
... | Validates that the given argument is a Value with a particular datatype
Parameters
----------
dtype : DataType subclass or DataType instance
arg : python literal or an ibis expression
If a python literal is given the validator tries to coerce it to an ibis
literal.
Returns
-------
... |
(module
(function_definition
(function_name_login) function_name_login
(parameters
(identifier_session) identifier_session
(identifier_user) identifier_user
(identifier_password) identifier_password
(default_parameter
(identifier_database) identifier_database
(None) Non... | Logs into a MyGeotab server and stores the returned credentials.
:param session: The current Session object.
:param user: The username used for MyGeotab servers. Usually an email address.
:param password: The password associated with the username. Optional if `session_id` is provided.
:param database: ... |
(module
(function_definition
(function_name_internal_writer) function_name_internal_writer
(parameters
(identifier_self) identifier_self
(identifier_outputs) identifier_outputs
(identifier_stdout) identifier_stdout
)parameters
(block
(for_statement
(identifier_output) i... | Writer which outputs the python repr for each item. |
(module
(function_definition
(function_name_start_event) function_name_start_event
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_with_outframe_pool) identifier_with_outfram... | Called by the event loop when it is started.
Creates the output frame pools (if used) then calls
:py:meth:`on_start`. Creating the output frame pools now allows
their size to be configured before starting the component. |
(module
(function_definition
(function_name_filter) function_name_filter
(parameters
(identifier_configs) identifier_configs
(identifier_settings) identifier_settings
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(arg... | Main entry function to filtering configuration types
Parameters
----------
configs: Nx4 array
array containing A-B-M-N configurations
settings: dict
'only_types': ['dd', 'other'], # filter only for those types
Returns
-------
dict
results dict containing filter res... |
(module
(function_definition
(function_name__get_json) function_name__get_json
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_paramete... | Get the json for a given path and params.
:param path: The subpath required
:type path: str
:param params: Parameters to filter the json query.
:type params: Optional[Dict[str, Any]]
:param base: The Base JIRA URL, defaults to the instance base.
:type base: Optional[str]... |
(module
(function_definition
(function_name_add_pagination_meta) function_name_add_pagination_meta
(parameters
(identifier_self) identifier_self
(identifier_params) identifier_params
(identifier_meta) identifier_meta
)parameters
(block
(expression_statement
(assignment
... | Extend default meta dictionary value with pagination hints.
Note:
This method handler attaches values to ``meta`` dictionary without
changing it's reference. This means that you should never replace
``meta`` dictionary with any other dict instance but simply modify
... |
(module
(function_definition
(function_name___undo_filter_average) function_name___undo_filter_average
(parameters
(identifier_self) identifier_self
(identifier_scanline) identifier_scanline
)parameters
(block
(expression_statement
(assignment
(identifier_ai) identi... | Undo average filter. |
(module
(function_definition
(function_name__compute_mean) function_name__compute_mean
(parameters
(identifier_self) identifier_self
(identifier_C) identifier_C
(identifier_g) identifier_g
(identifier_mag) identifier_mag
(identifier_hypo_depth) identifier_hypo_depth
(identi... | Compute mean according to equation 1, page 1706. |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_future) identifier_future
(call
(attribute
(identi... | Connect to the Redis server if necessary.
:rtype: :class:`~tornado.concurrent.Future`
:raises: :class:`~tredis.exceptions.ConnectError`
:class:`~tredis.exceptinos.RedisError` |
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(default_parameter
(identifier_format) identifier_format
(None) None
)default_parameter
)parameters
(block
... | validate password change operation and return result |
(module
(function_definition
(function_name_hildatree2dgparentedtree) function_name_hildatree2dgparentedtree
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_transform) function_name_transform
(parameters
(identi... | Convert the tree from HILDA's format into a conventional binary tree,
which can be easily converted into output formats like RS3. |
(module
(function_definition
(function_name_config_as_dict) function_name_config_as_dict
(parameters
(identifier_cfg) identifier_cfg
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(... | convert raw configuration to unified dictionary |
(module
(function_definition
(function_name_speed_difference) function_name_speed_difference
(parameters
(identifier_points) identifier_points
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(list
(integer_0) in... | Computes the speed difference between each adjacent point
Args:
points (:obj:`Point`)
Returns:
:obj:`list` of int: Indexes of changepoints |
(module
(function_definition
(function_name_factorize_groupby_cols) function_name_factorize_groupby_cols
(parameters
(identifier_self) identifier_self
(identifier_groupby_cols) identifier_groupby_cols
)parameters
(block
(expression_statement
(assignment
(identifier_... | factorizes all columns that are used in the groupby
it will use cache carrays if available
if not yet auto_cache is valid, it will create cache carrays |
(module
(function_definition
(function_name_ls) function_name_ls
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_pattern) identifier_pattern
(string_'*') string_'*'
)default_parameter
)parameters
(block
(expression_statement
... | like unix ls - lists all files and dirs in path |
(module
(function_definition
(function_name__assert_has_data_for_time) function_name__assert_has_data_for_time
(parameters
(identifier_da) identifier_da
(identifier_start_date) identifier_start_date
(identifier_end_date) identifier_end_date
)parameters
(block
(if_statement
... | Check to make sure data is in Dataset for the given time range.
Parameters
----------
da : DataArray
DataArray with a time variable
start_date : datetime-like object or str
start date
end_date : datetime-like object or str
end date
Raises
------
AssertionErro... |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_output) identifier_output
)parameters
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(i... | Writes the data to be output to the device buffer, output will be looped when the data runs out
:param output: data to output
:type output: numpy.ndarray |
(module
(function_definition
(function_name_long2ip) function_name_long2ip
(parameters
(identifier_l) identifier_l
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_MAX_IP) identifier_MAX_IP
(identifier_l) identifi... | Convert a network byte order 32-bit integer to a dotted quad ip
address.
>>> long2ip(2130706433)
'127.0.0.1'
>>> long2ip(MIN_IP)
'0.0.0.0'
>>> long2ip(MAX_IP)
'255.255.255.255'
>>> long2ip(None) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
T... |
(module
(function_definition
(function_name_query) function_name_query
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictiona... | Reimplemented from base class.
This method does not add additional functionality of the
base class' :meth:`~couchbase.bucket.Bucket.query` method (all the
functionality is encapsulated in the view class anyway). However it
does require one additional keyword argument
:param cla... |
(module
(function_definition
(function_name_get_code) function_name_get_code
(parameters
(identifier_node) identifier_node
(default_parameter
(identifier_coder) identifier_coder
(call
(identifier_Coder) identifier_Coder
(argument_list
)argument_list
... | Return a node's code |
(module
(function_definition
(function_name_spin_z) function_name_spin_z
(parameters
(identifier_particles) identifier_particles
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_mat) identifier_mat
(call
... | Generates the spin_z projection operator for a system of
N=particles and for the selected spin index name. where index=0..N-1 |
(module
(function_definition
(function_name_auth_list) function_name_auth_list
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ctx) identif... | Shows available authorization groups. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_status) identifier_set_stat... | All logins are done over post, this is a parked endpoint
.. http:get:: /login
:status 401: |401|
:status 406: |406|
**Example request:**
.. code-block:: bash
curl -i localhost:8000/login
.. code-block:: text
GET /login HTTP/1.1
... |
(module
(function_definition
(function_name_launch_shell) function_name_launch_shell
(parameters
(identifier_username) identifier_username
(identifier_hostname) identifier_hostname
(identifier_password) identifier_password
(default_parameter
(identifier_port) identifier_port
... | Launches an ssh shell |
(module
(function_definition
(function_name_get_data) function_name_get_data
(parameters
(identifier_self) identifier_self
(identifier_datatype) identifier_datatype
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identif... | Look for an IP address or an email address in the spammer database.
:param datatype: Which type of data is to be looked up.
Allowed values are 'ip' or 'mail'.
:param data: The value to be looked up through the API.
:type datatype: str
:type data: str
:re... |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
... | Delete this property.
:return: None
:raises APIError: if delete was not successful |
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
(identifier_self) identifier_self
(identifier_dependency) identifier_dependency
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) i... | Return the installed version parsing the output of 'pip show'. |
(module
(function_definition
(function_name_format_to_json) function_name_format_to_json
(parameters
(identifier_data) identifier_data
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(ide... | Converts `data` into json
If stdout is a tty it performs a pretty print. |
(module
(function_definition
(function_name__format_options_usage) function_name__format_options_usage
(parameters
(identifier_options) identifier_options
)parameters
(block
(expression_statement
(assignment
(identifier_options_usage) identifier_options_usage
(s... | Format the Options-part of the usage text.
Parameters
----------
options : list[sacred.commandline_options.CommandLineOption]
A list of all supported commandline options.
Returns
-------
str
Text formatted as a description for the commandline options |
(module
(function_definition
(function_name_unique_prefixes) function_name_unique_prefixes
(parameters
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(dictionary
)dictionary
... | Return a dictionary with unique prefixes for modules in `context`.
Keys are 'module' statements and values are prefixes,
disambiguated where necessary. |
(module
(function_definition
(function_name_prepare_image_data) function_name_prepare_image_data
(parameters
(identifier_extracted_image_data) identifier_extracted_image_data
(identifier_output_directory) identifier_output_directory
(identifier_image_mapping) identifier_image_mapping
)pa... | Prepare and clean image-data from duplicates and other garbage.
:param: extracted_image_data ([(string, string, list, list) ...],
...])): the images and their captions + contexts, ordered
:param: tex_file (string): the location of the TeX (used for finding the
associated images; the TeX is assu... |
(module
(function_definition
(function_name__total_counts) function_name__total_counts
(parameters
(identifier_seqs) identifier_seqs
(identifier_seqL) identifier_seqL
(default_parameter
(identifier_aligned) identifier_aligned
(False) False
)default_parameter
)parame... | Counts total seqs after each step |
(module
(function_definition
(function_name__next_sample_index) function_name__next_sample_index
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(attribute
(identifier... | Rotates through each active sampler by incrementing the index |
(module
(function_definition
(function_name_array) function_name_array
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__ind) identifier__in... | Returns a numpy array containing the last stored values. |
(module
(function_definition
(function_name_socket) function_name_socket
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_blocking) identifier_blocking
(True) True
)default_parameter
)parameters
(block
(if_statement
(call
... | Blockingly yield the socket |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_format) identifier_format
(None) None
)default_parameter
(default_parameter
(identifier_reduce) identifier_reduce
... | Generates the underlying graph and prints it. |
(module
(function_definition
(function_name___telnet_event_listener) function_name___telnet_event_listener
(parameters
(identifier_self) identifier_self
(identifier_ip) identifier_ip
(identifier_callback) identifier_callback
)parameters
(block
(expression_statement
(ass... | creates a telnet connection to the lightpad |
(module
(function_definition
(function_name_mkdir) function_name_mkdir
(parameters
(identifier_dir) identifier_dir
(identifier_enter) identifier_enter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
... | Create directory with template for topic of the current environment |
(module
(function_definition
(function_name_alg2keytype) function_name_alg2keytype
(parameters
(identifier_alg) identifier_alg
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_alg) identifier_alg
)not_operator
(c... | Go from algorithm name to key type.
:param alg: The algorithm name
:return: The key type |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
... | Return sbo arch |
(module
(function_definition
(function_name_source_sum) function_name_source_sum
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__is_completely_masked) identifier__is_complet... | The sum of the unmasked ``data`` values within the source segment.
.. math:: F = \\sum_{i \\in S} (I_i - B_i)
where :math:`F` is ``source_sum``, :math:`(I_i - B_i)` is the
``data``, and :math:`S` are the unmasked pixels in the source
segment.
Non-finite pixel values (e.g. NaN,... |
(module
(function_definition
(function_name_compose) function_name_compose
(parameters
(list_splat_pattern
(identifier_funcs) identifier_funcs
)list_splat_pattern
)parameters
(block
(function_definition
(function_name_compose_two) function_name_compose_two
(pa... | Compose any number of unary functions into a single unary function.
>>> import textwrap
>>> from six import text_type
>>> stripped = text_type.strip(textwrap.dedent(compose.__doc__))
>>> compose(text_type.strip, textwrap.dedent)(compose.__doc__) == stripped
True
Compose also allows the innermost function to tak... |
(module
(function_definition
(function_name_get_crimes_area) function_name_get_crimes_area
(parameters
(identifier_self) identifier_self
(identifier_points) identifier_points
(default_parameter
(identifier_date) identifier_date
(None) None
)default_parameter
(defa... | Get crimes within a custom area. Uses the crime-street_ API call.
.. _crime-street: https//data.police.uk/docs/method/crime-street/
:rtype: list
:param list points: A ``list`` of ``(lat, lng)`` tuples.
:param date: The month in which the crimes were reported in the format
... |
(module
(function_definition
(function_name__table_set_column) function_name__table_set_column
(parameters
(identifier_table) identifier_table
(identifier_name) identifier_name
(identifier_expr) identifier_expr
)parameters
(block
(expression_statement
(assignment
... | Replace an existing column with a new expression
Parameters
----------
name : string
Column name to replace
expr : value expression
New data for column
Returns
-------
set_table : TableExpr
New table expression |
(module
(function_definition
(function_name_set_location) function_name_set_location
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(identifier_size) identifier_size
(identifier_checksum) identifier_checksum
(default_parameter
(identifier_st... | Set only URI location of for object.
Useful to link files on externally controlled storage. If a file
instance has already been set, this methods raises an
``FileInstanceAlreadySetError`` exception.
:param uri: Full URI to object (which can be interpreted by the storage
int... |
(module
(function_definition
(function_name_get_smart_storage_config) function_name_get_smart_storage_config
(parameters
(identifier_self) identifier_self
(identifier_smart_storage_config_url) identifier_smart_storage_config_url
)parameters
(block
(return_statement
(parenthes... | Returns a SmartStorageConfig Instance for each controller. |
(module
(function_definition
(function_name_get_file) function_name_get_file
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(identifier_fn) identifier_fn
(call
(attribute
(attribute
... | Returns file contents in unicode as list. |
(module
(function_definition
(function_name_keytype_path_to) function_name_keytype_path_to
(parameters
(identifier_args) identifier_args
(identifier_keytype) identifier_keytype
)parameters
(block
(if_statement
(comparison_operator
(identifier_keytype) identifier_key... | Get the local filename for a keyring type |
(module
(function_definition
(function_name_findlast) function_name_findlast
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
... | Find the last matching element in a list and return it.
Usage::
findlast(element, list_)
findlast(of=element, in_=list_)
findlast(where=predicate, in_=list_)
:param element, of: Element to search for (by equality comparison)
:param where: Predicate defining an element to search fo... |
(module
(function_definition
(function_name__validate_namespaces) function_name__validate_namespaces
(parameters
(identifier_self) identifier_self
(identifier_input_namespaces) identifier_input_namespaces
)parameters
(block
(expression_statement
(assignment
(identif... | Converts a list of db namespaces to a list of namespace tuples,
supporting basic commandline wildcards |
(module
(function_definition
(function_name_string) function_name_string
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_units) identifier_units
(type
(subscript
(attribute
(identifier_typing) identifier_typing
... | Return a string representation of the pressure, using the given units. |
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_field) id... | Sets the value of an app field.
:param str field:
The name of the app field. Trying to set immutable fields
``uuid`` or ``key`` will raise a ValueError.
:param value:
The new value of the app field.
:raises: ValueError |
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(identifier_section) identifier_section
(identifier_option) identifier_option
(default_parameter
(identifier_value) identifier_value
(string_'') string_''
... | This is overridden from the RawConfigParser merely to change the
default value for the 'value' argument. |
(module
(function_definition
(function_name_render_source) function_name_render_source
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(default_parameter
(identifier_variables) identifier_variables
(None) None
)default_parameter
)... | Render a source with the passed variables. |
(module
(function_definition
(function_name_translate) function_name_translate
(parameters
(identifier_self) identifier_self
(identifier_exc) identifier_exc
)parameters
(block
(import_from_statement
(dotted_name
(identifier_boto) identifier_boto
(identifie... | Return whether or not to do translation. |
(module
(function_definition
(function_name_ekf1_pos) function_name_ekf1_pos
(parameters
(identifier_EKF1) identifier_EKF1
)parameters
(block
(global_statement
(identifier_ekf_home) identifier_ekf_home
)global_statement
(import_from_statement
(relative_import
... | calculate EKF position when EKF disabled |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.