sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_order) function_name_order
(parameters
(identifier_self) identifier_self
(identifier_order) identifier_order
)parameters
(block
(expression_statement
(assignment
(identifier_order) identifier_order
(conditional_e... | Adds an Order to this query.
Args:
see :py:class:`Order <datastore.query.Order>` constructor
Returns self for JS-like method chaining::
query.order('+age').order('-home') |
(module
(function_definition
(function_name_getAggregator) function_name_getAggregator
(parameters
(identifier_cls) identifier_cls
(identifier_instanceId) identifier_instanceId
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
... | Gets the aggregate stat for the given stat. |
(module
(function_definition
(function_name_accept_quality) function_name_accept_quality
(parameters
(identifier_accept) identifier_accept
(default_parameter
(identifier_default) identifier_default
(integer_1) integer_1
)default_parameter
)parameters
(block
(exp... | Separates out the quality score from the accepted content_type |
(module
(function_definition
(function_name_delay) function_name_delay
(parameters
(identifier_source) identifier_source
(identifier_delay) identifier_delay
)parameters
(block
(expression_statement
(await
(call
(attribute
(identifier_asynci... | Delay the iteration of an asynchronous sequence. |
(module
(function_definition
(function_name__transfers) function_name__transfers
(parameters
(identifier_reaction) identifier_reaction
(identifier_delta) identifier_delta
(identifier_elements) identifier_elements
(identifier_result) identifier_result
(identifier_epsilon) identifi... | Yield transfers obtained from result. |
(module
(function_definition
(function_name_equal_length) function_name_equal_length
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(... | Check that arguments have the same length. |
(module
(function_definition
(function_name_load_config) function_name_load_config
(parameters
(identifier_config) identifier_config
(default_parameter
(identifier_expand_env) identifier_expand_env
(False) False
)default_parameter
(default_parameter
(identifier_... | Return repos from a directory and fnmatch. Not recursive.
:param config: paths to config file
:type config: str
:param expand_env: True to expand environment varialbes in the config.
:type expand_env: bool
:param bool force: True to aggregate even if repo is dirty.
:returns: expanded config dic... |
(module
(function_definition
(function_name_module_can_run_parallel) function_name_module_can_run_parallel
(parameters
(typed_parameter
(identifier_test_module) identifier_test_module
(type
(attribute
(identifier_unittest) identifier_unittest
(identifier... | Checks if a given module of tests can be run in parallel or not
:param test_module: the module to run
:return: True if the module can be run on parallel, False otherwise |
(module
(function_definition
(function_name__record_call) function_name__record_call
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
... | A decorator that logs a call into the global error context.
This is probably for internal use only. |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
... | Clean up previous garbage |
(module
(function_definition
(function_name_blocks) function_name_blocks
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_block_addr) identifier_block_addr
(identifier_block) identifier_block
)patt... | An iterator of all local blocks in the current function.
:return: angr.lifter.Block instances. |
(module
(function_definition
(function_name_dump_dict) function_name_dump_dict
(parameters
(identifier_cfg) identifier_cfg
(identifier_f) identifier_f
(default_parameter
(identifier_indent) identifier_indent
(integer_0) integer_0
)default_parameter
)parameters
(... | Save a dictionary of attributes |
(module
(function_definition
(function_name_get_parameters) function_name_get_parameters
(parameters
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_path) identifier_path
(string_'') string... | Get parameter Variables under the current parameter scope.
Args:
params (dict): Internal use. User doesn't set it manually.
path (str): Internal use. User doesn't set it manually.
grad_only (bool): Retrieve all parameters under the current scope if
False, while only parameters ... |
(module
(function_definition
(function_name_export) function_name_export
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_top) identifier_top
(call
(attribute
(identifier_sel... | Returns requirements XML. |
(module
(function_definition
(function_name_create_pull) function_name_create_pull
(parameters
(identifier_self) identifier_self
(identifier_title) identifier_title
(identifier_base) identifier_base
(identifier_head) identifier_head
(default_parameter
(identifier_body) id... | Create a pull request of ``head`` onto ``base`` branch in this repo.
:param str title: (required)
:param str base: (required), e.g., 'master'
:param str head: (required), e.g., 'username:branch'
:param str body: (optional), markdown formatted description
:returns: :class:`PullRe... |
(module
(function_definition
(function_name_plot) function_name_plot
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_pylab) identifier_pylab
)dotted_name
(identifie... | Quick visualization of calibration solution. |
(module
(function_definition
(function_name_cyan) function_name_cyan
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(string_"Make the text foreground color cyan.") string_"Make the text foreground color cyan."
)expression_statement
... | Make the text foreground color cyan. |
(module
(function_definition
(function_name__load_custom) function_name__load_custom
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_settings_name) identifier_settings_name
(string_'localsettings.py') string_'localsettings.py'
)default_parameter
... | Load the user defined settings, overriding the defaults |
(module
(function_definition
(function_name_hypergeometric_like) function_name_hypergeometric_like
(parameters
(identifier_x) identifier_x
(identifier_n) identifier_n
(identifier_m) identifier_m
(identifier_N) identifier_N
)parameters
(block
(expression_statement
... | R"""
Hypergeometric log-likelihood.
Discrete probability distribution that describes the number of successes in
a sequence of draws from a finite population without replacement.
.. math::
f(x \mid n, m, N) = \frac{\left({ \begin{array}{c} {m} \\ {x} \\
\end{array} }\right)\left({ \beg... |
(module
(function_definition
(function_name_convert_camel_case_string) function_name_convert_camel_case_string
(parameters
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
... | Convert camel case string to snake case |
(module
(function_definition
(function_name_find_all_declarations) function_name_find_all_declarations
(parameters
(identifier_declarations) identifier_declarations
(default_parameter
(identifier_decl_type) identifier_decl_type
(None) None
)default_parameter
(default_pa... | Returns a list of all declarations that match criteria, defined by
developer.
For more information about arguments see :class:`match_declaration_t`
class.
:rtype: [ matched declarations ] |
(module
(function_definition
(function_name_cmd_connection_type) function_name_cmd_connection_type
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_https) identifier_https
(integer_0) integer_0
... | Generates statistics on how many requests are made via HTTP and how
many are made via SSL.
.. note::
This only works if the request path contains the default port for
SSL (443).
.. warning::
The ports are hardcoded, they should be configurable. |
(module
(function_definition
(function_name_is_alive) function_name_is_alive
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_running) identifier_running
(False) False
)assignment
)expre... | Checks if the current node is up and running in the cloud. It
only checks the status provided by the cloud interface. Therefore a
node might be running, but not yet ready to ssh into it. |
(module
(function_definition
(function_name_build_idx_set) function_name_build_idx_set
(parameters
(identifier_branch_id) identifier_branch_id
(identifier_start_date) identifier_start_date
)parameters
(block
(expression_statement
(assignment
(identifier_code_set) id... | Builds a dictionary of keys based on the branch code |
(module
(function_definition
(function_name_split_thousands) function_name_split_thousands
(parameters
(identifier_s) identifier_s
)parameters
(block
(if_statement
(comparison_operator
(identifier_s) identifier_s
(None) None
)comparison_operator
... | Splits a number on thousands.
>>> split_thousands(1000012)
"1'000'012" |
(module
(function_definition
(function_name__connect_nntp) function_name__connect_nntp
(parameters
(identifier_self) identifier_self
(identifier_nntpserver) identifier_nntpserver
)parameters
(block
(expression_statement
(assignment
(identifier_tries) identifier_trie... | This is done only once per checking task. Also, the newly
introduced error codes 504 and 505 (both inclining "Too busy, retry
later", are caught. |
(module
(function_definition
(function_name_create_chunked_body_end) function_name_create_chunked_body_end
(parameters
(default_parameter
(identifier_trailers) identifier_trailers
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignm... | Create the ending that terminates a chunked body. |
(module
(function_definition
(function_name_pipe_yql) function_name_pipe_yql
(parameters
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
(default_parameter
(identifier__INPUT) identifier__INPUT
(None) None
)defau... | A source that issues YQL queries. Loopable.
Parameters
----------
context : pipe2py.Context object
_INPUT : pipeforever pipe or an iterable of items or fields
conf : yqlquery -- YQL query
# todo: handle envURL
Yields
------
_OUTPUT : query results |
(module
(function_definition
(function_name_GetMemActiveMB) function_name_GetMemActiveMB
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_counter) identifier_counter
(call
(identifier_c_ui... | Retrieves the amount of memory the virtual machine is actively using its
estimated working set size. |
(module
(function_definition
(function_name_extensions) function_name_extensions
(parameters
)parameters
(block
(import_statement
(dotted_name
(identifier_numpy) identifier_numpy
)dotted_name
)import_statement
(import_from_statement
(dotted_name
... | Returns list of `cython` extensions for `lazy_cythonize`. |
(module
(function_definition
(function_name_get_confirmations_per_page) function_name_get_confirmations_per_page
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_per_page) identifier_per_page
(integer_1000) integer_1000
)default_parameter
(de... | Get confirmations per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_connected) identifier_connected
)attribute
... | Closes connection pair |
(module
(function_definition
(function_name_onChange) function_name_onChange
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_min_changed_pixels) identifier_min_changed_pixels
(None) None
)default_parameter
(default_parameter
(identif... | Registers an event to call ``handler`` when at least ``min_changed_pixels``
change in this region.
(Default for min_changed_pixels is set in Settings.ObserveMinChangedPixels)
The ``handler`` function should take one parameter, an ObserveEvent object
(see below). This event is ignored i... |
(module
(function_definition
(function_name_reset_logging_framework) function_name_reset_logging_framework
(parameters
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_logging) identifier_logging
(identifier__lock) identifier__... | After fork, ensure any logging.Handler locks are recreated, as a variety of
threads in the parent may have been using the logging package at the moment
of fork.
It is not possible to solve this problem in general; see
https://github.com/dw/mitogen/issues/150 for a full discussion. |
(module
(function_definition
(function_name_required_from_env) function_name_required_from_env
(parameters
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
... | Retrieve a required variable from the current environment variables.
Raises a ValueError if the env variable is not found or has no value. |
(module
(function_definition
(function_name_toggle_template_selector) function_name_toggle_template_selector
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_s... | Slot for template selector elements behaviour.
.. versionadded: 4.3.0 |
(module
(function_definition
(function_name_merge_lists) function_name_merge_lists
(parameters
(identifier_l) identifier_l
(identifier_base) identifier_base
)parameters
(block
(for_statement
(identifier_i) identifier_i
(identifier_base) identifier_base
(block
... | Merge in undefined list entries from given list.
@param l: List to be merged into.
@type l: list
@param base: List to be merged into.
@type base: list |
(module
(function_definition
(function_name__list_fields) function_name__list_fields
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
... | Get the current settings of the model. The keys depend on the type of
model.
Returns
-------
out : list
A list of fields that can be queried using the ``get`` method. |
(module
(function_definition
(function_name__build_url) function_name__build_url
(parameters
(identifier_self) identifier_self
(identifier_host) identifier_host
(identifier_handler) identifier_handler
)parameters
(block
(expression_statement
(assignment
(ident... | Build a url for our request based on the host, handler and use_http
property |
(module
(function_definition
(function_name_getctime) function_name_getctime
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identif... | Returns the creation time of the fake file.
Args:
path: the path to fake file.
Returns:
(int, float) the creation time of the fake file in number of
seconds since the epoch.
Raises:
OSError: if the file does not exist. |
(module
(function_definition
(function_name_get_asset_url) function_name_get_asset_url
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(bin... | Get the URL of an asset. If asset hashes are added and one exists for
the path, it will be appended as a query string.
Args:
path (str): Path to the file, relative to your "assets" directory. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_value) identifier_value
(string_'') string_''
)default_parameter
(default_parame... | Creates a Zookeeper node.
:param: path: The zookeeper node path
:param: value: Zookeeper node value
:param: acl: ACL list
:param: ephemeral: Boolean indicating where this node is tied to
this session.
:param: sequence: Boolean indicating whether path is suffixed
... |
(module
(function_definition
(function_name_upgrade_all) function_name_upgrade_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_pkg) identifier_pkg
(attribute
(identifier_self) identifier_self
(identifier_in... | Upgrades all installed packages to their latest versions. |
(module
(function_definition
(function_name_disable_key) function_name_disable_key
(parameters
(identifier_key_id) identifier_key_id
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) ident... | Mark key as disabled.
CLI example::
salt myminion boto_kms.disable_key 'alias/mykey' |
(module
(function_definition
(function_name_handle_namespace_invalid) function_name_handle_namespace_invalid
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_line) identifier_line
(type
(identifier_str) identifier_str
)type
)typed_p... | Raise an exception when parsing a name missing a namespace. |
(module
(function_definition
(function_name_softwareUpdateAvailable) function_name_softwareUpdateAvailable
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_timeout) identifier_timeout
(integer_1) integer_1
)default_parameter
)parameters
(bl... | Returns if a software update is available
:return: if a software update is available
:rtype: bool |
(module
(function_definition
(function_name_entropy_variance) function_name_entropy_variance
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_class_attr) identifier_class_attr
(None) None
)default_parameter
(default_parameter
(identif... | Calculates the variance fo a continuous class attribute, to be used as an
entropy metric. |
(module
(function_definition
(function_name_participation_policy_changed) function_name_participation_policy_changed
(parameters
(identifier_ob) identifier_ob
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_worksp... | Move all the existing users to a new group |
(module
(function_definition
(function_name_parse_yaml) function_name_parse_yaml
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_... | Parse a YAML specification of a component group into this
object. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_pos) identifier_pos
(identifier_size) identifier_size
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern... | Writes some data, loaded from the state, into the file.
:param pos: The address to read the data to write from in memory
:param size: The requested size of the write
:return: The real length of the write |
(module
(function_definition
(function_name_branches_containing) function_name_branches_containing
(parameters
(identifier_commit) identifier_commit
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attri... | Return a list of branches conatining that commit |
(module
(function_definition
(function_name_storage_get) function_name_storage_get
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
... | Retrieve a value for the module. |
(module
(function_definition
(function_name_execute) function_name_execute
(parameters
(identifier_self) identifier_self
(identifier_transition) identifier_transition
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(ide... | Queue a transition for execution.
:param transition: The transition |
(module
(function_definition
(function_name_read_file_to_string) function_name_read_file_to_string
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_bytes_string) identifier_bytes_string
(call
... | Read a file into a string. |
(module
(function_definition
(function_name__request_internal) function_name__request_internal
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)pa... | Make request parse response |
(module
(function_definition
(function_name__check_signal) function_name__check_signal
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_... | r"""Check if signal is valid. |
(module
(function_definition
(function_name_mouseMoveEvent) function_name_mouseMoveEvent
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(cal... | Handle mouse over file link. |
(module
(function_definition
(function_name_pages) function_name_pages
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
... | The total number of pages |
(module
(function_definition
(function_name_replant_tree) function_name_replant_tree
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_config) identifier_config
(None) None
)default_parameter
(default_parameter
(identifier_exclude) ide... | Replant the tree with a different config setup
Parameters:
config (str):
The config name to reload
exclude (list):
A list of environment variables to exclude
from forced updates |
(module
(function_definition
(function_name_process_bulk_queue) function_name_process_bulk_queue
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_es_bulk_kwargs) identifier_es_bulk_kwargs
(None) None
)default_parameter
)parameters
(block
... | Process bulk indexing queue.
:param dict es_bulk_kwargs: Passed to
:func:`elasticsearch:elasticsearch.helpers.bulk`. |
(module
(function_definition
(function_name__get_file_md5) function_name__get_file_md5
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_md5_data) identifier_md5_data
(call
(identif... | Compute the md5 checksum of a file |
(module
(function_definition
(function_name__os_x_font_directories) function_name__os_x_font_directories
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_os_x_font_dirs) identifier_os_x_font_dirs
(list
... | Return a sequence of directory paths on a Mac in which fonts are
likely to be located. |
(module
(function_definition
(function_name_directories) function_name_directories
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dirlist_p) identifier_dirlist_p
(call
(identifier_new_gp... | Get a generator that yields all subdirectories in the directory. |
(module
(function_definition
(function_name_pattern_input) function_name_pattern_input
(parameters
(identifier_self) identifier_self
(identifier_question) identifier_question
(default_parameter
(identifier_message) identifier_message
(string_'Invalid entry') string_'Invalid e... | Method for input disallowing special characters, with optionally
specifiable regex pattern and error message. |
(module
(function_definition
(function_name__emit_table_tag) function_name__emit_table_tag
(parameters
(identifier_self) identifier_self
(identifier_open_open_markup) identifier_open_open_markup
(identifier_tag) identifier_tag
(identifier_style) identifier_style
(identifier_paddi... | Emit a table tag. |
(module
(function_definition
(function_name_reverse_timezone) function_name_reverse_timezone
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
(default_parameter
(identifier_at_time) identifier_at_time
(None) None
)default_parameter
... | Find the timezone a point in `query` was in for a specified `at_time`.
.. versionadded:: 1.18.0
.. versionchanged:: 1.18.1
Previously a :class:`KeyError` was raised for a point without
an assigned Olson timezone id (e.g. for Antarctica).
Now this method returns None fo... |
(module
(function_definition
(function_name_percentage_progress) function_name_percentage_progress
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(ide... | Returns a float between 0 and 1, representing the current job's progress in its task.
If total_progress is not given or 0, just return self.progress.
:return: float corresponding to the total percentage progress of the job. |
(module
(function_definition
(function_name_ycbcr2rgb) function_name_ycbcr2rgb
(parameters
(identifier_y__) identifier_y__
(identifier_cb_) identifier_cb_
(identifier_cr_) identifier_cr_
)parameters
(block
(expression_statement
(assignment
(identifier_kb_) ide... | Convert the three YCbCr channels to RGB channels. |
(module
(function_definition
(function_name_canRender) function_name_canRender
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_name) identifier_name
(identifier_ex... | Check extensions. |
(module
(function_definition
(function_name_frequencies_iter) function_name_frequencies_iter
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(attribute
... | Iterates over all non-zero frequencies of logical conjunction mappings in this list
Yields
------
tuple[caspo.core.mapping.Mapping, float]
The next pair (mapping,frequency) |
(module
(function_definition
(function_name__unpack_episode) function_name__unpack_episode
(parameters
(typed_parameter
(identifier_element) identifier_element
(type
(attribute
(identifier_ET) identifier_ET
(identifier_Element) identifier_Element
... | Unpack Episode from episode XML element. |
(module
(function_definition
(function_name_participants) function_name_participants
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
... | List the participants.
Args:
all (bool): If True, return all the items, without pagination
per_page (int): Number of items to retrieve per request
page (int): ID of the page to return (starts with page 1)
as_list (bool): If set to False and no pagination option i... |
(module
(function_definition
(function_name_parse_resources) function_name_parse_resources
(parameters
(identifier_self) identifier_self
(identifier_resources) identifier_resources
)parameters
(block
(expression_statement
(assignment
(attribute
(identifi... | Parses and sets resources in the model using a factory. |
(module
(function_definition
(function_name_will_not_clone) function_name_will_not_clone
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_patte... | Add save but not clone capability in the changeview |
(module
(function_definition
(function_name__start_new_warc_file) function_name__start_new_warc_file
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_meta) identifier_meta
(False) False
)default_parameter
)parameters
(block
(if_statem... | Create and set as current WARC file. |
(module
(function_definition
(function_name_scandir) function_name_scandir
(parameters
(identifier_self) identifier_self
(identifier_relpath) identifier_relpath
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
... | Return paths relative to the root, which are in the given directory and not ignored. |
(module
(function_definition
(function_name__get_mixed_actions) function_name__get_mixed_actions
(parameters
(identifier_tableaux) identifier_tableaux
(identifier_bases) identifier_bases
)parameters
(block
(expression_statement
(assignment
(identifier_nums_actions) ... | From `tableaux` and `bases`, extract non-slack basic variables and
return a tuple of the corresponding, normalized mixed actions.
Parameters
----------
tableaux : tuple(ndarray(float, ndim=2))
Tuple of two arrays containing the tableaux, of shape (n, m+n+1)
and (m, m+n+1), respectively.... |
(module
(function_definition
(function_name_execute_command_in_process) function_name_execute_command_in_process
(parameters
(identifier_command) identifier_command
(default_parameter
(identifier_shell) identifier_shell
(False) False
)default_parameter
(default_paramete... | Executes a specific command in a separate process
:param command: the command to be executed
:param bool shell: Whether to use a shell
:param str cwd: The working directory of the command
:param logger: optional logger instance which can be handed from other module
:return: None |
(module
(function_definition
(function_name_restriction) function_name_restriction
(parameters
(identifier_lam) identifier_lam
(identifier_mu) identifier_mu
(identifier_orbitals) identifier_orbitals
(identifier_U) identifier_U
(identifier_beta) identifier_beta
)parameters
... | Equation that determines the restriction on lagrange multipier |
(module
(function_definition
(function_name_this_year) function_name_this_year
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_start_date) identifier_start_date
(identifie... | Get EighthBlocks from this school year only. |
(module
(function_definition
(function_name_on_arc_right) function_name_on_arc_right
(parameters
(identifier_self) identifier_self
(identifier_speed) identifier_speed
(identifier_radius_mm) identifier_radius_mm
(identifier_distance_mm) identifier_distance_mm
(default_parameter
... | Drive clockwise in a circle with 'radius_mm' for 'distance_mm' |
(module
(function_definition
(function_name_convert_path_to_module_parts) function_name_convert_path_to_module_parts
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_module_parts) identifier_module_parts
... | Convert path to a python file into list of module names. |
(module
(function_definition
(function_name_get_sample) function_name_get_sample
(parameters
(identifier_self) identifier_self
(identifier_md5) identifier_md5
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
... | Get the sample from the data store.
This method first fetches the data from datastore, then cleans it for serialization
and then updates it with 'raw_bytes' item.
Args:
md5: The md5 digest of the sample to be fetched from datastore.
Returns:
The sample ... |
(module
(function_definition
(function_name_processClaim) function_name_processClaim
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_schemaId) identifier_schemaId
(type
(identifier_ID) identifier_ID
)type
)typed_parameter
(ty... | Processes and saves a received Claim for the given Schema.
:param schemaId: The schema ID (reference to claim
definition schema)
:param claims: claims to be processed and saved |
(module
(function_definition
(function_name_request_bytesize) function_name_request_bytesize
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_sum) identifier_sum
(generator_expression
(call
... | The size of in bytes of the bundled field elements. |
(module
(function_definition
(function_name_install_scripts) function_name_install_scripts
(parameters
(identifier_distributions) identifier_distributions
)parameters
(block
(try_statement
(block
(if_statement
(comparison_operator
(string_"__PEX_... | Regenerate the entry_points console_scripts for the named distribution. |
(module
(function_definition
(function_name_start_pan) function_name_start_pan
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_button) identifier_button
)parameters
(block
(expression_statement
(ass... | Called when a pan operation has started.
*x*, *y* are the mouse coordinates in display coords.
button is the mouse button number:
* 1: LEFT
* 2: MIDDLE
* 3: RIGHT
.. note::
Intended to be overridden by new projection types. |
(module
(function_definition
(function_name__do_create) function_name__do_create
(parameters
(identifier_di) identifier_di
)parameters
(block
(expression_statement
(assignment
(identifier_track) identifier_track
(call
(attribute
(subscr... | Function that interprets a dictionary and creates objects |
(module
(function_definition
(function_name_is_disjoint) function_name_is_disjoint
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(identi... | Check whether two Intervals are disjoint.
:param Interval other: The Interval to check disjointedness with. |
(module
(function_definition
(function_name_assertNone) function_name_assertNone
(parameters
(identifier_expr) identifier_expr
(default_parameter
(identifier_message) identifier_message
(None) None
)default_parameter
)parameters
(block
(if_statement
(com... | Assert that expr is None.
:param expr: expression.
:param message: Message set to raised Exception
:raises: TestStepFail if expr is not None. |
(module
(function_definition
(function_name_get_session) function_name_get_session
(parameters
(default_parameter
(identifier_ec) identifier_ec
(None) None
)default_parameter
(default_parameter
(identifier_create) identifier_create
(True) True
)default_p... | ec - engine_name or connection |
(module
(function_definition
(function_name__configure_detail_level) function_name__configure_detail_level
(parameters
(identifier_cls) identifier_cls
(identifier_detail_level) identifier_detail_level
)parameters
(block
(if_statement
(call
(identifier_isinstance) id... | Validate the `detail_level` parameter and return it.
This accepts a string or integer for `detail_level`. |
(module
(function_definition
(function_name__initSwapInfo) function_name__initSwapInfo
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__swap... | Initialize swap partition to device mappings. |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_cls) identifier_cls
(identifier_value) identifier_value
(identifier_context) identifier_context
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_spl... | Returns the value of a key for a given hook in hook_data.
Format of value:
<hook_name>::<key> |
(module
(function_definition
(function_name_LinSpace) function_name_LinSpace
(parameters
(identifier_start) identifier_start
(identifier_stop) identifier_stop
(identifier_num) identifier_num
)parameters
(block
(return_statement
(expression_list
(call
... | Linspace op. |
(module
(function_definition
(function_name_getMask) function_name_getMask
(parameters
(identifier_self) identifier_self
(identifier_ifname) identifier_ifname
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sy... | Get the netmask for an interface.
@param ifname: interface name
@type ifname: string |
(module
(function_definition
(function_name_aes_encrypt) function_name_aes_encrypt
(parameters
(identifier_mode) identifier_mode
(identifier_aes_key) identifier_aes_key
(identifier_aes_iv) identifier_aes_iv
(list_splat_pattern
(identifier_data) identifier_data
)list_splat... | Encrypt data with AES in specified mode. |
(module
(function_definition
(function_name__sibpath) function_name__sibpath
(parameters
(identifier_path) identifier_path
(identifier_sibling) identifier_sibling
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_... | Return the path to a sibling of a file in the filesystem.
This is useful in conjunction with the special C{__file__} attribute
that Python provides for modules, so modules can load associated
resource files.
(Stolen from twisted.python.util) |
(module
(function_definition
(function_name_find_ip6_by_id) function_name_find_ip6_by_id
(parameters
(identifier_self) identifier_self
(identifier_id_ip) identifier_id_ip
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_valid_int_param... | Get an IP6 by ID
:param id_ip: IP6 identifier. Integer value and greater than zero.
:return: Dictionary with the following structure:
::
{'ip': {'id': < id >,
'block1': <block1>,
'block2': <block2>,
'block3': <block3>,
'block4': <bl... |
(module
(function_definition
(function_name_int_to_varbyte) function_name_int_to_varbyte
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_length) identifier_length
... | Convert an integer into a variable length byte.
How it works: the bytes are stored in big-endian (significant bit
first), the highest bit of the byte (mask 0x80) is set when there
are more bytes following. The remaining 7 bits (mask 0x7F) are used
to store the value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.