sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_corr) function_name_corr
(parameters
(default_parameter
(identifier_sim) identifier_sim
(None) None
)default_parameter
(default_parameter
(identifier_obs) identifier_obs
(None) None
)default_parameter
(default_parameter
(identifier_node) identifier_node
(None) None
)default_parameter
(default_parameter
(identifier_skip_nan) identifier_skip_nan
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_sim) identifier_sim
(identifier_obs) identifier_obs
)pattern_list
(call
(identifier_prepare_arrays) identifier_prepare_arrays
(argument_list
(identifier_sim) identifier_sim
(identifier_obs) identifier_obs
(identifier_node) identifier_node
(identifier_skip_nan) identifier_skip_nan
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_corrcoef) identifier_corrcoef
)attribute
(argument_list
(identifier_sim) identifier_sim
(identifier_obs) identifier_obs
)argument_list
)call
(integer_0) integer_0
(integer_1) integer_1
)subscript
)return_statement
)block
)function_definition
)module | Calculate the product-moment correlation coefficient after Pearson.
>>> from hydpy import round_
>>> from hydpy import corr
>>> round_(corr(sim=[0.5, 1.0, 1.5], obs=[1.0, 2.0, 3.0]))
1.0
>>> round_(corr(sim=[4.0, 2.0, 0.0], obs=[1.0, 2.0, 3.0]))
-1.0
>>> round_(corr(sim=[1.0, 2.0, 1.0], obs=[1.0, 2.0, 3.0]))
0.0
See the documentation on function |prepare_arrays| for some
additional instructions for use of function |corr|. |
(module
(function_definition
(function_name_set_state) function_name_set_state
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_updater) identifier_updater
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_updater) identifier_updater
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_state_change) identifier_state_change
(call
(identifier_updater) identifier_updater
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_updater) identifier_updater
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_state_change) identifier_state_change
(identifier_updater) identifier_updater
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_state_change) identifier_state_change
(identifier_kwargs) identifier_kwargs
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(list_comprehension
(identifier_callback_result) identifier_callback_result
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_state_change) identifier_state_change
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(for_in_clause
(identifier_callback_result) identifier_callback_result
(call
(attribute
(identifier_self) identifier_self
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Update the datastore.
:param func|dict updater: (state) => state_change or dict state_change
:rtype: Iterable[tornado.concurrent.Future] |
(module
(function_definition
(function_name_validateURL) function_name_validateURL
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(identifier_url_parts) identifier_url_parts
(call
(identifier__parseURL) identifier__parseURL
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_url_parts) identifier_url_parts
(None) None
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_proto) identifier_proto
(identifier_host) identifier_host
(identifier_port) identifier_port
(identifier_path) identifier_path
)pattern_list
(identifier_url_parts) identifier_url_parts
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_proto) identifier_proto
(attribute
(identifier_self) identifier_self
(identifier_proto) identifier_proto
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_port) identifier_port
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'*') string_'*'
(identifier_host) identifier_host
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_wildcard) identifier_wildcard
)attribute
)not_operator
(block
(if_statement
(comparison_operator
(identifier_host) identifier_host
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
(elif_clause
(parenthesized_expression
(boolean_operator
(parenthesized_expression
(not_operator
(call
(attribute
(identifier_host) identifier_host
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)argument_list
)call
)not_operator
)parenthesized_expression
(comparison_operator
(parenthesized_expression
(binary_operator
(string_'.') string_'.'
(identifier_host) identifier_host
)binary_operator
)parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path_len) identifier_path_len
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_trust_prefix) identifier_trust_prefix
(subscript
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(slice
(colon) colon
(identifier_path_len) identifier_path_len
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url_prefix) identifier_url_prefix
(subscript
(identifier_path) identifier_path
(slice
(colon) colon
(identifier_path_len) identifier_path_len
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_trust_prefix) identifier_trust_prefix
(identifier_url_prefix) identifier_url_prefix
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'?') string_'?'
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_allowed) identifier_allowed
(string_'&') string_'&'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_allowed) identifier_allowed
(string_'?/') string_'?/'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_allowed) identifier_allowed
)comparison_operator
(comparison_operator
(subscript
(identifier_path) identifier_path
(identifier_path_len) identifier_path_len
)subscript
(identifier_allowed) identifier_allowed
)comparison_operator
)boolean_operator
)parenthesized_expression
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Validates a URL against this trust root.
@param url: The URL to check
@type url: C{str}
@return: Whether the given URL is within this trust root.
@rtype: C{bool} |
(module
(function_definition
(function_name__set_tk_config) function_name__set_tk_config
(parameters
(identifier_self) identifier_self
(identifier_keys) identifier_keys
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_keys) identifier_keys
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(list
(identifier_keys) identifier_keys
)list
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_key) identifier_key
(identifier_keys) identifier_keys
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tk) identifier_tk
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_tk) identifier_tk
)attribute
(identifier_key) identifier_key
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__tk_defaults) identifier__tk_defaults
)attribute
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_tk) identifier_tk
)attribute
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Gets the config from the widget's tk object
:param string/List keys:
The tk config key or a list of tk keys.
:param variable value:
The value to set. If the value is `None`, the config value will be
reset to its default. |
(module
(function_definition
(function_name_get_deep_features) function_name_get_deep_features
(parameters
(identifier_audio_data) identifier_audio_data
(default_parameter
(identifier_verbose) identifier_verbose
(True) True
)default_parameter
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier__audio_feature_extractor) identifier__audio_feature_extractor
)dotted_name
)relative_import
(dotted_name
(identifier__get_feature_extractor) identifier__get_feature_extractor
)dotted_name
)import_from_statement
(if_statement
(not_operator
(call
(identifier__is_audio_data_sarray) identifier__is_audio_data_sarray
(argument_list
(identifier_audio_data) identifier_audio_data
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"Input must be audio data") string_"Input must be audio data"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_feature_extractor_name) identifier_feature_extractor_name
(string_'VGGish') string_'VGGish'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_feature_extractor) identifier_feature_extractor
(call
(identifier__get_feature_extractor) identifier__get_feature_extractor
(argument_list
(identifier_feature_extractor_name) identifier_feature_extractor_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_feature_extractor) identifier_feature_extractor
(identifier_get_deep_features) identifier_get_deep_features
)attribute
(argument_list
(identifier_audio_data) identifier_audio_data
(keyword_argument
(identifier_verbose) identifier_verbose
(identifier_verbose) identifier_verbose
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculates the deep features used by the Sound Classifier.
Internally the Sound Classifier calculates deep features for both model
creation and predictions. If the same data will be used multiple times,
calculating the deep features just once will result in a significant speed
up.
Parameters
----------
audio_data : SArray
Audio data is represented as dicts with key 'data' and 'sample_rate',
see `turicreate.load_audio(...)`.
Examples
--------
>>> my_audio_data['deep_features'] = get_deep_features(my_audio_data['audio'])
>>> train, test = my_audio_data.random_split(.8)
>>> model = tc.sound_classifier.create(train, 'label', 'deep_features')
>>> predictions = model.predict(test) |
(module
(function_definition
(function_name_enable_vt_mode) function_name_enable_vt_mode
(parameters
(default_parameter
(identifier_filehandle) identifier_filehandle
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_filehandle) identifier_filehandle
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_filehandle) identifier_filehandle
(call
(attribute
(identifier_msvcrt) identifier_msvcrt
(identifier_get_osfhandle) identifier_get_osfhandle
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier___stdout__) identifier___stdout__
)attribute
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_current_mode) identifier_current_mode
(call
(attribute
(identifier_wintypes) identifier_wintypes
(identifier_DWORD) identifier_DWORD
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_KERNEL32) identifier_KERNEL32
(identifier_GetConsoleMode) identifier_GetConsoleMode
)attribute
(argument_list
(identifier_filehandle) identifier_filehandle
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_current_mode) identifier_current_mode
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_new_mode) identifier_new_mode
(binary_operator
(integer_0x0004) integer_0x0004
(attribute
(identifier_current_mode) identifier_current_mode
(identifier_value) identifier_value
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_KERNEL32) identifier_KERNEL32
(identifier_SetConsoleMode) identifier_SetConsoleMode
)attribute
(argument_list
(identifier_filehandle) identifier_filehandle
(identifier_new_mode) identifier_new_mode
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Enables virtual terminal processing mode for the given console or stdout |
(module
(function_definition
(function_name_check_function_semantics) function_name_check_function_semantics
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_line) identifier_line
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_position) identifier_position
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_tokens) identifier_tokens
(type
(identifier_ParseResults) identifier_ParseResults
)type
)typed_parameter
)parameters
(type
(identifier_ParseResults) identifier_ParseResults
)type
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__namespace_dict) identifier__namespace_dict
)attribute
)not_operator
(comparison_operator
(identifier_NAMESPACE) identifier_NAMESPACE
(identifier_tokens) identifier_tokens
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_tokens) identifier_tokens
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_namespace) identifier_namespace
(identifier_name) identifier_name
)pattern_list
(expression_list
(subscript
(identifier_tokens) identifier_tokens
(identifier_NAMESPACE) identifier_NAMESPACE
)subscript
(subscript
(identifier_tokens) identifier_tokens
(identifier_NAME) identifier_NAME
)subscript
)expression_list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_namespace) identifier_namespace
(attribute
(attribute
(identifier_self) identifier_self
(identifier_identifier_parser) identifier_identifier_parser
)attribute
(identifier_namespace_to_pattern) identifier_namespace_to_pattern
)attribute
)comparison_operator
(block
(return_statement
(identifier_tokens) identifier_tokens
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__allow_naked_names) identifier__allow_naked_names
)attribute
(comparison_operator
(subscript
(identifier_tokens) identifier_tokens
(identifier_NAMESPACE) identifier_NAMESPACE
)subscript
(identifier_DIRTY) identifier_DIRTY
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_tokens) identifier_tokens
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_valid_functions) identifier_valid_functions
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(attribute
(identifier_itt) identifier_itt
(identifier_chain) identifier_chain
)attribute
(identifier_from_iterable) identifier_from_iterable
)attribute
(generator_expression
(call
(attribute
(identifier_belns_encodings) identifier_belns_encodings
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_k) identifier_k
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_k) identifier_k
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__namespace_dict) identifier__namespace_dict
)attribute
(identifier_namespace) identifier_namespace
)subscript
(identifier_name) identifier_name
)subscript
)for_in_clause
)generator_expression
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_valid_functions) identifier_valid_functions
)not_operator
(block
(raise_statement
(call
(identifier_InvalidEntity) identifier_InvalidEntity
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_line_number) identifier_get_line_number
)attribute
(argument_list
)argument_list
)call
(identifier_line) identifier_line
(identifier_position) identifier_position
(identifier_namespace) identifier_namespace
(identifier_name) identifier_name
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_tokens) identifier_tokens
(identifier_FUNCTION) identifier_FUNCTION
)subscript
(identifier_valid_functions) identifier_valid_functions
)comparison_operator
(block
(raise_statement
(call
(identifier_InvalidFunctionSemantic) identifier_InvalidFunctionSemantic
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_line_number) identifier_get_line_number
)attribute
(argument_list
)argument_list
)call
(identifier_line) identifier_line
(identifier_position) identifier_position
(subscript
(identifier_tokens) identifier_tokens
(identifier_FUNCTION) identifier_FUNCTION
)subscript
(identifier_namespace) identifier_namespace
(identifier_name) identifier_name
(identifier_valid_functions) identifier_valid_functions
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_tokens) identifier_tokens
)return_statement
)block
)function_definition
)module | Raise an exception if the function used on the tokens is wrong.
:raises: InvalidFunctionSemantic |
(module
(function_definition
(function_name_nodes_with_recipe) function_name_nodes_with_recipe
(parameters
(identifier_recipename) identifier_recipename
)parameters
(block
(expression_statement
(assignment
(identifier_nodes) identifier_nodes
(list_comprehension
(subscript
(identifier_n) identifier_n
(string_'name') string_'name'
)subscript
(for_in_clause
(identifier_n) identifier_n
(call
(attribute
(identifier_lib) identifier_lib
(identifier_get_nodes_with_recipe) identifier_get_nodes_with_recipe
)attribute
(argument_list
(identifier_recipename) identifier_recipename
(attribute
(identifier_env) identifier_env
(identifier_chef_environment) identifier_chef_environment
)attribute
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_nodes) identifier_nodes
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"No nodes found with recipe '{0}'") string_"No nodes found with recipe '{0}'"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_recipename) identifier_recipename
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_node) identifier_node
(argument_list
(list_splat
(identifier_nodes) identifier_nodes
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Configures a list of nodes that have the given recipe in their run list |
(module
(function_definition
(function_name_content_id) function_name_content_id
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_UnstructuredHeader) identifier_UnstructuredHeader
)type
)type_parameter
)generic_type
)type
(block
(try_statement
(block
(return_statement
(call
(identifier_cast) identifier_cast
(argument_list
(identifier_UnstructuredHeader) identifier_UnstructuredHeader
(subscript
(subscript
(identifier_self) identifier_self
(string_b'content-id') string_b'content-id'
)subscript
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
(except_clause
(tuple
(identifier_KeyError) identifier_KeyError
(identifier_IndexError) identifier_IndexError
)tuple
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | The ``Content-Id`` header. |
(module
(function_definition
(function_name_ToResponse) function_name_ToResponse
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_columns_order) identifier_columns_order
(None) None
)default_parameter
(default_parameter
(identifier_order_by) identifier_order_by
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_tqx) identifier_tqx
(string_"") string_""
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tqx_dict) identifier_tqx_dict
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_tqx) identifier_tqx
(block
(expression_statement
(assignment
(identifier_tqx_dict) identifier_tqx_dict
(call
(identifier_dict) identifier_dict
(generator_expression
(call
(attribute
(identifier_opt) identifier_opt
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
)argument_list
)call
(for_in_clause
(identifier_opt) identifier_opt
(call
(attribute
(identifier_tqx) identifier_tqx
(identifier_split) identifier_split
)attribute
(argument_list
(string_";") string_";"
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_tqx_dict) identifier_tqx_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_"version") string_"version"
(string_"0.6") string_"0.6"
)argument_list
)call
(string_"0.6") string_"0.6"
)comparison_operator
(block
(raise_statement
(call
(identifier_DataTableException) identifier_DataTableException
(argument_list
(binary_operator
(string_"Version (%s) passed by request is not supported.") string_"Version (%s) passed by request is not supported."
(subscript
(identifier_tqx_dict) identifier_tqx_dict
(string_"version") string_"version"
)subscript
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_tqx_dict) identifier_tqx_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_"out") string_"out"
(string_"json") string_"json"
)argument_list
)call
(string_"json") string_"json"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_response_handler) identifier_response_handler
(call
(attribute
(identifier_tqx_dict) identifier_tqx_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_"responseHandler") string_"responseHandler"
(string_"google.visualization.Query.setResponse") string_"google.visualization.Query.setResponse"
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ToJSonResponse) identifier_ToJSonResponse
)attribute
(argument_list
(identifier_columns_order) identifier_columns_order
(identifier_order_by) identifier_order_by
(keyword_argument
(identifier_req_id) identifier_req_id
(call
(attribute
(identifier_tqx_dict) identifier_tqx_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_"reqId") string_"reqId"
(integer_0) integer_0
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_response_handler) identifier_response_handler
(identifier_response_handler) identifier_response_handler
)keyword_argument
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_tqx_dict) identifier_tqx_dict
(string_"out") string_"out"
)subscript
(string_"html") string_"html"
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ToHtml) identifier_ToHtml
)attribute
(argument_list
(identifier_columns_order) identifier_columns_order
(identifier_order_by) identifier_order_by
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_tqx_dict) identifier_tqx_dict
(string_"out") string_"out"
)subscript
(string_"csv") string_"csv"
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ToCsv) identifier_ToCsv
)attribute
(argument_list
(identifier_columns_order) identifier_columns_order
(identifier_order_by) identifier_order_by
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(subscript
(identifier_tqx_dict) identifier_tqx_dict
(string_"out") string_"out"
)subscript
(string_"tsv-excel") string_"tsv-excel"
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_ToTsvExcel) identifier_ToTsvExcel
)attribute
(argument_list
(identifier_columns_order) identifier_columns_order
(identifier_order_by) identifier_order_by
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_DataTableException) identifier_DataTableException
(argument_list
(binary_operator
(string_"'out' parameter: '%s' is not supported") string_"'out' parameter: '%s' is not supported"
(subscript
(identifier_tqx_dict) identifier_tqx_dict
(string_"out") string_"out"
)subscript
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Writes the right response according to the request string passed in tqx.
This method parses the tqx request string (format of which is defined in
the documentation for implementing a data source of Google Visualization),
and returns the right response according to the request.
It parses out the "out" parameter of tqx, calls the relevant response
(ToJSonResponse() for "json", ToCsv() for "csv", ToHtml() for "html",
ToTsvExcel() for "tsv-excel") and passes the response function the rest of
the relevant request keys.
Args:
columns_order: Optional. Passed as is to the relevant response function.
order_by: Optional. Passed as is to the relevant response function.
tqx: Optional. The request string as received by HTTP GET. Should be in
the format "key1:value1;key2:value2...". All keys have a default
value, so an empty string will just do the default (which is calling
ToJSonResponse() with no extra parameters).
Returns:
A response string, as returned by the relevant response function.
Raises:
DataTableException: One of the parameters passed in tqx is not supported. |
(module
(function_definition
(function_name_dst_to_src) function_name_dst_to_src
(parameters
(identifier_self) identifier_self
(identifier_dst_file) identifier_dst_file
)parameters
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_dst_path) identifier_dst_path
)attribute
(string_"/(.*)$") string_"/(.*)$"
)binary_operator
(identifier_dst_file) identifier_dst_file
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_m) identifier_m
(None) None
)comparison_operator
)parenthesized_expression
(block
(return_statement
(parenthesized_expression
(None) None
)parenthesized_expression
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rel_path) identifier_rel_path
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(return_statement
(parenthesized_expression
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_src_uri) identifier_src_uri
)attribute
(string_'/') string_'/'
)binary_operator
(identifier_rel_path) identifier_rel_path
)binary_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Return the src URI from the dst filepath.
This does not rely on the destination filepath actually
existing on the local filesystem, just on pattern matching.
Return source URI on success, None on failure. |
(module
(function_definition
(function_name_height_max) function_name_height_max
(parameters
(identifier_self) identifier_self
(identifier_height_max) identifier_height_max
)parameters
(block
(if_statement
(comparison_operator
(identifier_height_max) identifier_height_max
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__height_limits) identifier__height_limits
)attribute
(integer_1) integer_1
)subscript
(None) None
)assignment
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_height_max) identifier_height_max
(call
(identifier_float) identifier_float
(argument_list
(identifier_height_max) identifier_height_max
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(parenthesized_expression
(comparison_operator
(integer_0) integer_0
(attribute
(identifier_self) identifier_self
(identifier_height_min) identifier_height_min
)attribute
(identifier_height_max) identifier_height_max
)comparison_operator
)parenthesized_expression
)assert_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__height_limits) identifier__height_limits
)attribute
(integer_1) integer_1
)subscript
(identifier_height_max) identifier_height_max
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__update_layout) identifier__update_layout
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the maximum height of the widget.
Parameters
----------
height_max: None | float
the maximum height of the widget. if None, maximum height
is unbounded |
(module
(function_definition
(function_name_build_conflict_dict) function_name_build_conflict_dict
(parameters
(identifier_key_list) identifier_key_list
(identifier_val_list) identifier_val_list
)parameters
(block
(expression_statement
(assignment
(identifier_key_to_vals) identifier_key_to_vals
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_key_list) identifier_key_list
(identifier_val_list) identifier_val_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(identifier_key_to_vals) identifier_key_to_vals
(identifier_key) identifier_key
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_key_to_vals) identifier_key_to_vals
)return_statement
)block
)function_definition
)module | Builds dict where a list of values is associated with more than one key
Args:
key_list (list):
val_list (list):
Returns:
dict: key_to_vals
CommandLine:
python -m utool.util_dict --test-build_conflict_dict
Example:
>>> # ENABLE_DOCTEST
>>> from utool.util_dict import * # NOQA
>>> import utool as ut
>>> key_list = [ 1, 2, 2, 3, 1]
>>> val_list = ['a', 'b', 'c', 'd', 'e']
>>> key_to_vals = build_conflict_dict(key_list, val_list)
>>> result = ut.repr4(key_to_vals)
>>> print(result)
{
1: ['a', 'e'],
2: ['b', 'c'],
3: ['d'],
} |
(module
(function_definition
(function_name_get_instance_type) function_name_get_instance_type
(parameters
(identifier_self) identifier_self
(identifier_port) identifier_port
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_port) identifier_port
(attribute
(identifier_portbindings) identifier_portbindings
(identifier_VNIC_TYPE) identifier_VNIC_TYPE
)attribute
)subscript
(attribute
(identifier_portbindings) identifier_portbindings
(identifier_VNIC_BAREMETAL) identifier_VNIC_BAREMETAL
)attribute
)comparison_operator
(block
(return_statement
(attribute
(identifier_a_const) identifier_a_const
(identifier_BAREMETAL_RESOURCE) identifier_BAREMETAL_RESOURCE
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_owner_to_type) identifier_owner_to_type
(dictionary
(pair
(attribute
(identifier_n_const) identifier_n_const
(identifier_DEVICE_OWNER_DHCP) identifier_DEVICE_OWNER_DHCP
)attribute
(attribute
(identifier_a_const) identifier_a_const
(identifier_DHCP_RESOURCE) identifier_DHCP_RESOURCE
)attribute
)pair
(pair
(attribute
(identifier_n_const) identifier_n_const
(identifier_DEVICE_OWNER_DVR_INTERFACE) identifier_DEVICE_OWNER_DVR_INTERFACE
)attribute
(attribute
(identifier_a_const) identifier_a_const
(identifier_ROUTER_RESOURCE) identifier_ROUTER_RESOURCE
)attribute
)pair
(pair
(attribute
(identifier_trunk_consts) identifier_trunk_consts
(identifier_TRUNK_SUBPORT_OWNER) identifier_TRUNK_SUBPORT_OWNER
)attribute
(attribute
(identifier_a_const) identifier_a_const
(identifier_VM_RESOURCE) identifier_VM_RESOURCE
)attribute
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_port) identifier_port
(string_'device_owner') string_'device_owner'
)subscript
(call
(attribute
(identifier_owner_to_type) identifier_owner_to_type
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(subscript
(identifier_owner_to_type) identifier_owner_to_type
(subscript
(identifier_port) identifier_port
(string_'device_owner') string_'device_owner'
)subscript
)subscript
)return_statement
)block
(elif_clause
(call
(attribute
(subscript
(identifier_port) identifier_port
(string_'device_owner') string_'device_owner'
)subscript
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(attribute
(identifier_n_const) identifier_n_const
(identifier_DEVICE_OWNER_COMPUTE_PREFIX) identifier_DEVICE_OWNER_COMPUTE_PREFIX
)attribute
)argument_list
)call
(block
(return_statement
(attribute
(identifier_a_const) identifier_a_const
(identifier_VM_RESOURCE) identifier_VM_RESOURCE
)attribute
)return_statement
)block
)elif_clause
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Determine the port type based on device owner and vnic type |
(module
(function_definition
(function_name_add_param) function_name_add_param
(parameters
(identifier_self) identifier_self
(identifier_param_name) identifier_param_name
(identifier_layer_index) identifier_layer_index
(identifier_blob_index) identifier_blob_index
)parameters
(block
(expression_statement
(assignment
(identifier_blobs) identifier_blobs
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layers) identifier_layers
)attribute
(identifier_layer_index) identifier_layer_index
)subscript
(identifier_blobs) identifier_blobs
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_dict_param) identifier_dict_param
)attribute
(identifier_param_name) identifier_param_name
)subscript
(call
(attribute
(attribute
(identifier_mx) identifier_mx
(identifier_nd) identifier_nd
)attribute
(identifier_array) identifier_array
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_caffe) identifier_caffe
(identifier_io) identifier_io
)attribute
(identifier_blobproto_to_array) identifier_blobproto_to_array
)attribute
(argument_list
(subscript
(identifier_blobs) identifier_blobs
(identifier_blob_index) identifier_blob_index
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Add a param to the .params file |
(module
(function_definition
(function_name_get_taf_remarks) function_name_get_taf_remarks
(parameters
(typed_parameter
(identifier_txt) identifier_txt
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(tuple
(identifier_str) identifier_str
(identifier_str) identifier_str
)tuple
)type
(block
(expression_statement
(assignment
(identifier_remarks_start) identifier_remarks_start
(call
(identifier_find_first_in_list) identifier_find_first_in_list
(argument_list
(identifier_txt) identifier_txt
(identifier_TAF_RMK) identifier_TAF_RMK
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_remarks_start) identifier_remarks_start
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
(expression_list
(identifier_txt) identifier_txt
(string_'') string_''
)expression_list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_remarks) identifier_remarks
(subscript
(identifier_txt) identifier_txt
(slice
(identifier_remarks_start) identifier_remarks_start
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_txt) identifier_txt
(call
(attribute
(subscript
(identifier_txt) identifier_txt
(slice
(colon) colon
(identifier_remarks_start) identifier_remarks_start
)slice
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_txt) identifier_txt
(identifier_remarks) identifier_remarks
)expression_list
)return_statement
)block
)function_definition
)module | Returns report and remarks separated if found |
(module
(function_definition
(function_name_raw_connection_from) function_name_raw_connection_from
(parameters
(identifier_engine_or_conn) identifier_engine_or_conn
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_engine_or_conn) identifier_engine_or_conn
(string_'cursor') string_'cursor'
)argument_list
)call
(block
(return_statement
(expression_list
(identifier_engine_or_conn) identifier_engine_or_conn
(False) False
)expression_list
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_engine_or_conn) identifier_engine_or_conn
(string_'connection') string_'connection'
)argument_list
)call
(block
(return_statement
(expression_list
(attribute
(identifier_engine_or_conn) identifier_engine_or_conn
(identifier_connection) identifier_connection
)attribute
(False) False
)expression_list
)return_statement
)block
)if_statement
(return_statement
(expression_list
(call
(attribute
(identifier_engine_or_conn) identifier_engine_or_conn
(identifier_raw_connection) identifier_raw_connection
)attribute
(argument_list
)argument_list
)call
(True) True
)expression_list
)return_statement
)block
)function_definition
)module | Extract a raw_connection and determine if it should be automatically closed.
Only connections opened by this package will be closed automatically. |
(module
(function_definition
(function_name__update_log_record) function_name__update_log_record
(parameters
(identifier_self) identifier_self
(identifier_record) identifier_record
)parameters
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_record) identifier_record
(string_'hostname') string_'hostname'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_hostname) identifier_hostname
)attribute
(string_'-') string_'-'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_record) identifier_record
(string_'job_id') string_'job_id'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_record) identifier_record
(identifier_job_id) identifier_job_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_job_id) identifier_job_id
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Massage a log record before emitting it. Intended to be used by the
custom log handlers defined in this module. |
(module
(function_definition
(function_name___add_recent_file) function_name___add_recent_file
(parameters
(identifier_self) identifier_self
(identifier_fname) identifier_fname
)parameters
(block
(if_statement
(comparison_operator
(identifier_fname) identifier_fname
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_fname) identifier_fname
(attribute
(identifier_self) identifier_self
(identifier_recent_files) identifier_recent_files
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recent_files) identifier_recent_files
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recent_files) identifier_recent_files
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(identifier_fname) identifier_fname
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_recent_files) identifier_recent_files
)attribute
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'max_recent_files') string_'max_recent_files'
)argument_list
)call
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recent_files) identifier_recent_files
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Add to recent file list |
(module
(function_definition
(function_name_download_safe_format) function_name_download_safe_format
(parameters
(default_parameter
(identifier_product_id) identifier_product_id
(None) None
)default_parameter
(default_parameter
(identifier_tile) identifier_tile
(None) None
)default_parameter
(default_parameter
(identifier_folder) identifier_folder
(string_'.') string_'.'
)default_parameter
(default_parameter
(identifier_redownload) identifier_redownload
(False) False
)default_parameter
(default_parameter
(identifier_entire_product) identifier_entire_product
(False) False
)default_parameter
(default_parameter
(identifier_bands) identifier_bands
(None) None
)default_parameter
(default_parameter
(identifier_data_source) identifier_data_source
(attribute
(identifier_DataSource) identifier_DataSource
(identifier_SENTINEL2_L1C) identifier_SENTINEL2_L1C
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_entire_product) identifier_entire_product
(boolean_operator
(identifier_entire_product) identifier_entire_product
(comparison_operator
(identifier_product_id) identifier_product_id
(None) None
)comparison_operator
)boolean_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tile) identifier_tile
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_safe_request) identifier_safe_request
(call
(identifier_AwsTileRequest) identifier_AwsTileRequest
(argument_list
(keyword_argument
(identifier_tile) identifier_tile
(subscript
(identifier_tile) identifier_tile
(integer_0) integer_0
)subscript
)keyword_argument
(keyword_argument
(identifier_time) identifier_time
(subscript
(identifier_tile) identifier_tile
(integer_1) integer_1
)subscript
)keyword_argument
(keyword_argument
(identifier_data_folder) identifier_data_folder
(identifier_folder) identifier_folder
)keyword_argument
(keyword_argument
(identifier_bands) identifier_bands
(identifier_bands) identifier_bands
)keyword_argument
(keyword_argument
(identifier_safe_format) identifier_safe_format
(True) True
)keyword_argument
(keyword_argument
(identifier_data_source) identifier_data_source
(identifier_data_source) identifier_data_source
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_entire_product) identifier_entire_product
(block
(expression_statement
(assignment
(identifier_safe_tile) identifier_safe_tile
(call
(attribute
(identifier_safe_request) identifier_safe_request
(identifier_get_aws_service) identifier_get_aws_service
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_product_id) identifier_product_id
(call
(attribute
(identifier_safe_tile) identifier_safe_tile
(identifier_get_product_id) identifier_get_product_id
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_product_id) identifier_product_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_safe_request) identifier_safe_request
(conditional_expression
(call
(identifier_AwsProductRequest) identifier_AwsProductRequest
(argument_list
(identifier_product_id) identifier_product_id
(keyword_argument
(identifier_tile_list) identifier_tile_list
(list
(subscript
(identifier_tile) identifier_tile
(integer_0) integer_0
)subscript
)list
)keyword_argument
(keyword_argument
(identifier_data_folder) identifier_data_folder
(identifier_folder) identifier_folder
)keyword_argument
(keyword_argument
(identifier_bands) identifier_bands
(identifier_bands) identifier_bands
)keyword_argument
(keyword_argument
(identifier_safe_format) identifier_safe_format
(True) True
)keyword_argument
)argument_list
)call
(identifier_entire_product) identifier_entire_product
(line_continuation_\) line_continuation_\
(call
(identifier_AwsProductRequest) identifier_AwsProductRequest
(argument_list
(identifier_product_id) identifier_product_id
(keyword_argument
(identifier_data_folder) identifier_data_folder
(identifier_folder) identifier_folder
)keyword_argument
(keyword_argument
(identifier_bands) identifier_bands
(identifier_bands) identifier_bands
)keyword_argument
(keyword_argument
(identifier_safe_format) identifier_safe_format
(True) True
)keyword_argument
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_safe_request) identifier_safe_request
(identifier_save_data) identifier_save_data
)attribute
(argument_list
(keyword_argument
(identifier_redownload) identifier_redownload
(identifier_redownload) identifier_redownload
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Downloads .SAFE format structure in form of nested dictionaries. Either ``product_id`` or ``tile`` must
be specified.
:param product_id: original ESA product identification string. Default is ``None``
:type product_id: str
:param tile: tuple containing tile name and sensing time/date. Default is ``None``
:type tile: (str, str)
:param folder: location of the directory where the fetched data will be saved. Default is ``'.'``
:type folder: str
:param redownload: if ``True``, download again the requested data even though it's already saved to disk. If
``False``, do not download if data is already available on disk. Default is ``False``
:type redownload: bool
:param entire_product: in case tile is specified this flag determines if it will be place inside a .SAFE structure
of the product. Default is ``False``
:type entire_product: bool
:param bands: list of bands to download. If ``None`` all bands will be downloaded. Default is ``None``
:type bands: list(str) or None
:param data_source: In case of tile request the source of satellite data has to be specified. Default is Sentinel-2
L1C data.
:type data_source: constants.DataSource
:return: Nested dictionaries representing .SAFE structure.
:rtype: dict |
(module
(function_definition
(function_name__check_choices_attribute) function_name__check_choices_attribute
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_choices) identifier_choices
)attribute
(block
(expression_statement
(assignment
(identifier_warning_params) identifier_warning_params
(dictionary
(pair
(string_'msg') string_'msg'
(parenthesized_expression
(concatenated_string
(string_"'choices' contains an invalid time zone value '{value}' ") string_"'choices' contains an invalid time zone value '{value}' "
(string_"which was not found as a supported time zone by pytz ") string_"which was not found as a supported time zone by pytz "
(string_"{version}.") string_"{version}."
)concatenated_string
)parenthesized_expression
)pair
(pair
(string_'hint') string_'hint'
(string_"Values must be found in pytz.all_timezones.") string_"Values must be found in pytz.all_timezones."
)pair
(pair
(string_'obj') string_'obj'
(identifier_self) identifier_self
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_option_key) identifier_option_key
(identifier_option_value) identifier_option_value
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier_choices) identifier_choices
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_option_value) identifier_option_value
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)argument_list
)call
(block
(for_statement
(identifier_optgroup_key) identifier_optgroup_key
(call
(identifier_map) identifier_map
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_x) identifier_x
(integer_0) integer_0
)subscript
)lambda
(identifier_option_value) identifier_option_value
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_optgroup_key) identifier_optgroup_key
(attribute
(identifier_pytz) identifier_pytz
(identifier_all_timezones) identifier_all_timezones
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_optgroup_key) identifier_optgroup_key
(attribute
(identifier_self) identifier_self
(identifier_empty_values) identifier_empty_values
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_warning_params) identifier_warning_params
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'msg') string_'msg'
(call
(attribute
(subscript
(identifier_warning_params) identifier_warning_params
(string_'msg') string_'msg'
)subscript
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_value) identifier_value
(identifier_optgroup_key) identifier_optgroup_key
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(attribute
(identifier_pytz) identifier_pytz
(identifier_VERSION) identifier_VERSION
)attribute
)keyword_argument
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(list
(call
(attribute
(identifier_checks) identifier_checks
(identifier_Warning) identifier_Warning
)attribute
(argument_list
(dictionary_splat
(identifier_warning_params) identifier_warning_params
)dictionary_splat
)argument_list
)call
)list
)return_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
(elif_clause
(comparison_operator
(identifier_option_key) identifier_option_key
(attribute
(identifier_pytz) identifier_pytz
(identifier_all_timezones) identifier_all_timezones
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_option_key) identifier_option_key
(attribute
(identifier_self) identifier_self
(identifier_empty_values) identifier_empty_values
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_warning_params) identifier_warning_params
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'msg') string_'msg'
(call
(attribute
(subscript
(identifier_warning_params) identifier_warning_params
(string_'msg') string_'msg'
)subscript
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_value) identifier_value
(identifier_option_key) identifier_option_key
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(attribute
(identifier_pytz) identifier_pytz
(identifier_VERSION) identifier_VERSION
)attribute
)keyword_argument
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(list
(call
(attribute
(identifier_checks) identifier_checks
(identifier_Warning) identifier_Warning
)attribute
(argument_list
(dictionary_splat
(identifier_warning_params) identifier_warning_params
)dictionary_splat
)argument_list
)call
)list
)return_statement
)block
)if_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(list
)list
)return_statement
)block
)function_definition
)module | Checks to make sure that choices contains valid timezone choices. |
(module
(function_definition
(function_name_cookie) function_name_cookie
(parameters
(identifier_url) identifier_url
(identifier_name) identifier_name
(identifier_value) identifier_value
(default_parameter
(identifier_expires) identifier_expires
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_u) identifier_u
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_domain) identifier_domain
(attribute
(identifier_u) identifier_u
(identifier_hostname) identifier_hostname
)attribute
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'.') string_'.'
(identifier_domain) identifier_domain
)comparison_operator
(not_operator
(call
(identifier__is_ip_addr) identifier__is_ip_addr
(argument_list
(identifier_domain) identifier_domain
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_domain) identifier_domain
(string_".local") string_".local"
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_port) identifier_port
(conditional_expression
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_u) identifier_u
(identifier_port) identifier_port
)attribute
)argument_list
)call
(comparison_operator
(attribute
(identifier_u) identifier_u
(identifier_port) identifier_port
)attribute
(None) None
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_secure) identifier_secure
(comparison_operator
(attribute
(identifier_u) identifier_u
(identifier_scheme) identifier_scheme
)attribute
(string_'https') string_'https'
)comparison_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_expires) identifier_expires
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_expires) identifier_expires
(identifier_tzinfo) identifier_tzinfo
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Cookie expiration must be a naive datetime') string_'Cookie expiration must be a naive datetime'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_expires) identifier_expires
(call
(attribute
(parenthesized_expression
(binary_operator
(identifier_expires) identifier_expires
(call
(identifier_datetime) identifier_datetime
(argument_list
(integer_1970) integer_1970
(integer_1) integer_1
(integer_1) integer_1
)argument_list
)call
)binary_operator
)parenthesized_expression
(identifier_total_seconds) identifier_total_seconds
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_http_cookiejar) identifier_http_cookiejar
(identifier_Cookie) identifier_Cookie
)attribute
(argument_list
(keyword_argument
(identifier_version) identifier_version
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_value) identifier_value
(identifier_value) identifier_value
)keyword_argument
(keyword_argument
(identifier_port) identifier_port
(identifier_port) identifier_port
)keyword_argument
(keyword_argument
(identifier_port_specified) identifier_port_specified
(comparison_operator
(identifier_port) identifier_port
(None) None
)comparison_operator
)keyword_argument
(keyword_argument
(identifier_domain) identifier_domain
(identifier_domain) identifier_domain
)keyword_argument
(keyword_argument
(identifier_domain_specified) identifier_domain_specified
(True) True
)keyword_argument
(keyword_argument
(identifier_domain_initial_dot) identifier_domain_initial_dot
(False) False
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_u) identifier_u
(identifier_path) identifier_path
)attribute
)keyword_argument
(keyword_argument
(identifier_path_specified) identifier_path_specified
(True) True
)keyword_argument
(keyword_argument
(identifier_secure) identifier_secure
(identifier_secure) identifier_secure
)keyword_argument
(keyword_argument
(identifier_expires) identifier_expires
(identifier_expires) identifier_expires
)keyword_argument
(keyword_argument
(identifier_discard) identifier_discard
(False) False
)keyword_argument
(keyword_argument
(identifier_comment) identifier_comment
(None) None
)keyword_argument
(keyword_argument
(identifier_comment_url) identifier_comment_url
(None) None
)keyword_argument
(keyword_argument
(identifier_rest) identifier_rest
(None) None
)keyword_argument
(keyword_argument
(identifier_rfc2109) identifier_rfc2109
(False) False
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a new Cookie using a slightly more
friendly API than that provided by six.moves.http_cookiejar
@param name The cookie name {str}
@param value The cookie value {str}
@param url The URL path of the cookie {str}
@param expires The expiry time of the cookie {datetime}. If provided,
it must be a naive timestamp in UTC. |
(module
(function_definition
(function_name_convert_tensor_float_to_float16) function_name_convert_tensor_float_to_float16
(parameters
(identifier_tensor) identifier_tensor
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_tensor) identifier_tensor
(attribute
(identifier_onnx_proto) identifier_onnx_proto
(identifier_TensorProto) identifier_TensorProto
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Expected input type is an ONNX TensorProto but got %s') string_'Expected input type is an ONNX TensorProto but got %s'
(call
(identifier_type) identifier_type
(argument_list
(identifier_tensor) identifier_tensor
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_tensor) identifier_tensor
(identifier_data_type) identifier_data_type
)attribute
(attribute
(attribute
(identifier_onnx_proto) identifier_onnx_proto
(identifier_TensorProto) identifier_TensorProto
)attribute
(identifier_FLOAT) identifier_FLOAT
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_tensor) identifier_tensor
(identifier_data_type) identifier_data_type
)attribute
(attribute
(attribute
(identifier_onnx_proto) identifier_onnx_proto
(identifier_TensorProto) identifier_TensorProto
)attribute
(identifier_FLOAT16) identifier_FLOAT16
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_tensor) identifier_tensor
(identifier_float_data) identifier_float_data
)attribute
(block
(expression_statement
(assignment
(identifier_int_list) identifier_int_list
(call
(identifier__npfloat16_to_int) identifier__npfloat16_to_int
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_float16) identifier_float16
)attribute
(argument_list
(attribute
(identifier_tensor) identifier_tensor
(identifier_float_data) identifier_float_data
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_tensor) identifier_tensor
(identifier_int32_data) identifier_int32_data
)attribute
(slice
(colon) colon
)slice
)subscript
(identifier_int_list) identifier_int_list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_tensor) identifier_tensor
(identifier_float_data) identifier_float_data
)attribute
(slice
(colon) colon
)slice
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_tensor) identifier_tensor
(identifier_raw_data) identifier_raw_data
)attribute
(block
(expression_statement
(assignment
(identifier_float32_list) identifier_float32_list
(call
(attribute
(identifier_np) identifier_np
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(attribute
(identifier_tensor) identifier_tensor
(identifier_raw_data) identifier_raw_data
)attribute
(keyword_argument
(identifier_dtype) identifier_dtype
(string_'float32') string_'float32'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_float16_list) identifier_float16_list
(call
(attribute
(identifier_np) identifier_np
(identifier_float16) identifier_float16
)attribute
(argument_list
(identifier_float32_list) identifier_float32_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_tensor) identifier_tensor
(identifier_raw_data) identifier_raw_data
)attribute
(call
(attribute
(identifier_float16_list) identifier_float16_list
(identifier_tostring) identifier_tostring
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_tensor) identifier_tensor
)return_statement
)block
)function_definition
)module | Convert tensor float to float16.
:param tensor: TensorProto object
:return tensor_float16: converted TensorProto object
Example:
::
from onnxmltools.utils.float16_converter import convert_tensor_float_to_float16
new_tensor = convert_tensor_float_to_float16(tensor) |
(module
(function_definition
(function_name_get_distance) function_name_get_distance
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(assignment
(identifier_delta) identifier_delta
(tuple
(binary_operator
(subscript
(attribute
(identifier_node) identifier_node
(identifier_pos) identifier_pos
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(integer_0) integer_0
)subscript
)binary_operator
(binary_operator
(subscript
(attribute
(identifier_node) identifier_node
(identifier_pos) identifier_pos
)attribute
(integer_1) integer_1
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(integer_1) integer_1
)subscript
)binary_operator
)tuple
)assignment
)expression_statement
(return_statement
(call
(identifier_sqrt) identifier_sqrt
(argument_list
(binary_operator
(binary_operator
(subscript
(identifier_delta) identifier_delta
(integer_0) integer_0
)subscript
(integer_2) integer_2
)binary_operator
(binary_operator
(subscript
(identifier_delta) identifier_delta
(integer_1) integer_1
)subscript
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the distance beetween 2 nodes
Args:
node (object): The other node. |
(module
(function_definition
(function_name_portfolio) function_name_portfolio
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_PortfolioItem) identifier_PortfolioItem
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_account) identifier_account
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapper) identifier_wrapper
)attribute
(identifier_accounts) identifier_accounts
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(list_comprehension
(identifier_v) identifier_v
(for_in_clause
(identifier_v) identifier_v
(call
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapper) identifier_wrapper
)attribute
(identifier_portfolio) identifier_portfolio
)attribute
(identifier_account) identifier_account
)subscript
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | List of portfolio items of the default account. |
(module
(function_definition
(function_name__is_homogeneous_type) function_name__is_homogeneous_type
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_any_extension_types) identifier_any_extension_types
)attribute
(block
(return_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(set_comprehension
(attribute
(identifier_block) identifier_block
(identifier_dtype) identifier_dtype
)attribute
(for_in_clause
(identifier_block) identifier_block
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_blocks) identifier_blocks
)attribute
)for_in_clause
)set_comprehension
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)return_statement
)block
(else_clause
(block
(return_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_is_mixed_type) identifier_is_mixed_type
)attribute
)not_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Whether all the columns in a DataFrame have the same type.
Returns
-------
bool
Examples
--------
>>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type
True
>>> DataFrame({"A": [1, 2], "B": [3.0, 4.0]})._is_homogeneous_type
False
Items with the same type but different sizes are considered
different types.
>>> DataFrame({
... "A": np.array([1, 2], dtype=np.int32),
... "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous_type
False |
(module
(function_definition
(function_name_jsk_retain) function_name_jsk_retain
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_ctx) identifier_ctx
(type
(attribute
(identifier_commands) identifier_commands
(identifier_Context) identifier_Context
)attribute
)type
)typed_parameter
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_toggle) identifier_toggle
(type
(identifier_bool) identifier_bool
)type
(None) None
)typed_default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_toggle) identifier_toggle
(None) None
)comparison_operator
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_retain) identifier_retain
)attribute
(block
(return_statement
(await
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_send) identifier_send
)attribute
(argument_list
(string_"Variable retention is set to ON.") string_"Variable retention is set to ON."
)argument_list
)call
)await
)return_statement
)block
)if_statement
(return_statement
(await
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_send) identifier_send
)attribute
(argument_list
(string_"Variable retention is set to OFF.") string_"Variable retention is set to OFF."
)argument_list
)call
)await
)return_statement
)block
)if_statement
(if_statement
(identifier_toggle) identifier_toggle
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_retain) identifier_retain
)attribute
(block
(return_statement
(await
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_send) identifier_send
)attribute
(argument_list
(string_"Variable retention is already set to ON.") string_"Variable retention is already set to ON."
)argument_list
)call
)await
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_retain) identifier_retain
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__scope) identifier__scope
)attribute
(call
(identifier_Scope) identifier_Scope
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(await
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_send) identifier_send
)attribute
(argument_list
(string_"Variable retention is ON. Future REPL sessions will retain their scope.") string_"Variable retention is ON. Future REPL sessions will retain their scope."
)argument_list
)call
)await
)return_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_retain) identifier_retain
)attribute
)not_operator
(block
(return_statement
(await
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_send) identifier_send
)attribute
(argument_list
(string_"Variable retention is already set to OFF.") string_"Variable retention is already set to OFF."
)argument_list
)call
)await
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_retain) identifier_retain
)attribute
(False) False
)assignment
)expression_statement
(return_statement
(await
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_send) identifier_send
)attribute
(argument_list
(string_"Variable retention is OFF. Future REPL sessions will dispose their scope when done.") string_"Variable retention is OFF. Future REPL sessions will dispose their scope when done."
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | Turn variable retention for REPL on or off.
Provide no argument for current status. |
(module
(function_definition
(function_name_load_json) function_name_load_json
(parameters
(identifier_file) identifier_file
(default_parameter
(identifier_new_root_dir) identifier_new_root_dir
(None) None
)default_parameter
(default_parameter
(identifier_decompression) identifier_decompression
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_decompression) identifier_decompression
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file) identifier_file
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_my_object) identifier_my_object
(call
(identifier_load) identifier_load
(argument_list
(identifier_f) identifier_f
(keyword_argument
(identifier_decompression) identifier_decompression
(identifier_decompression) identifier_decompression
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file) identifier_file
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_my_object) identifier_my_object
(call
(identifier_load) identifier_load
(argument_list
(identifier_f) identifier_f
(keyword_argument
(identifier_decompression) identifier_decompression
(identifier_decompression) identifier_decompression
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_new_root_dir) identifier_new_root_dir
(block
(expression_statement
(assignment
(attribute
(identifier_my_object) identifier_my_object
(identifier_root_dir) identifier_root_dir
)attribute
(identifier_new_root_dir) identifier_new_root_dir
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_my_object) identifier_my_object
)return_statement
)block
)function_definition
)module | Load a JSON file using json_tricks |
(module
(function_definition
(function_name__os_dispatch) function_name__os_dispatch
(parameters
(identifier_func) identifier_func
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier___grains__) identifier___grains__
(string_'kernel') string_'kernel'
)subscript
(identifier_SUPPORTED_BSD_LIKE) identifier_SUPPORTED_BSD_LIKE
)comparison_operator
(block
(expression_statement
(assignment
(identifier_kernel) identifier_kernel
(string_'bsd') string_'bsd'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_kernel) identifier_kernel
(call
(attribute
(subscript
(identifier___grains__) identifier___grains__
(string_'kernel') string_'kernel'
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier__os_func) identifier__os_func
(call
(identifier_getattr) identifier_getattr
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_modules) identifier_modules
)attribute
(identifier___name__) identifier___name__
)subscript
(call
(attribute
(string_'_{0}_{1}') string_'_{0}_{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_kernel) identifier_kernel
(identifier_func) identifier_func
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier__os_func) identifier__os_func
)argument_list
)call
(block
(return_statement
(call
(identifier__os_func) identifier__os_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Internal, dispatches functions by operating system |
(module
(function_definition
(function_name_unpack) function_name_unpack
(parameters
(identifier_d) identifier_d
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(attribute
(identifier_SBP) identifier_SBP
(identifier__parser) identifier__parser
)attribute
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(attribute
(identifier_p) identifier_p
(identifier_preamble) identifier_preamble
)attribute
(identifier_SBP_PREAMBLE) identifier_SBP_PREAMBLE
)comparison_operator
(binary_operator
(string_"Invalid preamble 0x%x.") string_"Invalid preamble 0x%x."
(attribute
(identifier_p) identifier_p
(identifier_preamble) identifier_preamble
)attribute
)binary_operator
)assert_statement
(return_statement
(call
(identifier_SBP) identifier_SBP
(argument_list
(attribute
(identifier_p) identifier_p
(identifier_msg_type) identifier_msg_type
)attribute
(attribute
(identifier_p) identifier_p
(identifier_sender) identifier_sender
)attribute
(attribute
(identifier_p) identifier_p
(identifier_length) identifier_length
)attribute
(attribute
(identifier_p) identifier_p
(identifier_payload) identifier_payload
)attribute
(attribute
(identifier_p) identifier_p
(identifier_crc) identifier_crc
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Unpack and return a framed binary message. |
(module
(function_definition
(function_name_create_permissao_administrativa) function_name_create_permissao_administrativa
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_PermissaoAdministrativa) identifier_PermissaoAdministrativa
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_networkapi_url) identifier_networkapi_url
)attribute
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
(attribute
(identifier_self) identifier_self
(identifier_user_ldap) identifier_user_ldap
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get an instance of permissao_administrativa services facade. |
(module
(function_definition
(function_name_dependencies_order_of_build) function_name_dependencies_order_of_build
(parameters
(identifier_target_contract) identifier_target_contract
(identifier_dependencies_map) identifier_dependencies_map
)parameters
(block
(if_statement
(not_operator
(identifier_dependencies_map) identifier_dependencies_map
)not_operator
(block
(return_statement
(list
(identifier_target_contract) identifier_target_contract
)list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_target_contract) identifier_target_contract
(identifier_dependencies_map) identifier_dependencies_map
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'no dependencies defined for {}') string_'no dependencies defined for {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_target_contract) identifier_target_contract
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_order) identifier_order
(list
(identifier_target_contract) identifier_target_contract
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_todo) identifier_todo
(call
(identifier_list) identifier_list
(argument_list
(subscript
(identifier_dependencies_map) identifier_dependencies_map
(identifier_target_contract) identifier_target_contract
)subscript
)argument_list
)call
)assignment
)expression_statement
(while_statement
(identifier_todo) identifier_todo
(block
(expression_statement
(assignment
(identifier_target_contract) identifier_target_contract
(call
(attribute
(identifier_todo) identifier_todo
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target_pos) identifier_target_pos
(call
(identifier_len) identifier_len
(argument_list
(identifier_order) identifier_order
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_dependency) identifier_dependency
(subscript
(identifier_dependencies_map) identifier_dependencies_map
(identifier_target_contract) identifier_target_contract
)subscript
(block
(if_statement
(comparison_operator
(identifier_dependency) identifier_dependency
(identifier_order) identifier_order
)comparison_operator
(block
(expression_statement
(assignment
(identifier_target_pos) identifier_target_pos
(call
(attribute
(identifier_order) identifier_order
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_dependency) identifier_dependency
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_todo) identifier_todo
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_dependency) identifier_dependency
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_order) identifier_order
(identifier_insert) identifier_insert
)attribute
(argument_list
(identifier_target_pos) identifier_target_pos
(identifier_target_contract) identifier_target_contract
)argument_list
)call
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_order) identifier_order
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_order) identifier_order
)return_statement
)block
)function_definition
)module | Return an ordered list of contracts that is sufficient to successfully
deploy the target contract.
Note:
This function assumes that the `dependencies_map` is an acyclic graph. |
(module
(function_definition
(function_name_get_nexusport_binding) function_name_get_nexusport_binding
(parameters
(identifier_port_id) identifier_port_id
(identifier_vlan_id) identifier_vlan_id
(identifier_switch_ip) identifier_switch_ip
(identifier_instance_id) identifier_instance_id
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"get_nexusport_binding() called") string_"get_nexusport_binding() called"
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier__lookup_all_nexus_bindings) identifier__lookup_all_nexus_bindings
(argument_list
(keyword_argument
(identifier_port_id) identifier_port_id
(identifier_port_id) identifier_port_id
)keyword_argument
(keyword_argument
(identifier_vlan_id) identifier_vlan_id
(identifier_vlan_id) identifier_vlan_id
)keyword_argument
(keyword_argument
(identifier_switch_ip) identifier_switch_ip
(identifier_switch_ip) identifier_switch_ip
)keyword_argument
(keyword_argument
(identifier_instance_id) identifier_instance_id
(identifier_instance_id) identifier_instance_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Lists a nexusport binding. |
(module
(function_definition
(function_name_pubsub_pub) function_name_pubsub_pub
(parameters
(identifier_self) identifier_self
(identifier_topic) identifier_topic
(identifier_payload) identifier_payload
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(tuple
(identifier_topic) identifier_topic
(identifier_payload) identifier_payload
)tuple
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'/pubsub/pub') string_'/pubsub/pub'
(identifier_args) identifier_args
(keyword_argument
(identifier_decoder) identifier_decoder
(string_'json') string_'json'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Publish a message to a given pubsub topic
Publishing will publish the given payload (string) to
everyone currently subscribed to the given topic.
All data (including the id of the publisher) is automatically
base64 encoded when published.
.. code-block:: python
# publishes the message 'message' to the topic 'hello'
>>> c.pubsub_pub('hello', 'message')
[]
Parameters
----------
topic : str
Topic to publish to
payload : Data to be published to the given topic
Returns
-------
list : empty list |
(module
(function_definition
(function_name_add_config_paths) function_name_add_config_paths
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_path) identifier_path
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'Configuration file "{}" does not exist') string_'Configuration file "{}" does not exist'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_k) identifier_k
(call
(attribute
(identifier_cf) identifier_cf
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'config_paths') string_'config_paths'
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'Configuration {!r} already exists') string_'Configuration {!r} already exists'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary_splat
(call
(attribute
(identifier_cf) identifier_cf
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'config_paths') string_'config_paths'
)argument_list
)call
)dictionary_splat
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cf) identifier_cf
(identifier_set_option) identifier_set_option
)attribute
(argument_list
(string_'config_paths') string_'config_paths'
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add to the pool of available configuration files for BIDSLayout.
Args:
kwargs: dictionary specifying where to find additional config files.
Keys are names, values are paths to the corresponding .json file.
Example:
> add_config_paths(my_config='/path/to/config')
> layout = BIDSLayout('/path/to/bids', config=['bids', 'my_config']) |
(module
(function_definition
(function_name__write_to_command_buffer) function_name__write_to_command_buffer
(parameters
(identifier_self) identifier_self
(identifier_to_write) identifier_to_write
)parameters
(block
(expression_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_copyto) identifier_copyto
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__command_bool_ptr) identifier__command_bool_ptr
)attribute
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_to_write) identifier_to_write
(string_'0') string_'0'
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_input_bytes) identifier_input_bytes
(call
(attribute
(identifier_str) identifier_str
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_to_write) identifier_to_write
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_val) identifier_val
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_input_bytes) identifier_input_bytes
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__command_buffer_ptr) identifier__command_buffer_ptr
)attribute
(identifier_index) identifier_index
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Write input to the command buffer. Reformat input string to the correct format.
Args:
to_write (str): The string to write to the command buffer. |
(module
(function_definition
(function_name__is_replacement_allowed) function_name__is_replacement_allowed
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
)parameters
(block
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(comparison_operator
(identifier_tag) identifier_tag
(attribute
(identifier_s) identifier_s
(identifier_parent_tags) identifier_parent_tags
)attribute
)comparison_operator
(for_in_clause
(identifier_tag) identifier_tag
(attribute
(identifier_self) identifier_self
(identifier_skipped_tags) identifier_skipped_tags
)attribute
)for_in_clause
)generator_expression
)call
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(comparison_operator
(identifier_tag) identifier_tag
(attribute
(identifier_self) identifier_self
(identifier_textflow_tags) identifier_textflow_tags
)attribute
)comparison_operator
(for_in_clause
(identifier_tag) identifier_tag
(attribute
(identifier_s) identifier_s
(identifier_involved_tags) identifier_involved_tags
)attribute
)for_in_clause
)generator_expression
)call
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Tests whether replacement is allowed on given piece of HTML text. |
(module
(function_definition
(function_name_clean_global_runtime_state) function_name_clean_global_runtime_state
(parameters
(default_parameter
(identifier_reset_subsystem) identifier_reset_subsystem
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_reset_subsystem) identifier_reset_subsystem
(block
(expression_statement
(call
(attribute
(identifier_Subsystem) identifier_Subsystem
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_Goal) identifier_Goal
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_BuildConfigInitializer) identifier_BuildConfigInitializer
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Resets the global runtime state of a pants runtime for cleaner forking.
:param bool reset_subsystem: Whether or not to clean Subsystem global state. |
(module
(function_definition
(function_name_register_logger) function_name_register_logger
(parameters
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)parameters
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(call
(identifier_CommandHandler) identifier_CommandHandler
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_handler) identifier_handler
(identifier_setFormatter) identifier_setFormatter
)attribute
(argument_list
(call
(identifier_CommandFormatter) identifier_CommandFormatter
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_handlers) identifier_handlers
)attribute
(list
(identifier_handler) identifier_handler
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_propagate) identifier_propagate
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(attribute
(identifier_self) identifier_self
(identifier_output) identifier_output
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_level) identifier_level
(attribute
(identifier_logging) identifier_logging
(identifier_WARNING) identifier_WARNING
)attribute
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_is_debug) identifier_is_debug
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_level) identifier_level
(attribute
(identifier_logging) identifier_logging
(identifier_DEBUG) identifier_DEBUG
)attribute
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(attribute
(identifier_output) identifier_output
(identifier_is_very_verbose) identifier_is_very_verbose
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_output) identifier_output
(identifier_is_verbose) identifier_is_verbose
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_level) identifier_level
(attribute
(identifier_logging) identifier_logging
(identifier_INFO) identifier_INFO
)attribute
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_setLevel) identifier_setLevel
)attribute
(argument_list
(identifier_level) identifier_level
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Register a new logger. |
(module
(function_definition
(function_name_handle_routine) function_name_handle_routine
(parameters
(identifier_self) identifier_self
(identifier_que) identifier_que
(identifier_opts) identifier_opts
(identifier_host) identifier_host
(identifier_target) identifier_target
(default_parameter
(identifier_mine) identifier_mine
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_opts) identifier_opts
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_opts) identifier_opts
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_single) identifier_single
(call
(identifier_Single) identifier_Single
(argument_list
(identifier_opts) identifier_opts
(subscript
(identifier_opts) identifier_opts
(string_'argv') string_'argv'
)subscript
(identifier_host) identifier_host
(keyword_argument
(identifier_mods) identifier_mods
(attribute
(identifier_self) identifier_self
(identifier_mods) identifier_mods
)attribute
)keyword_argument
(keyword_argument
(identifier_fsclient) identifier_fsclient
(attribute
(identifier_self) identifier_self
(identifier_fsclient) identifier_fsclient
)attribute
)keyword_argument
(keyword_argument
(identifier_thin) identifier_thin
(attribute
(identifier_self) identifier_self
(identifier_thin) identifier_thin
)attribute
)keyword_argument
(keyword_argument
(identifier_mine) identifier_mine
(identifier_mine) identifier_mine
)keyword_argument
(dictionary_splat
(identifier_target) identifier_target
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'id') string_'id'
(attribute
(identifier_single) identifier_single
(identifier_id) identifier_id
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_stdout) identifier_stdout
(identifier_stderr) identifier_stderr
(identifier_retcode) identifier_retcode
)pattern_list
(call
(attribute
(identifier_single) identifier_single
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_json) identifier_json
)attribute
(identifier_find_json) identifier_find_json
)attribute
(argument_list
(identifier_stdout) identifier_stdout
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(comparison_operator
(string_'local') string_'local'
(identifier_data) identifier_data
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'ret') string_'ret'
)subscript
(subscript
(identifier_data) identifier_data
(string_'local') string_'local'
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'ret') string_'ret'
)subscript
(dictionary
(pair
(string_'stdout') string_'stdout'
(identifier_stdout) identifier_stdout
)pair
(pair
(string_'stderr') string_'stderr'
(identifier_stderr) identifier_stderr
)pair
(pair
(string_'retcode') string_'retcode'
(identifier_retcode) identifier_retcode
)pair
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'ret') string_'ret'
)subscript
(dictionary
(pair
(string_'stdout') string_'stdout'
(identifier_stdout) identifier_stdout
)pair
(pair
(string_'stderr') string_'stderr'
(identifier_stderr) identifier_stderr
)pair
(pair
(string_'retcode') string_'retcode'
(identifier_retcode) identifier_retcode
)pair
)dictionary
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_que) identifier_que
(identifier_put) identifier_put
)attribute
(argument_list
(identifier_ret) identifier_ret
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run the routine in a "Thread", put a dict on the queue |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentParser) identifier_ArgumentParser
)attribute
(argument_list
(keyword_argument
(identifier_description) identifier_description
(string_'Run SSOIS and return the available images in a particular filter.') string_'Run SSOIS and return the available images in a particular filter.'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--filter") string_"--filter"
(keyword_argument
(identifier_action) identifier_action
(string_"store") string_"store"
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(string_'r') string_'r'
)keyword_argument
(keyword_argument
(identifier_dest) identifier_dest
(string_"filter") string_"filter"
)keyword_argument
(keyword_argument
(identifier_choices) identifier_choices
(list
(string_'r') string_'r'
(string_'u') string_'u'
)list
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_"Passband: default is r.") string_"Passband: default is r."
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--family") string_"--family"
(string_'-f') string_'-f'
(keyword_argument
(identifier_action) identifier_action
(string_"store") string_"store"
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(None) None
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'List of objects to query.') string_'List of objects to query.'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_"--member") string_"--member"
(string_'-m') string_'-m'
(keyword_argument
(identifier_action) identifier_action
(string_"store") string_"store"
)keyword_argument
(keyword_argument
(identifier_default) identifier_default
(None) None
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(string_'Member object of family to query.') string_'Member object of family to query.'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_args) identifier_args
(identifier_family) identifier_family
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_args) identifier_args
(identifier_member) identifier_member
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_get_family_info) identifier_get_family_info
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_family) identifier_family
)attribute
)argument_list
)call
(attribute
(identifier_args) identifier_args
(identifier_filter) identifier_filter
)attribute
)argument_list
)call
)expression_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_args) identifier_args
(identifier_family) identifier_family
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_args) identifier_args
(identifier_member) identifier_member
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_get_member_info) identifier_get_member_info
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_member) identifier_member
)attribute
)argument_list
)call
(attribute
(identifier_args) identifier_args
(identifier_filter) identifier_filter
)attribute
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(print_statement
(string_"Please input either a family or single member name") string_"Please input either a family or single member name"
)print_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Input asteroid family, filter type, and image type to query SSOIS |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_rrstr) identifier_rrstr
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__initialized) identifier__initialized
)attribute
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInternalError) identifier_PyCdlibInternalError
)attribute
(argument_list
(string_'CL record already initialized!') string_'CL record already initialized!'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_su_len) identifier_su_len
(identifier_su_entry_version_unused) identifier_su_entry_version_unused
(identifier_child_log_block_num_le) identifier_child_log_block_num_le
(identifier_child_log_block_num_be) identifier_child_log_block_num_be
)tuple_pattern
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack_from) identifier_unpack_from
)attribute
(argument_list
(string_'=BBLL') string_'=BBLL'
(subscript
(identifier_rrstr) identifier_rrstr
(slice
(colon) colon
(integer_12) integer_12
)slice
)subscript
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_su_len) identifier_su_len
(call
(attribute
(identifier_RRCLRecord) identifier_RRCLRecord
(identifier_length) identifier_length
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInvalidISO) identifier_PyCdlibInvalidISO
)attribute
(argument_list
(string_'Invalid length on rock ridge extension') string_'Invalid length on rock ridge extension'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_child_log_block_num_le) identifier_child_log_block_num_le
(call
(attribute
(identifier_utils) identifier_utils
(identifier_swab_32bit) identifier_swab_32bit
)attribute
(argument_list
(identifier_child_log_block_num_be) identifier_child_log_block_num_be
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInvalidISO) identifier_PyCdlibInvalidISO
)attribute
(argument_list
(string_'Little endian block num does not equal big endian; corrupt ISO') string_'Little endian block num does not equal big endian; corrupt ISO'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_child_log_block_num) identifier_child_log_block_num
)attribute
(identifier_child_log_block_num_le) identifier_child_log_block_num_le
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__initialized) identifier__initialized
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Parse a Rock Ridge Child Link record out of a string.
Parameters:
rrstr - The string to parse the record out of.
Returns:
Nothing. |
(module
(function_definition
(function_name_list_ptr_records) function_name_list_ptr_records
(parameters
(identifier_self) identifier_self
(identifier_device) identifier_device
)parameters
(block
(expression_statement
(assignment
(identifier_device_type) identifier_device_type
(call
(attribute
(identifier_self) identifier_self
(identifier__resolve_device_type) identifier__resolve_device_type
)attribute
(argument_list
(identifier_device) identifier_device
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_href) identifier_href
(identifier_svc_name) identifier_svc_name
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_ptr_details) identifier__get_ptr_details
)attribute
(argument_list
(identifier_device) identifier_device
(identifier_device_type) identifier_device_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(string_"/rdns/%s?href=%s") string_"/rdns/%s?href=%s"
(tuple
(identifier_svc_name) identifier_svc_name
(identifier_href) identifier_href
)tuple
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_resp) identifier_resp
(identifier_resp_body) identifier_resp_body
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__retry_get) identifier__retry_get
)attribute
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_exc) identifier_exc
(identifier_NotFound) identifier_NotFound
)attribute
(block
(return_statement
(list
)list
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_records) identifier_records
(list_comprehension
(call
(identifier_CloudDNSPTRRecord) identifier_CloudDNSPTRRecord
(argument_list
(identifier_rec) identifier_rec
(identifier_device) identifier_device
)argument_list
)call
(for_in_clause
(identifier_rec) identifier_rec
(call
(attribute
(identifier_resp_body) identifier_resp_body
(identifier_get) identifier_get
)attribute
(argument_list
(string_"records") string_"records"
(list
)list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_records) identifier_records
)return_statement
)block
)function_definition
)module | Returns a list of all PTR records configured for this device. |
(module
(function_definition
(function_name_serialize) function_name_serialize
(parameters
(identifier_self) identifier_self
(identifier_sw) identifier_sw
)parameters
(block
(expression_statement
(assignment
(identifier_detail) identifier_detail
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_detail) identifier_detail
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_detail) identifier_detail
(call
(identifier_Detail) identifier_Detail
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_detail) identifier_detail
(identifier_any) identifier_any
)attribute
(attribute
(identifier_self) identifier_self
(identifier_detail) identifier_detail
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pyobj) identifier_pyobj
(call
(identifier_FaultType) identifier_FaultType
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_code) identifier_code
)attribute
(attribute
(identifier_self) identifier_self
(identifier_string) identifier_string
)attribute
(attribute
(identifier_self) identifier_self
(identifier_actor) identifier_actor
)attribute
(identifier_detail) identifier_detail
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sw) identifier_sw
(identifier_serialize) identifier_serialize
)attribute
(argument_list
(identifier_pyobj) identifier_pyobj
(keyword_argument
(identifier_typed) identifier_typed
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Serialize the object. |
(module
(function_definition
(function_name_kwargs) function_name_kwargs
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_keywords) identifier_keywords
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_keywords) identifier_keywords
)attribute
(list
)list
)boolean_operator
)assignment
)expression_statement
(return_statement
(list_comprehension
(identifier_keyword) identifier_keyword
(for_in_clause
(identifier_keyword) identifier_keyword
(identifier_keywords) identifier_keywords
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_keyword) identifier_keyword
(identifier_arg) identifier_arg
)attribute
(None) None
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | The keyword arguments that unpack something.
:type: list(Keyword) |
(module
(function_definition
(function_name__apply_base_theme) function_name__apply_base_theme
(parameters
(identifier_app) identifier_app
)parameters
(block
(if_statement
(comparison_operator
(identifier_QT_VERSION) identifier_QT_VERSION
(tuple
(integer_5) integer_5
)tuple
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_setStyle) identifier_setStyle
)attribute
(argument_list
(string_'plastique') string_'plastique'
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_setStyle) identifier_setStyle
)attribute
(argument_list
(string_'Fusion') string_'Fusion'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier__STYLESHEET) identifier__STYLESHEET
)argument_list
)call
(as_pattern_target
(identifier_stylesheet) identifier_stylesheet
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_setStyleSheet) identifier_setStyleSheet
)attribute
(argument_list
(call
(attribute
(identifier_stylesheet) identifier_stylesheet
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Apply base theme to the application.
Args:
app (QApplication): QApplication instance. |
(module
(function_definition
(function_name_add_dataset) function_name_add_dataset
(parameters
(identifier_self) identifier_self
(identifier_dataset) identifier_dataset
(default_parameter
(identifier_datasets_to_check) identifier_datasets_to_check
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_showcase_dataset) identifier_showcase_dataset
(call
(attribute
(identifier_self) identifier_self
(identifier__get_showcase_dataset_dict) identifier__get_showcase_dataset_dict
)attribute
(argument_list
(identifier_dataset) identifier_dataset
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_datasets_to_check) identifier_datasets_to_check
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_datasets_to_check) identifier_datasets_to_check
(call
(attribute
(identifier_self) identifier_self
(identifier_get_datasets) identifier_get_datasets
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_dataset) identifier_dataset
(identifier_datasets_to_check) identifier_datasets_to_check
(block
(if_statement
(comparison_operator
(subscript
(identifier_showcase_dataset) identifier_showcase_dataset
(string_'package_id') string_'package_id'
)subscript
(subscript
(identifier_dataset) identifier_dataset
(string_'id') string_'id'
)subscript
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__write_to_hdx) identifier__write_to_hdx
)attribute
(argument_list
(string_'associate') string_'associate'
(identifier_showcase_dataset) identifier_showcase_dataset
(string_'package_id') string_'package_id'
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Add a dataset
Args:
dataset (Union[Dataset,Dict,str]): Either a dataset id or dataset metadata either from a Dataset object or a dictionary
datasets_to_check (List[Dataset]): List of datasets against which to check existence of dataset. Defaults to datasets in showcase.
Returns:
bool: True if the dataset was added, False if already present |
(module
(function_definition
(function_name_requiredUnless) function_name_requiredUnless
(parameters
(identifier_col_name) identifier_col_name
(identifier_arg) identifier_arg
(identifier_dm) identifier_dm
(identifier_df) identifier_df
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_col_name) identifier_col_name
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_arg_list) identifier_arg_list
(call
(attribute
(identifier_arg) identifier_arg
(identifier_split) identifier_split
)attribute
(argument_list
(string_",") string_","
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_arg_list) identifier_arg_list
(list_comprehension
(call
(attribute
(identifier_argument) identifier_argument
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'"') string_'"'
)argument_list
)call
(for_in_clause
(identifier_argument) identifier_argument
(identifier_arg_list) identifier_arg_list
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_"") string_""
)assignment
)expression_statement
(for_statement
(identifier_a) identifier_a
(identifier_arg_list) identifier_arg_list
(block
(if_statement
(comparison_operator
(string_".") string_"."
(identifier_a) identifier_a
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_a) identifier_a
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"{} column is required unless {} is present. ") string_"{} column is required unless {} is present. "
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_col_name) identifier_col_name
(identifier_a) identifier_a
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_msg) identifier_msg
(block
(return_statement
(identifier_msg) identifier_msg
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Arg is a string in the format "str1, str2, ..."
Each string will be a column name.
Col_name is required in df unless each column from arg is present. |
(module
(function_definition
(function_name_mold_id_to_path) function_name_mold_id_to_path
(parameters
(identifier_self) identifier_self
(identifier_mold_id) identifier_mold_id
(default_parameter
(identifier_default) identifier_default
(identifier__marker) identifier__marker
)default_parameter
)parameters
(block
(function_definition
(function_name_handle_default) function_name_handle_default
(parameters
(default_parameter
(identifier_debug_msg) identifier_debug_msg
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_debug_msg) identifier_debug_msg
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'mold_id_to_path:') string_'mold_id_to_path:'
(identifier_debug_msg) identifier_debug_msg
)binary_operator
(identifier_mold_id) identifier_mold_id
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_default) identifier_default
(identifier__marker) identifier__marker
)comparison_operator
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(binary_operator
(string_'Failed to lookup mold_id %s to a path') string_'Failed to lookup mold_id %s to a path'
(identifier_mold_id) identifier_mold_id
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_molds) identifier_molds
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_mold_id) identifier_mold_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_result) identifier_result
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_tracked_entry_points) identifier_tracked_entry_points
)attribute
)not_operator
(block
(return_statement
(call
(identifier_handle_default) identifier_handle_default
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_prefix) identifier_prefix
(identifier_mold_basename) identifier_mold_basename
)pattern_list
(call
(attribute
(identifier_mold_id) identifier_mold_id
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(call
(identifier_handle_default) identifier_handle_default
(argument_list
(string_'mold_id %s not found and not in standard format') string_'mold_id %s not found and not in standard format'
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_entry_point) identifier_entry_point
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tracked_entry_points) identifier_tracked_entry_points
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_entry_point) identifier_entry_point
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_handle_default) identifier_handle_default
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_join) identifier_join
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__entry_point_to_path) identifier__entry_point_to_path
)attribute
(argument_list
(identifier_entry_point) identifier_entry_point
)argument_list
)call
(identifier_mold_basename) identifier_mold_basename
)argument_list
)call
)return_statement
)block
)function_definition
)module | Lookup the filesystem path of a mold identifier. |
(module
(function_definition
(function_name_convert_coord_object) function_name_convert_coord_object
(parameters
(identifier_coord) identifier_coord
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_coord) identifier_coord
(identifier_Coordinate) identifier_Coordinate
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(identifier_coord) identifier_coord
(call
(attribute
(identifier_coord) identifier_coord
(identifier_container) identifier_container
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Tile) identifier_Tile
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(attribute
(identifier_coord) identifier_coord
(identifier_zoom) identifier_zoom
)attribute
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(attribute
(identifier_coord) identifier_coord
(identifier_column) identifier_column
)attribute
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(attribute
(identifier_coord) identifier_coord
(identifier_row) identifier_row
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert ModestMaps.Core.Coordinate -> raw_tiles.tile.Tile |
(module
(function_definition
(function_name_add_loghandler) function_name_add_loghandler
(parameters
(identifier_handler) identifier_handler
)parameters
(block
(expression_statement
(assignment
(identifier_format) identifier_format
(string_"%(levelname)s %(name)s %(asctime)s %(threadName)s %(message)s") string_"%(levelname)s %(name)s %(asctime)s %(threadName)s %(message)s"
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_handler) identifier_handler
(identifier_setFormatter) identifier_setFormatter
)attribute
(argument_list
(call
(attribute
(identifier_logging) identifier_logging
(identifier_Formatter) identifier_Formatter
)attribute
(argument_list
(identifier_format) identifier_format
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(identifier_LOG_ROOT) identifier_LOG_ROOT
)argument_list
)call
(identifier_addHandler) identifier_addHandler
)attribute
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
)argument_list
)call
(identifier_addHandler) identifier_addHandler
)attribute
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add log handler to root logger and LOG_ROOT and set formatting. |
(module
(function_definition
(function_name_outputs_of) function_name_outputs_of
(parameters
(identifier_self) identifier_self
(identifier_idx) identifier_idx
(default_parameter
(identifier_create) identifier_create
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_create) identifier_create
(not_operator
(comparison_operator
(identifier_idx) identifier_idx
(attribute
(identifier_self) identifier_self
(identifier_edges) identifier_edges
)attribute
)comparison_operator
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_edges) identifier_edges
)attribute
(identifier_idx) identifier_idx
)subscript
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_edges) identifier_edges
)attribute
(identifier_idx) identifier_idx
)subscript
)return_statement
)block
)function_definition
)module | Get a set of the outputs for a given node index. |
(module
(function_definition
(function_name_localortho) function_name_localortho
(parameters
(identifier_lon) identifier_lon
(identifier_lat) identifier_lat
)parameters
(block
(expression_statement
(assignment
(identifier_local_srs) identifier_local_srs
(call
(attribute
(identifier_osr) identifier_osr
(identifier_SpatialReference) identifier_SpatialReference
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_local_proj) identifier_local_proj
(binary_operator
(string_'+proj=ortho +lat_0=%0.7f +lon_0=%0.7f +datum=WGS84 +units=m +no_defs ') string_'+proj=ortho +lat_0=%0.7f +lon_0=%0.7f +datum=WGS84 +units=m +no_defs '
(tuple
(identifier_lat) identifier_lat
(identifier_lon) identifier_lon
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_local_srs) identifier_local_srs
(identifier_ImportFromProj4) identifier_ImportFromProj4
)attribute
(argument_list
(identifier_local_proj) identifier_local_proj
)argument_list
)call
)expression_statement
(return_statement
(identifier_local_srs) identifier_local_srs
)return_statement
)block
)function_definition
)module | Create srs for local orthographic projection centered at lat, lon |
(module
(function_definition
(function_name_isSuperTypeOf) function_name_isSuperTypeOf
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
(default_parameter
(identifier_matchTags) identifier_matchTags
(True) True
)default_parameter
(default_parameter
(identifier_matchConstraints) identifier_matchConstraints
(True) True
)default_parameter
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_matchTags) identifier_matchTags
)not_operator
(boolean_operator
(parenthesized_expression
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tagSet) identifier_tagSet
)attribute
(identifier_isSuperTagSetOf) identifier_isSuperTagSetOf
)attribute
(argument_list
(attribute
(identifier_other) identifier_other
(identifier_tagSet) identifier_tagSet
)attribute
)argument_list
)call
)parenthesized_expression
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_matchConstraints) identifier_matchConstraints
)not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_subtypeSpec) identifier_subtypeSpec
)attribute
(identifier_isSuperTypeOf) identifier_isSuperTypeOf
)attribute
(argument_list
(attribute
(identifier_other) identifier_other
(identifier_subtypeSpec) identifier_subtypeSpec
)attribute
)argument_list
)call
)boolean_operator
)parenthesized_expression
)boolean_operator
)boolean_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Examine |ASN.1| type for subtype relationship with other ASN.1 type.
ASN.1 tags (:py:mod:`~pyasn1.type.tag`) and constraints
(:py:mod:`~pyasn1.type.constraint`) are examined when carrying
out ASN.1 types comparison.
Python class inheritance relationship is NOT considered.
Parameters
----------
other: a pyasn1 type object
Class instance representing ASN.1 type.
Returns
-------
: :class:`bool`
:class:`True` if *other* is a subtype of |ASN.1| type,
:class:`False` otherwise. |
(module
(function_definition
(function_name_group_theta) function_name_group_theta
(parameters
(identifier_node_length) identifier_node_length
(identifier_node_idx) identifier_node_idx
)parameters
(block
(expression_statement
(assignment
(identifier_theta) identifier_theta
(binary_operator
(unary_operator
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)unary_operator
(binary_operator
(binary_operator
(binary_operator
(identifier_node_idx) identifier_node_idx
(integer_2) integer_2
)binary_operator
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
(identifier_node_length) identifier_node_length
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_theta) identifier_theta
)return_statement
)block
)function_definition
)module | Returns an angle corresponding to a node of interest.
Intended to be used for placing node group labels at the correct spot.
:param float node_length: total number of nodes in the graph.
:param int node_idx: the index of the node of interest.
:returns: theta -- the angle of the node of interest in radians. |
(module
(function_definition
(function_name_copy_path_flat) function_name_copy_path_flat
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_cairo) identifier_cairo
(identifier_cairo_copy_path_flat) identifier_cairo_copy_path_flat
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__pointer) identifier__pointer
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier__iter_path) identifier__iter_path
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cairo) identifier_cairo
(identifier_cairo_path_destroy) identifier_cairo_path_destroy
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Return a flattened copy of the current path
This method is like :meth:`copy_path`
except that any curves in the path will be approximated
with piecewise-linear approximations,
(accurate to within the current tolerance value,
see :meth:`set_tolerance`).
That is,
the result is guaranteed to not have any elements
of type :obj:`CURVE_TO <PATH_CURVE_TO>`
which will instead be replaced by
a series of :obj:`LINE_TO <PATH_LINE_TO>` elements.
:returns:
A list of ``(path_operation, coordinates)`` tuples.
See :meth:`copy_path` for the data structure. |
(module
(function_definition
(function_name_end_coordsys) function_name_end_coordsys
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_coordsys) identifier_coordsys
(call
(identifier_copy) identifier_copy
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_coordsys) identifier_coordsys
(identifier_origin) identifier_origin
)attribute
(attribute
(identifier_self) identifier_self
(identifier_end_point) identifier_end_point
)attribute
)assignment
)expression_statement
(return_statement
(identifier_coordsys) identifier_coordsys
)return_statement
)block
)function_definition
)module | Coordinate system at end of effect.
All axes are parallel to the original vector evaluation location, with
the origin moved to this effect's end point.
:return: coordinate system at end of effect
:rtype: :class:`CoordSys` |
(module
(function_definition
(function_name_is_model_admin_subclass) function_name_is_model_admin_subclass
(parameters
(identifier_node) identifier_node
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
(attribute
(identifier_node) identifier_node
(identifier_name) identifier_name
)attribute
(slice
(unary_operator
(integer_5) integer_5
)unary_operator
(colon) colon
)slice
)subscript
(string_'Admin') string_'Admin'
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)attribute
(identifier_ClassDef) identifier_ClassDef
)argument_list
)call
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_node_is_subclass) identifier_node_is_subclass
(argument_list
(identifier_node) identifier_node
(string_'django.contrib.admin.options.ModelAdmin') string_'django.contrib.admin.options.ModelAdmin'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Checks that node is derivative of ModelAdmin class. |
(module
(function_definition
(function_name_cache_as_field) function_name_cache_as_field
(parameters
(identifier_cache_name) identifier_cache_name
)parameters
(block
(function_definition
(function_name_cache_wrapper) function_name_cache_wrapper
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_inner_wrapper) function_name_inner_wrapper
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_cache_name) identifier_cache_name
(identifier_UndefToken) identifier_UndefToken
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_UndefToken) identifier_UndefToken
)comparison_operator
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_func) identifier_func
(argument_list
(identifier_self) identifier_self
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_cache_name) identifier_cache_name
(identifier_ret) identifier_ret
)argument_list
)call
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_inner_wrapper) identifier_inner_wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier_cache_wrapper) identifier_cache_wrapper
)return_statement
)block
)function_definition
)module | Cache a functions return value as the field 'cache_name'. |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_wait_for_completion) identifier_wait_for_completion
(True) True
)default_parameter
)parameters
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_set_position) identifier_set_position
)attribute
(argument_list
(keyword_argument
(identifier_position) identifier_position
(call
(identifier_CurrentPosition) identifier_CurrentPosition
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_wait_for_completion) identifier_wait_for_completion
(identifier_wait_for_completion) identifier_wait_for_completion
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Stop window.
Parameters:
* wait_for_completion: If set, function will return
after device has reached target position. |
(module
(function_definition
(function_name_range) function_name_range
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_axis) identifier_axis
(None) None
)default_parameter
)parameters
(block
(return_statement
(tuple
(call
(attribute
(identifier_self) identifier_self
(identifier_min) identifier_min
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(identifier_axis) identifier_axis
)keyword_argument
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_max) identifier_max
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(identifier_axis) identifier_axis
)keyword_argument
)argument_list
)call
)tuple
)return_statement
)block
)function_definition
)module | Return range tuple along specified axis |
(module
(function_definition
(function_name_single_download_photos) function_name_single_download_photos
(parameters
(identifier_photos) identifier_photos
)parameters
(block
(global_statement
(identifier_counter) identifier_counter
)global_statement
(expression_statement
(assignment
(identifier_counter) identifier_counter
(call
(identifier_len) identifier_len
(argument_list
(identifier_photos) identifier_photos
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_photo) identifier_photo
(identifier_photos) identifier_photos
(block
(expression_statement
(call
(identifier_download_photo) identifier_download_photo
(argument_list
(identifier_photo) identifier_photo
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Use single process to download photos
:param photos: The photos to be downloaded
:type photos: list of dicts |
(module
(function_definition
(function_name_execute) function_name_execute
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Requesting view metadata for project %s') string_'Requesting view metadata for project %s'
(attribute
(identifier_self) identifier_self
(identifier_project_name) identifier_project_name
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_project_csv_meta) identifier_project_csv_meta
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rws_connection) identifier_rws_connection
)attribute
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(call
(identifier_ProjectMetaDataRequest) identifier_ProjectMetaDataRequest
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_project_name) identifier_project_name
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db_adapter) identifier_db_adapter
)attribute
(identifier_processMetaData) identifier_processMetaData
)attribute
(argument_list
(identifier_project_csv_meta) identifier_project_csv_meta
)argument_list
)call
)expression_statement
(for_statement
(identifier_dataset_name) identifier_dataset_name
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db_adapter) identifier_db_adapter
)attribute
(identifier_datasets) identifier_datasets
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Requesting data from dataset %s') string_'Requesting data from dataset %s'
(identifier_dataset_name) identifier_dataset_name
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_form_name) identifier_form_name
(identifier__type) identifier__type
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_name_type_from_viewname) identifier_name_type_from_viewname
)attribute
(argument_list
(identifier_dataset_name) identifier_dataset_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_form_data) identifier_form_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rws_connection) identifier_rws_connection
)attribute
(identifier_send_request) identifier_send_request
)attribute
(argument_list
(call
(identifier_FormDataRequest) identifier_FormDataRequest
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_project_name) identifier_project_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_environment) identifier_environment
)attribute
(identifier__type) identifier__type
(identifier_form_name) identifier_form_name
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Populating dataset %s') string_'Populating dataset %s'
(identifier_dataset_name) identifier_dataset_name
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db_adapter) identifier_db_adapter
)attribute
(identifier_processFormData) identifier_processFormData
)attribute
(argument_list
(identifier_form_data) identifier_form_data
(identifier_dataset_name) identifier_dataset_name
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Process complete') string_'Process complete'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Generate local DB, pulling metadata and data from RWSConnection |
(module
(function_definition
(function_name_cci) function_name_cci
(parameters
(identifier_series) identifier_series
(default_parameter
(identifier_window) identifier_window
(integer_14) integer_14
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_price) identifier_price
(call
(identifier_typical_price) identifier_typical_price
(argument_list
(identifier_series) identifier_series
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_typical_mean) identifier_typical_mean
(call
(identifier_rolling_mean) identifier_rolling_mean
(argument_list
(identifier_price) identifier_price
(identifier_window) identifier_window
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_price) identifier_price
(identifier_typical_mean) identifier_typical_mean
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(float_.015) float_.015
(call
(attribute
(identifier_np) identifier_np
(identifier_std) identifier_std
)attribute
(argument_list
(identifier_typical_mean) identifier_typical_mean
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(attribute
(identifier_series) identifier_series
(identifier_index) identifier_index
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_res) identifier_res
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | compute commodity channel index |
(module
(function_definition
(function_name_listFunctions) function_name_listFunctions
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_dbName) identifier_dbName
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_dbName) identifier_dbName
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dbName) identifier_dbName
(call
(attribute
(identifier_self) identifier_self
(identifier_currentDatabase) identifier_currentDatabase
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_iter) identifier_iter
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__jcatalog) identifier__jcatalog
)attribute
(identifier_listFunctions) identifier_listFunctions
)attribute
(argument_list
(identifier_dbName) identifier_dbName
)argument_list
)call
(identifier_toLocalIterator) identifier_toLocalIterator
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_functions) identifier_functions
(list
)list
)assignment
)expression_statement
(while_statement
(call
(attribute
(identifier_iter) identifier_iter
(identifier_hasNext) identifier_hasNext
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_jfunction) identifier_jfunction
(call
(attribute
(identifier_iter) identifier_iter
(identifier_next) identifier_next
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_functions) identifier_functions
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Function) identifier_Function
(argument_list
(keyword_argument
(identifier_name) identifier_name
(call
(attribute
(identifier_jfunction) identifier_jfunction
(identifier_name) identifier_name
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(call
(attribute
(identifier_jfunction) identifier_jfunction
(identifier_description) identifier_description
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_className) identifier_className
(call
(attribute
(identifier_jfunction) identifier_jfunction
(identifier_className) identifier_className
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_isTemporary) identifier_isTemporary
(call
(attribute
(identifier_jfunction) identifier_jfunction
(identifier_isTemporary) identifier_isTemporary
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)while_statement
(return_statement
(identifier_functions) identifier_functions
)return_statement
)block
)function_definition
)module | Returns a list of functions registered in the specified database.
If no database is specified, the current database is used.
This includes all temporary functions. |
(module
(function_definition
(function_name_enable_mac) function_name_enable_mac
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_app) identifier_app
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_inputhook_mac) function_name_inputhook_mac
(parameters
(default_parameter
(identifier_app) identifier_app
(None) None
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_pyplot_imported) identifier_pyplot_imported
)attribute
(block
(expression_statement
(assignment
(identifier_pyplot) identifier_pyplot
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_modules) identifier_modules
)attribute
(string_'matplotlib.pyplot') string_'matplotlib.pyplot'
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_pyplot) identifier_pyplot
(identifier_pause) identifier_pause
)attribute
(argument_list
(float_0.01) float_0.01
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(string_'matplotlib.pyplot') string_'matplotlib.pyplot'
(attribute
(identifier_sys) identifier_sys
(identifier_modules) identifier_modules
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_pyplot_imported) identifier_pyplot_imported
)attribute
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_inputhook) identifier_set_inputhook
)attribute
(argument_list
(identifier_inputhook_mac) identifier_inputhook_mac
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__current_gui) identifier__current_gui
)attribute
(identifier_GUI_OSX) identifier_GUI_OSX
)assignment
)expression_statement
)block
)function_definition
)module | Enable event loop integration with MacOSX.
We call function pyplot.pause, which updates and displays active
figure during pause. It's not MacOSX-specific, but it enables to
avoid inputhooks in native MacOSX backend.
Also we shouldn't import pyplot, until user does it. Cause it's
possible to choose backend before importing pyplot for the first
time only. |
(module
(function_definition
(function_name_remove_transcript_preferences) function_name_remove_transcript_preferences
(parameters
(identifier_course_id) identifier_course_id
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_transcript_preference) identifier_transcript_preference
(call
(attribute
(attribute
(identifier_TranscriptPreference) identifier_TranscriptPreference
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_course_id) identifier_course_id
(identifier_course_id) identifier_course_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_transcript_preference) identifier_transcript_preference
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_TranscriptPreference) identifier_TranscriptPreference
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Deletes course-wide transcript preferences.
Arguments:
course_id(str): course id |
(module
(function_definition
(function_name_fixed_terms) function_name_fixed_terms
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(identifier_v) identifier_v
)pair
(for_in_clause
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_terms) identifier_terms
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(not_operator
(attribute
(identifier_v) identifier_v
(identifier_random) identifier_random
)attribute
)not_operator
)if_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Return dict of all and only fixed effects in model. |
(module
(function_definition
(function_name_get_list_from_xml) function_name_get_list_from_xml
(parameters
(identifier_elem) identifier_elem
(default_parameter
(identifier_tag) identifier_tag
(string_"option") string_"option"
)default_parameter
(default_parameter
(identifier_attributes) identifier_attributes
(list
(string_"name") string_"name"
)list
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_flatten) identifier_flatten
(argument_list
(generator_expression
(binary_operator
(list_comprehension
(call
(attribute
(identifier_option) identifier_option
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_attr) identifier_attr
)argument_list
)call
(for_in_clause
(identifier_attr) identifier_attr
(identifier_attributes) identifier_attributes
)for_in_clause
)list_comprehension
(list
(attribute
(identifier_option) identifier_option
(identifier_text) identifier_text
)attribute
)list
)binary_operator
(for_in_clause
(identifier_option) identifier_option
(call
(attribute
(identifier_elem) identifier_elem
(identifier_findall) identifier_findall
)attribute
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
)for_in_clause
)generator_expression
(keyword_argument
(identifier_exclude) identifier_exclude
(list
(None) None
)list
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | This function searches for all "option"-tags and returns a list with all attributes and texts. |
(module
(function_definition
(function_name_require_openid) function_name_require_openid
(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_decorator) function_name_decorator
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_g) identifier_g
(identifier_user) identifier_user
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(binary_operator
(binary_operator
(call
(identifier_url_for) identifier_url_for
(argument_list
(string_"login") string_"login"
)argument_list
)call
(string_"?next=") string_"?next="
)binary_operator
(attribute
(identifier_request) identifier_request
(identifier_url) identifier_url
)attribute
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(identifier_redirect) identifier_redirect
(argument_list
(identifier_next_url) identifier_next_url
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_f) identifier_f
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Require user to be logged in. |
(module
(function_definition
(function_name_serialize) function_name_serialize
(parameters
(identifier_self) identifier_self
(identifier_entity) identifier_entity
(default_parameter
(identifier_request) identifier_request
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name_should_we_insert) function_name_should_we_insert
(parameters
(identifier_value) identifier_value
(identifier_field_spec) identifier_field_spec
)parameters
(block
(return_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(attribute
(identifier_self) identifier_self
(identifier_missing) identifier_missing
)attribute
)comparison_operator
(attribute
(identifier_field_spec) identifier_field_spec
(identifier_required) identifier_required
)attribute
)boolean_operator
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_errors) identifier_errors
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_field_name) identifier_field_name
(identifier_field_spec) identifier_field_spec
)pattern_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_spec) identifier_spec
)attribute
(identifier_fields) identifier_fields
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier__get_value_for_serialization) identifier__get_value_for_serialization
)attribute
(argument_list
(identifier_entity) identifier_entity
(identifier_field_name) identifier_field_name
(identifier_field_spec) identifier_field_spec
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_func) identifier_func
(call
(attribute
(identifier_self) identifier_self
(identifier__get_serialize_func) identifier__get_serialize_func
)attribute
(argument_list
(identifier_field_name) identifier_field_name
(attribute
(identifier_self) identifier_self
(identifier_spec) identifier_spec
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_func) identifier_func
(argument_list
(identifier_value) identifier_value
(identifier_entity) identifier_entity
(identifier_request) identifier_request
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_should_we_insert) identifier_should_we_insert
(argument_list
(identifier_value) identifier_value
(identifier_field_spec) identifier_field_spec
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_field_name) identifier_field_name
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)if_statement
)block
(except_clause
(identifier_ValidationError) identifier_ValidationError
(identifier_e) identifier_e
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_e) identifier_e
(string_'message_dict') string_'message_dict'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(list_comprehension
(binary_operator
(binary_operator
(identifier_field_name) identifier_field_name
(string_'.') string_'.'
)binary_operator
(identifier_key) identifier_key
)binary_operator
(for_in_clause
(identifier_key) identifier_key
(call
(attribute
(attribute
(identifier_e) identifier_e
(identifier_message_dict) identifier_message_dict
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
(call
(attribute
(attribute
(identifier_e) identifier_e
(identifier_message_dict) identifier_message_dict
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_errors) identifier_errors
(identifier_field_name) identifier_field_name
)subscript
(attribute
(identifier_e) identifier_e
(identifier_messages) identifier_messages
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)for_statement
(if_statement
(identifier_errors) identifier_errors
(block
(raise_statement
(call
(identifier_ValidationError) identifier_ValidationError
(argument_list
(identifier_errors) identifier_errors
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(conditional_expression
(None) None
(comparison_operator
(identifier_ret) identifier_ret
(dictionary
)dictionary
)comparison_operator
(identifier_ret) identifier_ret
)conditional_expression
)return_statement
)block
)function_definition
)module | Serialize entity into dictionary.
The spec can affect how individual fields will be serialized by
implementing ``serialize()`` for the fields needing customization.
:returns: dictionary |
(module
(function_definition
(function_name_get_node_parent_class) function_name_get_node_parent_class
(parameters
(identifier_node) identifier_node
)parameters
(block
(while_statement
(attribute
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)attribute
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_node) identifier_node
(identifier_ClassDef) identifier_ClassDef
)argument_list
)call
(block
(return_statement
(identifier_node) identifier_node
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(attribute
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Supposes that node is a mongoengine field in a class and tries to
get its parent class |
(module
(function_definition
(function_name_on_train_begin) function_name_on_train_begin
(parameters
(identifier_self) identifier_self
(typed_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(string_"Initialize inner arguments.") string_"Initialize inner arguments."
)expression_statement
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identifier_wait) identifier_wait
)attribute
(attribute
(identifier_self) identifier_self
(identifier_opt) identifier_opt
)attribute
)pattern_list
(expression_list
(integer_0) integer_0
(attribute
(attribute
(identifier_self) identifier_self
(identifier_learn) identifier_learn
)attribute
(identifier_opt) identifier_opt
)attribute
)expression_list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
)argument_list
)call
(identifier_on_train_begin) identifier_on_train_begin
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initialize inner arguments. |
(module
(function_definition
(function_name_remove_blank_dirs) function_name_remove_blank_dirs
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_blank) identifier_is_blank
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_rmdir) identifier_rmdir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_remove_empty_dir) identifier_remove_empty_dir
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Remove blank dir and all blank subdirectories |
(module
(function_definition
(function_name_run_mypy) function_name_run_mypy
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_paths) identifier_paths
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_code) identifier_code
(None) None
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_mypy) identifier_mypy
)attribute
(block
(expression_statement
(call
(identifier_set_mypy_path) identifier_set_mypy_path
(argument_list
(identifier_stub_dir) identifier_stub_dir
)argument_list
)call
)expression_statement
(import_from_statement
(dotted_name
(identifier_coconut) identifier_coconut
(identifier_command) identifier_command
(identifier_mypy) identifier_mypy
)dotted_name
(dotted_name
(identifier_mypy_run) identifier_mypy_run
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(identifier_paths) identifier_paths
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_mypy_args) identifier_mypy_args
)attribute
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_code) identifier_code
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_args) identifier_args
(list
(string_"-c") string_"-c"
(identifier_code) identifier_code
)list
)augmented_assignment
)expression_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_line) identifier_line
(identifier_is_err) identifier_is_err
)pattern_list
(call
(identifier_mypy_run) identifier_mypy_run
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_code) identifier_code
(None) None
)comparison_operator
(comparison_operator
(identifier_line) identifier_line
(attribute
(identifier_self) identifier_self
(identifier_mypy_errs) identifier_mypy_errs
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_printerr) identifier_printerr
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_line) identifier_line
(attribute
(identifier_self) identifier_self
(identifier_mypy_errs) identifier_mypy_errs
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_mypy_errs) identifier_mypy_errs
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_register_error) identifier_register_error
)attribute
(argument_list
(keyword_argument
(identifier_errmsg) identifier_errmsg
(string_"MyPy error") string_"MyPy error"
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Run MyPy with arguments. |
(module
(function_definition
(function_name__run_server_task) function_name__run_server_task
(parameters
(identifier_self) identifier_self
(identifier_started_signal) identifier_started_signal
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_server) identifier_server
(await
(call
(attribute
(identifier_websockets) identifier_websockets
(identifier_serve) identifier_serve
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__manage_connection) identifier__manage_connection
)attribute
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_port) identifier_port
(subscript
(call
(attribute
(subscript
(attribute
(identifier_server) identifier_server
(identifier_sockets) identifier_sockets
)attribute
(integer_0) integer_0
)subscript
(identifier_getsockname) identifier_getsockname
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_started_signal) identifier_started_signal
(identifier_set_result) identifier_set_result
)attribute
(argument_list
(identifier_port) identifier_port
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_"Error starting server on host %s, port %s") string_"Error starting server on host %s, port %s"
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_started_signal) identifier_started_signal
(identifier_set_exception) identifier_set_exception
)attribute
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(try_statement
(block
(while_statement
(True) True
(block
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)await
)expression_statement
)block
)while_statement
)block
(except_clause
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_CancelledError) identifier_CancelledError
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Stopping server due to stop() command") string_"Stopping server due to stop() command"
)argument_list
)call
)expression_statement
)block
)except_clause
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_server) identifier_server
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_server) identifier_server
(identifier_wait_closed) identifier_wait_closed
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
)finally_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Server stopped, exiting task") string_"Server stopped, exiting task"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create a BackgroundTask to manage the server.
This allows subclasess to attach their server related tasks as
subtasks that are properly cleaned up when this parent task is
stopped and not require them all to overload start() and stop()
to perform this action. |
(module
(function_definition
(function_name_make_usage_key_from_deprecated_string) function_name_make_usage_key_from_deprecated_string
(parameters
(identifier_self) identifier_self
(identifier_location_url) identifier_location_url
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"make_usage_key_from_deprecated_string is deprecated! Please use make_usage_key") string_"make_usage_key_from_deprecated_string is deprecated! Please use make_usage_key"
(identifier_DeprecationWarning) identifier_DeprecationWarning
(keyword_argument
(identifier_stacklevel) identifier_stacklevel
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_BlockUsageLocator) identifier_BlockUsageLocator
(identifier_from_string) identifier_from_string
)attribute
(argument_list
(identifier_location_url) identifier_location_url
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(keyword_argument
(identifier_run) identifier_run
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deprecated mechanism for creating a UsageKey given a CourseKey and a serialized Location.
NOTE: this prejudicially takes the tag, org, and course from the url not self.
Raises:
InvalidKeyError: if the url does not parse |
(module
(function_definition
(function_name_func) function_name_func
(parameters
(identifier_self) identifier_self
(identifier_volume) identifier_volume
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__func) identifier__func
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_volume) identifier_volume
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_eos_params) identifier_eos_params
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | The equation of state function with the paramters other than volume set
to the ones obtained from fitting.
Args:
volume (list/numpy.array)
Returns:
numpy.array |
(module
(function_definition
(function_name_pbmc68k_reduced) function_name_pbmc68k_reduced
(parameters
)parameters
(type
(identifier_AnnData) identifier_AnnData
)type
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(binary_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
(string_'/10x_pbmc68k_reduced.h5ad') string_'/10x_pbmc68k_reduced.h5ad'
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_sc) identifier_sc
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)return_statement
)block
)function_definition
)module | Subsampled and processed 68k PBMCs.
10x PBMC 68k dataset from
https://support.10xgenomics.com/single-cell-gene-expression/datasets
The original PBMC 68k dataset was preprocessed using scanpy and was saved
keeping only 724 cells and 221 highly variable genes.
The saved file contains the annotation of cell types (key: 'bulk_labels'), UMAP coordinates,
louvain clustering and gene rankings based on the bulk_labels.
Returns
-------
Annotated data matrix. |
(module
(function_definition
(function_name_get_roles_for_permission) function_name_get_roles_for_permission
(parameters
(identifier_permission) identifier_permission
(identifier_brain_or_object) identifier_brain_or_object
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_api) identifier_api
(identifier_get_object) identifier_get_object
)attribute
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_valid_roles) identifier_valid_roles
(call
(identifier_get_valid_roles_for) identifier_get_valid_roles_for
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(attribute
(identifier_obj) identifier_obj
(identifier_ac_inherited_permissions) identifier_ac_inherited_permissions
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(subscript
(identifier_item) identifier_item
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_permission) identifier_permission
)comparison_operator
(block
(expression_statement
(assignment
(identifier_permission) identifier_permission
(call
(identifier_Permission) identifier_Permission
(argument_list
(identifier_name) identifier_name
(identifier_value) identifier_value
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_roles) identifier_roles
(call
(attribute
(identifier_permission) identifier_permission
(identifier_getRoles) identifier_getRoles
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_r) identifier_r
)lambda_parameters
(comparison_operator
(identifier_r) identifier_r
(identifier_valid_roles) identifier_valid_roles
)comparison_operator
)lambda
(identifier_roles) identifier_roles
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"The permission {} is invalid.") string_"The permission {} is invalid."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_permission) identifier_permission
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Return the roles of the permission that is granted on the object
Code extracted from `IRoleManager.rolesOfPermission`
:param permission: The permission to get the roles
:param brain_or_object: Catalog brain or object
:returns: List of roles having the permission |
(module
(function_definition
(function_name__reader) function_name__reader
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_stream) identifier_stream
(identifier_outbuf) identifier_outbuf
)parameters
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_stream) identifier_stream
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_s) identifier_s
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(call
(attribute
(identifier_s) identifier_s
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_outbuf) identifier_outbuf
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'%s: %s') string_'%s: %s'
(tuple
(identifier_name) identifier_name
(identifier_s) identifier_s
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Thread runner for reading lines of from a subprocess into a buffer.
:param name: The logical name of the stream (used for logging only).
:param stream: The stream to read from. This will typically a pipe
connected to the output stream of a subprocess.
:param outbuf: The list to append the read lines to. |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_h5file) identifier_h5file
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_h5) identifier_h5
(call
(identifier_copyh5) identifier_copyh5
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_h5) identifier_h5
)attribute
(identifier_h5file) identifier_h5file
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_QPImage) identifier_QPImage
(argument_list
(keyword_argument
(identifier_h5file) identifier_h5file
(identifier_h5) identifier_h5
)keyword_argument
(keyword_argument
(identifier_h5dtype) identifier_h5dtype
(attribute
(identifier_self) identifier_self
(identifier_h5dtype) identifier_h5dtype
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a copy of the current instance
This is done by recursively copying the underlying hdf5 data.
Parameters
----------
h5file: str, h5py.File, h5py.Group, or None
see `QPImage.__init__` |
(module
(function_definition
(function_name_json2xml) function_name_json2xml
(parameters
(identifier_json_data) identifier_json_data
(default_parameter
(identifier_factory) identifier_factory
(attribute
(identifier_ET) identifier_ET
(identifier_Element) identifier_Element
)attribute
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_json_data) identifier_json_data
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_json_data) identifier_json_data
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_json_data) identifier_json_data
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_elem) identifier_elem
(call
(identifier_internal_to_elem) identifier_internal_to_elem
(argument_list
(identifier_json_data) identifier_json_data
(identifier_factory) identifier_factory
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_ET) identifier_ET
(identifier_tostring) identifier_tostring
)attribute
(argument_list
(identifier_elem) identifier_elem
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert a JSON string into an XML string.
Whatever Element implementation we could import will be used by
default; if you want to use something else, pass the Element class
as the factory parameter. |
(module
(function_definition
(function_name_check_sections) function_name_check_sections
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_default_sections) identifier_default_sections
(list
(string_'global') string_'global'
(string_'auth') string_'auth'
(string_'napps') string_'napps'
(string_'kytos') string_'kytos'
)list
)assignment
)expression_statement
(for_statement
(identifier_section) identifier_section
(identifier_default_sections) identifier_default_sections
(block
(if_statement
(not_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_has_section) identifier_has_section
)attribute
(argument_list
(identifier_section) identifier_section
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_config) identifier_config
(identifier_add_section) identifier_add_section
)attribute
(argument_list
(identifier_section) identifier_section
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Create a empty config file. |
(module
(function_definition
(function_name_colored_map) function_name_colored_map
(parameters
(identifier_text) identifier_text
(identifier_cmap) identifier_cmap
)parameters
(block
(if_statement
(not_operator
(identifier___ISON) identifier___ISON
)not_operator
(block
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_cmap) identifier_cmap
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_key) identifier_key
(call
(identifier_colored) identifier_colored
(argument_list
(identifier_key) identifier_key
(dictionary_splat
(identifier_v) identifier_v
)dictionary_splat
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_text) identifier_text
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_key) identifier_key
(call
(identifier_colored) identifier_colored
(argument_list
(identifier_key) identifier_key
(keyword_argument
(identifier_color) identifier_color
(identifier_v) identifier_v
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)function_definition
)module | Return colorized text. cmap is a dict mapping tokens to color options.
.. Example:
colored_key("foo bar", {bar: "green"})
colored_key("foo bar", {bar: {"color": "green", "on_color": "on_red"}}) |
(module
(function_definition
(function_name_display) function_name_display
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_IPython) identifier_IPython
(identifier_core) identifier_core
(identifier_display) identifier_display
)dotted_name
(dotted_name
(identifier_display) identifier_display
)dotted_name
(dotted_name
(identifier_HTML) identifier_HTML
)dotted_name
)import_from_statement
(expression_statement
(call
(identifier_display) identifier_display
(argument_list
(call
(identifier_HTML) identifier_HTML
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__repr_html_) identifier__repr_html_
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Display the visualization inline in the IPython notebook.
This is deprecated, use the following instead::
from IPython.display import display
display(viz) |
(module
(function_definition
(function_name_set_name) function_name_set_name
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(not_operator
(identifier_name) identifier_name
)not_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(string_'') string_''
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(string_'config') string_'config'
)subscript
(string_'name') string_'name'
)subscript
(identifier_name) identifier_name
)assignment
)expression_statement
(expression_statement
(yield
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__server) identifier__server
)attribute
(identifier_client_name) identifier_client_name
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
)attribute
(identifier_name) identifier_name
)argument_list
)call
)yield
)expression_statement
)block
)function_definition
)module | Set a client name. |
(module
(function_definition
(function_name_centers) function_name_centers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_w_cen) identifier_w_cen
(call
(attribute
(identifier_np) identifier_np
(identifier_nanmean) identifier_nanmean
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wave) identifier_wave
)attribute
(identifier_value) identifier_value
)attribute
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_f_cen) identifier_f_cen
(call
(attribute
(identifier_np) identifier_np
(identifier_nanmean) identifier_nanmean
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_throughput) identifier_throughput
)attribute
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(list
(identifier_w_cen) identifier_w_cen
(identifier_f_cen) identifier_f_cen
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | A getter for the wavelength bin centers and average fluxes |
(module
(function_definition
(function_name_loop_once) function_name_loop_once
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(integer_1) integer_1
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__active_nodes) identifier__active_nodes
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_triggershutdown) identifier_triggershutdown
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Unexpectedly no active workers available") string_"Unexpectedly no active workers available"
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_eventcall) identifier_eventcall
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(float_2.0) float_2.0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
(except_clause
(identifier_Empty) identifier_Empty
(block
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
)block
)while_statement
(expression_statement
(assignment
(pattern_list
(identifier_callname) identifier_callname
(identifier_kwargs) identifier_kwargs
)pattern_list
(identifier_eventcall) identifier_eventcall
)assignment
)expression_statement
(assert_statement
(identifier_callname) identifier_callname
(identifier_kwargs) identifier_kwargs
)assert_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(binary_operator
(string_"worker_") string_"worker_"
(identifier_callname) identifier_callname
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_call) identifier_call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(string_"calling method") string_"calling method"
(identifier_method) identifier_method
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_call) identifier_call
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sched) identifier_sched
)attribute
(identifier_tests_finished) identifier_tests_finished
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_triggershutdown) identifier_triggershutdown
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Process one callback from one of the workers. |
(module
(function_definition
(function_name_run_async) function_name_run_async
(parameters
(identifier_self) identifier_self
(identifier_time_limit) identifier_time_limit
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_background) identifier_background
)attribute
(identifier_time_limit) identifier_time_limit
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(identifier_self) identifier_self
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_results) identifier_results
(call
(attribute
(identifier_poller) identifier_poller
(identifier_AsyncPoller) identifier_AsyncPoller
)attribute
(argument_list
(identifier_results) identifier_results
(identifier_self) identifier_self
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | Run this module asynchronously and return a poller. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(default_parameter
(identifier_buffer) identifier_buffer
(string_"queue") string_"queue"
)default_parameter
(default_parameter
(identifier_interval) identifier_interval
(integer_10) integer_10
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__http_client) identifier__http_client
)attribute
(identifier_put_json) identifier_put_json
)attribute
(argument_list
(call
(attribute
(string_"subscriptions/{}") string_"subscriptions/{}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_short_name) identifier_short_name
)attribute
)argument_list
)call
(dictionary
(pair
(string_"subscription") string_"subscription"
(dictionary
(pair
(string_"uri") string_"uri"
(identifier_uri) identifier_uri
)pair
(pair
(string_"buffer") string_"buffer"
(identifier_buffer) identifier_buffer
)pair
(pair
(string_"interval") string_"interval"
(identifier_interval) identifier_interval
)pair
)dictionary
)pair
)dictionary
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a subscription with this short name and the provided parameters
For more information on what the parameters required here mean, please
refer to the `WVA Documentation <http://goo.gl/DRcOQf>`_.
:raises WVAError: If there is a problem creating the new subscription |
(module
(function_definition
(function_name_visit_Subscript) function_name_visit_Subscript
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_node) identifier_node
(type
(attribute
(identifier_ast) identifier_ast
(identifier_Subscript) identifier_Subscript
)attribute
)type
)typed_parameter
)parameters
(type
(identifier_Any) identifier_Any
)type
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_visit) identifier_visit
)attribute
(argument_list
(keyword_argument
(identifier_node) identifier_node
(attribute
(identifier_node) identifier_node
(identifier_value) identifier_value
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a_slice) identifier_a_slice
(call
(attribute
(identifier_self) identifier_self
(identifier_visit) identifier_visit
)attribute
(argument_list
(keyword_argument
(identifier_node) identifier_node
(attribute
(identifier_node) identifier_node
(identifier_slice) identifier_slice
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(subscript
(identifier_value) identifier_value
(identifier_a_slice) identifier_a_slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_recomputed_values) identifier_recomputed_values
)attribute
(identifier_node) identifier_node
)subscript
(identifier_result) identifier_result
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Visit the ``slice`` and a ``value`` and get the element. |
(module
(function_definition
(function_name_should_checkpoint) function_name_should_checkpoint
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_last_result) identifier_last_result
)attribute
(dictionary
)dictionary
)boolean_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_result) identifier_result
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_DONE) identifier_DONE
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_checkpoint_at_end) identifier_checkpoint_at_end
)attribute
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_checkpoint_freq) identifier_checkpoint_freq
)attribute
(block
(return_statement
(comparison_operator
(binary_operator
(call
(attribute
(identifier_result) identifier_result
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_TRAINING_ITERATION) identifier_TRAINING_ITERATION
(integer_0) integer_0
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_checkpoint_freq) identifier_checkpoint_freq
)attribute
)binary_operator
(integer_0) integer_0
)comparison_operator
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Whether this trial is due for checkpointing. |
(module
(function_definition
(function_name_evecs) function_name_evecs
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__evecs) identifier__evecs
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_errMsg) identifier_errMsg
(string_"The metric eigenvectors have not been set in the ") string_"The metric eigenvectors have not been set in the "
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_errMsg) identifier_errMsg
(string_"metricParameters instance.") string_"metricParameters instance."
)augmented_assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_errMsg) identifier_errMsg
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__evecs) identifier__evecs
)attribute
)return_statement
)block
)function_definition
)module | The eigenvectors of the parameter space.
This is a Dictionary of numpy.matrix
Each entry in the dictionary is as described under evals.
Each numpy.matrix contains the eigenvectors which, with the eigenvalues
in evals, are needed to rotate the
coordinate system to one in which the metric is the identity matrix. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_task_id) identifier_task_id
(identifier_tasks) identifier_tasks
)tuple_pattern
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_get_task) identifier_get_task
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_task_store) identifier_task_store
)attribute
(identifier_from_dict) identifier_from_dict
)attribute
(argument_list
(identifier_tasks) identifier_tasks
)argument_list
)call
)expression_statement
(for_statement
(tuple_pattern
(identifier_index) identifier_index
(identifier_task) identifier_task
)tuple_pattern
(attribute
(identifier_self) identifier_self
(identifier_task_store) identifier_task_store
)attribute
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_compute) identifier_compute
)attribute
(argument_list
(identifier_index) identifier_index
(identifier_task) identifier_task
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_results) identifier_results
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_server) identifier_server
)attribute
(identifier_task_done) identifier_task_done
)attribute
(argument_list
(tuple
(identifier_task_id) identifier_task_id
(attribute
(identifier_self) identifier_self
(identifier_results) identifier_results
)attribute
)tuple
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This function needs to be called to start the computation. |
(module
(function_definition
(function_name_same_intersection) function_name_same_intersection
(parameters
(identifier_intersection1) identifier_intersection1
(identifier_intersection2) identifier_intersection2
(default_parameter
(identifier_wiggle) identifier_wiggle
(binary_operator
(float_0.5) float_0.5
(integer_40) integer_40
)binary_operator
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_intersection1) identifier_intersection1
(identifier_index_first) identifier_index_first
)attribute
(attribute
(identifier_intersection2) identifier_intersection2
(identifier_index_first) identifier_index_first
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_intersection1) identifier_intersection1
(identifier_index_second) identifier_index_second
)attribute
(attribute
(identifier_intersection2) identifier_intersection2
(identifier_index_second) identifier_index_second
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_allclose) identifier_allclose
)attribute
(argument_list
(list
(attribute
(identifier_intersection1) identifier_intersection1
(identifier_s) identifier_s
)attribute
(attribute
(identifier_intersection1) identifier_intersection1
(identifier_t) identifier_t
)attribute
)list
(list
(attribute
(identifier_intersection2) identifier_intersection2
(identifier_s) identifier_s
)attribute
(attribute
(identifier_intersection2) identifier_intersection2
(identifier_t) identifier_t
)attribute
)list
(keyword_argument
(identifier_atol) identifier_atol
(float_0.0) float_0.0
)keyword_argument
(keyword_argument
(identifier_rtol) identifier_rtol
(identifier_wiggle) identifier_wiggle
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Check if two intersections are close to machine precision.
.. note::
This is a helper used only by :func:`verify_duplicates`, which in turn
is only used by :func:`generic_intersect`.
Args:
intersection1 (.Intersection): The first intersection.
intersection2 (.Intersection): The second intersection.
wiggle (Optional[float]): The amount of relative error allowed
in parameter values.
Returns:
bool: Indicates if the two intersections are the same to
machine precision. |
(module
(function_definition
(function_name_postprocess_monograph) function_name_postprocess_monograph
(parameters
(identifier_marc_xml) identifier_marc_xml
(identifier_mods) identifier_mods
(identifier_uuid) identifier_uuid
(identifier_counter) identifier_counter
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(identifier_dom) identifier_dom
(call
(identifier_double_linked_dom) identifier_double_linked_dom
(argument_list
(identifier_mods) identifier_mods
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_marc_xml) identifier_marc_xml
(identifier_MARCXMLRecord) identifier_MARCXMLRecord
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_marc_xml) identifier_marc_xml
(call
(identifier_MARCXMLRecord) identifier_MARCXMLRecord
(argument_list
(identifier_marc_xml) identifier_marc_xml
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_add_missing_xml_attributes) identifier_add_missing_xml_attributes
(argument_list
(identifier_dom) identifier_dom
(identifier_counter) identifier_counter
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_fix_invalid_type_parameter) identifier_fix_invalid_type_parameter
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(if_statement
(identifier_uuid) identifier_uuid
(block
(expression_statement
(call
(identifier_add_uuid) identifier_add_uuid
(argument_list
(identifier_dom) identifier_dom
(identifier_uuid) identifier_uuid
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_add_marccountry_tag) identifier_add_marccountry_tag
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_add_genre) identifier_add_genre
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_remove_hairs_from_tags) identifier_remove_hairs_from_tags
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_fix_issuance) identifier_fix_issuance
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_fix_location_tag) identifier_fix_location_tag
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_fix_related_item_tag) identifier_fix_related_item_tag
(argument_list
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_fix_missing_electronic_locator_tag) identifier_fix_missing_electronic_locator_tag
(argument_list
(identifier_dom) identifier_dom
(identifier_url) identifier_url
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_fix_missing_lang_tags) identifier_fix_missing_lang_tags
(argument_list
(identifier_marc_xml) identifier_marc_xml
(identifier_dom) identifier_dom
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_dom) identifier_dom
(identifier_prettify) identifier_prettify
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fix bugs in `mods` produced by XSLT template.
Args:
marc_xml (str): Original Aleph record.
mods (str): XML string generated by XSLT template.
uuid (str): UUID of the package.
counter (int): Number of record, is added to XML headers.
url (str): URL of the publication (public or not).
Returns:
str: Updated XML. |
(module
(function_definition
(function_name_install) function_name_install
(parameters
)parameters
(block
(expression_statement
(call
(identifier_sudo) identifier_sudo
(argument_list
(string_"apt-get update -y -q") string_"apt-get update -y -q"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_apt) identifier_apt
(argument_list
(concatenated_string
(string_"nginx libjpeg-dev python-dev python-setuptools git-core ") string_"nginx libjpeg-dev python-dev python-setuptools git-core "
(string_"postgresql libpq-dev memcached supervisor python-pip") string_"postgresql libpq-dev memcached supervisor python-pip"
)concatenated_string
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(binary_operator
(string_"mkdir -p /home/%s/logs") string_"mkdir -p /home/%s/logs"
(attribute
(identifier_env) identifier_env
(identifier_user) identifier_user
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_sudo) identifier_sudo
(argument_list
(string_"pip install -U pip virtualenv virtualenvwrapper mercurial") string_"pip install -U pip virtualenv virtualenvwrapper mercurial"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(binary_operator
(string_"mkdir -p %s") string_"mkdir -p %s"
(attribute
(identifier_env) identifier_env
(identifier_venv_home) identifier_venv_home
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(binary_operator
(string_"echo 'export WORKON_HOME=%s' >> /home/%s/.bashrc") string_"echo 'export WORKON_HOME=%s' >> /home/%s/.bashrc"
(tuple
(attribute
(identifier_env) identifier_env
(identifier_venv_home) identifier_venv_home
)attribute
(attribute
(identifier_env) identifier_env
(identifier_user) identifier_user
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(binary_operator
(concatenated_string
(string_"echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ") string_"echo 'source /usr/local/bin/virtualenvwrapper.sh' >> "
(string_"/home/%s/.bashrc") string_"/home/%s/.bashrc"
)concatenated_string
(attribute
(identifier_env) identifier_env
(identifier_user) identifier_user
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(identifier_green) identifier_green
(argument_list
(concatenated_string
(string_"Successfully set up git, mercurial, pip, virtualenv, ") string_"Successfully set up git, mercurial, pip, virtualenv, "
(string_"supervisor, memcached.") string_"supervisor, memcached."
)concatenated_string
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Installs the base system and Python requirements for the entire server. |
(module
(function_definition
(function_name_search_weekday) function_name_search_weekday
(parameters
(identifier_weekday) identifier_weekday
(identifier_jd) identifier_jd
(identifier_direction) identifier_direction
(identifier_offset) identifier_offset
)parameters
(block
(return_statement
(call
(identifier_weekday_before) identifier_weekday_before
(argument_list
(identifier_weekday) identifier_weekday
(binary_operator
(identifier_jd) identifier_jd
(parenthesized_expression
(binary_operator
(identifier_direction) identifier_direction
(identifier_offset) identifier_offset
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determine the Julian date for the next or previous weekday |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_friendly_name) identifier_friendly_name
(None) None
)default_parameter
(default_parameter
(identifier_description) identifier_description
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(identifier_datasets_insert) identifier_datasets_insert
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__name_parts) identifier__name_parts
)attribute
(keyword_argument
(identifier_friendly_name) identifier_friendly_name
(identifier_friendly_name) identifier_friendly_name
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(identifier_description) identifier_description
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(identifier_e) identifier_e
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(string_'selfLink') string_'selfLink'
(identifier_response) identifier_response
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_"Could not create dataset %s") string_"Could not create dataset %s"
(attribute
(identifier_self) identifier_self
(identifier__full_name) identifier__full_name
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Creates the Dataset with the specified friendly name and description.
Args:
friendly_name: (optional) the friendly name for the dataset if it is being created.
description: (optional) a description for the dataset if it is being created.
Returns:
The Dataset.
Raises:
Exception if the Dataset could not be created. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.