sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_pop) function_name_pop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_method_frame) identifier_method_frame
(identifier_header) identifier_header
(identifier_body) identifier_body
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_basic_get) identifier_basic_get
)attribute
(argument_list
(keyword_argument
(identifier_queue) identifier_queue
(attribute
(identifier_self) identifier_self
(identifier_key) identifier_key
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_body) identifier_body
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__decode_request) identifier__decode_request
)attribute
(argument_list
(identifier_body) identifier_body
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Pop a request |
(module
(function_definition
(function_name_should_exclude) function_name_should_exclude
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(for_statement
(identifier_skip_glob) identifier_skip_glob
(attribute
(identifier_self) identifier_self
(identifier_skip_globs) identifier_skip_globs
)attribute
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_filename_matches_glob) identifier_filename_matches_glob
)attribute
(argument_list
(identifier_filename) identifier_filename
(identifier_skip_glob) identifier_skip_glob
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Should we exclude this file from consideration? |
(module
(function_definition
(function_name_get_forces) function_name_get_forces
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_forces) identifier_forces
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'GET') string_'GET'
(string_'forces') string_'forces'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_forces) identifier_forces
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Force) identifier_Force
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_id) identifier_id
(subscript
(identifier_f) identifier_f
(string_'id') string_'id'
)subscript
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(subscript
(identifier_f) identifier_f
(string_'name') string_'name'
)subscript
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_forces) identifier_forces
)return_statement
)block
)function_definition
)module | Get a list of all police forces. Uses the forces_ API call.
.. _forces: https://data.police.uk/docs/method/forces/
:rtype: list
:return: A list of :class:`forces.Force` objects (one for each police
force represented in the API) |
(module
(function_definition
(function_name_get_geostationary_mask) function_name_get_geostationary_mask
(parameters
(identifier_area) identifier_area
)parameters
(block
(expression_statement
(assignment
(identifier_h) identifier_h
(subscript
(attribute
(identifier_area) identifier_area
(identifier_proj_dict) identifier_proj_dict
)attribute
(string_'h') string_'h'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_xmax) identifier_xmax
(identifier_ymax) identifier_ymax
)pattern_list
(call
(identifier_get_geostationary_angle_extent) identifier_get_geostationary_angle_extent
(argument_list
(identifier_area) identifier_area
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_xmax) identifier_xmax
(identifier_h) identifier_h
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ymax) identifier_ymax
(identifier_h) identifier_h
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_x) identifier_x
(identifier_y) identifier_y
)pattern_list
(call
(attribute
(identifier_area) identifier_area
(identifier_get_proj_coords_dask) identifier_get_proj_coords_dask
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_x) identifier_x
(identifier_xmax) identifier_xmax
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_ymax) identifier_ymax
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)comparison_operator
)return_statement
)block
)function_definition
)module | Compute a mask of the earth's shape as seen by a geostationary satellite
Args:
area (pyresample.geometry.AreaDefinition) : Corresponding area
definition
Returns:
Boolean mask, True inside the earth's shape, False outside. |
(module
(function_definition
(function_name_bool_from_string) function_name_bool_from_string
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(string_"Unable to interpret non-string value '%s' as boolean") string_"Unable to interpret non-string value '%s' as boolean"
(parenthesized_expression
(identifier_value) identifier_value
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(attribute
(identifier_value) identifier_value
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(list
(string_'y') string_'y'
(string_'yes') string_'yes'
(string_'true') string_'true'
(string_'t') string_'t'
(string_'on') string_'on'
)list
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_value) identifier_value
(list
(string_'n') string_'n'
(string_'no') string_'no'
(string_'false') string_'false'
(string_'f') string_'f'
(string_'off') string_'off'
)list
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(string_"Unable to interpret string value '%s' as boolean") string_"Unable to interpret string value '%s' as boolean"
(parenthesized_expression
(identifier_value) identifier_value
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Interpret string value as boolean.
Returns True if value translates to True otherwise False. |
(module
(function_definition
(function_name_multiget) function_name_multiget
(parameters
(identifier_self) identifier_self
(identifier_keys) identifier_keys
(default_parameter
(identifier_r) identifier_r
(None) None
)default_parameter
(default_parameter
(identifier_pr) identifier_pr
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
(default_parameter
(identifier_basic_quorum) identifier_basic_quorum
(None) None
)default_parameter
(default_parameter
(identifier_notfound_ok) identifier_notfound_ok
(None) None
)default_parameter
(default_parameter
(identifier_head_only) identifier_head_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_bkeys) identifier_bkeys
(list_comprehension
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bucket_type) identifier_bucket_type
)attribute
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_key) identifier_key
)tuple
(for_in_clause
(identifier_key) identifier_key
(identifier_keys) identifier_keys
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_multiget) identifier_multiget
)attribute
(argument_list
(identifier_bkeys) identifier_bkeys
(keyword_argument
(identifier_r) identifier_r
(identifier_r) identifier_r
)keyword_argument
(keyword_argument
(identifier_pr) identifier_pr
(identifier_pr) identifier_pr
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
(keyword_argument
(identifier_basic_quorum) identifier_basic_quorum
(identifier_basic_quorum) identifier_basic_quorum
)keyword_argument
(keyword_argument
(identifier_notfound_ok) identifier_notfound_ok
(identifier_notfound_ok) identifier_notfound_ok
)keyword_argument
(keyword_argument
(identifier_head_only) identifier_head_only
(identifier_head_only) identifier_head_only
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves a list of keys belonging to this bucket in parallel.
:param keys: the keys to fetch
:type keys: list
:param r: R-Value for the requests (defaults to bucket's R)
:type r: integer
:param pr: PR-Value for the requests (defaults to bucket's PR)
:type pr: integer
:param timeout: a timeout value in milliseconds
:type timeout: int
:param basic_quorum: whether to use the "basic quorum" policy
for not-founds
:type basic_quorum: bool
:param notfound_ok: whether to treat not-found responses as successful
:type notfound_ok: bool
:param head_only: whether to fetch without value, so only metadata
(only available on PB transport)
:type head_only: bool
:rtype: list of :class:`RiakObjects <riak.riak_object.RiakObject>`,
:class:`Datatypes <riak.datatypes.Datatype>`, or tuples of
bucket_type, bucket, key, and the exception raised on fetch |
(module
(function_definition
(function_name_colorize) function_name_colorize
(parameters
(identifier_string) identifier_string
(identifier_stack) identifier_stack
)parameters
(block
(expression_statement
(assignment
(identifier_codes) identifier_codes
(call
(identifier_optimize) identifier_optimize
(argument_list
(identifier_stack) identifier_stack
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_codes) identifier_codes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(binary_operator
(identifier_SEQ) identifier_SEQ
(call
(attribute
(string_';') string_';'
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_str) identifier_str
(identifier_codes) identifier_codes
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_suffix) identifier_suffix
(binary_operator
(identifier_SEQ) identifier_SEQ
(attribute
(identifier_STYLE) identifier_STYLE
(identifier_reset) identifier_reset
)attribute
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_string) identifier_string
)binary_operator
(identifier_suffix) identifier_suffix
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_string) identifier_string
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Apply optimal ANSI escape sequences to the string. |
(module
(function_definition
(function_name_get_missing_languages) function_name_get_missing_languages
(parameters
(identifier_self) identifier_self
(identifier_field_name) identifier_field_name
(identifier_db_table) identifier_db_table
)parameters
(block
(expression_statement
(assignment
(identifier_db_table_fields) identifier_db_table_fields
(call
(attribute
(identifier_self) identifier_self
(identifier_get_table_fields) identifier_get_table_fields
)attribute
(argument_list
(identifier_db_table) identifier_db_table
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_lang_code) identifier_lang_code
(identifier_AVAILABLE_LANGUAGES) identifier_AVAILABLE_LANGUAGES
(block
(if_statement
(comparison_operator
(call
(identifier_build_localized_fieldname) identifier_build_localized_fieldname
(argument_list
(identifier_field_name) identifier_field_name
(identifier_lang_code) identifier_lang_code
)argument_list
)call
(identifier_db_table_fields) identifier_db_table_fields
)comparison_operator
(block
(expression_statement
(yield
(identifier_lang_code) identifier_lang_code
)yield
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Gets only missings fields. |
(module
(function_definition
(function_name_safe_cast_to_index) function_name_safe_cast_to_index
(parameters
(typed_parameter
(identifier_array) identifier_array
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(attribute
(identifier_pd) identifier_pd
(identifier_Index) identifier_Index
)attribute
)type
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_array) identifier_array
(attribute
(identifier_pd) identifier_pd
(identifier_Index) identifier_Index
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(identifier_array) identifier_array
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_array) identifier_array
(string_'to_index') string_'to_index'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(attribute
(identifier_array) identifier_array
(identifier_to_index) identifier_to_index
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_array) identifier_array
(string_'dtype') string_'dtype'
)argument_list
)call
(comparison_operator
(attribute
(attribute
(identifier_array) identifier_array
(identifier_dtype) identifier_dtype
)attribute
(identifier_kind) identifier_kind
)attribute
(string_'O') string_'O'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'dtype') string_'dtype'
)subscript
(identifier_object) identifier_object
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(attribute
(identifier_pd) identifier_pd
(identifier_Index) identifier_Index
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_array) identifier_array
)argument_list
)call
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier__maybe_cast_to_cftimeindex) identifier__maybe_cast_to_cftimeindex
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given an array, safely cast it to a pandas.Index.
If it is already a pandas.Index, return it unchanged.
Unlike pandas.Index, if the array has dtype=object or dtype=timedelta64,
this function will not attempt to do automatic type conversion but will
always return an index with dtype=object. |
(module
(function_definition
(function_name__to_key) function_name__to_key
(parameters
(identifier_d) identifier_d
)parameters
(block
(expression_statement
(assignment
(identifier_as_str) identifier_as_str
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_d) identifier_d
(keyword_argument
(identifier_sort_keys) identifier_sort_keys
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_as_str) identifier_as_str
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'"{{') string_'"{{'
(string_'{{') string_'{{'
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'}}"') string_'}}"'
(string_'}}') string_'}}'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert dict to str and enable Jinja2 template syntax. |
(module
(function_definition
(function_name_encode) function_name_encode
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)default_parameter
(default_parameter
(identifier_encoding_errors) identifier_encoding_errors
(string_'strict') string_'strict'
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_bytes) identifier_bytes
)argument_list
)call
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_basestring) identifier_basestring
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_unicode) identifier_unicode
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_value) identifier_value
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_encoding) identifier_encoding
(identifier_encoding_errors) identifier_encoding_errors
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Return a bytestring representation of the value. |
(module
(function_definition
(function_name_validate) function_name_validate
(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
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_ParameterValidator) identifier_ParameterValidator
(identifier_self) identifier_self
)argument_list
)call
(identifier__validate) identifier__validate
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Validate a parameter dict against a parameter schema from an ocrd-tool.json
Args:
obj (dict):
schema (dict): |
(module
(function_definition
(function_name_add_val) function_name_add_val
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(call
(identifier_type) identifier_type
(argument_list
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | add value in form of dict |
(module
(function_definition
(function_name_set_log_type_flags) function_name_set_log_type_flags
(parameters
(identifier_self) identifier_self
(identifier_logType) identifier_logType
(identifier_stdoutFlag) identifier_stdoutFlag
(identifier_fileFlag) identifier_fileFlag
)parameters
(block
(assert_statement
(comparison_operator
(identifier_logType) identifier_logType
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___logTypeStdoutFlags) identifier___logTypeStdoutFlags
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(binary_operator
(string_"logType '%s' not defined") string_"logType '%s' not defined"
(identifier_logType) identifier_logType
)binary_operator
)assert_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_stdoutFlag) identifier_stdoutFlag
(identifier_bool) identifier_bool
)argument_list
)call
(string_"stdoutFlag must be boolean") string_"stdoutFlag must be boolean"
)assert_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_fileFlag) identifier_fileFlag
(identifier_bool) identifier_bool
)argument_list
)call
(string_"fileFlag must be boolean") string_"fileFlag must be boolean"
)assert_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___logTypeStdoutFlags) identifier___logTypeStdoutFlags
)attribute
(identifier_logType) identifier_logType
)subscript
(identifier_stdoutFlag) identifier_stdoutFlag
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___logTypeFileFlags) identifier___logTypeFileFlags
)attribute
(identifier_logType) identifier_logType
)subscript
(identifier_fileFlag) identifier_fileFlag
)assignment
)expression_statement
)block
)function_definition
)module | Set a defined log type flags.
:Parameters:
#. logType (string): A defined logging type.
#. stdoutFlag (boolean): Whether to log to the standard output stream.
#. fileFlag (boolean): Whether to log to to file. |
(module
(function_definition
(function_name_get_attribute) function_name_get_attribute
(parameters
(identifier_json) identifier_json
(identifier_attr) identifier_attr
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(list_comprehension
(subscript
(subscript
(identifier_json) identifier_json
(identifier_entry) identifier_entry
)subscript
(identifier_attr) identifier_attr
)subscript
(for_in_clause
(pattern_list
(identifier_entry) identifier_entry
(identifier__) identifier__
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_json) identifier_json
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'{0}s (from JSON):\n{1}') string_'{0}s (from JSON):\n{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_attr) identifier_attr
(identifier_res) identifier_res
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Gets the values of an attribute from JSON
Args:
json: JSON data as a list of dict dates, where the keys are
the raw market statistics.
attr: String of attribute in JSON file to collect.
Returns:
List of values of specified attribute from JSON |
(module
(function_definition
(function_name_new_children) function_name_new_children
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_new_child) identifier_new_child
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Create new children from kwargs |
(module
(function_definition
(function_name_query) function_name_query
(parameters
(identifier_self) identifier_self
(identifier_query_data) identifier_query_data
(default_parameter
(identifier_k) identifier_k
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_queue_size) identifier_queue_size
(float_5.0) float_5.0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_query_data) identifier_query_data
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_query_data) identifier_query_data
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_float32) identifier_float32
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_init) identifier_init
(call
(identifier_initialise_search) identifier_initialise_search
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__rp_forest) identifier__rp_forest
)attribute
(attribute
(identifier_self) identifier_self
(identifier__raw_data) identifier__raw_data
)attribute
(identifier_query_data) identifier_query_data
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_k) identifier_k
(identifier_queue_size) identifier_queue_size
)binary_operator
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__random_init) identifier__random_init
)attribute
(attribute
(identifier_self) identifier_self
(identifier__tree_init) identifier__tree_init
)attribute
(attribute
(identifier_self) identifier_self
(identifier_rng_state) identifier_rng_state
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier__search) identifier__search
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__raw_data) identifier__raw_data
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__search_graph) identifier__search_graph
)attribute
(identifier_indptr) identifier_indptr
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__search_graph) identifier__search_graph
)attribute
(identifier_indices) identifier_indices
)attribute
(identifier_init) identifier_init
(identifier_query_data) identifier_query_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_indices) identifier_indices
(identifier_dists) identifier_dists
)pattern_list
(call
(identifier_deheap_sort) identifier_deheap_sort
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(subscript
(identifier_indices) identifier_indices
(slice
(colon) colon
)slice
(slice
(colon) colon
(identifier_k) identifier_k
)slice
)subscript
(subscript
(identifier_dists) identifier_dists
(slice
(colon) colon
)slice
(slice
(colon) colon
(identifier_k) identifier_k
)slice
)subscript
)expression_list
)return_statement
)block
)function_definition
)module | Query the training data for the k nearest neighbors
Parameters
----------
query_data: array-like, last dimension self.dim
An array of points to query
k: integer (default = 10)
The number of nearest neighbors to return
queue_size: float (default 5.0)
The multiplier of the internal search queue. This controls the
speed/accuracy tradeoff. Low values will search faster but with
more approximate results. High values will search more
accurately, but will require more computation to do so. Values
should generally be in the range 1.0 to 10.0.
Returns
-------
indices, distances: array (n_query_points, k), array (n_query_points, k)
The first array, ``indices``, provides the indices of the data
points in the training set that are the nearest neighbors of
each query point. Thus ``indices[i, j]`` is the index into the
training data of the jth nearest neighbor of the ith query points.
Similarly ``distances`` provides the distances to the neighbors
of the query points such that ``distances[i, j]`` is the distance
from the ith query point to its jth nearest neighbor in the
training data. |
(module
(function_definition
(function_name_register_interaction) function_name_register_interaction
(parameters
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_wrap) function_name_wrap
(parameters
(identifier_interaction) identifier_interaction
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(conditional_expression
(identifier_key) identifier_key
(comparison_operator
(identifier_key) identifier_key
(None) None
)comparison_operator
(binary_operator
(attribute
(identifier_interaction) identifier_interaction
(identifier___module__) identifier___module__
)attribute
(line_continuation_\) line_continuation_\
(attribute
(identifier_interaction) identifier_interaction
(identifier___name__) identifier___name__
)attribute
)binary_operator
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_interaction) identifier_interaction
(identifier_types) identifier_types
)attribute
(identifier_name) identifier_name
)subscript
(identifier_interaction) identifier_interaction
)assignment
)expression_statement
(return_statement
(identifier_interaction) identifier_interaction
)return_statement
)block
)function_definition
(return_statement
(identifier_wrap) identifier_wrap
)return_statement
)block
)function_definition
)module | Decorator registering an interaction class in the registry.
If no key is provided, the class name is used as a key. A key is provided
for each core bqplot interaction type so that the frontend can use this
key regardless of the kernal language. |
(module
(function_definition
(function_name_value) function_name_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_device) identifier_device
)attribute
(identifier_properties) identifier_properties
)attribute
(identifier_network) identifier_network
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(call
(attribute
(string_"{} {} {} presentValue") string_"{} {} {} presentValue"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_device) identifier_device
)attribute
(identifier_properties) identifier_properties
)attribute
(identifier_address) identifier_address
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_type) identifier_type
)attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_address) identifier_address
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__trend) identifier__trend
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_"Problem reading : {}") string_"Problem reading : {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_res) identifier_res
(string_"inactive") string_"inactive"
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__key) identifier__key
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__boolKey) identifier__boolKey
)attribute
(False) False
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__key) identifier__key
)attribute
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__boolKey) identifier__boolKey
)attribute
(True) True
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)function_definition
)module | Read the value from BACnet network |
(module
(function_definition
(function_name_opendocs) function_name_opendocs
(parameters
(default_parameter
(identifier_where) identifier_where
(string_'index') string_'index'
)default_parameter
(default_parameter
(identifier_how) identifier_how
(string_'default') string_'default'
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_webbrowser) identifier_webbrowser
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_docs_dir) identifier_docs_dir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)argument_list
)call
(string_'docs') string_'docs'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_docs_dir) identifier_docs_dir
(binary_operator
(string_'_build/html/%s.html') string_'_build/html/%s.html'
(identifier_where) identifier_where
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_builddocs) identifier_builddocs
(argument_list
(string_'html') string_'html'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_'file://%s') string_'file://%s'
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_how) identifier_how
(tuple
(string_'d') string_'d'
(string_'default') string_'default'
)tuple
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_webbrowser) identifier_webbrowser
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_how) identifier_how
(tuple
(string_'t') string_'t'
(string_'tab') string_'tab'
)tuple
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_webbrowser) identifier_webbrowser
(identifier_open_new_tab) identifier_open_new_tab
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_how) identifier_how
(tuple
(string_'n') string_'n'
(string_'w') string_'w'
(string_'window') string_'window'
)tuple
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_webbrowser) identifier_webbrowser
(identifier_open_new) identifier_open_new
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Rebuild documentation and opens it in your browser.
Use the first argument to specify how it should be opened:
`d` or `default`: Open in new tab or new window, using the default
method of your browser.
`t` or `tab`: Open documentation in new tab.
`n`, `w` or `window`: Open documentation in new window. |
(module
(function_definition
(function_name__get_title) function_name__get_title
(parameters
(identifier_self) identifier_self
(identifier_prop) identifier_prop
(identifier_main_infos) identifier_main_infos
(identifier_info_dict) identifier_info_dict
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_main_infos) identifier_main_infos
(identifier_get) identifier_get
)attribute
(argument_list
(string_'label') string_'label'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(call
(attribute
(identifier_info_dict) identifier_info_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'colanderalchemy') string_'colanderalchemy'
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'title') string_'title'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(attribute
(identifier_prop) identifier_prop
(identifier_key) identifier_key
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return the title configured as in colanderalchemy |
(module
(function_definition
(function_name__ReferenceFromSerialized) function_name__ReferenceFromSerialized
(parameters
(identifier_serialized) identifier_serialized
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_serialized) identifier_serialized
(identifier_basestring) identifier_basestring
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_'serialized must be a string; received %r') string_'serialized must be a string; received %r'
(identifier_serialized) identifier_serialized
)binary_operator
)argument_list
)call
)raise_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_serialized) identifier_serialized
(identifier_unicode) identifier_unicode
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_serialized) identifier_serialized
(call
(attribute
(identifier_serialized) identifier_serialized
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf8') string_'utf8'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(attribute
(identifier_entity_pb) identifier_entity_pb
(identifier_Reference) identifier_Reference
)attribute
(argument_list
(identifier_serialized) identifier_serialized
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a Reference from a serialized Reference. |
(module
(function_definition
(function_name_set_text) function_name_set_text
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_text) identifier_text
(string_"YEAH.") string_"YEAH."
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(identifier_str) identifier_str
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(identifier_s) identifier_s
(call
(attribute
(identifier_self) identifier_self
(identifier_get_text) identifier_get_text
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__widget) identifier__widget
)attribute
(identifier_setText) identifier_setText
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Sets the current value of the text box. |
(module
(function_definition
(function_name_set_computer_name) function_name_set_computer_name
(parameters
(identifier_name) identifier_name
)parameters
(block
(if_statement
(attribute
(identifier_six) identifier_six
(identifier_PY2) identifier_PY2
)attribute
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(identifier__to_unicode) identifier__to_unicode
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_windll) identifier_windll
(identifier_kernel32) identifier_kernel32
)attribute
(identifier_SetComputerNameExW) identifier_SetComputerNameExW
)attribute
(argument_list
(attribute
(identifier_win32con) identifier_win32con
(identifier_ComputerNamePhysicalDnsHostname) identifier_ComputerNamePhysicalDnsHostname
)attribute
(identifier_name) identifier_name
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'Computer Name') string_'Computer Name'
(dictionary
(pair
(string_'Current') string_'Current'
(call
(identifier_get_computer_name) identifier_get_computer_name
(argument_list
)argument_list
)call
)pair
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pending) identifier_pending
(call
(identifier_get_pending_computer_name) identifier_get_pending_computer_name
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_pending) identifier_pending
(tuple
(None) None
(False) False
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(string_'Computer Name') string_'Computer Name'
)subscript
(string_'Pending') string_'Pending'
)subscript
(identifier_pending) identifier_pending
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Set the Windows computer name
Args:
name (str):
The new name to give the computer. Requires a reboot to take effect.
Returns:
dict:
Returns a dictionary containing the old and new names if successful.
``False`` if not.
CLI Example:
.. code-block:: bash
salt 'minion-id' system.set_computer_name 'DavesComputer' |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_force) identifier_force
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_noprune) identifier_noprune
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(type
(identifier_List) identifier_List
)type
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"force") string_"force"
(identifier_force) identifier_force
)pair
(pair
(string_"noprune") string_"noprune"
(identifier_noprune) identifier_noprune
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_docker) identifier_docker
)attribute
(identifier__query_json) identifier__query_json
)attribute
(argument_list
(call
(attribute
(string_"images/{name}") string_"images/{name}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
(string_"DELETE") string_"DELETE"
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Remove an image along with any untagged parent
images that were referenced by that image
Args:
name: name/id of the image to delete
force: remove the image even if it is being used
by stopped containers or has other tags
noprune: don't delete untagged parent images
Returns:
List of deleted images |
(module
(function_definition
(function_name_rename_db_ref) function_name_rename_db_ref
(parameters
(identifier_stmts_in) identifier_stmts_in
(identifier_ns_from) identifier_ns_from
(identifier_ns_to) identifier_ns_to
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Remapping "%s" to "%s" in db_refs on %d statements...') string_'Remapping "%s" to "%s" in db_refs on %d statements...'
(tuple
(identifier_ns_from) identifier_ns_from
(identifier_ns_to) identifier_ns_to
(call
(identifier_len) identifier_len
(argument_list
(identifier_stmts_in) identifier_stmts_in
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_stmts_out) identifier_stmts_out
(list_comprehension
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(identifier_st) identifier_st
)argument_list
)call
(for_in_clause
(identifier_st) identifier_st
(identifier_stmts_in) identifier_stmts_in
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_stmt) identifier_stmt
(identifier_stmts_out) identifier_stmts_out
(block
(for_statement
(identifier_agent) identifier_agent
(call
(attribute
(identifier_stmt) identifier_stmt
(identifier_agent_list) identifier_agent_list
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_agent) identifier_agent
(None) None
)comparison_operator
(comparison_operator
(identifier_ns_from) identifier_ns_from
(attribute
(identifier_agent) identifier_agent
(identifier_db_refs) identifier_db_refs
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_agent) identifier_agent
(identifier_db_refs) identifier_db_refs
)attribute
(identifier_ns_to) identifier_ns_to
)subscript
(call
(attribute
(attribute
(identifier_agent) identifier_agent
(identifier_db_refs) identifier_db_refs
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_ns_from) identifier_ns_from
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_dump_pkl) identifier_dump_pkl
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'save') string_'save'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_dump_pkl) identifier_dump_pkl
(block
(expression_statement
(call
(identifier_dump_statements) identifier_dump_statements
(argument_list
(identifier_stmts_out) identifier_stmts_out
(identifier_dump_pkl) identifier_dump_pkl
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_stmts_out) identifier_stmts_out
)return_statement
)block
)function_definition
)module | Rename an entry in the db_refs of each Agent.
This is particularly useful when old Statements in pickle files
need to be updated after a namespace was changed such as
'BE' to 'FPLX'.
Parameters
----------
stmts_in : list[indra.statements.Statement]
A list of statements whose Agents' db_refs need to be changed
ns_from : str
The namespace identifier to replace
ns_to : str
The namespace identifier to replace to
save : Optional[str]
The name of a pickle file to save the results (stmts_out) into.
Returns
-------
stmts_out : list[indra.statements.Statement]
A list of Statements with Agents' db_refs changed. |
(module
(function_definition
(function_name_page_should_contain_element) function_name_page_should_contain_element
(parameters
(identifier_self) identifier_self
(identifier_locator) identifier_locator
(default_parameter
(identifier_loglevel) identifier_loglevel
(string_'INFO') string_'INFO'
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__is_element_present) identifier__is_element_present
)attribute
(argument_list
(identifier_locator) identifier_locator
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log_source) identifier_log_source
)attribute
(argument_list
(identifier_loglevel) identifier_loglevel
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(binary_operator
(concatenated_string
(string_"Page should have contained element '%s' ") string_"Page should have contained element '%s' "
(string_"but did not") string_"but did not"
)concatenated_string
(identifier_locator) identifier_locator
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__info) identifier__info
)attribute
(argument_list
(binary_operator
(string_"Current page contains element '%s'.") string_"Current page contains element '%s'."
(identifier_locator) identifier_locator
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Verifies that current page contains `locator` element.
If this keyword fails, it automatically logs the page source
using the log level specified with the optional `loglevel` argument.
Giving `NONE` as level disables logging. |
(module
(function_definition
(function_name_transform_using_this_method) function_name_transform_using_this_method
(parameters
(identifier_original_sample) identifier_original_sample
)parameters
(block
(expression_statement
(assignment
(identifier_new_sample) identifier_new_sample
(call
(attribute
(identifier_original_sample) identifier_original_sample
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_data) identifier_new_data
(attribute
(identifier_new_sample) identifier_new_sample
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_new_data) identifier_new_data
(string_'Y2-A') string_'Y2-A'
)subscript
(call
(identifier_log) identifier_log
(argument_list
(subscript
(identifier_new_data) identifier_new_data
(string_'Y2-A') string_'Y2-A'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_data) identifier_new_data
(call
(attribute
(identifier_new_data) identifier_new_data
(identifier_dropna) identifier_dropna
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_new_sample) identifier_new_sample
(identifier_data) identifier_data
)attribute
(identifier_new_data) identifier_new_data
)assignment
)expression_statement
(return_statement
(identifier_new_sample) identifier_new_sample
)return_statement
)block
)function_definition
)module | This function implements a log transformation on the data. |
(module
(function_definition
(function_name_snapshot_agents) function_name_snapshot_agents
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(for_statement
(identifier_agent) identifier_agent
(attribute
(identifier_self) identifier_self
(identifier__agents) identifier__agents
)attribute
(block
(expression_statement
(call
(attribute
(identifier_agent) identifier_agent
(identifier_check_if_should_snapshot) identifier_check_if_should_snapshot
)attribute
(argument_list
(identifier_force) identifier_force
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | snapshot agents if number of entries from last snapshot if greater
than 1000. Use force=True to override. |
(module
(function_definition
(function_name_react_to_event) function_name_react_to_event
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(if_statement
(not_operator
(call
(identifier_react_to_event) identifier_react_to_event
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_view) identifier_view
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_view) identifier_view
)attribute
(identifier_editor) identifier_editor
)attribute
(identifier_event) identifier_event
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(not_operator
(comparison_operator
(attribute
(attribute
(attribute
(attribute
(identifier_rafcon) identifier_rafcon
(identifier_gui) identifier_gui
)attribute
(identifier_singleton) identifier_singleton
)attribute
(identifier_state_machine_manager_model) identifier_state_machine_manager_model
)attribute
(identifier_selected_state_machine_id) identifier_selected_state_machine_id
)attribute
(line_continuation_\) line_continuation_\
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_state_machine) identifier_state_machine
)attribute
(identifier_state_machine_id) identifier_state_machine_id
)attribute
)comparison_operator
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check whether the given event should be handled
Checks, whether the editor widget has the focus and whether the selected state machine corresponds to the
state machine of this editor.
:param event: GTK event object
:return: True if the event should be handled, else False
:rtype: bool |
(module
(function_definition
(function_name__pidExists) function_name__pidExists
(parameters
(identifier_pid) identifier_pid
)parameters
(block
(assert_statement
(comparison_operator
(identifier_pid) identifier_pid
(integer_0) integer_0
)comparison_operator
)assert_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_kill) identifier_kill
)attribute
(argument_list
(identifier_pid) identifier_pid
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_err) identifier_err
(identifier_errno) identifier_errno
)attribute
(attribute
(identifier_errno) identifier_errno
(identifier_ESRCH) identifier_ESRCH
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
(else_clause
(block
(raise_statement
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | This will return True if the process associated with pid is still running on the machine.
This is based on stackoverflow question 568271.
:param int pid: ID of the process to check for
:return: True/False
:rtype: bool |
(module
(function_definition
(function_name_get_user_subadmin_groups) function_name_get_user_subadmin_groups
(parameters
(identifier_self) identifier_self
(identifier_user_name) identifier_user_name
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier__make_ocs_request) identifier__make_ocs_request
)attribute
(argument_list
(string_'GET') string_'GET'
(attribute
(identifier_self) identifier_self
(identifier_OCS_SERVICE_CLOUD) identifier_OCS_SERVICE_CLOUD
)attribute
(binary_operator
(binary_operator
(string_'users/') string_'users/'
(identifier_user_name) identifier_user_name
)binary_operator
(string_'/subadmins') string_'/subadmins'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_res) identifier_res
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tree) identifier_tree
(call
(attribute
(identifier_ET) identifier_ET
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(attribute
(identifier_res) identifier_res
(identifier_content) identifier_content
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_ocs_status) identifier__check_ocs_status
)attribute
(argument_list
(identifier_tree) identifier_tree
(list
(integer_100) integer_100
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_groups) identifier_groups
(call
(attribute
(identifier_tree) identifier_tree
(identifier_find) identifier_find
)attribute
(argument_list
(string_'data') string_'data'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_groups) identifier_groups
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_HTTPResponseError) identifier_HTTPResponseError
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Get a list of subadmin groups associated to a user.
:param user_name: name of user
:returns: list of subadmin groups
:raises: HTTPResponseError in case an HTTP error status was returned |
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(identifier_varname) identifier_varname
(identifier_value) identifier_value
(default_parameter
(identifier_idx) identifier_idx
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_units) identifier_units
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(comparison_operator
(identifier_varname) identifier_varname
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapping) identifier_mapping
)attribute
(identifier_vars) identifier_vars
)attribute
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_fgFDMError) identifier_fgFDMError
(argument_list
(binary_operator
(string_'Unknown variable %s') string_'Unknown variable %s'
(identifier_varname) identifier_varname
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_idx) identifier_idx
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapping) identifier_mapping
)attribute
(identifier_vars) identifier_vars
)attribute
(identifier_varname) identifier_varname
)subscript
(identifier_arraylength) identifier_arraylength
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_fgFDMError) identifier_fgFDMError
(argument_list
(binary_operator
(string_'index of %s beyond end of array idx=%u arraylength=%u') string_'index of %s beyond end of array idx=%u arraylength=%u'
(tuple
(identifier_varname) identifier_varname
(identifier_idx) identifier_idx
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapping) identifier_mapping
)attribute
(identifier_vars) identifier_vars
)attribute
(identifier_varname) identifier_varname
)subscript
(identifier_arraylength) identifier_arraylength
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(identifier_units) identifier_units
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_convert) identifier_convert
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_units) identifier_units
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapping) identifier_mapping
)attribute
(identifier_vars) identifier_vars
)attribute
(identifier_varname) identifier_varname
)subscript
(identifier_units) identifier_units
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_isinf) identifier_isinf
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(call
(attribute
(identifier_math) identifier_math
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)boolean_operator
(comparison_operator
(call
(attribute
(identifier_math) identifier_math
(identifier_fabs) identifier_fabs
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(float_3.4e38) float_3.4e38
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(binary_operator
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mapping) identifier_mapping
)attribute
(identifier_vars) identifier_vars
)attribute
(identifier_varname) identifier_varname
)subscript
(identifier_index) identifier_index
)attribute
(identifier_idx) identifier_idx
)binary_operator
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)function_definition
)module | set a variable value |
(module
(function_definition
(function_name_scan) function_name_scan
(parameters
(identifier_self) identifier_self
(identifier_t) identifier_t
(default_parameter
(identifier_dt) identifier_dt
(None) None
)default_parameter
(default_parameter
(identifier_aggfunc) identifier_aggfunc
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(call
(attribute
(parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_index) identifier_index
)attribute
(identifier_t) identifier_t
)binary_operator
)argument_list
)call
)parenthesized_expression
(identifier_argmin) identifier_argmin
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_dt) identifier_dt
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_mz_abn) identifier_mz_abn
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(identifier_idx) identifier_idx
(slice
(colon) colon
)slice
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_en_idx) identifier_en_idx
(call
(attribute
(parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_index) identifier_index
)attribute
(identifier_t) identifier_t
)binary_operator
(identifier_dt) identifier_dt
)binary_operator
)argument_list
)call
)parenthesized_expression
(identifier_argmin) identifier_argmin
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_idx) identifier_idx
(identifier_en_idx) identifier_en_idx
)pattern_list
(expression_list
(call
(identifier_min) identifier_min
(argument_list
(identifier_idx) identifier_idx
(identifier_en_idx) identifier_en_idx
)argument_list
)call
(call
(identifier_max) identifier_max
(argument_list
(identifier_idx) identifier_idx
(identifier_en_idx) identifier_en_idx
)argument_list
)call
)expression_list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_aggfunc) identifier_aggfunc
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_mz_abn) identifier_mz_abn
(call
(attribute
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(slice
(identifier_idx) identifier_idx
(colon) colon
(binary_operator
(identifier_en_idx) identifier_en_idx
(integer_1) integer_1
)binary_operator
)slice
(slice
(colon) colon
)slice
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
(identifier_sum) identifier_sum
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_mz_abn) identifier_mz_abn
(call
(identifier_aggfunc) identifier_aggfunc
(argument_list
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(slice
(identifier_idx) identifier_idx
(colon) colon
(binary_operator
(identifier_en_idx) identifier_en_idx
(integer_1) integer_1
)binary_operator
)slice
(slice
(colon) colon
)slice
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_mz_abn) identifier_mz_abn
(attribute
(attribute
(identifier_scipy) identifier_scipy
(identifier_sparse) identifier_sparse
)attribute
(identifier_spmatrix) identifier_spmatrix
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mz_abn) identifier_mz_abn
(subscript
(call
(attribute
(identifier_mz_abn) identifier_mz_abn
(identifier_toarray) identifier_toarray
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_Scan) identifier_Scan
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
(identifier_mz_abn) identifier_mz_abn
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the spectrum from a specific time.
Parameters
----------
t : float
dt : float |
(module
(function_definition
(function_name_scrape) function_name_scrape
(parameters
(identifier_url) identifier_url
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_user_agent) identifier_user_agent
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_user_agent) identifier_user_agent
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(string_'User-Agent') string_'User-Agent'
)subscript
(identifier_user_agent) identifier_user_agent
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(boolean_operator
(boolean_operator
(identifier_params) identifier_params
(call
(attribute
(attribute
(attribute
(attribute
(identifier_six) identifier_six
(identifier_moves) identifier_moves
)attribute
(identifier_urllib) identifier_urllib
)attribute
(identifier_parse) identifier_parse
)attribute
(identifier_urlencode) identifier_urlencode
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)boolean_operator
(None) None
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(attribute
(attribute
(attribute
(identifier_six) identifier_six
(identifier_moves) identifier_moves
)attribute
(identifier_urllib) identifier_urllib
)attribute
(identifier_request) identifier_request
)attribute
(identifier_Request) identifier_Request
)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
(assignment
(identifier_f) identifier_f
(call
(attribute
(attribute
(attribute
(attribute
(identifier_six) identifier_six
(identifier_moves) identifier_moves
)attribute
(identifier_urllib) identifier_urllib
)attribute
(identifier_request) identifier_request
)attribute
(identifier_urlopen) identifier_urlopen
)attribute
(argument_list
(identifier_req) identifier_req
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)function_definition
)module | Scrape a URL optionally with parameters.
This is effectively a wrapper around urllib2.urlopen. |
(module
(function_definition
(function_name_workerType) function_name_workerType
(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
(return_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__makeApiCall) identifier__makeApiCall
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_funcinfo) identifier_funcinfo
)attribute
(string_"workerType") string_"workerType"
)subscript
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Get Worker Type
Retrieve a copy of the requested worker type definition.
This copy contains a lastModified field as well as the worker
type name. As such, it will require manipulation to be able to
use the results of this method to submit date to the update
method.
This method gives output: ``http://schemas.taskcluster.net/aws-provisioner/v1/get-worker-type-response.json#``
This method is ``stable`` |
(module
(function_definition
(function_name_register) function_name_register
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_asymmetric) identifier_asymmetric
(False) False
)default_parameter
)parameters
(block
(function_definition
(function_name_register_func) function_name_register_func
(parameters
(identifier_func) identifier_func
)parameters
(block
(if_statement
(identifier_asymmetric) identifier_asymmetric
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__asymmetric) identifier__asymmetric
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_store) identifier_store
)attribute
(identifier_name) identifier_name
)subscript
(identifier_func) identifier_func
)assignment
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(return_statement
(identifier_register_func) identifier_register_func
)return_statement
)block
)function_definition
)module | Decorator for registering a measure with PyPhi.
Args:
name (string): The name of the measure.
Keyword Args:
asymmetric (boolean): ``True`` if the measure is asymmetric. |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_self) identifier_self
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(string_'manager/stop') string_'manager/stop'
(keyword_argument
(identifier_post) identifier_post
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_res) identifier_res
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(raise_statement
(call
(identifier_UnexpectedResponse) identifier_UnexpectedResponse
(argument_list
(call
(attribute
(string_'Attempted to stop manager. {res_code}: {res_text}') string_'Attempted to stop manager. {res_code}: {res_text}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_res_code) identifier_res_code
(attribute
(identifier_res) identifier_res
(identifier_status_code) identifier_status_code
)attribute
)keyword_argument
(keyword_argument
(identifier_res_text) identifier_res_text
(attribute
(identifier_res) identifier_res
(identifier_text) identifier_text
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_settings) identifier_settings
(identifier_VERBOSITY) identifier_VERBOSITY
)attribute
(attribute
(identifier_verbosity) identifier_verbosity
(identifier_PROCESS_STOP) identifier_PROCESS_STOP
)attribute
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'Stopped {}') string_'Stopped {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_name) identifier_get_name
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.05) float_0.05
)argument_list
)call
)expression_statement
)block
)function_definition
)module | If the manager is running, tell it to stop its process |
(module
(function_definition
(function_name__extractErrorString) function_name__extractErrorString
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_errorStr) identifier_errorStr
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tag) identifier_tag
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(identifier_ET) identifier_ET
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_text) identifier_text
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tag) identifier_tag
(subscript
(subscript
(identifier_root) identifier_root
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(except_clause
(block
(return_statement
(identifier_errorStr) identifier_errorStr
)return_statement
)block
)except_clause
)try_statement
(for_statement
(identifier_element) identifier_element
(call
(attribute
(identifier_tag) identifier_tag
(identifier_getiterator) identifier_getiterator
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_tagName) identifier_tagName
(call
(attribute
(attribute
(identifier_element) identifier_element
(identifier_tag) identifier_tag
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_tagName) identifier_tagName
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"string") string_"string"
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_errorStr) identifier_errorStr
(binary_operator
(attribute
(identifier_element) identifier_element
(identifier_text) identifier_text
)attribute
(string_" ") string_" "
)binary_operator
)augmented_assignment
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_tagName) identifier_tagName
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_"description") string_"description"
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_errorStr) identifier_errorStr
(binary_operator
(attribute
(identifier_element) identifier_element
(identifier_text) identifier_text
)attribute
(string_" ") string_" "
)binary_operator
)augmented_assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_errorStr) identifier_errorStr
)return_statement
)block
)function_definition
)module | Extract error string from a failed UPnP call.
:param request: the failed request result
:type request: requests.Response
:return: an extracted error text or empty str
:rtype: str |
(module
(function_definition
(function_name_getEmailTemplate) function_name_getEmailTemplate
(parameters
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'POST') string_'POST'
)comparison_operator
(block
(return_statement
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_'Error, no POST data.') string_'Error, no POST data.'
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_request) identifier_request
(string_'user') string_'user'
)argument_list
)call
)not_operator
(block
(return_statement
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_'Error, not authenticated.') string_'Error, not authenticated.'
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_template_id) identifier_template_id
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'template') string_'template'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_template_id) identifier_template_id
)not_operator
(block
(return_statement
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_"Error, no template ID provided.") string_"Error, no template ID provided."
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_this_template) identifier_this_template
(call
(attribute
(attribute
(identifier_EmailTemplate) identifier_EmailTemplate
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_template_id) identifier_template_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ObjectDoesNotExist) identifier_ObjectDoesNotExist
(block
(return_statement
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_"Error getting template.") string_"Error getting template."
)argument_list
)call
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(attribute
(identifier_this_template) identifier_this_template
(identifier_groupRequired) identifier_groupRequired
)attribute
(comparison_operator
(attribute
(identifier_this_template) identifier_this_template
(identifier_groupRequired) identifier_groupRequired
)attribute
(call
(attribute
(attribute
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
(identifier_groups) identifier_groups
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_"Error, no permission to access this template.") string_"Error, no permission to access this template."
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_this_template) identifier_this_template
(identifier_hideFromForm) identifier_hideFromForm
)attribute
(block
(return_statement
(call
(identifier_HttpResponse) identifier_HttpResponse
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_"Error, no permission to access this template.") string_"Error, no permission to access this template."
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_JsonResponse) identifier_JsonResponse
(argument_list
(dictionary
(pair
(string_'subject') string_'subject'
(attribute
(identifier_this_template) identifier_this_template
(identifier_subject) identifier_subject
)attribute
)pair
(pair
(string_'content') string_'content'
(attribute
(identifier_this_template) identifier_this_template
(identifier_content) identifier_content
)attribute
)pair
(pair
(string_'html_content') string_'html_content'
(attribute
(identifier_this_template) identifier_this_template
(identifier_html_content) identifier_html_content
)attribute
)pair
(pair
(string_'richTextChoice') string_'richTextChoice'
(attribute
(identifier_this_template) identifier_this_template
(identifier_richTextChoice) identifier_richTextChoice
)attribute
)pair
)dictionary
)argument_list
)call
)return_statement
)block
)function_definition
)module | This function handles the Ajax call made when a user wants a specific email template |
(module
(function_definition
(function_name_update_text) function_name_update_text
(parameters
(identifier_self) identifier_self
(identifier_mapping) identifier_mapping
)parameters
(block
(expression_statement
(assignment
(identifier_found) identifier_found
(False) False
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__page) identifier__page
)attribute
(identifier_iter) identifier_iter
)attribute
(argument_list
(string_"*") string_"*"
)argument_list
)call
(block
(if_statement
(boolean_operator
(attribute
(identifier_node) identifier_node
(identifier_text) identifier_text
)attribute
(attribute
(identifier_node) identifier_node
(identifier_tail) identifier_tail
)attribute
)boolean_operator
(block
(for_statement
(pattern_list
(identifier_old) identifier_old
(identifier_new) identifier_new
)pattern_list
(call
(attribute
(identifier_mapping) identifier_mapping
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(attribute
(identifier_node) identifier_node
(identifier_text) identifier_text
)attribute
(comparison_operator
(identifier_old) identifier_old
(attribute
(identifier_node) identifier_node
(identifier_text) identifier_text
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_node) identifier_node
(identifier_text) identifier_text
)attribute
(call
(attribute
(attribute
(identifier_node) identifier_node
(identifier_text) identifier_text
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_old) identifier_old
(identifier_new) identifier_new
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_found) identifier_found
(True) True
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(attribute
(identifier_node) identifier_node
(identifier_tail) identifier_tail
)attribute
(comparison_operator
(identifier_old) identifier_old
(attribute
(identifier_node) identifier_node
(identifier_tail) identifier_tail
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_node) identifier_node
(identifier_tail) identifier_tail
)attribute
(call
(attribute
(attribute
(identifier_node) identifier_node
(identifier_tail) identifier_tail
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_old) identifier_old
(identifier_new) identifier_new
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_found) identifier_found
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_found) identifier_found
)not_operator
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(call
(attribute
(string_"Updating text failed with mapping:{}") string_"Updating text failed with mapping:{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_mapping) identifier_mapping
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Iterate over nodes, replace text with mapping |
(module
(function_definition
(function_name_style) function_name_style
(parameters
(default_parameter
(identifier_theme) identifier_theme
(None) None
)default_parameter
(default_parameter
(identifier_context) identifier_context
(string_'paper') string_'paper'
)default_parameter
(default_parameter
(identifier_grid) identifier_grid
(True) True
)default_parameter
(default_parameter
(identifier_gridlines) identifier_gridlines
(string_u'-') string_u'-'
)default_parameter
(default_parameter
(identifier_ticks) identifier_ticks
(False) False
)default_parameter
(default_parameter
(identifier_spines) identifier_spines
(True) True
)default_parameter
(default_parameter
(identifier_fscale) identifier_fscale
(float_1.2) float_1.2
)default_parameter
(default_parameter
(identifier_figsize) identifier_figsize
(tuple
(float_8.) float_8.
(float_7.) float_7.
)tuple
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rcdict) identifier_rcdict
(call
(identifier_set_context) identifier_set_context
(argument_list
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
(keyword_argument
(identifier_fscale) identifier_fscale
(identifier_fscale) identifier_fscale
)keyword_argument
(keyword_argument
(identifier_figsize) identifier_figsize
(identifier_figsize) identifier_figsize
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_theme) identifier_theme
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_theme) identifier_theme
(call
(identifier_infer_theme) identifier_infer_theme
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_set_style) identifier_set_style
(argument_list
(identifier_rcdict) identifier_rcdict
(keyword_argument
(identifier_theme) identifier_theme
(identifier_theme) identifier_theme
)keyword_argument
(keyword_argument
(identifier_grid) identifier_grid
(identifier_grid) identifier_grid
)keyword_argument
(keyword_argument
(identifier_gridlines) identifier_gridlines
(identifier_gridlines) identifier_gridlines
)keyword_argument
(keyword_argument
(identifier_ticks) identifier_ticks
(identifier_ticks) identifier_ticks
)keyword_argument
(keyword_argument
(identifier_spines) identifier_spines
(identifier_spines) identifier_spines
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | main function for styling matplotlib according to theme
::Arguments::
theme (str): 'oceans16', 'grade3', 'chesterish', 'onedork', 'monokai', 'solarizedl', 'solarizedd'. If no theme name supplied the currently installed notebook theme will be used.
context (str): 'paper' (Default), 'notebook', 'talk', or 'poster'
grid (bool): removes axis grid lines if False
gridlines (str): set grid linestyle (e.g., '--' for dashed grid)
ticks (bool): make major x and y ticks visible
spines (bool): removes x (bottom) and y (left) axis spines if False
fscale (float): scale font size for axes labels, legend, etc.
figsize (tuple): default figure size of matplotlib figures |
(module
(function_definition
(function_name_is_subdir) function_name_is_subdir
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_a) identifier_a
(identifier_b) identifier_b
)pattern_list
(call
(identifier_map) identifier_map
(argument_list
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(list
(identifier_a) identifier_a
(identifier_b) identifier_b
)list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_commonpath) identifier_commonpath
)attribute
(argument_list
(list
(identifier_a) identifier_a
(identifier_b) identifier_b
)list
)argument_list
)call
(identifier_b) identifier_b
)comparison_operator
)return_statement
)block
)function_definition
)module | Return true if a is a subdirectory of b |
(module
(function_definition
(function_name__state_invalid) function_name__state_invalid
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_statemanager) identifier_statemanager
(identifier_conditions) identifier_conditions
)pattern_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_statetransition) identifier_statetransition
)attribute
(identifier_transitions) identifier_transitions
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_current_state) identifier_current_state
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)attribute
(attribute
(identifier_statemanager) identifier_statemanager
(identifier_propname) identifier_propname
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_conditions) identifier_conditions
(string_'from') string_'from'
)subscript
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_state_valid) identifier_state_valid
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_mstate) identifier_mstate
(call
(attribute
(subscript
(identifier_conditions) identifier_conditions
(string_'from') string_'from'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_current_state) identifier_current_state
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_state_valid) identifier_state_valid
(boolean_operator
(identifier_mstate) identifier_mstate
(call
(identifier_mstate) identifier_mstate
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(identifier_state_valid) identifier_state_valid
(subscript
(identifier_conditions) identifier_conditions
(string_'if') string_'if'
)subscript
)boolean_operator
(block
(expression_statement
(assignment
(identifier_state_valid) identifier_state_valid
(call
(identifier_all) identifier_all
(generator_expression
(call
(identifier_v) identifier_v
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)attribute
)argument_list
)call
(for_in_clause
(identifier_v) identifier_v
(subscript
(identifier_conditions) identifier_conditions
(string_'if') string_'if'
)subscript
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_state_valid) identifier_state_valid
)not_operator
(block
(return_statement
(expression_list
(identifier_statemanager) identifier_statemanager
(identifier_current_state) identifier_current_state
(call
(attribute
(attribute
(identifier_statemanager) identifier_statemanager
(identifier_lenum) identifier_lenum
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_current_state) identifier_current_state
)argument_list
)call
)expression_list
)return_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | If the state is invalid for the transition, return details on what didn't match
:return: Tuple of (state manager, current state, label for current state) |
(module
(function_definition
(function_name_getfieldindex) function_name_getfieldindex
(parameters
(identifier_data) identifier_data
(identifier_commdct) identifier_commdct
(identifier_objkey) identifier_objkey
(identifier_fname) identifier_fname
)parameters
(block
(expression_statement
(assignment
(identifier_objindex) identifier_objindex
(call
(attribute
(attribute
(identifier_data) identifier_data
(identifier_dtls) identifier_dtls
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_objkey) identifier_objkey
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_objcomm) identifier_objcomm
(subscript
(identifier_commdct) identifier_commdct
(identifier_objindex) identifier_objindex
)subscript
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i_index) identifier_i_index
(identifier_item) identifier_item
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_objcomm) identifier_objcomm
)argument_list
)call
(block
(try_statement
(block
(if_statement
(comparison_operator
(subscript
(identifier_item) identifier_item
(string_'field') string_'field'
)subscript
(list
(identifier_fname) identifier_fname
)list
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_i_index) identifier_i_index
)return_statement
)block
)function_definition
)module | given objkey and fieldname, return its index |
(module
(function_definition
(function_name___parseParameters) function_name___parseParameters
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___parameters) identifier___parameters
)attribute
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_parameter) identifier_parameter
(subscript
(attribute
(identifier_self) identifier_self
(identifier___data) identifier___data
)attribute
(string_'parameters') string_'parameters'
)subscript
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___parameters) identifier___parameters
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Parameter) identifier_Parameter
(argument_list
(identifier_parameter) identifier_parameter
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Parses the parameters of data. |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_previously_seen) identifier_previously_seen
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_currently_seen) identifier_currently_seen
(call
(identifier_set) identifier_set
(argument_list
(list
(integer_1) integer_1
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_problemset) identifier_problemset
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(identifier_currently_seen) identifier_currently_seen
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(call
(attribute
(identifier_currently_seen) identifier_currently_seen
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_node) identifier_node
(identifier_previously_seen) identifier_previously_seen
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_problemset) identifier_problemset
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_previously_seen) identifier_previously_seen
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_descendants) identifier_add_descendants
)attribute
(argument_list
(identifier_node) identifier_node
(identifier_currently_seen) identifier_currently_seen
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_unreachable) identifier_unreachable
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_all_nodes) identifier_all_nodes
)attribute
(identifier_previously_seen) identifier_previously_seen
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_unreachable) identifier_unreachable
(block
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"%d unreachable nodes: ") string_"%d unreachable nodes: "
(call
(identifier_len) identifier_len
(argument_list
(identifier_unreachable) identifier_unreachable
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(for_statement
(identifier_node) identifier_node
(identifier_unreachable) identifier_unreachable
(block
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(if_statement
(identifier_problemset) identifier_problemset
(block
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"Loop involving %d nodes") string_"Loop involving %d nodes"
(call
(identifier_len) identifier_len
(argument_list
(identifier_problemset) identifier_problemset
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(for_statement
(identifier_node) identifier_node
(identifier_problemset) identifier_problemset
(block
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(if_statement
(identifier_msg) identifier_msg
(block
(return_statement
(identifier_msg) identifier_msg
)return_statement
)block
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Simulataneously checks for loops and unreachable nodes |
(module
(function_definition
(function_name__cast_to_pod) function_name__cast_to_pod
(parameters
(identifier_val) identifier_val
)parameters
(block
(expression_statement
(assignment
(identifier_bools) identifier_bools
(dictionary
(pair
(string_"True") string_"True"
(True) True
)pair
(pair
(string_"False") string_"False"
(False) False
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_val) identifier_val
(identifier_bools) identifier_bools
)comparison_operator
(block
(return_statement
(subscript
(identifier_bools) identifier_bools
(identifier_val) identifier_val
)subscript
)return_statement
)block
)if_statement
(try_statement
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(try_statement
(block
(return_statement
(call
(identifier_float) identifier_float
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_compat) identifier_compat
)attribute
(identifier_as_text) identifier_as_text
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Try cast to int, float, bool, str, in that order. |
(module
(function_definition
(function_name_add_model) function_name_add_model
(parameters
(identifier_self) identifier_self
(identifier_model) identifier_model
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_model) identifier_model
(identifier_identity) identifier_identity
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__models) identifier__models
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__models) identifier__models
)attribute
(attribute
(identifier_model) identifier_model
(identifier_identity) identifier_identity
)attribute
)subscript
(identifier_model) identifier_model
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"{} has already been defined") string_"{} has already been defined"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_model) identifier_model
(identifier_identity) identifier_identity
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add a model to the document |
(module
(function_definition
(function_name_get_full_url) function_name_get_full_url
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier_Request) identifier_Request
(argument_list
(string_'GET') string_'GET'
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_preparedrequest) identifier_preparedrequest
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_prepare_request) identifier_prepare_request
)attribute
(argument_list
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_preparedrequest) identifier_preparedrequest
(identifier_url) identifier_url
)attribute
)return_statement
)block
)function_definition
)module | Get full url including any additional parameters
Args:
url (str): URL for which to get full url
Returns:
str: Full url including any additional parameters |
(module
(function_definition
(function_name_os_info) function_name_os_info
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_stype) identifier_stype
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_slack) identifier_slack
(identifier_ver) identifier_ver
)pattern_list
(call
(identifier_slack_ver) identifier_slack_ver
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mir) identifier_mir
(call
(identifier_mirror) identifier_mirror
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_mir) identifier_mir
(block
(if_statement
(comparison_operator
(string_"current") string_"current"
(identifier_mir) identifier_mir
)comparison_operator
(block
(expression_statement
(assignment
(identifier_stype) identifier_stype
(string_"Current") string_"Current"
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_stype) identifier_stype
(string_"Stable") string_"Stable"
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(parenthesized_expression
(call
(attribute
(concatenated_string
(string_"User: {0}\n") string_"User: {0}\n"
(string_"OS: {1}\n") string_"OS: {1}\n"
(string_"Version: {2}\n") string_"Version: {2}\n"
(string_"Type: {3}\n") string_"Type: {3}\n"
(string_"Arch: {4}\n") string_"Arch: {4}\n"
(string_"Kernel: {5}\n") string_"Kernel: {5}\n"
(string_"Packages: {6}") string_"Packages: {6}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_getpass) identifier_getpass
(identifier_getuser) identifier_getuser
)attribute
(argument_list
)argument_list
)call
(identifier_slack) identifier_slack
(identifier_ver) identifier_ver
(identifier_stype) identifier_stype
(subscript
(call
(attribute
(identifier_os) identifier_os
(identifier_uname) identifier_uname
)attribute
(argument_list
)argument_list
)call
(integer_4) integer_4
)subscript
(subscript
(call
(attribute
(identifier_os) identifier_os
(identifier_uname) identifier_uname
)attribute
(argument_list
)argument_list
)call
(integer_2) integer_2
)subscript
(call
(identifier_ins_packages) identifier_ins_packages
(argument_list
)argument_list
)call
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Get OS info |
(module
(function_definition
(function_name_downsample_with_striding) function_name_downsample_with_striding
(parameters
(identifier_array) identifier_array
(identifier_factor) identifier_factor
)parameters
(block
(return_statement
(subscript
(identifier_array) identifier_array
(call
(identifier_tuple) identifier_tuple
(generator_expression
(subscript
(attribute
(identifier_np) identifier_np
(identifier_s_) identifier_s_
)attribute
(slice
(colon) colon
(colon) colon
(identifier_f) identifier_f
)slice
)subscript
(for_in_clause
(identifier_f) identifier_f
(identifier_factor) identifier_factor
)for_in_clause
)generator_expression
)call
)subscript
)return_statement
)block
)function_definition
)module | Downsample x by factor using striding.
@return: The downsampled array, of the same type as x. |
(module
(function_definition
(function_name_search_text) function_name_search_text
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(default_parameter
(identifier_encoding) identifier_encoding
(string_"utf-16le") string_"utf-16le"
)default_parameter
(default_parameter
(identifier_caseSensitive) identifier_caseSensitive
(False) False
)default_parameter
(default_parameter
(identifier_minAddr) identifier_minAddr
(None) None
)default_parameter
(default_parameter
(identifier_maxAddr) identifier_maxAddr
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(identifier_TextPattern) identifier_TextPattern
(argument_list
(identifier_text) identifier_text
(identifier_encoding) identifier_encoding
(identifier_caseSensitive) identifier_caseSensitive
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(attribute
(identifier_Search) identifier_Search
(identifier_search_process) identifier_search_process
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
(identifier_minAddr) identifier_minAddr
(identifier_maxAddr) identifier_maxAddr
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_addr) identifier_addr
(identifier_size) identifier_size
(identifier_data) identifier_data
)pattern_list
(identifier_matches) identifier_matches
(block
(expression_statement
(yield
(expression_list
(identifier_addr) identifier_addr
(identifier_data) identifier_data
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Search for the given text within the process memory.
@type text: str or compat.unicode
@param text: Text to search for.
@type encoding: str
@param encoding: (Optional) Encoding for the text parameter.
Only used when the text to search for is a Unicode string.
Don't change unless you know what you're doing!
@type caseSensitive: bool
@param caseSensitive: C{True} of the search is case sensitive,
C{False} otherwise.
@type minAddr: int
@param minAddr: (Optional) Start the search at this memory address.
@type maxAddr: int
@param maxAddr: (Optional) Stop the search at this memory address.
@rtype: iterator of tuple( int, str )
@return: An iterator of tuples. Each tuple contains the following:
- The memory address where the pattern was found.
- The text that matches the pattern.
@raise WindowsError: An error occurred when querying or reading the
process memory. |
(module
(function_definition
(function_name_join) function_name_join
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_call_args) identifier_call_args
(call
(identifier_list) identifier_list
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_joiner) identifier_joiner
(call
(attribute
(identifier_call_args) identifier_call_args
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_shuffle) identifier_shuffle
)attribute
(argument_list
(identifier_call_args) identifier_call_args
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_joiner) identifier_joiner
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_call_args) identifier_call_args
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the arguments in the list joined by STR.
FIRST,JOIN_BY,ARG_1,...,ARG_N
%{JOIN: ,A,...,F} -> 'A B C ... F' |
(module
(function_definition
(function_name_is_processed) function_name_is_processed
(parameters
(identifier_self) identifier_self
(identifier_db_versions) identifier_db_versions
)parameters
(block
(return_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_number) identifier_number
)attribute
(generator_expression
(attribute
(identifier_v) identifier_v
(identifier_number) identifier_number
)attribute
(for_in_clause
(identifier_v) identifier_v
(identifier_db_versions) identifier_db_versions
)for_in_clause
(if_clause
(attribute
(identifier_v) identifier_v
(identifier_date_done) identifier_date_done
)attribute
)if_clause
)generator_expression
)comparison_operator
)return_statement
)block
)function_definition
)module | Check if version is already applied in the database.
:param db_versions: |
(module
(function_definition
(function_name_load) function_name_load
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_plugins) identifier_plugins
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_filename) identifier_filename
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_PLUGINS_PATH) identifier_PLUGINS_PATH
)argument_list
)call
(block
(if_statement
(boolean_operator
(not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_".py") string_".py"
)argument_list
)call
)not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"_") string_"_"
)argument_list
)call
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_PLUGINS_PATH) identifier_PLUGINS_PATH
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_plugin) identifier_plugin
(subscript
(identifier_filename) identifier_filename
(slice
(colon) colon
(unary_operator
(integer_3) integer_3
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_plugin) identifier_plugin
(identifier_FAILED_PLUGINS) identifier_FAILED_PLUGINS
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(identifier___import__) identifier___import__
(argument_list
(attribute
(identifier_PLUGINS) identifier_PLUGINS
(identifier___name__) identifier___name__
)attribute
(dictionary
)dictionary
(dictionary
)dictionary
(list
(identifier_plugin) identifier_plugin
)list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_plugins) identifier_plugins
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_plugin) identifier_plugin
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Successfully imported {0} plugin") string_"Successfully imported {0} plugin"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_plugin) identifier_plugin
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_ImportError) identifier_ImportError
(identifier_SyntaxError) identifier_SyntaxError
)tuple
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(string_"Failed to import {0} plugin ({1})") string_"Failed to import {0} plugin ({1})"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_plugin) identifier_plugin
(identifier_error) identifier_error
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(call
(identifier_Config) identifier_Config
(argument_list
)argument_list
)call
(identifier_sections) identifier_sections
)attribute
(argument_list
(keyword_argument
(identifier_kind) identifier_kind
(identifier_plugin) identifier_plugin
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_FAILED_PLUGINS) identifier_FAILED_PLUGINS
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_plugin) identifier_plugin
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_plugins) identifier_plugins
)return_statement
)block
)function_definition
)module | Check available plugins and attempt to import them |
(module
(function_definition
(function_name_get_prefix_envname) function_name_get_prefix_envname
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_log) identifier_log
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(string_'root') string_'root'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(attribute
(identifier_self) identifier_self
(identifier_ROOT_PREFIX) identifier_ROOT_PREFIX
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_envs) identifier_envs
(call
(attribute
(identifier_self) identifier_self
(identifier_get_envs) identifier_get_envs
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_p) identifier_p
(identifier_envs) identifier_envs
(block
(if_statement
(comparison_operator
(call
(identifier_basename) identifier_basename
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(identifier_name) identifier_name
)comparison_operator
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(identifier_p) identifier_p
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_prefix) identifier_prefix
)return_statement
)block
)function_definition
)module | Return full prefix path of environment defined by `name`. |
(module
(function_definition
(function_name_check_config) function_name_check_config
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_essential_keys) identifier_essential_keys
(list
(string_'number_earthquakes') string_'number_earthquakes'
)list
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_essential_keys) identifier_essential_keys
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(identifier_config) identifier_config
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(concatenated_string
(string_'For Kijko Nonparametric Gaussian the key %s ') string_'For Kijko Nonparametric Gaussian the key %s '
(string_'needs to be set in the configuation') string_'needs to be set in the configuation'
)concatenated_string
(identifier_key) identifier_key
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'tolerance') string_'tolerance'
(float_0.0) float_0.0
)argument_list
)call
(float_0.0) float_0.0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_config) identifier_config
(string_'tolerance') string_'tolerance'
)subscript
(float_0.05) float_0.05
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'maximum_iterations') string_'maximum_iterations'
(integer_0) integer_0
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_config) identifier_config
(string_'maximum_iterations') string_'maximum_iterations'
)subscript
(integer_100) integer_100
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'number_samples') string_'number_samples'
(integer_0) integer_0
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_config) identifier_config
(string_'number_samples') string_'number_samples'
)subscript
(integer_51) integer_51
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_config) identifier_config
)return_statement
)block
)function_definition
)module | Check config file inputs and overwrite bad values with the defaults |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_upload) identifier_upload
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_files_states) identifier_files_states
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_backend) identifier_backend
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_files) identifier_files
(call
(identifier_MultiValueDict) identifier_MultiValueDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_files_states) identifier_files_states
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_state) identifier_state
)pattern_list
(call
(attribute
(identifier_files_states) identifier_files_states
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_BytesIO) identifier_BytesIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(subscript
(identifier_state) identifier_state
(string_'content') string_'content'
)subscript
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_state) identifier_state
(string_'size') string_'size'
)subscript
(attribute
(identifier_settings) identifier_settings
(identifier_FILE_UPLOAD_MAX_MEMORY_SIZE) identifier_FILE_UPLOAD_MAX_MEMORY_SIZE
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_upload) identifier_upload
(call
(identifier_TemporaryUploadedFile) identifier_TemporaryUploadedFile
(argument_list
(subscript
(identifier_state) identifier_state
(string_'name') string_'name'
)subscript
(subscript
(identifier_state) identifier_state
(string_'content_type') string_'content_type'
)subscript
(subscript
(identifier_state) identifier_state
(string_'size') string_'size'
)subscript
(subscript
(identifier_state) identifier_state
(string_'charset') string_'charset'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_upload) identifier_upload
(identifier_file) identifier_file
)attribute
(identifier_f) identifier_f
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_BytesIO) identifier_BytesIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(subscript
(identifier_state) identifier_state
(string_'content') string_'content'
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_upload) identifier_upload
(call
(identifier_InMemoryUploadedFile) identifier_InMemoryUploadedFile
(argument_list
(keyword_argument
(identifier_file) identifier_file
(identifier_f) identifier_f
)keyword_argument
(keyword_argument
(identifier_field_name) identifier_field_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(subscript
(identifier_state) identifier_state
(string_'name') string_'name'
)subscript
)keyword_argument
(keyword_argument
(identifier_content_type) identifier_content_type
(subscript
(identifier_state) identifier_state
(string_'content_type') string_'content_type'
)subscript
)keyword_argument
(keyword_argument
(identifier_size) identifier_size
(subscript
(identifier_state) identifier_state
(string_'size') string_'size'
)subscript
)keyword_argument
(keyword_argument
(identifier_charset) identifier_charset
(subscript
(identifier_state) identifier_state
(string_'charset') string_'charset'
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(subscript
(identifier_files) identifier_files
(identifier_name) identifier_name
)subscript
(identifier_upload) identifier_upload
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_upload) identifier_upload
(identifier_file) identifier_file
)attribute
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_files) identifier_files
)return_statement
)block
)function_definition
)module | Regenerates a MultiValueDict instance containing the files related to all file states
stored for the given key. |
(module
(function_definition
(function_name_rename_tabs_after_change) function_name_rename_tabs_after_change
(parameters
(identifier_self) identifier_self
(identifier_given_name) identifier_given_name
)parameters
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(identifier_self) identifier_self
(identifier_get_current_client) identifier_get_current_client
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_repeated) identifier_repeated
(False) False
)assignment
)expression_statement
(for_statement
(identifier_cl) identifier_cl
(call
(attribute
(identifier_self) identifier_self
(identifier_get_clients) identifier_get_clients
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_id) identifier_id
(argument_list
(identifier_client) identifier_client
)argument_list
)call
(call
(identifier_id) identifier_id
(argument_list
(identifier_cl) identifier_cl
)argument_list
)call
)comparison_operator
(comparison_operator
(identifier_given_name) identifier_given_name
(attribute
(identifier_cl) identifier_cl
(identifier_given_name) identifier_given_name
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_repeated) identifier_repeated
(True) True
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(boolean_operator
(attribute
(identifier_client) identifier_client
(identifier_allow_rename) identifier_allow_rename
)attribute
(not_operator
(comparison_operator
(string_u'/') string_u'/'
(identifier_given_name) identifier_given_name
)comparison_operator
)not_operator
)boolean_operator
(not_operator
(identifier_repeated) identifier_repeated
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rename_client_tab) identifier_rename_client_tab
)attribute
(argument_list
(identifier_client) identifier_client
(identifier_given_name) identifier_given_name
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rename_client_tab) identifier_rename_client_tab
)attribute
(argument_list
(identifier_client) identifier_client
(None) None
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(attribute
(identifier_client) identifier_client
(identifier_allow_rename) identifier_allow_rename
)attribute
(not_operator
(comparison_operator
(string_u'/') string_u'/'
(identifier_given_name) identifier_given_name
)comparison_operator
)not_operator
)boolean_operator
(not_operator
(identifier_repeated) identifier_repeated
)not_operator
)boolean_operator
(block
(for_statement
(identifier_cl) identifier_cl
(call
(attribute
(identifier_self) identifier_self
(identifier_get_related_clients) identifier_get_related_clients
)attribute
(argument_list
(identifier_client) identifier_client
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rename_client_tab) identifier_rename_client_tab
)attribute
(argument_list
(identifier_cl) identifier_cl
(identifier_given_name) identifier_given_name
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Rename tabs after a change in name. |
(module
(function_definition
(function_name_longest_run) function_name_longest_run
(parameters
(identifier_da) identifier_da
(default_parameter
(identifier_dim) identifier_dim
(string_'time') string_'time'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_rle) identifier_rle
(argument_list
(identifier_da) identifier_da
(keyword_argument
(identifier_dim) identifier_dim
(identifier_dim) identifier_dim
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rl_long) identifier_rl_long
(call
(attribute
(identifier_d) identifier_d
(identifier_max) identifier_max
)attribute
(argument_list
(keyword_argument
(identifier_dim) identifier_dim
(identifier_dim) identifier_dim
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_rl_long) identifier_rl_long
)return_statement
)block
)function_definition
)module | Return the length of the longest consecutive run of True values.
Parameters
----------
arr : N-dimensional array (boolean)
Input array
dim : Xarray dimension (default = 'time')
Dimension along which to calculate consecutive run
Returns
-------
N-dimensional array (int)
Length of longest run of True values along dimension |
(module
(function_definition
(function_name_get_piis) function_name_get_piis
(parameters
(identifier_query_str) identifier_query_str
)parameters
(block
(expression_statement
(assignment
(identifier_dates) identifier_dates
(call
(identifier_range) identifier_range
(argument_list
(integer_1960) integer_1960
(attribute
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
(identifier_year) identifier_year
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_piis) identifier_all_piis
(call
(identifier_flatten) identifier_flatten
(argument_list
(list_comprehension
(call
(identifier_get_piis_for_date) identifier_get_piis_for_date
(argument_list
(identifier_query_str) identifier_query_str
(identifier_date) identifier_date
)argument_list
)call
(for_in_clause
(identifier_date) identifier_date
(identifier_dates) identifier_dates
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_all_piis) identifier_all_piis
)return_statement
)block
)function_definition
)module | Search ScienceDirect through the API for articles and return PIIs.
Note that ScienceDirect has a limitation in which a maximum of 6,000
PIIs can be retrieved for a given search and therefore this call is
internally broken up into multiple queries by a range of years and the
results are combined.
Parameters
----------
query_str : str
The query string to search with
Returns
-------
piis : list[str]
The list of PIIs identifying the papers returned by the search |
(module
(function_definition
(function_name__get_string_match_value) function_name__get_string_match_value
(parameters
(identifier_self) identifier_self
(identifier_string) identifier_string
(identifier_string_match_type) identifier_string_match_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_string_match_type) identifier_string_match_type
(call
(identifier_Type) identifier_Type
(argument_list
(dictionary_splat
(call
(identifier_get_type_data) identifier_get_type_data
(argument_list
(string_'EXACT') string_'EXACT'
)argument_list
)call
)dictionary_splat
)argument_list
)call
)comparison_operator
(block
(return_statement
(identifier_string) identifier_string
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_string_match_type) identifier_string_match_type
(call
(identifier_Type) identifier_Type
(argument_list
(dictionary_splat
(call
(identifier_get_type_data) identifier_get_type_data
(argument_list
(string_'IGNORECASE') string_'IGNORECASE'
)argument_list
)call
)dictionary_splat
)argument_list
)call
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(binary_operator
(string_'^') string_'^'
(identifier_string) identifier_string
)binary_operator
(attribute
(identifier_re) identifier_re
(identifier_I) identifier_I
)attribute
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_string_match_type) identifier_string_match_type
(call
(identifier_Type) identifier_Type
(argument_list
(dictionary_splat
(call
(identifier_get_type_data) identifier_get_type_data
(argument_list
(string_'WORD') string_'WORD'
)argument_list
)call
)dictionary_splat
)argument_list
)call
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(binary_operator
(binary_operator
(string_'.*') string_'.*'
(identifier_string) identifier_string
)binary_operator
(string_'.*') string_'.*'
)binary_operator
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_string_match_type) identifier_string_match_type
(call
(identifier_Type) identifier_Type
(argument_list
(dictionary_splat
(call
(identifier_get_type_data) identifier_get_type_data
(argument_list
(string_'WORDIGNORECASE') string_'WORDIGNORECASE'
)argument_list
)call
)dictionary_splat
)argument_list
)call
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(binary_operator
(binary_operator
(string_'.*') string_'.*'
(identifier_string) identifier_string
)binary_operator
(string_'.*') string_'.*'
)binary_operator
(attribute
(identifier_re) identifier_re
(identifier_I) identifier_I
)attribute
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Gets the match value |
(module
(function_definition
(function_name_validate_json) function_name_validate_json
(parameters
(identifier_f) identifier_f
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_instance) identifier_instance
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(try_statement
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_request) identifier_request
(identifier_get_json) identifier_get_json
)attribute
(argument_list
)argument_list
)call
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ret_dict) identifier_ret_dict
(call
(attribute
(identifier_instance) identifier_instance
(identifier__create_ret_object) identifier__create_ret_object
)attribute
(argument_list
(attribute
(identifier_instance) identifier_instance
(identifier_FAILURE) identifier_FAILURE
)attribute
(None) None
(True) True
(attribute
(identifier_instance) identifier_instance
(identifier_MUST_JSON) identifier_MUST_JSON
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_instance) identifier_instance
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(attribute
(identifier_instance) identifier_instance
(identifier_MUST_JSON) identifier_MUST_JSON
)attribute
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(call
(identifier_jsonify) identifier_jsonify
(argument_list
(identifier_ret_dict) identifier_ret_dict
)argument_list
)call
(integer_400) integer_400
)expression_list
)return_statement
)block
)if_statement
)block
(except_clause
(identifier_BadRequest) identifier_BadRequest
(block
(expression_statement
(assignment
(identifier_ret_dict) identifier_ret_dict
(call
(attribute
(identifier_instance) identifier_instance
(identifier__create_ret_object) identifier__create_ret_object
)attribute
(argument_list
(attribute
(identifier_instance) identifier_instance
(identifier_FAILURE) identifier_FAILURE
)attribute
(None) None
(True) True
(attribute
(identifier_instance) identifier_instance
(identifier_MUST_JSON) identifier_MUST_JSON
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_instance) identifier_instance
(identifier_logger) identifier_logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(attribute
(identifier_instance) identifier_instance
(identifier_MUST_JSON) identifier_MUST_JSON
)attribute
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(call
(identifier_jsonify) identifier_jsonify
(argument_list
(identifier_ret_dict) identifier_ret_dict
)argument_list
)call
(integer_400) integer_400
)expression_list
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_instance) identifier_instance
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"JSON is valid") string_"JSON is valid"
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_f) identifier_f
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kw) identifier_kw
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Validate that the call is JSON. |
(module
(function_definition
(function_name__parse_ipmi_nic_capacity) function_name__parse_ipmi_nic_capacity
(parameters
(identifier_nic_out) identifier_nic_out
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(parenthesized_expression
(comparison_operator
(string_"Device not present") string_"Device not present"
(identifier_nic_out) identifier_nic_out
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(string_"Unknown FRU header") string_"Unknown FRU header"
(identifier_nic_out) identifier_nic_out
)comparison_operator
)parenthesized_expression
)boolean_operator
(not_operator
(identifier_nic_out) identifier_nic_out
)not_operator
)boolean_operator
)parenthesized_expression
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_capacity) identifier_capacity
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_product_name) identifier_product_name
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_nic_out) identifier_nic_out
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_data) identifier_data
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(call
(attribute
(identifier_item) identifier_item
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_fields) identifier_fields
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_first_field) identifier_first_field
(call
(attribute
(subscript
(identifier_fields) identifier_fields
(integer_0) integer_0
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_first_field) identifier_first_field
(string_"Product Name") string_"Product Name"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_product_name) identifier_product_name
(call
(attribute
(string_':') string_':'
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_fields) identifier_fields
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_product_name) identifier_product_name
(block
(expression_statement
(assignment
(identifier_product_name_array) identifier_product_name_array
(call
(attribute
(identifier_product_name) identifier_product_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_' ') string_' '
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_product_name_array) identifier_product_name_array
(block
(if_statement
(comparison_operator
(string_'Gb') string_'Gb'
(identifier_item) identifier_item
)comparison_operator
(block
(expression_statement
(assignment
(identifier_capacity_int) identifier_capacity_int
(call
(attribute
(identifier_item) identifier_item
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'Gb') string_'Gb'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_capacity_int) identifier_capacity_int
(identifier_isdigit) identifier_isdigit
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_capacity) identifier_capacity
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_capacity) identifier_capacity
)return_statement
)block
)function_definition
)module | Parse the FRU output for NIC capacity
Parses the FRU output. Seraches for the key "Product Name"
in FRU output and greps for maximum speed supported by the
NIC adapter.
:param nic_out: the FRU output for NIC adapter.
:returns: the max capacity supported by the NIC adapter. |
(module
(function_definition
(function_name_make_hash_id) function_name_make_hash_id
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_today) identifier_today
(call
(attribute
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
(identifier_strftime) identifier_strftime
)attribute
(argument_list
(identifier_DATETIME_FORMAT) identifier_DATETIME_FORMAT
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_hashlib) identifier_hashlib
(identifier_sha1) identifier_sha1
)attribute
(argument_list
(call
(attribute
(identifier_today) identifier_today
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
(identifier_hexdigest) identifier_hexdigest
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute the `datetime.now` based SHA-1 hash of a string.
:return: Returns the sha1 hash as a string.
:rtype: str |
(module
(function_definition
(function_name_replace_model) function_name_replace_model
(parameters
(identifier_refwcs) identifier_refwcs
(identifier_newcoeffs) identifier_newcoeffs
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'WARNING:') string_'WARNING:'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_' Replacing existing distortion model with one') string_' Replacing existing distortion model with one'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_' not necessarily matched to the observation!') string_' not necessarily matched to the observation!'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_wcslin) identifier_wcslin
(call
(attribute
(attribute
(attribute
(identifier_stwcs) identifier_stwcs
(identifier_distortion) identifier_distortion
)attribute
(identifier_utils) identifier_utils
)attribute
(identifier_undistortWCS) identifier_undistortWCS
)attribute
(argument_list
(identifier_refwcs) identifier_refwcs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_outwcs) identifier_outwcs
(call
(attribute
(identifier_refwcs) identifier_refwcs
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_outwcs) identifier_outwcs
(identifier_wcs) identifier_wcs
)attribute
(identifier_cd) identifier_cd
)attribute
(attribute
(attribute
(identifier_wcslin) identifier_wcslin
(identifier_wcs) identifier_wcs
)attribute
(identifier_cd) identifier_cd
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_outwcs) identifier_outwcs
(identifier_wcs) identifier_wcs
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_outwcs) identifier_outwcs
(identifier_setOrient) identifier_setOrient
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_outwcs) identifier_outwcs
(identifier_setPscale) identifier_setPscale
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_add_model) identifier_add_model
(argument_list
(identifier_outwcs) identifier_outwcs
(identifier_newcoeffs) identifier_newcoeffs
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_apply_model) identifier_apply_model
(argument_list
(identifier_outwcs) identifier_outwcs
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_refwcs) identifier_refwcs
(call
(attribute
(identifier_outwcs) identifier_outwcs
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Replace the distortion model in a current WCS with a new model
Start by creating linear WCS, then run |
(module
(function_definition
(function_name_disablingBuidCache) function_name_disablingBuidCache
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buidcache) identifier_buidcache
)attribute
(call
(attribute
(identifier_s_cache) identifier_s_cache
(identifier_LruDict) identifier_LruDict
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
)yield
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buidcache) identifier_buidcache
)attribute
(call
(attribute
(identifier_s_cache) identifier_s_cache
(identifier_LruDict) identifier_LruDict
)attribute
(argument_list
(identifier_BUID_CACHE_SIZE) identifier_BUID_CACHE_SIZE
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Disable and invalidate the layer buid cache for migration |
(module
(function_definition
(function_name__fold_line) function_name__fold_line
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__cols) identifier__cols
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__line_sep) identifier__line_sep
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier__cols) identifier__cols
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(subscript
(identifier_line) identifier_line
(slice
(integer_0) integer_0
(colon) colon
(attribute
(identifier_self) identifier_self
(identifier__cols) identifier__cols
)attribute
)slice
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__line_sep) identifier__line_sep
)attribute
)argument_list
)call
)expression_statement
(while_statement
(comparison_operator
(identifier_pos) identifier_pos
(call
(identifier_len) identifier_len
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_b' ') string_b' '
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(call
(identifier_min) identifier_min
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(binary_operator
(binary_operator
(identifier_pos) identifier_pos
(attribute
(identifier_self) identifier_self
(identifier__cols) identifier__cols
)attribute
)binary_operator
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(subscript
(identifier_line) identifier_line
(slice
(identifier_pos) identifier_pos
(colon) colon
(identifier_end) identifier_end
)slice
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__output_file) identifier__output_file
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__line_sep) identifier__line_sep
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(identifier_end) identifier_end
)assignment
)expression_statement
)block
)while_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Write string line as one or more folded lines. |
(module
(function_definition
(function_name_event_return) function_name_event_return
(parameters
(identifier_events) identifier_events
)parameters
(block
(expression_statement
(assignment
(identifier_conn) identifier_conn
(call
(identifier__get_conn) identifier__get_conn
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_conn) identifier_conn
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cur) identifier_cur
(call
(attribute
(identifier_conn) identifier_conn
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_event) identifier_event
(identifier_events) identifier_events
(block
(expression_statement
(assignment
(identifier_tag) identifier_tag
(call
(attribute
(identifier_event) identifier_event
(identifier_get) identifier_get
)attribute
(argument_list
(string_'tag') string_'tag'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_event) identifier_event
(identifier_get) identifier_get
)attribute
(argument_list
(string_'data') string_'data'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(call
(attribute
(identifier_cur) identifier_cur
(identifier_execute) identifier_execute
)attribute
(argument_list
(identifier_sql) identifier_sql
(tuple
(identifier_tag) identifier_tag
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_json) identifier_json
)attribute
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(subscript
(identifier___opts__) identifier___opts__
(string_'id') string_'id'
)subscript
)tuple
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(identifier__close_conn) identifier__close_conn
(argument_list
(identifier_conn) identifier_conn
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Return event to a postgres server
Require that configuration be enabled via 'event_return'
option in master config. |
(module
(function_definition
(function_name_get_snippet_content) function_name_get_snippet_content
(parameters
(identifier_snippet_name) identifier_snippet_name
(dictionary_splat_pattern
(identifier_format_kwargs) identifier_format_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(binary_operator
(identifier_snippet_name) identifier_snippet_name
(string_'.snippet') string_'.snippet'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_snippet_file) identifier_snippet_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_SNIPPETS_ROOT) identifier_SNIPPETS_ROOT
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_snippet_file) identifier_snippet_file
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'could not find snippet with name ') string_'could not find snippet with name '
(identifier_filename) identifier_filename
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_helpers) identifier_helpers
(identifier_get_file_content) identifier_get_file_content
)attribute
(argument_list
(identifier_snippet_file) identifier_snippet_file
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_format_kwargs) identifier_format_kwargs
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_ret) identifier_ret
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_format_kwargs) identifier_format_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Load the content from a snippet file which exists in SNIPPETS_ROOT |
(module
(function_definition
(function_name_from_array) function_name_from_array
(parameters
(identifier_array) identifier_array
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_array) identifier_array
(None) None
)comparison_operator
(not_operator
(identifier_array) identifier_array
)not_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(call
(identifier_assert_type_or_raise) identifier_assert_type_or_raise
(argument_list
(identifier_array) identifier_array
(identifier_dict) identifier_dict
(keyword_argument
(identifier_parameter_name) identifier_parameter_name
(string_"array") string_"array"
)keyword_argument
)argument_list
)call
)expression_statement
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_receivable) identifier_receivable
(identifier_media) identifier_media
)dotted_name
)relative_import
(dotted_name
(identifier_Location) identifier_Location
)dotted_name
)import_from_statement
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_receivable) identifier_receivable
(identifier_peer) identifier_peer
)dotted_name
)relative_import
(dotted_name
(identifier_User) identifier_User
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'result_id') string_'result_id'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'result_id') string_'result_id'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'from_peer') string_'from_peer'
)subscript
(call
(attribute
(identifier_User) identifier_User
(identifier_from_array) identifier_from_array
)attribute
(argument_list
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'from') string_'from'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'query') string_'query'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'query') string_'query'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'location') string_'location'
)subscript
(conditional_expression
(call
(attribute
(identifier_Location) identifier_Location
(identifier_from_array) identifier_from_array
)attribute
(argument_list
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'location') string_'location'
)argument_list
)call
)argument_list
)call
(comparison_operator
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'location') string_'location'
)argument_list
)call
(None) None
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'inline_message_id') string_'inline_message_id'
)subscript
(conditional_expression
(call
(identifier_u) identifier_u
(argument_list
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'inline_message_id') string_'inline_message_id'
)argument_list
)call
)argument_list
)call
(comparison_operator
(call
(attribute
(identifier_array) identifier_array
(identifier_get) identifier_get
)attribute
(argument_list
(string_'inline_message_id') string_'inline_message_id'
)argument_list
)call
(None) None
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_'_raw') string_'_raw'
)subscript
(identifier_array) identifier_array
)assignment
)expression_statement
(return_statement
(call
(identifier_ChosenInlineResult) identifier_ChosenInlineResult
(argument_list
(dictionary_splat
(identifier_data) identifier_data
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deserialize a new ChosenInlineResult from a given dictionary.
:return: new ChosenInlineResult instance.
:rtype: ChosenInlineResult |
(module
(function_definition
(function_name_get_files) function_name_get_files
(parameters
(default_parameter
(identifier_dirname) identifier_dirname
(None) None
)default_parameter
(default_parameter
(identifier_pattern) identifier_pattern
(string_'*.*') string_'*.*'
)default_parameter
(default_parameter
(identifier_recursive) identifier_recursive
(True) True
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_dirname) identifier_dirname
(None) None
)comparison_operator
(block
(import_from_statement
(dotted_name
(identifier_FlowCytometryTools) identifier_FlowCytometryTools
(identifier_gui) identifier_gui
)dotted_name
(dotted_name
(identifier_dialogs) identifier_dialogs
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_dirname) identifier_dirname
(call
(attribute
(identifier_dialogs) identifier_dialogs
(identifier_select_directory_dialog) identifier_select_directory_dialog
)attribute
(argument_list
(string_'Select a directory') string_'Select a directory'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_recursive) identifier_recursive
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_root) identifier_root
(identifier_dirnames) identifier_dirnames
(identifier_filenames) identifier_filenames
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_dirname) identifier_dirname
)argument_list
)call
(block
(for_statement
(identifier_filename) identifier_filename
(call
(attribute
(identifier_fnmatch) identifier_fnmatch
(identifier_filter) identifier_filter
)attribute
(argument_list
(identifier_filenames) identifier_filenames
(identifier_pattern) identifier_pattern
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_matches) identifier_matches
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root) identifier_root
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(attribute
(identifier_glob) identifier_glob
(identifier_glob) identifier_glob
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dirname) identifier_dirname
(identifier_pattern) identifier_pattern
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_matches) identifier_matches
)return_statement
)block
)function_definition
)module | Get all file names within a given directory those names match a
given pattern.
Parameters
----------
dirname : str | None
Directory containing the datafiles.
If None is given, open a dialog box.
pattern : str
Return only files whose names match the specified pattern.
recursive : bool
True : Search recursively within all sub-directories.
False : Search only in given directory.
Returns
-------
matches: list
List of file names (including full path). |
(module
(function_definition
(function_name_printAllElements) function_name_printAllElements
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cnt) identifier_cnt
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"{id:<3s}: {name:<12s} {type:<10s} {classname:<10s}") string_"{id:<3s}: {name:<12s} {type:<10s} {classname:<10s}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(string_'ID') string_'ID'
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(string_'Name') string_'Name'
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(string_'Type') string_'Type'
)keyword_argument
(keyword_argument
(identifier_classname) identifier_classname
(string_'Class Name') string_'Class Name'
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_e) identifier_e
(attribute
(identifier_self) identifier_self
(identifier__lattice_eleobjlist) identifier__lattice_eleobjlist
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"{cnt:>03d}: {name:<12s} {type:<10s} {classname:<10s}") string_"{cnt:>03d}: {name:<12s} {type:<10s} {classname:<10s}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_cnt) identifier_cnt
(identifier_cnt) identifier_cnt
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(attribute
(identifier_e) identifier_e
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(attribute
(identifier_e) identifier_e
(identifier_typename) identifier_typename
)attribute
)keyword_argument
(keyword_argument
(identifier_classname) identifier_classname
(attribute
(attribute
(identifier_e) identifier_e
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_cnt) identifier_cnt
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | print out all modeled elements |
(module
(function_definition
(function_name_find_nearest) function_name_find_nearest
(parameters
(identifier_self) identifier_self
(identifier_hex_code) identifier_hex_code
(identifier_system) identifier_system
(default_parameter
(identifier_filter_set) identifier_filter_set
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_system) identifier_system
(attribute
(identifier_self) identifier_self
(identifier__colors_by_system_hex) identifier__colors_by_system_hex
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"%r is not a registered color system. Try one of %r") string_"%r is not a registered color system. Try one of %r"
(tuple
(identifier_system) identifier_system
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__colors_by_system_hex) identifier__colors_by_system_hex
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_hex_code) identifier_hex_code
(call
(attribute
(call
(attribute
(identifier_hex_code) identifier_hex_code
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_hex_code) identifier_hex_code
(subscript
(attribute
(identifier_self) identifier_self
(identifier__colors_by_system_hex) identifier__colors_by_system_hex
)attribute
(identifier_system) identifier_system
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(identifier_color_name) identifier_color_name
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__colors_by_system_hex) identifier__colors_by_system_hex
)attribute
(identifier_system) identifier_system
)subscript
(identifier_hex_code) identifier_hex_code
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_filter_set) identifier_filter_set
(None) None
)comparison_operator
(comparison_operator
(identifier_color_name) identifier_color_name
(identifier_filter_set) identifier_filter_set
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(identifier_FindResult) identifier_FindResult
(argument_list
(identifier_color_name) identifier_color_name
(integer_0) integer_0
)argument_list
)call
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_colors) identifier_colors
(subscript
(attribute
(identifier_self) identifier_self
(identifier__colors_by_system_lab) identifier__colors_by_system_lab
)attribute
(identifier_system) identifier_system
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_filter_set) identifier_filter_set
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_colors) identifier_colors
(generator_expression
(identifier_pair) identifier_pair
(for_in_clause
(identifier_pair) identifier_pair
(identifier_colors) identifier_colors
)for_in_clause
(if_clause
(comparison_operator
(subscript
(identifier_pair) identifier_pair
(integer_1) integer_1
)subscript
(call
(identifier_set) identifier_set
(argument_list
(identifier_filter_set) identifier_filter_set
)argument_list
)call
)comparison_operator
)if_clause
)generator_expression
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_lab_color) identifier_lab_color
(call
(identifier__hex_to_lab) identifier__hex_to_lab
(argument_list
(identifier_hex_code) identifier_hex_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_distance) identifier_min_distance
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_float_info) identifier_float_info
)attribute
(identifier_max) identifier_max
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_color_name) identifier_min_color_name
(None) None
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_current_lab_color) identifier_current_lab_color
(identifier_current_color_name) identifier_current_color_name
)pattern_list
(identifier_colors) identifier_colors
(block
(expression_statement
(assignment
(identifier_distance) identifier_distance
(call
(attribute
(attribute
(identifier_colormath) identifier_colormath
(identifier_color_diff) identifier_color_diff
)attribute
(identifier_delta_e_cie2000) identifier_delta_e_cie2000
)attribute
(argument_list
(identifier_lab_color) identifier_lab_color
(identifier_current_lab_color) identifier_current_lab_color
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_distance) identifier_distance
(identifier_min_distance) identifier_min_distance
)comparison_operator
(block
(expression_statement
(assignment
(identifier_min_distance) identifier_min_distance
(identifier_distance) identifier_distance
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_color_name) identifier_min_color_name
(identifier_current_color_name) identifier_current_color_name
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(identifier_FindResult) identifier_FindResult
(argument_list
(identifier_min_color_name) identifier_min_color_name
(identifier_min_distance) identifier_min_distance
)argument_list
)call
)return_statement
)block
)function_definition
)module | Find a color name that's most similar to a given sRGB hex code.
In normalization terms, this method implements "normalize an arbitrary sRGB value
to a well-defined color name".
Args:
system (string): The color system. Currently, `"en"`` is the only default
system.
filter_set (iterable of string, optional): Limits the output choices
to fewer color names. The names (e.g. ``["black", "white"]``) must be
present in the given system.
If omitted, all color names of the system are considered. Defaults to None.
Returns:
A named tuple with the members `color_name` and `distance`.
Raises:
ValueError: If argument `system` is not a registered color system.
Examples:
>>> tint_registry = TintRegistry()
>>> tint_registry.find_nearest("54e6e4", system="en")
FindResult(color_name=u'bright turquoise', distance=3.730288645055483)
>>> tint_registry.find_nearest("54e6e4", "en", filter_set=("white", "black"))
FindResult(color_name=u'white', distance=25.709952192116894) |
(module
(function_definition
(function_name_filter) function_name_filter
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filter_fn) identifier_filter_fn
(None) None
)default_parameter
(default_parameter
(identifier_desc) identifier_desc
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_filter_fn) identifier_filter_fn
(None) None
)comparison_operator
(identifier_kwargs) identifier_kwargs
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Must supply either a filter_fn or attribute filter parameters to filter(), but not both.') string_'Must supply either a filter_fn or attribute filter parameters to filter(), but not both.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_filter_fn) identifier_filter_fn
(None) None
)comparison_operator
(not_operator
(identifier_kwargs) identifier_kwargs
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Must supply one of filter_fn or one or more attribute filter parameters to filter().') string_'Must supply one of filter_fn or one or more attribute filter parameters to filter().'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_desc) identifier_desc
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_filter_fn) identifier_filter_fn
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_desc) identifier_desc
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_filter_fn) identifier_filter_fn
(string_'__name__') string_'__name__'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(identifier_kwargs) identifier_kwargs
(block
(expression_statement
(assignment
(identifier_desc) identifier_desc
(call
(attribute
(string_u", ") string_u", "
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(string_u"{}={!r}") string_u"{}={!r}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_desc) identifier_desc
(call
(attribute
(string_u"filter({})") string_u"filter({})"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_desc) identifier_desc
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_kwargs) identifier_kwargs
(block
(function_definition
(function_name_filter_fn) function_name_filter_fn
(parameters
(identifier_elem) identifier_elem
)parameters
(block
(return_statement
(call
(identifier_all) identifier_all
(generator_expression
(comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_elem) identifier_elem
(identifier_filter_key) identifier_filter_key
)argument_list
)call
(identifier_filter_value) identifier_filter_value
)comparison_operator
(for_in_clause
(pattern_list
(identifier_filter_key) identifier_filter_key
(identifier_filter_value) identifier_filter_value
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_transform) identifier_transform
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_xs) identifier_xs
)lambda_parameters
(generator_expression
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(identifier_xs) identifier_xs
)for_in_clause
(if_clause
(call
(identifier_filter_fn) identifier_filter_fn
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)if_clause
)generator_expression
)lambda
(keyword_argument
(identifier_desc) identifier_desc
(identifier_desc) identifier_desc
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a copy of this query, with some values removed.
Example usages:
.. code:: python
# Returns a query that matches even numbers
q.filter(filter_fn=lambda x: x % 2)
# Returns a query that matches elements with el.description == "foo"
q.filter(description="foo")
Keyword Args:
filter_fn (callable): If specified, a function that accepts one argument (the element)
and returns a boolean indicating whether to include that element in the results.
kwargs: Specify attribute values that an element must have to be included in the results.
desc (str): A description of the filter, for use in log messages.
Defaults to the name of the filter function or attribute.
Raises:
TypeError: neither or both of `filter_fn` and `kwargs` are provided. |
(module
(function_definition
(function_name__update_transforms) function_name__update_transforms
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__fb_stack) identifier__fb_stack
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_fb_size) identifier_fb_size
(assignment
(identifier_fb_rect) identifier_fb_rect
(None) None
)assignment
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_fb) identifier_fb
(identifier_origin) identifier_origin
(identifier_fb_size) identifier_fb_size
)pattern_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__fb_stack) identifier__fb_stack
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fb_rect) identifier_fb_rect
(binary_operator
(identifier_origin) identifier_origin
(identifier_fb_size) identifier_fb_size
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__vp_stack) identifier__vp_stack
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_viewport) identifier_viewport
(None) None
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_viewport) identifier_viewport
(subscript
(attribute
(identifier_self) identifier_self
(identifier__vp_stack) identifier__vp_stack
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transforms) identifier_transforms
)attribute
(identifier_configure) identifier_configure
)attribute
(argument_list
(keyword_argument
(identifier_viewport) identifier_viewport
(identifier_viewport) identifier_viewport
)keyword_argument
(keyword_argument
(identifier_fbo_size) identifier_fbo_size
(identifier_fb_size) identifier_fb_size
)keyword_argument
(keyword_argument
(identifier_fbo_rect) identifier_fbo_rect
(identifier_fb_rect) identifier_fb_rect
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update the canvas's TransformSystem to correct for the current
canvas size, framebuffer, and viewport. |
(module
(function_definition
(function_name__get_v4_signed_headers) function_name__get_v4_signed_headers
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_aws_session) identifier_aws_session
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_boto_session) identifier_boto_session
(call
(attribute
(identifier_session) identifier_session
(identifier_Session) identifier_Session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_creds) identifier_creds
(call
(attribute
(identifier_boto_session) identifier_boto_session
(identifier_get_credentials) identifier_get_credentials
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_creds) identifier_creds
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_aws_session) identifier_aws_session
)attribute
(identifier_get_credentials) identifier_get_credentials
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_creds) identifier_creds
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_CerberusClientException) identifier_CerberusClientException
(argument_list
(string_"Unable to locate AWS credentials") string_"Unable to locate AWS credentials"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_readonly_credentials) identifier_readonly_credentials
(call
(attribute
(identifier_creds) identifier_creds
(identifier_get_frozen_credentials) identifier_get_frozen_credentials
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
(tuple
(tuple
(string_'Action') string_'Action'
(string_'GetCallerIdentity') string_'GetCallerIdentity'
)tuple
(tuple
(string_'Version') string_'Version'
(string_'2011-06-15') string_'2011-06-15'
)tuple
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_'https://sts.{}.amazonaws.com/') string_'https://sts.{}.amazonaws.com/'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_region) identifier_region
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request_object) identifier_request_object
(call
(attribute
(identifier_awsrequest) identifier_awsrequest
(identifier_AWSRequest) identifier_AWSRequest
)attribute
(argument_list
(keyword_argument
(identifier_method) identifier_method
(string_'POST') string_'POST'
)keyword_argument
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_signer) identifier_signer
(call
(attribute
(identifier_auth) identifier_auth
(identifier_SigV4Auth) identifier_SigV4Auth
)attribute
(argument_list
(identifier_readonly_credentials) identifier_readonly_credentials
(string_'sts') string_'sts'
(attribute
(identifier_self) identifier_self
(identifier_region) identifier_region
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_signer) identifier_signer
(identifier_add_auth) identifier_add_auth
)attribute
(argument_list
(identifier_request_object) identifier_request_object
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_request_object) identifier_request_object
(identifier_headers) identifier_headers
)attribute
)return_statement
)block
)function_definition
)module | Returns V4 signed get-caller-identity request headers |
(module
(function_definition
(function_name_quoteattrs) function_name_quoteattrs
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_items) identifier_items
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_data) identifier_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_items) identifier_items
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_'{}={}') string_'{}={}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(call
(identifier_quoteattr) identifier_quoteattr
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)return_statement
)block
)function_definition
)module | Takes dict of attributes and returns their HTML representation |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filenames) identifier_filenames
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ssh_client) identifier_ssh_client
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_ssh_conn) identifier_ssh_conn
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sftp_client) identifier_sftp_client
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(identifier_ssh_conn) identifier_ssh_conn
)argument_list
)call
(as_pattern_target
(identifier_sftp_conn) identifier_sftp_conn
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_filename) identifier_filename
(identifier_filenames) identifier_filenames
(block
(expression_statement
(call
(attribute
(identifier_sftp_conn) identifier_sftp_conn
(identifier_copy) identifier_copy
)attribute
(argument_list
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_archive) identifier_archive
)attribute
(argument_list
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_update_history_model) identifier_update_history_model
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_history) identifier_update_history
)attribute
(argument_list
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
)with_statement
)block
(except_clause
(as_pattern
(identifier_SSHClientError) identifier_SSHClientError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_TransactionFileSenderError) identifier_TransactionFileSenderError
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(identifier_e) identifier_e
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_SFTPClientError) identifier_SFTPClientError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_TransactionFileSenderError) identifier_TransactionFileSenderError
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(identifier_e) identifier_e
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_filenames) identifier_filenames
)return_statement
)block
)function_definition
)module | Sends the file to the remote host and archives
the sent file locally. |
(module
(function_definition
(function_name_edit) function_name_edit
(parameters
(identifier_self) identifier_self
(identifier_pk) identifier_pk
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_TableModelView) identifier_TableModelView
(identifier_self) identifier_self
)argument_list
)call
(identifier_edit) identifier_edit
)attribute
(argument_list
(identifier_pk) identifier_pk
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_resp) identifier_resp
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(identifier_resp) identifier_resp
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_redirect) identifier_redirect
(argument_list
(call
(attribute
(string_'/superset/explore/table/{}/') string_'/superset/explore/table/{}/'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_pk) identifier_pk
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Simple hack to redirect to explore view after saving |
(module
(function_definition
(function_name_display_upstream_structure) function_name_display_upstream_structure
(parameters
(identifier_structure_dict) identifier_structure_dict
)parameters
(block
(expression_statement
(assignment
(identifier_graph) identifier_graph
(call
(identifier__create_graph) identifier__create_graph
(argument_list
(identifier_structure_dict) identifier_structure_dict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_plt) identifier_plt
(call
(identifier_Image) identifier_Image
(argument_list
(call
(attribute
(identifier_graph) identifier_graph
(identifier_create_png) identifier_create_png
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_display) identifier_display
(argument_list
(identifier_plt) identifier_plt
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Displays pipeline structure in the jupyter notebook.
Args:
structure_dict (dict): dict returned by
:func:`~steppy.base.Step.upstream_structure`. |
(module
(function_definition
(function_name_get_ticket) function_name_get_ticket
(parameters
(identifier_self) identifier_self
(identifier_ticket_id) identifier_ticket_id
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_'tickets/%d') string_'tickets/%d'
(identifier_ticket_id) identifier_ticket_id
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ticket) identifier_ticket
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(identifier__get) identifier__get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Ticket) identifier_Ticket
(argument_list
(dictionary_splat
(identifier_ticket) identifier_ticket
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetches the ticket for the given ticket ID |
(module
(function_definition
(function_name_schedule) function_name_schedule
(parameters
(identifier_identifier) identifier_identifier
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_source) identifier_source
(call
(attribute
(identifier_actions) identifier_actions
(identifier_schedule) identifier_schedule
)attribute
(argument_list
(identifier_identifier) identifier_identifier
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_'Scheduled {source.name} with the following crontab: {cron}') string_'Scheduled {source.name} with the following crontab: {cron}'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_source) identifier_source
(identifier_source) identifier_source
)keyword_argument
(keyword_argument
(identifier_cron) identifier_cron
(attribute
(attribute
(identifier_source) identifier_source
(identifier_periodic_task) identifier_periodic_task
)attribute
(identifier_crontab) identifier_crontab
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Schedule a harvest job to run periodically |
(module
(function_definition
(function_name_get_word_under_cursor) function_name_get_word_under_cursor
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_r"^\w+$") string_r"^\w+$"
(call
(attribute
(attribute
(identifier_foundations) identifier_foundations
(identifier_strings) identifier_strings
)attribute
(identifier_to_string) identifier_to_string
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_previous_character) identifier_get_previous_character
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)not_operator
(block
(return_statement
(call
(identifier_QString) identifier_QString
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(identifier_self) identifier_self
(identifier_textCursor) identifier_textCursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_movePosition) identifier_movePosition
)attribute
(argument_list
(attribute
(identifier_QTextCursor) identifier_QTextCursor
(identifier_PreviousWord) identifier_PreviousWord
)attribute
(attribute
(identifier_QTextCursor) identifier_QTextCursor
(identifier_MoveAnchor) identifier_MoveAnchor
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_movePosition) identifier_movePosition
)attribute
(argument_list
(attribute
(identifier_QTextCursor) identifier_QTextCursor
(identifier_EndOfWord) identifier_EndOfWord
)attribute
(attribute
(identifier_QTextCursor) identifier_QTextCursor
(identifier_KeepAnchor) identifier_KeepAnchor
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_selectedText) identifier_selectedText
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the document word under cursor.
:return: Word under cursor.
:rtype: QString |
(module
(function_definition
(function_name_instances) function_name_instances
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_l) identifier_l
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(identifier_cls) identifier_cls
(identifier_allinstances) identifier_allinstances
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_i) identifier_i
(identifier_cls) identifier_cls
)argument_list
)call
)if_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_l) identifier_l
)return_statement
)block
)function_definition
)module | Return all instances of this class and subclasses
:returns: all instances of the current class and subclasses
:rtype: list
:raises: None |
(module
(function_definition
(function_name_get_dock_json) function_name_get_dock_json
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_env_json) identifier_env_json
(subscript
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_build_json) identifier_build_json
)attribute
(string_'spec') string_'spec'
)subscript
(string_'strategy') string_'strategy'
)subscript
(string_'customStrategy') string_'customStrategy'
)subscript
(string_'env') string_'env'
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(list_comprehension
(identifier_env) identifier_env
(for_in_clause
(identifier_env) identifier_env
(identifier_env_json) identifier_env_json
)for_in_clause
(if_clause
(comparison_operator
(subscript
(identifier_env) identifier_env
(string_"name") string_"name"
)subscript
(string_"ATOMIC_REACTOR_PLUGINS") string_"ATOMIC_REACTOR_PLUGINS"
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"\"env\" is not iterable") string_"\"env\" is not iterable"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"\"env\" misses key ATOMIC_REACTOR_PLUGINS") string_"\"env\" misses key ATOMIC_REACTOR_PLUGINS"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dock_json_str) identifier_dock_json_str
(subscript
(subscript
(identifier_p) identifier_p
(integer_0) integer_0
)subscript
(string_'value') string_'value'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dock_json) identifier_dock_json
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_dock_json_str) identifier_dock_json_str
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_dock_json) identifier_dock_json
)return_statement
)block
)function_definition
)module | return dock json from existing build json |
(module
(function_definition
(function_name_run_migration_list) function_name_run_migration_list
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_migrations) identifier_migrations
(default_parameter
(identifier_pretend) identifier_pretend
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_migrations) identifier_migrations
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__note) identifier__note
)attribute
(argument_list
(string_"<info>Nothing to migrate</info>") string_"<info>Nothing to migrate</info>"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_batch) identifier_batch
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__repository) identifier__repository
)attribute
(identifier_get_next_batch_number) identifier_get_next_batch_number
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(identifier_migrations) identifier_migrations
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__run_up) identifier__run_up
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_f) identifier_f
(identifier_batch) identifier_batch
(identifier_pretend) identifier_pretend
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Run a list of migrations.
:type migrations: list
:type pretend: bool |
(module
(function_definition
(function_name_lookupByName) function_name_lookupByName
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(yield
(call
(attribute
(identifier_queue) identifier_queue
(identifier_executeInThread) identifier_executeInThread
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_lookupByName) identifier_lookupByName
)attribute
(identifier_name) identifier_name
)argument_list
)call
)yield
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_DomainClass) identifier_DomainClass
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_res) identifier_res
)argument_list
)call
)return_statement
)block
)function_definition
)module | I lookup an existing predefined domain |
(module
(function_definition
(function_name_clipandmerge_general_stats_table) function_name_clipandmerge_general_stats_table
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(string_'percentage') string_'percentage'
)subscript
(dictionary
(pair
(string_'title') string_'title'
(string_'% Merged') string_'% Merged'
)pair
(pair
(string_'description') string_'description'
(string_'Percentage of reads merged') string_'Percentage of reads merged'
)pair
(pair
(string_'min') string_'min'
(integer_0) integer_0
)pair
(pair
(string_'max') string_'max'
(integer_100) integer_100
)pair
(pair
(string_'suffix') string_'suffix'
(string_'%') string_'%'
)pair
(pair
(string_'scale') string_'scale'
(string_'Greens') string_'Greens'
)pair
(pair
(string_'format') string_'format'
(string_'{:,.2f}') string_'{:,.2f}'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_general_stats_addcols) identifier_general_stats_addcols
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_clipandmerge_data) identifier_clipandmerge_data
)attribute
(identifier_headers) identifier_headers
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Take the parsed stats from the ClipAndMerge report and add it to the
basic stats table at the top of the report |
(module
(function_definition
(function_name_keep_everything_scorer) function_name_keep_everything_scorer
(parameters
(identifier_checked_ids) identifier_checked_ids
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_checked_ids) identifier_checked_ids
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(attribute
(identifier_checked_ids) identifier_checked_ids
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_i) identifier_i
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_dict) identifier_dict
(identifier_fromkeys) identifier_fromkeys
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns every query and every match in checked_ids, with best score. |
(module
(function_definition
(function_name_trailing_stop_loss) function_name_trailing_stop_loss
(parameters
(identifier_self) identifier_self
(identifier_accountID) identifier_accountID
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_accountID) identifier_accountID
(keyword_argument
(identifier_order) identifier_order
(call
(identifier_TrailingStopLossOrderRequest) identifier_TrailingStopLossOrderRequest
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Shortcut to create a Trailing Stop Loss Order in an Account
Args:
accountID : The ID of the Account
kwargs : The arguments to create a TrailingStopLossOrderRequest
Returns:
v20.response.Response containing the results from submitting
the request |
(module
(function_definition
(function_name_mouse_button_callback) function_name_mouse_button_callback
(parameters
(identifier_self) identifier_self
(identifier_window) identifier_window
(identifier_button) identifier_button
(identifier_action) identifier_action
(identifier_mods) identifier_mods
)parameters
(block
(expression_statement
(augmented_assignment
(identifier_button) identifier_button
(integer_1) integer_1
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_button) identifier_button
(list
(integer_1) integer_1
(integer_2) integer_2
)list
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_xpos) identifier_xpos
(identifier_ypos) identifier_ypos
)pattern_list
(call
(attribute
(identifier_glfw) identifier_glfw
(identifier_get_cursor_pos) identifier_get_cursor_pos
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_window) identifier_window
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_action) identifier_action
(attribute
(identifier_glfw) identifier_glfw
(identifier_PRESS) identifier_PRESS
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_example) identifier_example
)attribute
(identifier_mouse_press_event) identifier_mouse_press_event
)attribute
(argument_list
(identifier_xpos) identifier_xpos
(identifier_ypos) identifier_ypos
(identifier_button) identifier_button
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_example) identifier_example
)attribute
(identifier_mouse_release_event) identifier_mouse_release_event
)attribute
(argument_list
(identifier_xpos) identifier_xpos
(identifier_ypos) identifier_ypos
(identifier_button) identifier_button
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Handle mouse button events and forward them to the example |
(module
(function_definition
(function_name_readPhenoFile) function_name_readPhenoFile
(parameters
(identifier_pfile) identifier_pfile
(default_parameter
(identifier_idx) identifier_idx
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_usecols) identifier_usecols
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_idx) identifier_idx
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_usecols) identifier_usecols
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_idx) identifier_idx
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_phenoFile) identifier_phenoFile
(binary_operator
(identifier_pfile) identifier_pfile
(string_'.phe') string_'.phe'
)binary_operator
)assignment
)expression_statement
(assert_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_phenoFile) identifier_phenoFile
)argument_list
)call
(binary_operator
(string_'%s is missing.') string_'%s is missing.'
(identifier_phenoFile) identifier_phenoFile
)binary_operator
)assert_statement
(expression_statement
(assignment
(identifier_Y) identifier_Y
(call
(attribute
(identifier_SP) identifier_SP
(identifier_loadtxt) identifier_loadtxt
)attribute
(argument_list
(identifier_phenoFile) identifier_phenoFile
(keyword_argument
(identifier_usecols) identifier_usecols
(identifier_usecols) identifier_usecols
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_usecols) identifier_usecols
(None) None
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_usecols) identifier_usecols
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(assignment
(identifier_Y) identifier_Y
(subscript
(identifier_Y) identifier_Y
(slice
(colon) colon
)slice
(attribute
(identifier_SP) identifier_SP
(identifier_newaxis) identifier_newaxis
)attribute
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_Y) identifier_Y
(call
(attribute
(identifier_Y) identifier_Y
(identifier_mean) identifier_mean
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_Y) identifier_Y
(call
(attribute
(identifier_Y) identifier_Y
(identifier_std) identifier_std
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(identifier_Y) identifier_Y
)return_statement
)block
)function_definition
)module | reading in phenotype file
pfile root of the file containing the phenotypes as NxP matrix
(N=number of samples, P=number of traits) |
(module
(function_definition
(function_name_static_filename) function_name_static_filename
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_repo) identifier_repo
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_branch) identifier_branch
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_relative_path) identifier_relative_path
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Path) identifier_Path
)type
)type_parameter
)generic_type
)type
)typed_parameter
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_depth) identifier_depth
(type
(identifier_DepthDefinitionType) identifier_DepthDefinitionType
)type
(integer_1) integer_1
)typed_default_parameter
(typed_default_parameter
(identifier_reference) identifier_reference
(type
(identifier_ReferenceDefinitionType) identifier_ReferenceDefinitionType
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_Path) identifier_Path
)type
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_validate_repo_url) identifier_validate_repo_url
)attribute
(argument_list
(identifier_repo) identifier_repo
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_depth) identifier_depth
(call
(attribute
(identifier_self) identifier_self
(identifier_validate_depth) identifier_validate_depth
)attribute
(argument_list
(identifier_depth) identifier_depth
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reference) identifier_reference
(call
(attribute
(identifier_self) identifier_self
(identifier_validate_reference) identifier_validate_reference
)attribute
(argument_list
(identifier_reference) identifier_reference
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_relative_path) identifier_relative_path
(identifier_Path) identifier_Path
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_relative_path) identifier_relative_path
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_relative_path) identifier_relative_path
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_repo_path) identifier_repo_path
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_files) identifier_get_files
)attribute
(argument_list
(identifier_repo) identifier_repo
(identifier_branch) identifier_branch
(keyword_argument
(identifier_depth) identifier_depth
(identifier_depth) identifier_depth
)keyword_argument
(keyword_argument
(identifier_reference) identifier_reference
(identifier_reference) identifier_reference
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(binary_operator
(identifier_repo_path) identifier_repo_path
(identifier_relative_path) identifier_relative_path
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_result) identifier_result
(identifier_resolve) identifier_resolve
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_repo_path) identifier_repo_path
(attribute
(identifier_result) identifier_result
(identifier_parents) identifier_parents
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_FileOutOfRangeError) identifier_FileOutOfRangeError
(argument_list
(string_f"{relative_path} is not inside the repository.") string_f"{relative_path} is not inside the repository."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_result) identifier_result
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_FileNotFoundError) identifier_FileNotFoundError
(argument_list
(string_f"{relative_path} does not exist in the repository.") string_f"{relative_path} does not exist in the repository."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Static path for %s is %s") string_"Static path for %s is %s"
(identifier_relative_path) identifier_relative_path
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Returns an absolute path to where a file from the repo was cloned to.
:param repo: Repo URL
:param branch: Branch name
:param relative_path: Relative path to the requested file
:param depth: See :meth:`run`
:param reference: See :meth:`run`
:return: Absolute path to the file in the target repository
:raise FileOutOfRangeError: If the relative path leads out of the repository path
:raise FileNotFoundError: If the file doesn't exist in the repository. |
(module
(function_definition
(function_name_recent_update_frequencies) function_name_recent_update_frequencies
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_reversed) identifier_reversed
(argument_list
(list_comprehension
(parenthesized_expression
(binary_operator
(float_1.0) float_1.0
(identifier_p) identifier_p
)binary_operator
)parenthesized_expression
(for_in_clause
(identifier_p) identifier_p
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_diff) identifier_diff
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__recent_updates) identifier__recent_updates
)attribute
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the 10 most recent update frequencies.
The given frequencies are computed as short-term frequencies!
The 0th element of the list corresponds to the most recent frequency. |
(module
(function_definition
(function_name__from_dict) function_name__from_dict
(parameters
(identifier_cls) identifier_cls
(identifier__dict) identifier__dict
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'section_titles') string_'section_titles'
(identifier__dict) identifier__dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'section_titles') string_'section_titles'
)subscript
(list_comprehension
(call
(attribute
(identifier_SectionTitles) identifier_SectionTitles
(identifier__from_dict) identifier__from_dict
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(parenthesized_expression
(call
(attribute
(identifier__dict) identifier__dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'section_titles') string_'section_titles'
)argument_list
)call
)parenthesized_expression
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'leading_sentences') string_'leading_sentences'
(identifier__dict) identifier__dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(string_'leading_sentences') string_'leading_sentences'
)subscript
(list_comprehension
(call
(attribute
(identifier_LeadingSentence) identifier_LeadingSentence
(identifier__from_dict) identifier__from_dict
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(parenthesized_expression
(call
(attribute
(identifier__dict) identifier__dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'leading_sentences') string_'leading_sentences'
)argument_list
)call
)parenthesized_expression
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Initialize a DocStructure object from a json dictionary. |
(module
(function_definition
(function_name_tasks) function_name_tasks
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_tasks_response) identifier_tasks_response
(call
(attribute
(identifier_self) identifier_self
(identifier_get_request) identifier_get_request
)attribute
(argument_list
(string_'tasks/') string_'tasks/'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(call
(identifier_Task) identifier_Task
(argument_list
(identifier_self) identifier_self
(subscript
(identifier_tjson) identifier_tjson
(string_'task') string_'task'
)subscript
)argument_list
)call
(for_in_clause
(identifier_tjson) identifier_tjson
(identifier_tasks_response) identifier_tasks_response
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Generates a list of all Tasks. |
(module
(function_definition
(function_name_ensure_default_namespace) function_name_ensure_default_namespace
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_Namespace) identifier_Namespace
)type
(block
(expression_statement
(assignment
(identifier_namespace) identifier_namespace
(call
(attribute
(identifier_self) identifier_self
(identifier_get_namespace_by_keyword_version) identifier_get_namespace_by_keyword_version
)attribute
(argument_list
(identifier_BEL_DEFAULT_NAMESPACE) identifier_BEL_DEFAULT_NAMESPACE
(identifier_BEL_DEFAULT_NAMESPACE_VERSION) identifier_BEL_DEFAULT_NAMESPACE_VERSION
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_namespace) identifier_namespace
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_namespace) identifier_namespace
(call
(identifier_Namespace) identifier_Namespace
(argument_list
(keyword_argument
(identifier_name) identifier_name
(string_'BEL Default Namespace') string_'BEL Default Namespace'
)keyword_argument
(keyword_argument
(identifier_contact) identifier_contact
(string_'charles.hoyt@scai.fraunhofer.de') string_'charles.hoyt@scai.fraunhofer.de'
)keyword_argument
(keyword_argument
(identifier_keyword) identifier_keyword
(identifier_BEL_DEFAULT_NAMESPACE) identifier_BEL_DEFAULT_NAMESPACE
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier_BEL_DEFAULT_NAMESPACE_VERSION) identifier_BEL_DEFAULT_NAMESPACE_VERSION
)keyword_argument
(keyword_argument
(identifier_url) identifier_url
(identifier_BEL_DEFAULT_NAMESPACE_URL) identifier_BEL_DEFAULT_NAMESPACE_URL
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(call
(identifier_set) identifier_set
(argument_list
(call
(identifier_chain) identifier_chain
(argument_list
(identifier_pmod_mappings) identifier_pmod_mappings
(identifier_gmod_mappings) identifier_gmod_mappings
(identifier_activity_mapping) identifier_activity_mapping
(identifier_compartment_mapping) identifier_compartment_mapping
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_entry) identifier_entry
(call
(identifier_NamespaceEntry) identifier_NamespaceEntry
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_namespace) identifier_namespace
(identifier_namespace) identifier_namespace
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_namespace) identifier_namespace
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_namespace) identifier_namespace
)return_statement
)block
)function_definition
)module | Get or create the BEL default namespace. |
(module
(function_definition
(function_name_address) function_name_address
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(subscript
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(string_'address_fmt') string_'address_fmt'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_st_num) identifier_st_num
(call
(attribute
(identifier_self) identifier_self
(identifier_street_number) identifier_street_number
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_st_name) identifier_st_name
(call
(attribute
(identifier_self) identifier_self
(identifier_street_name) identifier_street_name
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_locale) identifier_locale
)attribute
(identifier_SHORTENED_ADDRESS_FMT) identifier_SHORTENED_ADDRESS_FMT
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_fmt) identifier_fmt
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_st_num) identifier_st_num
(identifier_st_num) identifier_st_num
)keyword_argument
(keyword_argument
(identifier_st_name) identifier_st_name
(identifier_st_name) identifier_st_name
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_locale) identifier_locale
)attribute
(string_'ja') string_'ja'
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_fmt) identifier_fmt
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_choice) identifier_choice
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(string_'city') string_'city'
)subscript
)argument_list
)call
(list_splat
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_randints) identifier_randints
)attribute
(argument_list
(keyword_argument
(identifier_amount) identifier_amount
(integer_3) integer_3
)keyword_argument
(keyword_argument
(identifier_a) identifier_a
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_b) identifier_b
(integer_100) integer_100
)keyword_argument
)argument_list
)call
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_fmt) identifier_fmt
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_st_num) identifier_st_num
(identifier_st_num) identifier_st_num
)keyword_argument
(keyword_argument
(identifier_st_name) identifier_st_name
(identifier_st_name) identifier_st_name
)keyword_argument
(keyword_argument
(identifier_st_sfx) identifier_st_sfx
(call
(attribute
(identifier_self) identifier_self
(identifier_street_suffix) identifier_street_suffix
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate a random full address.
:return: Full address. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.