sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_get_branding) function_name_get_branding
(parameters
(identifier_self) identifier_self
(identifier_branding_id) identifier_branding_id
)parameters
(block
(expression_statement
(assignment
(identifier_connection) identifier... | Get a concrete branding
@branding_id: Id of the branding to fetch
@return Branding |
(module
(function_definition
(function_name__event_funcs) function_name__event_funcs
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_event) identifier_event
(type
(identifier_str) identifier_str
)type
)typed_parameter
)paramete... | Returns an Iterable of the functions subscribed to a event.
:param event: Name of the event.
:type event: str
:return: A iterable to do things with.
:rtype: Iterable |
(module
(function_definition
(function_name__api_itemvalue) function_name__api_itemvalue
(parameters
(identifier_self) identifier_self
(identifier_plugin) identifier_plugin
(identifier_item) identifier_item
(default_parameter
(identifier_value) identifier_value
(None) N... | Father method for _api_item and _api_value. |
(module
(function_definition
(function_name_nonoverlap) function_name_nonoverlap
(parameters
(identifier_item_a) identifier_item_a
(identifier_time_a) identifier_time_a
(identifier_item_b) identifier_item_b
(identifier_time_b) identifier_time_b
(identifier_max_value) identifier_m... | Percentage of pixels in each object that do not overlap with the other object
Args:
item_a: STObject from the first set in ObjectMatcher
time_a: Time integer being evaluated
item_b: STObject from the second set in ObjectMatcher
time_b: Time integer being evaluated
max_value:... |
(module
(function_definition
(function_name_focus_first_child) function_name_focus_first_child
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_w) identifier_w
(identifier_... | move focus to first child of currently focussed one |
(module
(function_definition
(function_name_languages) function_name_languages
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_la... | Populate the ``languages`` key. |
(module
(function_definition
(function_name_rightStatus) function_name_rightStatus
(parameters
(identifier_self) identifier_self
(identifier_sheet) identifier_sheet
)parameters
(block
(expression_statement
(string_'Compose right side of status bar.') string_'Compose right sid... | Compose right side of status bar. |
(module
(function_definition
(function_name_get_consensus_at) function_name_get_consensus_at
(parameters
(identifier_self) identifier_self
(identifier_block_id) identifier_block_id
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_qu... | Get the consensus hash at a given block.
Return the consensus hash if we have one for this block.
Return None if we don't |
(module
(function_definition
(function_name_search) function_name_search
(parameters
(identifier_self) identifier_self
(identifier_params) identifier_params
(default_parameter
(identifier_standardize) identifier_standardize
(False) False
)default_parameter
)paramete... | Get a list of person objects for the given search params.
:param params: Dictionary specifying the query parameters
:param standardize: Whether to standardize names and other features,
currently disabled for backwards compatibility. Currently
standardizes names, lowercases email... |
(module
(function_definition
(function_name_bs_values_df) function_name_bs_values_df
(parameters
(identifier_run_list) identifier_run_list
(identifier_estimator_list) identifier_estimator_list
(identifier_estimator_names) identifier_estimator_names
(identifier_n_simulate) identifier_n_... | Computes a data frame of bootstrap resampled values.
Parameters
----------
run_list: list of dicts
List of nested sampling run dicts.
estimator_list: list of functions
Estimators to apply to runs.
estimator_names: list of strs
Name of each func in estimator_list.
n_simul... |
(module
(function_definition
(function_name_createThreeObjects) function_name_createThreeObjects
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_objectA) identifier_objectA
(call
(identifier_zip) identifier_zip
(arg... | Helper function that creates a set of three objects used for basic
experiments.
:return: (list(list(tuple)) List of lists of feature / location pairs. |
(module
(function_definition
(function_name__update_quoting_state) function_name__update_quoting_state
(parameters
(identifier_self) identifier_self
(identifier_ch) identifier_ch
)parameters
(block
(expression_statement
(assignment
(identifier_is_escaped) identifier... | Update self.quotes and self.escaped
:param ch: str, current character
:return: ch if it was not used to update quoting state, else '' |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(t... | Run marshalling for the specified mapper_class.
Supports both .marshal and .many().marshal Kim interfaces. Handles errors raised
during marshalling and automatically returns a HTTP error response.
:param data: Data to be marshaled.
:returns: Marshaled object according to mapper config... |
(module
(function_definition
(function_name_path_from_row_pks) function_name_path_from_row_pks
(parameters
(identifier_row) identifier_row
(identifier_pks) identifier_pks
(identifier_use_rowid) identifier_use_rowid
(default_parameter
(identifier_quote) identifier_quote
... | Generate an optionally URL-quoted unique identifier
for a row from its primary keys. |
(module
(function_definition
(function_name_get_int) function_name_get_int
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(call
... | Read the next token and interpret it as an integer.
@raises dns.exception.SyntaxError:
@rtype: int |
(module
(function_definition
(function_name_watch) function_name_watch
(parameters
(identifier_self) identifier_self
(identifier_keys) identifier_keys
(identifier_on_watch) identifier_on_watch
(default_parameter
(identifier_filters) identifier_filters
(None) None
... | Watch one or more keys or key sets and invoke a callback.
Watch watches for events happening or that have happened. The entire event history
can be watched starting from the last compaction revision.
:param keys: Watch these keys / key sets.
:type keys: list of bytes or list of instanc... |
(module
(function_definition
(function_name__checkReturnTo) function_name__checkReturnTo
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(identifier_return_to) identifier_return_to
)parameters
(block
(try_statement
(block
... | Check an OpenID message and its openid.return_to value
against a return_to URL from an application. Return True on
success, False on failure. |
(module
(function_definition
(function_name_structure_repr) function_name_structure_repr
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(binary_operator
(string_'{%s}... | Return the LLVM IR for the structure representation |
(module
(function_definition
(function_name_in_group) function_name_in_group
(parameters
(identifier_self) identifier_self
(identifier_group) identifier_group
(default_parameter
(identifier_dn) identifier_dn
(False) False
)default_parameter
)parameters
(block
... | Get whether or not the bound CSH LDAP member object is part of a
group.
Arguments:
group -- the CSHGroup object (or distinguished name) of the group to
check membership for |
(module
(function_definition
(function_name_set_pending_symbol) function_name_set_pending_symbol
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_pending_symbol) identifier_pending_symbol
(None) None
)default_parameter
)parameters
(block
... | Sets the context's ``pending_symbol`` with the given unicode sequence and resets the context's ``value``.
If the input is None, an empty :class:`CodePointArray` is used. |
(module
(function_definition
(function_name_write_params) function_name_write_params
(parameters
(identifier_path) identifier_path
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_dicts) identifier_dicts
... | Write parameters to file, so that it's readable by read_params.
Uses INI file format. |
(module
(function_definition
(function_name_check_for_stalled_tasks) function_name_check_for_stalled_tasks
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_api) identifier_api
(identifier_models) identifier_models
(identifier_ta... | Check for tasks that are no longer sending a heartbeat |
(module
(function_definition
(function_name_all) function_name_all
(parameters
(identifier_self) identifier_self
(identifier_paths) identifier_paths
(default_parameter
(identifier_access) identifier_access
(None) None
)default_parameter
)parameters
(block
... | Verify list of paths |
(module
(function_definition
(function_name_expanduser) function_name_expanduser
(parameters
(identifier_path) identifier_path
)parameters
(block
(if_statement
(call
(attribute
(identifier_hdfs_fs) identifier_hdfs_fs
(identifier_default_is_local) i... | Replace initial ``~`` or ``~user`` with the user's home directory.
**NOTE:** if the default file system is HDFS, the ``~user`` form is
expanded regardless of the user's existence. |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_json_obj) identifier_json_obj
(dictionary
(pair
(str... | Generate a JSON serialization for the run state object.
Returns
-------
Json-like object
Json serialization of model run state object |
(module
(function_definition
(function_name__has_argument) function_name__has_argument
(parameters
(identifier_func) identifier_func
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_inspect) id... | Test whether a function expects an argument.
:param func:
The function to be tested for existence of an argument. |
(module
(function_definition
(function_name_authInsert) function_name_authInsert
(parameters
(identifier_user) identifier_user
(identifier_role) identifier_role
(identifier_group) identifier_group
(identifier_site) identifier_site
)parameters
(block
(if_statement
... | Authorization function for general insert |
(module
(function_definition
(function_name_register_metric_descriptor) function_name_register_metric_descriptor
(parameters
(identifier_self) identifier_self
(identifier_oc_md) identifier_oc_md
)parameters
(block
(expression_statement
(assignment
(identifier_metric... | Register a metric descriptor with stackdriver. |
(module
(function_definition
(function_name_group) function_name_group
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Group inherited from items") string_"Group inherited from items"
)expression_statement
(if_statement
... | Group inherited from items |
(module
(function_definition
(function_name_triads) function_name_triads
(parameters
(identifier_key) identifier_key
)parameters
(block
(if_statement
(call
(attribute
(identifier__triads_cache) identifier__triads_cache
(identifier_has_key) identifi... | Return all the triads in key.
Implemented using a cache. |
(module
(function_definition
(function_name__create_storage_profile) function_name__create_storage_profile
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_image_publisher) id... | Create the storage profile for the instance.
Image reference can be a custom image name or a published urn. |
(module
(function_definition
(function_name_install_extension) function_name_install_extension
(parameters
(identifier_conn) identifier_conn
(typed_parameter
(identifier_extension) identifier_extension
(type
(identifier_str) identifier_str
)type
)typed_param... | Install Postgres extension. |
(module
(function_definition
(function_name___get_jp) function_name___get_jp
(parameters
(identifier_self) identifier_self
(identifier_extractor_processor) identifier_extractor_processor
(default_parameter
(identifier_sub_output) identifier_sub_output
(None) None
)defau... | Tries to get name from ExtractorProcessor to filter on first.
Otherwise falls back to filtering based on its metadata |
(module
(function_definition
(function_name_roll) function_name_roll
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_shifts) identifier_shifts
(None) None
)default_parameter
(default_parameter
(identifier_roll_coords) identifier_roll... | Roll this array by an offset along one or more dimensions.
Unlike shift, roll may rotate all variables, including coordinates
if specified. The direction of rotation is consistent with
:py:func:`numpy.roll`.
Parameters
----------
roll_coords : bool
Indicates... |
(module
(function_definition
(function_name_append_surface) function_name_append_surface
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_surface) identifier_surface
(default_parameter
(identifier_alpha) identifier_alpha
(float... | Append Cairo surface as new layer on top of existing layers.
Args
----
name (str) : Name of layer.
surface (cairo.ImageSurface) : Surface to render.
alpha (float) : Alpha/transparency level in the range `[0, 1]`. |
(module
(function_definition
(function_name_resize) function_name_resize
(parameters
(identifier_self) identifier_self
(identifier_targ_sz) identifier_targ_sz
(default_parameter
(identifier_new_path) identifier_new_path
(string_'tmp') string_'tmp'
)default_parameter
... | Resizes all the images in the train, valid, test folders to a given size.
Arguments:
targ_sz (int): the target size
new_path (str): the path to save the resized images (default tmp)
resume (bool): if True, check for images in the DataSet that haven't been resized yet (useful if a previo... |
(module
(function_definition
(function_name_deploy) function_name_deploy
(parameters
(identifier_self) identifier_self
(identifier_machine) identifier_machine
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
... | Deploy service. |
(module
(function_definition
(function_name_query_all) function_name_query_all
(parameters
(default_parameter
(identifier_kind) identifier_kind
(string_'1') string_'1'
)default_parameter
(default_parameter
(identifier_by_count) identifier_by_count
(False) Fals... | Qeury all the categories, order by count or defined order. |
(module
(function_definition
(function_name_sample) function_name_sample
(parameters
(identifier_self) identifier_self
(identifier_fraction) identifier_fraction
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
(default_parameter
... | Create an SArray which contains a subsample of the current SArray.
Parameters
----------
fraction : float
Fraction of the rows to fetch. Must be between 0 and 1.
if exact is False (default), the number of rows returned is
approximately the fraction times the ... |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_unique_name) identifier_unique_name
(default_parameter
(identifier_domain_suffix) identifier_domain_suffix
(attribute
(identifier_value... | Create a new EnvironmentInstance
:param unicode unique_name: The unique_name
:param unicode domain_suffix: The domain_suffix
:returns: Newly created EnvironmentInstance
:rtype: twilio.rest.serverless.v1.service.environment.EnvironmentInstance |
(module
(function_definition
(function_name_findCampaigns) function_name_findCampaigns
(parameters
(identifier_ra) identifier_ra
(identifier_dec) identifier_dec
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_logger) identifie... | Returns a list of the campaigns that cover a given position.
Parameters
----------
ra, dec : float, float
Position in decimal degrees (J2000).
Returns
-------
campaigns : list of int
A list of the campaigns that cover the given position. |
(module
(function_definition
(function_name_get_aa_code) function_name_get_aa_code
(parameters
(identifier_aa_letter) identifier_aa_letter
)parameters
(block
(expression_statement
(assignment
(identifier_aa_code) identifier_aa_code
(None) None
)assignmen... | Get three-letter aa code if possible. If not, return None.
If three-letter code is None, will have to find this later from the filesystem.
Parameters
----------
aa_letter : str
One-letter amino acid code.
Returns
-------
aa_code : str, or None
Three-letter aa code. |
(module
(function_definition
(function_name_make_bubble_surface) function_name_make_bubble_surface
(parameters
(default_parameter
(identifier_dims) identifier_dims
(identifier_DEFAULT_DIMS) identifier_DEFAULT_DIMS
)default_parameter
(default_parameter
(identifier_repe... | Makes a surface from the product of sine functions on each axis.
Args:
dims (pair): the dimensions of the surface to create
repeat (int): the frequency of the waves is set to ensure this many
repetitions of the function
Returns:
surface: A surface. |
(module
(function_definition
(function_name_relpath) function_name_relpath
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cwd) identifier_cwd
(call
(attribute
(identifier_s... | Return this path as a relative path,
based from the current working directory. |
(module
(function_definition
(function_name_process_template) function_name_process_template
(parameters
(identifier_self) identifier_self
(identifier_sql) identifier_sql
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
... | Processes a sql template
>>> sql = "SELECT '{{ datetime(2017, 1, 1).isoformat() }}'"
>>> process_template(sql)
"SELECT '2017-01-01T00:00:00'" |
(module
(function_definition
(function_name__update_feature_log_prob) function_name__update_feature_log_prob
(parameters
(identifier_self) identifier_self
(identifier_alpha) identifier_alpha
)parameters
(block
(expression_statement
(assignment
(identifier_smoothed_f... | Apply smoothing to raw counts and recompute log probabilities |
(module
(function_definition
(function_name__options) function_name__options
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__options_cache... | Returns a raw options object
:rtype: dict |
(module
(function_definition
(function_name__output) function_name__output
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(if_statement
(call
(attribute
(call
(attribute
(identif... | Host header should always be first |
(module
(function_definition
(function_name_format_explanation) function_name_format_explanation
(parameters
(identifier_explanation) identifier_explanation
(default_parameter
(identifier_original_msg) identifier_original_msg
(None) None
)default_parameter
)parameters
... | This formats an explanation
Normally all embedded newlines are escaped, however there are
three exceptions: \n{, \n} and \n~. The first two are intended
cover nested explanations, see function and attribute explanations
for examples (.visit_Call(), visit_Attribute()). The last one is
for when one... |
(module
(function_definition
(function_name_packageGraph) function_name_packageGraph
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_packagelevel) identifier_packagelevel
(None) None
)default_parameter
)parameters
(block
(expression_... | Convert a module graph to a package graph. |
(module
(function_definition
(function_name_register_path) function_name_register_path
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_modified_time) identifier_modified_time
(None) None
)default_parameter
... | Registers given path.
:param path: Path name.
:type path: unicode
:param modified_time: Custom modified time.
:type modified_time: int or float
:return: Method success.
:rtype: bool |
(module
(function_definition
(function_name_change_and_save) function_name_change_and_save
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_update_only_changed_fields) identifier_update_only_changed_fields
(False) False
)default_parameter
(di... | Changes a given `changed_fields` on each object in the queryset, saves objects
and returns the changed objects in the queryset. |
(module
(function_definition
(function_name_build_pages) function_name_build_pages
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_root) identifier_root
(identifier__) identifier__
(identifier_f... | Iterate over the pages_dir and build the pages |
(module
(function_definition
(function_name__pass_variable) function_name__pass_variable
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pass_var) identifier_pass_var
(list
)list
)a... | Return enviroment variables |
(module
(function_definition
(function_name_getAllSecrets) function_name_getAllSecrets
(parameters
(default_parameter
(identifier_version) identifier_version
(string_"") string_""
)default_parameter
(default_parameter
(identifier_region) identifier_region
(Non... | fetch and decrypt all secrets |
(module
(function_definition
(function_name_is_gentarget) function_name_is_gentarget
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifi... | Predicate which determines whether the target in question is relevant to this codegen task.
E.g., the JaxbGen task considers JaxbLibrary targets to be relevant, and nothing else.
:API: public
:param Target target: The target to check.
:return: True if this class can generate code for the given target... |
(module
(function_definition
(function_name__parse_throttle) function_name__parse_throttle
(parameters
(identifier_self) identifier_self
(identifier_tablename) identifier_tablename
(identifier_throttle) identifier_throttle
)parameters
(block
(expression_statement
(assig... | Parse a 'throttle' statement and return a RateLimit |
(module
(function_definition
(function_name__reset) function_name__reset
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_opera... | Reset a tough connection.
Rollback if forced or the connection was in a transaction. |
(module
(function_definition
(function_name_perimeter) function_name_perimeter
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__is_completely_masked) identifier__is_completel... | The total perimeter of the source segment, approximated lines
through the centers of the border pixels using a 4-connectivity.
If any masked pixels make holes within the source segment, then
the perimeter around the inner hole (e.g. an annulus) will also
contribute to the total perimete... |
(module
(function_definition
(function_name_make_json_formatter) function_name_make_json_formatter
(parameters
(identifier_graph) identifier_graph
)parameters
(block
(return_statement
(dictionary
(pair
(string_"()") string_"()"
(attribute
... | Create the default json formatter. |
(module
(function_definition
(function_name_vault_file) function_name_vault_file
(parameters
(identifier_env) identifier_env
(identifier_default) identifier_default
)parameters
(block
(expression_statement
(assignment
(identifier_home) identifier_home
(con... | The path to a misc Vault file
This function will check for the env override on a file
path, compute a fully qualified OS appropriate path to
the desired file and return it if it exists. Otherwise
returns None |
(module
(function_definition
(function_name_parse_routing_info) function_name_parse_routing_info
(parameters
(identifier_cls) identifier_cls
(identifier_records) identifier_records
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_l... | Parse the records returned from a getServers call and
return a new RoutingTable instance. |
(module
(function_definition
(function_name_average_sharded_losses) function_name_average_sharded_losses
(parameters
(identifier_sharded_losses) identifier_sharded_losses
)parameters
(block
(expression_statement
(assignment
(identifier_losses) identifier_losses
... | Average losses across datashards.
Args:
sharded_losses: list<dict<str loss_name, Tensor loss>>. The loss
can be a single Tensor or a 2-tuple (numerator and denominator).
Returns:
losses: dict<str loss_name, Tensor avg_loss> |
(module
(function_definition
(function_name_load_scene) function_name_load_scene
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(assignment
(identifier_scene) identifier_scene
(call
... | Load scene from json. |
(module
(function_definition
(function_name_get_errors) function_name_get_errors
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(list_comprehension
(dictionary
(pair
(attribute
(identifier_cr) i... | If there were any business errors fetching data for this property,
returns the error messages.
Returns:
string - the error message, or None if there was no error. |
(module
(function_definition
(function_name_delete_multireddit) function_name_delete_multireddit
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pat... | Delete a Multireddit.
Any additional parameters are passed directly into
:meth:`~praw.__init__.BaseReddit.request` |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(dictionary_comprehension
(pair
... | Update the user's details on Todoist.
This method must be called to register any local attribute changes
with Todoist.
>>> from pytodoist import todoist
>>> user = todoist.login('john.doe@gmail.com', 'password')
>>> user.full_name = 'John Smith'
>>> # At this point Todo... |
(module
(function_definition
(function_name_enable_key) function_name_enable_key
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"This command wil... | Enable an existing API Key. |
(module
(function_definition
(function_name_upload_keys) function_name_upload_keys
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_device_keys) identifier_device_keys
(None) None
)default_parameter
(default_parameter
(identifier_one_... | Publishes end-to-end encryption keys for the device.
Said device must be the one used when logging in.
Args:
device_keys (dict): Optional. Identity keys for the device. The required
keys are:
| user_id (str): The ID of the user the device belongs to. Must m... |
(module
(function_definition
(function_name_form) function_name_form
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(default_parameter
(identifier_type_) identifier_type_
(attribute
(identifier_Type) identifier_Type
(identifi... | Define form parameter. |
(module
(function_definition
(function_name_answer_approval) function_name_answer_approval
(parameters
(identifier_self) identifier_self
(identifier_issue_id_or_key) identifier_issue_id_or_key
(identifier_approval_id) identifier_approval_id
(identifier_decision) identifier_decision
... | Answer a pending approval
:param issue_id_or_key: str
:param approval_id: str
:param decision: str
:return: |
(module
(function_definition
(function_name_html_to_text) function_name_html_to_text
(parameters
(identifier_html) identifier_html
(default_parameter
(identifier_base_url) identifier_base_url
(string_'') string_''
)default_parameter
(default_parameter
(identifie... | Convert a HTML mesasge to plain text. |
(module
(function_definition
(function_name_importTTX) function_name_importTTX
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_statement
(dotted_name
(identifier_os) identifier_os
)dotted_name
)import_statement
(import_statemen... | Merge TTX files from data directory "com.github.fonttools.ttx"
**This should not be called externally.** Subclasses
may override this method to handle the bounds creation
in a different way if desired. |
(module
(function_definition
(function_name_FoldValue) function_name_FoldValue
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) id... | Folds the data type into a value.
Args:
value (object): value.
Returns:
object: folded value.
Raises:
ValueError: if the data type definition cannot be folded into the value. |
(module
(function_definition
(function_name_bounding_ellipses) function_name_bounding_ellipses
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(id... | Compute the semimajor axis of the two ellipses that bound the
annulus where integrations take place.
Returns
-------
sma1, sma2 : float
The smaller and larger values of semimajor axis length that
define the annulus bounding ellipses. |
(module
(function_definition
(function_name_vectorize_utterance_ohe) function_name_vectorize_utterance_ohe
(parameters
(identifier_self) identifier_self
(identifier_utterance) identifier_utterance
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identi... | Take in a tokenized utterance and transform it into a sequence of one-hot vectors |
(module
(function_definition
(function_name_add_data) function_name_add_data
(parameters
(identifier_self) identifier_self
(identifier_rawdata) identifier_rawdata
)parameters
(block
(for_statement
(identifier_data) identifier_data
(identifier_rawdata) identifier_rawda... | Add data to given room's state |
(module
(function_definition
(function_name_get_high_water_mark) function_name_get_high_water_mark
(parameters
(identifier_self) identifier_self
(identifier_mark_type) identifier_mark_type
(default_parameter
(identifier_obstory_name) identifier_obstory_name
(None) None
... | Retrieves the high water mark for a given obstory, defaulting to the current installation ID
:param string mark_type:
The type of high water mark to set
:param string obstory_name:
The obstory ID to check for, or the default installation ID if not specified
:return:
... |
(module
(function_definition
(function_name_active_serving_watcher) function_name_active_serving_watcher
(parameters
(identifier_backend) identifier_backend
(identifier_kitchen) identifier_kitchen
(identifier_period) identifier_period
)parameters
(block
(expression_statement
... | Watches all cooking Recipes in a Kitchen
Provide the kitchen name as an argument or be in a Kitchen folder. |
(module
(function_definition
(function_name_register_phonon_task) function_name_register_phonon_task
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) ide... | Register a phonon task. |
(module
(function_definition
(function_name_set_blocking) function_name_set_blocking
(parameters
(identifier_fd) identifier_fd
(default_parameter
(identifier_blocking) identifier_blocking
(True) True
)default_parameter
)parameters
(block
(expression_statement
... | Set the given file-descriptor blocking or non-blocking.
Returns the original blocking status. |
(module
(function_definition
(function_name_posttrans_hook) function_name_posttrans_hook
(parameters
(identifier_conduit) identifier_conduit
)parameters
(block
(if_statement
(comparison_operator
(string_'SALT_RUNNING') string_'SALT_RUNNING'
(attribute
... | Hook after the package installation transaction.
:param conduit:
:return: |
(module
(function_definition
(function_name_create_magic_packet) function_name_create_magic_packet
(parameters
(identifier_macaddress) identifier_macaddress
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
... | Create a magic packet.
A magic packet is a packet that can be used with the for wake on lan
protocol to wake up a computer. The packet is constructed from the
mac address given as a parameter.
Args:
macaddress (str): the mac address that should be parsed into a
magic packet. |
(module
(function_definition
(function_name_parse_chains) function_name_parse_chains
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_chains) identifier_chains
(call
(identifier_odict) ide... | Parse the chain definitions. |
(module
(function_definition
(function_name_stress) function_name_stress
(parameters
(identifier_ref_cds) identifier_ref_cds
(identifier_est_cds) identifier_est_cds
)parameters
(block
(expression_statement
(assignment
(identifier_ref_dists) identifier_ref_dists
... | Kruskal's stress |
(module
(function_definition
(function_name_response) function_name_response
(parameters
(identifier_self) identifier_self
(identifier_component_id) identifier_component_id
(default_parameter
(identifier_component) identifier_component
(None) None
)default_parameter
... | Add a response which can be referenced.
:param str component_id: ref_id to use as reference
:param dict component: response fields
:param dict kwargs: plugin-specific arguments |
(module
(function_definition
(function_name_DomainFactory) function_name_DomainFactory
(parameters
(identifier_domain_name) identifier_domain_name
(identifier_cmds) identifier_cmds
)parameters
(block
(expression_statement
(assignment
(identifier_klass) identifier_kl... | Dynamically create Domain class and set it's methods. |
(module
(function_definition
(function_name_zpopmax) function_name_zpopmax
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_count) identifier_count
(None) None
)default_parameter
)parameters
(block
... | Remove and return up to ``count`` members with the highest scores
from the sorted set ``name``. |
(module
(function_definition
(function_name_restart) function_name_restart
(parameters
(identifier_request) identifier_request
)parameters
(block
(function_definition
(function_name_wait_and_restart) function_name_wait_and_restart
(parameters
)parameters
(bl... | Returns OK, then waits approximately 1 second and restarts container |
(module
(function_definition
(function_name_com_google_fonts_check_glyf_unused_data) function_name_com_google_fonts_check_glyf_unused_data
(parameters
(identifier_ttFont) identifier_ttFont
)parameters
(block
(try_statement
(block
(expression_statement
(assignm... | Is there any unused data at the end of the glyf table? |
(module
(function_definition
(function_name_create_with_dst_resource_provisioning) function_name_create_with_dst_resource_provisioning
(parameters
(identifier_cls) identifier_cls
(identifier_cli) identifier_cli
(identifier_src_resource_id) identifier_src_resource_id
(identifier_dst_res... | Create a replication session along with destination resource
provisioning.
:param cli: the rest cli.
:param src_resource_id: id of the replication source, could be
lun/fs/cg.
:param dst_resource_config: `UnityResourceConfig` object. The user
chosen config for des... |
(module
(function_definition
(function_name_render_tree) function_name_render_tree
(parameters
(identifier_root) identifier_root
(identifier_child_func) identifier_child_func
(default_parameter
(identifier_prune) identifier_prune
(integer_0) integer_0
)default_parameter... | Render a tree of nodes into an ASCII tree view.
:Parameters:
- `root`: the root node of the tree
- `child_func`: the function called to get the children of a node
- `prune`: don't visit the same node twice
- `margin`: the format of the left margin to use for children ... |
(module
(function_definition
(function_name_setups) function_name_setups
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)exp... | Generates and returns all the setups according to the parameter search space.
:return: the list of configured objects (of type JavaObject)
:rtype: list |
(module
(function_definition
(function_name_solution_violations) function_name_solution_violations
(parameters
(identifier_solution) identifier_solution
(identifier_events) identifier_events
(identifier_slots) identifier_slots
)parameters
(block
(expression_statement
(a... | Take a solution and return a list of violated constraints
Parameters
----------
solution: list or tuple
a schedule in solution form
events : list or tuple
of resources.Event instances
slots : list or tuple
of resources.Slot instances
Returns
... |
(module
(function_definition
(function_name_temp_path) function_name_temp_path
(parameters
(default_parameter
(identifier_file_name) identifier_file_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier... | Gets a temp path.
Kwargs:
file_name (str) : if file name is specified, it gets appended to the temp dir.
Usage::
temp_file_path = temp_path("myfile")
copyfile("myfile", temp_file_path) # copies 'myfile' to '/tmp/myfile' |
(module
(function_definition
(function_name_flush) function_name_flush
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_key) identifier_key
(call
(attribute
(attribute
(identifier_self) identifie... | Ensure all remaining buffers are written. |
(module
(function_definition
(function_name_screenshot) function_name_screenshot
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_b64data) identifier_b64data
(attribute
(call
... | Take screenshot with session check
Returns:
PIL.Image |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_service) identifier_service
(None) None
)default_parameter
(default_parameter
(identifier_hostport) identifier_hostp... | Loads the Thrift file at the specified path.
The file is compiled in-memory and a Python module containing the result
is returned. It may be used with ``TChannel.thrift``. For example,
.. code-block:: python
from tchannel import TChannel, thrift
# Load our server's interface definition.
... |
(module
(function_definition
(function_name_fix_facets) function_name_fix_facets
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_facets) identifier_facets
(attribute
(identifier_self) ide... | This function convert date_histogram facets to datetime |
(module
(function_definition
(function_name_convert_units_to_base_units) function_name_convert_units_to_base_units
(parameters
(identifier_units) identifier_units
)parameters
(block
(expression_statement
(assignment
(identifier_total_factor) identifier_total_factor
... | Convert a set of units into a set of "base" units.
Returns a 2-tuple of `factor, new_units`. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.