sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_interactive) function_name_interactive
(parameters
(identifier_outdir) identifier_outdir
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Building your Blended files into a website!") string_"Building your Blended files into a website!"
)argument_list
)call
)expression_statement
(global_statement
(identifier_outdir_type) identifier_outdir_type
)global_statement
(expression_statement
(assignment
(identifier_outdir_type) identifier_outdir_type
(identifier_outdir) identifier_outdir
)assignment
)expression_statement
(expression_statement
(call
(identifier_reload) identifier_reload
(argument_list
(identifier_sys) identifier_sys
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_setdefaultencoding) identifier_setdefaultencoding
)attribute
(argument_list
(string_'utf8') string_'utf8'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_build_files) identifier_build_files
(argument_list
(identifier_outdir) identifier_outdir
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Watching the content and templates directories for changes, press CTRL+C to stop...\n") string_"Watching the content and templates directories for changes, press CTRL+C to stop...\n"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_w) identifier_w
(call
(identifier_Watcher) identifier_Watcher
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_w) identifier_w
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Blends the generated files and outputs a HTML website on file change |
(module
(function_definition
(function_name__compile_and_collapse) function_name__compile_and_collapse
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__real_regex) identifier__real_regex
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__real_re_compile) identifier__real_re_compile
)attribute
(argument_list
(list_splat
(attribute
(identifier_self) identifier_self
(identifier__regex_args) identifier__regex_args
)attribute
)list_splat
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__regex_kwargs) identifier__regex_kwargs
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_attr) identifier_attr
(attribute
(identifier_self) identifier_self
(identifier__regex_attributes_to_copy) identifier__regex_attributes_to_copy
)attribute
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_attr) identifier_attr
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__real_regex) identifier__real_regex
)attribute
(identifier_attr) identifier_attr
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Actually compile the requested regex |
(module
(function_definition
(function_name_silent_execute) function_name_silent_execute
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kernel_client) identifier_kernel_client
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(identifier_to_text_string) identifier_to_text_string
(argument_list
(identifier_code) identifier_code
)argument_list
)call
(keyword_argument
(identifier_silent) identifier_silent
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Execute code in the kernel without increasing the prompt |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_distributed_logger) identifier_distributed_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Stopping metrics aggregator') string_'Stopping metrics aggregator'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_process) identifier_process
)attribute
(identifier_terminate) identifier_terminate
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_process) identifier_process
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_distributed_logger) identifier_distributed_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Stopped metrics aggregator') string_'Stopped metrics aggregator'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Terminates the forked process.
Only valid if started as a fork, because... well you wouldn't get here otherwise.
:return: |
(module
(function_definition
(function_name_impute_knn) function_name_impute_knn
(parameters
(identifier_df) identifier_df
(default_parameter
(identifier_k) identifier_k
(integer_3) integer_3
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_imputed_matrix) identifier_imputed_matrix
(call
(attribute
(call
(identifier_KNN) identifier_KNN
(argument_list
(keyword_argument
(identifier_k) identifier_k
(identifier_k) identifier_k
)keyword_argument
)argument_list
)call
(identifier_complete) identifier_complete
)attribute
(argument_list
(attribute
(identifier_df) identifier_df
(identifier_values) identifier_values
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_imputed_df) identifier_imputed_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(identifier_imputed_matrix) identifier_imputed_matrix
(attribute
(identifier_df) identifier_df
(identifier_index) identifier_index
)attribute
(attribute
(identifier_df) identifier_df
(identifier_columns) identifier_columns
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_imputed_df) identifier_imputed_df
)return_statement
)block
)function_definition
)module | Nearest neighbour imputations which weights samples using the mean squared difference on features for which two rows both have observed data.
:param df: The input dataframe that contains missing values
:param k: The number of neighbours
:return: the imputed dataframe |
(module
(function_definition
(function_name_vectorize) function_name_vectorize
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)decorator
(function_definition
(function_name_vectorized_function) function_name_vectorized_function
(parameters
(identifier_values) identifier_values
(list_splat_pattern
(identifier_vargs) identifier_vargs
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(list_comprehension
(call
(identifier_fn) identifier_fn
(argument_list
(identifier_value) identifier_value
(list_splat
(identifier_vargs) identifier_vargs
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(for_in_clause
(identifier_value) identifier_value
(identifier_values) identifier_values
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_vectorized_function) identifier_vectorized_function
)return_statement
)block
)function_definition
)module | Allows a method to accept a list argument, but internally deal only
with a single item of that list. |
(module
(function_definition
(function_name_list_nodes) function_name_list_nodes
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nodes) identifier_nodes
(call
(identifier_list_nodes_full) identifier_list_nodes_full
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_node) identifier_node
(identifier_nodes) identifier_nodes
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_node) identifier_node
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_prop) identifier_prop
(expression_list
(string_'id') string_'id'
(string_'image') string_'image'
(string_'size') string_'size'
(string_'state') string_'state'
(string_'private_ips') string_'private_ips'
(string_'public_ips') string_'public_ips'
)expression_list
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(identifier_node) identifier_node
)subscript
(identifier_prop) identifier_prop
)subscript
(subscript
(subscript
(identifier_nodes) identifier_nodes
(identifier_node) identifier_node
)subscript
(identifier_prop) identifier_prop
)subscript
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Return basic data on nodes |
(module
(function_definition
(function_name_registration_function_for_optionable) function_name_registration_function_for_optionable
(parameters
(identifier_self) identifier_self
(identifier_optionable_class) identifier_optionable_class
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__assert_not_frozen) identifier__assert_not_frozen
)attribute
(argument_list
)argument_list
)call
)expression_statement
(function_definition
(function_name_register) function_name_register
(parameters
(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
(subscript
(identifier_kwargs) identifier_kwargs
(string_'registering_class') string_'registering_class'
)subscript
(identifier_optionable_class) identifier_optionable_class
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_register) identifier_register
)attribute
(argument_list
(attribute
(identifier_optionable_class) identifier_optionable_class
(identifier_options_scope) identifier_options_scope
)attribute
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(assignment
(attribute
(identifier_register) identifier_register
(identifier_bootstrap) identifier_bootstrap
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_bootstrap_option_values) identifier_bootstrap_option_values
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_register) identifier_register
(identifier_scope) identifier_scope
)attribute
(attribute
(identifier_optionable_class) identifier_optionable_class
(identifier_options_scope) identifier_options_scope
)attribute
)assignment
)expression_statement
(return_statement
(identifier_register) identifier_register
)return_statement
)block
)function_definition
)module | Returns a function for registering options on the given scope. |
(module
(function_definition
(function_name_clear_cache_delete_selected) function_name_clear_cache_delete_selected
(parameters
(identifier_modeladmin) identifier_modeladmin
(identifier_request) identifier_request
(identifier_queryset) identifier_queryset
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_delete_selected) identifier_delete_selected
(argument_list
(identifier_modeladmin) identifier_modeladmin
(identifier_request) identifier_request
(identifier_queryset) identifier_queryset
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_result) identifier_result
)not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_modeladmin) identifier_modeladmin
(string_'invalidate_cache') string_'invalidate_cache'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_modeladmin) identifier_modeladmin
(identifier_invalidate_cache) identifier_invalidate_cache
)attribute
(argument_list
(keyword_argument
(identifier_queryset) identifier_queryset
(identifier_queryset) identifier_queryset
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | A delete action that will invalidate cache after being called. |
(module
(function_definition
(function_name__validate_all_tags_are_used) function_name__validate_all_tags_are_used
(parameters
(identifier_metadata) identifier_metadata
)parameters
(block
(expression_statement
(assignment
(identifier_tag_names) identifier_tag_names
(call
(identifier_set) identifier_set
(argument_list
(list_comprehension
(identifier_tag_name) identifier_tag_name
(for_in_clause
(pattern_list
(identifier_tag_name) identifier_tag_name
(identifier__) identifier__
)pattern_list
(attribute
(identifier_metadata) identifier_metadata
(identifier_tags) identifier_tags
)attribute
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filter_arg_names) identifier_filter_arg_names
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_location) identifier_location
(identifier__) identifier__
)pattern_list
(attribute
(identifier_metadata) identifier_metadata
(identifier_registered_locations) identifier_registered_locations
)attribute
(block
(for_statement
(identifier_filter_info) identifier_filter_info
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_get_filter_infos) identifier_get_filter_infos
)attribute
(argument_list
(identifier_location) identifier_location
)argument_list
)call
(block
(for_statement
(identifier_filter_arg) identifier_filter_arg
(attribute
(identifier_filter_info) identifier_filter_info
(identifier_args) identifier_args
)attribute
(block
(if_statement
(call
(identifier_is_tag_argument) identifier_is_tag_argument
(argument_list
(identifier_filter_arg) identifier_filter_arg
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_filter_arg_names) identifier_filter_arg_names
(identifier_add) identifier_add
)attribute
(argument_list
(call
(identifier_get_directive_argument_name) identifier_get_directive_argument_name
(argument_list
(identifier_filter_arg) identifier_filter_arg
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_unused_tags) identifier_unused_tags
(binary_operator
(identifier_tag_names) identifier_tag_names
(identifier_filter_arg_names) identifier_filter_arg_names
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_unused_tags) identifier_unused_tags
(block
(raise_statement
(call
(identifier_GraphQLCompilationError) identifier_GraphQLCompilationError
(argument_list
(call
(attribute
(concatenated_string
(string_u'This GraphQL query contains @tag directives whose values ') string_u'This GraphQL query contains @tag directives whose values '
(string_u'are not used: {}. This is not allowed. Please either use ') string_u'are not used: {}. This is not allowed. Please either use '
(string_u'them in a filter or remove them entirely.') string_u'them in a filter or remove them entirely.'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_unused_tags) identifier_unused_tags
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Ensure all tags are used in some filter. |
(module
(function_definition
(function_name_sample) function_name_sample
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_interval) identifier_interval
)parameters
(block
(expression_statement
(assignment
(identifier_data_slice) identifier_data_slice
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_data) identifier_data
(block
(if_statement
(comparison_operator
(string_'_valid') string_'_valid'
(identifier_key) identifier_key
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(binary_operator
(list
(call
(identifier_slice) identifier_slice
(argument_list
(None) None
)argument_list
)call
)list
(attribute
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(identifier_ndim) identifier_ndim
)attribute
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_index) identifier_index
(integer_0) integer_0
)subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rng) identifier_rng
)attribute
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(subscript
(attribute
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_index) identifier_index
(integer_0) integer_0
)subscript
(call
(identifier_slice) identifier_slice
(argument_list
(subscript
(identifier_index) identifier_index
(integer_0) integer_0
)subscript
(binary_operator
(subscript
(identifier_index) identifier_index
(integer_0) integer_0
)subscript
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_tdim) identifier_tdim
(subscript
(attribute
(identifier_self) identifier_self
(identifier__time) identifier__time
)attribute
(identifier_key) identifier_key
)subscript
(block
(expression_statement
(assignment
(subscript
(identifier_index) identifier_index
(identifier_tdim) identifier_tdim
)subscript
(identifier_interval) identifier_interval
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_data_slice) identifier_data_slice
(identifier_key) identifier_key
)subscript
(subscript
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)subscript
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_data_slice) identifier_data_slice
)return_statement
)block
)function_definition
)module | Sample a patch from the data object
Parameters
----------
data : dict
A data dict as produced by pumpp.Pump.transform
interval : slice
The time interval to sample
Returns
-------
data_slice : dict
`data` restricted to `interval`. |
(module
(function_definition
(function_name_ilsr_pairwise_dense) function_name_ilsr_pairwise_dense
(parameters
(identifier_comp_mat) identifier_comp_mat
(default_parameter
(identifier_alpha) identifier_alpha
(float_0.0) float_0.0
)default_parameter
(default_parameter
(identifier_initial_params) identifier_initial_params
(None) None
)default_parameter
(default_parameter
(identifier_max_iter) identifier_max_iter
(integer_100) integer_100
)default_parameter
(default_parameter
(identifier_tol) identifier_tol
(float_1e-8) float_1e-8
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_fun) identifier_fun
(call
(attribute
(identifier_functools) identifier_functools
(identifier_partial) identifier_partial
)attribute
(argument_list
(identifier_lsr_pairwise_dense) identifier_lsr_pairwise_dense
(keyword_argument
(identifier_comp_mat) identifier_comp_mat
(identifier_comp_mat) identifier_comp_mat
)keyword_argument
(keyword_argument
(identifier_alpha) identifier_alpha
(identifier_alpha) identifier_alpha
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__ilsr) identifier__ilsr
(argument_list
(identifier_fun) identifier_fun
(identifier_initial_params) identifier_initial_params
(identifier_max_iter) identifier_max_iter
(identifier_tol) identifier_tol
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute the ML estimate of model parameters given dense data.
This function computes the maximum-likelihood (ML) estimate of model
parameters given dense pairwise-comparison data.
The data is described by a pairwise-comparison matrix ``comp_mat`` such
that ``comp_mat[i,j]`` contains the number of times that item ``i`` wins
against item ``j``.
In comparison to :func:`~choix.ilsr_pairwise`, this function is
particularly efficient for dense pairwise-comparison datasets (i.e.,
containing many comparisons for a large fraction of item pairs).
The transition rates of the LSR Markov chain are initialized with
``alpha``. When ``alpha > 0``, this corresponds to a form of regularization
(see :ref:`regularization` for details).
Parameters
----------
comp_mat : np.array
2D square matrix describing the pairwise-comparison outcomes.
alpha : float, optional
Regularization parameter.
initial_params : array_like, optional
Parameters used to initialize the iterative procedure.
max_iter : int, optional
Maximum number of iterations allowed.
tol : float, optional
Maximum L1-norm of the difference between successive iterates to
declare convergence.
Returns
-------
params : numpy.ndarray
The ML estimate of model parameters. |
(module
(function_definition
(function_name_sam_readline) function_name_sam_readline
(parameters
(identifier_sock) identifier_sock
(default_parameter
(identifier_partial) identifier_partial
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(string_b'') string_b''
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exception) identifier_exception
(None) None
)assignment
)expression_statement
(while_statement
(True) True
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_sock) identifier_sock
(identifier_recv) identifier_recv
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_c) identifier_c
)not_operator
(block
(raise_statement
(call
(identifier_EOFError) identifier_EOFError
(argument_list
(binary_operator
(string_'SAM connection died. Partial response %r %r') string_'SAM connection died. Partial response %r %r'
(tuple
(identifier_partial) identifier_partial
(identifier_response) identifier_response
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(identifier_c) identifier_c
(string_b'\n') string_b'\n'
)comparison_operator
(block
(break_statement
)break_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_response) identifier_response
(identifier_c) identifier_c
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_BlockingIOError) identifier_BlockingIOError
(attribute
(identifier_pysocket) identifier_pysocket
(identifier_timeout) identifier_timeout
)attribute
)tuple
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(identifier_partial) identifier_partial
(None) None
)comparison_operator
(block
(raise_statement
(identifier_e) identifier_e
)raise_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_exception) identifier_exception
(identifier_e) identifier_e
)assignment
)expression_statement
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)while_statement
(if_statement
(comparison_operator
(identifier_partial) identifier_partial
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(tuple
(binary_operator
(identifier_partial) identifier_partial
(call
(attribute
(identifier_response) identifier_response
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)binary_operator
(identifier_exception) identifier_exception
)tuple
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | read a line from a sam control socket |
(module
(function_definition
(function_name__get_token_from_headers) function_name__get_token_from_headers
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_refresh_token) identifier_refresh_token
)parameters
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_headers) identifier_headers
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_authorization_header) identifier_authorization_header
)attribute
(argument_list
)argument_list
)call
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_header) identifier_header
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_header_prefix_key) identifier_header_prefix_key
(string_"authorization_header_prefix") string_"authorization_header_prefix"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_header_prefix) identifier_header_prefix
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_header_prefix_key) identifier_header_prefix_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_header_prefix) identifier_header_prefix
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_prefix) identifier_prefix
(identifier_token) identifier_token
)pattern_list
(call
(attribute
(identifier_header) identifier_header
(identifier_split) identifier_split
)attribute
(argument_list
(string_" ") string_" "
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_prefix) identifier_prefix
(call
(identifier_header_prefix) identifier_header_prefix
(argument_list
)argument_list
)call
)comparison_operator
(block
(raise_statement
(identifier_Exception) identifier_Exception
)raise_statement
)block
)if_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_InvalidAuthorizationHeader) identifier_InvalidAuthorizationHeader
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(identifier_header) identifier_header
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_refresh_token) identifier_refresh_token
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_json) identifier_json
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_refresh_token_name) identifier_refresh_token_name
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_token) identifier_token
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Extract the token if present inside the headers of a request. |
(module
(function_definition
(function_name_content_types) function_name_content_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_EnvironmentContentTypesProxy) identifier_EnvironmentContentTypesProxy
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_space) identifier_space
)attribute
(identifier_id) identifier_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Provides access to content type management methods for content types of an environment.
API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/content-types
:return: :class:`EnvironmentContentTypesProxy <contentful_management.space_content_types_proxy.EnvironmentContentTypesProxy>` object.
:rtype: contentful.space_content_types_proxy.EnvironmentContentTypesProxy
Usage:
>>> space_content_types_proxy = environment.content_types()
<EnvironmentContentTypesProxy space_id="cfexampleapi" environment_id="master"> |
(module
(function_definition
(function_name_tag) function_name_tag
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(attribute
(identifier_self) identifier_self
(identifier__match) identifier__match
)attribute
(argument_list
(attribute
(identifier_text) identifier_text
(identifier_text) identifier_text
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(attribute
(identifier_self) identifier_self
(identifier__resolve_conflicts) identifier__resolve_conflicts
)attribute
(argument_list
(identifier_matches) identifier_matches
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_return_layer) identifier_return_layer
)attribute
(block
(return_statement
(identifier_matches) identifier_matches
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_text) identifier_text
(attribute
(identifier_self) identifier_self
(identifier_layer_name) identifier_layer_name
)attribute
)subscript
(identifier_matches) identifier_matches
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieves list of regex_matches in text.
Parameters
----------
text: Text
The estnltk text object to search for events.
Returns
-------
list of matches |
(module
(function_definition
(function_name_register_error) function_name_register_error
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_code) identifier_code
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_errmsg) identifier_errmsg
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_errmsg) identifier_errmsg
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_errmsg) identifier_errmsg
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_errmsg) identifier_errmsg
)attribute
(identifier_errmsg) identifier_errmsg
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_errmsg) identifier_errmsg
(attribute
(identifier_self) identifier_self
(identifier_errmsg) identifier_errmsg
)attribute
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_errmsg) identifier_errmsg
)attribute
(binary_operator
(string_", ") string_", "
(identifier_errmsg) identifier_errmsg
)binary_operator
)augmented_assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_code) identifier_code
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_exit_code) identifier_exit_code
)attribute
(call
(identifier_max) identifier_max
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_exit_code) identifier_exit_code
)attribute
(identifier_code) identifier_code
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Update the exit code. |
(module
(function_definition
(function_name_update_default_iou_values) function_name_update_default_iou_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(yield
(call
(attribute
(attribute
(attribute
(identifier_gns3server) identifier_gns3server
(identifier_utils) identifier_utils
)attribute
(identifier_asyncio) identifier_asyncio
)attribute
(identifier_subprocess_check_output) identifier_subprocess_check_output
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__path) identifier__path
)attribute
(string_"-h") string_"-h"
(keyword_argument
(identifier_cwd) identifier_cwd
(attribute
(identifier_self) identifier_self
(identifier_working_dir) identifier_working_dir
)attribute
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(True) True
)keyword_argument
)argument_list
)call
)yield
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_"-n <n>\s+Size of nvram in Kb \(default ([0-9]+)KB\)") string_"-n <n>\s+Size of nvram in Kb \(default ([0-9]+)KB\)"
(identifier_output) identifier_output
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_nvram) identifier_nvram
)attribute
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(string_"-m <n>\s+Megabytes of router memory \(default ([0-9]+)MB\)") string_"-m <n>\s+Megabytes of router memory \(default ([0-9]+)MB\)"
(identifier_output) identifier_output
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ram) identifier_ram
)attribute
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_ValueError) identifier_ValueError
(identifier_OSError) identifier_OSError
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_SubprocessError) identifier_SubprocessError
)attribute
)tuple
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_"could not find default RAM and NVRAM values for {}: {}") string_"could not find default RAM and NVRAM values for {}: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__path) identifier__path
)attribute
)argument_list
)call
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Finds the default RAM and NVRAM values for the IOU image. |
(module
(function_definition
(function_name_reflect_well) function_name_reflect_well
(parameters
(identifier_value) identifier_value
(identifier_bounds) identifier_bounds
)parameters
(block
(while_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_bounds) identifier_bounds
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(attribute
(identifier_bounds) identifier_bounds
(identifier__max) identifier__max
)attribute
(identifier_reflect_left) identifier_reflect_left
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(attribute
(identifier_bounds) identifier_bounds
(identifier__min) identifier__min
)attribute
(identifier_reflect_right) identifier_reflect_right
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Given some boundaries, reflects the value until it falls within both
boundaries. This is done iteratively, reflecting left off of the
`boundaries.max`, then right off of the `boundaries.min`, etc.
Parameters
----------
value : float
The value to apply the reflected boundaries to.
bounds : Bounds instance
Boundaries to reflect between. Both `bounds.min` and `bounds.max` must
be instances of `ReflectedBound`, otherwise an AttributeError is
raised.
Returns
-------
float
The value after being reflected between the two bounds. |
(module
(function_definition
(function_name_get_queryset) function_name_get_queryset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_IndexView) identifier_IndexView
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_queryset) identifier_get_queryset
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_search_form) identifier_search_form
(call
(attribute
(identifier_self) identifier_self
(identifier_get_search_form) identifier_get_search_form
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_search_form) identifier_search_form
(identifier_is_valid) identifier_is_valid
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_query_str) identifier_query_str
(call
(attribute
(call
(attribute
(attribute
(identifier_search_form) identifier_search_form
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'q') string_'q'
(string_'') string_''
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_objects) identifier_objects
)attribute
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_query_str) identifier_query_str
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_queryset) identifier_queryset
)return_statement
)block
)function_definition
)module | Returns queryset instance.
:rtype: django.db.models.query.QuerySet. |
(module
(function_definition
(function_name_get_tag_context) function_name_get_tag_context
(parameters
(identifier_name) identifier_name
(identifier_state) identifier_state
)parameters
(block
(expression_statement
(assignment
(identifier_new_contexts) identifier_new_contexts
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ctm) identifier_ctm
(None) None
)assignment
)expression_statement
(while_statement
(True) True
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_ctx_key) identifier_ctx_key
(identifier_name) identifier_name
)pattern_list
(call
(attribute
(identifier_name) identifier_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ctm) identifier_ctm
(call
(attribute
(attribute
(identifier_state) identifier_state
(identifier_context) identifier_context
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_ctx_key) identifier_ctx_key
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(break_statement
)break_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_ctm) identifier_ctm
)not_operator
(block
(break_statement
)break_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_state) identifier_state
(identifier_context) identifier_context
)attribute
(identifier_push) identifier_push
)attribute
(argument_list
(identifier_ctm) identifier_ctm
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_new_contexts) identifier_new_contexts
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_ctm) identifier_ctm
(call
(attribute
(attribute
(identifier_state) identifier_state
(identifier_context) identifier_context
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_new_contexts) identifier_new_contexts
(identifier_ctm) identifier_ctm
)expression_list
)return_statement
)block
)function_definition
)module | Given a tag name, return its associated value as defined in the current
context stack. |
(module
(function_definition
(function_name_sendACK) function_name_sendACK
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_blocknumber) identifier_blocknumber
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"In sendACK, passed blocknumber is %s") string_"In sendACK, passed blocknumber is %s"
(identifier_blocknumber) identifier_blocknumber
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_blocknumber) identifier_blocknumber
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_blocknumber) identifier_blocknumber
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_next_block) identifier_next_block
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"Sending ack to block %d") string_"Sending ack to block %d"
(identifier_blocknumber) identifier_blocknumber
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ackpkt) identifier_ackpkt
(call
(identifier_TftpPacketACK) identifier_TftpPacketACK
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_ackpkt) identifier_ackpkt
(identifier_blocknumber) identifier_blocknumber
)attribute
(identifier_blocknumber) identifier_blocknumber
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_sock) identifier_sock
)attribute
(identifier_sendto) identifier_sendto
)attribute
(argument_list
(attribute
(call
(attribute
(identifier_ackpkt) identifier_ackpkt
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
(identifier_buffer) identifier_buffer
)attribute
(tuple
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_host) identifier_host
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_tidport) identifier_tidport
)attribute
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_last_pkt) identifier_last_pkt
)attribute
(identifier_ackpkt) identifier_ackpkt
)assignment
)expression_statement
)block
)function_definition
)module | This method sends an ack packet to the block number specified. If
none is specified, it defaults to the next_block property in the
parent context. |
(module
(function_definition
(function_name_apply) function_name_apply
(parameters
(identifier_self) identifier_self
(identifier_im) identifier_im
)parameters
(block
(import_from_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_ndimage) identifier_ndimage
(identifier_interpolation) identifier_interpolation
)dotted_name
(dotted_name
(identifier_shift) identifier_shift
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_im) identifier_im
(call
(identifier_rollaxis) identifier_rollaxis
(argument_list
(identifier_im) identifier_im
(attribute
(identifier_self) identifier_self
(identifier_axis) identifier_axis
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_im) identifier_im
(identifier_setflags) identifier_setflags
)attribute
(argument_list
(keyword_argument
(identifier_write) identifier_write
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(for_statement
(identifier_ind) identifier_ind
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(subscript
(attribute
(identifier_im) identifier_im
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_im) identifier_im
(identifier_ind) identifier_ind
)subscript
(call
(identifier_shift) identifier_shift
(argument_list
(subscript
(identifier_im) identifier_im
(identifier_ind) identifier_ind
)subscript
(call
(identifier_map) identifier_map
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(unary_operator
(identifier_x) identifier_x
)unary_operator
)lambda
(subscript
(attribute
(identifier_self) identifier_self
(identifier_delta) identifier_delta
)attribute
(identifier_ind) identifier_ind
)subscript
)argument_list
)call
(keyword_argument
(identifier_mode) identifier_mode
(string_'nearest') string_'nearest'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_im) identifier_im
(call
(identifier_rollaxis) identifier_rollaxis
(argument_list
(identifier_im) identifier_im
(integer_0) integer_0
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_axis) identifier_axis
)attribute
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_im) identifier_im
)return_statement
)block
)function_definition
)module | Apply axis-localized displacements.
Parameters
----------
im : ndarray
The image or volume to shift |
(module
(function_definition
(function_name_render_css) function_name_render_css
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fn) identifier_fn
(None) None
)default_parameter
(default_parameter
(identifier_text) identifier_text
(None) None
)default_parameter
(default_parameter
(identifier_margin) identifier_margin
(string_'') string_''
)default_parameter
(default_parameter
(identifier_indent) identifier_indent
(string_'\t') string_'\t'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_fn) identifier_fn
(boolean_operator
(identifier_fn) identifier_fn
(binary_operator
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_fn) identifier_fn
)attribute
)argument_list
)call
(integer_0) integer_0
)subscript
(string_'.css') string_'.css'
)binary_operator
)boolean_operator
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_curdir) identifier_curdir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(attribute
(identifier_os) identifier_os
(identifier_curdir) identifier_curdir
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(boolean_operator
(identifier_text) identifier_text
(call
(attribute
(identifier_self) identifier_self
(identifier_render_styles) identifier_render_styles
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_text) identifier_text
(string_'') string_''
)comparison_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_sass) identifier_sass
(identifier_compile) identifier_compile
)attribute
(argument_list
(keyword_argument
(identifier_string) identifier_string
(identifier_text) identifier_text
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_curdir) identifier_curdir
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_CSS) identifier_CSS
(argument_list
(keyword_argument
(identifier_fn) identifier_fn
(identifier_fn) identifier_fn
)keyword_argument
(keyword_argument
(identifier_text) identifier_text
(identifier_text) identifier_text
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | output css using the Sass processor |
(module
(function_definition
(function_name_load_spectrum) function_name_load_spectrum
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(import_statement
(dotted_name
(identifier_f311) identifier_f311
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_load_with_classes) identifier_load_with_classes
(argument_list
(identifier_filename) identifier_filename
(call
(attribute
(identifier_f311) identifier_f311
(identifier_classes_sp) identifier_classes_sp
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_f) identifier_f
(block
(return_statement
(attribute
(identifier_f) identifier_f
(identifier_spectrum) identifier_spectrum
)attribute
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Attempts to load spectrum as one of the supported types.
Returns:
a Spectrum, or None |
(module
(function_definition
(function_name_extract_bus_routine) function_name_extract_bus_routine
(parameters
(identifier_page) identifier_page
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_page) identifier_page
(identifier_pq) identifier_pq
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_page) identifier_page
(call
(identifier_pq) identifier_pq
(argument_list
(identifier_page) identifier_page
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_stations) identifier_stations
(call
(identifier_extract_stations) identifier_extract_stations
(argument_list
(identifier_page) identifier_page
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'name') string_'name'
(call
(identifier_extract_routine_name) identifier_extract_routine_name
(argument_list
(identifier_page) identifier_page
)argument_list
)call
)pair
(pair
(string_'stations') string_'stations'
(identifier_stations) identifier_stations
)pair
(pair
(string_'current') string_'current'
(call
(identifier_extract_current_routine) identifier_extract_current_routine
(argument_list
(identifier_page) identifier_page
(identifier_stations) identifier_stations
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Extract bus routine information from page.
:param page: crawled page. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_name) identifier_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'changes') string_'changes'
(dictionary
)dictionary
)pair
(pair
(string_'result') string_'result'
(True) True
)pair
(pair
(string_'comment') string_'comment'
(string_'') string_''
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'changes') string_'changes'
)subscript
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'junos.load') string_'junos.load'
)subscript
(argument_list
(identifier_name) identifier_name
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Loads the configuration provided onto the junos device.
.. code-block:: yaml
Install the mentioned config:
junos:
- load
- path: salt//configs/interface.set
.. code-block:: yaml
Install the mentioned config:
junos:
- load
- template_path: salt//configs/interface.set
- template_vars:
interface_name: lo0
description: Creating interface via SaltStack.
name
Path where the configuration/template file is present. If the file has
a ``*.conf`` extension, the content is treated as text format. If the
file has a ``*.xml`` extension, the content is treated as XML format. If
the file has a ``*.set`` extension, the content is treated as Junos OS
``set`` commands.
overwrite : False
Set to ``True`` if you want this file is to completely replace the
configuration file.
replace : False
Specify whether the configuration file uses "replace:" statements.
Only those statements under the 'replace' tag will be changed.
format:
Determines the format of the contents.
update : False
Compare a complete loaded configuration against the candidate
configuration. For each hierarchy level or configuration object that is
different in the two configurations, the version in the loaded
configuration replaces the version in the candidate configuration. When
the configuration is later committed, only system processes that are
affected by the changed configuration elements parse the new
configuration. This action is supported from PyEZ 2.1 (default = False)
template_vars
Variables to be passed into the template processing engine in addition
to those present in __pillar__, __opts__, __grains__, etc.
You may reference these variables in your template like so:
{{ template_vars["var_name"] }} |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(if_statement
(comparison_operator
(identifier_val) identifier_val
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
)comparison_operator
(block
(return_statement
(expression_list
(True) True
(None) None
)expression_list
)return_statement
)block
(else_clause
(block
(return_statement
(expression_list
(False) False
(binary_operator
(string_"'%s' is not in enum: %s") string_"'%s' is not in enum: %s"
(tuple
(identifier_val) identifier_val
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
)argument_list
)call
)tuple
)binary_operator
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Validates that the val is in the list of values for this Enum.
Returns two element tuple: (bool, string)
- `bool` - True if valid, False if not
- `string` - Description of validation error, or None if valid
:Parameters:
val
Value to validate. Should be a string. |
(module
(function_definition
(function_name_fermi_dist) function_name_fermi_dist
(parameters
(identifier_energy) identifier_energy
(identifier_beta) identifier_beta
)parameters
(block
(expression_statement
(assignment
(identifier_exponent) identifier_exponent
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(binary_operator
(identifier_beta) identifier_beta
(identifier_energy) identifier_energy
)binary_operator
)argument_list
)call
(identifier_clip) identifier_clip
)attribute
(argument_list
(unary_operator
(integer_600) integer_600
)unary_operator
(integer_600) integer_600
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(float_1.) float_1.
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_exp) identifier_exp
)attribute
(argument_list
(identifier_exponent) identifier_exponent
)argument_list
)call
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Fermi Dirac distribution |
(module
(function_definition
(function_name___parse_drac) function_name___parse_drac
(parameters
(identifier_output) identifier_output
)parameters
(block
(expression_statement
(assignment
(identifier_drac) identifier_drac
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_section) identifier_section
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(attribute
(identifier_output) identifier_output
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(attribute
(call
(attribute
(identifier_i) identifier_i
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
(comparison_operator
(string_'=') string_'='
(identifier_i) identifier_i
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_section) identifier_section
(subscript
(identifier_i) identifier_i
(slice
(integer_0) integer_0
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_drac) identifier_drac
(identifier_section) identifier_section
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_i) identifier_i
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
(comparison_operator
(string_'=') string_'='
(identifier_i) identifier_i
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(identifier_section) identifier_section
(identifier_drac) identifier_drac
)comparison_operator
(block
(expression_statement
(call
(attribute
(subscript
(identifier_drac) identifier_drac
(identifier_section) identifier_section
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_dict) identifier_dict
(argument_list
(list
(list_comprehension
(call
(attribute
(identifier_prop) identifier_prop
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_prop) identifier_prop
(call
(attribute
(identifier_i) identifier_i
(identifier_split) identifier_split
)attribute
(argument_list
(string_'=') string_'='
)argument_list
)call
)for_in_clause
)list_comprehension
)list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_section) identifier_section
(call
(attribute
(identifier_i) identifier_i
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_section) identifier_section
(identifier_drac) identifier_drac
)comparison_operator
(identifier_section) identifier_section
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_drac) identifier_drac
(identifier_section) identifier_section
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_drac) identifier_drac
)return_statement
)block
)function_definition
)module | Parse Dell DRAC output |
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
(identifier_handler) identifier_handler
(identifier_result) identifier_result
)parameters
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(conditional_expression
(attribute
(identifier_handler) identifier_handler
(identifier___func__) identifier___func__
)attribute
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_handler) identifier_handler
(string_'__func__') string_'__func__'
)argument_list
)call
(identifier_handler) identifier_handler
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_annotation) identifier_annotation
(call
(attribute
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_handler) identifier_handler
(string_'__annotations__') string_'__annotations__'
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'return') string_'return'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_annotation) identifier_annotation
(block
(return_statement
(tuple
(identifier_annotation) identifier_annotation
(identifier_result) identifier_result
)tuple
)return_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Transform the value returned by the controller endpoint.
This extension transforms returned values if the endpoint has a return type annotation. |
(module
(function_definition
(function_name_to_node) function_name_to_node
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_Node) identifier_Node
)argument_list
)call
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(call
(identifier_Node) identifier_Node
(argument_list
(string_'string') string_'string'
(keyword_argument
(identifier_value) identifier_value
(identifier_value) identifier_value
)keyword_argument
(keyword_argument
(identifier_pseudo_type) identifier_pseudo_type
(string_'String') string_'String'
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_int) identifier_int
)argument_list
)call
(block
(return_statement
(call
(identifier_Node) identifier_Node
(argument_list
(string_'int') string_'int'
(keyword_argument
(identifier_value) identifier_value
(identifier_value) identifier_value
)keyword_argument
(keyword_argument
(identifier_pseudo_type) identifier_pseudo_type
(string_'Int') string_'Int'
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_bool) identifier_bool
)argument_list
)call
(block
(return_statement
(call
(identifier_Node) identifier_Node
(argument_list
(string_'boolean') string_'boolean'
(keyword_argument
(identifier_value) identifier_value
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_pseudo_type) identifier_pseudo_type
(string_'Boolean') string_'Boolean'
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_float) identifier_float
)argument_list
)call
(block
(return_statement
(call
(identifier_Node) identifier_Node
(argument_list
(string_'float') string_'float'
(keyword_argument
(identifier_value) identifier_value
(identifier_value) identifier_value
)keyword_argument
(keyword_argument
(identifier_pseudo_type) identifier_pseudo_type
(string_'Float') string_'Float'
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_Node) identifier_Node
(argument_list
(string_'null') string_'null'
(keyword_argument
(identifier_pseudo_type) identifier_pseudo_type
(string_'Void') string_'Void'
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(binary_operator
(integer_1) integer_1
(integer_0) integer_0
)binary_operator
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Expand to a literal node if a basic type otherwise just returns the node |
(module
(function_definition
(function_name_extract_fieldnames) function_name_extract_fieldnames
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(call
(identifier_get_fields) identifier_get_fields
(argument_list
(identifier_config) identifier_config
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_x) identifier_x
(identifier_fields) identifier_fields
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_fields) identifier_fields
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_x) identifier_x
(string_'_') string_'_'
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(binary_operator
(call
(attribute
(identifier_fields) identifier_fields
(identifier_count) identifier_count
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_fields) identifier_fields
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_fields) identifier_fields
)return_statement
)block
)function_definition
)module | Function to return a list of unique field names from the config file
:param config: The configuration file that contains the specification of the extractor
:return: A list of field names from the config file |
(module
(function_definition
(function_name_write_config) function_name_write_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(call
(identifier_open) identifier_open
(argument_list
(identifier_CONFIG_FILE) identifier_CONFIG_FILE
(string_'w') string_'w'
)argument_list
)call
(keyword_argument
(identifier_indent) identifier_indent
(integer_4) integer_4
)keyword_argument
(keyword_argument
(identifier_separators) identifier_separators
(tuple
(string_',') string_','
(string_': ') string_': '
)tuple
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Write the configuration to a local file.
:return: Boolean if successful |
(module
(function_definition
(function_name_list_records) function_name_list_records
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_file_const) identifier_file_const
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_r) identifier_r
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dataset) identifier__dataset
)attribute
(identifier_files) identifier_files
)attribute
(block
(if_statement
(boolean_operator
(identifier_file_const) identifier_file_const
(comparison_operator
(attribute
(identifier_r) identifier_r
(identifier_minor_type) identifier_minor_type
)attribute
(identifier_file_const) identifier_file_const
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_instance_from_name) identifier_instance_from_name
)attribute
(argument_list
(attribute
(identifier_r) identifier_r
(identifier_path) identifier_path
)attribute
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Iterate through the file records |
(module
(function_definition
(function_name__validate_install) function_name__validate_install
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_printer) identifier_printer
)attribute
(argument_list
(string_'Checking heroku installation ... ') string_'Checking heroku installation ... '
(keyword_argument
(identifier_flush) identifier_flush
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(import_from_statement
(dotted_name
(identifier_os) identifier_os
)dotted_name
(dotted_name
(identifier_devnull) identifier_devnull
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_subprocess) identifier_subprocess
)dotted_name
(dotted_name
(identifier_call) identifier_call
)dotted_name
(dotted_name
(identifier_check_output) identifier_check_output
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_sys_command) identifier_sys_command
(string_'heroku --version') string_'heroku --version'
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier_call) identifier_call
(argument_list
(identifier_sys_command) identifier_sys_command
(keyword_argument
(identifier_shell) identifier_shell
(True) True
)keyword_argument
(keyword_argument
(identifier_stdout) identifier_stdout
(call
(identifier_open) identifier_open
(argument_list
(identifier_devnull) identifier_devnull
(string_'wb') string_'wb'
)argument_list
)call
)keyword_argument
)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
(identifier_self) identifier_self
(identifier_printer) identifier_printer
)attribute
(argument_list
(string_'ERROR') string_'ERROR'
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'"heroku cli" not installed. GoTo: https://devcenter.heroku.com/articles/heroku-cli') string_'"heroku cli" not installed. GoTo: https://devcenter.heroku.com/articles/heroku-cli'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_printer) identifier_printer
)attribute
(argument_list
(string_'done.') string_'done.'
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | a method to validate heroku is installed |
(module
(function_definition
(function_name_set_status) function_name_set_status
(parameters
(identifier_self) identifier_self
(identifier_enabled) identifier_enabled
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___manual_update_time) identifier___manual_update_time
)attribute
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_enabled) identifier_enabled
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__controller) identifier__controller
)attribute
(identifier_command) identifier_command
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
(string_'auto_conditioning_start') string_'auto_conditioning_start'
(keyword_argument
(identifier_wake_if_asleep) identifier_wake_if_asleep
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(subscript
(subscript
(identifier_data) identifier_data
(string_'response') string_'response'
)subscript
(string_'result') string_'result'
)subscript
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___is_auto_conditioning_on) identifier___is_auto_conditioning_on
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___is_climate_on) identifier___is_climate_on
)attribute
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__controller) identifier__controller
)attribute
(identifier_command) identifier_command
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
(string_'auto_conditioning_stop') string_'auto_conditioning_stop'
(keyword_argument
(identifier_wake_if_asleep) identifier_wake_if_asleep
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(subscript
(subscript
(identifier_data) identifier_data
(string_'response') string_'response'
)subscript
(string_'result') string_'result'
)subscript
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___is_auto_conditioning_on) identifier___is_auto_conditioning_on
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___is_climate_on) identifier___is_climate_on
)attribute
(False) False
)assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update) identifier_update
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Enable or disable the HVAC. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_password_dict) identifier_password_dict
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_config) identifier_config
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"No configuration file available. Cannot load password list.") string_"No configuration file available. Cannot load password list."
)argument_list
)call
)expression_statement
)block
(elif_clause
(not_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_has_section) identifier_has_section
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__section) identifier__section
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(string_"No [%s] section in the configuration file. Cannot load password list.") string_"No [%s] section in the configuration file. Cannot load password list."
(attribute
(identifier_self) identifier_self
(identifier__section) identifier__section
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"Start reading the [%s] section in the configuration file") string_"Start reading the [%s] section in the configuration file"
(attribute
(identifier_self) identifier_self
(identifier__section) identifier__section
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_password_dict) identifier_password_dict
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(identifier_config) identifier_config
(identifier_items) identifier_items
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__section) identifier__section
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"%s password(s) loaded from the configuration file") string_"%s password(s) loaded from the configuration file"
(call
(identifier_len) identifier_len
(argument_list
(identifier_password_dict) identifier_password_dict
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"Password dictionary: %s") string_"Password dictionary: %s"
(identifier_password_dict) identifier_password_dict
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_password_dict) identifier_password_dict
)return_statement
)block
)function_definition
)module | Load the password from the configuration file. |
(module
(function_definition
(function_name_kernels_push_cli) function_name_kernels_push_cli
(parameters
(identifier_self) identifier_self
(identifier_folder) identifier_folder
)parameters
(block
(expression_statement
(assignment
(identifier_folder) identifier_folder
(boolean_operator
(identifier_folder) identifier_folder
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_kernels_push) identifier_kernels_push
)attribute
(argument_list
(identifier_folder) identifier_folder
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Kernel push error: see previous output') string_'Kernel push error: see previous output'
)argument_list
)call
)expression_statement
)block
(elif_clause
(not_operator
(attribute
(identifier_result) identifier_result
(identifier_error) identifier_error
)attribute
)not_operator
(block
(if_statement
(attribute
(identifier_result) identifier_result
(identifier_invalidTags) identifier_invalidTags
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(concatenated_string
(string_'The following are not valid tags and could not be added ') string_'The following are not valid tags and could not be added '
(string_'to the kernel: ') string_'to the kernel: '
)concatenated_string
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_invalidTags) identifier_invalidTags
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_result) identifier_result
(identifier_invalidDatasetSources) identifier_invalidDatasetSources
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(concatenated_string
(string_'The following are not valid dataset sources and could not ') string_'The following are not valid dataset sources and could not '
(string_'be added to the kernel: ') string_'be added to the kernel: '
)concatenated_string
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_invalidDatasetSources) identifier_invalidDatasetSources
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_result) identifier_result
(identifier_invalidCompetitionSources) identifier_invalidCompetitionSources
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(concatenated_string
(string_'The following are not valid competition sources and could ') string_'The following are not valid competition sources and could '
(string_'not be added to the kernel: ') string_'not be added to the kernel: '
)concatenated_string
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_invalidCompetitionSources) identifier_invalidCompetitionSources
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_result) identifier_result
(identifier_invalidKernelSources) identifier_invalidKernelSources
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(concatenated_string
(string_'The following are not valid kernel sources and could not ') string_'The following are not valid kernel sources and could not '
(string_'be added to the kernel: ') string_'be added to the kernel: '
)concatenated_string
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_invalidKernelSources) identifier_invalidKernelSources
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_result) identifier_result
(identifier_versionNumber) identifier_versionNumber
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(concatenated_string
(string_'Kernel version %s successfully pushed. Please check ') string_'Kernel version %s successfully pushed. Please check '
(string_'progress at %s') string_'progress at %s'
)concatenated_string
(tuple
(attribute
(identifier_result) identifier_result
(identifier_versionNumber) identifier_versionNumber
)attribute
(attribute
(identifier_result) identifier_result
(identifier_url) identifier_url
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(concatenated_string
(string_'Kernel version successfully pushed. Please check ') string_'Kernel version successfully pushed. Please check '
(string_'progress at %s') string_'progress at %s'
)concatenated_string
(attribute
(identifier_result) identifier_result
(identifier_url) identifier_url
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'Kernel push error: ') string_'Kernel push error: '
(attribute
(identifier_result) identifier_result
(identifier_error) identifier_error
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | client wrapper for kernels_push, with same arguments. |
(module
(function_definition
(function_name_startAll) function_name_startAll
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Starting all workers...") string_"Starting all workers..."
)argument_list
)call
)expression_statement
(for_statement
(identifier_worker) identifier_worker
(call
(attribute
(identifier_self) identifier_self
(identifier_getWorkers) identifier_getWorkers
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_process) identifier_process
(call
(attribute
(identifier_self) identifier_self
(identifier_getWorker) identifier_getWorker
)attribute
(argument_list
(identifier_worker) identifier_worker
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"Starting {0}") string_"Starting {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_process) identifier_process
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_process) identifier_process
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Started all workers") string_"Started all workers"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start all registered Workers. |
(module
(function_definition
(function_name__read_channel) function_name__read_channel
(parameters
(identifier_channel) identifier_channel
(identifier_stream) identifier_stream
(identifier_start) identifier_start
(identifier_duration) identifier_duration
)parameters
(block
(expression_statement
(assignment
(identifier_channel_type) identifier_channel_type
(call
(attribute
(identifier_lalframe) identifier_lalframe
(identifier_FrStreamGetTimeSeriesType) identifier_FrStreamGetTimeSeriesType
)attribute
(argument_list
(identifier_channel) identifier_channel
(identifier_stream) identifier_stream
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_read_func) identifier_read_func
(subscript
(subscript
(identifier__fr_type_map) identifier__fr_type_map
(identifier_channel_type) identifier_channel_type
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d_type) identifier_d_type
(subscript
(subscript
(identifier__fr_type_map) identifier__fr_type_map
(identifier_channel_type) identifier_channel_type
)subscript
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_read_func) identifier_read_func
(argument_list
(identifier_stream) identifier_stream
(identifier_channel) identifier_channel
(identifier_start) identifier_start
(identifier_duration) identifier_duration
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_TimeSeries) identifier_TimeSeries
(argument_list
(attribute
(attribute
(identifier_data) identifier_data
(identifier_data) identifier_data
)attribute
(identifier_data) identifier_data
)attribute
(keyword_argument
(identifier_delta_t) identifier_delta_t
(attribute
(identifier_data) identifier_data
(identifier_deltaT) identifier_deltaT
)attribute
)keyword_argument
(keyword_argument
(identifier_epoch) identifier_epoch
(identifier_start) identifier_start
)keyword_argument
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_d_type) identifier_d_type
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get channel using lalframe |
(module
(function_definition
(function_name_any_validator) function_name_any_validator
(parameters
(identifier_obj) identifier_obj
(identifier_validators) identifier_validators
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_validators) identifier_validators
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"any_validator requires at least 2 validator. Only got ") string_"any_validator requires at least 2 validator. Only got "
(string_"{0}") string_"{0}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_validators) identifier_validators
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_errors) identifier_errors
(call
(identifier_ErrorDict) identifier_ErrorDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_validator) identifier_validator
)pattern_list
(call
(attribute
(identifier_validators) identifier_validators
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(identifier_validator) identifier_validator
(argument_list
(identifier_obj) identifier_obj
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_ValidationError) identifier_ValidationError
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(subscript
(identifier_errors) identifier_errors
(identifier_key) identifier_key
)subscript
(attribute
(identifier_err) identifier_err
(identifier_detail) identifier_detail
)attribute
)assignment
)expression_statement
)block
)except_clause
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)try_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_errors) identifier_errors
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_error) identifier_error
(subscript
(call
(attribute
(identifier_errors) identifier_errors
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValidationError) identifier_ValidationError
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_raise_) identifier_raise_
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)for_statement
)block
)function_definition
)module | Attempt multiple validators on an object.
- If any pass, then all validation passes.
- Otherwise, raise all of the errors. |
(module
(function_definition
(function_name_rotate) function_name_rotate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__ring) identifier__ring
)attribute
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
)subscript
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Rotate the kill ring, then yank back the new top.
Returns
-------
A text string or None. |
(module
(function_definition
(function_name_export_gpx_file) function_name_export_gpx_file
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_gpx) identifier_gpx
(call
(identifier_create_elem) identifier_create_elem
(argument_list
(string_'gpx') string_'gpx'
(identifier_GPX_ELEM_ATTRIB) identifier_GPX_ELEM_ATTRIB
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(identifier_bounds) identifier_bounds
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(identifier_bounds) identifier_bounds
)attribute
(list_comprehension
(identifier_j) identifier_j
(for_in_clause
(identifier_i) identifier_i
(identifier_self) identifier_self
)for_in_clause
(for_in_clause
(identifier_j) identifier_j
(identifier_i) identifier_i
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_gpx) identifier_gpx
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)attribute
(identifier_togpx) identifier_togpx
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_track) identifier_track
(call
(identifier_create_elem) identifier_create_elem
(argument_list
(string_'trk') string_'trk'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_gpx) identifier_gpx
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_track) identifier_track
)argument_list
)call
)expression_statement
(for_statement
(identifier_segment) identifier_segment
(identifier_self) identifier_self
(block
(expression_statement
(assignment
(identifier_chunk) identifier_chunk
(call
(identifier_create_elem) identifier_create_elem
(argument_list
(string_'trkseg') string_'trkseg'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_track) identifier_track
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
(for_statement
(identifier_place) identifier_place
(identifier_segment) identifier_segment
(block
(expression_statement
(call
(attribute
(identifier_chunk) identifier_chunk
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_place) identifier_place
(identifier_togpx) identifier_togpx
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_etree) identifier_etree
(identifier_ElementTree) identifier_ElementTree
)attribute
(argument_list
(identifier_gpx) identifier_gpx
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate GPX element tree from ``Trackpoints``.
Returns:
etree.ElementTree: GPX element tree depicting ``Trackpoints``
objects |
(module
(function_definition
(function_name_privacy_options_view) function_name_privacy_options_view
(parameters
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(string_"user") string_"user"
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(attribute
(identifier_User) identifier_User
(identifier_objects) identifier_objects
)attribute
(identifier_user_with_ion_id) identifier_user_with_ion_id
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"user") string_"user"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(string_"student_id") string_"student_id"
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(call
(attribute
(attribute
(identifier_User) identifier_User
(identifier_objects) identifier_objects
)attribute
(identifier_user_with_student_id) identifier_user_with_student_id
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"student_id") string_"student_id"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(identifier_user) identifier_user
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_messages) identifier_messages
(identifier_error) identifier_error
)attribute
(argument_list
(identifier_request) identifier_request
(string_"Invalid user.") string_"Invalid user."
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_user) identifier_user
(identifier_is_eighthoffice) identifier_is_eighthoffice
)attribute
(block
(expression_statement
(assignment
(identifier_user) identifier_user
(None) None
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_user) identifier_user
(block
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_"POST") string_"POST"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_privacy_options_form) identifier_privacy_options_form
(call
(identifier_save_privacy_options) identifier_save_privacy_options
(argument_list
(identifier_request) identifier_request
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_privacy_options) identifier_privacy_options
(call
(identifier_get_privacy_options) identifier_get_privacy_options
(argument_list
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_privacy_options_form) identifier_privacy_options_form
(call
(identifier_PrivacyOptionsForm) identifier_PrivacyOptionsForm
(argument_list
(identifier_user) identifier_user
(keyword_argument
(identifier_initial) identifier_initial
(identifier_privacy_options) identifier_privacy_options
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_context) identifier_context
(dictionary
(pair
(string_"privacy_options_form") string_"privacy_options_form"
(identifier_privacy_options_form) identifier_privacy_options_form
)pair
(pair
(string_"profile_user") string_"profile_user"
(identifier_user) identifier_user
)pair
)dictionary
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_context) identifier_context
(dictionary
(pair
(string_"profile_user") string_"profile_user"
(identifier_user) identifier_user
)pair
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_render) identifier_render
(argument_list
(identifier_request) identifier_request
(string_"preferences/privacy_options.html") string_"preferences/privacy_options.html"
(identifier_context) identifier_context
)argument_list
)call
)return_statement
)block
)function_definition
)module | View and edit privacy options for a user. |
(module
(function_definition
(function_name_protect_pip_from_modification_on_windows) function_name_protect_pip_from_modification_on_windows
(parameters
(identifier_modifying_pip) identifier_modifying_pip
)parameters
(block
(expression_statement
(assignment
(identifier_pip_names) identifier_pip_names
(list
(string_"pip.exe") string_"pip.exe"
(call
(attribute
(string_"pip{}.exe") string_"pip{}.exe"
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(call
(attribute
(string_"pip{}.{}.exe") string_"pip{}.{}.exe"
(identifier_format) identifier_format
)attribute
(argument_list
(list_splat
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
)list_splat
)argument_list
)call
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_should_show_use_python_msg) identifier_should_show_use_python_msg
(parenthesized_expression
(boolean_operator
(boolean_operator
(identifier_modifying_pip) identifier_modifying_pip
(identifier_WINDOWS) identifier_WINDOWS
)boolean_operator
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(identifier_pip_names) identifier_pip_names
)comparison_operator
)boolean_operator
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_should_show_use_python_msg) identifier_should_show_use_python_msg
(block
(expression_statement
(assignment
(identifier_new_command) identifier_new_command
(binary_operator
(list
(attribute
(identifier_sys) identifier_sys
(identifier_executable) identifier_executable
)attribute
(string_"-m") string_"-m"
(string_"pip") string_"pip"
)list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
(raise_statement
(call
(identifier_CommandError) identifier_CommandError
(argument_list
(call
(attribute
(string_'To modify pip, please run the following command:\n{}') string_'To modify pip, please run the following command:\n{}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_new_command) identifier_new_command
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Protection of pip.exe from modification on Windows
On Windows, any operation modifying pip should be run as:
python -m pip ... |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection_file) identifier__connection_file
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connection_file) identifier__connection_file
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Closes connection with the q service. |
(module
(function_definition
(function_name_knapsack_iterative) function_name_knapsack_iterative
(parameters
(identifier_items) identifier_items
(identifier_maxweight) identifier_maxweight
)parameters
(block
(expression_statement
(assignment
(identifier_weights) identifier_weights
(list_comprehension
(subscript
(identifier_t) identifier_t
(integer_1) integer_1
)subscript
(for_in_clause
(identifier_t) identifier_t
(identifier_items) identifier_items
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_max_exp) identifier_max_exp
(call
(identifier_max) identifier_max
(argument_list
(list_comprehension
(call
(identifier_number_of_decimals) identifier_number_of_decimals
(argument_list
(identifier_w_) identifier_w_
)argument_list
)call
(for_in_clause
(identifier_w_) identifier_w_
(identifier_weights) identifier_weights
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_coeff) identifier_coeff
(binary_operator
(integer_10) integer_10
(identifier_max_exp) identifier_max_exp
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_int_maxweight) identifier_int_maxweight
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_maxweight) identifier_maxweight
(identifier_coeff) identifier_coeff
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_int_items) identifier_int_items
(list_comprehension
(tuple
(identifier_v) identifier_v
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_w) identifier_w
(identifier_coeff) identifier_coeff
)binary_operator
)argument_list
)call
(identifier_idx) identifier_idx
)tuple
(for_in_clause
(pattern_list
(identifier_v) identifier_v
(identifier_w) identifier_w
(identifier_idx) identifier_idx
)pattern_list
(identifier_items) identifier_items
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(identifier_knapsack_iterative_int) identifier_knapsack_iterative_int
(argument_list
(identifier_int_items) identifier_int_items
(identifier_int_maxweight) identifier_int_maxweight
)argument_list
)call
)return_statement
)block
)function_definition
)module | items = int_items
maxweight = int_maxweight |
(module
(function_definition
(function_name_get_stream_formats) function_name_get_stream_formats
(parameters
(identifier_self) identifier_self
(identifier_media_item) identifier_media_item
)parameters
(block
(expression_statement
(assignment
(identifier_scraper) identifier_scraper
(call
(identifier_ScraperApi) identifier_ScraperApi
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ajax_api) identifier__ajax_api
)attribute
(identifier__connector) identifier__connector
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_formats) identifier_formats
(call
(attribute
(identifier_scraper) identifier_scraper
(identifier_get_media_formats) identifier_get_media_formats
)attribute
(argument_list
(attribute
(identifier_media_item) identifier_media_item
(identifier_media_id) identifier_media_id
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_formats) identifier_formats
)return_statement
)block
)function_definition
)module | Get the available media formats for a given media item
@param crunchyroll.models.Media
@return dict |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_qry) identifier_qry
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ref) identifier_ref
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ref) identifier_ref
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_outfile) identifier_outfile
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_outfile) identifier_outfile
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tmpdir) identifier_tmpdir
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_mkdtemp) identifier_mkdtemp
)attribute
(argument_list
(keyword_argument
(identifier_prefix) identifier_prefix
(string_'tmp.run_nucmer.') string_'tmp.run_nucmer.'
)keyword_argument
(keyword_argument
(identifier_dir) identifier_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_original_dir) identifier_original_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_tmpdir) identifier_tmpdir
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_script) identifier_script
(string_'run_nucmer.sh') string_'run_nucmer.sh'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__write_script) identifier__write_script
)attribute
(argument_list
(identifier_script) identifier_script
(identifier_ref) identifier_ref
(identifier_qry) identifier_qry
(identifier_outfile) identifier_outfile
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_syscall) identifier_syscall
(identifier_run) identifier_run
)attribute
(argument_list
(binary_operator
(string_'bash ') string_'bash '
(identifier_script) identifier_script
)binary_operator
(keyword_argument
(identifier_verbose) identifier_verbose
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_original_dir) identifier_original_dir
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(identifier_tmpdir) identifier_tmpdir
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Change to a temp directory
Run bash script containing commands
Place results in specified output file
Clean up temp directory |
(module
(function_definition
(function_name_create_intent) function_name_create_intent
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
(identifier_intent) identifier_intent
(default_parameter
(identifier_language_code) identifier_language_code
(None) None
)default_parameter
(default_parameter
(identifier_intent_view) identifier_intent_view
(None) None
)default_parameter
(default_parameter
(identifier_retry) identifier_retry
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_DEFAULT) identifier_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_DEFAULT) identifier_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_metadata) identifier_metadata
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(string_'create_intent') string_'create_intent'
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
(string_'create_intent') string_'create_intent'
)subscript
(call
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_wrap_method) identifier_wrap_method
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier_create_intent) identifier_create_intent
)attribute
(keyword_argument
(identifier_default_retry) identifier_default_retry
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__method_configs) identifier__method_configs
)attribute
(string_'CreateIntent') string_'CreateIntent'
)subscript
(identifier_retry) identifier_retry
)attribute
)keyword_argument
(keyword_argument
(identifier_default_timeout) identifier_default_timeout
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__method_configs) identifier__method_configs
)attribute
(string_'CreateIntent') string_'CreateIntent'
)subscript
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
(keyword_argument
(identifier_client_info) identifier_client_info
(attribute
(identifier_self) identifier_self
(identifier__client_info) identifier__client_info
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_intent_pb2) identifier_intent_pb2
(identifier_CreateIntentRequest) identifier_CreateIntentRequest
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_parent) identifier_parent
)keyword_argument
(keyword_argument
(identifier_intent) identifier_intent
(identifier_intent) identifier_intent
)keyword_argument
(keyword_argument
(identifier_language_code) identifier_language_code
(identifier_language_code) identifier_language_code
)keyword_argument
(keyword_argument
(identifier_intent_view) identifier_intent_view
(identifier_intent_view) identifier_intent_view
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(subscript
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
(string_'create_intent') string_'create_intent'
)subscript
(argument_list
(identifier_request) identifier_request
(keyword_argument
(identifier_retry) identifier_retry
(identifier_retry) identifier_retry
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
(keyword_argument
(identifier_metadata) identifier_metadata
(identifier_metadata) identifier_metadata
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates an intent in the specified agent.
Example:
>>> import dialogflow_v2
>>>
>>> client = dialogflow_v2.IntentsClient()
>>>
>>> parent = client.project_agent_path('[PROJECT]')
>>>
>>> # TODO: Initialize ``intent``:
>>> intent = {}
>>>
>>> response = client.create_intent(parent, intent)
Args:
parent (str): Required. The agent to create a intent for.
Format: ``projects/<Project ID>/agent``.
intent (Union[dict, ~google.cloud.dialogflow_v2.types.Intent]): Required. The intent to create.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.dialogflow_v2.types.Intent`
language_code (str): Optional. The language of training phrases, parameters and rich messages
defined in ``intent``. If not specified, the agent's default language is
used. [More than a dozen
languages](https://dialogflow.com/docs/reference/language) are supported.
Note: languages must be enabled in the agent, before they can be used.
intent_view (~google.cloud.dialogflow_v2.types.IntentView): Optional. The resource view to apply to the returned intent.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata
that is provided to the method.
Returns:
A :class:`~google.cloud.dialogflow_v2.types.Intent` instance.
Raises:
google.api_core.exceptions.GoogleAPICallError: If the request
failed for any reason.
google.api_core.exceptions.RetryError: If the request failed due
to a retryable error and retry attempts failed.
ValueError: If the parameters are invalid. |
(module
(function_definition
(function_name_preprocess_cell) function_name_preprocess_cell
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_cell) identifier_cell
(type
(string_"NotebookNode") string_"NotebookNode"
)type
)typed_parameter
(typed_parameter
(identifier_resources) identifier_resources
(type
(identifier_dict) identifier_dict
)type
)typed_parameter
(typed_parameter
(identifier_index) identifier_index
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(string_"NotebookNode") string_"NotebookNode"
)type
(type
(identifier_dict) identifier_dict
)type
)type_parameter
)generic_type
)type
(block
(if_statement
(comparison_operator
(attribute
(identifier_cell) identifier_cell
(identifier_cell_type) identifier_cell_type
)attribute
(string_"markdown") string_"markdown"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_variables) identifier_variables
(call
(attribute
(subscript
(identifier_cell) identifier_cell
(string_"metadata") string_"metadata"
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(string_"variables") string_"variables"
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_variables) identifier_variables
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_cell) identifier_cell
(identifier_source) identifier_source
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_replace_variables) identifier_replace_variables
)attribute
(argument_list
(attribute
(identifier_cell) identifier_cell
(identifier_source) identifier_source
)attribute
(identifier_variables) identifier_variables
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_resources) identifier_resources
(identifier_get) identifier_get
)attribute
(argument_list
(string_"delete_pymarkdown") string_"delete_pymarkdown"
(False) False
)argument_list
)call
(block
(delete_statement
(subscript
(attribute
(identifier_cell) identifier_cell
(identifier_metadata) identifier_metadata
)attribute
(string_"variables") string_"variables"
)subscript
)delete_statement
)block
)if_statement
)block
)if_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_cell) identifier_cell
(identifier_resources) identifier_resources
)expression_list
)return_statement
)block
)function_definition
)module | Preprocess cell.
Parameters
----------
cell : NotebookNode cell
Notebook cell being processed
resources : dictionary
Additional resources used in the conversion process. Allows
preprocessors to pass variables into the Jinja engine.
cell_index : int
Index of the cell being processed (see base.py) |
(module
(function_definition
(function_name__main) function_name__main
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_proctitle) identifier_set_proctitle
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_signal_handler) identifier_set_signal_handler
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"process for module %s is now running (pid=%d)") string_"process for module %s is now running (pid=%d)"
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_getpid) identifier_getpid
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_main) identifier_main
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(tuple
(identifier_IOError) identifier_IOError
(identifier_EOFError) identifier_EOFError
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_exp) identifier_exp
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_'main function exception: %s') string_'main function exception: %s'
(identifier_exp) identifier_exp
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_do_stop) identifier_do_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"process for module %s is now exiting (pid=%d)") string_"process for module %s is now exiting (pid=%d)"
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_getpid) identifier_getpid
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_exit) identifier_exit
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | module "main" method. Only used by external modules.
:return: None |
(module
(function_definition
(function_name_import_mapping) function_name_import_mapping
(parameters
(identifier_connection_id) identifier_connection_id
(identifier_mapping) identifier_mapping
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_HEROKU_CONNECT_API_ENDPOINT) identifier_HEROKU_CONNECT_API_ENDPOINT
)attribute
(string_'connections') string_'connections'
(identifier_connection_id) identifier_connection_id
(string_'actions') string_'actions'
(string_'import') string_'import'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(keyword_argument
(identifier_url) identifier_url
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_json) identifier_json
(identifier_mapping) identifier_mapping
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(call
(identifier__get_authorization_headers) identifier__get_authorization_headers
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Import Heroku Connection mapping for given connection.
Args:
connection_id (str): Heroku Connection connection ID.
mapping (dict): Heroku Connect mapping.
Raises:
requests.HTTPError: If an error occurs uploading the mapping.
ValueError: If the mapping is not JSON serializable. |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_files) identifier_files
(default_parameter
(identifier_config) identifier_config
(None) None
)default_parameter
(default_parameter
(identifier_compilation_mode) identifier_compilation_mode
(attribute
(identifier_COMPILATION_MODE) identifier_COMPILATION_MODE
(identifier_FILE_BY_FILE) identifier_FILE_BY_FILE
)attribute
)default_parameter
(default_parameter
(identifier_cache) identifier_cache
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_config) identifier_config
)not_operator
(block
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(identifier_xml_generator_configuration_t) identifier_xml_generator_configuration_t
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_project_reader_t) identifier_project_reader_t
(argument_list
(keyword_argument
(identifier_config) identifier_config
(identifier_config) identifier_config
)keyword_argument
(keyword_argument
(identifier_cache) identifier_cache
(identifier_cache) identifier_cache
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_declarations) identifier_declarations
(call
(attribute
(identifier_parser) identifier_parser
(identifier_read_files) identifier_read_files
)attribute
(argument_list
(identifier_files) identifier_files
(identifier_compilation_mode) identifier_compilation_mode
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_config) identifier_config
(identifier_xml_generator_from_xml_file) identifier_xml_generator_from_xml_file
)attribute
(attribute
(identifier_parser) identifier_parser
(identifier_xml_generator_from_xml_file) identifier_xml_generator_from_xml_file
)attribute
)assignment
)expression_statement
(return_statement
(identifier_declarations) identifier_declarations
)return_statement
)block
)function_definition
)module | Parse header files.
:param files: The header files that should be parsed
:type files: list of str
:param config: Configuration object or None
:type config: :class:`parser.xml_generator_configuration_t`
:param compilation_mode: Determines whether the files are parsed
individually or as one single chunk
:type compilation_mode: :class:`parser.COMPILATION_MODE`
:param cache: Declaration cache (None=no cache)
:type cache: :class:`parser.cache_base_t` or str
:rtype: list of :class:`declarations.declaration_t` |
(module
(function_definition
(function_name_create_organization) function_name_create_organization
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Creating organization...') string_'Creating organization...'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(string_'rest/servicedeskapi/organization') string_'rest/servicedeskapi/organization'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_experimental_headers) identifier_experimental_headers
)attribute
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | To create an organization Jira administrator global permission or agent permission is required
depending on the settings
:param name: str
:return: Organization data |
(module
(function_definition
(function_name_show_settings) function_name_show_settings
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_notes) identifier_notes
)attribute
(identifier_config) identifier_config
)attribute
(identifier_put_values) identifier_put_values
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_overview) identifier_overview
)attribute
(identifier_config) identifier_config
)attribute
(identifier_put_values) identifier_put_values
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(identifier_config) identifier_config
)attribute
(identifier_put_values) identifier_put_values
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_spectrum) identifier_spectrum
)attribute
(identifier_config) identifier_config
)attribute
(identifier_put_values) identifier_put_values
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_traces) identifier_traces
)attribute
(identifier_config) identifier_config
)attribute
(identifier_put_values) identifier_put_values
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_video) identifier_video
)attribute
(identifier_config) identifier_config
)attribute
(identifier_put_values) identifier_put_values
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Open the Setting windows, after updating the values in GUI. |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_vol) identifier_vol
(identifier_filename) identifier_filename
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_bbox) identifier_bbox
(call
(attribute
(identifier_Bbox) identifier_Bbox
(identifier_from_filename) identifier_from_filename
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_len) identifier_content_len
(conditional_expression
(call
(identifier_len) identifier_len
(argument_list
(identifier_content) identifier_content
)argument_list
)call
(comparison_operator
(identifier_content) identifier_content
(None) None
)comparison_operator
(integer_0) integer_0
)conditional_expression
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_content) identifier_content
)not_operator
(block
(if_statement
(attribute
(identifier_vol) identifier_vol
(identifier_fill_missing) identifier_fill_missing
)attribute
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(string_'') string_''
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_EmptyVolumeException) identifier_EmptyVolumeException
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_shape) identifier_shape
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_bbox) identifier_bbox
(identifier_size3) identifier_size3
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(list
(attribute
(identifier_vol) identifier_vol
(identifier_num_channels) identifier_num_channels
)attribute
)list
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_chunks) identifier_chunks
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_content) identifier_content
(keyword_argument
(identifier_encoding) identifier_encoding
(attribute
(identifier_vol) identifier_vol
(identifier_encoding) identifier_encoding
)attribute
)keyword_argument
(keyword_argument
(identifier_shape) identifier_shape
(identifier_shape) identifier_shape
)keyword_argument
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_vol) identifier_vol
(identifier_dtype) identifier_dtype
)attribute
)keyword_argument
(keyword_argument
(identifier_block_size) identifier_block_size
(attribute
(identifier_vol) identifier_vol
(identifier_compressed_segmentation_block_size) identifier_compressed_segmentation_block_size
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_error) identifier_error
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(identifier_red) identifier_red
(argument_list
(call
(attribute
(string_'File Read Error: {} bytes, {}, {}, errors: {}') string_'File Read Error: {} bytes, {}, {}, errors: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_content_len) identifier_content_len
(identifier_bbox) identifier_bbox
(identifier_filename) identifier_filename
(identifier_error) identifier_error
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Decode content according to settings in a cloudvolume instance. |
(module
(function_definition
(function_name_select_fields) function_name_select_fields
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_fields) identifier_fields
)list_splat_pattern
)parameters
(block
(if_statement
(identifier_fields) identifier_fields
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_fields) identifier_fields
(integer_0) integer_0
)subscript
(identifier_basestring) identifier_basestring
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(subscript
(identifier_fields) identifier_fields
(integer_0) integer_0
)subscript
)argument_list
)call
(subscript
(call
(identifier_list) identifier_list
(argument_list
(identifier_fields) identifier_fields
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)binary_operator
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(for_statement
(identifier_field_name) identifier_field_name
(identifier_fields) identifier_fields
(block
(expression_statement
(assignment
(identifier_field_name) identifier_field_name
(call
(attribute
(identifier_self) identifier_self
(identifier__normalize_field_name) identifier__normalize_field_name
)attribute
(argument_list
(identifier_field_name) identifier_field_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_select_field) identifier_select_field
)attribute
(argument_list
(identifier_field_name) identifier_field_name
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | set multiple fields to be selected |
(module
(function_definition
(function_name_clean_value) function_name_clean_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_mdl) identifier_mdl
(identifier_self) identifier_self
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_ListNode) identifier_ListNode
(identifier_mdl) identifier_mdl
)argument_list
)call
(identifier_clean_value) identifier_clean_value
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Populates json serialization ready data.
This is the method used to serialize and store the object data in to DB
Returns:
List of dicts. |
(module
(function_definition
(function_name_matches) function_name_matches
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_specs) identifier_specs
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_spec) identifier_spec
(identifier_specs) identifier_specs
(block
(if_statement
(comparison_operator
(string_':') string_':'
(identifier_spec) identifier_spec
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_app_name) identifier_app_name
(identifier_endpoint_name) identifier_endpoint_name
)pattern_list
(call
(attribute
(identifier_spec) identifier_spec
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_app_name) identifier_app_name
(identifier_endpoint_name) identifier_endpoint_name
)pattern_list
(expression_list
(identifier_spec) identifier_spec
(None) None
)expression_list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_endpoint) identifier_endpoint
(attribute
(identifier_self) identifier_self
(identifier_endpoints) identifier_endpoints
)attribute
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_app_name) identifier_app_name
(attribute
(attribute
(identifier_endpoint) identifier_endpoint
(identifier_application) identifier_application
)attribute
(identifier_name) identifier_name
)attribute
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_endpoint_name) identifier_endpoint_name
(tuple
(attribute
(identifier_endpoint) identifier_endpoint
(identifier_name) identifier_name
)attribute
(None) None
)tuple
)comparison_operator
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)for_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check if this relation matches relationship specs.
Relation specs are strings that would be given to Juju to establish a
relation, and should be in the form ``<application>[:<endpoint_name>]``
where the ``:<endpoint_name>`` suffix is optional. If the suffix is
omitted, this relation will match on any endpoint as long as the given
application is involved.
In other words, this relation will match a spec if that spec could have
created this relation.
:return: True if all specs match. |
(module
(function_definition
(function_name_encode_numeric) function_name_encode_numeric
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_StringIO) identifier_StringIO
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_buf) identifier_buf
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_triplet) identifier_triplet
(call
(attribute
(identifier_self) identifier_self
(identifier_grouper) identifier_grouper
)attribute
(argument_list
(integer_3) integer_3
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_number) identifier_number
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_digit) identifier_digit
(identifier_triplet) identifier_triplet
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_digit) identifier_digit
(identifier_int) identifier_int
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_digit) identifier_digit
(call
(identifier_chr) identifier_chr
(argument_list
(identifier_digit) identifier_digit
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_digit) identifier_digit
(block
(expression_statement
(assignment
(identifier_number) identifier_number
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_number) identifier_number
(identifier_digit) identifier_digit
)list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_number) identifier_number
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_bin) identifier_bin
(call
(attribute
(identifier_self) identifier_self
(identifier_binary_string) identifier_binary_string
)attribute
(argument_list
(identifier_number) identifier_number
(integer_4) integer_4
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_number) identifier_number
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_bin) identifier_bin
(call
(attribute
(identifier_self) identifier_self
(identifier_binary_string) identifier_binary_string
)attribute
(argument_list
(identifier_number) identifier_number
(integer_7) integer_7
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_bin) identifier_bin
(call
(attribute
(identifier_self) identifier_self
(identifier_binary_string) identifier_binary_string
)attribute
(argument_list
(identifier_number) identifier_number
(integer_10) integer_10
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_buf) identifier_buf
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_bin) identifier_bin
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_buf) identifier_buf
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | This method encodes the QR code's data if its mode is
numeric. It returns the data encoded as a binary string. |
(module
(function_definition
(function_name_get_chunk) function_name_get_chunk
(parameters
(identifier_self) identifier_self
(identifier_chunk_id) identifier_chunk_id
)parameters
(block
(if_statement
(comparison_operator
(identifier_chunk_id) identifier_chunk_id
(attribute
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)attribute
)comparison_operator
(block
(return_statement
(call
(identifier_Cchunk) identifier_Cchunk
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_idx) identifier_idx
)attribute
(identifier_chunk_id) identifier_chunk_id
)subscript
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the chunk object for the supplied identifier
@type chunk_id: string
@param chunk_id: chunk identifier |
(module
(function_definition
(function_name_delete_table) function_name_delete_table
(parameters
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'TableName') string_'TableName'
(identifier_table_name) identifier_table_name
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json_input) identifier_json_input
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_make_request) identifier_make_request
)attribute
(argument_list
(string_'DeleteTable') string_'DeleteTable'
(identifier_json_input) identifier_json_input
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deletes the table and all of it's data. After this request
the table will be in the DELETING state until DynamoDB
completes the delete operation.
:type table_name: str
:param table_name: The name of the table to delete. |
(module
(function_definition
(function_name_colored) function_name_colored
(parameters
(identifier_text) identifier_text
(default_parameter
(identifier_color) identifier_color
(None) None
)default_parameter
(default_parameter
(identifier_on_color) identifier_on_color
(None) None
)default_parameter
(default_parameter
(identifier_attrs) identifier_attrs
(None) None
)default_parameter
(default_parameter
(identifier_ansi_code) identifier_ansi_code
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_os) identifier_os
(identifier_getenv) identifier_getenv
)attribute
(argument_list
(string_'ANSI_COLORS_DISABLED') string_'ANSI_COLORS_DISABLED'
)argument_list
)call
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_ansi_code) identifier_ansi_code
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(string_"\033[38;5;{}m{}\033[0m") string_"\033[38;5;{}m{}\033[0m"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ansi_code) identifier_ansi_code
(identifier_text) identifier_text
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_fmt_str) identifier_fmt_str
(string_'\033[%dm%s') string_'\033[%dm%s'
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_color) identifier_color
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_COLORS_RE) identifier_COLORS_RE
(string_'(.*?)') string_'(.*?)'
)binary_operator
(identifier_RESET_RE) identifier_RESET_RE
)binary_operator
(string_r'\1') string_r'\1'
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(binary_operator
(identifier_fmt_str) identifier_fmt_str
(tuple
(subscript
(identifier_COLORS) identifier_COLORS
(identifier_color) identifier_color
)subscript
(identifier_text) identifier_text
)tuple
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_on_color) identifier_on_color
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_HIGHLIGHTS_RE) identifier_HIGHLIGHTS_RE
(string_'(.*?)') string_'(.*?)'
)binary_operator
(identifier_RESET_RE) identifier_RESET_RE
)binary_operator
(string_r'\1') string_r'\1'
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_text) identifier_text
(binary_operator
(identifier_fmt_str) identifier_fmt_str
(tuple
(subscript
(identifier_HIGHLIGHTS) identifier_HIGHLIGHTS
(identifier_on_color) identifier_on_color
)subscript
(identifier_text) identifier_text
)tuple
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_attrs) identifier_attrs
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_ATTRIBUTES_RE) identifier_ATTRIBUTES_RE
(string_'(.*?)') string_'(.*?)'
)binary_operator
(identifier_RESET_RE) identifier_RESET_RE
)binary_operator
(string_r'\1') string_r'\1'
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_attr) identifier_attr
(identifier_attrs) identifier_attrs
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(binary_operator
(identifier_fmt_str) identifier_fmt_str
(tuple
(subscript
(identifier_ATTRIBUTES) identifier_ATTRIBUTES
(identifier_attr) identifier_attr
)subscript
(identifier_text) identifier_text
)tuple
)binary_operator
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(binary_operator
(identifier_text) identifier_text
(identifier_RESET) identifier_RESET
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_text) identifier_text
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Colorize text, while stripping nested ANSI color sequences.
Author: Konstantin Lepa <konstantin.lepa@gmail.com> / termcolor
Available text colors:
red, green, yellow, blue, magenta, cyan, white.
Available text highlights:
on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.
Available attributes:
bold, dark, underline, blink, reverse, concealed.
Example:
colored('Hello, World!', 'red', 'on_grey', ['blue', 'blink'])
colored('Hello, World!', 'green') |
(module
(function_definition
(function_name_list_passwords) function_name_list_passwords
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier__query) identifier__query
(argument_list
(string_'support') string_'support'
(string_'password/list') string_'password/list'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(subscript
(identifier_response) identifier_response
(string_'list') string_'list'
)subscript
(block
(if_statement
(comparison_operator
(string_'server') string_'server'
(identifier_item) identifier_item
)comparison_operator
(block
(expression_statement
(assignment
(identifier_server) identifier_server
(subscript
(subscript
(identifier_item) identifier_item
(string_'server') string_'server'
)subscript
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_server) identifier_server
(identifier_ret) identifier_ret
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(identifier_server) identifier_server
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(subscript
(identifier_ret) identifier_ret
(identifier_server) identifier_server
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | List all password on the account
.. versionadded:: 2015.8.0 |
(module
(function_definition
(function_name_init_extension) function_name_init_extension
(parameters
(identifier_self) identifier_self
(identifier_app) identifier_app
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'CACHE_VERSION') string_'CACHE_VERSION'
(string_'0') string_'0'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'CACHE_PREFIX') string_'CACHE_PREFIX'
(string_'r') string_'r'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'CACHE_BACKEND') string_'CACHE_BACKEND'
(string_'rio.exts.flask_cache.NullBackend') string_'rio.exts.flask_cache.NullBackend'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_app) identifier_app
(identifier_config) identifier_config
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'CACHE_BACKEND_OPTIONS') string_'CACHE_BACKEND_OPTIONS'
(dictionary
)dictionary
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initialize cache instance. |
(module
(function_definition
(function_name_randomEarlyShared) function_name_randomEarlyShared
(parameters
(identifier_store) identifier_store
(identifier_role) identifier_role
)parameters
(block
(for_statement
(identifier_r) identifier_r
(call
(attribute
(identifier_role) identifier_role
(identifier_allRoles) identifier_allRoles
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_share) identifier_share
(call
(attribute
(identifier_store) identifier_store
(identifier_findFirst) identifier_findFirst
)attribute
(argument_list
(identifier_Share) identifier_Share
(comparison_operator
(attribute
(identifier_Share) identifier_Share
(identifier_sharedTo) identifier_sharedTo
)attribute
(identifier_r) identifier_r
)comparison_operator
(keyword_argument
(identifier_sort) identifier_sort
(attribute
(attribute
(identifier_Share) identifier_Share
(identifier_storeID) identifier_storeID
)attribute
(identifier_ascending) identifier_ascending
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_share) identifier_share
(None) None
)comparison_operator
(block
(return_statement
(attribute
(identifier_share) identifier_share
(identifier_sharedItem) identifier_sharedItem
)attribute
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_NoSuchShare) identifier_NoSuchShare
(argument_list
(string_"Why, that user hasn't shared anything at all!") string_"Why, that user hasn't shared anything at all!"
)argument_list
)call
)raise_statement
)block
)function_definition
)module | If there are no explicitly-published public index pages to display, find a
shared item to present to the user as first. |
(module
(function_definition
(function_name_TokenClient) function_name_TokenClient
(parameters
(identifier_domain) identifier_domain
(identifier_token) identifier_token
(default_parameter
(identifier_user_agent) identifier_user_agent
(None) None
)default_parameter
(default_parameter
(identifier_request_encoder) identifier_request_encoder
(identifier_default_request_encoder) identifier_default_request_encoder
)default_parameter
(default_parameter
(identifier_response_decoder) identifier_response_decoder
(identifier_default_response_decoder) identifier_default_response_decoder
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_AuthorizingClient) identifier_AuthorizingClient
(argument_list
(identifier_domain) identifier_domain
(call
(attribute
(identifier_transport) identifier_transport
(identifier_TokenAuthorization) identifier_TokenAuthorization
)attribute
(argument_list
(identifier_token) identifier_token
)argument_list
)call
(identifier_request_encoder) identifier_request_encoder
(identifier_response_decoder) identifier_response_decoder
(keyword_argument
(identifier_user_agent) identifier_user_agent
(identifier_user_agent) identifier_user_agent
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a Freshbooks client for a freshbooks domain, using
token-based auth.
The optional request_encoder and response_decoder parameters can be
passed the logging_request_encoder and logging_response_decoder objects
from this module, or custom encoders, to aid debugging or change the
behaviour of refreshbooks' request-to-XML-to-response mapping.
The optional user_agent keyword parameter can be used to specify the
user agent string passed to FreshBooks. If unset, a default user agent
string is used. |
(module
(function_definition
(function_name__removeTags) function_name__removeTags
(parameters
(identifier_tags) identifier_tags
(identifier_objects) identifier_objects
)parameters
(block
(for_statement
(identifier_t) identifier_t
(identifier_tags) identifier_tags
(block
(for_statement
(identifier_o) identifier_o
(identifier_objects) identifier_objects
(block
(expression_statement
(call
(attribute
(attribute
(identifier_o) identifier_o
(identifier_tags) identifier_tags
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_t) identifier_t
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Removes tags from objects |
(module
(function_definition
(function_name_open_inbox_page) function_name_open_inbox_page
(parameters
(identifier_self) identifier_self
(identifier_content_type) identifier_content_type
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_inbox_page) identifier_inbox_page
)dotted_name
)relative_import
(dotted_name
(identifier_InboxPage) identifier_InboxPage
)dotted_name
)import_from_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_term) identifier_term
)attribute
(identifier_loader) identifier_loader
)attribute
(argument_list
(string_'Loading inbox') string_'Loading inbox'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_page) identifier_page
(call
(identifier_InboxPage) identifier_InboxPage
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_reddit) identifier_reddit
)attribute
(attribute
(identifier_self) identifier_self
(identifier_term) identifier_term
)attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(attribute
(identifier_self) identifier_self
(identifier_oauth) identifier_oauth
)attribute
(keyword_argument
(identifier_content_type) identifier_content_type
(identifier_content_type) identifier_content_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(if_statement
(not_operator
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_term) identifier_term
)attribute
(identifier_loader) identifier_loader
)attribute
(identifier_exception) identifier_exception
)attribute
)not_operator
(block
(return_statement
(identifier_page) identifier_page
)return_statement
)block
)if_statement
)block
)function_definition
)module | Open an instance of the inbox page for the logged in user. |
(module
(function_definition
(function_name_aggregate) function_name_aggregate
(parameters
(identifier_self) identifier_self
(identifier_search) identifier_search
)parameters
(block
(for_statement
(pattern_list
(identifier_f) identifier_f
(identifier_facet) identifier_facet
)pattern_list
(call
(identifier_iteritems) identifier_iteritems
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_facets) identifier_facets
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_agg) identifier_agg
(call
(attribute
(identifier_facet) identifier_facet
(identifier_get_aggregation) identifier_get_aggregation
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_agg_filter) identifier_agg_filter
(call
(identifier_MatchAll) identifier_MatchAll
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_field) identifier_field
(identifier_filter) identifier_filter
)pattern_list
(call
(identifier_iteritems) identifier_iteritems
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__filters) identifier__filters
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_f) identifier_f
(identifier_field) identifier_field
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_agg_filter) identifier_agg_filter
(identifier_filter) identifier_filter
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_search) identifier_search
(identifier_aggs) identifier_aggs
)attribute
(identifier_bucket) identifier_bucket
)attribute
(argument_list
(binary_operator
(string_'_filter_') string_'_filter_'
(identifier_f) identifier_f
)binary_operator
(string_'filter') string_'filter'
(keyword_argument
(identifier_filter) identifier_filter
(identifier_agg_filter) identifier_agg_filter
)keyword_argument
)argument_list
)call
(identifier_bucket) identifier_bucket
)attribute
(argument_list
(identifier_f) identifier_f
(identifier_agg) identifier_agg
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Add aggregations representing the facets selected, including potential
filters. |
(module
(function_definition
(function_name_is_address_guard) function_name_is_address_guard
(parameters
(identifier_self) identifier_self
(identifier_address) identifier_address
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_mbi) identifier_mbi
(call
(attribute
(identifier_self) identifier_self
(identifier_mquery) identifier_mquery
)attribute
(argument_list
(identifier_address) identifier_address
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_WindowsError) identifier_WindowsError
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(subscript
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_winerror) identifier_winerror
)attribute
(attribute
(identifier_win32) identifier_win32
(identifier_ERROR_INVALID_PARAMETER) identifier_ERROR_INVALID_PARAMETER
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(raise_statement
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(attribute
(identifier_mbi) identifier_mbi
(identifier_is_guard) identifier_is_guard
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Determines if an address belongs to a guard page.
@note: Returns always C{False} for kernel mode addresses.
@type address: int
@param address: Memory address to query.
@rtype: bool
@return: C{True} if the address belongs to a guard page.
@raise WindowsError: An exception is raised on error. |
(module
(function_definition
(function_name_spheres_intersect) function_name_spheres_intersect
(parameters
(identifier_ar) identifier_ar
(identifier_aR) identifier_aR
(identifier_br) identifier_br
(identifier_bR) identifier_bR
)parameters
(block
(return_statement
(comparison_operator
(call
(attribute
(identifier_vector) identifier_vector
(identifier_vector_mag_sq) identifier_vector_mag_sq
)attribute
(argument_list
(binary_operator
(identifier_ar) identifier_ar
(identifier_br) identifier_br
)binary_operator
)argument_list
)call
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_aR) identifier_aR
(identifier_bR) identifier_bR
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)comparison_operator
)return_statement
)block
)function_definition
)module | Return whether or not two spheres intersect each other.
Parameters
----------
ar, br: array-like, shape (n,) in n dimensions
Coordinates of the centres of the spheres `a` and `b`.
aR, bR: float
Radiuses of the spheres `a` and `b`.
Returns
-------
intersecting: boolean
True if the spheres intersect. |
(module
(function_definition
(function_name_check_internet_on) function_name_check_internet_on
(parameters
(identifier_secrets_file_path) identifier_secrets_file_path
)parameters
(block
(while_statement
(True) True
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_internet_on) identifier_internet_on
(argument_list
)argument_list
)call
(True) True
)comparison_operator
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_secrets_file_path) identifier_secrets_file_path
)argument_list
)call
)not_operator
)boolean_operator
(block
(break_statement
)break_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Turn on your internet and unplug your USB to continue...") string_"Turn on your internet and unplug your USB to continue..."
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_10) integer_10
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)while_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | If internet on and USB unplugged, returns true. Else, continues to wait... |
(module
(function_definition
(function_name_load_modules) function_name_load_modules
(parameters
(identifier_self) identifier_self
(identifier_modules) identifier_modules
(identifier_config) identifier_config
)parameters
(block
(for_statement
(identifier_pluginclass) identifier_pluginclass
(call
(identifier_get_plugin_classes) identifier_get_plugin_classes
(argument_list
(identifier_modules) identifier_modules
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(attribute
(identifier_pluginclass) identifier_pluginclass
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(subscript
(identifier_config) identifier_config
(string_"enabledplugins") string_"enabledplugins"
)subscript
)comparison_operator
(block
(if_statement
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_pluginclass) identifier_pluginclass
(identifier__ConnectionPlugin) identifier__ConnectionPlugin
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_LOG_PLUGIN) identifier_LOG_PLUGIN
(string_"Enable connection plugin %s") string_"Enable connection plugin %s"
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection_plugins) identifier_connection_plugins
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_pluginclass) identifier_pluginclass
(argument_list
(subscript
(identifier_config) identifier_config
(identifier_name) identifier_name
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_pluginclass) identifier_pluginclass
(identifier__ContentPlugin) identifier__ContentPlugin
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_LOG_PLUGIN) identifier_LOG_PLUGIN
(string_"Enable content plugin %s") string_"Enable content plugin %s"
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_content_plugins) identifier_content_plugins
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_pluginclass) identifier_pluginclass
(argument_list
(subscript
(identifier_config) identifier_config
(identifier_name) identifier_name
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_pluginclass) identifier_pluginclass
(identifier__ParserPlugin) identifier__ParserPlugin
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_LOG_PLUGIN) identifier_LOG_PLUGIN
(string_"Enable parser plugin %s") string_"Enable parser plugin %s"
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parser_plugins) identifier_parser_plugins
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_pluginclass) identifier_pluginclass
(argument_list
(subscript
(identifier_config) identifier_config
(identifier_name) identifier_name
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Invalid plugin class %s") string_"Invalid plugin class %s"
(identifier_pluginclass) identifier_pluginclass
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Load plugin modules. |
(module
(function_definition
(function_name_get_pkg_version) function_name_get_pkg_version
(parameters
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(string_"PKG-INFO") string_"PKG-INFO"
(string_"r") string_"r"
)argument_list
)call
(as_pattern_target
(identifier_fp) identifier_fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_rgx) identifier_rgx
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r"Version: (\d+)") string_r"Version: (\d+)"
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_fp) identifier_fp
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_rgx) identifier_rgx
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(return_statement
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
)block
)with_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Get version string by parsing PKG-INFO. |
(module
(function_definition
(function_name_ip_to_int) function_name_ip_to_int
(parameters
(identifier_ip) identifier_ip
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_octet) identifier_octet
(call
(attribute
(identifier_ip) identifier_ip
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(binary_operator
(binary_operator
(identifier_ret) identifier_ret
(integer_256) integer_256
)binary_operator
(call
(identifier_int) identifier_int
(argument_list
(identifier_octet) identifier_octet
)argument_list
)call
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Converts an IP address to an integer |
(module
(function_definition
(function_name_run_query_series) function_name_run_query_series
(parameters
(identifier_queries) identifier_queries
(identifier_conn) identifier_conn
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_queries) identifier_queries
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(identifier_item) identifier_item
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(subscript
(identifier_item) identifier_item
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(subscript
(identifier_item) identifier_item
(integer_1) integer_1
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_conn) identifier_conn
(identifier_update_query) identifier_update_query
)attribute
(argument_list
(identifier_qry) identifier_qry
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Iterates through a list of queries and runs them through the connection
Args:
-----
queries: list of strings or tuples containing (query_string, kwargs)
conn: the triplestore connection to use |
(module
(function_definition
(function_name_changes_found) function_name_changes_found
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_dest) identifier_dest
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"dest directory not found!") string_"dest directory not found!"
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_src) identifier_src
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"src directory not found!") string_"src directory not found!"
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_src) identifier_src
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_dest) identifier_dest
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dest_mtime) identifier_dest_mtime
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_src_mtime) identifier_src_mtime
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getmtime) identifier_getmtime
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_src) identifier_src
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dest) identifier_dest
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dest_mtime) identifier_dest_mtime
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getmtime) identifier_getmtime
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dest) identifier_dest
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_src_mtime) identifier_src_mtime
(identifier_dest_mtime) identifier_dest_mtime
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_folder) identifier_folder
(identifier__) identifier__
(identifier_files) identifier_files
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_src) identifier_src
)attribute
)argument_list
)call
(block
(for_statement
(identifier_filename) identifier_filename
(call
(attribute
(identifier_fnmatch) identifier_fnmatch
(identifier_filter) identifier_filter
)attribute
(argument_list
(identifier_files) identifier_files
(string_'*.scss') string_'*.scss'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_src_path) identifier_src_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_folder) identifier_folder
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getmtime) identifier_getmtime
)attribute
(argument_list
(identifier_src_path) identifier_src_path
)argument_list
)call
(identifier_dest_mtime) identifier_dest_mtime
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Returns True if the target folder is older than the source folder. |
(module
(function_definition
(function_name__merge_colormaps) function_name__merge_colormaps
(parameters
(identifier_kwargs) identifier_kwargs
)parameters
(block
(import_from_statement
(dotted_name
(identifier_trollimage) identifier_trollimage
(identifier_colormap) identifier_colormap
)dotted_name
(dotted_name
(identifier_Colormap) identifier_Colormap
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_full_cmap) identifier_full_cmap
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_palette) identifier_palette
(subscript
(identifier_kwargs) identifier_kwargs
(string_'palettes') string_'palettes'
)subscript
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_palette) identifier_palette
(identifier_Colormap) identifier_Colormap
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_full_cmap) identifier_full_cmap
(identifier_palette) identifier_palette
)assignment
)expression_statement
)block
(else_clause
(block
(for_statement
(identifier_itm) identifier_itm
(identifier_palette) identifier_palette
(block
(expression_statement
(assignment
(identifier_cmap) identifier_cmap
(call
(identifier_create_colormap) identifier_create_colormap
(argument_list
(identifier_itm) identifier_itm
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmap) identifier_cmap
(identifier_set_range) identifier_set_range
)attribute
(argument_list
(subscript
(identifier_itm) identifier_itm
(string_"min_value") string_"min_value"
)subscript
(subscript
(identifier_itm) identifier_itm
(string_"max_value") string_"max_value"
)subscript
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_full_cmap) identifier_full_cmap
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_full_cmap) identifier_full_cmap
(identifier_cmap) identifier_cmap
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_full_cmap) identifier_full_cmap
(binary_operator
(identifier_full_cmap) identifier_full_cmap
(identifier_cmap) identifier_cmap
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_full_cmap) identifier_full_cmap
)return_statement
)block
)function_definition
)module | Merge colormaps listed in kwargs. |
(module
(function_definition
(function_name_visit_const) function_name_visit_const
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)parameters
(block
(return_statement
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_Const) identifier_Const
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_value) identifier_value
)attribute
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_node) identifier_node
(string_"lineno") string_"lineno"
(None) None
)argument_list
)call
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_node) identifier_node
(string_"col_offset") string_"col_offset"
(None) None
)argument_list
)call
(identifier_parent) identifier_parent
)argument_list
)call
)return_statement
)block
)function_definition
)module | visit a Const node by returning a fresh instance of it |
(module
(function_definition
(function_name__process_article_phene_row) function_name__process_article_phene_row
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
)parameters
(block
(expression_statement
(assignment
(identifier_phenotype_id) identifier_phenotype_id
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_id_hash) identifier_id_hash
)attribute
(string_'phene') string_'phene'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(subscript
(identifier_row) identifier_row
(string_'phene_id') string_'phene_id'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_article_id) identifier_article_id
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_id_hash) identifier_id_hash
)attribute
(string_'article') string_'article'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(subscript
(identifier_row) identifier_row
(string_'article_id') string_'article_id'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_omia_id) identifier_omia_id
(call
(attribute
(identifier_self) identifier_self
(identifier__get_omia_id_from_phene_id) identifier__get_omia_id_from_phene_id
)attribute
(argument_list
(identifier_phenotype_id) identifier_phenotype_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_test_mode) identifier_test_mode
)attribute
(comparison_operator
(identifier_omia_id) identifier_omia_id
(subscript
(attribute
(identifier_self) identifier_self
(identifier_test_ids) identifier_test_ids
)attribute
(string_'disease') string_'disease'
)subscript
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_phenotype_id) identifier_phenotype_id
(None) None
)comparison_operator
)boolean_operator
(comparison_operator
(identifier_article_id) identifier_article_id
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_graph) identifier_graph
)attribute
(identifier_addTriple) identifier_addTriple
)attribute
(argument_list
(identifier_article_id) identifier_article_id
(subscript
(attribute
(identifier_self) identifier_self
(identifier_globaltt) identifier_globaltt
)attribute
(string_'is_about') string_'is_about'
)subscript
(identifier_phenotype_id) identifier_phenotype_id
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Linking articles to species-specific phenes.
:param row:
:return: |
(module
(function_definition
(function_name__extract_tls_session_ticket) function_name__extract_tls_session_ticket
(parameters
(typed_parameter
(identifier_ssl_session) identifier_ssl_session
(type
(attribute
(attribute
(identifier_nassl) identifier_nassl
(identifier__nassl) identifier__nassl
)attribute
(identifier_SSL_SESSION) identifier_SSL_SESSION
)attribute
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_session_string) identifier_session_string
(subscript
(parenthesized_expression
(call
(attribute
(parenthesized_expression
(call
(attribute
(identifier_ssl_session) identifier_ssl_session
(identifier_as_text) identifier_as_text
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
(identifier_split) identifier_split
)attribute
(argument_list
(string_'TLS session ticket:') string_'TLS session ticket:'
)argument_list
)call
)parenthesized_expression
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_session_tls_ticket) identifier_session_tls_ticket
(subscript
(parenthesized_expression
(call
(attribute
(identifier_session_string) identifier_session_string
(identifier_split) identifier_split
)attribute
(argument_list
(string_'Compression:') string_'Compression:'
)argument_list
)call
)parenthesized_expression
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(identifier_session_tls_ticket) identifier_session_tls_ticket
)return_statement
)block
)function_definition
)module | Extract the TLS session ticket from a SSL session object or raises IndexError if the ticket was not set. |
(module
(function_definition
(function_name_crop_resize_image) function_name_crop_resize_image
(parameters
(typed_parameter
(identifier_image) identifier_image
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
)typed_parameter
(identifier_size) identifier_size
)parameters
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
(block
(expression_statement
(assignment
(pattern_list
(identifier_width) identifier_width
(identifier_height) identifier_height
)pattern_list
(attribute
(identifier_image) identifier_image
(identifier_size) identifier_size
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_width) identifier_width
(identifier_height) identifier_height
)comparison_operator
(block
(expression_statement
(assignment
(identifier_left) identifier_left
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_width) identifier_width
(identifier_height) identifier_height
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_right) identifier_right
(binary_operator
(identifier_width) identifier_width
(identifier_left) identifier_left
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_top) identifier_top
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bottom) identifier_bottom
(identifier_height) identifier_height
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_top) identifier_top
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_height) identifier_height
(identifier_width) identifier_width
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bottom) identifier_bottom
(binary_operator
(identifier_height) identifier_height
(identifier_top) identifier_top
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_left) identifier_left
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_right) identifier_right
(identifier_width) identifier_width
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_image) identifier_image
(identifier_crop) identifier_crop
)attribute
(argument_list
(tuple
(identifier_left) identifier_left
(identifier_top) identifier_top
(identifier_right) identifier_right
(identifier_bottom) identifier_bottom
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(identifier_image) identifier_image
(identifier_resize) identifier_resize
)attribute
(argument_list
(identifier_size) identifier_size
(attribute
(identifier_Image) identifier_Image
(identifier_ANTIALIAS) identifier_ANTIALIAS
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_image) identifier_image
)return_statement
)block
)function_definition
)module | Resize the input image.
:param image: Original image which is a PIL object.
:param size: Tuple of height and width to resize the image to.
:return: Resized image which is a PIL object |
(module
(function_definition
(function_name_attach_remote_media) function_name_attach_remote_media
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_username) identifier_username
(None) None
)default_parameter
(default_parameter
(identifier_password) identifier_password
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_oem_init) identifier_oem_init
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__oem) identifier__oem
)attribute
(identifier_attach_remote_media) identifier_attach_remote_media
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_username) identifier_username
(identifier_password) identifier_password
)argument_list
)call
)return_statement
)block
)function_definition
)module | Attach remote media by url
Given a url, attach remote media (cd/usb image) to the target system.
:param url: URL to indicate where to find image (protocol support
varies by BMC)
:param username: Username for endpoint to use when accessing the URL.
If applicable, 'domain' would be indicated by '@' or
'\' syntax.
:param password: Password for endpoint to use when accessing the URL. |
(module
(function_definition
(function_name__cost_method) function_name__cost_method
(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_cost_val) identifier_cost_val
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_thresh) identifier_thresh
)attribute
(call
(identifier_nuclear_norm) identifier_nuclear_norm
(argument_list
(call
(identifier_cube2matrix) identifier_cube2matrix
(argument_list
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'verbose') string_'verbose'
(identifier_kwargs) identifier_kwargs
)comparison_operator
(subscript
(identifier_kwargs) identifier_kwargs
(string_'verbose') string_'verbose'
)subscript
)boolean_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_' - NUCLEAR NORM (X):') string_' - NUCLEAR NORM (X):'
(identifier_cost_val) identifier_cost_val
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_cost_val) identifier_cost_val
)return_statement
)block
)function_definition
)module | Calculate low-rank component of the cost
This method returns the nuclear norm error of the deconvolved data in
matrix form
Returns
-------
float low-rank cost component |
(module
(function_definition
(function_name_timex_starts) function_name_timex_starts
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_tagged) identifier_is_tagged
)attribute
(argument_list
(identifier_TIMEXES) identifier_TIMEXES
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_tag_timexes) identifier_tag_timexes
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_starts) identifier_starts
)attribute
(argument_list
(identifier_TIMEXES) identifier_TIMEXES
)argument_list
)call
)return_statement
)block
)function_definition
)module | The list of start positions of ``timexes`` layer elements. |
(module
(function_definition
(function_name_invert_projection) function_name_invert_projection
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
(identifier_identities) identifier_identities
)parameters
(block
(expression_statement
(assignment
(identifier_distances) identifier_distances
(call
(attribute
(identifier_self) identifier_self
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_X) identifier_X
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_distances) identifier_distances
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_identities) identifier_identities
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"X and identities are not the same length: ") string_"X and identities are not the same length: "
(string_"{0} and {1}") string_"{0} and {1}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_X) identifier_X
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_identities) identifier_identities
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_node_match) identifier_node_match
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_d) identifier_d
(call
(call
(attribute
(identifier_distances) identifier_distances
(identifier___getattribute__) identifier___getattribute__
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_argfunc) identifier_argfunc
)attribute
)argument_list
)call
(argument_list
(integer_0) integer_0
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_node_match) identifier_node_match
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_identities) identifier_identities
(identifier_d) identifier_d
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_node_match) identifier_node_match
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculate the inverted projection.
The inverted projectio of a SOM is created by association each weight
with the input which matches it the most, thus giving a good
approximation of the "influence" of each input item.
Works best for symbolic (instead of continuous) input data.
Parameters
----------
X : numpy array
Input data
identities : list
A list of names for each of the input data. Must be the same
length as X.
Returns
-------
m : numpy array
An array with the same shape as the map |
(module
(function_definition
(function_name_visit_augassign) function_name_visit_augassign
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)parameters
(block
(expression_statement
(assignment
(identifier_newnode) identifier_newnode
(call
(attribute
(identifier_nodes) identifier_nodes
(identifier_AugAssign) identifier_AugAssign
)attribute
(argument_list
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__bin_op_classes) identifier__bin_op_classes
)attribute
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_op) identifier_op
)attribute
)argument_list
)call
)subscript
(string_"=") string_"="
)binary_operator
(attribute
(identifier_node) identifier_node
(identifier_lineno) identifier_lineno
)attribute
(attribute
(identifier_node) identifier_node
(identifier_col_offset) identifier_col_offset
)attribute
(identifier_parent) identifier_parent
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_newnode) identifier_newnode
(identifier_postinit) identifier_postinit
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_visit) identifier_visit
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_target) identifier_target
)attribute
(identifier_newnode) identifier_newnode
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_visit) identifier_visit
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_value) identifier_value
)attribute
(identifier_newnode) identifier_newnode
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_newnode) identifier_newnode
)return_statement
)block
)function_definition
)module | visit a AugAssign node by returning a fresh instance of it |
(module
(function_definition
(function_name_get_dict_for_mongodb_queries) function_name_get_dict_for_mongodb_queries
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_d) identifier_d
)return_statement
(expression_statement
(assignment
(identifier_all_structures) identifier_all_structures
(list_comprehension
(attribute
(attribute
(identifier_task) identifier_task
(identifier_input) identifier_input
)attribute
(identifier_structure) identifier_structure
)attribute
(for_in_clause
(identifier_task) identifier_task
(call
(attribute
(identifier_self) identifier_self
(identifier_iflat_tasks) identifier_iflat_tasks
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_pseudos) identifier_all_pseudos
(list_comprehension
(attribute
(attribute
(identifier_task) identifier_task
(identifier_input) identifier_input
)attribute
(identifier_pseudos) identifier_pseudos
)attribute
(for_in_clause
(identifier_task) identifier_task
(call
(attribute
(identifier_self) identifier_self
(identifier_iflat_tasks) identifier_iflat_tasks
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)function_definition
)module | This function returns a dictionary with the attributes that will be
put in the mongodb document to facilitate the query.
Subclasses may want to replace or extend the default behaviour. |
(module
(function_definition
(function_name__validate_planar_fault_geometry) function_name__validate_planar_fault_geometry
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier__float_re) identifier__float_re
)parameters
(block
(expression_statement
(assignment
(identifier_valid_spacing) identifier_valid_spacing
(subscript
(identifier_node) identifier_node
(string_"spacing") string_"spacing"
)subscript
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(list
(string_"topLeft") string_"topLeft"
(string_"topRight") string_"topRight"
(string_"bottomLeft") string_"bottomLeft"
(string_"bottomRight") string_"bottomRight"
)list
(block
(expression_statement
(assignment
(identifier_lon) identifier_lon
(subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_node) identifier_node
(identifier_key) identifier_key
)argument_list
)call
(string_"lon") string_"lon"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lat) identifier_lat
(subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_node) identifier_node
(identifier_key) identifier_key
)argument_list
)call
(string_"lat") string_"lat"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_depth) identifier_depth
(subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_node) identifier_node
(identifier_key) identifier_key
)argument_list
)call
(string_"depth") string_"depth"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_valid_lon) identifier_valid_lon
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_lon) identifier_lon
(unary_operator
(float_180.0) float_180.0
)unary_operator
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_lon) identifier_lon
(float_180.0) float_180.0
)comparison_operator
)parenthesized_expression
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_valid_lat) identifier_valid_lat
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_lat) identifier_lat
(unary_operator
(float_90.0) float_90.0
)unary_operator
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_lat) identifier_lat
(float_90.0) float_90.0
)comparison_operator
)parenthesized_expression
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_valid_depth) identifier_valid_depth
(parenthesized_expression
(comparison_operator
(identifier_depth) identifier_depth
(float_0.0) float_0.0
)comparison_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_valid) identifier_is_valid
(boolean_operator
(boolean_operator
(identifier_valid_lon) identifier_valid_lon
(identifier_valid_lat) identifier_valid_lat
)boolean_operator
(identifier_valid_depth) identifier_valid_depth
)boolean_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_is_valid) identifier_is_valid
)not_operator
(not_operator
(identifier_valid_spacing) identifier_valid_spacing
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_LogicTreeError) identifier_LogicTreeError
(argument_list
(identifier_node) identifier_node
(attribute
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)attribute
(string_"'planarFaultGeometry' node is not valid") string_"'planarFaultGeometry' node is not valid"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Validares a node representation of a planar fault geometry |
(module
(function_definition
(function_name_backward_delete_char) function_name_backward_delete_char
(parameters
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(string_" Delete the character behind the cursor. ") string_" Delete the character behind the cursor. "
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_event) identifier_event
(identifier_arg) identifier_arg
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_deleted) identifier_deleted
(call
(attribute
(attribute
(identifier_event) identifier_event
(identifier_current_buffer) identifier_current_buffer
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(keyword_argument
(identifier_count) identifier_count
(unary_operator
(attribute
(identifier_event) identifier_event
(identifier_arg) identifier_arg
)attribute
)unary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_deleted) identifier_deleted
(call
(attribute
(attribute
(identifier_event) identifier_event
(identifier_current_buffer) identifier_current_buffer
)attribute
(identifier_delete_before_cursor) identifier_delete_before_cursor
)attribute
(argument_list
(keyword_argument
(identifier_count) identifier_count
(attribute
(identifier_event) identifier_event
(identifier_arg) identifier_arg
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(identifier_deleted) identifier_deleted
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_event) identifier_event
(identifier_cli) identifier_cli
)attribute
(identifier_output) identifier_output
)attribute
(identifier_bell) identifier_bell
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Delete the character behind the cursor. |
(module
(function_definition
(function_name_setduration) function_name_setduration
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_duration) identifier_duration
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_duration) identifier_duration
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_arg) identifier_arg
(list_comprehension
(subscript
(identifier_x) identifier_x
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_duration) identifier_duration
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(subscript
(identifier_arg) identifier_arg
(integer_0) integer_0
)subscript
(attribute
(identifier_self) identifier_self
(identifier_units) identifier_units
)attribute
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'must be: %s') string_'must be: %s'
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_units) identifier_units
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_duration) identifier_duration
)attribute
(identifier_arg) identifier_arg
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Set the caching duration which defines how long the
file will be cached.
@param duration: The cached file duration which defines how
long the file will be cached. A duration=0 means forever.
The duration may be: (months|weeks|days|hours|minutes|seconds).
@type duration: {unit:value} |
(module
(function_definition
(function_name_structure) function_name_structure
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_downstream) identifier_downstream
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_cutter) identifier_cutter
)attribute
(identifier_elucidate) identifier_elucidate
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_upstream) identifier_upstream
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(call
(identifier_Seq) identifier_Seq
(argument_list
(identifier_downstream) identifier_downstream
)argument_list
)call
(identifier_reverse_complement) identifier_reverse_complement
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(list
(call
(attribute
(call
(attribute
(identifier_upstream) identifier_upstream
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"^") string_"^"
(string_")(") string_")("
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"_") string_"_"
(string_"(") string_"("
)argument_list
)call
(string_"N*") string_"N*"
(call
(attribute
(call
(attribute
(identifier_downstream) identifier_downstream
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"^") string_"^"
(string_")(") string_")("
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"_") string_"_"
(string_")") string_")"
)argument_list
)call
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the vector structure, as a DNA regex pattern.
Warning:
If overloading this method, the returned pattern must include 3
capture groups to capture the following features:
1. The downstream (3') overhang sequence
2. The vector placeholder sequence
3. The upstream (5') overhang sequence |
(module
(function_definition
(function_name_wait_for_save) function_name_wait_for_save
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_timeout) identifier_timeout
(integer_5) integer_5
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_modification_time) identifier_modification_time
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getmtime) identifier_getmtime
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start_time) identifier_start_time
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(binary_operator
(identifier_start_time) identifier_start_time
(identifier_timeout) identifier_timeout
)binary_operator
)comparison_operator
(block
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getmtime) identifier_getmtime
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(identifier_modification_time) identifier_modification_time
)comparison_operator
(comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_getsize) identifier_getsize
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(float_0.2) float_0.2
)argument_list
)call
)expression_statement
)block
)while_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Waits for FILENAME to update, waiting up to TIMEOUT seconds.
Returns True if a save was detected, and False otherwise. |
(module
(function_definition
(function_name_geolocate) function_name_geolocate
(parameters
(identifier_client) identifier_client
(default_parameter
(identifier_home_mobile_country_code) identifier_home_mobile_country_code
(None) None
)default_parameter
(default_parameter
(identifier_home_mobile_network_code) identifier_home_mobile_network_code
(None) None
)default_parameter
(default_parameter
(identifier_radio_type) identifier_radio_type
(None) None
)default_parameter
(default_parameter
(identifier_carrier) identifier_carrier
(None) None
)default_parameter
(default_parameter
(identifier_consider_ip) identifier_consider_ip
(None) None
)default_parameter
(default_parameter
(identifier_cell_towers) identifier_cell_towers
(None) None
)default_parameter
(default_parameter
(identifier_wifi_access_points) identifier_wifi_access_points
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_home_mobile_country_code) identifier_home_mobile_country_code
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"homeMobileCountryCode") string_"homeMobileCountryCode"
)subscript
(identifier_home_mobile_country_code) identifier_home_mobile_country_code
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_home_mobile_network_code) identifier_home_mobile_network_code
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"homeMobileNetworkCode") string_"homeMobileNetworkCode"
)subscript
(identifier_home_mobile_network_code) identifier_home_mobile_network_code
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_radio_type) identifier_radio_type
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"radioType") string_"radioType"
)subscript
(identifier_radio_type) identifier_radio_type
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_carrier) identifier_carrier
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"carrier") string_"carrier"
)subscript
(identifier_carrier) identifier_carrier
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_consider_ip) identifier_consider_ip
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"considerIp") string_"considerIp"
)subscript
(identifier_consider_ip) identifier_consider_ip
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_cell_towers) identifier_cell_towers
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"cellTowers") string_"cellTowers"
)subscript
(identifier_cell_towers) identifier_cell_towers
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_wifi_access_points) identifier_wifi_access_points
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"wifiAccessPoints") string_"wifiAccessPoints"
)subscript
(identifier_wifi_access_points) identifier_wifi_access_points
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_client) identifier_client
(identifier__request) identifier__request
)attribute
(argument_list
(string_"/geolocation/v1/geolocate") string_"/geolocation/v1/geolocate"
(dictionary
)dictionary
(keyword_argument
(identifier_base_url) identifier_base_url
(identifier__GEOLOCATION_BASE_URL) identifier__GEOLOCATION_BASE_URL
)keyword_argument
(keyword_argument
(identifier_extract_body) identifier_extract_body
(identifier__geolocation_extract) identifier__geolocation_extract
)keyword_argument
(keyword_argument
(identifier_post_json) identifier_post_json
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | The Google Maps Geolocation API returns a location and accuracy
radius based on information about cell towers and WiFi nodes given.
See https://developers.google.com/maps/documentation/geolocation/intro
for more info, including more detail for each parameter below.
:param home_mobile_country_code: The mobile country code (MCC) for
the device's home network.
:type home_mobile_country_code: string
:param home_mobile_network_code: The mobile network code (MCC) for
the device's home network.
:type home_mobile_network_code: string
:param radio_type: The mobile radio type. Supported values are
lte, gsm, cdma, and wcdma. While this field is optional, it
should be included if a value is available, for more accurate
results.
:type radio_type: string
:param carrier: The carrier name.
:type carrier: string
:param consider_ip: Specifies whether to fall back to IP geolocation
if wifi and cell tower signals are not available. Note that the
IP address in the request header may not be the IP of the device.
:type consider_ip: bool
:param cell_towers: A list of cell tower dicts. See
https://developers.google.com/maps/documentation/geolocation/intro#cell_tower_object
for more detail.
:type cell_towers: list of dicts
:param wifi_access_points: A list of WiFi access point dicts. See
https://developers.google.com/maps/documentation/geolocation/intro#wifi_access_point_object
for more detail.
:type wifi_access_points: list of dicts |
(module
(function_definition
(function_name_bitswap_unwant) function_name_bitswap_unwant
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(tuple
(identifier_key) identifier_key
)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_'/bitswap/unwant') string_'/bitswap/unwant'
(identifier_args) identifier_args
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Remove a given block from wantlist.
Parameters
----------
key : str
Key to remove from wantlist. |
(module
(function_definition
(function_name_accepts_kwarg) function_name_accepts_kwarg
(parameters
(identifier_func) identifier_func
(identifier_kwarg) identifier_kwarg
)parameters
(block
(expression_statement
(assignment
(identifier_signature) identifier_signature
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_signature) identifier_signature
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_signature) identifier_signature
(identifier_bind_partial) identifier_bind_partial
)attribute
(argument_list
(dictionary_splat
(dictionary
(pair
(identifier_kwarg) identifier_kwarg
(None) None
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Determine whether the callable `func` has a signature that accepts the
keyword argument `kwarg` |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(typed_parameter
(identifier_stack_ref) identifier_stack_ref
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_str) identifier_str
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_region) identifier_region
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_dry_run) identifier_dry_run
(type
(identifier_bool) identifier_bool
)type
)typed_parameter
(typed_parameter
(identifier_force) identifier_force
(type
(identifier_bool) identifier_bool
)type
)typed_parameter
(typed_parameter
(identifier_remote) identifier_remote
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_lizzy) identifier_lizzy
(call
(identifier_setup_lizzy_client) identifier_setup_lizzy_client
(argument_list
(identifier_remote) identifier_remote
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stack_refs) identifier_stack_refs
(call
(identifier_get_stack_refs) identifier_get_stack_refs
(argument_list
(identifier_stack_ref) identifier_stack_ref
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_with_version) identifier_all_with_version
(call
(identifier_all) identifier_all
(generator_expression
(comparison_operator
(attribute
(identifier_stack) identifier_stack
(identifier_version) identifier_version
)attribute
(None) None
)comparison_operator
(for_in_clause
(identifier_stack) identifier_stack
(identifier_stack_refs) identifier_stack_refs
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(not_operator
(identifier_all_with_version) identifier_all_with_version
)not_operator
(not_operator
(identifier_dry_run) identifier_dry_run
)not_operator
)boolean_operator
(not_operator
(identifier_force) identifier_force
)not_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(identifier_fatal_error) identifier_fatal_error
(argument_list
(binary_operator
(call
(attribute
(string_'Error: {} matching stacks found. ') string_'Error: {} matching stacks found. '
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_stack_refs) identifier_stack_refs
)argument_list
)call
)argument_list
)call
(string_'Please use the "--force" flag if you really want to delete multiple stacks.') string_'Please use the "--force" flag if you really want to delete multiple stacks.'
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_stack) identifier_stack
(identifier_stack_refs) identifier_stack_refs
(block
(if_statement
(comparison_operator
(attribute
(identifier_stack) identifier_stack
(identifier_version) identifier_version
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_stack_id) identifier_stack_id
(call
(attribute
(string_'{stack.name}-{stack.version}') string_'{stack.name}-{stack.version}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_stack) identifier_stack
(identifier_stack) identifier_stack
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_stack_id) identifier_stack_id
(attribute
(identifier_stack) identifier_stack
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(with_statement
(with_clause
(with_item
(call
(identifier_Action) identifier_Action
(argument_list
(string_"Requesting stack '{stack_id}' deletion..") string_"Requesting stack '{stack_id}' deletion.."
(keyword_argument
(identifier_stack_id) identifier_stack_id
(identifier_stack_id) identifier_stack_id
)keyword_argument
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_lizzy) identifier_lizzy
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_stack_id) identifier_stack_id
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_dry_run) identifier_dry_run
(identifier_dry_run) identifier_dry_run
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)for_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete Cloud Formation stacks |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.