sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_unmarshal_props) function_name_unmarshal_props
(parameters
(identifier_self) identifier_self
(identifier_fp) identifier_fp
(default_parameter
(identifier_cls) identifier_cls
(None) None
)default_parameter
(default_parameter
(identifier_id) identifier_id
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_fp) identifier_fp
(identifier_str) identifier_str
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_fp) identifier_fp
(identifier_unicode) identifier_unicode
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(identifier_parseString) identifier_parseString
(argument_list
(identifier_fp) identifier_fp
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_doc) identifier_doc
(call
(identifier_parse) identifier_parse
(argument_list
(identifier_fp) identifier_fp
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_props_from_doc) identifier_get_props_from_doc
)attribute
(argument_list
(identifier_cls) identifier_cls
(identifier_id) identifier_id
(identifier_doc) identifier_doc
)argument_list
)call
)return_statement
)block
)function_definition
)module | Same as unmarshalling an object, except it returns
from "get_props_from_doc" |
(module
(function_definition
(function_name_find_module) function_name_find_module
(parameters
(identifier_self) identifier_self
(identifier_modname) identifier_modname
(default_parameter
(identifier_folder) identifier_folder
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_src) identifier_src
(call
(attribute
(identifier_self) identifier_self
(identifier_get_source_folders) identifier_get_source_folders
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier__find_module_in_folder) identifier__find_module_in_folder
(argument_list
(identifier_src) identifier_src
(identifier_modname) identifier_modname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_module) identifier_module
(None) None
)comparison_operator
(block
(return_statement
(identifier_module) identifier_module
)return_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_src) identifier_src
(call
(attribute
(identifier_self) identifier_self
(identifier_get_python_path_folders) identifier_get_python_path_folders
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier__find_module_in_folder) identifier__find_module_in_folder
(argument_list
(identifier_src) identifier_src
(identifier_modname) identifier_modname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_module) identifier_module
(None) None
)comparison_operator
(block
(return_statement
(identifier_module) identifier_module
)return_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_folder) identifier_folder
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier__find_module_in_folder) identifier__find_module_in_folder
(argument_list
(identifier_folder) identifier_folder
(identifier_modname) identifier_modname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_module) identifier_module
(None) None
)comparison_operator
(block
(return_statement
(identifier_module) identifier_module
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Returns a resource corresponding to the given module
returns None if it can not be found |
(module
(function_definition
(function_name_get_all_classes) function_name_get_all_classes
(parameters
(identifier_module_name) identifier_module_name
)parameters
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(attribute
(identifier_importlib) identifier_importlib
(identifier_import_module) identifier_import_module
)attribute
(argument_list
(identifier_module_name) identifier_module_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_getmembers) identifier_getmembers
(argument_list
(identifier_module) identifier_module
(lambda
(lambda_parameters
(identifier_m) identifier_m
)lambda_parameters
(boolean_operator
(call
(identifier_isclass) identifier_isclass
(argument_list
(identifier_m) identifier_m
)argument_list
)call
(not_operator
(call
(identifier_isabstract) identifier_isabstract
(argument_list
(identifier_m) identifier_m
)argument_list
)call
)not_operator
)boolean_operator
)lambda
)argument_list
)call
)return_statement
)block
)function_definition
)module | Load all non-abstract classes from package |
(module
(function_definition
(function_name_kelvin_to_rgb) function_name_kelvin_to_rgb
(parameters
(identifier_kelvin) identifier_kelvin
)parameters
(block
(expression_statement
(assignment
(identifier_temp) identifier_temp
(binary_operator
(identifier_kelvin) identifier_kelvin
(float_100.0) float_100.0
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_temp) identifier_temp
(integer_66) integer_66
)comparison_operator
(block
(expression_statement
(assignment
(identifier_red) identifier_red
(integer_255) integer_255
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_red) identifier_red
(binary_operator
(float_329.698727446) float_329.698727446
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_temp) identifier_temp
(integer_60) integer_60
)binary_operator
)parenthesized_expression
(unary_operator
(float_0.1332047592) float_0.1332047592
)unary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_temp) identifier_temp
(integer_66) integer_66
)comparison_operator
(block
(expression_statement
(assignment
(identifier_green) identifier_green
(binary_operator
(binary_operator
(float_99.4708025861) float_99.4708025861
(call
(attribute
(identifier_math) identifier_math
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_temp) identifier_temp
)argument_list
)call
)binary_operator
(float_161.1195681661) float_161.1195681661
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_green) identifier_green
(binary_operator
(float_288.1221695283) float_288.1221695283
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_temp) identifier_temp
(integer_60) integer_60
)binary_operator
)parenthesized_expression
(unary_operator
(float_0.0755148492) float_0.0755148492
)unary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_temp) identifier_temp
(integer_66) integer_66
)comparison_operator
(block
(expression_statement
(assignment
(identifier_blue) identifier_blue
(integer_255) integer_255
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_temp) identifier_temp
(integer_19) integer_19
)comparison_operator
(block
(expression_statement
(assignment
(identifier_blue) identifier_blue
(integer_0) integer_0
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_blue) identifier_blue
(binary_operator
(binary_operator
(float_138.5177312231) float_138.5177312231
(call
(attribute
(identifier_math) identifier_math
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(identifier_temp) identifier_temp
(integer_10) integer_10
)binary_operator
)argument_list
)call
)binary_operator
(float_305.0447927307) float_305.0447927307
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_correct_output) identifier_correct_output
(argument_list
(identifier_c) identifier_c
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(tuple
(identifier_red) identifier_red
(identifier_green) identifier_green
(identifier_blue) identifier_blue
)tuple
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Convert a color temperature given in kelvin to an approximate RGB value.
:param kelvin: Color temp in K
:return: Tuple of (r, g, b), equivalent color for the temperature |
(module
(function_definition
(function_name_ports) function_name_ports
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__mutex) identifier__mutex
)attribute
)with_item
)with_clause
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__ports) identifier__ports
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__ports) identifier__ports
)attribute
(list_comprehension
(call
(attribute
(identifier_ports) identifier_ports
(identifier_parse_port) identifier_parse_port
)attribute
(argument_list
(identifier_port) identifier_port
(identifier_self) identifier_self
)argument_list
)call
(line_continuation_\) line_continuation_\
(for_in_clause
(identifier_port) identifier_port
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__obj) identifier__obj
)attribute
(identifier_get_ports) identifier_get_ports
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__ports) identifier__ports
)attribute
)return_statement
)block
)function_definition
)module | The list of all ports belonging to this component. |
(module
(function_definition
(function_name_after_match) function_name_after_match
(parameters
(identifier_self) identifier_self
(identifier_func) identifier_func
(default_parameter
(identifier_full_fallback) identifier_full_fallback
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_iterator) identifier_iterator
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_iterator) identifier_iterator
(block
(if_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_item) identifier_item
)argument_list
)call
(block
(return_statement
(identifier_iterator) identifier_iterator
)return_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_full_fallback) identifier_full_fallback
(block
(expression_statement
(assignment
(identifier_iterator) identifier_iterator
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_iterator) identifier_iterator
)return_statement
)block
)function_definition
)module | Returns an iterator for all the elements after the first
match. If `full_fallback` is `True`, it will return all the
messages if the function never matched. |
(module
(function_definition
(function_name_get_evaluation_parameter) function_name_get_evaluation_parameter
(parameters
(identifier_self) identifier_self
(identifier_parameter_name) identifier_parameter_name
(default_parameter
(identifier_default_value) identifier_default_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string_"evaluation_parameters") string_"evaluation_parameters"
(attribute
(identifier_self) identifier_self
(identifier__expectations_config) identifier__expectations_config
)attribute
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_parameter_name) identifier_parameter_name
(subscript
(attribute
(identifier_self) identifier_self
(identifier__expectations_config) identifier__expectations_config
)attribute
(string_'evaluation_parameters') string_'evaluation_parameters'
)subscript
)comparison_operator
)boolean_operator
(block
(return_statement
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__expectations_config) identifier__expectations_config
)attribute
(string_'evaluation_parameters') string_'evaluation_parameters'
)subscript
(identifier_parameter_name) identifier_parameter_name
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_default_value) identifier_default_value
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get an evaluation parameter value that has been stored in meta.
Args:
parameter_name (string): The name of the parameter to store.
default_value (any): The default value to be returned if the parameter is not found.
Returns:
The current value of the evaluation parameter. |
(module
(function_definition
(function_name_get_cached) function_name_get_cached
(parameters
(identifier_self) identifier_self
(identifier_link) identifier_link
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_link) identifier_link
(string_'uri') string_'uri'
)argument_list
)call
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_id_map) identifier_id_map
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_link) identifier_link
(identifier_uri) identifier_uri
)attribute
(identifier_default) identifier_default
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_id_map) identifier_id_map
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_link) identifier_link
(identifier_default) identifier_default
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieves a cached navigator from the id_map.
Either a Link object or a bare uri string may be passed in. |
(module
(function_definition
(function_name_jtype) function_name_jtype
(parameters
(identifier_c) identifier_c
)parameters
(block
(expression_statement
(assignment
(identifier_ct) identifier_ct
(subscript
(identifier_c) identifier_c
(string_'type') string_'type'
)subscript
)assignment
)expression_statement
(return_statement
(conditional_expression
(identifier_ct) identifier_ct
(comparison_operator
(identifier_ct) identifier_ct
(string_'literal') string_'literal'
)comparison_operator
(call
(attribute
(string_'{}, {}') string_'{}, {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ct) identifier_ct
(call
(attribute
(identifier_c) identifier_c
(identifier_get) identifier_get
)attribute
(argument_list
(string_'xml:lang') string_'xml:lang'
)argument_list
)call
)argument_list
)call
)conditional_expression
)return_statement
)block
)function_definition
)module | Return the a string with the data type of a value, for JSON data |
(module
(function_definition
(function_name_retryable) function_name_retryable
(parameters
(default_parameter
(identifier_retryer) identifier_retryer
(identifier_retry_ex) identifier_retry_ex
)default_parameter
(default_parameter
(identifier_times) identifier_times
(integer_3) integer_3
)default_parameter
(default_parameter
(identifier_cap) identifier_cap
(integer_120000) integer_120000
)default_parameter
)parameters
(block
(function_definition
(function_name__retryable) function_name__retryable
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_f) identifier_f
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_retryer) identifier_retryer
(argument_list
(lambda
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)lambda
(identifier_times) identifier_times
(identifier_cap) identifier_cap
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier__retryable) identifier__retryable
)return_statement
)block
)function_definition
)module | A decorator to make a function retry. By default the retry
occurs when an exception is thrown, but this may be changed
by modifying the ``retryer`` argument.
See also :py:func:`retry_ex` and :py:func:`retry_bool`. By
default :py:func:`retry_ex` is used as the retry function.
Note that the decorator must be called even if not given
keyword arguments.
:param function retryer: A function to handle retries
:param int times: Number of times to retry on initial failure
:param int cap: Maximum wait time in milliseconds
:Example:
::
@retryable()
def can_fail():
....
@retryable(retryer=retry_bool, times=10)
def can_fail_bool():
.... |
(module
(function_definition
(function_name_CheckProg) function_name_CheckProg
(parameters
(identifier_context) identifier_context
(identifier_prog_name) identifier_prog_name
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_SCons) identifier_SCons
(identifier_Conftest) identifier_Conftest
)attribute
(identifier_CheckProg) identifier_CheckProg
)attribute
(argument_list
(identifier_context) identifier_context
(identifier_prog_name) identifier_prog_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_context) identifier_context
(identifier_did_show_result) identifier_did_show_result
)attribute
(integer_1) integer_1
)assignment
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Simple check if a program exists in the path. Returns the path
for the application, or None if not found. |
(module
(function_definition
(function_name__inner_search) function_name__inner_search
(parameters
(identifier_obj) identifier_obj
(identifier_glob) identifier_glob
(identifier_separator) identifier_separator
(default_parameter
(identifier_dirs) identifier_dirs
(True) True
)default_parameter
(default_parameter
(identifier_leaves) identifier_leaves
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_path) identifier_path
(call
(attribute
(attribute
(identifier_dpath) identifier_dpath
(identifier_path) identifier_path
)attribute
(identifier_paths) identifier_paths
)attribute
(argument_list
(identifier_obj) identifier_obj
(identifier_dirs) identifier_dirs
(identifier_leaves) identifier_leaves
(keyword_argument
(identifier_skip) identifier_skip
(True) True
)keyword_argument
)argument_list
)call
(block
(if_statement
(call
(attribute
(attribute
(identifier_dpath) identifier_dpath
(identifier_path) identifier_path
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_glob) identifier_glob
)argument_list
)call
(block
(expression_statement
(yield
(identifier_path) identifier_path
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Search the object paths that match the glob. |
(module
(function_definition
(function_name_disable_cert_validation) function_name_disable_cert_validation
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_current_context) identifier_current_context
(attribute
(identifier_ssl) identifier_ssl
(identifier__create_default_https_context) identifier__create_default_https_context
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_ssl) identifier_ssl
(identifier__create_default_https_context) identifier__create_default_https_context
)attribute
(attribute
(identifier_ssl) identifier_ssl
(identifier__create_unverified_context) identifier__create_unverified_context
)attribute
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(yield
)yield
)expression_statement
)block
(finally_clause
(block
(expression_statement
(assignment
(attribute
(identifier_ssl) identifier_ssl
(identifier__create_default_https_context) identifier__create_default_https_context
)attribute
(identifier_current_context) identifier_current_context
)assignment
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Context manager to temporarily disable certificate validation in the standard SSL
library.
Note: This should not be used in production code but is sometimes useful for
troubleshooting certificate validation issues.
By design, the standard SSL library does not provide a way to disable verification
of the server side certificate. However, a patch to disable validation is described
by the library developers. This context manager allows applying the patch for
specific sections of code. |
(module
(function_definition
(function_name_solve) function_name_solve
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_board) identifier_board
(call
(identifier_Board) identifier_Board
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_length) identifier_length
)attribute
(attribute
(identifier_self) identifier_self
(identifier_height) identifier_height
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_permutations) identifier_permutations
(call
(identifier_Permutations) identifier_Permutations
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pieces) identifier_pieces
)attribute
(attribute
(identifier_self) identifier_self
(identifier_vector_size) identifier_vector_size
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_positions) identifier_positions
(identifier_permutations) identifier_permutations
(block
(expression_statement
(call
(attribute
(identifier_board) identifier_board
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_level) identifier_level
(tuple_pattern
(identifier_piece_uid) identifier_piece_uid
(identifier_linear_position) identifier_linear_position
)tuple_pattern
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_positions) identifier_positions
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_board) identifier_board
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_piece_uid) identifier_piece_uid
(identifier_linear_position) identifier_linear_position
)argument_list
)call
)expression_statement
)block
(except_clause
(tuple
(identifier_OccupiedPosition) identifier_OccupiedPosition
(identifier_VulnerablePosition) identifier_VulnerablePosition
(identifier_AttackablePiece) identifier_AttackablePiece
)tuple
(block
(expression_statement
(call
(attribute
(identifier_permutations) identifier_permutations
(identifier_skip_branch) identifier_skip_branch
)attribute
(argument_list
(identifier_level) identifier_level
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_result_counter) identifier_result_counter
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(yield
(identifier_board) identifier_board
)yield
)expression_statement
)block
)else_clause
)for_statement
)block
)for_statement
)block
)function_definition
)module | Solve all possible positions of pieces within the context.
Depth-first, tree-traversal of the product space. |
(module
(function_definition
(function_name_delete_servers) function_name_delete_servers
(parameters
(list_splat_pattern
(identifier_servers) identifier_servers
)list_splat_pattern
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_test) identifier_test
(call
(attribute
(identifier_options) identifier_options
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'test') string_'test'
(False) False
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_commit) identifier_commit
(call
(attribute
(identifier_options) identifier_options
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'commit') string_'commit'
(True) True
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'net.load_template') string_'net.load_template'
)subscript
(argument_list
(string_'delete_ntp_servers') string_'delete_ntp_servers'
(keyword_argument
(identifier_servers) identifier_servers
(identifier_servers) identifier_servers
)keyword_argument
(keyword_argument
(identifier_test) identifier_test
(identifier_test) identifier_test
)keyword_argument
(keyword_argument
(identifier_commit) identifier_commit
(identifier_commit) identifier_commit
)keyword_argument
(keyword_argument
(identifier_inherit_napalm_device) identifier_inherit_napalm_device
(identifier_napalm_device) identifier_napalm_device
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Removes NTP servers configured on the device.
:param servers: list of IP Addresses/Domain Names to be removed as NTP
servers
:param test (bool): discard loaded config. By default ``test`` is False
(will not dicard the changes)
:param commit (bool): commit loaded config. By default ``commit`` is True
(will commit the changes). Useful when the user does not want to commit
after each change, but after a couple.
By default this function will commit the config changes (if any). To load
without committing, use the ``commit`` option. For dry run use the ``test``
argument.
CLI Example:
.. code-block:: bash
salt '*' ntp.delete_servers 8.8.8.8 time.apple.com
salt '*' ntp.delete_servers 172.17.17.1 test=True # only displays the diff
salt '*' ntp.delete_servers 192.168.0.1 commit=False # preserves the changes, but does not commit |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
(call
(identifier_PyStratumStyle) identifier_PyStratumStyle
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_application) identifier_get_application
)attribute
(argument_list
)argument_list
)call
(identifier_find) identifier_find
)attribute
(argument_list
(string_'constants') string_'constants'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_command) identifier_command
(identifier_execute) identifier_execute
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_ret) identifier_ret
(block
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_application) identifier_get_application
)attribute
(argument_list
)argument_list
)call
(identifier_find) identifier_find
)attribute
(argument_list
(string_'loader') string_'loader'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_command) identifier_command
(identifier_execute) identifier_execute
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_ret) identifier_ret
(block
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_application) identifier_get_application
)attribute
(argument_list
)argument_list
)call
(identifier_find) identifier_find
)attribute
(argument_list
(string_'wrapper') string_'wrapper'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_command) identifier_command
(identifier_execute) identifier_execute
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
(identifier_writeln) identifier_writeln
)attribute
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Executes the actual Stratum program. |
(module
(function_definition
(function_name_push_rule) function_name_push_rule
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_PolicyException) identifier_PolicyException
(argument_list
(binary_operator
(string_"Rule recursion detected; invocation chain: %s -> %s") string_"Rule recursion detected; invocation chain: %s -> %s"
(tuple
(call
(attribute
(string_' -> ') string_' -> '
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
)argument_list
)call
(identifier_name) identifier_name
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pc) identifier__pc
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__step) identifier__step
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(yield
)yield
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_exc_info) identifier_exc_info
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_reported) identifier_reported
)attribute
)not_operator
(block
(expression_statement
(assignment
(identifier_log) identifier_log
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(string_'policies') string_'policies'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warn) identifier_warn
)attribute
(argument_list
(binary_operator
(string_"Exception raised while evaluating rule %r: %s") string_"Exception raised while evaluating rule %r: %s"
(tuple
(identifier_name) identifier_name
(identifier_exc) identifier_exc
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_reported) identifier_reported
)attribute
(True) True
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_reraise) identifier_reraise
)attribute
(argument_list
(list_splat
(identifier_exc_info) identifier_exc_info
)list_splat
)argument_list
)call
)expression_statement
)block
)except_clause
(finally_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pc) identifier__pc
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__step) identifier__step
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Allow one rule to be evaluated in the context of another.
This allows keeping track of the rule names during nested rule
evaluation.
:param name: The name of the nested rule to be evaluated.
:returns: A context manager, suitable for use with the
``with`` statement. No value is generated. |
(module
(function_definition
(function_name_has_axis) function_name_has_axis
(parameters
(identifier_self) identifier_self
(identifier_axis) identifier_axis
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
(attribute
(identifier_EventType) identifier_EventType
(identifier_POINTER_AXIS) identifier_POINTER_AXIS
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_AttributeError) identifier_AttributeError
(argument_list
(call
(attribute
(identifier__wrong_meth) identifier__wrong_meth
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__libinput) identifier__libinput
)attribute
(identifier_libinput_event_pointer_has_axis) identifier_libinput_event_pointer_has_axis
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__handle) identifier__handle
)attribute
(identifier_axis) identifier_axis
)argument_list
)call
)return_statement
)block
)function_definition
)module | Check if the event has a valid value for the given axis.
If this method returns True for an axis and :meth:`get_axis_value`
returns a value of 0, the event is a scroll stop event.
For pointer events that are not of type
:attr:`~libinput.constant.EventType.POINTER_AXIS`, this method raises
:exc:`AttributeError`.
Args:
axis (~libinput.constant.PointerAxis): The axis to check.
Returns:
bool: True if this event contains a value for this axis.
Raises:
AttributeError |
(module
(function_definition
(function_name_get_local_admins) function_name_get_local_admins
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_admin_list) identifier_admin_list
(call
(identifier_get_users_config) identifier_get_users_config
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'users') string_'users'
(subscript
(identifier_admin_list) identifier_admin_list
(string_'result') string_'result'
)subscript
)comparison_operator
(block
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(subscript
(subscript
(identifier_admin_list) identifier_admin_list
(string_'result') string_'result'
)subscript
(string_'users') string_'users'
)subscript
(string_'entry') string_'entry'
)subscript
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_entry) identifier_entry
(subscript
(subscript
(subscript
(identifier_admin_list) identifier_admin_list
(string_'result') string_'result'
)subscript
(string_'users') string_'users'
)subscript
(string_'entry') string_'entry'
)subscript
(block
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_entry) identifier_entry
(string_'name') string_'name'
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(subscript
(subscript
(subscript
(identifier_admin_list) identifier_admin_list
(string_'result') string_'result'
)subscript
(string_'users') string_'users'
)subscript
(string_'entry') string_'entry'
)subscript
(string_'name') string_'name'
)subscript
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Show all local administrator accounts.
CLI Example:
.. code-block:: bash
salt '*' panos.get_local_admins |
(module
(function_definition
(function_name_update_director) function_name_update_director
(parameters
(identifier_self) identifier_self
(identifier_service_id) identifier_service_id
(identifier_version_number) identifier_version_number
(identifier_name_key) identifier_name_key
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(identifier_self) identifier_self
(identifier__formdata) identifier__formdata
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
(attribute
(identifier_FastlyDirector) identifier_FastlyDirector
(identifier_FIELDS) identifier_FIELDS
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_self) identifier_self
(identifier__fetch) identifier__fetch
)attribute
(argument_list
(binary_operator
(string_"/service/%s/version/%d/director/%s") string_"/service/%s/version/%d/director/%s"
(tuple
(identifier_service_id) identifier_service_id
(identifier_version_number) identifier_version_number
(identifier_name_key) identifier_name_key
)tuple
)binary_operator
(keyword_argument
(identifier_method) identifier_method
(string_"PUT") string_"PUT"
)keyword_argument
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_FastlyDirector) identifier_FastlyDirector
(argument_list
(identifier_self) identifier_self
(identifier_content) identifier_content
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update the director for a particular service and version. |
(module
(function_definition
(function_name_is_not_null_predicate) function_name_is_not_null_predicate
(parameters
(identifier_raw_crash) identifier_raw_crash
(identifier_dumps) identifier_dumps
(identifier_processed_crash) identifier_processed_crash
(identifier_processor) identifier_processor
(default_parameter
(identifier_key) identifier_key
(string_'') string_''
)default_parameter
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_bool) identifier_bool
(argument_list
(subscript
(identifier_raw_crash) identifier_raw_crash
(identifier_key) identifier_key
)subscript
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | a predicate that converts the key'd source to boolean.
parameters:
raw_crash - dict
dumps - placeholder in a fat interface - unused
processed_crash - placeholder in a fat interface - unused
processor - placeholder in a fat interface - unused |
(module
(function_definition
(function_name_make_label) function_name_make_label
(parameters
(identifier_var_name) identifier_var_name
(identifier_selection) identifier_selection
(default_parameter
(identifier_position) identifier_position
(string_"below") string_"below"
)default_parameter
)parameters
(block
(if_statement
(identifier_selection) identifier_selection
(block
(expression_statement
(assignment
(identifier_sel) identifier_sel
(call
(identifier_selection_to_string) identifier_selection_to_string
(argument_list
(identifier_selection) identifier_selection
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_position) identifier_position
(string_"below") string_"below"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(string_"\n") string_"\n"
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_position) identifier_position
(string_"beside") string_"beside"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(string_" ") string_" "
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(assignment
(identifier_sel) identifier_sel
(string_"") string_""
)assignment
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(string_"{}{}{}") string_"{}{}{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_var_name) identifier_var_name
(identifier_sep) identifier_sep
(identifier_sel) identifier_sel
)argument_list
)call
)return_statement
)block
)function_definition
)module | Consistent labelling for plots.
Parameters
----------
var_name : str
Name of the variable
selection : dict[Any] -> Any
Coordinates of the variable
position : whether to position the coordinates' label "below" (default) or "beside" the name
of the variable
Returns
-------
label
A text representation of the label |
(module
(function_definition
(function_name_mapPartitions) function_name_mapPartitions
(parameters
(identifier_self) identifier_self
(identifier_f) identifier_f
(default_parameter
(identifier_preservesPartitioning) identifier_preservesPartitioning
(False) False
)default_parameter
)parameters
(block
(return_statement
(parenthesized_expression
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_mapPartitionsWithIndex) identifier_mapPartitionsWithIndex
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_i) identifier_i
(identifier_p) identifier_p
)lambda_parameters
(call
(identifier_f) identifier_f
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)lambda
(identifier_preservesPartitioning) identifier_preservesPartitioning
)argument_list
)call
(identifier_transform) identifier_transform
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_rdd) identifier_rdd
)lambda_parameters
(call
(attribute
(identifier_rdd) identifier_rdd
(identifier_setName) identifier_setName
)attribute
(argument_list
(call
(attribute
(string_'{}:{}') string_'{}:{}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_rdd) identifier_rdd
(identifier_prev) identifier_prev
)attribute
(identifier_name) identifier_name
)attribute
(argument_list
)argument_list
)call
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
)lambda
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Map partitions.
:param f: mapping function
:rtype: DStream |
(module
(function_definition
(function_name_next_blob) function_name_next_blob
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_blob_file) identifier_blob_file
(attribute
(identifier_self) identifier_self
(identifier_blob_file) identifier_blob_file
)attribute
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_preamble) identifier_preamble
(call
(identifier_DAQPreamble) identifier_DAQPreamble
(argument_list
(keyword_argument
(identifier_file_obj) identifier_file_obj
(identifier_blob_file) identifier_blob_file
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_struct) identifier_struct
(identifier_error) identifier_error
)attribute
(block
(raise_statement
(identifier_StopIteration) identifier_StopIteration
)raise_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_data_type) identifier_data_type
(subscript
(identifier_DATA_TYPES) identifier_DATA_TYPES
(attribute
(identifier_preamble) identifier_preamble
(identifier_data_type) identifier_data_type
)attribute
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"Unkown datatype: {0}") string_"Unkown datatype: {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_preamble) identifier_preamble
(identifier_data_type) identifier_data_type
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_data_type) identifier_data_type
(string_'Unknown') string_'Unknown'
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_blob) identifier_blob
(call
(identifier_Blob) identifier_Blob
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_blob) identifier_blob
(identifier_data_type) identifier_data_type
)subscript
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_blob) identifier_blob
(string_'DAQPreamble') string_'DAQPreamble'
)subscript
(identifier_preamble) identifier_preamble
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_data_type) identifier_data_type
(string_'DAQSummaryslice') string_'DAQSummaryslice'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_daq_frame) identifier_daq_frame
(call
(identifier_DAQSummaryslice) identifier_DAQSummaryslice
(argument_list
(identifier_blob_file) identifier_blob_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_blob) identifier_blob
(identifier_data_type) identifier_data_type
)subscript
(identifier_daq_frame) identifier_daq_frame
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_blob) identifier_blob
(string_'DAQHeader') string_'DAQHeader'
)subscript
(attribute
(identifier_daq_frame) identifier_daq_frame
(identifier_header) identifier_header
)attribute
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_data_type) identifier_data_type
(string_'DAQEvent') string_'DAQEvent'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_daq_frame) identifier_daq_frame
(call
(identifier_DAQEvent) identifier_DAQEvent
(argument_list
(identifier_blob_file) identifier_blob_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_blob) identifier_blob
(identifier_data_type) identifier_data_type
)subscript
(identifier_daq_frame) identifier_daq_frame
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_blob) identifier_blob
(string_'DAQHeader') string_'DAQHeader'
)subscript
(attribute
(identifier_daq_frame) identifier_daq_frame
(identifier_header) identifier_header
)attribute
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_"Skipping DAQ frame with data type code '{0}'.") string_"Skipping DAQ frame with data type code '{0}'."
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_preamble) identifier_preamble
(identifier_data_type) identifier_data_type
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_blob_file) identifier_blob_file
(identifier_seek) identifier_seek
)attribute
(argument_list
(binary_operator
(attribute
(identifier_preamble) identifier_preamble
(identifier_length) identifier_length
)attribute
(attribute
(identifier_DAQPreamble) identifier_DAQPreamble
(identifier_size) identifier_size
)attribute
)binary_operator
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_blob) identifier_blob
)return_statement
)block
)function_definition
)module | Get the next frame from file |
(module
(function_definition
(function_name_mode_readable) function_name_mode_readable
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mode) identifier_mode
(attribute
(identifier_self) identifier_self
(identifier__raw_mode) identifier__raw_mode
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_MANUAL) identifier_MANUAL
)attribute
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(string_"manual") string_"manual"
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_temperature) identifier_target_temperature
)attribute
(attribute
(identifier_self) identifier_self
(identifier_min_temp) identifier_min_temp
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" off") string_" off"
)augmented_assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_target_temperature) identifier_target_temperature
)attribute
(attribute
(identifier_self) identifier_self
(identifier_max_temp) identifier_max_temp
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" on") string_" on"
)augmented_assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(binary_operator
(string_" (%sC)") string_" (%sC)"
(attribute
(identifier_self) identifier_self
(identifier_target_temperature) identifier_target_temperature
)attribute
)binary_operator
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(string_"auto") string_"auto"
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_AWAY) identifier_AWAY
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" holiday") string_" holiday"
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_BOOST) identifier_BOOST
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" boost") string_" boost"
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_DST) identifier_DST
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" dst") string_" dst"
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_WINDOW) identifier_WINDOW
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" window") string_" window"
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_LOCKED) identifier_LOCKED
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" locked") string_" locked"
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_mode) identifier_mode
(identifier_LOW_BATTERY) identifier_LOW_BATTERY
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(string_" low battery") string_" low battery"
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Return a readable representation of the mode.. |
(module
(function_definition
(function_name_get_utc_timestamp) function_name_get_utc_timestamp
(parameters
(identifier_self) identifier_self
(identifier_handle) identifier_handle
)parameters
(block
(expression_statement
(assignment
(identifier_fpath) identifier_fpath
(call
(attribute
(identifier_self) identifier_self
(identifier__fpath_from_handle) identifier__fpath_from_handle
)attribute
(argument_list
(identifier_handle) identifier_handle
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_datetime_obj) identifier_datetime_obj
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcfromtimestamp) identifier_utcfromtimestamp
)attribute
(argument_list
(attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_stat) identifier_stat
)attribute
(argument_list
(identifier_fpath) identifier_fpath
)argument_list
)call
(identifier_st_mtime) identifier_st_mtime
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_timestamp) identifier_timestamp
(argument_list
(identifier_datetime_obj) identifier_datetime_obj
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the UTC timestamp. |
(module
(function_definition
(function_name_get_objective_banks) function_name_get_objective_banks
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_catalogs) identifier_catalogs
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_provider_session) identifier__get_provider_session
)attribute
(argument_list
(string_'objective_bank_lookup_session') string_'objective_bank_lookup_session'
)argument_list
)call
(identifier_get_objective_banks) identifier_get_objective_banks
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cat_list) identifier_cat_list
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_cat) identifier_cat
(identifier_catalogs) identifier_catalogs
(block
(expression_statement
(call
(attribute
(identifier_cat_list) identifier_cat_list
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_ObjectiveBank) identifier_ObjectiveBank
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__provider_manager) identifier__provider_manager
)attribute
(identifier_cat) identifier_cat
(attribute
(identifier_self) identifier_self
(identifier__runtime) identifier__runtime
)attribute
(attribute
(identifier_self) identifier_self
(identifier__proxy) identifier__proxy
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_ObjectiveBankList) identifier_ObjectiveBankList
(argument_list
(identifier_cat_list) identifier_cat_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Pass through to provider ObjectiveBankLookupSession.get_objective_banks |
(module
(function_definition
(function_name_similarity) function_name_similarity
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_other) identifier_other
(type
(identifier_Trigram) identifier_Trigram
)type
)typed_parameter
)parameters
(type
(identifier_float) identifier_float
)type
(block
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(generator_expression
(call
(attribute
(identifier_self) identifier_self
(identifier__match) identifier__match
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_other) identifier_other
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier_trigrams) identifier_trigrams
)attribute
)for_in_clause
)generator_expression
(keyword_argument
(identifier_default) identifier_default
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find the best similarity within known trigrams. |
(module
(function_definition
(function_name_iterate) function_name_iterate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_resource_type) identifier_resource_type
(None) None
)default_parameter
)parameters
(block
(for_statement
(pattern_list
(identifier_logicalId) identifier_logicalId
(identifier_resource_dict) identifier_resource_dict
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_resources) identifier_resources
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_resource) identifier_resource
(call
(identifier_SamResource) identifier_SamResource
(argument_list
(identifier_resource_dict) identifier_resource_dict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_needs_filter) identifier_needs_filter
(call
(attribute
(identifier_resource) identifier_resource
(identifier_valid) identifier_valid
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_resource_type) identifier_resource_type
(block
(expression_statement
(assignment
(identifier_needs_filter) identifier_needs_filter
(boolean_operator
(identifier_needs_filter) identifier_needs_filter
(comparison_operator
(attribute
(identifier_resource) identifier_resource
(identifier_type) identifier_type
)attribute
(identifier_resource_type) identifier_resource_type
)comparison_operator
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_needs_filter) identifier_needs_filter
(block
(expression_statement
(yield
(expression_list
(identifier_logicalId) identifier_logicalId
(identifier_resource) identifier_resource
)expression_list
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Iterate over all resources within the SAM template, optionally filtering by type
:param string resource_type: Optional type to filter the resources by
:yields (string, SamResource): Tuple containing LogicalId and the resource |
(module
(function_definition
(function_name_add_whitespace_hook) function_name_add_whitespace_hook
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_data) identifier_data
(type
(attribute
(attribute
(identifier_cmd2) identifier_cmd2
(identifier_plugin) identifier_plugin
)attribute
(identifier_PostparsingData) identifier_PostparsingData
)attribute
)type
)typed_parameter
)parameters
(type
(attribute
(attribute
(identifier_cmd2) identifier_cmd2
(identifier_plugin) identifier_plugin
)attribute
(identifier_PostparsingData) identifier_PostparsingData
)attribute
)type
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(attribute
(attribute
(identifier_data) identifier_data
(identifier_statement) identifier_statement
)attribute
(identifier_command) identifier_command
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command_pattern) identifier_command_pattern
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'^([^\s\d]+)(\d+)') string_r'^([^\s\d]+)(\d+)'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_command_pattern) identifier_command_pattern
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_command) identifier_command
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(expression_statement
(assignment
(attribute
(identifier_data) identifier_data
(identifier_statement) identifier_statement
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_statement_parser) identifier_statement_parser
)attribute
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(attribute
(string_"{} {} {}") string_"{} {} {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
(conditional_expression
(string_'') string_''
(comparison_operator
(attribute
(attribute
(identifier_data) identifier_data
(identifier_statement) identifier_statement
)attribute
(identifier_args) identifier_args
)attribute
(None) None
)comparison_operator
(attribute
(attribute
(identifier_data) identifier_data
(identifier_statement) identifier_statement
)attribute
(identifier_args) identifier_args
)attribute
)conditional_expression
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | A hook to split alphabetic command names immediately followed by a number.
l24 -> l 24
list24 -> list 24
list 24 -> list 24 |
(module
(function_definition
(function_name_get_items_of_reminder_per_page) function_name_get_items_of_reminder_per_page
(parameters
(identifier_self) identifier_self
(identifier_reminder_id) identifier_reminder_id
(default_parameter
(identifier_per_page) identifier_per_page
(integer_1000) integer_1000
)default_parameter
(default_parameter
(identifier_page) identifier_page
(integer_1) integer_1
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get_resource_per_page) identifier__get_resource_per_page
)attribute
(argument_list
(keyword_argument
(identifier_resource) identifier_resource
(identifier_REMINDER_ITEMS) identifier_REMINDER_ITEMS
)keyword_argument
(keyword_argument
(identifier_per_page) identifier_per_page
(identifier_per_page) identifier_per_page
)keyword_argument
(keyword_argument
(identifier_page) identifier_page
(identifier_page) identifier_page
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_'reminder_id') string_'reminder_id'
(identifier_reminder_id) identifier_reminder_id
)pair
)dictionary
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get items of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list |
(module
(function_definition
(function_name_annotate) function_name_annotate
(parameters
(identifier_results) identifier_results
(identifier_settings) identifier_settings
)parameters
(block
(expression_statement
(assignment
(identifier_annotations) identifier_annotations
(generator_expression
(call
(identifier_generate_annotation) identifier_generate_annotation
(argument_list
(identifier_result) identifier_result
(identifier_setting) identifier_setting
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_result) identifier_result
(identifier_setting) identifier_setting
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_results) identifier_results
(identifier_settings) identifier_settings
)argument_list
)call
)for_in_clause
)generator_expression
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(generator_expression
(identifier_annot) identifier_annot
(for_in_clause
(identifier_annot) identifier_annot
(identifier_annotations) identifier_annotations
)for_in_clause
(if_clause
(identifier_annot) identifier_annot
)if_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Concatenate the annotations of all checkers |
(module
(function_definition
(function_name_download_series_gui) function_name_download_series_gui
(parameters
(identifier_frame) identifier_frame
(identifier_urls) identifier_urls
(identifier_directory) identifier_directory
(identifier_min_file_size) identifier_min_file_size
(identifier_max_file_size) identifier_max_file_size
(identifier_no_redirects) identifier_no_redirects
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_app) identifier_app
(call
(identifier_progress_class) identifier_progress_class
(argument_list
(identifier_frame) identifier_frame
(identifier_urls) identifier_urls
(identifier_directory) identifier_directory
(identifier_min_file_size) identifier_min_file_size
(identifier_max_file_size) identifier_max_file_size
(identifier_no_redirects) identifier_no_redirects
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | called when user wants serial downloading |
(module
(function_definition
(function_name_create_index) function_name_create_index
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
(default_parameter
(identifier_index_type) identifier_index_type
(identifier_GEO2D) identifier_GEO2D
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"Adding %s index to stores on attribute: %s") string_"Adding %s index to stores on attribute: %s"
(tuple
(identifier_index_type) identifier_index_type
(identifier_index) identifier_index
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(yield
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_collection) identifier_collection
)attribute
(identifier_create_index) identifier_create_index
)attribute
(argument_list
(list
(tuple
(identifier_index) identifier_index
(identifier_index_type) identifier_index_type
)tuple
)list
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
)module | Create an index on a given attribute
:param str index: Attribute to set index on
:param str index_type: See PyMongo index types for further information, defaults to GEO2D index. |
(module
(function_definition
(function_name_thaw) function_name_thaw
(parameters
(identifier_self) identifier_self
(identifier_tmp_dir) identifier_tmp_dir
)parameters
(block
(for_statement
(identifier_resource) identifier_resource
(call
(attribute
(identifier_self) identifier_self
(identifier_resources) identifier_resources
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(attribute
(identifier_resource) identifier_resource
(identifier_present) identifier_present
)attribute
(block
(expression_statement
(call
(attribute
(identifier_resource) identifier_resource
(identifier_thaw) identifier_thaw
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Will thaw every secret into an appropriate temporary location |
(module
(function_definition
(function_name_normalise_reads) function_name_normalise_reads
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Normalising reads to a kmer depth of 100') string_'Normalising reads to a kmer depth of 100'
)argument_list
)call
)expression_statement
(for_statement
(identifier_sample) identifier_sample
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_normalisedreads) identifier_normalisedreads
)attribute
(list_comprehension
(binary_operator
(subscript
(call
(attribute
(identifier_fastq) identifier_fastq
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.fastq.gz') string_'.fastq.gz'
)argument_list
)call
(integer_0) integer_0
)subscript
(string_'_normalised.fastq.gz') string_'_normalised.fastq.gz'
)binary_operator
(for_in_clause
(identifier_fastq) identifier_fastq
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_fastqfiles) identifier_fastqfiles
)attribute
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_out) identifier_out
(identifier_err) identifier_err
(identifier_cmd) identifier_cmd
)pattern_list
(call
(attribute
(identifier_bbtools) identifier_bbtools
(identifier_bbnorm) identifier_bbnorm
)attribute
(argument_list
(keyword_argument
(identifier_forward_in) identifier_forward_in
(subscript
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_trimmedcorrectedfastqfiles) identifier_trimmedcorrectedfastqfiles
)attribute
)argument_list
)call
(integer_0) integer_0
)subscript
)keyword_argument
(keyword_argument
(identifier_forward_out) identifier_forward_out
(subscript
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_normalisedreads) identifier_normalisedreads
)attribute
(integer_0) integer_0
)subscript
)keyword_argument
(keyword_argument
(identifier_returncmd) identifier_returncmd
(True) True
)keyword_argument
(keyword_argument
(identifier_threads) identifier_threads
(attribute
(identifier_self) identifier_self
(identifier_cpus) identifier_cpus
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(subscript
(identifier_sample) identifier_sample
(attribute
(identifier_self) identifier_self
(identifier_analysistype) identifier_analysistype
)attribute
)subscript
(identifier_normalisecmd) identifier_normalisecmd
)attribute
(identifier_cmd) identifier_cmd
)assignment
)expression_statement
(expression_statement
(call
(identifier_write_to_logfile) identifier_write_to_logfile
(argument_list
(identifier_out) identifier_out
(identifier_err) identifier_err
(attribute
(identifier_self) identifier_self
(identifier_logfile) identifier_logfile
)attribute
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_logout) identifier_logout
)attribute
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_logerr) identifier_logerr
)attribute
(None) None
(None) None
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_CalledProcessError) identifier_CalledProcessError
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_normalisedreads) identifier_normalisedreads
)attribute
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_trimmedfastqfiles) identifier_trimmedfastqfiles
)attribute
)assignment
)expression_statement
)block
)except_clause
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_sample) identifier_sample
(identifier_general) identifier_general
)attribute
(identifier_normalisedreads) identifier_normalisedreads
)attribute
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Use bbnorm from the bbmap suite of tools to perform read normalisation |
(module
(function_definition
(function_name_render_revalidation_failure) function_name_render_revalidation_failure
(parameters
(identifier_self) identifier_self
(identifier_step) identifier_step
(identifier_form) identifier_form
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_storage) identifier_storage
)attribute
(identifier_current_step) identifier_current_step
)attribute
(identifier_step) identifier_step
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render) identifier_render
)attribute
(argument_list
(identifier_form) identifier_form
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets called when a form doesn't validate when rendering the done
view. By default, it changed the current step to failing forms step
and renders the form. |
(module
(function_definition
(function_name__get_odoo_version_info) function_name__get_odoo_version_info
(parameters
(identifier_addons_dir) identifier_addons_dir
(default_parameter
(identifier_odoo_version_override) identifier_odoo_version_override
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_odoo_version_info) identifier_odoo_version_info
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_addons) identifier_addons
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_addons_dir) identifier_addons_dir
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_addon) identifier_addon
(identifier_addons) identifier_addons
(block
(expression_statement
(assignment
(identifier_addon_dir) identifier_addon_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_addons_dir) identifier_addons_dir
(identifier_addon) identifier_addon
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_is_installable_addon) identifier_is_installable_addon
(argument_list
(identifier_addon_dir) identifier_addon_dir
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_manifest) identifier_manifest
(call
(identifier_read_manifest) identifier_read_manifest
(argument_list
(identifier_addon_dir) identifier_addon_dir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier_addon_odoo_version_info) identifier_addon_odoo_version_info
)pattern_list
(call
(identifier__get_version) identifier__get_version
(argument_list
(identifier_addon_dir) identifier_addon_dir
(identifier_manifest) identifier_manifest
(identifier_odoo_version_override) identifier_odoo_version_override
(keyword_argument
(identifier_git_post_version) identifier_git_post_version
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_odoo_version_info) identifier_odoo_version_info
(None) None
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_odoo_version_info) identifier_odoo_version_info
(identifier_addon_odoo_version_info) identifier_addon_odoo_version_info
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_DistutilsSetupError) identifier_DistutilsSetupError
(argument_list
(binary_operator
(concatenated_string
(string_"Not all addons are for the same ") string_"Not all addons are for the same "
(string_"odoo version in %s (error detected ") string_"odoo version in %s (error detected "
(string_"in %s)") string_"in %s)"
)concatenated_string
(tuple
(identifier_addons_dir) identifier_addons_dir
(identifier_addon) identifier_addon
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_odoo_version_info) identifier_odoo_version_info
(identifier_addon_odoo_version_info) identifier_addon_odoo_version_info
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_odoo_version_info) identifier_odoo_version_info
)return_statement
)block
)function_definition
)module | Detect Odoo version from an addons directory |
(module
(function_definition
(function_name__get_bin_width) function_name__get_bin_width
(parameters
(identifier_stdev) identifier_stdev
(identifier_count) identifier_count
)parameters
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_round) identifier_round
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(float_3.5) float_3.5
(identifier_stdev) identifier_stdev
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_count) identifier_count
(parenthesized_expression
(binary_operator
(float_1.0) float_1.0
(integer_3) integer_3
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_w) identifier_w
(block
(return_statement
(identifier_w) identifier_w
)return_statement
)block
(else_clause
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the histogram's optimal bin width based on Sturges
http://www.jstor.org/pss/2965501 |
(module
(function_definition
(function_name_coerce) function_name_coerce
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_v) identifier_v
(identifier_value) identifier_value
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__coercion) identifier__coercion
)attribute
(identifier_coerce) identifier_coerce
)attribute
(argument_list
(identifier_v) identifier_v
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Coerces array items with proper coercion. |
(module
(function_definition
(function_name_sort_by_formula_id) function_name_sort_by_formula_id
(parameters
(identifier_raw_datasets) identifier_raw_datasets
)parameters
(block
(expression_statement
(assignment
(identifier_by_formula_id) identifier_by_formula_id
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_el) identifier_el
(identifier_raw_datasets) identifier_raw_datasets
(block
(expression_statement
(call
(attribute
(subscript
(identifier_by_formula_id) identifier_by_formula_id
(attribute
(subscript
(identifier_el) identifier_el
(string_'handwriting') string_'handwriting'
)subscript
(identifier_formula_id) identifier_formula_id
)attribute
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_el) identifier_el
(string_'handwriting') string_'handwriting'
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_by_formula_id) identifier_by_formula_id
)return_statement
)block
)function_definition
)module | Sort a list of formulas by `id`, where `id` represents the accepted
formula id.
Parameters
----------
raw_datasets : list of dictionaries
A list of raw datasets.
Examples
--------
The parameter `raw_datasets` has to be of the format
>>> rd = [{'is_in_testset': 0,
... 'formula_id': 31,
... 'handwriting': HandwrittenData(raw_data_id=2953),
... 'formula_in_latex': 'A',
... 'id': 2953},
... {'is_in_testset': 0,
... 'formula_id': 31,
... 'handwriting': HandwrittenData(raw_data_id=4037),
... 'formula_in_latex': 'A',
... 'id': 4037},
... {'is_in_testset': 0,
... 'formula_id': 31,
... 'handwriting': HandwrittenData(raw_data_id=4056),
... 'formula_in_latex': 'A',
... 'id': 4056}]
>>> sort_by_formula_id(rd) |
(module
(function_definition
(function_name_can_access_objective_hierarchy) function_name_can_access_objective_hierarchy
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url_path) identifier_url_path
(call
(identifier_construct_url) identifier_construct_url
(argument_list
(string_'authorization') string_'authorization'
(keyword_argument
(identifier_bank_id) identifier_bank_id
(attribute
(identifier_self) identifier_self
(identifier__catalog_idstr) identifier__catalog_idstr
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__get_request) identifier__get_request
)attribute
(argument_list
(identifier_url_path) identifier_url_path
)argument_list
)call
(string_'objectiveHierarchyHints') string_'objectiveHierarchyHints'
)subscript
(string_'canAccessHierarchy') string_'canAccessHierarchy'
)subscript
)return_statement
)block
)function_definition
)module | Tests if this user can perform hierarchy queries.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a PermissionDenied. This is intended as a
hint to an an application that may not offer traversal functions
to unauthorized users.
return: (boolean) - false if hierarchy traversal methods are not
authorized, true otherwise
compliance: mandatory - This method must be implemented. |
(module
(function_definition
(function_name_is_ipaddress) function_name_is_ipaddress
(parameters
(identifier_hostname) identifier_hostname
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_six) identifier_six
(identifier_PY3) identifier_PY3
)attribute
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_hostname) identifier_hostname
(identifier_bytes) identifier_bytes
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_hostname) identifier_hostname
(call
(attribute
(identifier_hostname) identifier_hostname
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_families) identifier_families
(list
(attribute
(identifier_socket) identifier_socket
(identifier_AF_INET) identifier_AF_INET
)attribute
)list
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_socket) identifier_socket
(string_'AF_INET6') string_'AF_INET6'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_families) identifier_families
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_socket) identifier_socket
(identifier_AF_INET6) identifier_AF_INET6
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(for_statement
(identifier_af) identifier_af
(identifier_families) identifier_families
(block
(try_statement
(block
(expression_statement
(call
(identifier_inet_pton) identifier_inet_pton
(argument_list
(identifier_af) identifier_af
(identifier_hostname) identifier_hostname
)argument_list
)call
)expression_statement
)block
(except_clause
(tuple
(attribute
(identifier_socket) identifier_socket
(identifier_error) identifier_error
)attribute
(identifier_ValueError) identifier_ValueError
(identifier_OSError) identifier_OSError
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)try_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Detects whether the hostname given is an IP address.
:param str hostname: Hostname to examine.
:return: True if the hostname is an IP address, False otherwise. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_l) identifier_l
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_a) identifier_a
(call
(identifier_flatten) identifier_flatten
(argument_list
(identifier_l) identifier_l
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__remove) identifier__remove
)attribute
(argument_list
(list
(call
(attribute
(identifier_self) identifier_self
(identifier_Inner) identifier_Inner
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
)list
(attribute
(identifier_self) identifier_self
(identifier_l) identifier_l
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | remove inner from outer
Args:
*l element that is passes into Inner init |
(module
(function_definition
(function_name_has_basis_notes) function_name_has_basis_notes
(parameters
(identifier_family) identifier_family
(default_parameter
(identifier_data_dir) identifier_data_dir
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_file_path) identifier_file_path
(call
(identifier__basis_notes_path) identifier__basis_notes_path
(argument_list
(identifier_family) identifier_family
(identifier_data_dir) identifier_data_dir
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_file_path) identifier_file_path
)argument_list
)call
)return_statement
)block
)function_definition
)module | Check if notes exist for a given basis set
Returns True if they exist, false otherwise |
(module
(function_definition
(function_name_as_wfn) function_name_as_wfn
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_wfn) identifier_wfn
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_wfn) identifier_wfn
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_CPE2_3_WFN) identifier_CPE2_3_WFN
(identifier_CPE_PREFIX) identifier_CPE_PREFIX
)attribute
)argument_list
)call
)expression_statement
(for_statement
(identifier_ck) identifier_ck
(attribute
(identifier_CPEComponent) identifier_CPEComponent
(identifier_CPE_COMP_KEYS) identifier_CPE_COMP_KEYS
)attribute
(block
(expression_statement
(assignment
(identifier_lc) identifier_lc
(call
(attribute
(identifier_self) identifier_self
(identifier__get_attribute_components) identifier__get_attribute_components
)attribute
(argument_list
(identifier_ck) identifier_ck
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_comp) identifier_comp
(subscript
(identifier_lc) identifier_lc
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_comp) identifier_comp
(identifier_CPEComponentUndefined) identifier_CPEComponentUndefined
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_comp) identifier_comp
(identifier_CPEComponentEmpty) identifier_CPEComponentEmpty
)argument_list
)call
)boolean_operator
)parenthesized_expression
(block
(continue_statement
)continue_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_v) identifier_v
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_ck) identifier_ck
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_append) identifier_append
)attribute
(argument_list
(string_"=") string_"="
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_append) identifier_append
)attribute
(argument_list
(string_'"') string_'"'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_comp) identifier_comp
(identifier_as_wfn) identifier_as_wfn
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_append) identifier_append
)attribute
(argument_list
(string_'"') string_'"'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_wfn) identifier_wfn
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_wfn) identifier_wfn
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_CPEComponent2_3_WFN) identifier_CPEComponent2_3_WFN
(identifier_SEPARATOR_COMP) identifier_SEPARATOR_COMP
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_wfn) identifier_wfn
(subscript
(identifier_wfn) identifier_wfn
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_wfn) identifier_wfn
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_CPE2_3_WFN) identifier_CPE2_3_WFN
(identifier_CPE_SUFFIX) identifier_CPE_SUFFIX
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_wfn) identifier_wfn
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the CPE Name as WFN string of version 2.3.
Only shows the first seven components.
:return: CPE Name as WFN string
:rtype: string
:exception: TypeError - incompatible version |
(module
(function_definition
(function_name_count_exceptions) function_name_count_exceptions
(parameters
(identifier_self) identifier_self
(identifier_c) identifier_c
(identifier_broker) identifier_broker
)parameters
(block
(if_statement
(comparison_operator
(identifier_c) identifier_c
(attribute
(identifier_broker) identifier_broker
(identifier_exceptions) identifier_exceptions
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_counts) identifier_counts
)attribute
(string_'exception') string_'exception'
)subscript
(call
(identifier_len) identifier_len
(argument_list
(subscript
(attribute
(identifier_broker) identifier_broker
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_c) identifier_c
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Count exceptions as processing proceeds |
(module
(function_definition
(function_name_merge_coords) function_name_merge_coords
(parameters
(identifier_objs) identifier_objs
(default_parameter
(identifier_compat) identifier_compat
(string_'minimal') string_'minimal'
)default_parameter
(default_parameter
(identifier_join) identifier_join
(string_'outer') string_'outer'
)default_parameter
(default_parameter
(identifier_priority_arg) identifier_priority_arg
(None) None
)default_parameter
(default_parameter
(identifier_indexes) identifier_indexes
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier__assert_compat_valid) identifier__assert_compat_valid
(argument_list
(identifier_compat) identifier_compat
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_coerced) identifier_coerced
(call
(identifier_coerce_pandas_values) identifier_coerce_pandas_values
(argument_list
(identifier_objs) identifier_objs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_aligned) identifier_aligned
(call
(identifier_deep_align) identifier_deep_align
(argument_list
(identifier_coerced) identifier_coerced
(keyword_argument
(identifier_join) identifier_join
(identifier_join) identifier_join
)keyword_argument
(keyword_argument
(identifier_copy) identifier_copy
(False) False
)keyword_argument
(keyword_argument
(identifier_indexes) identifier_indexes
(identifier_indexes) identifier_indexes
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_expanded) identifier_expanded
(call
(identifier_expand_variable_dicts) identifier_expand_variable_dicts
(argument_list
(identifier_aligned) identifier_aligned
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_priority_vars) identifier_priority_vars
(call
(identifier__get_priority_vars) identifier__get_priority_vars
(argument_list
(identifier_aligned) identifier_aligned
(identifier_priority_arg) identifier_priority_arg
(keyword_argument
(identifier_compat) identifier_compat
(identifier_compat) identifier_compat
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_variables) identifier_variables
(call
(identifier_merge_variables) identifier_merge_variables
(argument_list
(identifier_expanded) identifier_expanded
(identifier_priority_vars) identifier_priority_vars
(keyword_argument
(identifier_compat) identifier_compat
(identifier_compat) identifier_compat
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_assert_unique_multiindex_level_names) identifier_assert_unique_multiindex_level_names
(argument_list
(identifier_variables) identifier_variables
)argument_list
)call
)expression_statement
(return_statement
(identifier_variables) identifier_variables
)return_statement
)block
)function_definition
)module | Merge coordinate variables.
See merge_core below for argument descriptions. This works similarly to
merge_core, except everything we don't worry about whether variables are
coordinates or not. |
(module
(function_definition
(function_name_GetInstanceInfo) function_name_GetInstanceInfo
(parameters
(identifier_r) identifier_r
(identifier_instance) identifier_instance
(default_parameter
(identifier_static) identifier_static
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_static) identifier_static
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_request) identifier_request
)attribute
(argument_list
(string_"get") string_"get"
(binary_operator
(string_"/2/instances/%s/info") string_"/2/instances/%s/info"
(identifier_instance) identifier_instance
)binary_operator
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_request) identifier_request
)attribute
(argument_list
(string_"get") string_"get"
(binary_operator
(string_"/2/instances/%s/info") string_"/2/instances/%s/info"
(identifier_instance) identifier_instance
)binary_operator
(keyword_argument
(identifier_query) identifier_query
(dictionary
(pair
(string_"static") string_"static"
(identifier_static) identifier_static
)pair
)dictionary
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Gets information about an instance.
@type instance: string
@param instance: Instance name
@rtype: string
@return: Job ID |
(module
(function_definition
(function_name_error_from_exc) function_name_error_from_exc
(parameters
(identifier_nsdk) identifier_nsdk
(identifier_tracer_h) identifier_tracer_h
(default_parameter
(identifier_e_val) identifier_e_val
(None) None
)default_parameter
(default_parameter
(identifier_e_ty) identifier_e_ty
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_tracer_h) identifier_tracer_h
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_e_ty) identifier_e_ty
(None) None
)comparison_operator
(comparison_operator
(identifier_e_val) identifier_e_val
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_e_ty) identifier_e_ty
(identifier_e_val) identifier_e_val
)pattern_list
(subscript
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_e_ty) identifier_e_ty
(None) None
)comparison_operator
(comparison_operator
(identifier_e_val) identifier_e_val
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_e_ty) identifier_e_ty
(call
(identifier_type) identifier_type
(argument_list
(identifier_e_val) identifier_e_val
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_nsdk) identifier_nsdk
(identifier_tracer_error) identifier_tracer_error
)attribute
(argument_list
(identifier_tracer_h) identifier_tracer_h
(call
(identifier_getfullname) identifier_getfullname
(argument_list
(identifier_e_ty) identifier_e_ty
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(identifier_e_val) identifier_e_val
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Attach appropriate error information to tracer_h.
If e_val and e_ty are None, the current exception is used. |
(module
(function_definition
(function_name_expand_query) function_name_expand_query
(parameters
(identifier_config) identifier_config
(identifier_kwds) identifier_kwds
)parameters
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_query) identifier_query
(call
(attribute
(identifier_kwds) identifier_kwds
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'pattern') string_'pattern'
(list
)list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_expansion) identifier_expansion
(call
(attribute
(attribute
(attribute
(identifier_config) identifier_config
(identifier_search) identifier_search
)attribute
(identifier_alias) identifier_alias
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_query) identifier_query
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_expansion) identifier_expansion
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_pattern) identifier_pattern
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_query) identifier_query
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_SafeArgumentParser) identifier_SafeArgumentParser
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_search_add_arguments) identifier_search_add_arguments
(argument_list
(identifier_parser) identifier_parser
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ns) identifier_ns
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_expansion) identifier_expansion
)argument_list
)call
)assignment
)expression_statement
(for_statement
(tuple_pattern
(identifier_key) identifier_key
(identifier_value) identifier_value
)tuple_pattern
(call
(attribute
(call
(identifier_vars) identifier_vars
(argument_list
(identifier_ns) identifier_ns
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_kwds) identifier_kwds
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwds) identifier_kwds
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(subscript
(identifier_kwds) identifier_kwds
(identifier_key) identifier_key
)subscript
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_kwds) identifier_kwds
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_kwds) identifier_kwds
(string_'pattern') string_'pattern'
)subscript
(identifier_pattern) identifier_pattern
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_config) identifier_config
(identifier_search) identifier_search
)attribute
(identifier_kwds_adapter) identifier_kwds_adapter
)attribute
(argument_list
(identifier_kwds) identifier_kwds
)argument_list
)call
)return_statement
)block
)function_definition
)module | Expand `kwds` based on `config.search.query_expander`.
:type config: .config.Configuration
:type kwds: dict
:rtype: dict
:return: Return `kwds`, modified in place. |
(module
(function_definition
(function_name_path) function_name_path
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_parent_path) identifier_parent_path
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_path) identifier_path
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(expression_statement
(assignment
(identifier_parent_path) identifier_parent_path
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_path) identifier_path
)attribute
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_parent_path) identifier_parent_path
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(string_b"/") string_b"/"
)return_statement
)block
)function_definition
)module | Node's relative path from the root node |
(module
(function_definition
(function_name_make_niche_grid) function_name_make_niche_grid
(parameters
(identifier_res_dict) identifier_res_dict
(default_parameter
(identifier_world_size) identifier_world_size
(tuple
(integer_60) integer_60
(integer_60) integer_60
)tuple
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_world) identifier_world
(call
(identifier_initialize_grid) identifier_initialize_grid
(argument_list
(identifier_world_size) identifier_world_size
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_res) identifier_res
(identifier_res_dict) identifier_res_dict
(block
(for_statement
(identifier_cell) identifier_cell
(subscript
(identifier_res_dict) identifier_res_dict
(identifier_res) identifier_res
)subscript
(block
(expression_statement
(call
(attribute
(subscript
(subscript
(identifier_world) identifier_world
(subscript
(identifier_cell) identifier_cell
(integer_1) integer_1
)subscript
)subscript
(subscript
(identifier_cell) identifier_cell
(integer_0) integer_0
)subscript
)subscript
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_world) identifier_world
)return_statement
)block
)function_definition
)module | Converts dictionary specifying where resources are to nested lists
specifying what sets of resources are where.
res_dict - a dictionary in which keys are resources in the environment
and values are list of tuples representing the cells they're in.
world_size - a tuple indicating the dimensions of the world.
Default = 60x60, because that's the default Avida world size
Returns a list of lists of sets indicating the set of resources
available at each x,y location in the Avida grid. |
(module
(function_definition
(function_name_value_from_object) function_name_value_from_object
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_JSONField) identifier_JSONField
(identifier_self) identifier_self
)argument_list
)call
(identifier_value_from_object) identifier_value_from_object
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_prep_value) identifier_get_prep_value
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return value dumped to string. |
(module
(function_definition
(function_name_copy_file_internal) function_name_copy_file_internal
(parameters
(identifier_src_fs) identifier_src_fs
(identifier_src_path) identifier_src_path
(identifier_dst_fs) identifier_dst_fs
(identifier_dst_path) identifier_dst_path
)parameters
(block
(if_statement
(comparison_operator
(identifier_src_fs) identifier_src_fs
(identifier_dst_fs) identifier_dst_fs
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_src_fs) identifier_src_fs
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_src_path) identifier_src_path
(identifier_dst_path) identifier_dst_path
(keyword_argument
(identifier_overwrite) identifier_overwrite
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_dst_fs) identifier_dst_fs
(identifier_hassyspath) identifier_hassyspath
)attribute
(argument_list
(identifier_dst_path) identifier_dst_path
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_dst_fs) identifier_dst_fs
(identifier_openbin) identifier_openbin
)attribute
(argument_list
(identifier_dst_path) identifier_dst_path
(string_"w") string_"w"
)argument_list
)call
(as_pattern_target
(identifier_write_file) identifier_write_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_src_fs) identifier_src_fs
(identifier_download) identifier_download
)attribute
(argument_list
(identifier_src_path) identifier_src_path
(identifier_write_file) identifier_write_file
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)elif_clause
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_src_fs) identifier_src_fs
(identifier_openbin) identifier_openbin
)attribute
(argument_list
(identifier_src_path) identifier_src_path
)argument_list
)call
(as_pattern_target
(identifier_read_file) identifier_read_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_dst_fs) identifier_dst_fs
(identifier_upload) identifier_upload
)attribute
(argument_list
(identifier_dst_path) identifier_dst_path
(identifier_read_file) identifier_read_file
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Low level copy, that doesn't call manage_fs or lock.
If the destination exists, and is a file, it will be first truncated.
This method exists to optimize copying in loops. In general you
should prefer `copy_file`.
Arguments:
src_fs (FS): Source filesystem.
src_path (str): Path to a file on the source filesystem.
dst_fs (FS: Destination filesystem.
dst_path (str): Path to a file on the destination filesystem. |
(module
(function_definition
(function_name_lchownr) function_name_lchownr
(parameters
(identifier_path) identifier_path
(identifier_owner) identifier_owner
(identifier_group) identifier_group
)parameters
(block
(expression_statement
(call
(identifier_chownr) identifier_chownr
(argument_list
(identifier_path) identifier_path
(identifier_owner) identifier_owner
(identifier_group) identifier_group
(keyword_argument
(identifier_follow_links) identifier_follow_links
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Recursively change user and group ownership of files and directories
in a given path, not following symbolic links. See the documentation for
'os.lchown' for more information.
:param str path: The string path to start changing ownership.
:param str owner: The owner string to use when looking up the uid.
:param str group: The group string to use when looking up the gid. |
(module
(function_definition
(function_name_extract_col) function_name_extract_col
(parameters
(identifier_self) identifier_self
(identifier_col) identifier_col
)parameters
(block
(expression_statement
(assignment
(identifier_new_col) identifier_new_col
(list_comprehension
(subscript
(identifier_row) identifier_row
(identifier_col) identifier_col
)subscript
(for_in_clause
(identifier_row) identifier_row
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_new_col) identifier_new_col
)return_statement
)block
)function_definition
)module | get column number 'col' |
(module
(function_definition
(function_name_MAE) function_name_MAE
(parameters
(identifier_x1) identifier_x1
(default_parameter
(identifier_x2) identifier_x2
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(call
(identifier_get_valid_error) identifier_get_valid_error
(argument_list
(identifier_x1) identifier_x1
(identifier_x2) identifier_x2
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_sum) identifier_sum
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
(call
(identifier_float) identifier_float
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Mean absolute error - this function accepts two series of data or directly
one series with error.
**Args:**
* `x1` - first data series or error (1d array)
**Kwargs:**
* `x2` - second series (1d array) if first series was not error directly,\\
then this should be the second series
**Returns:**
* `e` - MAE of error (float) obtained directly from `x1`, \\
or as a difference of `x1` and `x2` |
(module
(function_definition
(function_name__compute_anelestic_attenuation_term) function_name__compute_anelestic_attenuation_term
(parameters
(identifier_self) identifier_self
(identifier_C) identifier_C
(identifier_dists) identifier_dists
)parameters
(block
(expression_statement
(assignment
(identifier_f_aat) identifier_f_aat
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros_like) identifier_zeros_like
)attribute
(argument_list
(attribute
(identifier_dists) identifier_dists
(identifier_rjb) identifier_rjb
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_idx) identifier_idx
(comparison_operator
(attribute
(identifier_dists) identifier_dists
(identifier_rjb) identifier_rjb
)attribute
(float_80.0) float_80.0
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_f_aat) identifier_f_aat
(identifier_idx) identifier_idx
)subscript
(binary_operator
(subscript
(identifier_C) identifier_C
(string_"b10") string_"b10"
)subscript
(parenthesized_expression
(binary_operator
(subscript
(attribute
(identifier_dists) identifier_dists
(identifier_rjb) identifier_rjb
)attribute
(identifier_idx) identifier_idx
)subscript
(float_80.0) float_80.0
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_f_aat) identifier_f_aat
)return_statement
)block
)function_definition
)module | Compute and return anelastic attenuation term in equation 5,
page 970. |
(module
(function_definition
(function_name_check_unique_tokens) function_name_check_unique_tokens
(parameters
(identifier_sender) identifier_sender
(identifier_instance) identifier_instance
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_instance) identifier_instance
(identifier_CallbackToken) identifier_CallbackToken
)argument_list
)call
(block
(if_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_CallbackToken) identifier_CallbackToken
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(attribute
(identifier_instance) identifier_instance
(identifier_key) identifier_key
)attribute
)keyword_argument
(keyword_argument
(identifier_is_active) identifier_is_active
(True) True
)keyword_argument
)argument_list
)call
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_instance) identifier_instance
(identifier_key) identifier_key
)attribute
(call
(identifier_generate_numeric_token) identifier_generate_numeric_token
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Ensures that mobile and email tokens are unique or tries once more to generate. |
(module
(function_definition
(function_name_exclusion_path) function_name_exclusion_path
(parameters
(identifier_cls) identifier_cls
(identifier_project) identifier_project
(identifier_exclusion) identifier_exclusion
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_path_template) identifier_path_template
)attribute
(identifier_expand) identifier_expand
)attribute
(argument_list
(string_"projects/{project}/exclusions/{exclusion}") string_"projects/{project}/exclusions/{exclusion}"
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_exclusion) identifier_exclusion
(identifier_exclusion) identifier_exclusion
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a fully-qualified exclusion string. |
(module
(function_definition
(function_name_string_to_timestruct) function_name_string_to_timestruct
(parameters
(identifier_input_string) identifier_input_string
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_timestruct) identifier_timestruct
(call
(attribute
(identifier_time) identifier_time
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(call
(attribute
(identifier_input_string) identifier_input_string
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(attribute
(identifier_VolumeDescriptorDate) identifier_VolumeDescriptorDate
(identifier_TIME_FMT) identifier_TIME_FMT
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_timestruct) identifier_timestruct
(call
(attribute
(identifier_time) identifier_time
(identifier_struct_time) identifier_struct_time
)attribute
(argument_list
(tuple
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
)tuple
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_timestruct) identifier_timestruct
)return_statement
)block
)function_definition
)module | A cacheable function to take an input string and decode it into a
time.struct_time from the time module. If the string cannot be decoded
because of an illegal value, then the all-zero time.struct_time will be
returned instead.
Parameters:
input_string - The string to attempt to parse.
Returns:
A time.struct_time object representing the time. |
(module
(function_definition
(function_name_get_view_name) function_name_get_view_name
(parameters
(identifier_namespace) identifier_namespace
(identifier_view) identifier_view
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(string_"") string_""
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_namespace) identifier_namespace
(string_"") string_""
)comparison_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(binary_operator
(identifier_namespace) identifier_namespace
(string_"_") string_"_"
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_sanitize) identifier_sanitize
(argument_list
(binary_operator
(identifier_name) identifier_name
(attribute
(identifier_view) identifier_view
(identifier_name) identifier_name
)attribute
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | create the name for the view |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_id) identifier_id
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_id) identifier_id
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_where) identifier_where
)attribute
(argument_list
(string_'id') string_'id'
(string_'=') string_'='
(identifier_id) identifier_id
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__grammar) identifier__grammar
)attribute
(identifier_compile_delete) identifier_compile_delete
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_sql) identifier_sql
(call
(attribute
(identifier_self) identifier_self
(identifier_get_bindings) identifier_get_bindings
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Delete a record from the database
:param id: The id of the row to delete
:type id: mixed
:return: The number of rows deleted
:rtype: int |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_forever) identifier_forever
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'forever') string_'forever'
(True) True
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timeout) identifier_timeout
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'timeout') string_'timeout'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_forever) identifier_forever
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)return_statement
)block
(elif_clause
(identifier_timeout) identifier_timeout
(block
(expression_statement
(call
(identifier_next) identifier_next
(argument_list
(parenthesized_expression
(call
(attribute
(identifier_self) identifier_self
(identifier_consume) identifier_consume
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)parenthesized_expression
(None) None
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(identifier_next) identifier_next
(argument_list
(parenthesized_expression
(call
(attribute
(identifier_self) identifier_self
(identifier_consume) identifier_consume
)attribute
(argument_list
(keyword_argument
(identifier_limit) identifier_limit
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)parenthesized_expression
(None) None
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | | Launch the consumer.
| It can listen forever for messages or just wait for one.
:param forever: If set, the consumer listens forever. Default to `True`.
:type forever: bool
:param timeout: If set, the consumer waits the specified seconds before quitting.
:type timeout: None, int
:rtype: None
:raises socket.timeout: when no message has been received since `timeout`. |
(module
(function_definition
(function_name_setup_file_watcher) function_name_setup_file_watcher
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_use_polling) identifier_use_polling
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_use_polling) identifier_use_polling
(block
(expression_statement
(assignment
(identifier_observer_class) identifier_observer_class
(attribute
(attribute
(attribute
(identifier_watchdog) identifier_watchdog
(identifier_observers) identifier_observers
)attribute
(identifier_polling) identifier_polling
)attribute
(identifier_PollingObserver) identifier_PollingObserver
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_observer_class) identifier_observer_class
(identifier_EVENTED_OBSERVER) identifier_EVENTED_OBSERVER
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_file_event_handler) identifier_file_event_handler
(call
(identifier__SourceChangesHandler) identifier__SourceChangesHandler
(argument_list
(keyword_argument
(identifier_patterns) identifier_patterns
(list
(string_"*.py") string_"*.py"
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_file_watcher) identifier_file_watcher
(call
(identifier_observer_class) identifier_observer_class
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_file_watcher) identifier_file_watcher
(identifier_schedule) identifier_schedule
)attribute
(argument_list
(identifier_file_event_handler) identifier_file_event_handler
(identifier_path) identifier_path
(keyword_argument
(identifier_recursive) identifier_recursive
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_file_watcher) identifier_file_watcher
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_file_watcher) identifier_file_watcher
)return_statement
)block
)function_definition
)module | Sets up a background thread that watches for source changes and
automatically sends SIGHUP to the current process whenever a file
changes. |
(module
(function_definition
(function_name_set_default) function_name_set_default
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__configfile) identifier__configfile
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(call
(attribute
(identifier_configparser) identifier_configparser
(identifier_RawConfigParser) identifier_RawConfigParser
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(identifier_add_section) identifier_add_section
)attribute
(argument_list
(string_'Settings') string_'Settings'
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_DEFAULTS) identifier_DEFAULTS
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
(string_'Settings') string_'Settings'
(identifier_key) identifier_key
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
)for_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__configfile) identifier__configfile
)attribute
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__config) identifier__config
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Set config to default. |
(module
(function_definition
(function_name_Poll) function_name_Poll
(parameters
(default_parameter
(identifier_generator) identifier_generator
(None) None
)default_parameter
(default_parameter
(identifier_condition) identifier_condition
(None) None
)default_parameter
(default_parameter
(identifier_interval) identifier_interval
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_generator) identifier_generator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"generator has to be a lambda") string_"generator has to be a lambda"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_condition) identifier_condition
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"condition has to be a lambda") string_"condition has to be a lambda"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_interval) identifier_interval
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_interval) identifier_interval
(identifier_DEFAULT_POLL_INTERVAL) identifier_DEFAULT_POLL_INTERVAL
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_timeout) identifier_timeout
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_timeout) identifier_timeout
(identifier_DEFAULT_POLL_TIMEOUT) identifier_DEFAULT_POLL_TIMEOUT
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_started) identifier_started
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_generator) identifier_generator
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_check_result) identifier_check_result
(call
(identifier_condition) identifier_condition
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_check_result) identifier_check_result
(block
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_timeout) identifier_timeout
(comparison_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(identifier_started) identifier_started
)binary_operator
)parenthesized_expression
(identifier_timeout) identifier_timeout
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_PollTimeoutError) identifier_PollTimeoutError
)attribute
(argument_list
(binary_operator
(string_"Polling on %s timed out after %ds.") string_"Polling on %s timed out after %ds."
(tuple
(identifier_obj) identifier_obj
(identifier_timeout) identifier_timeout
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(identifier_interval) identifier_interval
)argument_list
)call
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Periodically calls generator function until a condition is satisfied. |
(module
(function_definition
(function_name_get_target_transcript) function_name_get_target_transcript
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_min_intron) identifier_min_intron
(integer_1) integer_1
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_min_intron) identifier_min_intron
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_"ERROR minimum intron should be 1 base or longer\n") string_"ERROR minimum intron should be 1 base or longer\n"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rngs) identifier_rngs
(list
(call
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dist) identifier_dist
(binary_operator
(binary_operator
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(integer_0) integer_0
)subscript
(identifier_start) identifier_start
)attribute
(attribute
(subscript
(identifier_rngs) identifier_rngs
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_end) identifier_end
)attribute
)binary_operator
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dist) identifier_dist
(identifier_min_intron) identifier_min_intron
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_rngs) identifier_rngs
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(integer_0) integer_0
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(subscript
(identifier_rngs) identifier_rngs
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_end) identifier_end
)attribute
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(integer_0) integer_0
)subscript
(identifier_end) identifier_end
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_tx) identifier_tx
(call
(identifier_Transcript) identifier_Transcript
(argument_list
(identifier_rngs) identifier_rngs
(keyword_argument
(identifier_options) identifier_options
(call
(attribute
(identifier_Transcript) identifier_Transcript
(identifier_Options) identifier_Options
)attribute
(argument_list
(keyword_argument
(identifier_direction) identifier_direction
(attribute
(identifier_self) identifier_self
(identifier_strand) identifier_strand
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
(identifier_chr) identifier_chr
)attribute
)keyword_argument
(keyword_argument
(identifier_gene_name) identifier_gene_name
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alignment_ranges) identifier_alignment_ranges
)attribute
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
(identifier_chr) identifier_chr
)attribute
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_tx) identifier_tx
)return_statement
)block
)function_definition
)module | Get the mapping of to the target strand
:returns: Transcript mapped to target
:rtype: Transcript |
(module
(function_definition
(function_name_pkg_version_list) function_name_pkg_version_list
(parameters
(identifier_self) identifier_self
(identifier_pkg_id) identifier_pkg_id
)parameters
(block
(expression_statement
(assignment
(identifier_pkg_data) identifier_pkg_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___reg_software) identifier___reg_software
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_pkg_id) identifier_pkg_id
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_pkg_data) identifier_pkg_data
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pkg_data) identifier_pkg_data
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(identifier_pkg_data) identifier_pkg_data
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_installed_versions) identifier_installed_versions
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(call
(attribute
(identifier_pkg_data) identifier_pkg_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'version') string_'version'
)argument_list
)call
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_installed_versions) identifier_installed_versions
(keyword_argument
(identifier_key) identifier_key
(call
(identifier_cmp_to_key) identifier_cmp_to_key
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___oldest_to_latest_version) identifier___oldest_to_latest_version
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns information on a package.
Args:
pkg_id (str): Package Id of the software/component.
Returns:
list: List of version numbers installed. |
(module
(function_definition
(function_name_add_param) function_name_add_param
(parameters
(identifier_self) identifier_self
(identifier_param_key) identifier_param_key
(identifier_param_val) identifier_param_val
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_params) identifier_params
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(list
(identifier_param_key) identifier_param_key
(identifier_param_val) identifier_param_val
)list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_param_key) identifier_param_key
(string_'__success_test') string_'__success_test'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_success) identifier_success
)attribute
(identifier_param_val) identifier_param_val
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | adds parameters as key value pairs |
(module
(function_definition
(function_name_check_by_selector) function_name_check_by_selector
(parameters
(identifier_self) identifier_self
(identifier_selector) identifier_selector
)parameters
(block
(expression_statement
(assignment
(identifier_elem) identifier_elem
(call
(identifier_find_element_by_jquery) identifier_find_element_by_jquery
(argument_list
(attribute
(identifier_world) identifier_world
(identifier_browser) identifier_browser
)attribute
(identifier_selector) identifier_selector
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_elem) identifier_elem
(identifier_is_selected) identifier_is_selected
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_elem) identifier_elem
(identifier_click) identifier_click
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Check the checkbox matching the CSS selector. |
(module
(function_definition
(function_name_binarycontent_sections) function_name_binarycontent_sections
(parameters
(identifier_chunk) identifier_chunk
)parameters
(block
(expression_statement
(assignment
(identifier_binary_content_tag) identifier_binary_content_tag
(subscript
(identifier_BINARY_CONTENT_START) identifier_BINARY_CONTENT_START
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_binary_content_tag) identifier_binary_content_tag
(identifier_chunk) identifier_chunk
)comparison_operator
(block
(expression_statement
(yield
(identifier_chunk) identifier_chunk
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_sections) identifier_sections
(call
(attribute
(identifier_chunk) identifier_chunk
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_binary_content_tag) identifier_binary_content_tag
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_sec) identifier_sec
(identifier_sections) identifier_sections
(block
(expression_statement
(assignment
(identifier_extra) identifier_extra
(string_b'') string_b''
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_sec) identifier_sec
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_b'</') string_b'</'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_extra) identifier_extra
(subscript
(identifier_sec) identifier_sec
(slice
(unary_operator
(integer_2) integer_2
)unary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(yield
(subscript
(identifier_sec) identifier_sec
(slice
(colon) colon
(unary_operator
(integer_2) integer_2
)unary_operator
)slice
)subscript
)yield
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_sec) identifier_sec
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_b'<') string_b'<'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_extra) identifier_extra
(subscript
(identifier_sec) identifier_sec
(slice
(unary_operator
(integer_1) integer_1
)unary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(yield
(subscript
(identifier_sec) identifier_sec
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)yield
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(yield
(identifier_sec) identifier_sec
)yield
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_extra) identifier_extra
(block
(expression_statement
(yield
(call
(attribute
(string_b'') string_b''
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_extra) identifier_extra
(identifier_binary_content_tag) identifier_binary_content_tag
)list
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Split a chunk of data into sections by start and end binary
content tags. |
(module
(function_definition
(function_name_tag_secondary_structure) function_name_tag_secondary_structure
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_polymer) identifier_polymer
(attribute
(identifier_self) identifier_self
(identifier__molecules) identifier__molecules
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_polymer) identifier_polymer
(identifier_molecule_type) identifier_molecule_type
)attribute
(string_'protein') string_'protein'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_polymer) identifier_polymer
(identifier_tag_secondary_structure) identifier_tag_secondary_structure
)attribute
(argument_list
(keyword_argument
(identifier_force) identifier_force
(identifier_force) identifier_force
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
)return_statement
)block
)function_definition
)module | Tags each `Monomer` in the `Assembly` with it's secondary structure.
Notes
-----
DSSP must be available to call. Check by running
`isambard.external_programs.dssp.test_dssp`. If DSSP is not
available, please follow instruction here to add it:
https://github.com/woolfson-group/isambard#external-programs
For more information on DSSP see [1].
References
----------
.. [1] Kabsch W, Sander C (1983) "Dictionary of protein
secondary structure: pattern recognition of hydrogen-bonded
and geometrical features", Biopolymers, 22, 2577-637.
Parameters
----------
force : bool, optional
If True the tag will be run even if `Monomers` are already tagged |
(module
(function_definition
(function_name_assemble) function_name_assemble
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_canonify) identifier_canonify
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(list
(boolean_operator
(boolean_operator
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(integer_0) integer_0
)subscript
)boolean_operator
(string_"python") string_"python"
)boolean_operator
)list
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_mountpoint) identifier_mountpoint
)attribute
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_mountpoint) identifier_mountpoint
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_m) identifier_m
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_modifiers) identifier_modifiers
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(identifier_v) identifier_v
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_fuse_modifiers) identifier_fuse_modifiers
)attribute
(identifier_m) identifier_m
)subscript
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_opta) identifier_opta
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_o) identifier_o
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_optdict) identifier_optdict
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_opta) identifier_opta
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_o) identifier_o
(string_'=') string_'='
)binary_operator
(identifier_v) identifier_v
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_opta) identifier_opta
(identifier_extend) identifier_extend
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_optlist) identifier_optlist
)attribute
)argument_list
)call
)expression_statement
(if_statement
(identifier_opta) identifier_opta
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"-o") string_"-o"
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_opta) identifier_opta
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_args) identifier_args
)return_statement
)block
)function_definition
)module | Mangle self into an argument array |
(module
(function_definition
(function_name_create_data_item_from_data_and_metadata) function_name_create_data_item_from_data_and_metadata
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_data_and_metadata) identifier_data_and_metadata
(type
(attribute
(identifier_DataAndMetadata) identifier_DataAndMetadata
(identifier_DataAndMetadata) identifier_DataAndMetadata
)attribute
)type
)typed_parameter
(typed_default_parameter
(identifier_title) identifier_title
(type
(identifier_str) identifier_str
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_DataItem) identifier_DataItem
)type
(block
(expression_statement
(assignment
(identifier_data_item) identifier_data_item
(call
(attribute
(identifier_DataItemModule) identifier_DataItemModule
(identifier_new_data_item) identifier_new_data_item
)attribute
(argument_list
(identifier_data_and_metadata) identifier_data_and_metadata
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_title) identifier_title
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_data_item) identifier_data_item
(identifier_title) identifier_title
)attribute
(identifier_title) identifier_title
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___document_model) identifier___document_model
)attribute
(identifier_append_data_item) identifier_append_data_item
)attribute
(argument_list
(identifier_data_item) identifier_data_item
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_DataItem) identifier_DataItem
(argument_list
(identifier_data_item) identifier_data_item
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a data item in the library from a data and metadata object.
The data for the data item will be written to disk immediately and unloaded from memory. If you wish to delay
writing to disk and keep using the data, create an empty data item and use the data item methods to modify
the data.
:param data_and_metadata: The data and metadata.
:param title: The title of the data item (optional).
:return: The new :py:class:`nion.swift.Facade.DataItem` object.
:rtype: :py:class:`nion.swift.Facade.DataItem`
.. versionadded:: 1.0
Scriptable: Yes |
(module
(function_definition
(function_name_item_transaction) function_name_item_transaction
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(type
(identifier_Transaction) identifier_Transaction
)type
(block
(expression_statement
(assignment
(identifier_items) identifier_items
(call
(attribute
(identifier_self) identifier_self
(identifier___build_transaction_items) identifier___build_transaction_items
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_transaction) identifier_transaction
(call
(identifier_Transaction) identifier_Transaction
(argument_list
(identifier_self) identifier_self
(identifier_item) identifier_item
(identifier_items) identifier_items
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___transactions) identifier___transactions
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_transaction) identifier_transaction
)argument_list
)call
)expression_statement
(return_statement
(identifier_transaction) identifier_transaction
)return_statement
)block
)function_definition
)module | Begin transaction state for item.
A transaction state is exists to prevent writing out to disk, mainly for performance reasons.
All changes to the object are delayed until the transaction state exits.
This method is thread safe. |
(module
(function_definition
(function_name_collections) function_name_collections
(parameters
(identifier_record) identifier_record
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(return_statement
(dictionary
(pair
(string_'primary') string_'primary'
(call
(attribute
(identifier_value) identifier_value
(identifier_get) identifier_get
)attribute
(argument_list
(string_'a') string_'a'
)argument_list
)call
)pair
(pair
(string_'secondary') string_'secondary'
(call
(attribute
(identifier_value) identifier_value
(identifier_get) identifier_get
)attribute
(argument_list
(string_'b') string_'b'
)argument_list
)call
)pair
(pair
(string_'deleted') string_'deleted'
(call
(attribute
(identifier_value) identifier_value
(identifier_get) identifier_get
)attribute
(argument_list
(string_'c') string_'c'
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Parse custom MARC tag 980. |
(module
(function_definition
(function_name_scan_url) function_name_scan_url
(parameters
(identifier_self) identifier_self
(identifier_this_url) identifier_this_url
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'apikey') string_'apikey'
(attribute
(identifier_self) identifier_self
(identifier_api_key) identifier_api_key
)attribute
)pair
(pair
(string_'url') string_'url'
(identifier_this_url) identifier_this_url
)pair
)dictionary
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
(string_'url/scan') string_'url/scan'
)binary_operator
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_proxies) identifier_proxies
(attribute
(identifier_self) identifier_self
(identifier_proxies) identifier_proxies
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_requests) identifier_requests
(identifier_RequestException) identifier_RequestException
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_error) identifier_error
(attribute
(identifier_e) identifier_e
(identifier_message) identifier_message
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier__return_response_and_status_code) identifier__return_response_and_status_code
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | Submit a URL to be scanned by VirusTotal.
:param this_url: The URL that should be scanned. This parameter accepts a list of URLs (up to 4 with the
standard request rate) so as to perform a batch scanning request with one single call. The
URLs must be separated by a new line character.
:return: JSON response that contains scan_id and permalink. |
(module
(function_definition
(function_name_action) function_name_action
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'loading reference package') string_'loading reference package'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_refpkg) identifier_refpkg
(identifier_Refpkg) identifier_Refpkg
)attribute
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_refpkg) identifier_refpkg
)attribute
(keyword_argument
(identifier_create) identifier_create
(False) False
)keyword_argument
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Strips non-current files and rollback information from a refpkg.
*args* should be an argparse object with fields refpkg (giving the
path to the refpkg to operate on). |
(module
(function_definition
(function_name_annotate_segments) function_name_annotate_segments
(parameters
(identifier_self) identifier_self
(identifier_Z) identifier_Z
)parameters
(block
(expression_statement
(assignment
(identifier_P) identifier_P
(call
(attribute
(identifier_Z) identifier_Z
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_P) identifier_P
(unary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_isfinite) identifier_isfinite
)attribute
(argument_list
(identifier_P) identifier_P
)argument_list
)call
)unary_operator
)subscript
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_mapping) identifier_mapping
)pattern_list
(call
(attribute
(identifier_np) identifier_np
(identifier_unique) identifier_unique
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_cumsum) identifier_cumsum
)attribute
(argument_list
(comparison_operator
(identifier_P) identifier_P
(integer_0) integer_0
)comparison_operator
)argument_list
)call
(keyword_argument
(identifier_return_index) identifier_return_index
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dZ) identifier_dZ
(call
(attribute
(identifier_Z) identifier_Z
(identifier_compressed) identifier_compressed
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_uniq) identifier_uniq
(identifier_idx) identifier_idx
)pattern_list
(call
(attribute
(identifier_np) identifier_np
(identifier_unique) identifier_unique
)attribute
(argument_list
(identifier_dZ) identifier_dZ
(keyword_argument
(identifier_return_inverse) identifier_return_inverse
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_segments) identifier_segments
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_mean_cn) identifier_mean_cn
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_uniq) identifier_uniq
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_isfinite) identifier_isfinite
)attribute
(argument_list
(identifier_mean_cn) identifier_mean_cn
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_rr) identifier_rr
(call
(identifier_contiguous_regions) identifier_contiguous_regions
(argument_list
(comparison_operator
(identifier_idx) identifier_idx
(identifier_i) identifier_i
)comparison_operator
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_segments) identifier_segments
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_mean_cn) identifier_mean_cn
(subscript
(identifier_mapping) identifier_mapping
(identifier_rr) identifier_rr
)subscript
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_segments) identifier_segments
)return_statement
)block
)function_definition
)module | Report the copy number and start-end segment |
(module
(function_definition
(function_name_get_limits) function_name_get_limits
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_vals) identifier_vals
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__hook_manager) identifier__hook_manager
)attribute
(identifier_call_hook) identifier_call_hook
)attribute
(argument_list
(string_'task_limits') string_'task_limits'
(keyword_argument
(identifier_course) identifier_course
(call
(attribute
(identifier_self) identifier_self
(identifier_get_course) identifier_get_course
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_task) identifier_task
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(attribute
(identifier_self) identifier_self
(identifier__limits) identifier__limits
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(subscript
(identifier_vals) identifier_vals
(integer_0) integer_0
)subscript
(call
(identifier_len) identifier_len
(argument_list
(identifier_vals) identifier_vals
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__limits) identifier__limits
)attribute
)conditional_expression
)return_statement
)block
)function_definition
)module | Return the limits of this task |
(module
(function_definition
(function_name_changes) function_name_changes
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(binary_operator
(string_'%s/%s/changes') string_'%s/%s/changes'
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_path) identifier_path
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_gitlab) identifier_gitlab
)attribute
(identifier_http_get) identifier_http_get
)attribute
(argument_list
(identifier_path) identifier_path
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | List the merge request changes.
Args:
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabListError: If the list could not be retrieved
Returns:
RESTObjectList: List of changes |
(module
(function_definition
(function_name_for_json) function_name_for_json
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_multiselect) identifier_multiselect
)attribute
(block
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_MultiSelectField) identifier_MultiSelectField
(identifier_self) identifier_self
)argument_list
)call
(identifier_for_json) identifier_for_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_get_python) identifier_get_python
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_value) identifier_value
(string_'for_json') string_'for_json'
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_for_json) identifier_for_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Handle multi-select vs single-select |
(module
(function_definition
(function_name__special_value_maxLength) function_name__special_value_maxLength
(parameters
(identifier_em) identifier_em
(default_parameter
(identifier_newValue) identifier_newValue
(identifier_NOT_PROVIDED) identifier_NOT_PROVIDED
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_newValue) identifier_newValue
(identifier_NOT_PROVIDED) identifier_NOT_PROVIDED
)comparison_operator
(block
(if_statement
(not_operator
(call
(attribute
(identifier_em) identifier_em
(identifier_hasAttribute) identifier_hasAttribute
)attribute
(argument_list
(string_'maxlength') string_'maxlength'
)argument_list
)call
)not_operator
(block
(return_statement
(unary_operator
(integer_1) integer_1
)unary_operator
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_curValue) identifier_curValue
(call
(attribute
(identifier_em) identifier_em
(identifier_getAttribute) identifier_getAttribute
)attribute
(argument_list
(string_'maxlength') string_'maxlength'
(string_'-1') string_'-1'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_invalidDefault) identifier_invalidDefault
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_curValue) identifier_curValue
(identifier_newValue) identifier_newValue
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_invalidDefault) identifier_invalidDefault
(identifier_IndexSizeErrorException) identifier_IndexSizeErrorException
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_convertToIntRange) identifier_convertToIntRange
(argument_list
(identifier_curValue) identifier_curValue
(keyword_argument
(identifier_minValue) identifier_minValue
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_maxValue) identifier_maxValue
(None) None
)keyword_argument
(keyword_argument
(identifier_emptyValue) identifier_emptyValue
(string_'0') string_'0'
)keyword_argument
(keyword_argument
(identifier_invalidDefault) identifier_invalidDefault
(identifier_invalidDefault) identifier_invalidDefault
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | _special_value_maxLength - Handle the special "maxLength" property
@param em <AdvancedTag> - The tag element
@param newValue - Default NOT_PROVIDED, if provided will use that value instead of the
current .getAttribute value on the tag. This is because this method can be used for both validation
and getting/setting |
(module
(function_definition
(function_name_from_csv) function_name_from_csv
(parameters
(identifier_cls) identifier_cls
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_instance) identifier_instance
(call
(identifier_cls) identifier_cls
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_instance) identifier_instance
(identifier_data) identifier_data
)attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_loadtxt) identifier_loadtxt
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_delimiter) identifier_delimiter
(string_',') string_','
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_instance) identifier_instance
)return_statement
)block
)function_definition
)module | Create gyro stream from CSV data
Load data from a CSV file.
The data must be formatted with three values per line: (x, y, z)
where x, y, z is the measured angular velocity (in radians) of the specified axis.
Parameters
-------------------
filename : str
Path to the CSV file
Returns
---------------------
GyroStream
A gyroscope stream |
(module
(function_definition
(function_name_commit) function_name_commit
(parameters
(identifier_cls) identifier_cls
(default_parameter
(identifier_client) identifier_client
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_client) identifier_client
)not_operator
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(attribute
(identifier_cls) identifier_cls
(identifier__client) identifier__client
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rtn) identifier_rtn
(call
(attribute
(identifier_client) identifier_client
(identifier_write_points) identifier_write_points
)attribute
(argument_list
(call
(attribute
(identifier_cls) identifier_cls
(identifier__json_body_) identifier__json_body_
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__reset_) identifier__reset_
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_rtn) identifier_rtn
)return_statement
)block
)function_definition
)module | Commit everything from datapoints via the client.
:param client: InfluxDBClient instance for writing points to InfluxDB.
:attention: any provided client will supersede the class client.
:return: result of client.write_points. |
(module
(function_definition
(function_name_is_enable_action_dependent) function_name_is_enable_action_dependent
(parameters
(identifier_self) identifier_self
(identifier_hosts) identifier_hosts
(identifier_services) identifier_services
)parameters
(block
(expression_statement
(assignment
(identifier_enable_action) identifier_enable_action
(False) False
)assignment
)expression_statement
(for_statement
(tuple_pattern
(identifier_dep_id) identifier_dep_id
(identifier_status) identifier_status
(identifier__) identifier__
(identifier__) identifier__
)tuple_pattern
(attribute
(identifier_self) identifier_self
(identifier_act_depend_of) identifier_act_depend_of
)attribute
(block
(if_statement
(comparison_operator
(string_'n') string_'n'
(identifier_status) identifier_status
)comparison_operator
(block
(expression_statement
(assignment
(identifier_enable_action) identifier_enable_action
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_dep_id) identifier_dep_id
(identifier_hosts) identifier_hosts
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dep) identifier_dep
(subscript
(identifier_hosts) identifier_hosts
(identifier_dep_id) identifier_dep_id
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_dep) identifier_dep
(subscript
(identifier_services) identifier_services
(identifier_dep_id) identifier_dep_id
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_p_is_down) identifier_p_is_down
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dep_match) identifier_dep_match
(list_comprehension
(call
(attribute
(identifier_dep) identifier_dep
(identifier_is_state) identifier_is_state
)attribute
(argument_list
(identifier_stat) identifier_stat
)argument_list
)call
(for_in_clause
(identifier_stat) identifier_stat
(identifier_status) identifier_status
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(True) True
(identifier_dep_match) identifier_dep_match
)comparison_operator
(block
(expression_statement
(assignment
(identifier_p_is_down) identifier_p_is_down
(True) True
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_p_is_down) identifier_p_is_down
)not_operator
(block
(expression_statement
(assignment
(identifier_enable_action) identifier_enable_action
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_enable_action) identifier_enable_action
)return_statement
)block
)function_definition
)module | Check if dependencies states match dependencies statuses
This basically means that a dependency is in a bad state and
it can explain this object state.
:param hosts: hosts objects, used to get object in act_depend_of
:type hosts: alignak.objects.host.Hosts
:param services: services objects, used to get object in act_depend_of
:type services: alignak.objects.service.Services
:return: True if all dependencies matches the status, false otherwise
:rtype: bool |
(module
(function_definition
(function_name_time) function_name_time
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_x) identifier_x
(identifier__) identifier__
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__canvas_ticks) identifier__canvas_ticks
)attribute
(identifier_coords) identifier_coords
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__time_marker_image) identifier__time_marker_image
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_position_time) identifier_get_position_time
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)return_statement
)block
)function_definition
)module | Current value the time marker is pointing to
:rtype: float |
(module
(function_definition
(function_name_extend_extents) function_name_extend_extents
(parameters
(identifier_extents) identifier_extents
(default_parameter
(identifier_factor) identifier_factor
(float_1.1) float_1.1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_width) identifier_width
(binary_operator
(subscript
(identifier_extents) identifier_extents
(integer_2) integer_2
)subscript
(subscript
(identifier_extents) identifier_extents
(integer_0) integer_0
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_height) identifier_height
(binary_operator
(subscript
(identifier_extents) identifier_extents
(integer_3) integer_3
)subscript
(subscript
(identifier_extents) identifier_extents
(integer_1) integer_1
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_add_width) identifier_add_width
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_factor) identifier_factor
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_width) identifier_width
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_add_height) identifier_add_height
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_factor) identifier_factor
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_height) identifier_height
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_x1) identifier_x1
(binary_operator
(subscript
(identifier_extents) identifier_extents
(integer_0) integer_0
)subscript
(binary_operator
(identifier_add_width) identifier_add_width
(integer_2) integer_2
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_x2) identifier_x2
(binary_operator
(subscript
(identifier_extents) identifier_extents
(integer_2) integer_2
)subscript
(binary_operator
(identifier_add_width) identifier_add_width
(integer_2) integer_2
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y1) identifier_y1
(binary_operator
(subscript
(identifier_extents) identifier_extents
(integer_1) integer_1
)subscript
(binary_operator
(identifier_add_height) identifier_add_height
(integer_2) integer_2
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y2) identifier_y2
(binary_operator
(subscript
(identifier_extents) identifier_extents
(integer_3) integer_3
)subscript
(binary_operator
(identifier_add_height) identifier_add_height
(integer_2) integer_2
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_x1) identifier_x1
(identifier_y1) identifier_y1
(identifier_x2) identifier_x2
(identifier_y2) identifier_y2
)expression_list
)return_statement
)block
)function_definition
)module | Extend a given bounding box
The bounding box (x1, y1, x2, y2) is centrally stretched by the given factor.
:param extents: The bound box extents
:param factor: The factor for stretching
:return: (x1, y1, x2, y2) of the extended bounding box |
(module
(function_definition
(function_name_embed) function_name_embed
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_width) identifier_width
(integer_600) integer_600
)default_parameter
(default_parameter
(identifier_height) identifier_height
(integer_650) integer_650
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_IPython) identifier_IPython
(identifier_display) identifier_display
)dotted_name
(dotted_name
(identifier_IFrame) identifier_IFrame
)dotted_name
)import_from_statement
(return_statement
(call
(identifier_IFrame) identifier_IFrame
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_url) identifier_url
)attribute
(identifier_width) identifier_width
(identifier_height) identifier_height
)argument_list
)call
)return_statement
)block
)function_definition
)module | Embed a viewer into a Jupyter notebook. |
(module
(function_definition
(function_name__find_models) function_name__find_models
(parameters
(identifier_self) identifier_self
(identifier_constructor) identifier_constructor
(identifier_table_name) identifier_table_name
(default_parameter
(identifier_constraints) identifier_constraints
(None) None
)default_parameter
(keyword_separator
)keyword_separator
(default_parameter
(identifier_columns) identifier_columns
(None) None
)default_parameter
(default_parameter
(identifier_order_by) identifier_order_by
(None) None
)default_parameter
(default_parameter
(identifier_limiting) identifier_limiting
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_record) identifier_record
(call
(attribute
(identifier_self) identifier_self
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(identifier_table_name) identifier_table_name
(identifier_constraints) identifier_constraints
(keyword_argument
(identifier_columns) identifier_columns
(identifier_columns) identifier_columns
)keyword_argument
(keyword_argument
(identifier_order_by) identifier_order_by
(identifier_order_by) identifier_order_by
)keyword_argument
(keyword_argument
(identifier_limiting) identifier_limiting
(identifier_limiting) identifier_limiting
)keyword_argument
)argument_list
)call
(block
(expression_statement
(yield
(call
(identifier_constructor) identifier_constructor
(argument_list
(identifier_record) identifier_record
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Calls DataAccess.find_all and passes the results to the given constructor. |
(module
(function_definition
(function_name_HeadList) function_name_HeadList
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(list_comprehension
(tuple
(identifier_rname) identifier_rname
(attribute
(identifier_repo) identifier_repo
(identifier_currenthead) identifier_currenthead
)attribute
)tuple
(for_in_clause
(pattern_list
(identifier_rname) identifier_rname
(identifier_repo) identifier_repo
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_repos) identifier_repos
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of all the currently loaded repo HEAD objects. |
(module
(function_definition
(function_name__create_instance_attributes) function_name__create_instance_attributes
(parameters
(identifier_self) identifier_self
(identifier_arguments) identifier_arguments
)parameters
(block
(for_statement
(pattern_list
(identifier_attribute_name) identifier_attribute_name
(identifier_type_instance) identifier_type_instance
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_getmembers) identifier_getmembers
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_type_instance) identifier_type_instance
(identifier_DataType) identifier_DataType
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__templates) identifier__templates
)attribute
(identifier_attribute_name) identifier_attribute_name
)subscript
(identifier_type_instance) identifier_type_instance
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_attribute_name) identifier_attribute_name
(identifier_arguments) identifier_arguments
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_arguments) identifier_arguments
(identifier_attribute_name) identifier_attribute_name
)subscript
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__attributes) identifier__attributes
)attribute
(identifier_attribute_name) identifier_attribute_name
)subscript
(call
(attribute
(identifier_type_instance) identifier_type_instance
(identifier_validate) identifier_validate
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_exception) identifier_exception
(identifier_RequiredAttributeError) identifier_RequiredAttributeError
)attribute
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__attributes) identifier__attributes
)attribute
(identifier_attribute_name) identifier_attribute_name
)subscript
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Copies class level attribute templates and makes instance placeholders
This step is required for direct uses of Model classes. This creates a
copy of attribute_names ignores methods and private variables.
DataCollection types are deep copied to ignore memory reference conflicts.
DataType instances are initialized to None or default value. |
(module
(function_definition
(function_name__setup_preferred_paths) function_name__setup_preferred_paths
(parameters
(identifier_self) identifier_self
(identifier_preferred_conversion_paths) identifier_preferred_conversion_paths
)parameters
(block
(for_statement
(identifier_path) identifier_path
(identifier_preferred_conversion_paths) identifier_preferred_conversion_paths
(block
(for_statement
(identifier_pair) identifier_pair
(call
(identifier_pair_looper) identifier_pair_looper
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_pair) identifier_pair
(attribute
(identifier_self) identifier_self
(identifier_converters) identifier_converters
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(string_'Invalid conversion path %s, unknown step %s') string_'Invalid conversion path %s, unknown step %s'
(tuple
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_pair) identifier_pair
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dgraph) identifier_dgraph
)attribute
(identifier_add_preferred_path) identifier_add_preferred_path
)attribute
(argument_list
(list_splat
(identifier_path) identifier_path
)list_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)for_statement
)block
)for_statement
)block
)function_definition
)module | Add given valid preferred conversion paths |
(module
(function_definition
(function_name_generateDirectoryNodeDocuments) function_name_generateDirectoryNodeDocuments
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_all_dirs) identifier_all_dirs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier_dirs) identifier_dirs
)attribute
(block
(expression_statement
(call
(attribute
(identifier_d) identifier_d
(identifier_findNestedDirectories) identifier_findNestedDirectories
)attribute
(argument_list
(identifier_all_dirs) identifier_all_dirs
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_d) identifier_d
(identifier_all_dirs) identifier_all_dirs
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_generateDirectoryNodeRST) identifier_generateDirectoryNodeRST
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Generates all of the directory reStructuredText documents. |
(module
(function_definition
(function_name_load_file_contents) function_name_load_file_contents
(parameters
(identifier_file_path) identifier_file_path
(default_parameter
(identifier_as_list) identifier_as_list
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_abs_file_path) identifier_abs_file_path
(call
(identifier_join) identifier_join
(argument_list
(identifier_HERE) identifier_HERE
(identifier_file_path) identifier_file_path
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_abs_file_path) identifier_abs_file_path
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_file_pointer) identifier_file_pointer
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(if_statement
(identifier_as_list) identifier_as_list
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_file_pointer) identifier_file_pointer
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_file_pointer) identifier_file_pointer
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Load file as string or list |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__connect) identifier__connect
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(attribute
(attribute
(identifier_irc) identifier_irc
(identifier_bot) identifier_bot
)attribute
(identifier_SingleServerIRCBot) identifier_SingleServerIRCBot
)attribute
(identifier_self) identifier_self
)argument_list
)call
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run the bot in a thread.
Implementing the IRC listener as a thread allows it to
listen without blocking IRCLego's ability to listen
as a pykka actor.
:return: None |
(module
(function_definition
(function_name_render) function_name_render
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_accepted_media_type) identifier_accepted_media_type
(None) None
)default_parameter
(default_parameter
(identifier_renderer_context) identifier_renderer_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_form) identifier_form
(attribute
(identifier_data) identifier_data
(identifier_serializer) identifier_serializer
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_style) identifier_style
(call
(attribute
(identifier_renderer_context) identifier_renderer_context
(identifier_get) identifier_get
)attribute
(argument_list
(string_'style') string_'style'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'template_pack') string_'template_pack'
(identifier_style) identifier_style
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_style) identifier_style
(string_'template_pack') string_'template_pack'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_template_pack) identifier_template_pack
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_style) identifier_style
(string_'renderer') string_'renderer'
)subscript
(identifier_self) identifier_self
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_template_pack) identifier_template_pack
(call
(attribute
(subscript
(identifier_style) identifier_style
(string_'template_pack') string_'template_pack'
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_template_name) identifier_template_name
(binary_operator
(binary_operator
(identifier_template_pack) identifier_template_pack
(string_'/') string_'/'
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base_template) identifier_base_template
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(attribute
(identifier_loader) identifier_loader
(identifier_get_template) identifier_get_template
)attribute
(argument_list
(identifier_template_name) identifier_template_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_context) identifier_context
(dictionary
(pair
(string_'form') string_'form'
(identifier_form) identifier_form
)pair
(pair
(string_'style') string_'style'
(identifier_style) identifier_style
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(identifier_template_render) identifier_template_render
(argument_list
(identifier_template) identifier_template
(identifier_context) identifier_context
)argument_list
)call
)return_statement
)block
)function_definition
)module | Render serializer data and return an HTML form, as a string. |
(module
(function_definition
(function_name_queue_context_entry) function_name_queue_context_entry
(parameters
(identifier_exchange) identifier_exchange
(identifier_queue_name) identifier_queue_name
(default_parameter
(identifier_routing) identifier_routing
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_routing) identifier_routing
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_routing) identifier_routing
(identifier_queue_name) identifier_queue_name
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_queue_entry) identifier_queue_entry
(call
(identifier_QueueContextEntry) identifier_QueueContextEntry
(argument_list
(keyword_argument
(identifier_mq_queue) identifier_mq_queue
(identifier_queue_name) identifier_queue_name
)keyword_argument
(keyword_argument
(identifier_mq_exchange) identifier_mq_exchange
(identifier_exchange) identifier_exchange
)keyword_argument
(keyword_argument
(identifier_mq_routing_key) identifier_mq_routing_key
(identifier_routing) identifier_routing
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_queue_entry) identifier_queue_entry
)return_statement
)block
)function_definition
)module | forms queue's context entry |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.