sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_add_children_to_node) function_name_add_children_to_node
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_has_children) identifier_has_children
)attribute
(block
(for_statement
(identifier_child_id) identifier_child_id
(attribute
(identifier_self) identifier_self
(identifier_children) identifier_children
)attribute
(block
(expression_statement
(assignment
(identifier_child) identifier_child
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_runtime) identifier_runtime
)attribute
(identifier_get_block) identifier_get_block
)attribute
(argument_list
(identifier_child_id) identifier_child_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_runtime) identifier_runtime
)attribute
(identifier_add_block_as_child_node) identifier_add_block_as_child_node
)attribute
(argument_list
(identifier_child) identifier_child
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Add children to etree.Element `node`. |
(module
(function_definition
(function_name_add_release) function_name_add_release
(parameters
(identifier_self) identifier_self
(identifier_login) identifier_login
(identifier_package_name) identifier_package_name
(identifier_version) identifier_version
(identifier_requirements) identifier_requirements
(identifier_announce) identifier_announce
(identifier_release_attrs) identifier_release_attrs
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_'%s/release/%s/%s/%s') string_'%s/release/%s/%s/%s'
(tuple
(attribute
(identifier_self) identifier_self
(identifier_domain) identifier_domain
)attribute
(identifier_login) identifier_login
(identifier_package_name) identifier_package_name
(identifier_version) identifier_version
)tuple
)binary_operator
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_release_attrs) identifier_release_attrs
)not_operator
(block
(expression_statement
(assignment
(identifier_release_attrs) identifier_release_attrs
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(dictionary
(pair
(string_'requirements') string_'requirements'
(identifier_requirements) identifier_requirements
)pair
(pair
(string_'announce') string_'announce'
(identifier_announce) identifier_announce
)pair
(pair
(string_'description') string_'description'
(None) None
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_payload) identifier_payload
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_release_attrs) identifier_release_attrs
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_data) identifier_data
(identifier_headers) identifier_headers
)pattern_list
(call
(identifier_jencode) identifier_jencode
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_response) identifier__check_response
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add a new release to a package.
:param login: the login of the package owner
:param package_name: the name of the package
:param version: the version string of the release
:param requirements: A dict of requirements TODO: describe
:param announce: An announcement that will be posted to all package watchers |
(module
(function_definition
(function_name_timestamp_from_datetime) function_name_timestamp_from_datetime
(parameters
(identifier_date_time) identifier_date_time
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_date_time) identifier_date_time
(identifier_tzinfo) identifier_tzinfo
)attribute
(None) None
)comparison_operator
(block
(return_statement
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_mktime) identifier_mktime
)attribute
(argument_list
(tuple
(attribute
(identifier_date_time) identifier_date_time
(identifier_year) identifier_year
)attribute
(attribute
(identifier_date_time) identifier_date_time
(identifier_month) identifier_month
)attribute
(attribute
(identifier_date_time) identifier_date_time
(identifier_day) identifier_day
)attribute
(attribute
(identifier_date_time) identifier_date_time
(identifier_hour) identifier_hour
)attribute
(attribute
(identifier_date_time) identifier_date_time
(identifier_minute) identifier_minute
)attribute
(attribute
(identifier_date_time) identifier_date_time
(identifier_second) identifier_second
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
)tuple
)argument_list
)call
(binary_operator
(attribute
(identifier_date_time) identifier_date_time
(identifier_microsecond) identifier_microsecond
)attribute
(float_1e6) float_1e6
)binary_operator
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(parenthesized_expression
(binary_operator
(identifier_date_time) identifier_date_time
(identifier__EPOCH) identifier__EPOCH
)binary_operator
)parenthesized_expression
(identifier_total_seconds) identifier_total_seconds
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns POSIX timestamp as float |
(module
(function_definition
(function_name_restore_schema) function_name_restore_schema
(parameters
(identifier_task) identifier_task
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_compat) identifier_compat
)dotted_name
)relative_import
(dotted_name
(identifier_get_public_schema_name) identifier_get_public_schema_name
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_schema_name) identifier_schema_name
(call
(identifier_get_public_schema_name) identifier_get_public_schema_name
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_include_public) identifier_include_public
(True) True
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_task) identifier_task
(string_'_old_schema') string_'_old_schema'
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_schema_name) identifier_schema_name
(identifier_include_public) identifier_include_public
)pattern_list
(attribute
(identifier_task) identifier_task
(identifier__old_schema) identifier__old_schema
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_connection) identifier_connection
(identifier_schema_name) identifier_schema_name
)attribute
(identifier_schema_name) identifier_schema_name
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_set_schema) identifier_set_schema
)attribute
(argument_list
(identifier_schema_name) identifier_schema_name
(keyword_argument
(identifier_include_public) identifier_include_public
(identifier_include_public) identifier_include_public
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Switches the schema back to the one from before running the task. |
(module
(function_definition
(function_name_sync_next_id) function_name_sync_next_id
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_next_id) identifier_next_id
)attribute
(None) None
)comparison_operator
(block
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(binary_operator
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_getColumnByName) identifier_getColumnByName
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_next_id) identifier_next_id
)attribute
(identifier_column_name) identifier_column_name
)attribute
)argument_list
)call
)argument_list
)call
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_next_id) identifier_next_id
)attribute
)argument_list
)call
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_n) identifier_n
(attribute
(identifier_self) identifier_self
(identifier_next_id) identifier_next_id
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_next_id) identifier_set_next_id
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_next_id) identifier_next_id
)attribute
)return_statement
)block
)function_definition
)module | Determines the highest-numbered ID in this table, and sets
the table's .next_id attribute to the next highest ID in
sequence. If the .next_id attribute is already set to a
value greater than the highest value found, then it is left
unmodified. The return value is the ID identified by this
method. If the table's .next_id attribute is None, then
this function is a no-op.
Note that tables of the same name typically share a common
.next_id attribute (it is a class attribute, not an
attribute of each instance) so that IDs can be generated
that are unique across all tables in the document. Running
sync_next_id() on all the tables in a document that are of
the same type will have the effect of setting the ID to the
next ID higher than any ID in any of those tables.
Example:
>>> import lsctables
>>> tbl = lsctables.New(lsctables.ProcessTable)
>>> print tbl.sync_next_id()
process:process_id:0 |
(module
(function_definition
(function_name_lazy_property) function_name_lazy_property
(parameters
(identifier_function) identifier_function
)parameters
(block
(expression_statement
(assignment
(identifier_cached_val) identifier_cached_val
(list
)list
)assignment
)expression_statement
(function_definition
(function_name__wrapper) function_name__wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(try_statement
(block
(return_statement
(subscript
(identifier_cached_val) identifier_cached_val
(integer_0) integer_0
)subscript
)return_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(call
(identifier_function) identifier_function
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cached_val) identifier_cached_val
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_ret_val) identifier_ret_val
)argument_list
)call
)expression_statement
(return_statement
(identifier_ret_val) identifier_ret_val
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
(return_statement
(identifier__wrapper) identifier__wrapper
)return_statement
)block
)function_definition
)module | Cache the first return value of a function for all subsequent calls.
This decorator is usefull for argument-less functions that behave more
like a global or static property that should be calculated once, but
lazily (i.e. only if requested). |
(module
(function_definition
(function_name_encode_streaming) function_name_encode_streaming
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_buffer) identifier_buffer
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_size) identifier_size
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_s) identifier_s
(identifier_data) identifier_data
(block
(expression_statement
(assignment
(pattern_list
(identifier_b) identifier_b
(identifier_v) identifier_v
)pattern_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__table) identifier__table
)attribute
(identifier_s) identifier_s
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_buffer) identifier_buffer
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_buffer) identifier_buffer
(identifier_b) identifier_b
)binary_operator
)parenthesized_expression
(identifier_v) identifier_v
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_size) identifier_size
(identifier_b) identifier_b
)augmented_assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_size) identifier_size
(integer_8) integer_8
)comparison_operator
(block
(expression_statement
(assignment
(identifier_byte) identifier_byte
(binary_operator
(identifier_buffer) identifier_buffer
(parenthesized_expression
(binary_operator
(identifier_size) identifier_size
(integer_8) integer_8
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(yield
(call
(identifier_to_byte) identifier_to_byte
(argument_list
(identifier_byte) identifier_byte
)argument_list
)call
)yield
)expression_statement
(expression_statement
(assignment
(identifier_buffer) identifier_buffer
(binary_operator
(identifier_buffer) identifier_buffer
(parenthesized_expression
(binary_operator
(identifier_byte) identifier_byte
(parenthesized_expression
(binary_operator
(identifier_size) identifier_size
(integer_8) integer_8
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_size) identifier_size
(integer_8) integer_8
)augmented_assignment
)expression_statement
)block
)while_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_size) identifier_size
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_b) identifier_b
(identifier_v) identifier_v
)pattern_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__table) identifier__table
)attribute
(identifier__EOF) identifier__EOF
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_buffer) identifier_buffer
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_buffer) identifier_buffer
(identifier_b) identifier_b
)binary_operator
)parenthesized_expression
(identifier_v) identifier_v
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_size) identifier_size
(identifier_b) identifier_b
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_size) identifier_size
(integer_8) integer_8
)comparison_operator
(block
(expression_statement
(assignment
(identifier_byte) identifier_byte
(binary_operator
(identifier_buffer) identifier_buffer
(parenthesized_expression
(binary_operator
(identifier_size) identifier_size
(integer_8) integer_8
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_byte) identifier_byte
(binary_operator
(identifier_buffer) identifier_buffer
(parenthesized_expression
(binary_operator
(integer_8) integer_8
(identifier_size) identifier_size
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(yield
(call
(identifier_to_byte) identifier_to_byte
(argument_list
(identifier_byte) identifier_byte
)argument_list
)call
)yield
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Encode given data in streaming fashion.
:param data: sequence of symbols (e.g. byte string, unicode string, list, iterator)
:return: generator of bytes (single character strings in Python2, ints in Python 3) |
(module
(function_definition
(function_name_hydrate_point) function_name_hydrate_point
(parameters
(identifier_srid) identifier_srid
(list_splat_pattern
(identifier_coordinates) identifier_coordinates
)list_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_point_class) identifier_point_class
(identifier_dim) identifier_dim
)pattern_list
(subscript
(identifier___srid_table) identifier___srid_table
(identifier_srid) identifier_srid
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_point) identifier_point
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_coordinates) identifier_coordinates
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_point) identifier_point
(identifier_srid) identifier_srid
)attribute
(identifier_srid) identifier_srid
)assignment
)expression_statement
(return_statement
(identifier_point) identifier_point
)return_statement
)block
)except_clause
(else_clause
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_coordinates) identifier_coordinates
)argument_list
)call
(identifier_dim) identifier_dim
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"SRID %d requires %d coordinates (%d provided)") string_"SRID %d requires %d coordinates (%d provided)"
(tuple
(identifier_srid) identifier_srid
(identifier_dim) identifier_dim
(call
(identifier_len) identifier_len
(argument_list
(identifier_coordinates) identifier_coordinates
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_point_class) identifier_point_class
(argument_list
(identifier_coordinates) identifier_coordinates
)argument_list
)call
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Create a new instance of a Point subclass from a raw
set of fields. The subclass chosen is determined by the
given SRID; a ValueError will be raised if no such
subclass can be found. |
(module
(function_definition
(function_name_get_module_verbosity_flags) function_name_get_module_verbosity_flags
(parameters
(list_splat_pattern
(identifier_labels) identifier_labels
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_verbose_prefix_list) identifier_verbose_prefix_list
(list
(string_'--verbose-') string_'--verbose-'
(string_'--verb') string_'--verb'
(string_'--verb-') string_'--verb-'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_veryverbose_prefix_list) identifier_veryverbose_prefix_list
(list
(string_'--veryverbose-') string_'--veryverbose-'
(string_'--veryverb') string_'--veryverb'
(string_'--veryverb-') string_'--veryverb-'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_verbose_flags) identifier_verbose_flags
(call
(identifier_tuple) identifier_tuple
(argument_list
(list_comprehension
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_lbl) identifier_lbl
)binary_operator
(for_in_clause
(pattern_list
(identifier_prefix) identifier_prefix
(identifier_lbl) identifier_lbl
)pattern_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_product) identifier_product
)attribute
(argument_list
(identifier_verbose_prefix_list) identifier_verbose_prefix_list
(identifier_labels) identifier_labels
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_veryverbose_flags) identifier_veryverbose_flags
(call
(identifier_tuple) identifier_tuple
(argument_list
(list_comprehension
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_lbl) identifier_lbl
)binary_operator
(for_in_clause
(pattern_list
(identifier_prefix) identifier_prefix
(identifier_lbl) identifier_lbl
)pattern_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_product) identifier_product
)attribute
(argument_list
(identifier_veryverbose_prefix_list) identifier_veryverbose_prefix_list
(identifier_labels) identifier_labels
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_veryverbose_module) identifier_veryverbose_module
(boolean_operator
(call
(identifier_get_argflag) identifier_get_argflag
(argument_list
(identifier_veryverbose_flags) identifier_veryverbose_flags
)argument_list
)call
(identifier_VERYVERBOSE) identifier_VERYVERBOSE
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_verbose_module) identifier_verbose_module
(parenthesized_expression
(boolean_operator
(boolean_operator
(call
(identifier_get_argflag) identifier_get_argflag
(argument_list
(identifier_verbose_flags) identifier_verbose_flags
)argument_list
)call
(identifier_veryverbose_module) identifier_veryverbose_module
)boolean_operator
(identifier_VERBOSE) identifier_VERBOSE
)boolean_operator
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_veryverbose_module) identifier_veryverbose_module
(block
(expression_statement
(assignment
(identifier_verbose_module) identifier_verbose_module
(integer_2) integer_2
)assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_verbose_module) identifier_verbose_module
(identifier_veryverbose_module) identifier_veryverbose_module
)expression_list
)return_statement
)block
)function_definition
)module | checks for standard flags for enableing module specific verbosity |
(module
(function_definition
(function_name_setRti) function_name_setRti
(parameters
(identifier_self) identifier_self
(identifier_rti) identifier_rti
)parameters
(block
(expression_statement
(call
(identifier_check_class) identifier_check_class
(argument_list
(identifier_rti) identifier_rti
(identifier_BaseRti) identifier_BaseRti
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__rti) identifier__rti
)attribute
(identifier_rti) identifier_rti
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__updateWidgets) identifier__updateWidgets
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__updateRtiInfo) identifier__updateRtiInfo
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Updates the current VisItem from the contents of the repo tree item.
Is a slot but the signal is usually connected to the Collector, which then calls
this function directly. |
(module
(function_definition
(function_name_sorted_conkeys) function_name_sorted_conkeys
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_prefix) identifier_prefix
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_conkeys) identifier_conkeys
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_cond) identifier_cond
(identifier__COND_PREFIXES) identifier__COND_PREFIXES
(block
(expression_statement
(augmented_assignment
(identifier_conkeys) identifier_conkeys
(call
(identifier_sorted) identifier_sorted
(argument_list
(list_comprehension
(identifier_key) identifier_key
(for_in_clause
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier_conditions) identifier_conditions
)attribute
)for_in_clause
(if_clause
(call
(attribute
(identifier_key) identifier_key
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_cond) identifier_cond
)argument_list
)call
)if_clause
)list_comprehension
(keyword_argument
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier_cond_int) identifier_cond_int
)attribute
)keyword_argument
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_prefix) identifier_prefix
)not_operator
(block
(return_statement
(identifier_conkeys) identifier_conkeys
)return_statement
)block
)if_statement
(return_statement
(list_comprehension
(identifier_key) identifier_key
(for_in_clause
(identifier_key) identifier_key
(identifier_conkeys) identifier_conkeys
)for_in_clause
(if_clause
(call
(attribute
(identifier_key) identifier_key
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return all condition keys in self.conditions as a list sorted
suitable for print or write to a file. If prefix is given return
only the ones prefixed with prefix. |
(module
(function_definition
(function_name__encode_time) function_name__encode_time
(parameters
(typed_parameter
(identifier_mtime) identifier_mtime
(type
(identifier_float) identifier_float
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(identifier_arrow) identifier_arrow
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_mtime) identifier_mtime
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(identifier_dt) identifier_dt
(identifier_to) identifier_to
)attribute
(argument_list
(string_"local") string_"local"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_date_val) identifier_date_val
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_year) identifier_year
)attribute
(integer_1980) integer_1980
)binary_operator
)parenthesized_expression
(integer_9) integer_9
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_month) identifier_month
)attribute
(integer_5) integer_5
)binary_operator
)parenthesized_expression
)binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_day) identifier_day
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_secs) identifier_secs
(binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_second) identifier_second
)attribute
(binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_microsecond) identifier_microsecond
)attribute
(binary_operator
(integer_10) integer_10
(integer_6) integer_6
)binary_operator
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_time_val) identifier_time_val
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_hour) identifier_hour
)attribute
(integer_11) integer_11
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(attribute
(identifier_dt) identifier_dt
(identifier_minute) identifier_minute
)attribute
(integer_5) integer_5
)binary_operator
)parenthesized_expression
)binary_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_floor) identifier_floor
)attribute
(argument_list
(binary_operator
(identifier_secs) identifier_secs
(integer_2) integer_2
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_date_val) identifier_date_val
(integer_16) integer_16
)binary_operator
)parenthesized_expression
(identifier_time_val) identifier_time_val
)binary_operator
)return_statement
)block
)function_definition
)module | Encode a mtime float as a 32-bit FAT time |
(module
(function_definition
(function_name_get_image_label) function_name_get_image_label
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_default) identifier_default
(string_"not_found.png") string_"not_found.png"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_label) identifier_label
(call
(identifier_QLabel) identifier_QLabel
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_label) identifier_label
(identifier_setPixmap) identifier_setPixmap
)attribute
(argument_list
(call
(identifier_QPixmap) identifier_QPixmap
(argument_list
(call
(identifier_get_image_path) identifier_get_image_path
(argument_list
(identifier_name) identifier_name
(identifier_default) identifier_default
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_label) identifier_label
)return_statement
)block
)function_definition
)module | Return image inside a QLabel object |
(module
(function_definition
(function_name_flush) function_name_flush
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier_item_names) identifier_item_names
)attribute
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(subscript
(identifier_self) identifier_self
(identifier_name) identifier_name
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_item) identifier_item
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_file) identifier_file
)attribute
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Ensure contents are written to file. |
(module
(function_definition
(function_name_get_conn) function_name_get_conn
(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_connections) identifier_connections
(call
(attribute
(identifier_self) identifier_self
(identifier___connections_for) identifier___connections_for
)attribute
(argument_list
(string_'get_conn') string_'get_conn'
(keyword_argument
(identifier_args) identifier_args
(identifier_args) identifier_args
)keyword_argument
(keyword_argument
(identifier_kwargs) identifier_kwargs
(identifier_kwargs) identifier_kwargs
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_connections) identifier_connections
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(subscript
(identifier_connections) identifier_connections
(integer_0) integer_0
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_connections) identifier_connections
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns a connection object from the router given ``args``.
Useful in cases where a connection cannot be automatically determined
during all steps of the process. An example of this would be
Redis pipelines. |
(module
(function_definition
(function_name_load_rv_data) function_name_load_rv_data
(parameters
(identifier_filename) identifier_filename
(identifier_indep) identifier_indep
(identifier_dep) identifier_dep
(default_parameter
(identifier_indweight) identifier_indweight
(None) None
)default_parameter
(default_parameter
(identifier_dir) identifier_dir
(string_'./') string_'./'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(string_'/') string_'/'
(identifier_filename) identifier_filename
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_path) identifier_path
(identifier_filename) identifier_filename
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(identifier_dir) identifier_dir
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_load_file) identifier_load_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rvdata) identifier_rvdata
(call
(attribute
(identifier_np) identifier_np
(identifier_loadtxt) identifier_loadtxt
)attribute
(argument_list
(identifier_load_file) identifier_load_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(string_'phoebe_rv_time') string_'phoebe_rv_time'
)subscript
(subscript
(identifier_rvdata) identifier_rvdata
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(string_'phoebe_rv_vel') string_'phoebe_rv_vel'
)subscript
(subscript
(identifier_rvdata) identifier_rvdata
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ncol) identifier_ncol
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_rvdata) identifier_rvdata
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_indweight) identifier_indweight
(string_"Standard deviation") string_"Standard deviation"
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_ncol) identifier_ncol
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(string_'phoebe_rv_sigmarv') string_'phoebe_rv_sigmarv'
)subscript
(subscript
(identifier_rvdata) identifier_rvdata
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'A sigma column is mentioned in the .phoebe file but is not present in the rv data file') string_'A sigma column is mentioned in the .phoebe file but is not present in the rv data file'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(elif_clause
(comparison_operator
(identifier_indweight) identifier_indweight
(string_"Standard weight") string_"Standard weight"
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_ncol) identifier_ncol
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(identifier_sigma) identifier_sigma
(call
(attribute
(identifier_np) identifier_np
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(integer_1) integer_1
(subscript
(identifier_rvdata) identifier_rvdata
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(string_'phoebe_rv_sigmarv') string_'phoebe_rv_sigmarv'
)subscript
(identifier_sigma) identifier_sigma
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Standard weight has been converted to Standard deviation.') string_'Standard weight has been converted to Standard deviation.'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Phoebe 2 currently only supports standard deviaton') string_'Phoebe 2 currently only supports standard deviaton'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | load dictionary with rv data. |
(module
(function_definition
(function_name_qstd) function_name_qstd
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_quant) identifier_quant
(float_0.05) float_0.05
)default_parameter
(default_parameter
(identifier_top) identifier_top
(False) False
)default_parameter
(default_parameter
(identifier_bottom) identifier_bottom
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_np) identifier_np
(identifier_sort) identifier_sort
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(attribute
(identifier_np) identifier_np
(identifier_size) identifier_size
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lo) identifier_lo
(subscript
(identifier_s) identifier_s
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_n) identifier_n
(identifier_quant) identifier_quant
)binary_operator
)argument_list
)call
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hi) identifier_hi
(subscript
(identifier_s) identifier_s
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_n) identifier_n
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_quant) identifier_quant
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)subscript
)assignment
)expression_statement
(if_statement
(identifier_top) identifier_top
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(identifier_x) identifier_x
(identifier_lo) identifier_lo
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(identifier_bottom) identifier_bottom
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(identifier_x) identifier_x
(identifier_hi) identifier_hi
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(comparison_operator
(identifier_x) identifier_x
(identifier_lo) identifier_lo
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_x) identifier_x
(identifier_hi) identifier_hi
)comparison_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_std) identifier_std
)attribute
(argument_list
(subscript
(identifier_x) identifier_x
(identifier_w) identifier_w
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | returns std, ignoring outer 'quant' pctiles |
(module
(function_definition
(function_name_on_touch) function_name_on_touch
(parameters
(identifier_self) identifier_self
(identifier_view) identifier_view
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier_declaration) identifier_declaration
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(dictionary
(pair
(string_'event') string_'event'
(identifier_event) identifier_event
)pair
(pair
(string_'result') string_'result'
(False) False
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_d) identifier_d
(identifier_touch_event) identifier_touch_event
)attribute
(argument_list
(identifier_r) identifier_r
)argument_list
)call
)expression_statement
(return_statement
(subscript
(identifier_r) identifier_r
(string_'result') string_'result'
)subscript
)return_statement
)block
)function_definition
)module | Trigger the touch event
Parameters
----------
view: int
The ID of the view that sent this event
data: bytes
The msgpack encoded key event |
(module
(function_definition
(function_name_process_exception) function_name_process_exception
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_exception) identifier_exception
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_exception) identifier_exception
(tuple
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_NotAuthorized) identifier_NotAuthorized
)attribute
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_NotAuthenticated) identifier_NotAuthenticated
)attribute
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_auth_url) identifier_auth_url
(attribute
(identifier_settings) identifier_settings
(identifier_LOGIN_URL) identifier_LOGIN_URL
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(call
(identifier_iri_to_uri) identifier_iri_to_uri
(argument_list
(call
(attribute
(identifier_request) identifier_request
(identifier_get_full_path) identifier_get_full_path
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_next_url) identifier_next_url
(identifier_auth_url) identifier_auth_url
)comparison_operator
(block
(expression_statement
(assignment
(identifier_field_name) identifier_field_name
(identifier_REDIRECT_FIELD_NAME) identifier_REDIRECT_FIELD_NAME
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_field_name) identifier_field_name
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_login_url) identifier_login_url
(call
(attribute
(identifier_request) identifier_request
(identifier_build_absolute_uri) identifier_build_absolute_uri
)attribute
(argument_list
(identifier_auth_url) identifier_auth_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_redirect_to_login) identifier_redirect_to_login
(argument_list
(identifier_next_url) identifier_next_url
(keyword_argument
(identifier_login_url) identifier_login_url
(identifier_login_url) identifier_login_url
)keyword_argument
(keyword_argument
(identifier_redirect_field_name) identifier_redirect_field_name
(identifier_field_name) identifier_field_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_exception) identifier_exception
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_NotAuthorized) identifier_NotAuthorized
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_delete_cookie) identifier_delete_cookie
)attribute
(argument_list
(string_'messages') string_'messages'
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_shortcuts) identifier_shortcuts
(identifier_render) identifier_render
)attribute
(argument_list
(identifier_request) identifier_request
(string_'not_authorized.html') string_'not_authorized.html'
(keyword_argument
(identifier_status) identifier_status
(integer_403) integer_403
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_request) identifier_request
(identifier_is_ajax) identifier_is_ajax
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_response_401) identifier_response_401
(call
(attribute
(identifier_http) identifier_http
(identifier_HttpResponse) identifier_HttpResponse
)attribute
(argument_list
(keyword_argument
(identifier_status) identifier_status
(integer_401) integer_401
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_response_401) identifier_response_401
(string_'X-Horizon-Location') string_'X-Horizon-Location'
)subscript
(subscript
(identifier_response) identifier_response
(string_'location') string_'location'
)subscript
)assignment
)expression_statement
(return_statement
(identifier_response_401) identifier_response_401
)return_statement
)block
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_exception) identifier_exception
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_NotFound) identifier_NotFound
)attribute
)argument_list
)call
(block
(raise_statement
(call
(attribute
(identifier_http) identifier_http
(identifier_Http404) identifier_Http404
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_exception) identifier_exception
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_Http302) identifier_Http302
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_shortcuts) identifier_shortcuts
(identifier_redirect) identifier_redirect
)attribute
(argument_list
(attribute
(identifier_exception) identifier_exception
(identifier_location) identifier_location
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Catches internal Horizon exception classes.
Exception classes such as NotAuthorized, NotFound and Http302
are caught and handles them gracefully. |
(module
(function_definition
(function_name_apply) function_name_apply
(parameters
(identifier_self) identifier_self
(identifier_docs) identifier_docs
(default_parameter
(identifier_split) identifier_split
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_clear) identifier_clear
(True) True
)default_parameter
(default_parameter
(identifier_parallelism) identifier_parallelism
(None) None
)default_parameter
(default_parameter
(identifier_progress_bar) identifier_progress_bar
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_CandidateExtractor) identifier_CandidateExtractor
(identifier_self) identifier_self
)argument_list
)call
(identifier_apply) identifier_apply
)attribute
(argument_list
(identifier_docs) identifier_docs
(keyword_argument
(identifier_split) identifier_split
(identifier_split) identifier_split
)keyword_argument
(keyword_argument
(identifier_clear) identifier_clear
(identifier_clear) identifier_clear
)keyword_argument
(keyword_argument
(identifier_parallelism) identifier_parallelism
(identifier_parallelism) identifier_parallelism
)keyword_argument
(keyword_argument
(identifier_progress_bar) identifier_progress_bar
(identifier_progress_bar) identifier_progress_bar
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run the CandidateExtractor.
:Example: To extract candidates from a set of training documents using
4 cores::
candidate_extractor.apply(train_docs, split=0, parallelism=4)
:param docs: Set of documents to extract from.
:param split: Which split to assign the extracted Candidates to.
:type split: int
:param clear: Whether or not to clear the existing Candidates
beforehand.
:type clear: bool
:param parallelism: How many threads to use for extraction. This will
override the parallelism value used to initialize the
CandidateExtractor if it is provided.
:type parallelism: int
:param progress_bar: Whether or not to display a progress bar. The
progress bar is measured per document.
:type progress_bar: bool |
(module
(function_definition
(function_name_trans) function_name_trans
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
(default_parameter
(identifier_parameters) identifier_parameters
(None) None
)default_parameter
(default_parameter
(identifier_domain) identifier_domain
(None) None
)default_parameter
(default_parameter
(identifier_locale) identifier_locale
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_parameters) identifier_parameters
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_locale) identifier_locale
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_locale) identifier_locale
(attribute
(identifier_self) identifier_self
(identifier_locale) identifier_locale
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__assert_valid_locale) identifier__assert_valid_locale
)attribute
(argument_list
(identifier_locale) identifier_locale
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_domain) identifier_domain
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_domain) identifier_domain
(string_'messages') string_'messages'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_catalogue) identifier_catalogue
(call
(attribute
(identifier_self) identifier_self
(identifier_get_catalogue) identifier_get_catalogue
)attribute
(argument_list
(identifier_locale) identifier_locale
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_catalogue) identifier_catalogue
(identifier_has) identifier_has
)attribute
(argument_list
(identifier_id) identifier_id
(identifier_domain) identifier_domain
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(call
(attribute
(string_"There is no translation for {0} in domain {1}") string_"There is no translation for {0} in domain {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_id) identifier_id
(identifier_domain) identifier_domain
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_catalogue) identifier_get_catalogue
)attribute
(argument_list
(identifier_locale) identifier_locale
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_id) identifier_id
(identifier_domain) identifier_domain
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_msg) identifier_msg
(identifier_parameters) identifier_parameters
)argument_list
)call
)return_statement
)block
)function_definition
)module | Throws RuntimeError whenever a message is missing |
(module
(function_definition
(function_name_visit_root) function_name_visit_root
(parameters
(identifier_self) identifier_self
(identifier__) identifier__
(identifier_children) identifier_children
)parameters
(block
(expression_statement
(assignment
(identifier_resource) identifier_resource
(subscript
(identifier_children) identifier_children
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_resource) identifier_resource
(identifier_is_root) identifier_is_root
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(identifier_resource) identifier_resource
)return_statement
)block
)function_definition
)module | The main node holding all the query.
Arguments
---------
_ (node) : parsimonious.nodes.Node.
children : list
- 0: for ``WS`` (whitespace): ``None``.
- 1: for ``NAMED_RESOURCE``: an instance of a subclass of ``.resources.Resource``.
- 2: for ``WS`` (whitespace): ``None``.
Returns
-------
.resources.Resource
An instance of a subclass of ``.resources.Resource``, with ``is_root`` set to ``True``.
Example
-------
>>> data = DataQLParser(r'''
... foo
... ''', default_rule='ROOT').data
>>> data
<Field[foo] />
>>> data.is_root
True
>>> data = DataQLParser(r'''
... bar[name]
... ''', default_rule='ROOT').data
>>> data
<List[bar]>
<Field[name] />
</List[bar]>
>>> data.is_root
True
>>> data = DataQLParser(r'''
... baz{name}
... ''', default_rule='ROOT').data
>>> data
<Object[baz]>
<Field[name] />
</Object[baz]>
>>> data.is_root
True |
(module
(function_definition
(function_name_send_scheduled_messages) function_name_send_scheduled_messages
(parameters
(default_parameter
(identifier_priority) identifier_priority
(None) None
)default_parameter
(default_parameter
(identifier_ignore_unknown_messengers) identifier_ignore_unknown_messengers
(False) False
)default_parameter
(default_parameter
(identifier_ignore_unknown_message_types) identifier_ignore_unknown_message_types
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dispatches_by_messengers) identifier_dispatches_by_messengers
(call
(attribute
(identifier_Dispatch) identifier_Dispatch
(identifier_group_by_messengers) identifier_group_by_messengers
)attribute
(argument_list
(call
(attribute
(identifier_Dispatch) identifier_Dispatch
(identifier_get_unsent) identifier_get_unsent
)attribute
(argument_list
(keyword_argument
(identifier_priority) identifier_priority
(identifier_priority) identifier_priority
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_messenger_id) identifier_messenger_id
(identifier_messages) identifier_messages
)pattern_list
(call
(attribute
(identifier_dispatches_by_messengers) identifier_dispatches_by_messengers
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_messenger_obj) identifier_messenger_obj
(call
(identifier_get_registered_messenger_object) identifier_get_registered_messenger_object
(argument_list
(identifier_messenger_id) identifier_messenger_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_messenger_obj) identifier_messenger_obj
(identifier__process_messages) identifier__process_messages
)attribute
(argument_list
(identifier_messages) identifier_messages
(keyword_argument
(identifier_ignore_unknown_message_types) identifier_ignore_unknown_message_types
(identifier_ignore_unknown_message_types) identifier_ignore_unknown_message_types
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_UnknownMessengerError) identifier_UnknownMessengerError
(block
(if_statement
(identifier_ignore_unknown_messengers) identifier_ignore_unknown_messengers
(block
(continue_statement
)continue_statement
)block
)if_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Sends scheduled messages.
:param int, None priority: number to limit sending message by this priority.
:param bool ignore_unknown_messengers: to silence UnknownMessengerError
:param bool ignore_unknown_message_types: to silence UnknownMessageTypeError
:raises UnknownMessengerError:
:raises UnknownMessageTypeError: |
(module
(function_definition
(function_name_handle) function_name_handle
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(function_definition
(function_name_dec) function_name_dec
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_handler) identifier_add_handler
)attribute
(argument_list
(identifier_event) identifier_event
(identifier_func) identifier_func
)argument_list
)call
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(return_statement
(identifier_dec) identifier_dec
)return_statement
)block
)function_definition
)module | Decorator for adding a handler function for a particular event.
Usage:
my_client = Client()
@my_client.handle("WELCOME")
def welcome_handler(client, *params):
# Do something with the event.
pass |
(module
(function_definition
(function_name__unescape_math) function_name__unescape_math
(parameters
(identifier_xml) identifier_xml
)parameters
(block
(expression_statement
(assignment
(identifier_xpath_math_script) identifier_xpath_math_script
(call
(attribute
(identifier_etree) identifier_etree
(identifier_XPath) identifier_XPath
)attribute
(argument_list
(string_'//x:script[@type="math/mml"]') string_'//x:script[@type="math/mml"]'
(keyword_argument
(identifier_namespaces) identifier_namespaces
(dictionary
(pair
(string_'x') string_'x'
(string_'http://www.w3.org/1999/xhtml') string_'http://www.w3.org/1999/xhtml'
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_math_script_list) identifier_math_script_list
(call
(identifier_xpath_math_script) identifier_xpath_math_script
(argument_list
(identifier_xml) identifier_xml
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_mathscript) identifier_mathscript
(identifier_math_script_list) identifier_math_script_list
(block
(expression_statement
(assignment
(identifier_math) identifier_math
(attribute
(identifier_mathscript) identifier_mathscript
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_math) identifier_math
(call
(identifier_unescape) identifier_unescape
(argument_list
(call
(identifier_unescape) identifier_unescape
(argument_list
(identifier_math) identifier_math
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_mathscript) identifier_mathscript
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mathscript) identifier_mathscript
(identifier_set) identifier_set
)attribute
(argument_list
(string_'type') string_'type'
(string_'math/mml') string_'math/mml'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_new_math) identifier_new_math
(call
(attribute
(identifier_etree) identifier_etree
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(identifier_math) identifier_math
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_mathscript) identifier_mathscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_math) identifier_new_math
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_xml) identifier_xml
)return_statement
)block
)function_definition
)module | Unescapes Math from Mathjax to MathML. |
(module
(function_definition
(function_name_starttls) function_name_starttls
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_use_aioopenssl) identifier_use_aioopenssl
)attribute
)not_operator
(block
(raise_statement
(call
(identifier_BadImplementationError) identifier_BadImplementationError
(argument_list
(string_"This connection does not use aioopenssl") string_"This connection does not use aioopenssl"
)argument_list
)call
)raise_statement
)block
)if_statement
(import_statement
(dotted_name
(identifier_aioopenssl) identifier_aioopenssl
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_OpenSSL) identifier_OpenSSL
)dotted_name
)import_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_ehlo_or_helo_if_needed) identifier_ehlo_or_helo_if_needed
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(if_statement
(comparison_operator
(string_"starttls") string_"starttls"
(attribute
(identifier_self) identifier_self
(identifier_esmtp_extensions) identifier_esmtp_extensions
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_SMTPCommandNotSupportedError) identifier_SMTPCommandNotSupportedError
(argument_list
(string_"STARTTLS") string_"STARTTLS"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_code) identifier_code
(identifier_message) identifier_message
)pattern_list
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_do_cmd) identifier_do_cmd
)attribute
(argument_list
(string_"STARTTLS") string_"STARTTLS"
(keyword_argument
(identifier_success) identifier_success
(tuple
(integer_220) integer_220
)tuple
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_context) identifier_context
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_context) identifier_context
(call
(attribute
(attribute
(identifier_OpenSSL) identifier_OpenSSL
(identifier_SSL) identifier_SSL
)attribute
(identifier_Context) identifier_Context
)attribute
(argument_list
(attribute
(attribute
(identifier_OpenSSL) identifier_OpenSSL
(identifier_SSL) identifier_SSL
)attribute
(identifier_TLSv1_2_METHOD) identifier_TLSv1_2_METHOD
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier_starttls) identifier_starttls
)attribute
(argument_list
(keyword_argument
(identifier_ssl_context) identifier_ssl_context
(identifier_context) identifier_context
)keyword_argument
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_last_ehlo_response) identifier_last_ehlo_response
)attribute
(tuple
(None) None
(None) None
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_last_helo_response) identifier_last_helo_response
)attribute
(tuple
(None) None
(None) None
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_supports_esmtp) identifier_supports_esmtp
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_esmtp_extensions) identifier_esmtp_extensions
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_auth_mechanisms) identifier_auth_mechanisms
)attribute
(list
)list
)assignment
)expression_statement
(return_statement
(tuple
(identifier_code) identifier_code
(identifier_message) identifier_message
)tuple
)return_statement
)block
)function_definition
)module | Upgrades the connection to the SMTP server into TLS mode.
If there has been no previous EHLO or HELO command this session, this
method tries ESMTP EHLO first.
If the server supports SSL/TLS, this will encrypt the rest of the SMTP
session.
Raises:
SMTPCommandNotSupportedError: If the server does not support STARTTLS.
SMTPCommandFailedError: If the STARTTLS command fails
BadImplementationError: If the connection does not use aioopenssl.
Args:
context (:obj:`OpenSSL.SSL.Context`): SSL context
Returns:
(int, message): A (code, message) 2-tuple containing the server
response. |
(module
(function_definition
(function_name_config) function_name_config
(parameters
(identifier_state) identifier_state
(identifier_host) identifier_host
(identifier_key) identifier_key
(identifier_value) identifier_value
(default_parameter
(identifier_repo) identifier_repo
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_existing_config) identifier_existing_config
(call
(attribute
(attribute
(identifier_host) identifier_host
(identifier_fact) identifier_fact
)attribute
(identifier_git_config) identifier_git_config
)attribute
(argument_list
(identifier_repo) identifier_repo
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_key) identifier_key
(identifier_existing_config) identifier_existing_config
)comparison_operator
(comparison_operator
(subscript
(identifier_existing_config) identifier_existing_config
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_repo) identifier_repo
(None) None
)comparison_operator
(block
(expression_statement
(yield
(call
(attribute
(string_'git config --global {0} "{1}"') string_'git config --global {0} "{1}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(call
(attribute
(string_'cd {0} && git config --local {1} "{2}"') string_'cd {0} && git config --local {1} "{2}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_repo) identifier_repo
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Manage git config for a repository or globally.
+ key: the key of the config to ensure
+ value: the value this key should have
+ repo: specify the git repo path to edit local config (defaults to global) |
(module
(function_definition
(function_name_rest_action) function_name_rest_action
(parameters
(identifier_self) identifier_self
(identifier_func) identifier_func
(identifier_url) identifier_url
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_func) identifier_func
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_timeout) identifier_timeout
(attribute
(identifier_self) identifier_self
(identifier_TIMEOUT) identifier_TIMEOUT
)attribute
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_requests) identifier_requests
(identifier_RequestException) identifier_RequestException
)attribute
(identifier_err) identifier_err
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(concatenated_string
(string_"[PyLmod] Error - connection error in ") string_"[PyLmod] Error - connection error in "
(string_"rest_action, err=%s") string_"rest_action, err=%s"
)concatenated_string
(identifier_err) identifier_err
)argument_list
)call
)expression_statement
(raise_statement
(identifier_err) identifier_err
)raise_statement
)block
)except_clause
)try_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(identifier_err) identifier_err
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_'Unable to decode %s') string_'Unable to decode %s'
(attribute
(identifier_response) identifier_response
(identifier_content) identifier_content
)attribute
)argument_list
)call
)expression_statement
(raise_statement
(identifier_err) identifier_err
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Routine to do low-level REST operation, with retry.
Args:
func (callable): API function to call
url (str): service URL endpoint
kwargs (dict): addition parameters
Raises:
requests.RequestException: Exception connection error
ValueError: Unable to decode response content
Returns:
list: the json-encoded content of the response |
(module
(function_definition
(function_name_screenshot) function_name_screenshot
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_scale) identifier_scale
(float_1.0) float_1.0
)default_parameter
(default_parameter
(identifier_quality) identifier_quality
(integer_100) integer_100
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_screenshot) identifier_screenshot
)attribute
(argument_list
(identifier_filename) identifier_filename
(identifier_scale) identifier_scale
(identifier_quality) identifier_quality
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_result) identifier_result
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_device_file) identifier_device_file
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_jsonrpc) identifier_jsonrpc
)attribute
(identifier_takeScreenshot) identifier_takeScreenshot
)attribute
(argument_list
(string_"screenshot.png") string_"screenshot.png"
(identifier_scale) identifier_scale
(identifier_quality) identifier_quality
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_device_file) identifier_device_file
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_adb) identifier_adb
)attribute
(identifier_cmd) identifier_cmd
)attribute
(argument_list
(string_"pull") string_"pull"
(identifier_device_file) identifier_device_file
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_adb) identifier_adb
)attribute
(identifier_cmd) identifier_cmd
)attribute
(argument_list
(string_"shell") string_"shell"
(string_"rm") string_"rm"
(identifier_device_file) identifier_device_file
)argument_list
)call
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(conditional_expression
(identifier_filename) identifier_filename
(comparison_operator
(attribute
(identifier_p) identifier_p
(identifier_returncode) identifier_returncode
)attribute
(integer_0) integer_0
)comparison_operator
(None) None
)conditional_expression
)return_statement
)block
)function_definition
)module | take screenshot. |
(module
(function_definition
(function_name__timestamp) function_name__timestamp
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_moment) identifier_moment
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_moment_us) identifier_moment_us
(subscript
(call
(attribute
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_moment) identifier_moment
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(call
(attribute
(string_"%Y-%m-%d-%H-%M-%S-{}") string_"%Y-%m-%d-%H-%M-%S-{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_moment_us) identifier_moment_us
)argument_list
)call
(call
(attribute
(identifier_time) identifier_time
(identifier_gmtime) identifier_gmtime
)attribute
(argument_list
(identifier_moment) identifier_moment
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a timestamp with microsecond precision. |
(module
(function_definition
(function_name_name_with_version) function_name_name_with_version
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(string_'{}:{}') string_'{}:{}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_version) identifier_version
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get user-friendly representation of the route.
:return: Route name with version suffix. The version suffix is omitted for version 1. |
(module
(function_definition
(function_name__clean) function_name__clean
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_value) identifier_value
(identifier_dtype) identifier_dtype
)attribute
(identifier_kind) identifier_kind
)attribute
(string_'S') string_'S'
)comparison_operator
(block
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_char) identifier_char
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_tolist) identifier_tolist
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_tolist) identifier_tolist
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
(elif_clause
(comparison_operator
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier___module__) identifier___module__
)attribute
(attribute
(identifier_np) identifier_np
(identifier___name__) identifier___name__
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_conversion) identifier_conversion
(call
(attribute
(identifier_np) identifier_np
(identifier_asscalar) identifier_asscalar
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(identifier_major) identifier_major
)attribute
(integer_3) integer_3
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_conversion) identifier_conversion
(identifier_bytes) identifier_bytes
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_conversion) identifier_conversion
(call
(attribute
(identifier_conversion) identifier_conversion
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_conversion) identifier_conversion
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(identifier_major) identifier_major
)attribute
(integer_3) integer_3
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_bytes) identifier_bytes
)argument_list
)call
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Convert numpy numeric types to their python equivalents. |
(module
(function_definition
(function_name_list_features_0) function_name_list_features_0
(parameters
(identifier_self) identifier_self
(identifier_locus) identifier_locus
(identifier_term) identifier_term
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'_return_http_data_only') string_'_return_http_data_only'
)subscript
(True) True
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'callback') string_'callback'
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_list_features_0_with_http_info) identifier_list_features_0_with_http_info
)attribute
(argument_list
(identifier_locus) identifier_locus
(identifier_term) identifier_term
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_data) identifier_data
)tuple_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_list_features_0_with_http_info) identifier_list_features_0_with_http_info
)attribute
(argument_list
(identifier_locus) identifier_locus
(identifier_term) identifier_term
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | List the enumerated sequence features matching a term at a locus
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_features_0(locus, term, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str locus: locus name or URI (required)
:param str term: Sequence Ontology (SO) term name, accession, or URI (required)
:return: list[Feature]
If the method is called asynchronously,
returns the request thread. |
(module
(function_definition
(function_name_render_table) function_name_render_table
(parameters
(identifier_output_dir) identifier_output_dir
(identifier_packages) identifier_packages
(default_parameter
(identifier_jenv) identifier_jenv
(identifier_JENV) identifier_JENV
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_destination_filename) identifier_destination_filename
(binary_operator
(identifier_output_dir) identifier_output_dir
(string_"/com/swiftnav/sbp/client/MessageTable.java") string_"/com/swiftnav/sbp/client/MessageTable.java"
)binary_operator
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_destination_filename) identifier_destination_filename
(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
(identifier_print) identifier_print
(argument_list
(identifier_destination_filename) identifier_destination_filename
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_jenv) identifier_jenv
(identifier_get_template) identifier_get_template
)attribute
(argument_list
(identifier_TEMPLATE_TABLE_NAME) identifier_TEMPLATE_TABLE_NAME
)argument_list
)call
(identifier_render) identifier_render
)attribute
(argument_list
(keyword_argument
(identifier_packages) identifier_packages
(identifier_packages) identifier_packages
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Render and output dispatch table |
(module
(function_definition
(function_name__check_team_exists) function_name__check_team_exists
(parameters
(identifier_team) identifier_team
)parameters
(block
(if_statement
(comparison_operator
(identifier_team) identifier_team
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_hostname) identifier_hostname
(attribute
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(call
(identifier_get_registry_url) identifier_get_registry_url
(argument_list
(identifier_team) identifier_team
)argument_list
)call
)argument_list
)call
(identifier_hostname) identifier_hostname
)attribute
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_socket) identifier_socket
(identifier_gethostbyname) identifier_gethostbyname
)attribute
(argument_list
(identifier_hostname) identifier_hostname
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_socket) identifier_socket
(identifier_gethostbyname) identifier_gethostbyname
)attribute
(argument_list
(string_'quiltdata.com') string_'quiltdata.com'
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(string_"Can't find quiltdata.com. Check your internet connection.") string_"Can't find quiltdata.com. Check your internet connection."
)assignment
)expression_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(binary_operator
(string_"Unable to connect to registry. Is the team name %r correct?") string_"Unable to connect to registry. Is the team name %r correct?"
(identifier_team) identifier_team
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)try_statement
(raise_statement
(call
(identifier_CommandException) identifier_CommandException
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check that the team registry actually exists. |
(module
(function_definition
(function_name_close_authenticator_async) function_name_close_authenticator_async
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Shutting down CBS session on connection: %r.") string_"Shutting down CBS session on connection: %r."
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_container_id) identifier_container_id
)attribute
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__cbs_auth) identifier__cbs_auth
)attribute
(identifier_destroy) identifier_destroy
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Auth closed, destroying session on connection: %r.") string_"Auth closed, destroying session on connection: %r."
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_container_id) identifier_container_id
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_destroy_async) identifier_destroy_async
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Finished shutting down CBS session on connection: %r.") string_"Finished shutting down CBS session on connection: %r."
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_container_id) identifier_container_id
)attribute
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Close the CBS auth channel and session asynchronously. |
(module
(function_definition
(function_name_load_json) function_name_load_json
(parameters
(identifier_filename) identifier_filename
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_'r') string_'r'
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_f) identifier_f
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Load a JSON object from the specified file.
Args:
filename: Path to the input JSON file.
**kwargs: Additional arguments to `json.load`.
Returns:
The object deserialized from JSON. |
(module
(function_definition
(function_name_do_api_call) function_name_do_api_call
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pyvlx) identifier_pyvlx
)attribute
(identifier_connection) identifier_connection
)attribute
(identifier_register_frame_received_cb) identifier_register_frame_received_cb
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_response_rec_callback) identifier_response_rec_callback
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_send_frame) identifier_send_frame
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_start_timeout) identifier_start_timeout
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_response_received_or_timeout) identifier_response_received_or_timeout
)attribute
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_stop_timeout) identifier_stop_timeout
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pyvlx) identifier_pyvlx
)attribute
(identifier_connection) identifier_connection
)attribute
(identifier_unregister_frame_received_cb) identifier_unregister_frame_received_cb
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_response_rec_callback) identifier_response_rec_callback
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start. Sending and waiting for answer. |
(module
(function_definition
(function_name_is_https) function_name_is_https
(parameters
(identifier_request_data) identifier_request_data
)parameters
(block
(expression_statement
(assignment
(identifier_is_https) identifier_is_https
(boolean_operator
(comparison_operator
(string_'https') string_'https'
(identifier_request_data) identifier_request_data
)comparison_operator
(comparison_operator
(subscript
(identifier_request_data) identifier_request_data
(string_'https') string_'https'
)subscript
(string_'off') string_'off'
)comparison_operator
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_https) identifier_is_https
(boolean_operator
(identifier_is_https) identifier_is_https
(parenthesized_expression
(boolean_operator
(comparison_operator
(string_'server_port') string_'server_port'
(identifier_request_data) identifier_request_data
)comparison_operator
(comparison_operator
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_request_data) identifier_request_data
(string_'server_port') string_'server_port'
)subscript
)argument_list
)call
(string_'443') string_'443'
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)assignment
)expression_statement
(return_statement
(identifier_is_https) identifier_is_https
)return_statement
)block
)function_definition
)module | Checks if https or http.
:param request_data: The request as a dict
:type: dict
:return: False if https is not active
:rtype: boolean |
(module
(function_definition
(function_name_crud_mutation_name) function_name_crud_mutation_name
(parameters
(identifier_action) identifier_action
(identifier_model) identifier_model
)parameters
(block
(expression_statement
(assignment
(identifier_model_string) identifier_model_string
(call
(identifier_get_model_string) identifier_get_model_string
(argument_list
(identifier_model) identifier_model
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_model_string) identifier_model_string
(binary_operator
(call
(attribute
(subscript
(identifier_model_string) identifier_model_string
(integer_0) integer_0
)subscript
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(subscript
(identifier_model_string) identifier_model_string
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_"{}{}") string_"{}{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_action) identifier_action
(identifier_model_string) identifier_model_string
)argument_list
)call
)return_statement
)block
)function_definition
)module | This function returns the name of a mutation that performs the specified
crud action on the given model service |
(module
(function_definition
(function_name_right_click_event_statusicon) function_name_right_click_event_statusicon
(parameters
(identifier_self) identifier_self
(identifier_icon) identifier_icon
(identifier_button) identifier_button
(identifier_time) identifier_time
)parameters
(block
(function_definition
(function_name_pos) function_name_pos
(parameters
(identifier_menu) identifier_menu
(identifier_aicon) identifier_aicon
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_StatusIcon) identifier_StatusIcon
)attribute
(identifier_position_menu) identifier_position_menu
)attribute
(argument_list
(identifier_menu) identifier_menu
(identifier_aicon) identifier_aicon
)argument_list
)call
)return_statement
)block
)function_definition
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_menu) identifier_menu
)attribute
(identifier_popup) identifier_popup
)attribute
(argument_list
(None) None
(None) None
(identifier_pos) identifier_pos
(identifier_icon) identifier_icon
(identifier_button) identifier_button
(identifier_time) identifier_time
)argument_list
)call
)expression_statement
)block
)function_definition
)module | It's just way how popup menu works in GTK. Don't ask me how it works. |
(module
(function_definition
(function_name_backward_transfer_pair) function_name_backward_transfer_pair
(parameters
(typed_parameter
(identifier_backward_channel) identifier_backward_channel
(type
(identifier_NettingChannelState) identifier_NettingChannelState
)type
)typed_parameter
(typed_parameter
(identifier_payer_transfer) identifier_payer_transfer
(type
(identifier_LockedTransferSignedState) identifier_LockedTransferSignedState
)type
)typed_parameter
(typed_parameter
(identifier_pseudo_random_generator) identifier_pseudo_random_generator
(type
(attribute
(identifier_random) identifier_random
(identifier_Random) identifier_Random
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_block_number) identifier_block_number
(type
(identifier_BlockNumber) identifier_BlockNumber
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_MediationPairState) identifier_MediationPairState
)type
)type_parameter
)generic_type
)type
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Event) identifier_Event
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_transfer_pair) identifier_transfer_pair
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_events) identifier_events
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_Event) identifier_Event
)type
)type_parameter
)generic_type
)type
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lock) identifier_lock
(attribute
(identifier_payer_transfer) identifier_payer_transfer
(identifier_lock) identifier_lock
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lock_timeout) identifier_lock_timeout
(call
(identifier_BlockTimeout) identifier_BlockTimeout
(argument_list
(binary_operator
(attribute
(identifier_lock) identifier_lock
(identifier_expiration) identifier_expiration
)attribute
(identifier_block_number) identifier_block_number
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_is_channel_usable) identifier_is_channel_usable
(argument_list
(identifier_backward_channel) identifier_backward_channel
(attribute
(identifier_lock) identifier_lock
(identifier_amount) identifier_amount
)attribute
(identifier_lock_timeout) identifier_lock_timeout
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_message_identifier) identifier_message_identifier
(call
(identifier_message_identifier_from_prng) identifier_message_identifier_from_prng
(argument_list
(identifier_pseudo_random_generator) identifier_pseudo_random_generator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_refund_transfer) identifier_refund_transfer
(call
(attribute
(identifier_channel) identifier_channel
(identifier_send_refundtransfer) identifier_send_refundtransfer
)attribute
(argument_list
(keyword_argument
(identifier_channel_state) identifier_channel_state
(identifier_backward_channel) identifier_backward_channel
)keyword_argument
(keyword_argument
(identifier_initiator) identifier_initiator
(attribute
(identifier_payer_transfer) identifier_payer_transfer
(identifier_initiator) identifier_initiator
)attribute
)keyword_argument
(keyword_argument
(identifier_target) identifier_target
(attribute
(identifier_payer_transfer) identifier_payer_transfer
(identifier_target) identifier_target
)attribute
)keyword_argument
(keyword_argument
(identifier_amount) identifier_amount
(call
(identifier_get_lock_amount_after_fees) identifier_get_lock_amount_after_fees
(argument_list
(identifier_lock) identifier_lock
(identifier_backward_channel) identifier_backward_channel
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_message_identifier) identifier_message_identifier
(identifier_message_identifier) identifier_message_identifier
)keyword_argument
(keyword_argument
(identifier_payment_identifier) identifier_payment_identifier
(attribute
(identifier_payer_transfer) identifier_payer_transfer
(identifier_payment_identifier) identifier_payment_identifier
)attribute
)keyword_argument
(keyword_argument
(identifier_expiration) identifier_expiration
(attribute
(identifier_lock) identifier_lock
(identifier_expiration) identifier_expiration
)attribute
)keyword_argument
(keyword_argument
(identifier_secrethash) identifier_secrethash
(attribute
(identifier_lock) identifier_lock
(identifier_secrethash) identifier_secrethash
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_transfer_pair) identifier_transfer_pair
(call
(identifier_MediationPairState) identifier_MediationPairState
(argument_list
(identifier_payer_transfer) identifier_payer_transfer
(attribute
(attribute
(identifier_backward_channel) identifier_backward_channel
(identifier_partner_state) identifier_partner_state
)attribute
(identifier_address) identifier_address
)attribute
(attribute
(identifier_refund_transfer) identifier_refund_transfer
(identifier_transfer) identifier_transfer
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_events) identifier_events
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_refund_transfer) identifier_refund_transfer
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(tuple
(identifier_transfer_pair) identifier_transfer_pair
(identifier_events) identifier_events
)tuple
)return_statement
)block
)function_definition
)module | Sends a transfer backwards, allowing the previous hop to try a new
route.
When all the routes available for this node failed, send a transfer
backwards with the same amount and secrethash, allowing the previous hop to
do a retry.
Args:
backward_channel: The original channel which sent the mediated transfer
to this node.
payer_transfer: The *latest* payer transfer which is backing the
mediation.
block_number: The current block number.
Returns:
The mediator pair and the correspoding refund event. |
(module
(function_definition
(function_name__getmember) function_name__getmember
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_tarinfo) identifier_tarinfo
(None) None
)default_parameter
(default_parameter
(identifier_normalize) identifier_normalize
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_members) identifier_members
(call
(attribute
(identifier_self) identifier_self
(identifier_getmembers) identifier_getmembers
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tarinfo) identifier_tarinfo
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_members) identifier_members
(subscript
(identifier_members) identifier_members
(slice
(colon) colon
(call
(attribute
(identifier_members) identifier_members
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_tarinfo) identifier_tarinfo
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_normalize) identifier_normalize
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_normpath) identifier_normpath
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_member) identifier_member
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_members) identifier_members
)argument_list
)call
(block
(if_statement
(identifier_normalize) identifier_normalize
(block
(expression_statement
(assignment
(identifier_member_name) identifier_member_name
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_normpath) identifier_normpath
)attribute
(argument_list
(attribute
(identifier_member) identifier_member
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_member_name) identifier_member_name
(attribute
(identifier_member) identifier_member
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_member_name) identifier_member_name
)comparison_operator
(block
(return_statement
(identifier_member) identifier_member
)return_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Find an archive member by name from bottom to top.
If tarinfo is given, it is used as the starting point. |
(module
(function_definition
(function_name_registers) function_name_registers
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_unroll) identifier_unroll
(False) False
)default_parameter
(default_parameter
(identifier_skip_not_present) identifier_skip_not_present
(True) True
)default_parameter
)parameters
(block
(for_statement
(identifier_child) identifier_child
(call
(attribute
(identifier_self) identifier_self
(identifier_children) identifier_children
)attribute
(argument_list
(identifier_unroll) identifier_unroll
(identifier_skip_not_present) identifier_skip_not_present
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_child) identifier_child
(identifier_RegNode) identifier_RegNode
)argument_list
)call
(block
(expression_statement
(yield
(identifier_child) identifier_child
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Returns an iterator that provides nodes for all immediate registers of
this component.
Parameters
----------
unroll : bool
If True, any children that are arrays are unrolled.
skip_not_present : bool
If True, skips children whose 'ispresent' property is set to False
Yields
------
:class:`~RegNode`
All registers in this component |
(module
(function_definition
(function_name__MergeOptional) function_name__MergeOptional
(parameters
(identifier_self) identifier_self
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(if_statement
(boolean_operator
(identifier_a) identifier_a
(identifier_b) identifier_b
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_a) identifier_a
(identifier_b) identifier_b
)comparison_operator
(block
(raise_statement
(call
(identifier_MergeError) identifier_MergeError
(argument_list
(binary_operator
(concatenated_string
(string_"values must be identical if both specified ") string_"values must be identical if both specified "
(string_"('%s' vs '%s')") string_"('%s' vs '%s')"
)concatenated_string
(tuple
(call
(attribute
(identifier_transitfeed) identifier_transitfeed
(identifier_EncodeUnicode) identifier_EncodeUnicode
)attribute
(argument_list
(identifier_a) identifier_a
)argument_list
)call
(call
(attribute
(identifier_transitfeed) identifier_transitfeed
(identifier_EncodeUnicode) identifier_EncodeUnicode
)attribute
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(boolean_operator
(identifier_a) identifier_a
(identifier_b) identifier_b
)boolean_operator
)return_statement
)block
)function_definition
)module | Tries to merge two values which may be None.
If both values are not None, they are required to be the same and the
merge is trivial. If one of the values is None and the other is not None,
the merge results in the one which is not None. If both are None, the merge
results in None.
Args:
a: The first value.
b: The second value.
Returns:
The merged value.
Raises:
MergeError: If both values are not None and are not the same. |
(module
(function_definition
(function_name_expectation) function_name_expectation
(parameters
(identifier_self) identifier_self
(identifier_prep_prog) identifier_prep_prog
(default_parameter
(identifier_operator_programs) identifier_operator_programs
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_operator_programs) identifier_operator_programs
(identifier_Program) identifier_Program
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"You have provided a Program rather than a list of Programs. The results from expectation ") string_"You have provided a Program rather than a list of Programs. The results from expectation "
(string_"will be line-wise expectation values of the operator_programs.") string_"will be line-wise expectation values of the operator_programs."
)concatenated_string
(identifier_SyntaxWarning) identifier_SyntaxWarning
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_payload) identifier_payload
(call
(attribute
(identifier_self) identifier_self
(identifier__expectation_payload) identifier__expectation_payload
)attribute
(argument_list
(identifier_prep_prog) identifier_prep_prog
(identifier_operator_programs) identifier_operator_programs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_post_json) identifier_post_json
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_sync_endpoint) identifier_sync_endpoint
)attribute
(string_"/qvm") string_"/qvm"
)binary_operator
(identifier_payload) identifier_payload
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculate the expectation value of operators given a state prepared by
prep_program.
:note: If the execution of ``quil_program`` is **non-deterministic**, i.e., if it includes
measurements and/or noisy quantum gates, then the final wavefunction from which the
expectation values are computed itself only represents a stochastically generated
sample. The expectations returned from *different* ``expectation`` calls *will then
generally be different*.
To measure the expectation of a PauliSum, you probably want to
do something like this::
progs, coefs = hamiltonian.get_programs()
expect_coeffs = np.array(cxn.expectation(prep_program, operator_programs=progs))
return np.real_if_close(np.dot(coefs, expect_coeffs))
:param Program prep_prog: Quil program for state preparation.
:param list operator_programs: A list of Programs, each specifying an operator whose expectation to compute.
Default is a list containing only the empty Program.
:return: Expectation values of the operators.
:rtype: List[float] |
(module
(function_definition
(function_name_cudaDriverGetVersion) function_name_cudaDriverGetVersion
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_version) identifier_version
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_status) identifier_status
(call
(attribute
(identifier__libcudart) identifier__libcudart
(identifier_cudaDriverGetVersion) identifier_cudaDriverGetVersion
)attribute
(argument_list
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_version) identifier_version
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_cudaCheckStatus) identifier_cudaCheckStatus
(argument_list
(identifier_status) identifier_status
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_version) identifier_version
(identifier_value) identifier_value
)attribute
)return_statement
)block
)function_definition
)module | Get installed CUDA driver version.
Return the version of the installed CUDA driver as an integer. If
no driver is detected, 0 is returned.
Returns
-------
version : int
Driver version. |
(module
(function_definition
(function_name_get_rule_option) function_name_get_rule_option
(parameters
(identifier_self) identifier_self
(identifier_rule_name_or_id) identifier_rule_name_or_id
(identifier_option_name) identifier_option_name
)parameters
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(call
(attribute
(identifier_self) identifier_self
(identifier__get_option) identifier__get_option
)attribute
(argument_list
(identifier_rule_name_or_id) identifier_rule_name_or_id
(identifier_option_name) identifier_option_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_option) identifier_option
(identifier_value) identifier_value
)attribute
)return_statement
)block
)function_definition
)module | Returns the value of a given option for a given rule. LintConfigErrors will be raised if the
rule or option don't exist. |
(module
(function_definition
(function_name_has_error) function_name_has_error
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_info) identifier_get_info
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_'status') string_'status'
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'hasError') string_'hasError'
(subscript
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
(string_'status') string_'status'
)subscript
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_info) identifier_info
)attribute
(string_'status') string_'status'
)subscript
(string_'hasError') string_'hasError'
)subscript
)return_statement
)block
)function_definition
)module | Queries the server to check if the job has an error.
Returns True or False. |
(module
(function_definition
(function_name_add_records) function_name_add_records
(parameters
(identifier_self) identifier_self
(identifier_domain) identifier_domain
(identifier_records) identifier_records
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_API_TEMPLATE) identifier_API_TEMPLATE
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_RECORDS) identifier_RECORDS
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_domain) identifier_domain
(identifier_domain) identifier_domain
)keyword_argument
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__patch) identifier__patch
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_json) identifier_json
(identifier_records) identifier_records
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Added records @ {}') string_'Added records @ {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_records) identifier_records
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Adds the specified DNS records to a domain.
:param domain: the domain to add the records to
:param records: the records to add |
(module
(function_definition
(function_name_parse_FreqDist_interChr) function_name_parse_FreqDist_interChr
(parameters
(identifier_self) identifier_self
(identifier_f) identifier_f
)parameters
(block
(expression_statement
(assignment
(identifier_parsed_data) identifier_parsed_data
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_firstline) identifier_firstline
(True) True
)assignment
)expression_statement
(for_statement
(identifier_l) identifier_l
(subscript
(identifier_f) identifier_f
(string_'f') string_'f'
)subscript
(block
(if_statement
(identifier_firstline) identifier_firstline
(block
(expression_statement
(assignment
(identifier_firstline) identifier_firstline
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_interChr) identifier_interChr
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_"\)") string_"\)"
(string_"") string_""
(subscript
(call
(attribute
(identifier_l) identifier_l
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
)argument_list
)call
(integer_1) integer_1
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_parsed_data) identifier_parsed_data
(string_'interChr') string_'interChr'
)subscript
(identifier_interChr) identifier_interChr
)assignment
)expression_statement
(return_statement
(identifier_parsed_data) identifier_parsed_data
)return_statement
)block
)function_definition
)module | Parse HOMER tagdirectory petag.FreqDistribution_1000 file to get inter-chromosomal interactions. |
(module
(function_definition
(function_name_constantLine) function_name_constantLine
(parameters
(identifier_requestContext) identifier_requestContext
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(binary_operator
(string_"constantLine(%s)") string_"constantLine(%s)"
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_epoch) identifier_epoch
(argument_list
(subscript
(identifier_requestContext) identifier_requestContext
(string_'startTime') string_'startTime'
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_epoch) identifier_epoch
(argument_list
(subscript
(identifier_requestContext) identifier_requestContext
(string_'endTime') string_'endTime'
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_step) identifier_step
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_end) identifier_end
(identifier_start) identifier_start
)binary_operator
)parenthesized_expression
(float_2.0) float_2.0
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_series) identifier_series
(call
(identifier_TimeSeries) identifier_TimeSeries
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_step) identifier_step
(list
(identifier_value) identifier_value
(identifier_value) identifier_value
(identifier_value) identifier_value
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_series) identifier_series
(identifier_pathExpression) identifier_pathExpression
)attribute
(identifier_name) identifier_name
)assignment
)expression_statement
(return_statement
(list
(identifier_series) identifier_series
)list
)return_statement
)block
)function_definition
)module | Takes a float F.
Draws a horizontal line at value F across the graph.
Example::
&target=constantLine(123.456) |
(module
(function_definition
(function_name_master) function_name_master
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_fut) identifier_fut
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_b'MASTER') string_b'MASTER'
(identifier_name) identifier_name
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_wait_convert) identifier_wait_convert
(argument_list
(identifier_fut) identifier_fut
(identifier_parse_sentinel_master) identifier_parse_sentinel_master
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a dictionary containing the specified masters state. |
(module
(function_definition
(function_name_get_model_name) function_name_get_model_name
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_model_name) identifier_model_name
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(binary_operator
(concatenated_string
(string_"%s requires either a definition of ") string_"%s requires either a definition of "
(string_"'model_name' or an implementation of 'get_model_name()'") string_"'model_name' or an implementation of 'get_model_name()'"
)concatenated_string
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_model_name) identifier_model_name
)attribute
)return_statement
)block
)function_definition
)module | Return the model name for templates. |
(module
(function_definition
(function_name_Clear) function_name_Clear
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_logfile) identifier_logfile
)attribute
(string_"wb") string_"wb"
)argument_list
)call
(as_pattern_target
(identifier_fd) identifier_fd
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_fd) identifier_fd
(identifier_write) identifier_write
)attribute
(argument_list
(string_b"") string_b""
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(except_clause
(tuple
(identifier_IOError) identifier_IOError
(identifier_OSError) identifier_OSError
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Wipes the transaction log. |
(module
(function_definition
(function_name__enter_plotting) function_name__enter_plotting
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fontsize) identifier_fontsize
(integer_9) integer_9
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_original_fontsize) identifier_original_fontsize
)attribute
(subscript
(attribute
(identifier_pyplot) identifier_pyplot
(identifier_rcParams) identifier_rcParams
)attribute
(string_'font.size') string_'font.size'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_pyplot) identifier_pyplot
(identifier_rcParams) identifier_rcParams
)attribute
(string_'font.size') string_'font.size'
)subscript
(identifier_fontsize) identifier_fontsize
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pyplot) identifier_pyplot
(identifier_hold) identifier_hold
)attribute
(argument_list
(False) False
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_pyplot) identifier_pyplot
(identifier_ioff) identifier_ioff
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | assumes that a figure is open |
(module
(function_definition
(function_name_should_generate_summaries) function_name_should_generate_summaries
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_name_scope) identifier_name_scope
(call
(attribute
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_contrib) identifier_contrib
)attribute
(identifier_framework) identifier_framework
)attribute
(identifier_get_name_scope) identifier_get_name_scope
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_name_scope) identifier_name_scope
(comparison_operator
(string_"while/") string_"while/"
(identifier_name_scope) identifier_name_scope
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(attribute
(call
(attribute
(identifier_tf) identifier_tf
(identifier_get_variable_scope) identifier_get_variable_scope
)attribute
(argument_list
)argument_list
)call
(identifier_reuse) identifier_reuse
)attribute
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Is this an appropriate context to generate summaries.
Returns:
a boolean |
(module
(function_definition
(function_name_fill_edge_matrix) function_name_fill_edge_matrix
(parameters
(identifier_nsrcs) identifier_nsrcs
(identifier_match_dict) identifier_match_dict
)parameters
(block
(expression_statement
(assignment
(identifier_e_matrix) identifier_e_matrix
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(tuple
(identifier_nsrcs) identifier_nsrcs
(identifier_nsrcs) identifier_nsrcs
)tuple
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_match_dict) identifier_match_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_e_matrix) identifier_e_matrix
(subscript
(identifier_k) identifier_k
(integer_0) integer_0
)subscript
(subscript
(identifier_k) identifier_k
(integer_1) integer_1
)subscript
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_e_matrix) identifier_e_matrix
)return_statement
)block
)function_definition
)module | Create and fill a matrix with the graph 'edges' between sources.
Parameters
----------
nsrcs : int
number of sources (used to allocate the size of the matrix)
match_dict : dict((int,int):float)
Each entry gives a pair of source indices, and the
corresponding measure (either distance or sigma)
Returns
-------
e_matrix : `~numpy.ndarray`
numpy.ndarray((nsrcs,nsrcs)) filled with zeros except for the
matches, which are filled with the edge measures (either
distances or sigmas) |
(module
(function_definition
(function_name_elcm_session_terminate) function_name_elcm_session_terminate
(parameters
(identifier_irmc_info) identifier_irmc_info
(identifier_session_id) identifier_session_id
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(identifier_elcm_request) identifier_elcm_request
(argument_list
(identifier_irmc_info) identifier_irmc_info
(keyword_argument
(identifier_method) identifier_method
(string_'DELETE') string_'DELETE'
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(binary_operator
(string_'/sessionInformation/%s/terminate') string_'/sessionInformation/%s/terminate'
(identifier_session_id) identifier_session_id
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(integer_404) integer_404
)comparison_operator
(block
(raise_statement
(call
(identifier_ELCMSessionNotFound) identifier_ELCMSessionNotFound
(argument_list
(binary_operator
(string_'Session "%s" does not exist') string_'Session "%s" does not exist'
(identifier_session_id) identifier_session_id
)binary_operator
)argument_list
)call
)raise_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(attribute
(identifier_scci) identifier_scci
(identifier_SCCIClientError) identifier_SCCIClientError
)attribute
(argument_list
(parenthesized_expression
(binary_operator
(concatenated_string
(string_'Failed to terminate session ') string_'Failed to terminate session '
(string_'"%(session)s" with error code %(error)s') string_'"%(session)s" with error code %(error)s'
)concatenated_string
(dictionary
(pair
(string_'session') string_'session'
(identifier_session_id) identifier_session_id
)pair
(pair
(string_'error') string_'error'
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
)pair
)dictionary
)binary_operator
)parenthesized_expression
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | send an eLCM request to terminate a session
:param irmc_info: node info
:param session_id: session id
:raises: ELCMSessionNotFound if the session does not exist
:raises: SCCIClientError if SCCI failed |
(module
(function_definition
(function_name__B) function_name__B
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(return_statement
(binary_operator
(call
(attribute
(identifier_special) identifier_special
(identifier_betainc) identifier_betainc
)attribute
(argument_list
(identifier_a) identifier_a
(identifier_b) identifier_b
(identifier_x) identifier_x
)argument_list
)call
(call
(attribute
(identifier_special) identifier_special
(identifier_beta) identifier_beta
)attribute
(argument_list
(identifier_a) identifier_a
(identifier_b) identifier_b
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | incomplete Beta function as described in Mamon&Lokas A13
:param x:
:param a:
:param b:
:return: |
(module
(function_definition
(function_name_compute_vest_stat) function_name_compute_vest_stat
(parameters
(identifier_vest_dict) identifier_vest_dict
(identifier_ref_aa) identifier_ref_aa
(identifier_somatic_aa) identifier_somatic_aa
(identifier_codon_pos) identifier_codon_pos
(default_parameter
(identifier_stat_func) identifier_stat_func
(attribute
(identifier_np) identifier_np
(identifier_mean) identifier_mean
)attribute
)default_parameter
(default_parameter
(identifier_default_val) identifier_default_val
(float_0.0) float_0.0
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_vest_dict) identifier_vest_dict
(None) None
)comparison_operator
(block
(return_statement
(identifier_default_val) identifier_default_val
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_myscores) identifier_myscores
(call
(identifier_fetch_vest_scores) identifier_fetch_vest_scores
(argument_list
(identifier_vest_dict) identifier_vest_dict
(identifier_ref_aa) identifier_ref_aa
(identifier_somatic_aa) identifier_somatic_aa
(identifier_codon_pos) identifier_codon_pos
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_myscores) identifier_myscores
(block
(expression_statement
(assignment
(identifier_score_stat) identifier_score_stat
(call
(identifier_stat_func) identifier_stat_func
(argument_list
(identifier_myscores) identifier_myscores
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_score_stat) identifier_score_stat
(identifier_default_val) identifier_default_val
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_score_stat) identifier_score_stat
)return_statement
)block
)function_definition
)module | Compute missense VEST score statistic.
Note: non-missense mutations are intentially not filtered out and will take
a default value of zero.
Parameters
----------
vest_dict : dict
dictionary containing vest scores across the gene of interest
ref_aa: list of str
list of reference amino acids
somatic_aa: list of str
somatic mutation aa
codon_pos : list of int
position of codon in protein sequence
stat_func : function, default=np.mean
function that calculates a statistic
default_val : float
default value to return if there are no mutations
Returns
-------
score_stat : float
vest score statistic for provided mutation list |
(module
(function_definition
(function_name_node_detail) function_name_node_detail
(parameters
(identifier_node_name) identifier_node_name
)parameters
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(identifier_session) identifier_session
(identifier_get) identifier_get
)attribute
(argument_list
(string_'token') string_'token'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(attribute
(attribute
(identifier_nago) identifier_nago
(identifier_core) identifier_core
)attribute
(identifier_get_node) identifier_get_node
)attribute
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(call
(attribute
(identifier_node) identifier_node
(identifier_get) identifier_get
)attribute
(argument_list
(string_'access') string_'access'
)argument_list
)call
(string_'master') string_'master'
)comparison_operator
)not_operator
(block
(return_statement
(call
(identifier_jsonify) identifier_jsonify
(argument_list
(keyword_argument
(identifier_status) identifier_status
(string_'error') string_'error'
)keyword_argument
(keyword_argument
(identifier_error) identifier_error
(string_"You need master access to view this page") string_"You need master access to view this page"
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(attribute
(attribute
(identifier_nago) identifier_nago
(identifier_core) identifier_core
)attribute
(identifier_get_node) identifier_get_node
)attribute
(argument_list
(identifier_node_name) identifier_node_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_render_template) identifier_render_template
(argument_list
(string_'node_detail.html') string_'node_detail.html'
(keyword_argument
(identifier_node) identifier_node
(identifier_node) identifier_node
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | View one specific node |
(module
(function_definition
(function_name_set_references) function_name_set_references
(parameters
(identifier_references) identifier_references
(identifier_components) identifier_components
)parameters
(block
(if_statement
(comparison_operator
(identifier_components) identifier_components
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(identifier_component) identifier_component
(identifier_components) identifier_components
(block
(expression_statement
(call
(attribute
(identifier_Referencer) identifier_Referencer
(identifier_set_references_for_one) identifier_set_references_for_one
)attribute
(argument_list
(identifier_references) identifier_references
(identifier_component) identifier_component
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Sets references to multiple components.
To set references components must implement [[IReferenceable]] interface.
If they don't the call to this method has no effect.
:param references: the references to be set.
:param components: a list of components to set the references to. |
(module
(function_definition
(function_name_set_tax_benefit_systems) function_name_set_tax_benefit_systems
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_tax_benefit_system) identifier_tax_benefit_system
(None) None
)default_parameter
(default_parameter
(identifier_baseline_tax_benefit_system) identifier_baseline_tax_benefit_system
(None) None
)default_parameter
)parameters
(block
(assert_statement
(comparison_operator
(identifier_tax_benefit_system) identifier_tax_benefit_system
(None) None
)comparison_operator
)assert_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tax_benefit_system) identifier_tax_benefit_system
)attribute
(identifier_tax_benefit_system) identifier_tax_benefit_system
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_cache_blacklist) identifier_cache_blacklist
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tax_benefit_system) identifier_tax_benefit_system
)attribute
(identifier_cache_blacklist) identifier_cache_blacklist
)attribute
(attribute
(identifier_self) identifier_self
(identifier_cache_blacklist) identifier_cache_blacklist
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_baseline_tax_benefit_system) identifier_baseline_tax_benefit_system
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_baseline_tax_benefit_system) identifier_baseline_tax_benefit_system
)attribute
(identifier_baseline_tax_benefit_system) identifier_baseline_tax_benefit_system
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_cache_blacklist) identifier_cache_blacklist
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_baseline_tax_benefit_system) identifier_baseline_tax_benefit_system
)attribute
(identifier_cache_blacklist) identifier_cache_blacklist
)attribute
(attribute
(identifier_self) identifier_self
(identifier_cache_blacklist) identifier_cache_blacklist
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Set the tax and benefit system and eventually the baseline tax and benefit system |
(module
(function_definition
(function_name_raise_for_old_graph) function_name_raise_for_old_graph
(parameters
(identifier_graph) identifier_graph
)parameters
(block
(expression_statement
(assignment
(identifier_graph_version) identifier_graph_version
(call
(identifier_tokenize_version) identifier_tokenize_version
(argument_list
(attribute
(identifier_graph) identifier_graph
(identifier_pybel_version) identifier_pybel_version
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_graph_version) identifier_graph_version
(identifier_PYBEL_MINIMUM_IMPORT_VERSION) identifier_PYBEL_MINIMUM_IMPORT_VERSION
)comparison_operator
(block
(raise_statement
(call
(identifier_ImportVersionWarning) identifier_ImportVersionWarning
(argument_list
(identifier_graph_version) identifier_graph_version
(identifier_PYBEL_MINIMUM_IMPORT_VERSION) identifier_PYBEL_MINIMUM_IMPORT_VERSION
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Raise an ImportVersionWarning if the BEL graph was produced by a legacy version of PyBEL.
:raises ImportVersionWarning: If the BEL graph was produced by a legacy version of PyBEL |
(module
(function_definition
(function_name__run_varnishadm) function_name__run_varnishadm
(parameters
(identifier_cmd) identifier_cmd
(default_parameter
(identifier_params) identifier_params
(tuple
)tuple
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'varnishadm') string_'varnishadm'
(identifier_cmd) identifier_cmd
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_extend) identifier_extend
)attribute
(argument_list
(list_comprehension
(identifier_param) identifier_param
(for_in_clause
(identifier_param) identifier_param
(identifier_params) identifier_params
)for_in_clause
(if_clause
(comparison_operator
(identifier_param) identifier_param
(None) None
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Executing: %s') string_'Executing: %s'
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_python_shell) identifier_python_shell
(False) False
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Execute varnishadm command
return the output of the command
cmd
The command to run in varnishadm
params
Any additional args to add to the command line
kwargs
Additional options to pass to the salt cmd.run_all function |
(module
(function_definition
(function_name_find_raw_devices) function_name_find_raw_devices
(parameters
(default_parameter
(identifier_vendor) identifier_vendor
(None) None
)default_parameter
(default_parameter
(identifier_product) identifier_product
(None) None
)default_parameter
(default_parameter
(identifier_serial_number) identifier_serial_number
(None) None
)default_parameter
(default_parameter
(identifier_custom_match) identifier_custom_match
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_is_usbraw) function_name_is_usbraw
(parameters
(identifier_dev) identifier_dev
)parameters
(block
(if_statement
(boolean_operator
(identifier_custom_match) identifier_custom_match
(not_operator
(call
(identifier_custom_match) identifier_custom_match
(argument_list
(identifier_dev) identifier_dev
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_bool) identifier_bool
(argument_list
(call
(identifier_find_interfaces) identifier_find_interfaces
(argument_list
(identifier_dev) identifier_dev
(keyword_argument
(identifier_bInterfaceClass) identifier_bInterfaceClass
(integer_0xFF) integer_0xFF
)keyword_argument
(keyword_argument
(identifier_bInterfaceSubClass) identifier_bInterfaceSubClass
(integer_0xFF) integer_0xFF
)keyword_argument
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(call
(identifier_find_devices) identifier_find_devices
(argument_list
(identifier_vendor) identifier_vendor
(identifier_product) identifier_product
(identifier_serial_number) identifier_serial_number
(identifier_is_usbraw) identifier_is_usbraw
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find connected USB RAW devices. See usbutil.find_devices for more info. |
(module
(function_definition
(function_name_addDepartment) function_name_addDepartment
(parameters
(identifier_self) identifier_self
(identifier_dep) identifier_dep
)parameters
(block
(if_statement
(call
(attribute
(identifier_api) identifier_api
(identifier_is_uid) identifier_is_uid
)attribute
(argument_list
(identifier_dep) identifier_dep
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dep) identifier_dep
(call
(attribute
(identifier_api) identifier_api
(identifier_get_object_by_uid) identifier_get_object_by_uid
)attribute
(argument_list
(identifier_dep) identifier_dep
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_deps) identifier_deps
(call
(attribute
(identifier_self) identifier_self
(identifier_getDepartments) identifier_getDepartments
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dep) identifier_dep
(identifier_deps) identifier_deps
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_deps) identifier_deps
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_dep) identifier_dep
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setDepartments) identifier_setDepartments
)attribute
(argument_list
(identifier_deps) identifier_deps
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Adds a department
:param dep: UID or department object
:returns: True when the department was added |
(module
(function_definition
(function_name_find_existing_items) function_name_find_existing_items
(parameters
(identifier_src) identifier_src
(identifier_dst) identifier_dst
(keyword_separator
)keyword_separator
(default_parameter
(identifier_fields) identifier_fields
(None) None
)default_parameter
(default_parameter
(identifier_field_map) identifier_field_map
(None) None
)default_parameter
(default_parameter
(identifier_normalize_values) identifier_normalize_values
(False) False
)default_parameter
(default_parameter
(identifier_normalize_func) identifier_normalize_func
(identifier_normalize_value) identifier_normalize_value
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_field_map) identifier_field_map
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_field_map) identifier_field_map
(identifier_FIELD_MAP) identifier_FIELD_MAP
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dst_keys) identifier_dst_keys
(set_comprehension
(call
(identifier__gather_field_values) identifier__gather_field_values
(argument_list
(identifier_dst_item) identifier_dst_item
(keyword_argument
(identifier_fields) identifier_fields
(identifier_fields) identifier_fields
)keyword_argument
(keyword_argument
(identifier_field_map) identifier_field_map
(identifier_field_map) identifier_field_map
)keyword_argument
(keyword_argument
(identifier_normalize_values) identifier_normalize_values
(identifier_normalize_values) identifier_normalize_values
)keyword_argument
(keyword_argument
(identifier_normalize_func) identifier_normalize_func
(identifier_normalize_func) identifier_normalize_func
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_dst_item) identifier_dst_item
(identifier_dst) identifier_dst
)for_in_clause
)set_comprehension
)assignment
)expression_statement
(for_statement
(identifier_src_item) identifier_src_item
(identifier_src) identifier_src
(block
(if_statement
(comparison_operator
(call
(identifier__gather_field_values) identifier__gather_field_values
(argument_list
(identifier_src_item) identifier_src_item
(keyword_argument
(identifier_fields) identifier_fields
(identifier_fields) identifier_fields
)keyword_argument
(keyword_argument
(identifier_field_map) identifier_field_map
(identifier_field_map) identifier_field_map
)keyword_argument
(keyword_argument
(identifier_normalize_values) identifier_normalize_values
(identifier_normalize_values) identifier_normalize_values
)keyword_argument
(keyword_argument
(identifier_normalize_func) identifier_normalize_func
(identifier_normalize_func) identifier_normalize_func
)keyword_argument
)argument_list
)call
(identifier_dst_keys) identifier_dst_keys
)comparison_operator
(block
(expression_statement
(yield
(identifier_src_item) identifier_src_item
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Find items from an item collection that are in another item collection.
Parameters:
src (list): A list of item dicts or filepaths.
dst (list): A list of item dicts or filepaths.
fields (list): A list of fields used to compare item dicts.
field_map (~collections.abc.Mapping): A mapping field name aliases.
Default: :data:`~google_music_utils.constants.FIELD_MAP`
normalize_values (bool): Normalize metadata values to remove common differences between sources.
Default: ``False``
normalize_func (function): Function to apply to metadata values if
``normalize_values`` is ``True``.
Default: :func:`~google_music_utils.utils.normalize_value`
Yields:
dict: The next item from ``src`` collection in ``dst`` collection. |
(module
(function_definition
(function_name_disconnect_sync) function_name_disconnect_sync
(parameters
(identifier_self) identifier_self
(identifier_connection_handle) identifier_connection_handle
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bable) identifier_bable
)attribute
(identifier_disconnect) identifier_disconnect
)attribute
(argument_list
(keyword_argument
(identifier_connection_handle) identifier_connection_handle
(identifier_connection_handle) identifier_connection_handle
)keyword_argument
(keyword_argument
(identifier_sync) identifier_sync
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Synchronously disconnect from whoever has connected to us
Args:
connection_handle (int): The handle of the connection we wish to disconnect. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_DELETE) identifier_DELETE
)attribute
(call
(attribute
(identifier_http) identifier_http
(identifier_QueryDict) identifier_QueryDict
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_body) identifier_body
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_email_addr) identifier_email_addr
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_DELETE) identifier_DELETE
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'email') string_'email'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_user_id) identifier_user_id
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_DELETE) identifier_DELETE
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'user') string_'user'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_email_addr) identifier_email_addr
)not_operator
(block
(return_statement
(call
(attribute
(identifier_http) identifier_http
(identifier_HttpResponseBadRequest) identifier_HttpResponseBadRequest
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_email) identifier_email
(call
(attribute
(attribute
(identifier_EmailAddressValidation) identifier_EmailAddressValidation
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_address) identifier_address
(identifier_email_addr) identifier_email_addr
)keyword_argument
(keyword_argument
(identifier_user_id) identifier_user_id
(identifier_user_id) identifier_user_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_EmailAddressValidation) identifier_EmailAddressValidation
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_email) identifier_email
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_http) identifier_http
(identifier_HttpResponse) identifier_HttpResponse
)attribute
(argument_list
(keyword_argument
(identifier_status) identifier_status
(integer_204) integer_204
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_email) identifier_email
(call
(attribute
(attribute
(identifier_EmailAddress) identifier_EmailAddress
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_address) identifier_address
(identifier_email_addr) identifier_email_addr
)keyword_argument
(keyword_argument
(identifier_user_id) identifier_user_id
(identifier_user_id) identifier_user_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_EmailAddress) identifier_EmailAddress
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(raise_statement
(attribute
(identifier_http) identifier_http
(identifier_Http404) identifier_Http404
)attribute
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_email) identifier_email
(identifier_user) identifier_user
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_email) identifier_email
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_http) identifier_http
(identifier_HttpResponse) identifier_HttpResponse
)attribute
(argument_list
(keyword_argument
(identifier_status) identifier_status
(integer_204) integer_204
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove an email address, validated or not. |
(module
(function_definition
(function_name_validate_matches) function_name_validate_matches
(parameters
(identifier_other) identifier_other
)parameters
(block
(function_definition
(function_name_matches_validator) function_name_matches_validator
(parameters
(identifier_field) identifier_field
(identifier_data) identifier_data
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_value) identifier_value
)attribute
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_value) identifier_value
)attribute
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_other) identifier_other
)argument_list
)call
)comparison_operator
)parenthesized_expression
)not_operator
(block
(raise_statement
(call
(identifier_ValidationError) identifier_ValidationError
(argument_list
(string_'matches') string_'matches'
(keyword_argument
(identifier_other) identifier_other
(identifier_other) identifier_other
)keyword_argument
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
(return_statement
(identifier_matches_validator) identifier_matches_validator
)return_statement
)block
)function_definition
)module | Validate the field value is equal to another field in the data.
Should work with anything that supports '==' operator.
:param value: Field key to compare.
:raises: ``ValidationError('matches')`` |
(module
(function_definition
(function_name_find_regions) function_name_find_regions
(parameters
(identifier_self) identifier_self
(identifier_word) identifier_word
)parameters
(block
(expression_statement
(assignment
(identifier_length) identifier_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_match) identifier_match
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(attribute
(identifier_re) identifier_re
(identifier_finditer) identifier_finditer
)attribute
(argument_list
(string_"[aeiouy][^aeiouy]") string_"[aeiouy][^aeiouy]"
(identifier_word) identifier_word
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_index) identifier_index
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_match) identifier_match
(identifier_end) identifier_end
)attribute
(argument_list
)argument_list
)call
(identifier_length) identifier_length
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_r1) identifier_r1
)attribute
(call
(attribute
(identifier_match) identifier_match
(identifier_end) identifier_end
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_index) identifier_index
(integer_1) integer_1
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_match) identifier_match
(identifier_end) identifier_end
)attribute
(argument_list
)argument_list
)call
(identifier_length) identifier_length
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_r2) identifier_r2
)attribute
(call
(attribute
(identifier_match) identifier_match
(identifier_end) identifier_end
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Find regions R1 and R2. |
(module
(function_definition
(function_name_reload) function_name_reload
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(identifier_self) identifier_self
(identifier__default_configuration) identifier__default_configuration
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__file_path) identifier__file_path
)attribute
(block
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__load_config_file) identifier__load_config_file
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_config) identifier_config
(attribute
(identifier_self) identifier_self
(identifier__values) identifier__values
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__values) identifier__values
)attribute
(identifier_config) identifier_config
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Reload the configuration from disk returning True if the
configuration has changed from the previous values. |
(module
(function_definition
(function_name_resolve_object_property) function_name_resolve_object_property
(parameters
(identifier_obj) identifier_obj
(typed_parameter
(identifier_path) identifier_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(identifier_obj) identifier_obj
)assignment
)expression_statement
(for_statement
(identifier_path_part) identifier_path_part
(call
(attribute
(identifier_path) identifier_path
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_value) identifier_value
(identifier_path_part) identifier_path_part
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Resolves the value of a property on an object.
Is able to resolve nested properties. For example,
a path can be specified:
'other.beer.name'
Raises:
AttributeError:
In case the property could not be resolved.
Returns:
The value of the specified property. |
(module
(function_definition
(function_name_get_downsampled_scatter) function_name_get_downsampled_scatter
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_xax) identifier_xax
(string_"area_um") string_"area_um"
)default_parameter
(default_parameter
(identifier_yax) identifier_yax
(string_"deform") string_"deform"
)default_parameter
(default_parameter
(identifier_downsample) identifier_downsample
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_xscale) identifier_xscale
(string_"linear") string_"linear"
)default_parameter
(default_parameter
(identifier_yscale) identifier_yscale
(string_"linear") string_"linear"
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_downsample) identifier_downsample
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"`downsample` must be zero or positive!") string_"`downsample` must be zero or positive!"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_downsample) identifier_downsample
(call
(identifier_int) identifier_int
(argument_list
(identifier_downsample) identifier_downsample
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_xax) identifier_xax
(call
(attribute
(identifier_xax) identifier_xax
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_yax) identifier_yax
(call
(attribute
(identifier_yax) identifier_yax
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(subscript
(subscript
(identifier_self) identifier_self
(identifier_xax) identifier_xax
)subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_filter) identifier_filter
)attribute
(identifier_all) identifier_all
)attribute
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(subscript
(subscript
(identifier_self) identifier_self
(identifier_yax) identifier_yax
)subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_filter) identifier_filter
)attribute
(identifier_all) identifier_all
)attribute
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_xs) identifier_xs
(call
(attribute
(identifier_self) identifier_self
(identifier__apply_scale) identifier__apply_scale
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_xscale) identifier_xscale
(identifier_xax) identifier_xax
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ys) identifier_ys
(call
(attribute
(identifier_self) identifier_self
(identifier__apply_scale) identifier__apply_scale
)attribute
(argument_list
(identifier_y) identifier_y
(identifier_yscale) identifier_yscale
(identifier_yax) identifier_yax
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier__) identifier__
(identifier_idx) identifier_idx
)pattern_list
(call
(attribute
(identifier_downsampling) identifier_downsampling
(identifier_downsample_grid) identifier_downsample_grid
)attribute
(argument_list
(identifier_xs) identifier_xs
(identifier_ys) identifier_ys
(keyword_argument
(identifier_samples) identifier_samples
(identifier_downsample) identifier_downsample
)keyword_argument
(keyword_argument
(identifier_ret_idx) identifier_ret_idx
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__plot_filter) identifier__plot_filter
)attribute
(identifier_idx) identifier_idx
)assignment
)expression_statement
(return_statement
(expression_list
(subscript
(identifier_x) identifier_x
(identifier_idx) identifier_idx
)subscript
(subscript
(identifier_y) identifier_y
(identifier_idx) identifier_idx
)subscript
)expression_list
)return_statement
)block
)function_definition
)module | Downsampling by removing points at dense locations
Parameters
----------
xax: str
Identifier for x axis (e.g. "area_um", "aspect", "deform")
yax: str
Identifier for y axis
downsample: int
Number of points to draw in the down-sampled plot.
This number is either
- >=1: exactly downsample to this number by randomly adding
or removing points
- 0 : do not perform downsampling
xscale: str
If set to "log", take the logarithm of the x-values before
performing downsampling. This is useful when data are are
displayed on a log-scale. Defaults to "linear".
yscale: str
See `xscale`.
Returns
-------
xnew, xnew: filtered x and y |
(module
(function_definition
(function_name_detect_mode) function_name_detect_mode
(parameters
(default_parameter
(identifier_term_hint) identifier_term_hint
(string_"xterm-256color") string_"xterm-256color"
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(string_"ANSICON") string_"ANSICON"
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
)comparison_operator
(block
(return_statement
(integer_16) integer_16
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"ConEmuANSI") string_"ConEmuANSI"
(string_"OFF") string_"OFF"
)argument_list
)call
(string_"ON") string_"ON"
)comparison_operator
(block
(return_statement
(integer_256) integer_256
)return_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_term) identifier_term
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"TERM") string_"TERM"
(identifier_term_hint) identifier_term_hint
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_term) identifier_term
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"-256color") string_"-256color"
)argument_list
)call
(comparison_operator
(identifier_term) identifier_term
(tuple
(string_"xterm") string_"xterm"
(string_"screen") string_"screen"
)tuple
)comparison_operator
)boolean_operator
(block
(return_statement
(integer_256) integer_256
)return_statement
)block
(elif_clause
(boolean_operator
(call
(attribute
(identifier_term) identifier_term
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"-color") string_"-color"
)argument_list
)call
(comparison_operator
(identifier_term) identifier_term
(tuple
(string_"rxvt") string_"rxvt"
)tuple
)comparison_operator
)boolean_operator
(block
(return_statement
(integer_16) integer_16
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(integer_256) integer_256
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Poor-mans color mode detection. |
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_obj) identifier_obj
(default_parameter
(identifier_content_type) identifier_content_type
(identifier_JSON_CONTENT_TYPE) identifier_JSON_CONTENT_TYPE
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_retry_bad_nonce) function_name_retry_bad_nonce
(parameters
(identifier_f) identifier_f
)parameters
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_trap) identifier_trap
)attribute
(argument_list
(identifier_ServerError) identifier_ServerError
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(subscript
(call
(attribute
(attribute
(attribute
(attribute
(identifier_f) identifier_f
(identifier_value) identifier_value
)attribute
(identifier_message) identifier_message
)attribute
(identifier_typ) identifier_typ
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(string_'badNonce') string_'badNonce'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__nonces) identifier__nonces
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_nonce) identifier__add_nonce
)attribute
(argument_list
(attribute
(attribute
(identifier_f) identifier_f
(identifier_value) identifier_value
)attribute
(identifier_response) identifier_response
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_obj) identifier_obj
(identifier_content_type) identifier_content_type
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)function_definition
(return_statement
(parenthesized_expression
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_obj) identifier_obj
(identifier_content_type) identifier_content_type
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(identifier_addErrback) identifier_addErrback
)attribute
(argument_list
(identifier_retry_bad_nonce) identifier_retry_bad_nonce
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | POST an object and check the response. Retry once if a badNonce error
is received.
:param str url: The URL to request.
:param ~josepy.interfaces.JSONDeSerializable obj: The serializable
payload of the request.
:param bytes content_type: The expected content type of the response.
By default, JSON.
:raises txacme.client.ServerError: If server response body carries HTTP
Problem (draft-ietf-appsawg-http-problem-00).
:raises acme.errors.ClientError: In case of other protocol errors. |
(module
(function_definition
(function_name_clean_text) function_name_clean_text
(parameters
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_new_text) identifier_new_text
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_ur'\p{P}+') string_ur'\p{P}+'
(string_' ') string_' '
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_text) identifier_new_text
(list_comprehension
(call
(identifier_stem) identifier_stem
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(call
(attribute
(identifier_new_text) identifier_new_text
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_re) identifier_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_r'[0-9]') string_r'[0-9]'
(identifier_i) identifier_i
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_text) identifier_new_text
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_new_text) identifier_new_text
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_new_text) identifier_new_text
)return_statement
)block
)function_definition
)module | Clean text for TFIDF. |
(module
(function_definition
(function_name_get_host_port_names) function_name_get_host_port_names
(parameters
(identifier_self) identifier_self
(identifier_host_name) identifier_host_name
)parameters
(block
(expression_statement
(assignment
(identifier_port_names) identifier_port_names
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_host) identifier_host
(call
(attribute
(identifier_self) identifier_self
(identifier_get_hosts_by_name) identifier_get_hosts_by_name
)attribute
(argument_list
(identifier_host_name) identifier_host_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fc_ports) identifier_fc_ports
(attribute
(identifier_host) identifier_host
(identifier_fc_ports) identifier_fc_ports
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iscsi_ports) identifier_iscsi_ports
(attribute
(identifier_host) identifier_host
(identifier_iscsi_ports) identifier_iscsi_ports
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_port_names) identifier_port_names
(identifier_extend) identifier_extend
)attribute
(argument_list
(conditional_expression
(call
(attribute
(identifier_fc_ports) identifier_fc_ports
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
(comparison_operator
(identifier_fc_ports) identifier_fc_ports
(string_'') string_''
)comparison_operator
(list
)list
)conditional_expression
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_port_names) identifier_port_names
(identifier_extend) identifier_extend
)attribute
(argument_list
(conditional_expression
(call
(attribute
(identifier_iscsi_ports) identifier_iscsi_ports
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
(comparison_operator
(identifier_iscsi_ports) identifier_iscsi_ports
(string_'') string_''
)comparison_operator
(list
)list
)conditional_expression
)argument_list
)call
)expression_statement
(return_statement
(identifier_port_names) identifier_port_names
)return_statement
)block
)function_definition
)module | return a list of the port names of XIV host |
(module
(function_definition
(function_name_afw_json_importer) function_name_afw_json_importer
(parameters
(typed_parameter
(identifier_input_file) identifier_input_file
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(expression_statement
(assignment
(identifier_file) identifier_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_input_file) identifier_input_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json_file) identifier_json_file
(call
(attribute
(identifier_json) identifier_json
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_transitions) identifier_transitions
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_p) identifier_p
(subscript
(identifier_json_file) identifier_json_file
(string_'transitions') string_'transitions'
)subscript
(block
(expression_statement
(assignment
(subscript
(identifier_transitions) identifier_transitions
(subscript
(identifier_p) identifier_p
(integer_0) integer_0
)subscript
(subscript
(identifier_p) identifier_p
(integer_1) integer_1
)subscript
)subscript
(subscript
(identifier_p) identifier_p
(integer_2) integer_2
)subscript
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_afw) identifier_afw
(dictionary
(pair
(string_'alphabet') string_'alphabet'
(call
(identifier_set) identifier_set
(argument_list
(subscript
(identifier_json_file) identifier_json_file
(string_'alphabet') string_'alphabet'
)subscript
)argument_list
)call
)pair
(pair
(string_'states') string_'states'
(call
(identifier_set) identifier_set
(argument_list
(subscript
(identifier_json_file) identifier_json_file
(string_'states') string_'states'
)subscript
)argument_list
)call
)pair
(pair
(string_'initial_state') string_'initial_state'
(subscript
(identifier_json_file) identifier_json_file
(string_'initial_state') string_'initial_state'
)subscript
)pair
(pair
(string_'accepting_states') string_'accepting_states'
(call
(identifier_set) identifier_set
(argument_list
(subscript
(identifier_json_file) identifier_json_file
(string_'accepting_states') string_'accepting_states'
)subscript
)argument_list
)call
)pair
(pair
(string_'transitions') string_'transitions'
(identifier_transitions) identifier_transitions
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_afw) identifier_afw
)return_statement
)block
)function_definition
)module | Imports a AFW from a JSON file.
:param str input_file: path+filename to input JSON file;
:return: *(dict)* representing a AFW. |
(module
(function_definition
(function_name_is_valid_variable_name) function_name_is_valid_variable_name
(parameters
(identifier_string_to_check) identifier_string_to_check
)parameters
(block
(try_statement
(block
(expression_statement
(call
(identifier_parse) identifier_parse
(argument_list
(call
(attribute
(string_'{} = None') string_'{} = None'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_string_to_check) identifier_string_to_check
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(tuple
(identifier_SyntaxError) identifier_SyntaxError
(identifier_ValueError) identifier_ValueError
(identifier_TypeError) identifier_TypeError
)tuple
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns whether the provided name is a valid variable name in Python
:param string_to_check: the string to be checked
:return: True or False |
(module
(function_definition
(function_name_Timestamp) function_name_Timestamp
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(string_'') string_''
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(binary_operator
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(string_' UTC') string_' UTC'
)binary_operator
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_'Could not get current time ') string_'Could not get current time '
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_timestamp) identifier_timestamp
)return_statement
)block
)function_definition
)module | Get the current datetime in UTC |
(module
(function_definition
(function_name_request_add_sensor) function_name_request_add_sensor
(parameters
(identifier_self) identifier_self
(identifier_sock) identifier_sock
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_sensor) identifier_add_sensor
)attribute
(argument_list
(call
(identifier_Sensor) identifier_Sensor
(argument_list
(identifier_int) identifier_int
(binary_operator
(string_'int_sensor%d') string_'int_sensor%d'
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__sensors) identifier__sensors
)attribute
)argument_list
)call
)binary_operator
(string_'descr') string_'descr'
(string_'unit') string_'unit'
(keyword_argument
(identifier_params) identifier_params
(list
(unary_operator
(integer_10) integer_10
)unary_operator
(integer_10) integer_10
)list
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_Message) identifier_Message
(identifier_reply) identifier_reply
)attribute
(argument_list
(string_'add-sensor') string_'add-sensor'
(string_'ok') string_'ok'
)argument_list
)call
)return_statement
)block
)function_definition
)module | add a sensor |
(module
(function_definition
(function_name_remove_tmp_prefix_from_file_path) function_name_remove_tmp_prefix_from_file_path
(parameters
(identifier_file_path) identifier_file_path
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_path) identifier_path
(identifier_filename) identifier_filename
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_file_path) identifier_file_path
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(call
(identifier_remove_tmp_prefix_from_filename) identifier_remove_tmp_prefix_from_filename
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'\\') string_'\\'
(string_'/') string_'/'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove tmp prefix from file path or url. |
(module
(function_definition
(function_name__value_format) function_name__value_format
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier_serie) identifier_serie
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_sum_) identifier_sum_
(subscript
(subscript
(attribute
(identifier_serie) identifier_serie
(identifier_points) identifier_points
)attribute
(identifier_index) identifier_index
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_serie) identifier_serie
(attribute
(identifier_self) identifier_self
(identifier_series) identifier_series
)attribute
)comparison_operator
(parenthesized_expression
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_stack_from_top) identifier_stack_from_top
)attribute
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_series) identifier_series
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_serie) identifier_serie
)argument_list
)call
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__order) identifier__order
)attribute
(integer_1) integer_1
)binary_operator
)comparison_operator
)boolean_operator
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_stack_from_top) identifier_stack_from_top
)attribute
)not_operator
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_series) identifier_series
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_serie) identifier_serie
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_StackedLine) identifier_StackedLine
(identifier_self) identifier_self
)argument_list
)call
(identifier__value_format) identifier__value_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(string_'%s (+%s)') string_'%s (+%s)'
(tuple
(call
(attribute
(identifier_self) identifier_self
(identifier__y_format) identifier__y_format
)attribute
(argument_list
(identifier_sum_) identifier_sum_
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier__y_format) identifier__y_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | Display value and cumulation |
(module
(function_definition
(function_name_makeMissingRequiredGlyphs) function_name_makeMissingRequiredGlyphs
(parameters
(identifier_font) identifier_font
(identifier_glyphSet) identifier_glyphSet
)parameters
(block
(if_statement
(comparison_operator
(string_".notdef") string_".notdef"
(identifier_glyphSet) identifier_glyphSet
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_unitsPerEm) identifier_unitsPerEm
(call
(identifier_otRound) identifier_otRound
(argument_list
(call
(identifier_getAttrWithFallback) identifier_getAttrWithFallback
(argument_list
(attribute
(identifier_font) identifier_font
(identifier_info) identifier_info
)attribute
(string_"unitsPerEm") string_"unitsPerEm"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ascender) identifier_ascender
(call
(identifier_otRound) identifier_otRound
(argument_list
(call
(identifier_getAttrWithFallback) identifier_getAttrWithFallback
(argument_list
(attribute
(identifier_font) identifier_font
(identifier_info) identifier_info
)attribute
(string_"ascender") string_"ascender"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_descender) identifier_descender
(call
(identifier_otRound) identifier_otRound
(argument_list
(call
(identifier_getAttrWithFallback) identifier_getAttrWithFallback
(argument_list
(attribute
(identifier_font) identifier_font
(identifier_info) identifier_info
)attribute
(string_"descender") string_"descender"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_defaultWidth) identifier_defaultWidth
(call
(identifier_otRound) identifier_otRound
(argument_list
(binary_operator
(identifier_unitsPerEm) identifier_unitsPerEm
(float_0.5) float_0.5
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_glyphSet) identifier_glyphSet
(string_".notdef") string_".notdef"
)subscript
(call
(identifier_StubGlyph) identifier_StubGlyph
(argument_list
(keyword_argument
(identifier_name) identifier_name
(string_".notdef") string_".notdef"
)keyword_argument
(keyword_argument
(identifier_width) identifier_width
(identifier_defaultWidth) identifier_defaultWidth
)keyword_argument
(keyword_argument
(identifier_unitsPerEm) identifier_unitsPerEm
(identifier_unitsPerEm) identifier_unitsPerEm
)keyword_argument
(keyword_argument
(identifier_ascender) identifier_ascender
(identifier_ascender) identifier_ascender
)keyword_argument
(keyword_argument
(identifier_descender) identifier_descender
(identifier_descender) identifier_descender
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Add .notdef to the glyph set if it is not present.
**This should not be called externally.** Subclasses
may override this method to handle the glyph creation
in a different way if desired. |
(module
(function_definition
(function_name_ubridge_path) function_name_ubridge_path
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__manager) identifier__manager
)attribute
(identifier_config) identifier_config
)attribute
(identifier_get_section_config) identifier_get_section_config
)attribute
(argument_list
(string_"Server") string_"Server"
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_"ubridge_path") string_"ubridge_path"
(string_"ubridge") string_"ubridge"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_which) identifier_which
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_path) identifier_path
)return_statement
)block
)function_definition
)module | Returns the uBridge executable path.
:returns: path to uBridge |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_cls) identifier_cls
(identifier_model) identifier_model
(default_parameter
(identifier_commit) identifier_commit
(True) True
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_model) identifier_model
(identifier_cls) identifier_cls
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'%s is not of type %s') string_'%s is not of type %s'
(tuple
(identifier_model) identifier_model
(identifier_cls) identifier_cls
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_session) identifier_session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_model) identifier_model
)argument_list
)call
)expression_statement
(try_statement
(block
(if_statement
(identifier_commit) identifier_commit
(block
(expression_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_session) identifier_session
)attribute
(identifier_rollback) identifier_rollback
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Adds a model instance to session and commits the
transaction.
Args:
model: The instance to add.
Examples:
>>> customer = Customer.new(name="hari", email="hari@gmail.com")
>>> Customer.add(customer)
hari@gmail.com |
(module
(function_definition
(function_name_renew_access_token) function_name_renew_access_token
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_auth_params) identifier_auth_params
(dictionary
(pair
(string_'REFRESH_TOKEN') string_'REFRESH_TOKEN'
(attribute
(identifier_self) identifier_self
(identifier_refresh_token) identifier_refresh_token
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_secret_hash) identifier__add_secret_hash
)attribute
(argument_list
(identifier_auth_params) identifier_auth_params
(string_'SECRET_HASH') string_'SECRET_HASH'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_refresh_response) identifier_refresh_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_initiate_auth) identifier_initiate_auth
)attribute
(argument_list
(keyword_argument
(identifier_ClientId) identifier_ClientId
(attribute
(identifier_self) identifier_self
(identifier_client_id) identifier_client_id
)attribute
)keyword_argument
(keyword_argument
(identifier_AuthFlow) identifier_AuthFlow
(string_'REFRESH_TOKEN') string_'REFRESH_TOKEN'
)keyword_argument
(keyword_argument
(identifier_AuthParameters) identifier_AuthParameters
(identifier_auth_params) identifier_auth_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set_attributes) identifier__set_attributes
)attribute
(argument_list
(identifier_refresh_response) identifier_refresh_response
(dictionary
(pair
(string_'access_token') string_'access_token'
(subscript
(subscript
(identifier_refresh_response) identifier_refresh_response
(string_'AuthenticationResult') string_'AuthenticationResult'
)subscript
(string_'AccessToken') string_'AccessToken'
)subscript
)pair
(pair
(string_'id_token') string_'id_token'
(subscript
(subscript
(identifier_refresh_response) identifier_refresh_response
(string_'AuthenticationResult') string_'AuthenticationResult'
)subscript
(string_'IdToken') string_'IdToken'
)subscript
)pair
(pair
(string_'token_type') string_'token_type'
(subscript
(subscript
(identifier_refresh_response) identifier_refresh_response
(string_'AuthenticationResult') string_'AuthenticationResult'
)subscript
(string_'TokenType') string_'TokenType'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets a new access token on the User using the refresh token. |
(module
(function_definition
(function_name_get_user_cmd) function_name_get_user_cmd
(parameters
(identifier_node_dict) identifier_node_dict
)parameters
(block
(expression_statement
(assignment
(identifier_key_lu) identifier_key_lu
(dictionary
(pair
(string_"q") string_"q"
(list
(string_"quit") string_"quit"
(True) True
)list
)pair
(pair
(string_"r") string_"r"
(list
(string_"run") string_"run"
(True) True
)list
)pair
(pair
(string_"s") string_"s"
(list
(string_"stop") string_"stop"
(True) True
)list
)pair
(pair
(string_"u") string_"u"
(list
(string_"update") string_"update"
(True) True
)list
)pair
(pair
(string_"c") string_"c"
(list
(string_"connect") string_"connect"
(True) True
)list
)pair
(pair
(string_"d") string_"d"
(list
(string_"details") string_"details"
(True) True
)list
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(identifier_ui_cmd_bar) identifier_ui_cmd_bar
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cmd_valid) identifier_cmd_valid
(False) False
)assignment
)expression_statement
(expression_statement
(call
(identifier_input_flush) identifier_input_flush
(argument_list
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_term) identifier_term
(identifier_cbreak) identifier_cbreak
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(while_statement
(not_operator
(identifier_cmd_valid) identifier_cmd_valid
)not_operator
(block
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(identifier_input_by_key) identifier_input_by_key
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_cmd_name) identifier_cmd_name
(identifier_cmd_valid) identifier_cmd_valid
)pattern_list
(call
(attribute
(identifier_key_lu) identifier_key_lu
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_val) identifier_val
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(list
(string_"invalid") string_"invalid"
(False) False
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_cmd_valid) identifier_cmd_valid
)not_operator
(block
(expression_statement
(call
(identifier_ui_print) identifier_ui_print
(argument_list
(call
(attribute
(string_" - {0}Invalid Entry{1}") string_" - {0}Invalid Entry{1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_C_ERR) identifier_C_ERR
(identifier_C_NORM) identifier_C_NORM
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_sleep) identifier_sleep
(argument_list
(float_0.5) float_0.5
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_ui_cmd_bar) identifier_ui_cmd_bar
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
)block
)with_statement
(return_statement
(identifier_cmd_name) identifier_cmd_name
)return_statement
)block
)function_definition
)module | Get main command selection. |
(module
(function_definition
(function_name_text) function_name_text
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_get) identifier_force_get
(False) False
)default_parameter
)parameters
(block
(function_definition
(function_name_text_element) function_name_text_element
(parameters
)parameters
(block
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_element) identifier_element
)attribute
(identifier_text) identifier_text
)attribute
)return_statement
)block
)function_definition
(function_definition
(function_name_force_text_element) function_name_force_text_element
(parameters
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_driver_wrapper) identifier_driver_wrapper
)attribute
(identifier_js_executor) identifier_js_executor
)attribute
(identifier_execute_template_and_return_result) identifier_execute_template_and_return_result
)attribute
(argument_list
(string_'getElementText.js') string_'getElementText.js'
(dictionary
)dictionary
(attribute
(identifier_self) identifier_self
(identifier_element) identifier_element
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
(if_statement
(identifier_force_get) identifier_force_get
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute_and_handle_webelement_exceptions) identifier_execute_and_handle_webelement_exceptions
)attribute
(argument_list
(identifier_force_text_element) identifier_force_text_element
(string_'get text by javascript') string_'get text by javascript'
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute_and_handle_webelement_exceptions) identifier_execute_and_handle_webelement_exceptions
)attribute
(argument_list
(identifier_text_element) identifier_text_element
(string_'get text') string_'get text'
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get the text of the element
@rtype: str
@return: Text of the element |
(module
(function_definition
(function_name_get_code) function_name_get_code
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_buff) identifier_buff
(call
(attribute
(identifier_self) identifier_self
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_"Code") string_"Code"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_buff) identifier_buff
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_unpack) identifier_unpack
(argument_list
(identifier_buff) identifier_buff
)argument_list
)call
(as_pattern_target
(identifier_up) identifier_up
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(identifier_JavaCodeInfo) identifier_JavaCodeInfo
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cpool) identifier_cpool
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_code) identifier_code
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(identifier_up) identifier_up
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_code) identifier_code
)return_statement
)block
)function_definition
)module | the JavaCodeInfo of this member if it is a non-abstract method,
None otherwise
reference: http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.3 |
(module
(function_definition
(function_name_get_message_from_call) function_name_get_message_from_call
(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
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
(identifier_dict) identifier_dict
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'called with arg dictionary') string_'called with arg dictionary'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_kwargs) identifier_kwargs
(dictionary
)dictionary
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'called with kwargs') string_'called with kwargs'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(identifier_kwargs) identifier_kwargs
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(string_'get_message_from_call could not handle "%r", "%r"') string_'get_message_from_call could not handle "%r", "%r"'
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Pass either keyword arguments or a dictionary argument') string_'Pass either keyword arguments or a dictionary argument'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_message_class) identifier_message_class
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | \
Get message object from a call.
:raises: :py:exc:`TypeError` (if the format is not what we expect)
This is where arguments to nodes are turned into Messages. Arguments
are parsed in the following order:
- A single positional argument (a :py:class:`dict`)
- No positional arguments and a number of keyword arguments |
(module
(function_definition
(function_name_depth_november_average_ground_temperature) function_name_depth_november_average_ground_temperature
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_float) identifier_float
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_'value {} need to be of type float ') string_'value {} need to be of type float '
(string_'for field `depth_november_average_ground_temperature`') string_'for field `depth_november_average_ground_temperature`'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__depth_november_average_ground_temperature) identifier__depth_november_average_ground_temperature
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | Corresponds to IDD Field `depth_november_average_ground_temperature`
Args:
value (float): value for IDD Field `depth_november_average_ground_temperature`
Unit: C
if `value` is None it will not be checked against the
specification and is assumed to be a missing value
Raises:
ValueError: if `value` is not a valid value |
(module
(function_definition
(function_name_ones) function_name_ones
(parameters
(identifier_shape) identifier_shape
(default_parameter
(identifier_ctx) identifier_ctx
(None) None
)default_parameter
(default_parameter
(identifier_dtype) identifier_dtype
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_ctx) identifier_ctx
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ctx) identifier_ctx
(call
(identifier_current_context) identifier_current_context
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dtype) identifier_dtype
(conditional_expression
(identifier_mx_real_t) identifier_mx_real_t
(comparison_operator
(identifier_dtype) identifier_dtype
(None) None
)comparison_operator
(identifier_dtype) identifier_dtype
)conditional_expression
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier__internal) identifier__internal
(identifier__ones) identifier__ones
)attribute
(argument_list
(keyword_argument
(identifier_shape) identifier_shape
(identifier_shape) identifier_shape
)keyword_argument
(keyword_argument
(identifier_ctx) identifier_ctx
(identifier_ctx) identifier_ctx
)keyword_argument
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a new array filled with all ones, with the given shape and type.
Parameters
----------
shape : int or tuple of int or list of int
The shape of the empty array.
ctx : Context, optional
An optional device context.
Defaults to the current default context (``mxnet.context.current_context()``).
dtype : str or numpy.dtype, optional
An optional value type (default is `float32`).
out : NDArray, optional
The output NDArray (default is `None`).
Returns
-------
NDArray
A new array of the specified shape filled with all ones.
Examples
--------
>>> mx.nd.ones(1).asnumpy()
array([ 1.], dtype=float32)
>>> mx.nd.ones((1,2), mx.gpu(0))
<NDArray 1x2 @gpu(0)>
>>> mx.nd.ones((1,2), dtype='float16').asnumpy()
array([[ 1., 1.]], dtype=float16) |
(module
(function_definition
(function_name__load_result) function_name__load_result
(parameters
(identifier_response) identifier_response
(identifier_ret) identifier_ret
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_response) identifier_response
(string_'code') string_'code'
)subscript
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(subscript
(identifier_response) identifier_response
(string_'content') string_'content'
)subscript
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_response) identifier_response
(string_'code') string_'code'
)subscript
(integer_401) integer_401
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(string_'401 Forbidden: Authentication required!') string_'401 Forbidden: Authentication required!'
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_response) identifier_response
(string_'code') string_'code'
)subscript
(integer_404) integer_404
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(subscript
(subscript
(identifier_response) identifier_response
(string_'content') string_'content'
)subscript
(string_'message') string_'message'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_response) identifier_response
(string_'code') string_'code'
)subscript
(integer_200) integer_200
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'result') string_'result'
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(concatenated_string
(string_'Listing Current Configuration Only. ') string_'Listing Current Configuration Only. '
(string_'Not action or changes occurred during the execution of this state.') string_'Not action or changes occurred during the execution of this state.'
)concatenated_string
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'changes') string_'changes'
)subscript
(subscript
(identifier_response) identifier_response
(string_'content') string_'content'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(subscript
(subscript
(identifier_response) identifier_response
(string_'content') string_'content'
)subscript
(string_'message') string_'message'
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | format the results of listing functions |
(module
(function_definition
(function_name_set_footer) function_name_set_footer
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(default_parameter
(identifier_text) identifier_text
(identifier_EmptyEmbed) identifier_EmptyEmbed
)default_parameter
(default_parameter
(identifier_icon_url) identifier_icon_url
(identifier_EmptyEmbed) identifier_EmptyEmbed
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__footer) identifier__footer
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_text) identifier_text
(identifier_EmptyEmbed) identifier_EmptyEmbed
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__footer) identifier__footer
)attribute
(string_'text') string_'text'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_icon_url) identifier_icon_url
(identifier_EmptyEmbed) identifier_EmptyEmbed
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__footer) identifier__footer
)attribute
(string_'icon_url') string_'icon_url'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_icon_url) identifier_icon_url
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Sets the footer for the embed content.
This function returns the class instance to allow for fluent-style
chaining.
Parameters
-----------
text: :class:`str`
The footer text.
icon_url: :class:`str`
The URL of the footer icon. Only HTTP(S) is supported. |
(module
(function_definition
(function_name_repl) function_name_repl
(parameters
)parameters
(block
(try_statement
(block
(import_statement
(dotted_name
(identifier_IPython) identifier_IPython
)dotted_name
)import_statement
)block
(except_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"ERROR: IPython is not installed. Please install it to use the repl.") string_"ERROR: IPython is not installed. Please install it to use the repl."
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_IPython) identifier_IPython
(identifier_embed) identifier_embed
)attribute
(argument_list
(keyword_argument
(identifier_user_ns) identifier_user_ns
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_settings) identifier_settings
(attribute
(identifier_oz) identifier_oz
(identifier_settings) identifier_settings
)attribute
)keyword_argument
(keyword_argument
(identifier_actions) identifier_actions
(attribute
(identifier_oz) identifier_oz
(identifier__actions) identifier__actions
)attribute
)keyword_argument
(keyword_argument
(identifier_uimodules) identifier_uimodules
(attribute
(identifier_oz) identifier_oz
(identifier__uimodules) identifier__uimodules
)attribute
)keyword_argument
(keyword_argument
(identifier_routes) identifier_routes
(attribute
(identifier_oz) identifier_oz
(identifier__routes) identifier__routes
)attribute
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Runs an IPython repl with some context |
(module
(function_definition
(function_name_ssh_file) function_name_ssh_file
(parameters
(identifier_opts) identifier_opts
(identifier_dest_path) identifier_dest_path
(default_parameter
(identifier_contents) identifier_contents
(None) None
)default_parameter
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_local_file) identifier_local_file
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_opts) identifier_opts
(identifier_get) identifier_get
)attribute
(argument_list
(string_'file_transport') string_'file_transport'
(string_'sftp') string_'sftp'
)argument_list
)call
(string_'sftp') string_'sftp'
)comparison_operator
(block
(return_statement
(call
(identifier_sftp_file) identifier_sftp_file
(argument_list
(identifier_dest_path) identifier_dest_path
(identifier_contents) identifier_contents
(identifier_kwargs) identifier_kwargs
(identifier_local_file) identifier_local_file
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_scp_file) identifier_scp_file
(argument_list
(identifier_dest_path) identifier_dest_path
(identifier_contents) identifier_contents
(identifier_kwargs) identifier_kwargs
(identifier_local_file) identifier_local_file
)argument_list
)call
)return_statement
)block
)function_definition
)module | Copies a file to the remote SSH target using either sftp or scp, as
configured. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.