sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_set_secondary_state) function_name_set_secondary_state
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_v... | Sets the value for 'secondary_state'. |
(module
(function_definition
(function_name_wait) function_name_wait
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_must_be_child) identifier_must_be_child
(False) False
)default_parameter
)parameters
(block
(expression_statement
... | Wait for a possible asynchronous value to complete. |
(module
(function_definition
(function_name_new_file) function_name_new_file
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_track_idx) identifier_track_idx
(default_parameter
(identifier_copy_file) identifier_copy_file
(False... | Adds a new audio file to the corpus with the given data.
Parameters:
path (str): Path of the file to add.
track_idx (str): The id to associate the file-track with.
copy_file (bool): If True the file is copied to the data set folder, otherwise the given
... |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_self) identifier_self
(identifier_others) identifier_others
(identifier_merge_conditions) identifier_merge_conditions
(default_parameter
(identifier_common_ancestor) identifier_common... | Merge this guy with another SimAbstractMemory instance |
(module
(function_definition
(function_name_detect_complexity) function_name_detect_complexity
(parameters
(identifier_bam_in) identifier_bam_in
(identifier_genome) identifier_genome
(identifier_out) identifier_out
)parameters
(block
(if_statement
(not_operator
... | genome coverage of small RNA |
(module
(function_definition
(function_name_write_length_and_key) function_name_write_length_and_key
(parameters
(identifier_fp) identifier_fp
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_written) identifier_wr... | Helper to write descriptor key. |
(module
(function_definition
(function_name_sorted_product_set) function_name_sorted_product_set
(parameters
(identifier_array_a) identifier_array_a
(identifier_array_b) identifier_array_b
)parameters
(block
(return_statement
(subscript
(call
(attribute
... | Compute the product set of array_a and array_b and sort it. |
(module
(function_definition
(function_name_upload) function_name_upload
(parameters
(identifier_target) identifier_target
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
... | Upload the release to a pypi server.
TODO: Make sure the git directory is clean before allowing a release.
Args:
target (str):
pypi target as defined in ~/.pypirc |
(module
(function_definition
(function_name_generate_checks) function_name_generate_checks
(parameters
(identifier_fact) identifier_fact
)parameters
(block
(expression_statement
(yield
(call
(identifier_TypeCheck) identifier_TypeCheck
(argument_lis... | Given a fact, generate a list of Check objects for checking it. |
(module
(function_definition
(function_name_persistent_load) function_name_persistent_load
(parameters
(identifier_self) identifier_self
(identifier_pid) identifier_pid
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifi... | Reconstruct a GLC object using the persistent ID.
This method should not be used externally. It is required by the unpickler super class.
Parameters
----------
pid : The persistent ID used in pickle file to save the GLC object.
Returns
----------
The GLC o... |
(module
(function_definition
(function_name__make_context) function_name__make_context
(parameters
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identif... | Create the namespace of items already pre-imported when using shell.
Accepts a dict with the desired namespace as the key, and the object as the
value. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_EngagementContextContext) identifier_EngagementContextContext
(argument_list
(attr... | Constructs a EngagementContextContext
:returns: twilio.rest.studio.v1.flow.engagement.engagement_context.EngagementContextContext
:rtype: twilio.rest.studio.v1.flow.engagement.engagement_context.EngagementContextContext |
(module
(function_definition
(function_name_format_BLB) function_name_format_BLB
(parameters
)parameters
(block
(expression_statement
(call
(identifier_rc) identifier_rc
(argument_list
(string_"figure") string_"figure"
(keyword_argument
... | Sets some formatting options in Matplotlib. |
(module
(function_definition
(function_name_described_as) function_name_described_as
(parameters
(identifier_self) identifier_self
(identifier_description) identifier_description
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(bloc... | Specify a custom message for the matcher |
(module
(function_definition
(function_name_filter_by_device_owner) function_name_filter_by_device_owner
(parameters
(identifier_query) identifier_query
(default_parameter
(identifier_device_owners) identifier_device_owners
(None) None
)default_parameter
)parameters
(... | Filter ports by device_owner
Either filter using specified device_owner or using the list of all
device_owners supported and unsupported by the arista ML2 plugin |
(module
(function_definition
(function_name__order_params) function_name__order_params
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_has_signature) identifier_has_sign... | Convert params to list with signature as last element
:param data:
:return: |
(module
(function_definition
(function_name_dupstack) function_name_dupstack
(parameters
(identifier_newtask) identifier_newtask
)parameters
(block
(expression_statement
(assignment
(identifier_stack) identifier_stack
(call
(attribute
(... | Duplicate the current provenance stack onto another task |
(module
(function_definition
(function_name_get_model) function_name_get_model
(parameters
(identifier_app_dot_model) identifier_app_dot_model
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
... | Returns Django model class corresponding to passed-in `app_dot_model`
string. This is helpful for preventing circular-import errors in a Django
project.
Positional Arguments:
=====================
- `app_dot_model`: Django's `<app_name>.<model_name>` syntax. For example,
the ... |
(module
(function_definition
(function_name_aliasstr) function_name_aliasstr
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)... | Concatenate the aliases tuple into a string. |
(module
(function_definition
(function_name_make_request_fn) function_name_make_request_fn
(parameters
)parameters
(block
(if_statement
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_cloud_mlengine_model_name) identifier_cloud_mlengine_model_name
)... | Returns a request function. |
(module
(function_definition
(function_name__randomString) function_name__randomString
(parameters
)parameters
(block
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(generator_exp... | Random string for message signing |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(ident... | Attempts to move the node using the selected target and
position.
If an invalid move is attempted, the related error message will
be added to the form's non-field errors and the error will be
re-raised. Callers should attempt to catch ``InvalidNode`` to
redisplay the form with t... |
(module
(function_definition
(function_name__onOffset) function_name__onOffset
(parameters
(identifier_self) identifier_self
(identifier_dt) identifier_dt
(identifier_businesshours) identifier_businesshours
)parameters
(block
(if_statement
(comparison_operator
... | Slight speedups using calculated values. |
(module
(function_definition
(function_name_OnTogglePlay) function_name_OnTogglePlay
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(a... | Toggles the video status between play and hold |
(module
(function_definition
(function_name_add_item) function_name_add_item
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | Add new item to model
Each keyword argument is passed to the :func:Item
factory function. |
(module
(function_definition
(function_name_read_packets) function_name_read_packets
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(attribute
(identifier_self) identifier_self
(identifier_running) identifier_running
)a... | Read packets from the socket and parse them |
(module
(function_definition
(function_name__lazy_listen) function_name__lazy_listen
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_all) identifier_all
(argument_list
(list
(attribute
... | Ensures that the listener task only runs when actually needed.
This function is a no-op if any of the preconditions is not met.
Preconditions are:
* The application is running (self._loop is set)
* The task is not already running
* There are subscriptions: either pending, or act... |
(module
(function_definition
(function_name__write_gen_model_stats) function_name__write_gen_model_stats
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_iteration) identifier_iteration
(type
(identifier_int) identifier_int
)type
)t... | Writes gradient statistics for generator to Tensorboard. |
(module
(function_definition
(function_name_formatall) function_name_formatall
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kargs) identifier_kargs
)di... | Add-on method for fits returned by chained_nonlinear_fit. |
(module
(function_definition
(function_name__timeout_to_float) function_name__timeout_to_float
(parameters
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)parameters
(block
(if_statement
(comparison_operator
(identifier_timeout) identifier... | Convert timeout to float.
Return None if timeout is None, 0 or 0.0. timeout=None disables timeouts in
Requests. |
(module
(function_definition
(function_name_get_features) function_name_get_features
(parameters
(identifier_cls) identifier_cls
(identifier_entry) identifier_entry
)parameters
(block
(expression_statement
(assignment
(identifier_features) identifier_features
... | get list of `models.Feature` from XML node entry
:param entry: XML node entry
:return: list of :class:`pyuniprot.manager.models.Feature` |
(module
(function_definition
(function_name_parts) function_name_parts
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictiona... | Retrieve parts belonging to this activity.
Without any arguments it retrieves the Instances related to this task only.
This call only returns the configured properties in an activity. So properties that are not configured
are not in the returned parts.
See :class:`pykechain.Client.par... |
(module
(function_definition
(function_name_setEditorData) function_name_setEditorData
(parameters
(identifier_self) identifier_self
(identifier_spinBox) identifier_spinBox
(identifier_index) identifier_index
)parameters
(block
(if_statement
(call
(attribute
... | Sets the data to be displayed and edited by the editor from the data model item specified by the model index.
Args:
spinBox (BigIntSpinbox): editor widget.
index (QModelIndex): model data index. |
(module
(function_definition
(function_name_LockRetryWrapper) function_name_LockRetryWrapper
(parameters
(identifier_self) identifier_self
(identifier_subject) identifier_subject
(default_parameter
(identifier_retrywrap_timeout) identifier_retrywrap_timeout
(integer_1) intege... | Retry a DBSubjectLock until it succeeds.
Args:
subject: The subject which the lock applies to.
retrywrap_timeout: How long to wait before retrying the lock.
retrywrap_max_timeout: The maximum time to wait for a retry until we
raise.
blocking: If False, raise on first lock failure.
... |
(module
(function_definition
(function_name_load_plugins) function_name_load_plugins
(parameters
(typed_parameter
(identifier_plugin_dir) identifier_plugin_dir
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_... | Find all non-hidden modules or packages in a given directory,
and import them with the given module prefix.
:param plugin_dir: plugin directory to search
:param module_prefix: module prefix used while importing
:return: number of plugins successfully loaded |
(module
(function_definition
(function_name_get_text) function_name_get_text
(parameters
(identifier_nodelist) identifier_nodelist
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(list
)list
)assignment
... | Get the value from a text node. |
(module
(function_definition
(function_name_set_idle_priority) function_name_set_idle_priority
(parameters
(default_parameter
(identifier_pid) identifier_pid
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identi... | Puts a process in the idle io priority class.
If pid is omitted, applies to the current process. |
(module
(function_definition
(function_name_merge_context) function_name_merge_context
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_src) identifier_src
(None) None
)default_parameter
)parameters
(block
(if_statement
(compa... | Merges context from this instance with src. |
(module
(function_definition
(function_name_draw_screen) function_name_draw_screen
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identif... | Render curses screen |
(module
(function_definition
(function_name_get_python) function_name_get_python
(parameters
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
... | Determine the path to the virtualenv python |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_resource) identifier_resource
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Add a resource change or an iterable collection of them.
Allows multiple resource_change objects for the same
resource (ie. URI) and preserves the order of addition. |
(module
(function_definition
(function_name_build_publish_pkt) function_name_build_publish_pkt
(parameters
(identifier_self) identifier_self
(identifier_mid) identifier_mid
(identifier_topic) identifier_topic
(identifier_payload) identifier_payload
(identifier_qos) identifier_qos... | Build PUBLISH packet. |
(module
(function_definition
(function_name_from_lal) function_name_from_lal
(parameters
(identifier_cls) identifier_cls
(identifier_lalts) identifier_lalts
(default_parameter
(identifier_copy) identifier_copy
(True) True
)default_parameter
)parameters
(block
... | Generate a new TimeSeries from a LAL TimeSeries of any type. |
(module
(function_definition
(function_name__sortValue_isMonospace) function_name__sortValue_isMonospace
(parameters
(identifier_font) identifier_font
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_font) identifier_font
(identif... | Returns 0 if the font is monospace.
Returns 1 if the font is not monospace. |
(module
(function_definition
(function_name_contains_group) function_name_contains_group
(parameters
(identifier_store) identifier_store
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Return True if the store contains a group at the given logical path. |
(module
(function_definition
(function_name__set_other) function_name__set_other
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(subscript
(attribute
(attribute
(identifier_self... | Sets other specific sections |
(module
(function_definition
(function_name_select_eep) function_name_select_eep
(parameters
(identifier_self) identifier_self
(identifier_rorg_func) identifier_rorg_func
(identifier_rorg_type) identifier_rorg_type
(default_parameter
(identifier_direction) identifier_direction
... | Set EEP based on FUNC and TYPE |
(module
(function_definition
(function_name_rewind) function_name_rewind
(parameters
(identifier_self) identifier_self
(identifier_count) identifier_count
)parameters
(block
(if_statement
(comparison_operator
(identifier_count) identifier_count
(attribute
... | Rewind index. |
(module
(function_definition
(function_name_minusExtras) function_name_minusExtras
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_isOpen) identifier_... | Return a new Filter that's equal to this one,
without extra terms that don't add meaning. |
(module
(function_definition
(function_name_func_dump) function_name_func_dump
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(call
... | Serialize user defined function. |
(module
(function_definition
(function_name_save_to_mat_file) function_name_save_to_mat_file
(parameters
(identifier_self) identifier_self
(identifier_parameter_space) identifier_parameter_space
(identifier_result_parsing_function) identifier_result_parsing_function
(identifier_filenam... | Return the results relative to the desired parameter space in the form
of a .mat file.
Args:
parameter_space (dict): dictionary containing
parameter/list-of-values pairs.
result_parsing_function (function): user-defined function, taking a
result d... |
(module
(function_definition
(function_name_compute_err) function_name_compute_err
(parameters
(identifier_self) identifier_self
(identifier_solution_y) identifier_solution_y
(identifier_coefficients) identifier_coefficients
)parameters
(block
(expression_statement
(ass... | Return an error value by finding the absolute difference for each
element in a list of solution-generated y-values versus expected values.
Compounds error by 50% for each negative coefficient in the solution.
solution_y: list of y-values produced by a solution
coefficients: list of p... |
(module
(function_definition
(function_name_set_probe_position) function_name_set_probe_position
(parameters
(identifier_self) identifier_self
(identifier_new_probe_position) identifier_new_probe_position
)parameters
(block
(if_statement
(comparison_operator
(identi... | Set the probe position, in normalized coordinates with origin at top left. |
(module
(function_definition
(function_name_get_info_consistent) function_name_get_info_consistent
(parameters
(identifier_self) identifier_self
(identifier_ndim) identifier_ndim
)parameters
(block
(if_statement
(comparison_operator
(identifier_ndim) identifier_ndim... | Returns the main meta-data information adapted to the supplied
image dimensionality.
It will try to resolve inconsistencies and other conflicts,
altering the information avilable int he most plausible way.
Parameters
----------
ndim : int
image's dimensional... |
(module
(function_definition
(function_name_clean_new_password2) function_name_clean_new_password2
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_password1) identifier_password1
(call
(a... | Check if passwords match and are valid. |
(module
(function_definition
(function_name_stemming_processor) function_name_stemming_processor
(parameters
(identifier_words) identifier_words
)parameters
(block
(expression_statement
(assignment
(identifier_stem) identifier_stem
(attribute
(call
... | Porter Stemmer word processor |
(module
(function_definition
(function_name_ray_triangle_candidates) function_name_ray_triangle_candidates
(parameters
(identifier_ray_origins) identifier_ray_origins
(identifier_ray_directions) identifier_ray_directions
(identifier_tree) identifier_tree
)parameters
(block
(exp... | Do broad- phase search for triangles that the rays
may intersect.
Does this by creating a bounding box for the ray as it
passes through the volume occupied by the tree
Parameters
------------
ray_origins: (m,3) float, ray origin points
ray_directions: (m,3) float, ray direction vect... |
(module
(function_definition
(function_name_generate_uuid4) function_name_generate_uuid4
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_list) identifier_list
)type
(block
(expression_statement
(assignment
(identifier_hexstr) iden... | Generate a list of parts of a UUID version 4 string.
Usually, these parts are concatenated together using dashes. |
(module
(function_definition
(function_name_create_network) function_name_create_network
(parameters
(identifier_userid) identifier_userid
(identifier_os_version) identifier_os_version
(identifier_network_info) identifier_network_info
)parameters
(block
(expression_statement
... | Create network device and configure network interface.
Input parameters:
:userid: USERID of the guest, last 8 if length > 8
:os_version: os version of the image file
:network_info: dict of network info |
(module
(function_definition
(function_name_is_dir) function_name_is_dir
(parameters
(identifier_dirname) identifier_dirname
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
... | Checks if a path is an actual directory that exists |
(module
(function_definition
(function_name_create_bwa_index_from_fasta_file) function_name_create_bwa_index_from_fasta_file
(parameters
(identifier_fasta_in) identifier_fasta_in
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)para... | Create a BWA index from an input fasta file.
fasta_in: the input fasta file from which to create the index
params: dict of bwa index specific paramters
This method returns a dictionary where the keys are the various
output suffixes (.amb, .ann, .bwt, .pac, .sa) and the values
are open file objects... |
(module
(function_definition
(function_name_close_alert) function_name_close_alert
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_api_key) identifier_api_key
(None) None
)def... | Close an alert in OpsGenie. It's a wrapper function for create_alert.
Example usage with Salt's requisites and other global state arguments
could be found above.
Required Parameters:
name
It will be used as alert's alias. If you want to use the close
functionality you must provide name... |
(module
(function_definition
(function_name_is_decimal) function_name_is_decimal
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(subscript
(identifier_DATA_TYPES) ident... | Determine if a data record is of the type float. |
(module
(function_definition
(function_name_get_hostname_text) function_name_get_hostname_text
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_hostname_text) ide... | Return hostname information from the Unix host. |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_timeout) identifier_timeout
(integer_90) integer_90
)default_parameter
(default_parameter
(identifier_with_deps) i... | Start the specified service.
.. warning::
You cannot start a disabled service in Windows. If the service is
disabled, it will be changed to ``Manual`` start.
Args:
name (str): The name of the service to start
timeout (int):
The time in seconds to wait for the servi... |
(module
(function_definition
(function_name_evalsha) function_name_evalsha
(parameters
(identifier_self) identifier_self
(identifier_digest) identifier_digest
(default_parameter
(identifier_keys) identifier_keys
(list
)list
)default_parameter
(default_para... | Execute a Lua script server side by its SHA1 digest. |
(module
(function_definition
(function_name_first_true) function_name_first_true
(parameters
(identifier_iterable) identifier_iterable
(default_parameter
(identifier_default) identifier_default
(False) False
)default_parameter
(default_parameter
(identifier_pred... | Returns the first true value in the iterable.
If no true value is found, returns *default*
If *pred* is not None, returns the first item
for which pred(item) is true. |
(module
(function_definition
(function_name_redirect) function_name_redirect
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_where) identifier_where
(type
(generic_type
(identifier_Optional) identifier_Optional
(t... | Convenience method for returning redirect responses.
:param where: A URL, endpoint, or config key name to redirect to.
:param default: A URL, endpoint, or config key name to redirect to if
``where`` is invalid.
:param override: explicitly redirect to a URL, endpoint, or ... |
(module
(function_definition
(function_name_link) function_name_link
(parameters
(identifier_self) identifier_self
(identifier_pid) identifier_pid
(identifier_to) identifier_to
)parameters
(block
(expression_statement
(call
(attribute
(identifier_s... | Link a local process to a possibly remote process.
Note: It is more idiomatic to call ``link`` directly on the bound Process
object instead.
When ``pid`` is linked to ``to``, the termination of the ``to`` process
(or the severing of its connection from the Process ``pid``) will result
in the local... |
(module
(function_definition
(function_name_write_seq_as_temp_fasta) function_name_write_seq_as_temp_fasta
(parameters
(identifier_seq) identifier_seq
)parameters
(block
(expression_statement
(assignment
(identifier_sr) identifier_sr
(call
(attribute... | Write a sequence as a temporary FASTA file
Args:
seq (str, Seq, SeqRecord): Sequence string, Biopython Seq or SeqRecord object
Returns:
str: Path to temporary FASTA file (located in system temporary files directory) |
(module
(function_definition
(function_name_set_value) function_name_set_value
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_... | Set value for a variable |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(identifier_sphinx) identifier_sphinx
)parameters
(block
(import_from_statement
(dotted_name
(identifier_flask) identifier_flask
)dotted_name
(dotted_name
(identif... | Setup Sphinx object. |
(module
(function_definition
(function_name_cor) function_name_cor
(parameters
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_y_true) identifier_y... | Compute Pearson correlation coefficient. |
(module
(function_definition
(function_name_pdf_saver) function_name_pdf_saver
(parameters
(identifier_filehandle) identifier_filehandle
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kw... | Uses werkzeug.FileStorage instance to save the converted image. |
(module
(function_definition
(function_name_get_default_storage_policy_of_datastore) function_name_get_default_storage_policy_of_datastore
(parameters
(identifier_profile_manager) identifier_profile_manager
(identifier_datastore) identifier_datastore
)parameters
(block
(expression_st... | Returns the default storage policy reference assigned to a datastore.
profile_manager
Reference to the profile manager.
datastore
Reference to the datastore. |
(module
(function_definition
(function_name_on_delete) function_name_on_delete
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(for_statement
(identifier_tnode) identifier_tnode
(attribute
(identifier_node) ... | Delete statement. |
(module
(function_definition
(function_name_to_op) function_name_to_op
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__adds) identifier__adds
... | Extracts the modification operation from the Hll.
:rtype: dict, None |
(module
(function_definition
(function_name_get_reverse_index) function_name_get_reverse_index
(parameters
(identifier_self) identifier_self
(identifier_base_index) identifier_base_index
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_... | Get index into this segment's data given the index into the base data
Raises IndexError if the base index doesn't map to anything in this
segment's data |
(module
(function_definition
(function_name_Group) function_name_Group
(parameters
(identifier_params) identifier_params
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_type) identifier_type
... | Groups together Params for adding under the 'What' section.
Args:
params(list of :func:`Param`): Parameter elements to go in this group.
name(str): Group name. NB ``None`` is valid, since the group may be
best identified by its type.
type(str): Type of group, e.g. 'complex' (for... |
(module
(function_definition
(function_name_collapse) function_name_collapse
(parameters
(identifier_cls) identifier_cls
(identifier_holomap) identifier_holomap
(default_parameter
(identifier_ranges) identifier_ranges
(None) None
)default_parameter
(default_parame... | Given a map of Overlays, apply all applicable compositors. |
(module
(function_definition
(function_name_guard) function_name_guard
(parameters
(identifier_params) identifier_params
(identifier_guardian) identifier_guardian
(default_parameter
(identifier_error_class) identifier_error_class
(identifier_GuardError) identifier_GuardError
... | A guard function - check parameters
with guardian function on decorated function
:param tuple or string params: guarded function parameter/s
:param function guardian: verifying the conditions for the selected parameter
:param Exception error_class: raised class when guardian return false
:param str... |
(module
(function_definition
(function_name_all_devices) function_name_all_devices
(parameters
(default_parameter
(identifier_cl_device_type) identifier_cl_device_type
(None) None
)default_parameter
(default_parameter
(identifier_platform) identifier_platform
... | Get multiple device environments, optionally only of the indicated type.
This will only fetch devices that support double point precision.
Args:
cl_device_type (cl.device_type.* or string): The type of the device we want,
can be a opencl device type or a string matching 'GP... |
(module
(function_definition
(function_name_generate_user_agent) function_name_generate_user_agent
(parameters
(default_parameter
(identifier_os) identifier_os
(None) None
)default_parameter
(default_parameter
(identifier_navigator) identifier_navigator
(None)... | Generates HTTP User-Agent header
:param os: limit list of os for generation
:type os: string or list/tuple or None
:param navigator: limit list of browser engines for generation
:type navigator: string or list/tuple or None
:param device_type: limit possible oses by device type
:type device_typ... |
(module
(function_definition
(function_name__ProcessCommandSource) function_name__ProcessCommandSource
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
)parameters
(block
(expression_statement
(assignment
(identifier_action) identi... | Prepare a request for calling the execute command action. |
(module
(function_definition
(function_name_set_queue_callback) function_name_set_queue_callback
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_func) identifier_func
)parameters
(block
(if_statement
(comparison_operator
... | Sets a function to execute when the named acquistion queue
has data placed in it.
:param name: name of the queue to pull data from
:type name: str
:param func: function reference to execute, expects queue contents as argument(s)
:type func: callable |
(module
(function_definition
(function_name_generate_format) function_name_generate_format
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_self)... | Means that value have to be in specified format. For example date, email or other.
.. code-block:: python
{'format': 'email'}
Valid value for this definition is user@example.com but not @username |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_domain_accession) identifier_domain_accession
(identifier_domain_type) identifier_domain_type
(identifier_match_quality) identifier_match_quality
)parameters... | match_quality should be a value between 0 and 1. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_recursive) identifier_recursive
(True) True
)default_parameter
(default_paramete... | Removes the given mockfile. skip_trash doesn't have any meaning. |
(module
(function_definition
(function_name_get_container_mapping) function_name_get_container_mapping
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_layout) identifier_layout
(call
(att... | Returns a mapping of container -> postition |
(module
(function_definition
(function_name_enable_autocenter) function_name_enable_autocenter
(parameters
(identifier_self) identifier_self
(identifier_option) identifier_option
)parameters
(block
(expression_statement
(assignment
(identifier_option) identifier_opt... | Set ``autocenter`` behavior.
Parameters
----------
option : {'on', 'override', 'once', 'off'}
Option for auto-center behavior. A list of acceptable options can
also be obtained by :meth:`get_autocenter_options`.
Raises
------
ginga.ImageView.Imag... |
(module
(function_definition
(function_name_eval_to_ast) function_name_eval_to_ast
(parameters
(identifier_self) identifier_self
(identifier_e) identifier_e
(identifier_n) identifier_n
(default_parameter
(identifier_extra_constraints) identifier_extra_constraints
(tuple... | Evaluates expression e, returning the results in the form of concrete ASTs. |
(module
(function_definition
(function_name_get_ca_certs) function_name_get_ca_certs
(parameters
(default_parameter
(identifier_environ) identifier_environ
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)defau... | Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env
override, TXAWS_CERTS_PATH.
In order to find .pem files, this function checks first for presence of the
TXAWS_CERTS_PATH environment variable that should point to a directory
containing cert files. In the absense of this variable, the m... |
(module
(function_definition
(function_name_get_mors_with_properties) function_name_get_mors_with_properties
(parameters
(identifier_service_instance) identifier_service_instance
(identifier_object_type) identifier_object_type
(default_parameter
(identifier_property_list) identifier_... | Returns a list containing properties and managed object references for the managed object.
service_instance
The Service Instance from which to obtain managed object references.
object_type
The type of content for which to obtain managed object references.
property_list
An optional... |
(module
(function_definition
(function_name_ylabelsize) function_name_ylabelsize
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
(default_parameter
(identifier_index) identifier_index
(integer_1) integer_1
)default_parameter
)paramete... | Set the size of the label.
Parameters
----------
size : int
Returns
-------
Chart |
(module
(function_definition
(function_name_add_to_manifest) function_name_add_to_manifest
(parameters
(identifier_self) identifier_self
(identifier_manifest) identifier_manifest
)parameters
(block
(expression_statement
(call
(attribute
(identifier_manif... | Add to the manifest to make sure it is bound to the
application. |
(module
(function_definition
(function_name_create_table) function_name_create_table
(parameters
(identifier_table) identifier_table
(identifier_dbo) identifier_dbo
(identifier_tablename) identifier_tablename
(default_parameter
(identifier_schema) identifier_schema
(Non... | Create a database table based on a sample of data in the given `table`.
Keyword arguments:
table : table container
Table data to load
dbo : database object
DB-API 2.0 connection, callable returning a DB-API 2.0 cursor, or
SQLAlchemy connection, engine or session
tablename : tex... |
(module
(function_definition
(function_name_sinc_window) function_name_sinc_window
(parameters
(default_parameter
(identifier_num_zeros) identifier_num_zeros
(integer_64) integer_64
)default_parameter
(default_parameter
(identifier_precision) identifier_precision
... | Construct a windowed sinc interpolation filter
Parameters
----------
num_zeros : int > 0
The number of zero-crossings to retain in the sinc filter
precision : int > 0
The number of filter coefficients to retain for each zero-crossing
window : callable
The window function. ... |
(module
(function_definition
(function_name_form_valid) function_name_form_valid
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
... | Add success message |
(module
(function_definition
(function_name_create_wiki) function_name_create_wiki
(parameters
(identifier_post_data) identifier_post_data
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_i... | Create the wiki. |
(module
(function_definition
(function_name_post_registration_redirect) function_name_post_registration_redirect
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_user) identifier_user
)parameters
(block
(expression_statement
... | After registration, redirect to the home page or supplied "next"
query string or hidden field value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.