sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_distributions_route) function_name_distributions_route
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_tag) identifier_... | Given a tag and single run, return an array of compressed histograms. |
(module
(function_definition
(function_name__accumulate) function_name__accumulate
(parameters
(identifier_self) identifier_self
(identifier_old_accum) identifier_old_accum
(identifier_next_val) identifier_next_val
)parameters
(block
(return_statement
(binary_operator
... | Implement exponential moving average |
(module
(function_definition
(function_name_get_module) function_name_get_module
(parameters
(identifier_app) identifier_app
(identifier_modname) identifier_modname
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
(defaul... | Internal function to load a module from a single app.
taken from https://github.com/ojii/django-load. |
(module
(function_definition
(function_name_isBirthday) function_name_isBirthday
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_birthday) identif... | Is it the user's birthday today? |
(module
(function_definition
(function_name_add_link) function_name_add_link
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Create a new internal link") string_"Create a new internal link"
)expression_statement
(expressio... | Create a new internal link |
(module
(function_definition
(function_name_wait) function_name_wait
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
... | Go into consume mode.
Mostly for testing purposes and simple programs, you probably
want :meth:`iterconsume` or :meth:`iterqueue` instead.
This runs an infinite loop, processing all incoming messages
using :meth:`receive` to apply the message to all registered
callbacks. |
(module
(function_definition
(function_name_fetch_credential_report) function_name_fetch_credential_report
(parameters
(identifier_self) identifier_self
(identifier_credentials) identifier_credentials
(default_parameter
(identifier_ignore_exception) identifier_ignore_exception
... | Fetch the credential report
:param: api_client
:type: FOO
:param: ignore_exception : initiate credential report creation as not always ready
:type: Boolean |
(module
(function_definition
(function_name__handleDecodeHextileRAW) function_name__handleDecodeHextileRAW
(parameters
(identifier_self) identifier_self
(identifier_block) identifier_block
(identifier_bg) identifier_bg
(identifier_color) identifier_color
(identifier_x) identifier... | the tile is in raw encoding |
(module
(function_definition
(function_name_get_handler_classes) function_name_get_handler_classes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_handler_classes) identifier_handler_classes
(list_co... | Return the list of handlers to use when receiving RPC requests. |
(module
(function_definition
(function_name_display) function_name_display
(parameters
(identifier_self) identifier_self
)parameters
(type
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_Union) identifier_Union
)attribute
... | The display report for the current project. |
(module
(function_definition
(function_name_elements_are_numbers) function_name_elements_are_numbers
(parameters
(identifier_array) identifier_array
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argume... | Tests whether the elements of the supplied array are numbers. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_filepath) identifier_filepath
(default_parameter
(identifier_fully_qualified) identifier_fully_qualified
(True) True
)default_parameter
... | Serialize and write this METS document to `filepath`.
The default encoding is ``UTF-8``. This method will return a unicode
string when ``encoding`` is set to ``unicode``.
:param str filepath: Path to write the METS document to |
(module
(function_definition
(function_name_leaky_relu) function_name_leaky_relu
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
... | Creates a leaky_relu.
This is an alternate non-linearity to relu. The leaky part of the relu may
prevent dead Neurons in a model since the gradient doesn't go completely to
0.
Args:
x: The input tensor.
name: Optional name for this op.
Returns:
x if x > 0 otherwise 0.01 * x. |
(module
(function_definition
(function_name_ping) function_name_ping
(parameters
(default_parameter
(identifier_host) identifier_host
(None) None
)default_parameter
(default_parameter
(identifier_core_name) identifier_core_name
(None) None
)default_param... | Does a health check on solr, makes sure solr can talk to the indexes.
host : str (None)
The solr host to query. __opts__['host'] is default.
core_name : str (None)
The name of the solr core if using cores. Leave this blank if you are
not using cores or if you want to check all cores.
... |
(module
(function_definition
(function_name_add_instance) function_name_add_instance
(parameters
(identifier_self) identifier_self
(identifier_role) identifier_role
(identifier_instance) identifier_instance
(default_parameter
(identifier_username) identifier_username
(s... | Add instance to the setup
@param role: instance's role
@type role: str
@param instance: host parameters we would like to establish connection
to
@type instance: dict
@param username: user name for creating ssh connection
@type username: str
... |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state... | Close websocket connection. |
(module
(function_definition
(function_name__remove_deprecated_options) function_name__remove_deprecated_options
(parameters
(identifier_self) identifier_self
(identifier_old_version) identifier_old_version
)parameters
(block
(expression_statement
(assignment
(ident... | Remove options which are present in the .ini file but not in defaults |
(module
(function_definition
(function_name_entries) function_name_entries
(parameters
(identifier_self) identifier_self
(identifier_region) identifier_region
(identifier_queue) identifier_queue
(identifier_tier) identifier_tier
(identifier_division) identifier_division
)para... | Get all the league entries
:param string region: the region to execute this request on
:param string queue: the queue to query, i.e. RANKED_SOLO_5x5
:param string tier: the tier to query, i.e. DIAMOND
:param string division: the division to query, i.e. III
:returns: Se... |
(module
(function_definition
(function_name__batch_call_watchers) function_name__batch_call_watchers
(parameters
(identifier_self_) identifier_self_
)parameters
(block
(while_statement
(attribute
(attribute
(attribute
(identifier_self_) identifie... | Batch call a set of watchers based on the parameter value
settings in kwargs using the queued Event and watcher objects. |
(module
(function_definition
(function_name__get_container_id) function_name__get_container_id
(parameters
(identifier_self) identifier_self
(identifier_labels) identifier_labels
)parameters
(block
(expression_statement
(assignment
(identifier_namespace) identifier_... | Should only be called on a container-scoped metric
It gets the container id from the podlist using the metrics labels
:param labels
:return str or None |
(module
(function_definition
(function_name_maybe_copy_file_to_directory) function_name_maybe_copy_file_to_directory
(parameters
(identifier_source_filepath) identifier_source_filepath
(identifier_target_directory) identifier_target_directory
)parameters
(block
(if_statement
... | Copy a file to a directory if it is not already there.
Returns the target filepath.
Args:
source_filepath: a string
target_directory: a string
Returns:
a string |
(module
(function_definition
(function_name_get_sequence_rule_lookup_session_for_bank) function_name_get_sequence_rule_lookup_session_for_bank
(parameters
(identifier_self) identifier_self
(identifier_bank_id) identifier_bank_id
(identifier_proxy) identifier_proxy
)parameters
(block
... | Gets the ``OsidSession`` associated with the sequence rule lookup service for the given bank.
arg: bank_id (osid.id.Id): the ``Id`` of the ``Bank``
arg: proxy (osid.proxy.Proxy): a proxy
return: (osid.assessment.authoring.SequenceRuleLookupSession) -
a ``SequenceRuleLookup... |
(module
(function_definition
(function_name_store_object) function_name_store_object
(parameters
(identifier_self) identifier_self
(identifier_obj_name) identifier_obj_name
(identifier_data) identifier_data
(default_parameter
(identifier_content_type) identifier_content_type
... | Creates a new object in this container, and populates it with the given
data. A StorageObject reference to the uploaded file will be returned,
unless 'return_none' is set to True.
The 'extra_info' parameter is included for backwards compatibility. It
is no longer used at all, and will n... |
(module
(function_definition
(function_name_discriminator2) function_name_discriminator2
(parameters
(identifier_ndf) identifier_ndf
(default_parameter
(identifier_no_bias) identifier_no_bias
(True) True
)default_parameter
(default_parameter
(identifier_fix_gamm... | Second part of the discriminator which takes a 256x8x8 feature map as input
and generates the loss based on whether the input image was a real one or fake one |
(module
(function_definition
(function_name__decode) function_name__decode
(parameters
(identifier_hashid) identifier_hashid
(identifier_salt) identifier_salt
(identifier_alphabet) identifier_alphabet
(identifier_separators) identifier_separators
(identifier_guards) identifier_gu... | Helper method that restores the values encoded in a hashid without
argument checks. |
(module
(function_definition
(function_name__get_webapi_requests) function_name__get_webapi_requests
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
... | Update headers of webapi for Requests. |
(module
(function_definition
(function_name_get_model_indexes) function_name_get_model_indexes
(parameters
(identifier_model) identifier_model
)parameters
(block
(expression_statement
(assignment
(identifier_indexes) identifier_indexes
(list
)list
... | Return list of all indexes in which a model is configured.
A model may be configured to appear in multiple indexes. This function
will return the names of the indexes as a list of strings. This is
useful if you want to know which indexes need updating when a model
is saved.
Args:
model: a ... |
(module
(function_definition
(function_name_parse_cdhit_clstr_file) function_name_parse_cdhit_clstr_file
(parameters
(identifier_lines) identifier_lines
)parameters
(block
(expression_statement
(assignment
(identifier_clusters) identifier_clusters
(list
... | Returns a list of list of sequence ids representing clusters |
(module
(function_definition
(function_name__split_list) function_name__split_list
(parameters
(identifier_cls) identifier_cls
(identifier_items) identifier_items
(default_parameter
(identifier_separator) identifier_separator
(string_",") string_","
)default_parameter
... | Splits a string listing elements into an actual list.
Parameters
----------
items: :class:`str`
A string listing elements.
separator: :class:`str`
The separator between each item. A comma by default.
last_separator: :class:`str`
The separator ... |
(module
(function_definition
(function_name_volreg) function_name_volreg
(parameters
(identifier_dset) identifier_dset
(default_parameter
(identifier_suffix) identifier_suffix
(string_'_volreg') string_'_volreg'
)default_parameter
(default_parameter
(identifier_... | simple interface to 3dvolreg
:suffix: suffix to add to ``dset`` for volreg'ed file
:base: either a number or ``dset[#]`` of the base image to register to
:tshift: if a number, then tshift ignoring that many images, if ``None``
then don't tshift
... |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_b) identifier_b
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(iden... | Write bytes to buffer. |
(module
(function_definition
(function_name_DeleteList) function_name_DeleteList
(parameters
(identifier_self) identifier_self
(identifier_listName) identifier_listName
)parameters
(block
(expression_statement
(assignment
(identifier_soap_request) identifier_soap_re... | Delete a List with given name |
(module
(function_definition
(function_name_search_mode_provides) function_name_search_mode_provides
(parameters
(identifier_self) identifier_self
(identifier_product) identifier_product
(default_parameter
(identifier_pipeline) identifier_pipeline
(string_'default') string_'d... | Search the mode that provides a given product |
(module
(function_definition
(function_name_group_envs) function_name_group_envs
(parameters
(identifier_envlist) identifier_envlist
)parameters
(block
(expression_statement
(assignment
(identifier_groups) identifier_groups
(dictionary
)dictionary
... | Group Tox environments for Travis CI builds
Separate by Python version so that they can go in different Travis jobs:
>>> group_envs('py37-int-snappy', 'py36-int')
[('py36', 'int', ['py36-int']), ('py37', 'int', ['py37-int-snappy'])]
Group unit tests and linting together:
>>> group_envs(['py27-un... |
(module
(function_definition
(function_name__get_repr) function_name__get_repr
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_pretty) identifier_pretty
(False) False
)default_parameter
(default_parameter
(identifier_indent) identifier... | Get string representation of an object
:param obj: object
:type obj: object
:param pretty: use pretty formatting
:type pretty: bool
:param indent: indentation for pretty formatting
:type indent: int
:return: string representation
:rtype: str |
(module
(function_definition
(function_name_process_boolean) function_name_process_boolean
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(call
(attribute
(identifier_tag) identifier... | Process Boolean type tags |
(module
(function_definition
(function_name__output_work) function_name__output_work
(parameters
(identifier_self) identifier_self
(identifier_work) identifier_work
(identifier_root) identifier_root
)parameters
(block
(expression_statement
(assignment
(identif... | Saves the TEI XML document `root` at the path `work`. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_se... | Queue manager job callback. |
(module
(function_definition
(function_name_namespace) function_name_namespace
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__ns) identifi... | Return a dictionary representing the namespace which should be
available to the user. |
(module
(function_definition
(function_name_get_model_agents) function_name_get_model_agents
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_model_stmts) identifier_model_stmts
(call
(att... | Return a list of all Agents from all Statements.
Returns
-------
agents : list[indra.statements.Agent]
A list of Agents that are in the model. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
(identifier_address) identifier_address
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(assignment
(identifier_value)... | Read arbitrary size content from memory. |
(module
(function_definition
(function_name_open_sciobj_file_by_pid) function_name_open_sciobj_file_by_pid
(parameters
(identifier_pid) identifier_pid
(default_parameter
(identifier_write) identifier_write
(False) False
)default_parameter
)parameters
(block
(exp... | Open the file containing the Science Object bytes at the custom location
``abs_path`` in the local filesystem for read. |
(module
(function_definition
(function_name_get_parent_families) function_name_get_parent_families
(parameters
(identifier_self) identifier_self
(identifier_family_id) identifier_family_id
)parameters
(block
(if_statement
(comparison_operator
(attribute
... | Gets the parent families of the given ``id``.
arg: family_id (osid.id.Id): the ``Id`` of the ``Family`` to
query
return: (osid.relationship.FamilyList) - the parent families of
the ``id``
raise: NotFound - a ``Family`` identified by ``Id is`` not
... |
(module
(function_definition
(function_name_execute_return_success) function_name_execute_return_success
(parameters
(identifier_cmd) identifier_cmd
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifie... | Executes the passed command. Returns True if successful
:param str cmd: The command to run
:return: True if successful, otherwise False
:rtype: bool
:raises: Error if command fails or is not supported |
(module
(function_definition
(function_name_clone) function_name_clone
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_klass) identifier_klass
(None) None
)default_parameter
(default_parameter
(identifier_memo) identifier_memo
... | Creates a copy of the current instance. The 'kwargs' parameter can be
used by clients to update attributes after copying has taken place. |
(module
(function_definition
(function_name_default) function_name_default
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Serialize obj into JSON. |
(module
(function_definition
(function_name_get_assignable_bank_ids) function_name_get_assignable_bank_ids
(parameters
(identifier_self) identifier_self
(identifier_bank_id) identifier_bank_id
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) ide... | Gets a list of bank including and under the given bank node in which any assessment part can be assigned.
arg: bank_id (osid.id.Id): the ``Id`` of the ``Bank``
return: (osid.id.IdList) - list of assignable bank ``Ids``
raise: NullArgument - ``bank_id`` is ``null``
raise: OperationF... |
(module
(function_definition
(function_name_track_exists) function_name_track_exists
(parameters
(identifier_self) identifier_self
(identifier_localdir) identifier_localdir
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
... | Check if track exists in local directory. |
(module
(function_definition
(function_name_notify_listeners) function_name_notify_listeners
(parameters
(identifier_self) identifier_self
(identifier_msg_type) identifier_msg_type
(identifier_params) identifier_params
)parameters
(block
(for_statement
(identifier_c) id... | Send a message to all the observers. |
(module
(function_definition
(function_name_parse_singular_alphabetic_character) function_name_parse_singular_alphabetic_character
(parameters
(identifier_t) identifier_t
(identifier_tag_name) identifier_tag_name
)parameters
(block
(expression_statement
(assignment
... | Parses the sole alphabetic character value with name tag_name in tag t. Heavy-handed with the asserts. |
(module
(function_definition
(function_name_decode_string) function_name_decode_string
(parameters
(identifier_self) identifier_self
(identifier_string) identifier_string
(identifier_cache) identifier_cache
(identifier_as_map_key) identifier_as_map_key
)parameters
(block
... | Decode a string - arguments follow the same convention as the
top-level 'decode' function. |
(module
(function_definition
(function_name__make_table_formatter) function_name__make_table_formatter
(parameters
(identifier_f) identifier_f
(default_parameter
(identifier_offset) identifier_offset
(None) None
)default_parameter
)parameters
(block
(expression_... | A closure-izer for table arguments that include a format and possibly an offset. |
(module
(function_definition
(function_name_animation_add) function_name_animation_add
(parameters
(identifier_sequence_number) identifier_sequence_number
(identifier_animation_id) identifier_animation_id
(identifier_name) identifier_name
)parameters
(block
(return_statement
... | Create a animation.add message |
(module
(function_definition
(function_name_dchisq) function_name_dchisq
(parameters
(identifier_psr) identifier_psr
(default_parameter
(identifier_formbats) identifier_formbats
(False) False
)default_parameter
(default_parameter
(identifier_renormalize) identif... | Return gradient of total chisq for the current timing solution,
after removing noise-averaged mean residual, and ignoring deleted points. |
(module
(function_definition
(function_name_positive_report) function_name_positive_report
(parameters
(identifier_binary_report) identifier_binary_report
(identifier_sha256hash) identifier_sha256hash
(identifier_project) identifier_project
(identifier_patch_file) identifier_patch_file... | If a Positive match is found |
(module
(function_definition
(function_name_scroll_one_line_up) function_name_scroll_one_line_up
(parameters
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(identifier_find_w... | scroll_offset -= 1 |
(module
(function_definition
(function_name_ParseByteStream) function_name_ParseByteStream
(parameters
(identifier_self) identifier_self
(identifier_parser_mediator) identifier_parser_mediator
(identifier_byte_stream) identifier_byte_stream
(default_parameter
(identifier_parent... | Parses the shell items from the byte stream.
Args:
parser_mediator (ParserMediator): mediates interactions between parsers
and other components, such as storage and dfvfs.
byte_stream (bytes): shell items data.
parent_path_segments (Optional[list[str]]): parent shell item path
... |
(module
(function_definition
(function_name__make_cmake) function_name__make_cmake
(parameters
(identifier_config_info) identifier_config_info
)parameters
(block
(expression_statement
(assignment
(identifier_configure_args) identifier_configure_args
(list
... | This function initializes a CMake builder for building the project. |
(module
(function_definition
(function_name_add_parent) function_name_add_parent
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
(identifier_pid) identifier_pid
(default_parameter
(identifier_relation) identifier_relation
(string_'subClassOf'... | Add a new edge to the ontology |
(module
(function_definition
(function_name_fail_run_group) function_name_fail_run_group
(parameters
(identifier_group) identifier_group
(identifier_session) identifier_session
)parameters
(block
(import_from_statement
(dotted_name
(identifier_datetime) identifier_d... | End the run_group unsuccessfully.
Args:
group: The run_group we want to complete.
session: The database transaction we will finish. |
(module
(function_definition
(function_name__append_object) function_name__append_object
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier__file) identifier__file
)parameters
(block
(expression_statement
(assignment
... | Call this function to write object contents.
Keyword arguments:
* value - dict, content to be dumped
* _file - FileIO, output file |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(identifier_existing_inputs) identifier_existing_inputs
)parameters
(block
(return_statement
(call
(identifier_PPOPolicyGraph) identifier_PPOPolicyGrap... | Creates a copy of self using existing input placeholders. |
(module
(function_definition
(function_name__CompileProtos) function_name__CompileProtos
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_proto_files) identifier_proto_files
(list
)list
)assignment
)expression_statem... | Compiles all Fleetspeak protos. |
(module
(function_definition
(function_name_preprocess_tree) function_name_preprocess_tree
(parameters
(identifier_self) identifier_self
(identifier_tree) identifier_tree
)parameters
(block
(expression_statement
(assignment
(identifier_visitor) identifier_visitor
... | Transform internal refuri targets in reference nodes to refids and
transform footnote rubrics so that they do not end up in the output |
(module
(function_definition
(function_name_force_ascii_values) function_name_force_ascii_values
(parameters
(identifier_data) identifier_data
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(call
... | Ensures each value is ascii-only |
(module
(function_definition
(function_name_clean_exit) function_name_clean_exit
(parameters
(identifier_signum) identifier_signum
(default_parameter
(identifier_frame) identifier_frame
(None) None
)default_parameter
)parameters
(block
(global_statement
... | Exit all processes attempting to finish uncommitted active work before exit.
Can be called on an os signal or no zookeeper losing connection. |
(module
(function_definition
(function_name_get_witnesses) function_name_get_witnesses
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(string_'*') string_'*'
)default_parameter
)parameters
(block
(for_statement... | Returns a generator supplying `WitnessText` objects for each work
in the corpus.
:rtype: `generator` of `WitnessText` |
(module
(function_definition
(function_name_make_python_xref_nodes) function_name_make_python_xref_nodes
(parameters
(identifier_py_typestr) identifier_py_typestr
(identifier_state) identifier_state
(default_parameter
(identifier_hide_namespace) identifier_hide_namespace
(Fal... | Make docutils nodes containing a cross-reference to a Python object.
Parameters
----------
py_typestr : `str`
Name of the Python object. For example
``'mypackage.mymodule.MyClass'``. If you have the object itself, or
its type, use the `make_python_xref_nodes_for_type` function inste... |
(module
(function_definition
(function_name__new_from_rft) function_name__new_from_rft
(parameters
(identifier_self) identifier_self
(identifier_base_template) identifier_base_template
(identifier_rft_file) identifier_rft_file
)parameters
(block
(expression_statement
(c... | Append a new file from .rft entry to the journal.
This instructs Revit to create a new model based on
the provided .rft template.
Args:
base_template (str): new file journal template from rmj.templates
rft_file (str): full path to .rft template to be used |
(module
(function_definition
(function_name_get_next) function_name_get_next
(parameters
(identifier_intersection) identifier_intersection
(identifier_intersections) identifier_intersections
(identifier_unused) identifier_unused
)parameters
(block
(expression_statement
... | Gets the next node along a given edge.
.. note::
This is a helper used only by :func:`basic_interior_combine`, which in
turn is only used by :func:`combine_intersections`. This function does
the majority of the heavy lifting for :func:`basic_interior_combine`.
.. note::
This fun... |
(module
(function_definition
(function_name_get_dos) function_name_get_dos
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_partial_dos) identifier_partial_dos
(False) False
)default_parameter
(default_parameter
(identifier_npts_mu) i... | Return a Dos object interpolating bands
Args:
partial_dos: if True, projections will be interpolated as well
and partial doses will be return. Projections must be available
in the loader.
npts_mu: number of energy points of the Dos
... |
(module
(function_definition
(function_name_eval_field) function_name_eval_field
(parameters
(identifier_field) identifier_field
(identifier_asc) identifier_asc
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_... | Evaluate a field for sorting purpose.
:param field: Field definition (string, dict or callable).
:param asc: ``True`` if order is ascending, ``False`` if descending.
:returns: Dictionary with the sort field query. |
(module
(function_definition
(function_name__ref_prop_matches) function_name__ref_prop_matches
(parameters
(identifier_prop) identifier_prop
(identifier_target_classname) identifier_target_classname
(identifier_ref_classname) identifier_ref_classname
(identifier_resultclass_names) iden... | Test filters for a reference property
Returns `True` if matches the criteria.
Returns `False` if it does not match.
The match criteria are:
- target_classname == prop_reference_class
- if result_classes are not None, ref_classname is in result_classes
- If role is... |
(module
(function_definition
(function_name_json) function_name_json
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
... | Decodes response as JSON. |
(module
(function_definition
(function_name_GetEstimatedYear) function_name_GetEstimatedYear
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__preferred_year) identifier__pref... | Retrieves an estimate of the year.
This function determines the year in the following manner:
* see if the user provided a preferred year;
* see if knowledge base defines a year e.g. derived from preprocessing;
* determine the year based on the file entry metadata;
* default to the current year;
... |
(module
(function_definition
(function_name__validate_slice) function_name__validate_slice
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(if_statement
(comparison_operator
(... | Validate start and end and return them as positive bit positions. |
(module
(function_definition
(function_name_getaddress) function_name_getaddress
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_address) identifier_address
(type
(identifier_str) identifier_str
)type
)typed_parameter
)paramete... | Returns information for given address. |
(module
(function_definition
(function_name__run) function_name__run
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_get_next_interval) function_name_get_next_interval
(parameters
)parameters
(block
... | Runs the interval loop. |
(module
(function_definition
(function_name_adjust_properties) function_name_adjust_properties
(parameters
(identifier_self) identifier_self
(identifier_prop_set) identifier_prop_set
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isins... | For all virtual targets for the same dependency graph as self,
i.e. which belong to the same main target, add their directories
to include path. |
(module
(function_definition
(function_name__BuildEventData) function_name__BuildEventData
(parameters
(identifier_self) identifier_self
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(identifier_event_data) identifier_eve... | Builds an FseventsdData object from a parsed structure.
Args:
record (dls_record_v1|dls_record_v2): parsed record structure.
Returns:
FseventsdEventData: event data attribute container. |
(module
(function_definition
(function_name_ListDevices) function_name_ListDevices
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_devices) identifier_devices
(list
)list
)assignmen... | List all known devices |
(module
(function_definition
(function_name_get_value) function_name_get_value
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_merge) identifier_merge
(True) True
)default_parameter
(default_parameter
(identifier_createfunc) identifi... | Return the value from the cache for this query. |
(module
(function_definition
(function_name_getXRDExpiration) function_name_getXRDExpiration
(parameters
(identifier_xrd_element) identifier_xrd_element
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
... | Return the expiration date of this XRD element, or None if no
expiration was specified.
@type xrd_element: ElementTree node
@param default: The value to use as the expiration if no
expiration was specified in the XRD.
@rtype: datetime.datetime
@raises ValueError: If the xrd:Expires eleme... |
(module
(function_definition
(function_name_add_channel_pulse) function_name_add_channel_pulse
(parameters
(identifier_dma_channel) identifier_dma_channel
(identifier_gpio) identifier_gpio
(identifier_start) identifier_start
(identifier_width) identifier_width
)parameters
(bloc... | Add a pulse for a specific GPIO to a dma channel subcycle. `start` and
`width` are multiples of the pulse-width increment granularity. |
(module
(function_definition
(function_name_time_slices_to_layers) function_name_time_slices_to_layers
(parameters
(identifier_graphs) identifier_graphs
(default_parameter
(identifier_interslice_weight) identifier_interslice_weight
(integer_1) integer_1
)default_parameter
... | Convert time slices to layer graphs.
Each graph is considered to represent a time slice. This function simply
connects all the consecutive slices (i.e. the slice graph) with an
``interslice_weight``. The further conversion is then delegated to
:func:`slices_to_layers`, which also provides further details.
... |
(module
(function_definition
(function_name_impact_path) function_name_impact_path
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identif... | Setter to impact path.
:param value: The impact path.
:type value: str |
(module
(function_definition
(function_name_get_coordinate_offset) function_name_get_coordinate_offset
(parameters
(identifier_self) identifier_self
(identifier_other_reading) identifier_other_reading
)parameters
(block
(expression_statement
(assignment
(pattern_lis... | Calculates the offsets between readings' coordinate systems.
Args:
other_reading: ossos.astrom.SourceReading
The reading to compare coordinate systems with.
Returns:
(offset_x, offset_y):
The x and y offsets between this reading and the other reading's
... |
(module
(function_definition
(function_name_dump) function_name_dump
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) identifier_warn
... | Dump the TDS results to the output `dat` file
:return: succeed flag |
(module
(function_definition
(function_name___parse_stream) function_name___parse_stream
(parameters
(identifier_self) identifier_self
(identifier_stream) identifier_stream
(identifier_parse_line) identifier_parse_line
)parameters
(block
(if_statement
(not_operator
... | Generic method to parse gitdm streams |
(module
(function_definition
(function_name__push_entry) function_name__push_entry
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(string_"Push entry onto our access log, invalidate the old entry if exist... | Push entry onto our access log, invalidate the old entry if exists. |
(module
(function_definition
(function_name_delete_rows_csr) function_name_delete_rows_csr
(parameters
(identifier_mat) identifier_mat
(identifier_indices) identifier_indices
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) id... | Remove the rows denoted by ``indices`` form the CSR sparse matrix ``mat``. |
(module
(function_definition
(function_name_pagination_for) function_name_pagination_for
(parameters
(identifier_context) identifier_context
(identifier_current_page) identifier_current_page
(default_parameter
(identifier_page_var) identifier_page_var
(string_"page") string_"... | Include the pagination template and data for persisting querystring
in pagination links. Can also contain a comma separated string of
var names in the current querystring to exclude from the pagination
links, via the ``exclude_vars`` arg. |
(module
(function_definition
(function_name_matches_input) function_name_matches_input
(parameters
(identifier_self) identifier_self
(identifier_optimized_str) identifier_optimized_str
)parameters
(block
(if_statement
(call
(identifier_all) identifier_all
... | See if string matches keywords set in template file |
(module
(function_definition
(function_name_model_to_objective) function_name_model_to_objective
(parameters
(identifier_self) identifier_self
(identifier_x_model) identifier_x_model
)parameters
(block
(expression_statement
(assignment
(identifier_idx_model) identif... | This function serves as interface between model input vectors and
objective input vectors |
(module
(function_definition
(function_name_create_random_string) function_name_create_random_string
(parameters
(default_parameter
(identifier_length) identifier_length
(integer_7) integer_7
)default_parameter
(default_parameter
(identifier_chars) identifier_chars
... | Returns a random string, based on the provided arguments.
It returns capital letters and numbers by default.
Ambiguous characters are left out, repetitions will be avoided. |
(module
(function_definition
(function_name_get_sid_string) function_name_get_sid_string
(parameters
(identifier_principal) identifier_principal
)parameters
(block
(if_statement
(comparison_operator
(identifier_principal) identifier_principal
(None) None
... | Converts a PySID object to a string SID.
Args:
principal(str):
The principal to lookup the sid. Must be a PySID object.
Returns:
str: A string sid
Usage:
.. code-block:: python
# Get a PySID object
py_sid = salt.utils.win_dacl.get_sid('jsnuffy')
... |
(module
(function_definition
(function_name_check_cew) function_name_check_cew
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(if_statement
(call
(attribute
(identifier_gf) identifier_gf
(identifier_can_run_c_extension) identifier_c... | Check whether Python C extension ``cew`` can be imported.
Return ``True`` on failure and ``False`` on success.
:rtype: bool |
(module
(function_definition
(function_name_check_serial_port) function_name_check_serial_port
(parameters
(identifier_name) identifier_name
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cdc) identifier_cd... | returns valid COM Port. |
(module
(function_definition
(function_name_comments_for) function_name_comments_for
(parameters
(identifier_context) identifier_context
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_form_class) identifier_form_clas... | Provides a generic context variable name for the object that
comments are being rendered for. |
(module
(function_definition
(function_name_linearize_data_types) function_name_linearize_data_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_linearized_data_types) identifier_linearized_data_types
... | Returns a list of all data types used in the namespace. Because the
inheritance of data types can be modeled as a DAG, the list will be a
linearization of the DAG. It's ideal to generate data types in this
order so that composite types that reference other composite types are
defined in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.