sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_f2tc) function_name_f2tc
(parameters
(identifier_f) identifier_f
(default_parameter
(identifier_base) identifier_base
(integer_25) integer_25
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_int) identifier_int
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(return_statement
(string_"--:--:--:--") string_"--:--:--:--"
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_hh) identifier_hh
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_f) identifier_f
(identifier_base) identifier_base
)binary_operator
)parenthesized_expression
(integer_3600) integer_3600
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mm) identifier_mm
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_f) identifier_f
(identifier_base) identifier_base
)binary_operator
)parenthesized_expression
(integer_60) integer_60
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_hh) identifier_hh
(integer_60) integer_60
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ss) identifier_ss
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_f) identifier_f
(identifier_base) identifier_base
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_hh) identifier_hh
(integer_3600) integer_3600
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_mm) identifier_mm
(integer_60) integer_60
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ff) identifier_ff
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(binary_operator
(binary_operator
(identifier_f) identifier_f
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_hh) identifier_hh
(integer_3600) integer_3600
)binary_operator
(identifier_base) identifier_base
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_mm) identifier_mm
(integer_60) integer_60
)binary_operator
(identifier_base) identifier_base
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_ss) identifier_ss
(identifier_base) identifier_base
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_"{:02d}:{:02d}:{:02d}:{:02d}") string_"{:02d}:{:02d}:{:02d}:{:02d}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_hh) identifier_hh
(identifier_mm) identifier_mm
(identifier_ss) identifier_ss
(identifier_ff) identifier_ff
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts frames to timecode |
(module
(function_definition
(function_name_undecorate) function_name_undecorate
(parameters
(identifier_cls) identifier_cls
(identifier_function) identifier_function
)parameters
(block
(if_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_is_function_validated) identifier_is_function_validated
)attribute
(argument_list
(identifier_function) identifier_function
)argument_list
)call
(block
(return_statement
(attribute
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_function_validator) identifier_get_function_validator
)attribute
(argument_list
(identifier_function) identifier_function
)argument_list
)call
(identifier_function) identifier_function
)attribute
)return_statement
)block
)if_statement
(return_statement
(identifier_function) identifier_function
)return_statement
)block
)function_definition
)module | Remove validator decoration from a function.
The `function` argument is the function to be cleaned from
the validator decorator. |
(module
(function_definition
(function_name_remove_event) function_name_remove_event
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_func_name) identifier_func_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_event) identifier_event
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(assignment
(identifier_event_funcs_copy) identifier_event_funcs_copy
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__events) identifier__events
)attribute
(identifier_event) identifier_event
)subscript
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_func) identifier_func
(call
(attribute
(identifier_self) identifier_self
(identifier__event_funcs) identifier__event_funcs
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
(identifier_func_name) identifier_func_name
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_event_funcs_copy) identifier_event_funcs_copy
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__events) identifier__events
)attribute
(identifier_event) identifier_event
)subscript
(identifier_event_funcs_copy) identifier_event_funcs_copy
)comparison_operator
(block
(expression_statement
(assignment
(identifier_err_msg) identifier_err_msg
(call
(attribute
(string_"function doesn't exist inside event {} ") string_"function doesn't exist inside event {} "
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_EventDoesntExist) identifier_EventDoesntExist
(argument_list
(identifier_err_msg) identifier_err_msg
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__events) identifier__events
)attribute
(identifier_event) identifier_event
)subscript
(identifier_event_funcs_copy) identifier_event_funcs_copy
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Removes a subscribed function from a specific event.
:param func_name: The name of the function to be removed.
:type func_name: str
:param event: The name of the event.
:type event: str
:raise EventDoesntExist if there func_name doesn't exist in event. |
(module
(function_definition
(function_name_archs) function_name_archs
(parameters
(identifier_self) identifier_self
(identifier__args) identifier__args
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(concatenated_string
(string_'{Style.BRIGHT}Available target architectures are:') string_'{Style.BRIGHT}Available target architectures are:'
(string_'{Style.RESET_ALL}') string_'{Style.RESET_ALL}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_Style) identifier_Style
(identifier_Out_Style) identifier_Out_Style
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_arch) identifier_arch
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ctx) identifier_ctx
)attribute
(identifier_archs) identifier_archs
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_' {}') string_' {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_arch) identifier_arch
(identifier_arch) identifier_arch
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | List the target architectures available to be built for. |
(module
(function_definition
(function_name_mean_values) function_name_mean_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_istransformed) identifier_istransformed
)attribute
)not_operator
(block
(return_statement
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pst) identifier_pst
)attribute
(identifier_parameter_data) identifier_parameter_data
)attribute
(identifier_parval1) identifier_parval1
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_vals) identifier_vals
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pst) identifier_pst
)attribute
(identifier_parameter_data) identifier_parameter_data
)attribute
(identifier_parval1) identifier_parval1
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_vals) identifier_vals
(attribute
(identifier_self) identifier_self
(identifier_log_indexer) identifier_log_indexer
)attribute
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_log10) identifier_log10
)attribute
(argument_list
(subscript
(identifier_vals) identifier_vals
(attribute
(identifier_self) identifier_self
(identifier_log_indexer) identifier_log_indexer
)attribute
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_vals) identifier_vals
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | the mean value vector while respecting log transform
Returns
-------
mean_values : pandas.Series |
(module
(function_definition
(function_name_getThirdPartyLibCmakeFlags) function_name_getThirdPartyLibCmakeFlags
(parameters
(identifier_self) identifier_self
(identifier_libs) identifier_libs
)parameters
(block
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(call
(attribute
(identifier_PrintingFormat) identifier_PrintingFormat
(identifier_singleLine) identifier_singleLine
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_libs) identifier_libs
(integer_0) integer_0
)subscript
(string_'--multiline') string_'--multiline'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(call
(attribute
(identifier_PrintingFormat) identifier_PrintingFormat
(identifier_multiLine) identifier_multiLine
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_libs) identifier_libs
(subscript
(identifier_libs) identifier_libs
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_platformDefaults) identifier_platformDefaults
(True) True
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_libs) identifier_libs
(integer_0) integer_0
)subscript
(string_'--nodefaults') string_'--nodefaults'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_platformDefaults) identifier_platformDefaults
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_libs) identifier_libs
(subscript
(identifier_libs) identifier_libs
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_details) identifier_details
(call
(attribute
(identifier_self) identifier_self
(identifier_getThirdpartyLibs) identifier_getThirdpartyLibs
)attribute
(argument_list
(identifier_libs) identifier_libs
(keyword_argument
(identifier_includePlatformDefaults) identifier_includePlatformDefaults
(identifier_platformDefaults) identifier_platformDefaults
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_CMakeCustomFlags) identifier_CMakeCustomFlags
(identifier_processLibraryDetails) identifier_processLibraryDetails
)attribute
(argument_list
(identifier_details) identifier_details
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_details) identifier_details
(identifier_getCMakeFlags) identifier_getCMakeFlags
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_getEngineRoot) identifier_getEngineRoot
)attribute
(argument_list
)argument_list
)call
(identifier_fmt) identifier_fmt
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves the CMake invocation flags for building against the Unreal-bundled versions of the specified third-party libraries |
(module
(function_definition
(function_name_serialize) function_name_serialize
(parameters
(identifier_self) identifier_self
(identifier_attr) identifier_attr
(identifier_obj) identifier_obj
(default_parameter
(identifier_accessor) identifier_accessor
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__CHECK_ATTRIBUTE) identifier__CHECK_ATTRIBUTE
)attribute
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_self) identifier_self
(identifier_get_value) identifier_get_value
)attribute
(argument_list
(identifier_obj) identifier_obj
(identifier_attr) identifier_attr
(keyword_argument
(identifier_accessor) identifier_accessor
(identifier_accessor) identifier_accessor
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(identifier_missing_) identifier_missing_
)comparison_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'default') string_'default'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_default) identifier_default
(attribute
(identifier_self) identifier_self
(identifier_default) identifier_default
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(conditional_expression
(call
(identifier_default) identifier_default
(argument_list
)argument_list
)call
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_default) identifier_default
)argument_list
)call
(identifier_default) identifier_default
)conditional_expression
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier_missing_) identifier_missing_
)comparison_operator
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__serialize) identifier__serialize
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_attr) identifier_attr
(identifier_obj) identifier_obj
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Pulls the value for the given key from the object, applies the
field's formatting and returns the result.
:param str attr: The attribute or key to get from the object.
:param str obj: The object to pull the key from.
:param callable accessor: Function used to pull values from ``obj``.
:param dict kwargs': Field-specific keyword arguments.
:raise ValidationError: In case of formatting problem |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_fn) identifier_fn
(default_parameter
(identifier_expand_includes) identifier_expand_includes
(True) True
)default_parameter
(default_parameter
(identifier_include_comments) identifier_include_comments
(False) False
)default_parameter
(default_parameter
(identifier_include_position) identifier_include_position
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_Parser) identifier_Parser
(argument_list
(keyword_argument
(identifier_expand_includes) identifier_expand_includes
(identifier_expand_includes) identifier_expand_includes
)keyword_argument
(keyword_argument
(identifier_include_comments) identifier_include_comments
(identifier_include_comments) identifier_include_comments
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ast) identifier_ast
(call
(attribute
(identifier_p) identifier_p
(identifier_parse_file) identifier_parse_file
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(identifier_MapfileToDict) identifier_MapfileToDict
(argument_list
(keyword_argument
(identifier_include_position) identifier_include_position
(identifier_include_position) identifier_include_position
)keyword_argument
(keyword_argument
(identifier_include_comments) identifier_include_comments
(identifier_include_comments) identifier_include_comments
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_m) identifier_m
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_ast) identifier_ast
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | Load a Mapfile from the supplied filename into a Python dictionary.
Parameters
----------
fn: string
The path to the Mapfile, or partial Mapfile
expand_includes: boolean
Load any ``INCLUDE`` files in the MapFile
include_comments: boolean
Include or discard comment strings from the Mapfile - *experimental*
include_position: boolean
Include the position of the Mapfile tokens in the output
Returns
-------
dict
A Python dictionary representing the Mapfile in the mappyfile format
Example
-------
To open a Mapfile from a filename and return it as a dictionary object::
d = mappyfile.open('mymap.map')
Notes
-----
Partial Mapfiles can also be opened, for example a file containing a ``LAYER`` object. |
(module
(function_definition
(function_name_get_connectable_volume_templates) function_name_get_connectable_volume_templates
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_start) identifier_start
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_count) identifier_count
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_filter) identifier_filter
(string_'') string_''
)default_parameter
(default_parameter
(identifier_query) identifier_query
(string_'') string_''
)default_parameter
(default_parameter
(identifier_sort) identifier_sort
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_URI) identifier_URI
)attribute
(string_"/connectable-volume-templates") string_"/connectable-volume-templates"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_get_uri) identifier_get_uri
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_build_query_uri) identifier_build_query_uri
)attribute
(argument_list
(keyword_argument
(identifier_start) identifier_start
(identifier_start) identifier_start
)keyword_argument
(keyword_argument
(identifier_count) identifier_count
(identifier_count) identifier_count
)keyword_argument
(keyword_argument
(identifier_filter) identifier_filter
(identifier_filter) identifier_filter
)keyword_argument
(keyword_argument
(identifier_query) identifier_query
(identifier_query) identifier_query
)keyword_argument
(keyword_argument
(identifier_sort) identifier_sort
(identifier_sort) identifier_sort
)keyword_argument
(keyword_argument
(identifier_uri) identifier_uri
(identifier_uri) identifier_uri
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_get_uri) identifier_get_uri
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the storage volume templates that are available on the specified networks based on the storage system
port's expected network connectivity. If there are no storage volume templates that meet the specified
connectivity criteria, an empty collection will be returned.
Returns:
list: Storage volume templates. |
(module
(function_definition
(function_name_parse_groups) function_name_parse_groups
(parameters
(identifier_self) identifier_self
(identifier_group) identifier_group
(identifier_params) identifier_params
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_group) identifier_group
(string_'GroupName') string_'GroupName'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_groups) identifier_groups
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_api_client) identifier_api_client
(subscript
(identifier_params) identifier_params
(string_'api_client') string_'api_client'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_group) identifier_group
(string_'id') string_'id'
)subscript
(call
(attribute
(identifier_group) identifier_group
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'GroupId') string_'GroupId'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_group) identifier_group
(string_'name') string_'name'
)subscript
(call
(attribute
(identifier_group) identifier_group
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'GroupName') string_'GroupName'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_group) identifier_group
(string_'arn') string_'arn'
)subscript
(call
(attribute
(identifier_group) identifier_group
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'Arn') string_'Arn'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_group) identifier_group
(string_'users') string_'users'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier___fetch_group_users) identifier___fetch_group_users
)attribute
(argument_list
(identifier_api_client) identifier_api_client
(subscript
(identifier_group) identifier_group
(string_'name') string_'name'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_policies) identifier_policies
(call
(attribute
(identifier_self) identifier_self
(identifier___get_inline_policies) identifier___get_inline_policies
)attribute
(argument_list
(identifier_api_client) identifier_api_client
(string_'group') string_'group'
(subscript
(identifier_group) identifier_group
(string_'id') string_'id'
)subscript
(subscript
(identifier_group) identifier_group
(string_'name') string_'name'
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_policies) identifier_policies
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_group) identifier_group
(string_'inline_policies') string_'inline_policies'
)subscript
(identifier_policies) identifier_policies
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_group) identifier_group
(string_'inline_policies_count') string_'inline_policies_count'
)subscript
(call
(identifier_len) identifier_len
(argument_list
(identifier_policies) identifier_policies
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_groups) identifier_groups
)attribute
(subscript
(identifier_group) identifier_group
(string_'id') string_'id'
)subscript
)subscript
(identifier_group) identifier_group
)assignment
)expression_statement
)block
)function_definition
)module | Parse a single IAM group and fetch additional information |
(module
(function_definition
(function_name_transaction_fail) function_name_transaction_fail
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(not_operator
(identifier_name) identifier_name
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Transaction name cannot be empty") string_"Transaction name cannot be empty"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_transaction_count) identifier_transaction_count
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"{}. Failing transaction {}") string_"{}. Failing transaction {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_transaction_count) identifier_transaction_count
)attribute
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_transaction_count) identifier_transaction_count
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__transaction_fail) identifier__transaction_fail
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__transaction_failing) identifier__transaction_failing
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_transaction_count) identifier_transaction_count
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | rollback a transaction if currently in one
e -- Exception() -- if passed in, bubble up the exception by re-raising it |
(module
(function_definition
(function_name_sample) function_name_sample
(parameters
(identifier_self) identifier_self
(identifier_hash) identifier_hash
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_offset) identifier_offset
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__uris) identifier__uris
)attribute
(string_'sample') string_'sample'
)subscript
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_hash) identifier_hash
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'limit') string_'limit'
(identifier_limit) identifier_limit
)pair
(pair
(string_'offset') string_'offset'
(identifier_offset) identifier_offset
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_parse) identifier_get_parse
)attribute
(argument_list
(identifier_uri) identifier_uri
(identifier_params) identifier_params
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an object representing the sample identified by the input hash, or an empty object if that sample is not found |
(module
(function_definition
(function_name_strict_deps_for_target) function_name_strict_deps_for_target
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
(default_parameter
(identifier_predicate) identifier_predicate
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__native_build_settings) identifier__native_build_settings
)attribute
(identifier_get_strict_deps_value_for_target) identifier_get_strict_deps_value_for_target
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_strict_deps) identifier_strict_deps
(call
(attribute
(identifier_target) identifier_target
(identifier_strict_dependencies) identifier_strict_dependencies
)attribute
(argument_list
(call
(identifier_DependencyContext) identifier_DependencyContext
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_predicate) identifier_predicate
(block
(expression_statement
(assignment
(identifier_filtered_deps) identifier_filtered_deps
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(identifier_predicate) identifier_predicate
(identifier_strict_deps) identifier_strict_deps
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_filtered_deps) identifier_filtered_deps
(identifier_strict_deps) identifier_strict_deps
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_deps) identifier_deps
(binary_operator
(list
(identifier_target) identifier_target
)list
(identifier_filtered_deps) identifier_filtered_deps
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_deps) identifier_deps
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(identifier_build_graph) identifier_build_graph
)attribute
(identifier_transitive_subgraph_of_addresses) identifier_transitive_subgraph_of_addresses
)attribute
(argument_list
(list
(attribute
(identifier_target) identifier_target
(identifier_address) identifier_address
)attribute
)list
(keyword_argument
(identifier_predicate) identifier_predicate
(identifier_predicate) identifier_predicate
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_deps) identifier_deps
(call
(identifier_filter) identifier_filter
(argument_list
(identifier_predicate) identifier_predicate
(identifier_deps) identifier_deps
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_deps) identifier_deps
)return_statement
)block
)function_definition
)module | Get the dependencies of `target` filtered by `predicate`, accounting for 'strict_deps'.
If 'strict_deps' is on, instead of using the transitive closure of dependencies, targets will
only be able to see their immediate dependencies declared in the BUILD file. The 'strict_deps'
setting is obtained from the result of `get_compile_settings()`.
NB: This includes the current target in the result. |
(module
(function_definition
(function_name_rdf_source) function_name_rdf_source
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_aformat) identifier_aformat
(string_"turtle") string_"turtle"
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_aformat) identifier_aformat
(comparison_operator
(identifier_aformat) identifier_aformat
(attribute
(identifier_self) identifier_self
(identifier_SUPPORTED_FORMATS) identifier_SUPPORTED_FORMATS
)attribute
)comparison_operator
)boolean_operator
(block
(return_statement
(binary_operator
(string_"Sorry. Allowed formats are %s") string_"Sorry. Allowed formats are %s"
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_SUPPORTED_FORMATS) identifier_SUPPORTED_FORMATS
)attribute
)argument_list
)call
)binary_operator
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_aformat) identifier_aformat
(string_"dot") string_"dot"
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___serializedDot) identifier___serializedDot
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rdflib_graph) identifier_rdflib_graph
)attribute
(identifier_serialize) identifier_serialize
)attribute
(argument_list
(keyword_argument
(identifier_format) identifier_format
(identifier_aformat) identifier_aformat
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Serialize graph using the format required |
(module
(function_definition
(function_name_create_primary_zone_by_upload) function_name_create_primary_zone_by_upload
(parameters
(identifier_self) identifier_self
(identifier_account_name) identifier_account_name
(identifier_zone_name) identifier_zone_name
(identifier_bind_file) identifier_bind_file
)parameters
(block
(expression_statement
(assignment
(identifier_zone_properties) identifier_zone_properties
(dictionary
(pair
(string_"name") string_"name"
(identifier_zone_name) identifier_zone_name
)pair
(pair
(string_"accountName") string_"accountName"
(identifier_account_name) identifier_account_name
)pair
(pair
(string_"type") string_"type"
(string_"PRIMARY") string_"PRIMARY"
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_primary_zone_info) identifier_primary_zone_info
(dictionary
(pair
(string_"forceImport") string_"forceImport"
(True) True
)pair
(pair
(string_"createType") string_"createType"
(string_"UPLOAD") string_"UPLOAD"
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zone_data) identifier_zone_data
(dictionary
(pair
(string_"properties") string_"properties"
(identifier_zone_properties) identifier_zone_properties
)pair
(pair
(string_"primaryCreateInfo") string_"primaryCreateInfo"
(identifier_primary_zone_info) identifier_primary_zone_info
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_files) identifier_files
(dictionary
(pair
(string_'zone') string_'zone'
(tuple
(string_'') string_''
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_zone_data) identifier_zone_data
)argument_list
)call
(string_'application/json') string_'application/json'
)tuple
)pair
(pair
(string_'file') string_'file'
(tuple
(string_'file') string_'file'
(call
(identifier_open) identifier_open
(argument_list
(identifier_bind_file) identifier_bind_file
(string_'rb') string_'rb'
)argument_list
)call
(string_'application/octet-stream') string_'application/octet-stream'
)tuple
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_rest_api_connection) identifier_rest_api_connection
)attribute
(identifier_post_multi_part) identifier_post_multi_part
)attribute
(argument_list
(string_"/v1/zones") string_"/v1/zones"
(identifier_files) identifier_files
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a new primary zone by uploading a bind file
Arguments:
account_name -- The name of the account that will contain this zone.
zone_name -- The name of the zone. It must be unique.
bind_file -- The file to upload. |
(module
(function_definition
(function_name__md5_compare) function_name__md5_compare
(parameters
(identifier_self) identifier_self
(identifier_file_path) identifier_file_path
(identifier_checksum) identifier_checksum
(default_parameter
(identifier_block_size) identifier_block_size
(binary_operator
(integer_2) integer_2
(integer_13) integer_13
)binary_operator
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_closing) identifier_closing
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__tqdm) identifier__tqdm
)attribute
(argument_list
(keyword_argument
(identifier_desc) identifier_desc
(string_"MD5 checksumming") string_"MD5 checksumming"
)keyword_argument
(keyword_argument
(identifier_total) identifier_total
(call
(identifier_getsize) identifier_getsize
(argument_list
(identifier_file_path) identifier_file_path
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_unit) identifier_unit
(string_"B") string_"B"
)keyword_argument
(keyword_argument
(identifier_unit_scale) identifier_unit_scale
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_progress) identifier_progress
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_md5) identifier_md5
(call
(attribute
(identifier_hashlib) identifier_hashlib
(identifier_md5) identifier_md5
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file_path) identifier_file_path
(string_"rb") string_"rb"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_block_data) identifier_block_data
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_block_size) identifier_block_size
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_block_data) identifier_block_data
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_md5) identifier_md5
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_block_data) identifier_block_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_progress) identifier_progress
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_block_data) identifier_block_data
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)while_statement
)block
)with_statement
(return_statement
(comparison_operator
(call
(attribute
(call
(attribute
(identifier_md5) identifier_md5
(identifier_hexdigest) identifier_hexdigest
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_checksum) identifier_checksum
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)return_statement
)block
)with_statement
)block
)function_definition
)module | Compare a given MD5 checksum with one calculated from a file. |
(module
(function_definition
(function_name_unmarshal_event) function_name_unmarshal_event
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_data) identifier_data
(type
(identifier_str) identifier_str
)type
)typed_parameter
(identifier_response_type) identifier_response_type
)parameters
(block
(expression_statement
(assignment
(identifier_js) identifier_js
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_js) identifier_js
(string_'raw_object') string_'raw_object'
)subscript
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(subscript
(identifier_js) identifier_js
(string_'type') string_'type'
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'error') string_'error'
)comparison_operator
(block
(return_statement
(identifier_js) identifier_js
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_response_type) identifier_response_type
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__api_client) identifier__api_client
)attribute
(identifier_deserialize) identifier_deserialize
)attribute
(argument_list
(keyword_argument
(identifier_response) identifier_response
(call
(identifier_SimpleNamespace) identifier_SimpleNamespace
(argument_list
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(subscript
(identifier_js) identifier_js
(string_'raw_object') string_'raw_object'
)subscript
)argument_list
)call
)keyword_argument
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_response_type) identifier_response_type
(identifier_response_type) identifier_response_type
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
(string_'metadata') string_'metadata'
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_resource_version) identifier_resource_version
)attribute
(attribute
(attribute
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
(identifier_metadata) identifier_metadata
)attribute
(identifier_resource_version) identifier_resource_version
)attribute
)assignment
)expression_statement
)block
(elif_clause
(parenthesized_expression
(boolean_operator
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
(identifier_dict) identifier_dict
)argument_list
)call
(comparison_operator
(string_'metadata') string_'metadata'
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
)comparison_operator
)boolean_operator
(comparison_operator
(string_'resourceVersion') string_'resourceVersion'
(subscript
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
(string_'metadata') string_'metadata'
)subscript
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_resource_version) identifier_resource_version
)attribute
(subscript
(subscript
(subscript
(identifier_js) identifier_js
(string_'object') string_'object'
)subscript
(string_'metadata') string_'metadata'
)subscript
(string_'resourceVersion') string_'resourceVersion'
)subscript
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(return_statement
(identifier_js) identifier_js
)return_statement
)block
)function_definition
)module | Return the K8s response `data` in JSON format. |
(module
(function_definition
(function_name_find_filter_class) function_name_find_filter_class
(parameters
(identifier_filtername) identifier_filtername
)parameters
(block
(if_statement
(comparison_operator
(identifier_filtername) identifier_filtername
(identifier_FILTERS) identifier_FILTERS
)comparison_operator
(block
(return_statement
(subscript
(identifier_FILTERS) identifier_FILTERS
(identifier_filtername) identifier_filtername
)subscript
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_cls) identifier_cls
)pattern_list
(call
(identifier_find_plugin_filters) identifier_find_plugin_filters
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_filtername) identifier_filtername
)comparison_operator
(block
(return_statement
(identifier_cls) identifier_cls
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Lookup a filter by name. Return None if not found. |
(module
(function_definition
(function_name_verify_database) function_name_verify_database
(parameters
(identifier_trusted_consensus_hash) identifier_trusted_consensus_hash
(identifier_consensus_block_height) identifier_consensus_block_height
(identifier_untrusted_working_dir) identifier_untrusted_working_dir
(identifier_trusted_working_dir) identifier_trusted_working_dir
(default_parameter
(identifier_start_block) identifier_start_block
(None) None
)default_parameter
(default_parameter
(identifier_expected_snapshots) identifier_expected_snapshots
(dictionary
)dictionary
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_db) identifier_db
(call
(attribute
(identifier_BlockstackDB) identifier_BlockstackDB
(identifier_get_readwrite_instance) identifier_get_readwrite_instance
)attribute
(argument_list
(identifier_trusted_working_dir) identifier_trusted_working_dir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_consensus_impl) identifier_consensus_impl
(identifier_virtualchain_hooks) identifier_virtualchain_hooks
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_virtualchain) identifier_virtualchain
(identifier_state_engine_verify) identifier_state_engine_verify
)attribute
(argument_list
(identifier_trusted_consensus_hash) identifier_trusted_consensus_hash
(identifier_consensus_block_height) identifier_consensus_block_height
(identifier_consensus_impl) identifier_consensus_impl
(identifier_untrusted_working_dir) identifier_untrusted_working_dir
(identifier_db) identifier_db
(keyword_argument
(identifier_start_block) identifier_start_block
(identifier_start_block) identifier_start_block
)keyword_argument
(keyword_argument
(identifier_expected_snapshots) identifier_expected_snapshots
(identifier_expected_snapshots) identifier_expected_snapshots
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Verify that a database is consistent with a
known-good consensus hash.
Return True if valid.
Return False if not |
(module
(function_definition
(function_name_get_default) function_name_get_default
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(await
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier__handler) identifier__handler
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(attribute
(identifier_cls) identifier_cls
(identifier__default_fabric_id) identifier__default_fabric_id
)attribute
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the 'default' Fabric for the MAAS. |
(module
(function_definition
(function_name_normalize_shape) function_name_normalize_shape
(parameters
(identifier_shape) identifier_shape
)parameters
(block
(if_statement
(comparison_operator
(identifier_shape) identifier_shape
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'shape is None') string_'shape is None'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_shape) identifier_shape
(attribute
(identifier_numbers) identifier_numbers
(identifier_Integral) identifier_Integral
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_shape) identifier_shape
(tuple
(call
(identifier_int) identifier_int
(argument_list
(identifier_shape) identifier_shape
)argument_list
)call
)tuple
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_shape) identifier_shape
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_int) identifier_int
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(for_in_clause
(identifier_s) identifier_s
(identifier_shape) identifier_shape
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(identifier_shape) identifier_shape
)return_statement
)block
)function_definition
)module | Convenience function to normalize the `shape` argument. |
(module
(function_definition
(function_name_create_files) function_name_create_files
(parameters
(identifier_filedef) identifier_filedef
(default_parameter
(identifier_cleanup) identifier_cleanup
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cwd) identifier_cwd
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)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
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier_Filemaker) identifier_Filemaker
(argument_list
(identifier_tmpdir) identifier_tmpdir
(identifier_filedef) identifier_filedef
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_cleanup) identifier_cleanup
)not_operator
(block
(pass_statement
)pass_statement
)block
)if_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
(yield
(identifier_tmpdir) identifier_tmpdir
)yield
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_cwd) identifier_cwd
)argument_list
)call
)expression_statement
(if_statement
(identifier_cleanup) identifier_cleanup
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(identifier_tmpdir) identifier_tmpdir
(keyword_argument
(identifier_ignore_errors) identifier_ignore_errors
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Contextmanager that creates a directory structure from a yaml
descripttion. |
(module
(function_definition
(function_name_get_appended_name) function_name_get_appended_name
(parameters
(identifier_name) identifier_name
(identifier_columns) identifier_columns
)parameters
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_columns) identifier_columns
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_loop) identifier_loop
(integer_1) integer_1
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_loop) identifier_loop
(integer_10) integer_10
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger_misc) identifier_logger_misc
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"get_appended_name: Too many loops: Tried to get appended name but something looks wrong") string_"get_appended_name: Too many loops: Tried to get appended name but something looks wrong"
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tmp) identifier_tmp
(binary_operator
(binary_operator
(identifier_name) identifier_name
(string_"-") string_"-"
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_loop) identifier_loop
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_tmp) identifier_tmp
(identifier_columns) identifier_columns
)comparison_operator
(block
(return_statement
(identifier_tmp) identifier_tmp
)return_statement
)block
)if_statement
)block
)while_statement
(return_statement
(binary_operator
(identifier_name) identifier_name
(string_"-99") string_"-99"
)binary_operator
)return_statement
)block
)function_definition
)module | Append numbers to a name until it no longer conflicts with the other names in a column.
Necessary to avoid overwriting columns and losing data. Loop a preset amount of times to avoid an infinite loop.
There shouldn't ever be more than two or three identical variable names in a table.
:param str name: Variable name in question
:param dict columns: Columns listed by variable name
:return str: Appended variable name |
(module
(function_definition
(function_name_tracking_save) function_name_tracking_save
(parameters
(identifier_sender) identifier_sender
(identifier_instance) identifier_instance
(identifier_raw) identifier_raw
(identifier_using) identifier_using
(identifier_update_fields) identifier_update_fields
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier__has_changed) identifier__has_changed
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_instance) identifier_instance
(identifier__original_fields) identifier__original_fields
)attribute
(string_'pk') string_'pk'
)subscript
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier__create_create_tracking_event) identifier__create_create_tracking_event
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier__create_update_tracking_event) identifier__create_update_tracking_event
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(call
(identifier__has_changed_related) identifier__has_changed_related
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
(block
(expression_statement
(call
(identifier__create_update_tracking_related_event) identifier__create_update_tracking_related_event
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(identifier__has_changed) identifier__has_changed
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
(call
(identifier__has_changed_related) identifier__has_changed_related
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(identifier__set_original_fields) identifier__set_original_fields
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Post save, detect creation or changes and log them.
We need post_save to have the object for a create. |
(module
(function_definition
(function_name_clear_state) function_name_clear_state
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_'steps') string_'steps'
)subscript
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_'current_step') string_'current_step'
)subscript
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_'scope') string_'scope'
)subscript
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_'counters') string_'counters'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(string_'strings') string_'strings'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_step) identifier_step
(attribute
(identifier_self) identifier_self
(identifier_matchers) identifier_matchers
)attribute
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_step) identifier_step
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_step) identifier_step
)subscript
(string_'pending') string_'pending'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_step) identifier_step
)subscript
(string_'actions') string_'actions'
)subscript
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_step) identifier_step
)subscript
(string_'counters') string_'counters'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_step) identifier_step
)subscript
(string_'strings') string_'strings'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_state) identifier_state
)attribute
(identifier_step) identifier_step
)subscript
(string_'recipe') string_'recipe'
)subscript
(False) False
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Clear the recipe state. |
(module
(function_definition
(function_name_get_prev_block_hash) function_name_get_prev_block_hash
(parameters
(identifier_block_representation) identifier_block_representation
(default_parameter
(identifier_coin_symbol) identifier_coin_symbol
(string_'btc') string_'btc'
)default_parameter
(default_parameter
(identifier_api_key) identifier_api_key
(None) None
)default_parameter
)parameters
(block
(return_statement
(subscript
(call
(identifier_get_block_overview) identifier_get_block_overview
(argument_list
(keyword_argument
(identifier_block_representation) identifier_block_representation
(identifier_block_representation) identifier_block_representation
)keyword_argument
(keyword_argument
(identifier_coin_symbol) identifier_coin_symbol
(identifier_coin_symbol) identifier_coin_symbol
)keyword_argument
(keyword_argument
(identifier_txn_limit) identifier_txn_limit
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_api_key) identifier_api_key
(identifier_api_key) identifier_api_key
)keyword_argument
)argument_list
)call
(string_'prev_block') string_'prev_block'
)subscript
)return_statement
)block
)function_definition
)module | Takes a block_representation and returns the previous block hash |
(module
(function_definition
(function_name_DbAddServer) function_name_DbAddServer
(parameters
(identifier_self) identifier_self
(identifier_argin) identifier_argin
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__log) identifier__log
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"In DbAddServer()") string_"In DbAddServer()"
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_argin) identifier_argin
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(not_operator
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_argin) identifier_argin
)argument_list
)call
(integer_2) integer_2
)binary_operator
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_warn_stream) identifier_warn_stream
)attribute
(argument_list
(string_"DataBase::AddServer(): incorrect number of input arguments ") string_"DataBase::AddServer(): incorrect number of input arguments "
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_th_exc) identifier_th_exc
(argument_list
(identifier_DB_IncorrectArguments) identifier_DB_IncorrectArguments
(string_"incorrect no. of input arguments, needs at least 3 (server,device,class)") string_"incorrect no. of input arguments, needs at least 3 (server,device,class)"
(string_"DataBase::AddServer()") string_"DataBase::AddServer()"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_server_name) identifier_server_name
(subscript
(identifier_argin) identifier_argin
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_argin) identifier_argin
)argument_list
)call
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_d_name) identifier_d_name
(identifier_klass_name) identifier_klass_name
)pattern_list
(expression_list
(subscript
(identifier_argin) identifier_argin
(binary_operator
(binary_operator
(identifier_i) identifier_i
(integer_2) integer_2
)binary_operator
(integer_1) integer_1
)binary_operator
)subscript
(subscript
(identifier_argin) identifier_argin
(binary_operator
(binary_operator
(identifier_i) identifier_i
(integer_2) integer_2
)binary_operator
(integer_2) integer_2
)binary_operator
)subscript
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_ret) identifier_ret
(identifier_dev_name) identifier_dev_name
(identifier_dfm) identifier_dfm
)pattern_list
(call
(identifier_check_device_name) identifier_check_device_name
(argument_list
(identifier_d_name) identifier_d_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ret) identifier_ret
)not_operator
(block
(expression_statement
(call
(identifier_th_exc) identifier_th_exc
(argument_list
(identifier_DB_IncorrectDeviceName) identifier_DB_IncorrectDeviceName
(binary_operator
(binary_operator
(string_"device name (") string_"device name ("
(identifier_d_name) identifier_d_name
)binary_operator
(string_") syntax error (should be [tango:][//instance/]domain/family/member)") string_") syntax error (should be [tango:][//instance/]domain/family/member)"
)binary_operator
(string_"DataBase::AddServer()") string_"DataBase::AddServer()"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db) identifier_db
)attribute
(identifier_add_device) identifier_add_device
)attribute
(argument_list
(identifier_server_name) identifier_server_name
(tuple
(identifier_dev_name) identifier_dev_name
(identifier_dfm) identifier_dfm
)tuple
(identifier_klass_name) identifier_klass_name
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Create a device server process entry in database
:param argin: Str[0] = Full device server name
Str[1] = Device(s) name
Str[2] = Tango class name
Str[n] = Device name
Str[n + 1] = Tango class name
:type: tango.DevVarStringArray
:return:
:rtype: tango.DevVoid |
(module
(function_definition
(function_name_transfer) function_name_transfer
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_transfer_payload) identifier_transfer_payload
(None) None
)default_parameter
(keyword_separator
)keyword_separator
(identifier_from_user) identifier_from_user
(identifier_to_user) identifier_to_user
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_persist_id) identifier_persist_id
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_EntityNotYetPersistedError) identifier_EntityNotYetPersistedError
(argument_list
(parenthesized_expression
(concatenated_string
(string_'Entities cannot be transferred ') string_'Entities cannot be transferred '
(string_'until they have been ') string_'until they have been '
(string_'persisted') string_'persisted'
)concatenated_string
)parenthesized_expression
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_plugin) identifier_plugin
)attribute
(identifier_transfer) identifier_transfer
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_persist_id) identifier_persist_id
)attribute
(identifier_transfer_payload) identifier_transfer_payload
(keyword_argument
(identifier_from_user) identifier_from_user
(identifier_from_user) identifier_from_user
)keyword_argument
(keyword_argument
(identifier_to_user) identifier_to_user
(identifier_to_user) identifier_to_user
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Transfer this entity to another owner on the backing
persistence layer
Args:
transfer_payload (dict): Payload for the transfer
from_user (any): A user based on the model specified by the
persistence layer
to_user (any): A user based on the model specified by the
persistence layer
Returns:
str: Id of the resulting transfer action on the persistence
layer
Raises:
:exc:`~.EntityNotYetPersistedError`: If the entity being
transferred is not associated with an id on the
persistence layer (:attr:`~Entity.persist_id`) yet
:exc:`~.EntityNotFoundError`: If the entity could not be
found on the persistence layer
:exc:`~.EntityTransferError`: If the entity fails to be
transferred on the persistence layer
:exc:`~.PersistenceError`: If any other unhandled error
in the plugin occurred |
(module
(function_definition
(function_name_cluster_path) function_name_cluster_path
(parameters
(identifier_cls) identifier_cls
(identifier_project) identifier_project
(identifier_instance) identifier_instance
(identifier_cluster) identifier_cluster
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_path_template) identifier_path_template
)attribute
(identifier_expand) identifier_expand
)attribute
(argument_list
(string_"projects/{project}/instances/{instance}/clusters/{cluster}") string_"projects/{project}/instances/{instance}/clusters/{cluster}"
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_instance) identifier_instance
(identifier_instance) identifier_instance
)keyword_argument
(keyword_argument
(identifier_cluster) identifier_cluster
(identifier_cluster) identifier_cluster
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a fully-qualified cluster string. |
(module
(function_definition
(function_name_symmetrized) function_name_symmetrized
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_perms) identifier_perms
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_permutations) identifier_permutations
)attribute
(argument_list
(call
(identifier_range) identifier_range
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_rank) identifier_rank
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(identifier_sum) identifier_sum
(argument_list
(list_comprehension
(call
(attribute
(identifier_np) identifier_np
(identifier_transpose) identifier_transpose
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_ind) identifier_ind
)argument_list
)call
(for_in_clause
(identifier_ind) identifier_ind
(identifier_perms) identifier_perms
)for_in_clause
)list_comprehension
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_perms) identifier_perms
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Returns a generally symmetrized tensor, calculated by taking
the sum of the tensor and its transpose with respect to all
possible permutations of indices |
(module
(function_definition
(function_name_count) function_name_count
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'_response') string_'_response'
)argument_list
)call
(block
(return_statement
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__response) identifier__response
)attribute
(identifier_hits) identifier_hits
)attribute
(identifier_total) identifier_total
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_es) identifier_es
(call
(attribute
(identifier_connections) identifier_connections
(identifier_get_connection) identifier_get_connection
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__using) identifier__using
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_self) identifier_self
(identifier_to_dict) identifier_to_dict
)attribute
(argument_list
(keyword_argument
(identifier_count) identifier_count
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(call
(attribute
(identifier_es) identifier_es
(identifier_count) identifier_count
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(attribute
(identifier_self) identifier_self
(identifier__index) identifier__index
)attribute
)keyword_argument
(keyword_argument
(identifier_body) identifier_body
(identifier_d) identifier_d
)keyword_argument
(dictionary_splat
(attribute
(identifier_self) identifier_self
(identifier__params) identifier__params
)attribute
)dictionary_splat
)argument_list
)call
(string_'count') string_'count'
)subscript
)return_statement
)block
)function_definition
)module | Return the number of hits matching the query and filters. Note that
only the actual number is returned. |
(module
(function_definition
(function_name_update_room) function_name_update_room
(parameters
(identifier_room) identifier_room
)parameters
(block
(if_statement
(attribute
(identifier_room) identifier_room
(identifier_custom_server) identifier_custom_server
)attribute
(block
(return_statement
)return_statement
)block
)if_statement
(function_definition
(function_name__update_room) function_name__update_room
(parameters
(identifier_xmpp) identifier_xmpp
)parameters
(block
(expression_statement
(assignment
(identifier_muc) identifier_muc
(subscript
(attribute
(identifier_xmpp) identifier_xmpp
(identifier_plugin) identifier_plugin
)attribute
(string_'xep_0045') string_'xep_0045'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_muc) identifier_muc
(identifier_joinMUC) identifier_joinMUC
)attribute
(argument_list
(attribute
(identifier_room) identifier_room
(identifier_jid) identifier_jid
)attribute
(attribute
(attribute
(identifier_xmpp) identifier_xmpp
(identifier_requested_jid) identifier_requested_jid
)attribute
(identifier_user) identifier_user
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_muc) identifier_muc
(identifier_configureRoom) identifier_configureRoom
)attribute
(argument_list
(attribute
(identifier_room) identifier_room
(identifier_jid) identifier_jid
)attribute
(call
(identifier__set_form_values) identifier__set_form_values
(argument_list
(identifier_xmpp) identifier_xmpp
(identifier_room) identifier_room
(call
(attribute
(identifier_muc) identifier_muc
(identifier_getRoomConfig) identifier_getRoomConfig
)attribute
(argument_list
(attribute
(identifier_room) identifier_room
(identifier_jid) identifier_jid
)attribute
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(call
(attribute
(attribute
(identifier_current_plugin) identifier_current_plugin
(identifier_logger) identifier_logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Updating room %s') string_'Updating room %s'
(attribute
(identifier_room) identifier_room
(identifier_jid) identifier_jid
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__execute_xmpp) identifier__execute_xmpp
(argument_list
(identifier__update_room) identifier__update_room
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Updates a MUC room on the XMPP server. |
(module
(function_definition
(function_name_typecounter) function_name_typecounter
(parameters
(identifier_table) identifier_table
(identifier_field) identifier_field
)parameters
(block
(expression_statement
(assignment
(identifier_counter) identifier_counter
(call
(identifier_Counter) identifier_Counter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_v) identifier_v
(call
(identifier_values) identifier_values
(argument_list
(identifier_table) identifier_table
(identifier_field) identifier_field
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_counter) identifier_counter
(attribute
(attribute
(identifier_v) identifier_v
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_counter) identifier_counter
)return_statement
)block
)function_definition
)module | Count the number of values found for each Python type.
>>> import petl as etl
>>> table = [['foo', 'bar', 'baz'],
... ['A', 1, 2],
... ['B', u'2', '3.4'],
... [u'B', u'3', u'7.8', True],
... ['D', u'xyz', 9.0],
... ['E', 42]]
>>> etl.typecounter(table, 'foo')
Counter({'str': 5})
>>> etl.typecounter(table, 'bar')
Counter({'str': 3, 'int': 2})
>>> etl.typecounter(table, 'baz')
Counter({'str': 2, 'int': 1, 'float': 1, 'NoneType': 1})
The `field` argument can be a field name or index (starting from zero). |
(module
(function_definition
(function_name_absolute_uri) function_name_absolute_uri
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
(default_parameter
(identifier_scheme) identifier_scheme
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_query) identifier_query
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_absolute_uri) identifier_is_absolute_uri
(argument_list
(identifier_location) identifier_location
)argument_list
)call
)not_operator
(block
(if_statement
(boolean_operator
(identifier_location) identifier_location
(comparison_operator
(identifier_location) identifier_location
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(call
(attribute
(identifier_self) identifier_self
(identifier_full_path) identifier_full_path
)attribute
(argument_list
(identifier_location) identifier_location
(dictionary_splat
(identifier_query) identifier_query
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_scheme) identifier_scheme
)not_operator
(block
(expression_statement
(assignment
(identifier_scheme) identifier_scheme
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_secure) identifier_is_secure
)attribute
(string_'https') string_'https'
)boolean_operator
(string_'http') string_'http'
)boolean_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_base) identifier_base
(binary_operator
(string_'%s://%s') string_'%s://%s'
(tuple
(identifier_scheme) identifier_scheme
(call
(attribute
(identifier_self) identifier_self
(identifier_get_host) identifier_get_host
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(string_'%s%s') string_'%s%s'
(tuple
(identifier_base) identifier_base
(identifier_location) identifier_location
)tuple
)binary_operator
)return_statement
)block
(elif_clause
(not_operator
(identifier_scheme) identifier_scheme
)not_operator
(block
(return_statement
(call
(identifier_iri_to_uri) identifier_iri_to_uri
(argument_list
(identifier_location) identifier_location
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Absolute location with scheme not valid') string_'Absolute location with scheme not valid'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Builds an absolute URI from ``location`` and variables
available in this request.
If no ``location`` is specified, the relative URI is built from
:meth:`full_path`. |
(module
(function_definition
(function_name_min) function_name_min
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_is_quantized) identifier_is_quantized
)attribute
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_base_dtype) identifier_base_dtype
)attribute
(tuple
(identifier_bool) identifier_bool
(identifier_string) identifier_string
(identifier_complex64) identifier_complex64
(identifier_complex128) identifier_complex128
)tuple
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_"Cannot find minimum value of %s.") string_"Cannot find minimum value of %s."
(identifier_self) identifier_self
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(return_statement
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_finfo) identifier_finfo
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_as_numpy_dtype) identifier_as_numpy_dtype
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_min) identifier_min
)attribute
)return_statement
)block
(except_clause
(block
(try_statement
(block
(return_statement
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_iinfo) identifier_iinfo
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_as_numpy_dtype) identifier_as_numpy_dtype
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_min) identifier_min
)attribute
)return_statement
)block
(except_clause
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_base_dtype) identifier_base_dtype
)attribute
(identifier_bfloat16) identifier_bfloat16
)comparison_operator
(block
(return_statement
(call
(identifier__np_bfloat16) identifier__np_bfloat16
(argument_list
(call
(attribute
(identifier_float) identifier_float
(identifier_fromhex) identifier_fromhex
)attribute
(argument_list
(string_"-0x1.FEp127") string_"-0x1.FEp127"
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_"Cannot find minimum value of %s.") string_"Cannot find minimum value of %s."
(identifier_self) identifier_self
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the minimum representable value in this data type.
Raises:
TypeError: if this is a non-numeric, unordered, or quantized type. |
(module
(function_definition
(function_name_flat_list) function_name_flat_list
(parameters
(identifier_input_list) identifier_input_list
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_x) identifier_x
(identifier_input_list) identifier_input_list
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(list_comprehension
(identifier_a) identifier_a
(for_in_clause
(identifier_i) identifier_i
(identifier_x) identifier_x
)for_in_clause
(for_in_clause
(identifier_a) identifier_a
(call
(identifier_flat_list) identifier_flat_list
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
(else_clause
(block
(return_statement
(list
(identifier_x) identifier_x
)list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | r"""
Given a list of nested lists of arbitrary depth, returns a single level or
'flat' list. |
(module
(function_definition
(function_name_putParamset) function_name_putParamset
(parameters
(identifier_self) identifier_self
(identifier_paramset) identifier_paramset
(default_parameter
(identifier_data) identifier_data
(dictionary
)dictionary
)default_parameter
)parameters
(block
(try_statement
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_paramset) identifier_paramset
(attribute
(identifier_self) identifier_self
(identifier__PARAMSETS) identifier__PARAMSETS
)attribute
)comparison_operator
(identifier_data) identifier_data
)boolean_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__proxy) identifier__proxy
)attribute
(identifier_putParamset) identifier_putParamset
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__ADDRESS) identifier__ADDRESS
)attribute
(identifier_paramset) identifier_paramset
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_updateParamsets) identifier_updateParamsets
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_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_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"HMGeneric.putParamset: Exception: ") string_"HMGeneric.putParamset: Exception: "
(call
(identifier_str) identifier_str
(argument_list
(identifier_err) identifier_err
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Some devices act upon changes to paramsets.
A "putted" paramset must not contain all keys available in the specified paramset,
just the ones which are writable and should be changed. |
(module
(function_definition
(function_name_gateways_info) function_name_gateways_info
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_netifaces) identifier_netifaces
(identifier_gateways) identifier_gateways
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(dictionary
(pair
(string_'default') string_'default'
(dictionary
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(identifier_suppress) identifier_suppress
(argument_list
(identifier_KeyError) identifier_KeyError
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(subscript
(identifier_results) identifier_results
(string_'ipv4') string_'ipv4'
)subscript
(subscript
(identifier_data) identifier_data
(attribute
(identifier_netifaces) identifier_netifaces
(identifier_AF_INET) identifier_AF_INET
)attribute
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_results) identifier_results
(string_'default') string_'default'
)subscript
(string_'ipv4') string_'ipv4'
)subscript
(subscript
(subscript
(identifier_data) identifier_data
(string_'default') string_'default'
)subscript
(attribute
(identifier_netifaces) identifier_netifaces
(identifier_AF_INET) identifier_AF_INET
)attribute
)subscript
)assignment
)expression_statement
)block
)with_statement
(with_statement
(with_clause
(with_item
(call
(identifier_suppress) identifier_suppress
(argument_list
(identifier_KeyError) identifier_KeyError
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(subscript
(identifier_results) identifier_results
(string_'ipv6') string_'ipv6'
)subscript
(subscript
(identifier_data) identifier_data
(attribute
(identifier_netifaces) identifier_netifaces
(identifier_AF_INET6) identifier_AF_INET6
)attribute
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_results) identifier_results
(string_'default') string_'default'
)subscript
(string_'ipv6') string_'ipv6'
)subscript
(subscript
(subscript
(identifier_data) identifier_data
(string_'default') string_'default'
)subscript
(attribute
(identifier_netifaces) identifier_netifaces
(identifier_AF_INET6) identifier_AF_INET6
)attribute
)subscript
)assignment
)expression_statement
)block
)with_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Returns gateways data. |
(module
(function_definition
(function_name_library_hierarchy_depth) function_name_library_hierarchy_depth
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_current_library_hierarchy_depth) identifier_current_library_hierarchy_depth
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_library_root_state) identifier_library_root_state
(call
(attribute
(identifier_self) identifier_self
(identifier_get_next_upper_library_root_state) identifier_get_next_upper_library_root_state
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_library_root_state) identifier_library_root_state
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_current_library_hierarchy_depth) identifier_current_library_hierarchy_depth
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_library_root_state) identifier_library_root_state
(call
(attribute
(attribute
(identifier_library_root_state) identifier_library_root_state
(identifier_parent) identifier_parent
)attribute
(identifier_get_next_upper_library_root_state) identifier_get_next_upper_library_root_state
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_current_library_hierarchy_depth) identifier_current_library_hierarchy_depth
)return_statement
)block
)function_definition
)module | Calculates the library hierarchy depth
Counting starts at the current library state. So if the there is no upper library state the depth is one.
:return: library hierarchy depth
:rtype: int |
(module
(function_definition
(function_name_token_cache_pkgs) function_name_token_cache_pkgs
(parameters
(default_parameter
(identifier_source) identifier_source
(None) None
)default_parameter
(default_parameter
(identifier_release) identifier_release
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_packages) identifier_packages
(list
)list
)assignment
)expression_statement
(if_statement
(call
(identifier_enable_memcache) identifier_enable_memcache
(argument_list
(keyword_argument
(identifier_source) identifier_source
(identifier_source) identifier_source
)keyword_argument
(keyword_argument
(identifier_release) identifier_release
(identifier_release) identifier_release
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_packages) identifier_packages
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(string_'memcached') string_'memcached'
(string_'python-memcache') string_'python-memcache'
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_packages) identifier_packages
)return_statement
)block
)function_definition
)module | Determine additional packages needed for token caching
@param source: source string for charm
@param release: release of OpenStack currently deployed
@returns List of package to enable token caching |
(module
(function_definition
(function_name_verify_connectivity) function_name_verify_connectivity
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Verifying Connectivity") string_"Verifying Connectivity"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ic) identifier_ic
(call
(identifier_InsightsConnection) identifier_InsightsConnection
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_branch_info) identifier_branch_info
(call
(attribute
(identifier_ic) identifier_ic
(identifier_get_branch_info) identifier_get_branch_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_requests) identifier_requests
(identifier_ConnectionError) identifier_ConnectionError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Failed to connect to satellite") string_"Failed to connect to satellite"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_LookupError) identifier_LookupError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Failed to parse response from satellite") string_"Failed to parse response from satellite"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_remote_leaf) identifier_remote_leaf
(subscript
(identifier_branch_info) identifier_branch_info
(string_'remote_leaf') string_'remote_leaf'
)subscript
)assignment
)expression_statement
(return_statement
(identifier_remote_leaf) identifier_remote_leaf
)return_statement
)block
(except_clause
(as_pattern
(identifier_LookupError) identifier_LookupError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Failed to find accurate branch_info") string_"Failed to find accurate branch_info"
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Verify connectivity to satellite server |
(module
(function_definition
(function_name__inject_patched_examples) function_name__inject_patched_examples
(parameters
(identifier_self) identifier_self
(identifier_existing_item) identifier_existing_item
(identifier_patched_item) identifier_patched_item
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier__) identifier__
)pattern_list
(call
(attribute
(attribute
(identifier_patched_item) identifier_patched_item
(identifier_examples) identifier_examples
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_patched_example) identifier_patched_example
(subscript
(attribute
(identifier_patched_item) identifier_patched_item
(identifier_examples) identifier_examples
)attribute
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_existing_examples) identifier_existing_examples
(attribute
(identifier_existing_item) identifier_existing_item
(identifier_examples) identifier_examples
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(identifier_existing_examples) identifier_existing_examples
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(subscript
(identifier_existing_examples) identifier_existing_examples
(identifier_key) identifier_key
)subscript
(identifier_fields) identifier_fields
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_patched_example) identifier_patched_example
(identifier_fields) identifier_fields
)attribute
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_error_msg) identifier_error_msg
(string_'Example defined in patch {} must correspond to a pre-existing example.') string_'Example defined in patch {} must correspond to a pre-existing example.'
)assignment
)expression_statement
(raise_statement
(call
(identifier_InvalidSpec) identifier_InvalidSpec
(argument_list
(call
(attribute
(identifier_error_msg) identifier_error_msg
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_quote) identifier_quote
(argument_list
(attribute
(identifier_patched_item) identifier_patched_item
(identifier_name) identifier_name
)attribute
)argument_list
)call
)argument_list
)call
(attribute
(identifier_patched_example) identifier_patched_example
(identifier_lineno) identifier_lineno
)attribute
(attribute
(identifier_patched_example) identifier_patched_example
(identifier_path) identifier_path
)attribute
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Injects patched examples into original examples. |
(module
(function_definition
(function_name_validate_argmin_with_skipna) function_name_validate_argmin_with_skipna
(parameters
(identifier_skipna) identifier_skipna
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_skipna) identifier_skipna
(identifier_args) identifier_args
)pattern_list
(call
(identifier_process_skipna) identifier_process_skipna
(argument_list
(identifier_skipna) identifier_skipna
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_validate_argmin) identifier_validate_argmin
(argument_list
(identifier_args) identifier_args
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(return_statement
(identifier_skipna) identifier_skipna
)return_statement
)block
)function_definition
)module | If 'Series.argmin' is called via the 'numpy' library,
the third parameter in its signature is 'out', which
takes either an ndarray or 'None', so check if the
'skipna' parameter is either an instance of ndarray or
is None, since 'skipna' itself should be a boolean |
(module
(function_definition
(function_name_next) function_name_next
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__selfiter) identifier__selfiter
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"Calling 'next' directly on a query is deprecated. ") string_"Calling 'next' directly on a query is deprecated. "
(string_"Perhaps you want to use iter(query).next(), or something ") string_"Perhaps you want to use iter(query).next(), or something "
(string_"more expressive like store.findFirst or store.findOrCreate?") string_"more expressive like store.findFirst or store.findOrCreate?"
)concatenated_string
(identifier_DeprecationWarning) identifier_DeprecationWarning
(keyword_argument
(identifier_stacklevel) identifier_stacklevel
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__selfiter) identifier__selfiter
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier___iter__) identifier___iter__
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__selfiter) identifier__selfiter
)attribute
(identifier_next) identifier_next
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | This method is deprecated, a holdover from when queries were iterators,
rather than iterables.
@return: one element of massaged data. |
(module
(function_definition
(function_name_rollback) function_name_rollback
(parameters
(identifier_self) identifier_self
(identifier_release) identifier_release
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__h) identifier__h
)attribute
(identifier__http_resource) identifier__http_resource
)attribute
(argument_list
(keyword_argument
(identifier_method) identifier_method
(string_'POST') string_'POST'
)keyword_argument
(keyword_argument
(identifier_resource) identifier_resource
(tuple
(string_'apps') string_'apps'
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(string_'releases') string_'releases'
)tuple
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(dictionary
(pair
(string_'rollback') string_'rollback'
(identifier_release) identifier_release
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_releases) identifier_releases
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)return_statement
)block
)function_definition
)module | Rolls back the release to the given version. |
(module
(function_definition
(function_name_most_recent_submission) function_name_most_recent_submission
(parameters
(identifier_project) identifier_project
(identifier_group) identifier_group
)parameters
(block
(return_statement
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_Submission) identifier_Submission
(identifier_query_by) identifier_query_by
)attribute
(argument_list
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_group) identifier_group
(identifier_group) identifier_group
)keyword_argument
)argument_list
)call
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_Submission) identifier_Submission
(identifier_created_at) identifier_created_at
)attribute
(identifier_desc) identifier_desc
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Return the most recent submission for the user and project id. |
(module
(function_definition
(function_name_params_for) function_name_params_for
(parameters
(identifier_prefix) identifier_prefix
(identifier_kwargs) identifier_kwargs
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_prefix) identifier_prefix
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'__') string_'__'
)argument_list
)call
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_prefix) identifier_prefix
(string_'__') string_'__'
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(dictionary_comprehension
(pair
(subscript
(identifier_key) identifier_key
(slice
(call
(identifier_len) identifier_len
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
(colon) colon
)slice
)subscript
(identifier_val) identifier_val
)pair
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(call
(attribute
(identifier_key) identifier_key
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_prefix) identifier_prefix
)argument_list
)call
)if_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Extract parameters that belong to a given sklearn module prefix from
``kwargs``. This is useful to obtain parameters that belong to a
submodule.
Examples
--------
>>> kwargs = {'encoder__a': 3, 'encoder__b': 4, 'decoder__a': 5}
>>> params_for('encoder', kwargs)
{'a': 3, 'b': 4} |
(module
(function_definition
(function_name_joint_entropy_calc) function_name_joint_entropy_calc
(parameters
(identifier_classes) identifier_classes
(identifier_table) identifier_table
(identifier_POP) identifier_POP
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(identifier_classes) identifier_classes
(block
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_j) identifier_j
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_classes) identifier_classes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_p_prime) identifier_p_prime
(binary_operator
(subscript
(subscript
(identifier_table) identifier_table
(identifier_i) identifier_i
)subscript
(identifier_j) identifier_j
)subscript
(subscript
(identifier_POP) identifier_POP
(identifier_i) identifier_i
)subscript
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_p_prime) identifier_p_prime
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(binary_operator
(identifier_p_prime) identifier_p_prime
(call
(attribute
(identifier_math) identifier_math
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_p_prime) identifier_p_prime
(integer_2) integer_2
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(unary_operator
(identifier_result) identifier_result
)unary_operator
)return_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(return_statement
(string_"None") string_"None"
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Calculate joint entropy.
:param classes: confusion matrix classes
:type classes : list
:param table: confusion matrix table
:type table : dict
:param POP: population
:type POP : dict
:return: joint entropy as float |
(module
(function_definition
(function_name_create_placement_group) function_name_create_placement_group
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_strategy) identifier_strategy
(string_'cluster') string_'cluster'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'GroupName') string_'GroupName'
(identifier_name) identifier_name
)pair
(pair
(string_'Strategy') string_'Strategy'
(identifier_strategy) identifier_strategy
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_group) identifier_group
(call
(attribute
(identifier_self) identifier_self
(identifier_get_status) identifier_get_status
)attribute
(argument_list
(string_'CreatePlacementGroup') string_'CreatePlacementGroup'
(identifier_params) identifier_params
(keyword_argument
(identifier_verb) identifier_verb
(string_'POST') string_'POST'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_group) identifier_group
)return_statement
)block
)function_definition
)module | Create a new placement group for your account.
This will create the placement group within the region you
are currently connected to.
:type name: string
:param name: The name of the new placement group
:type strategy: string
:param strategy: The placement strategy of the new placement group.
Currently, the only acceptable value is "cluster".
:rtype: bool
:return: True if successful |
(module
(function_definition
(function_name__Enum) function_name__Enum
(parameters
(identifier_docstring) identifier_docstring
(list_splat_pattern
(identifier_names) identifier_names
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_enums) identifier_enums
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_names) identifier_names
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_names) identifier_names
)argument_list
)call
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reverse) identifier_reverse
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(identifier_value) identifier_value
(identifier_key) identifier_key
)tuple
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_enums) identifier_enums
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_enums) identifier_enums
(string_'reverse_mapping') string_'reverse_mapping'
)subscript
(identifier_reverse) identifier_reverse
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_enums) identifier_enums
(string_'__doc__') string_'__doc__'
)subscript
(identifier_docstring) identifier_docstring
)assignment
)expression_statement
(return_statement
(call
(identifier_type) identifier_type
(argument_list
(string_'Enum') string_'Enum'
(tuple
(identifier_object) identifier_object
)tuple
(identifier_enums) identifier_enums
)argument_list
)call
)return_statement
)block
)function_definition
)module | Utility to generate enum classes used by annotations.
Args:
docstring: Docstring for the generated enum class.
*names: Enum names.
Returns:
A class that contains enum names as attributes. |
(module
(function_definition
(function_name_setdatastrs) function_name_setdatastrs
(parameters
(identifier_self) identifier_self
(identifier_label) identifier_label
(identifier_unit) identifier_unit
(identifier_format) identifier_format
(identifier_coord_sys) identifier_coord_sys
)parameters
(block
(expression_statement
(assignment
(identifier_status) identifier_status
(call
(attribute
(identifier__C) identifier__C
(identifier_SDsetdatastrs) identifier_SDsetdatastrs
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
(identifier_label) identifier_label
(identifier_unit) identifier_unit
(identifier_format) identifier_format
(identifier_coord_sys) identifier_coord_sys
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__checkErr) identifier__checkErr
(argument_list
(string_'setdatastrs') string_'setdatastrs'
(identifier_status) identifier_status
(string_'cannot execute') string_'cannot execute'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the dataset standard string type attributes.
Args::
label dataset label (attribute 'long_name')
unit dataset unit (attribute 'units')
format dataset format (attribute 'format')
coord_sys dataset coordinate system (attribute 'coordsys')
Returns::
None
Those strings are part of the so-called standard
SDS attributes. Calling 'setdatastrs' is equivalent to setting
the following attributes, which correspond to the method
parameters, in order::
long_name, units, format, coordsys
C library equivalent: SDsetdatastrs |
(module
(function_definition
(function_name_get_local_ip_address) function_name_get_local_ip_address
(parameters
(identifier_target) identifier_target
)parameters
(block
(expression_statement
(assignment
(identifier_ip_adr) identifier_ip_adr
(string_'') string_''
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_socket) identifier_socket
(identifier_socket) identifier_socket
)attribute
(argument_list
(attribute
(identifier_socket) identifier_socket
(identifier_AF_INET) identifier_AF_INET
)attribute
(attribute
(identifier_socket) identifier_socket
(identifier_SOCK_DGRAM) identifier_SOCK_DGRAM
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_connect) identifier_connect
)attribute
(argument_list
(tuple
(identifier_target) identifier_target
(integer_8000) integer_8000
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ip_adr) identifier_ip_adr
(subscript
(call
(attribute
(identifier_s) identifier_s
(identifier_getsockname) identifier_getsockname
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_s) identifier_s
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_ip_adr) identifier_ip_adr
)return_statement
)block
)function_definition
)module | Get the local ip address to access one specific target. |
(module
(function_definition
(function_name_hideEvent) function_name_hideEvent
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_CallTipWidget) identifier_CallTipWidget
(identifier_self) identifier_self
)argument_list
)call
(identifier_hideEvent) identifier_hideEvent
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__text_edit) identifier__text_edit
)attribute
(identifier_cursorPositionChanged) identifier_cursorPositionChanged
)attribute
(identifier_disconnect) identifier_disconnect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__cursor_position_changed) identifier__cursor_position_changed
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__text_edit) identifier__text_edit
)attribute
(identifier_removeEventFilter) identifier_removeEventFilter
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reimplemented to disconnect signal handlers and event filter. |
(module
(function_definition
(function_name_importpath) function_name_importpath
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_error_text) identifier_error_text
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(identifier_path) identifier_path
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exception) identifier_exception
(None) None
)assignment
)expression_statement
(while_statement
(identifier_parts) identifier_parts
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier___import__) identifier___import__
(argument_list
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
(dictionary
)dictionary
(dictionary
)dictionary
(list
(string_'') string_''
)list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_ImportError) identifier_ImportError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(identifier_exception) identifier_exception
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_exception) identifier_exception
(identifier_e) identifier_e
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(binary_operator
(subscript
(identifier_parts) identifier_parts
(slice
(unary_operator
(integer_1) integer_1
)unary_operator
(colon) colon
)slice
)subscript
(identifier_attrs) identifier_attrs
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(subscript
(identifier_parts) identifier_parts
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)assignment
)expression_statement
)block
)except_clause
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)try_statement
)block
)while_statement
(for_statement
(identifier_attr) identifier_attr
(identifier_attrs) identifier_attrs
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_result) identifier_result
(identifier_attr) identifier_attr
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(tuple
(identifier_AttributeError) identifier_AttributeError
(identifier_ValueError) identifier_ValueError
)tuple
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(identifier_error_text) identifier_error_text
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ImproperlyConfigured) identifier_ImproperlyConfigured
(argument_list
(binary_operator
(string_'Error: %s can import "%s"') string_'Error: %s can import "%s"'
(tuple
(identifier_error_text) identifier_error_text
(identifier_path) identifier_path
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(raise_statement
(identifier_exception) identifier_exception
)raise_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Import value by specified ``path``.
Value can represent module, class, object, attribute or method.
If ``error_text`` is not None and import will
raise ImproperlyConfigured with user friendly text. |
(module
(function_definition
(function_name_list_principals) function_name_list_principals
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(identifier___execute_kadmin) identifier___execute_kadmin
(argument_list
(string_'list_principals') string_'list_principals'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_cmd) identifier_cmd
(string_'retcode') string_'retcode'
)subscript
(integer_0) integer_0
)comparison_operator
(subscript
(identifier_cmd) identifier_cmd
(string_'stderr') string_'stderr'
)subscript
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(subscript
(call
(attribute
(subscript
(identifier_cmd) identifier_cmd
(string_'stderr') string_'stderr'
)subscript
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'result') string_'result'
)subscript
(False) False
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'principals') string_'principals'
(list
)list
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(subscript
(call
(attribute
(subscript
(identifier_cmd) identifier_cmd
(string_'stdout') string_'stdout'
)subscript
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(block
(expression_statement
(call
(attribute
(subscript
(identifier_ret) identifier_ret
(string_'principals') string_'principals'
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Get all principals
CLI Example:
.. code-block:: bash
salt 'kde.example.com' kerberos.list_principals |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_global_args) identifier_global_args
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_build_file) identifier_build_file
)attribute
(attribute
(identifier_ParseContext) identifier_ParseContext
(identifier__parsed) identifier__parsed
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_butcher_context) identifier_butcher_context
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_str_to_exec) identifier_str_to_exec
(attribute
(identifier_self) identifier_self
(identifier__strs_to_exec) identifier__strs_to_exec
)attribute
(block
(expression_statement
(assignment
(identifier_ast) identifier_ast
(call
(identifier_compile) identifier_compile
(argument_list
(identifier_str_to_exec) identifier_str_to_exec
(string_'<string>') string_'<string>'
(string_'exec') string_'exec'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_exec_function) identifier_exec_function
(argument_list
(identifier_ast) identifier_ast
(identifier_butcher_context) identifier_butcher_context
)argument_list
)call
)expression_statement
)block
)for_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_ParseContext) identifier_ParseContext
(identifier_activate) identifier_activate
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_startdir) identifier_startdir
(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
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_build_file) identifier_build_file
)attribute
(identifier_path_on_disk) identifier_path_on_disk
)attribute
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_build_file) identifier_build_file
)attribute
(attribute
(identifier_ParseContext) identifier_ParseContext
(identifier__parsed) identifier__parsed
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_ParseContext) identifier_ParseContext
(identifier__parsed) identifier__parsed
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_build_file) identifier_build_file
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_eval_globals) identifier_eval_globals
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_butcher_context) identifier_butcher_context
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_eval_globals) identifier_eval_globals
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'ROOT_DIR') string_'ROOT_DIR'
(attribute
(attribute
(identifier_self) identifier_self
(identifier_build_file) identifier_build_file
)attribute
(identifier_path_on_disk) identifier_path_on_disk
)attribute
)pair
(pair
(string_'__file__') string_'__file__'
(string_'bogus please fix this') string_'bogus please fix this'
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_eval_globals) identifier_eval_globals
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_global_args) identifier_global_args
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_exec_function) identifier_exec_function
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_build_file) identifier_build_file
)attribute
(identifier_code) identifier_code
)attribute
(identifier_eval_globals) identifier_eval_globals
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_startdir) identifier_startdir
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)with_statement
)block
)if_statement
)block
)function_definition
)module | Entry point to parsing a BUILD file.
Args:
**global_args: Variables to include in the parsing environment. |
(module
(function_definition
(function_name_set_type) function_name_set_type
(parameters
(identifier_self) identifier_self
(identifier_type) identifier_type
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_var_opt) identifier_add_var_opt
)attribute
(argument_list
(string_'type') string_'type'
(call
(identifier_str) identifier_str
(argument_list
(identifier_type) identifier_type
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___type) identifier___type
)attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_type) identifier_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___set_output) identifier___set_output
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | sets the frame type that we are querying |
(module
(function_definition
(function_name_logger) function_name_logger
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_log_builder) identifier_log_builder
(call
(attribute
(identifier_p_logging) identifier_p_logging
(identifier_ProsperLogger) identifier_ProsperLogger
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_PROGNAME) identifier_PROGNAME
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'LOGGING') string_'LOGGING'
(string_'log_path') string_'log_path'
)argument_list
)call
(keyword_argument
(identifier_config_obj) identifier_config_obj
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
(block
(expression_statement
(call
(attribute
(identifier_log_builder) identifier_log_builder
(identifier_configure_debug_logger) identifier_configure_debug_logger
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_id_string) identifier_id_string
(call
(attribute
(string_'({platform}--{version})') string_'({platform}--{version})'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_platform) identifier_platform
(call
(attribute
(identifier_platform) identifier_platform
(identifier_node) identifier_node
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(attribute
(identifier_self) identifier_self
(identifier_VERSION) identifier_VERSION
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'LOGGING') string_'LOGGING'
(string_'discord_webhook') string_'discord_webhook'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log_builder) identifier_log_builder
(identifier_configure_discord_logger) identifier_configure_discord_logger
)attribute
(argument_list
(keyword_argument
(identifier_custom_args) identifier_custom_args
(identifier_id_string) identifier_id_string
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'LOGGING') string_'LOGGING'
(string_'slack_webhook') string_'slack_webhook'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log_builder) identifier_log_builder
(identifier_configure_slack_logger) identifier_configure_slack_logger
)attribute
(argument_list
(keyword_argument
(identifier_custom_args) identifier_custom_args
(identifier_id_string) identifier_id_string
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(identifier_get_option) identifier_get_option
)attribute
(argument_list
(string_'LOGGING') string_'LOGGING'
(string_'hipchat_webhook') string_'hipchat_webhook'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_log_builder) identifier_log_builder
(identifier_configure_hipchat_logger) identifier_configure_hipchat_logger
)attribute
(argument_list
(keyword_argument
(identifier_custom_args) identifier_custom_args
(identifier_id_string) identifier_id_string
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(call
(attribute
(identifier_log_builder) identifier_log_builder
(identifier_get_logger) identifier_get_logger
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | uses "global logger" for logging |
(module
(function_definition
(function_name_dispatch) function_name_dispatch
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_registration_allowed) identifier_registration_allowed
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(call
(identifier_HttpResponseRedirect) identifier_HttpResponseRedirect
(argument_list
(call
(identifier_force_text) identifier_force_text
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_disallowed_url) identifier_disallowed_url
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_RegistrationView) identifier_RegistrationView
(identifier_self) identifier_self
)argument_list
)call
(identifier_dispatch) identifier_dispatch
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Check that user signup is allowed before even bothering to
dispatch or do other processing. |
(module
(function_definition
(function_name__get_path_from_parent) function_name__get_path_from_parent
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'get_path_from_parent') string_'get_path_from_parent'
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_path_from_parent) identifier_get_path_from_parent
)attribute
(argument_list
(identifier_parent) identifier_parent
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_parent) identifier_parent
)comparison_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_model) identifier_model
(attribute
(identifier_self) identifier_self
(identifier_concrete_model) identifier_concrete_model
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chain) identifier_chain
(boolean_operator
(call
(attribute
(attribute
(identifier_model) identifier_model
(identifier__meta) identifier__meta
)attribute
(identifier_get_base_chain) identifier_get_base_chain
)attribute
(argument_list
(identifier_parent) identifier_parent
)argument_list
)call
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_chain) identifier_chain
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_chain) identifier_chain
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_model) identifier_model
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_ancestor) identifier_ancestor
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(subscript
(identifier_chain) identifier_chain
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_child) identifier_child
(subscript
(identifier_chain) identifier_chain
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_link) identifier_link
(call
(attribute
(attribute
(identifier_child) identifier_child
(identifier__meta) identifier__meta
)attribute
(identifier_get_ancestor_link) identifier_get_ancestor_link
)attribute
(argument_list
(identifier_ancestor) identifier_ancestor
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_path) identifier_path
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_link) identifier_link
(identifier_get_reverse_path_info) identifier_get_reverse_path_info
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_path) identifier_path
)return_statement
)block
)function_definition
)module | Return a list of PathInfos containing the path from the parent
model to the current model, or an empty list if parent is not a
parent of the current model. |
(module
(function_definition
(function_name_Prod) function_name_Prod
(parameters
(identifier_a) identifier_a
(identifier_axis) identifier_axis
(identifier_keep_dims) identifier_keep_dims
)parameters
(block
(return_statement
(expression_list
(call
(attribute
(identifier_np) identifier_np
(identifier_prod) identifier_prod
)attribute
(argument_list
(identifier_a) identifier_a
(keyword_argument
(identifier_axis) identifier_axis
(conditional_expression
(identifier_axis) identifier_axis
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_axis) identifier_axis
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)argument_list
)call
)not_operator
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_axis) identifier_axis
)argument_list
)call
)conditional_expression
)keyword_argument
(keyword_argument
(identifier_keepdims) identifier_keepdims
(identifier_keep_dims) identifier_keep_dims
)keyword_argument
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | Prod reduction op. |
(module
(function_definition
(function_name_normalizeGlyphTopMargin) function_name_normalizeGlyphTopMargin
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(tuple
(identifier_int) identifier_int
(identifier_float) identifier_float
)tuple
)argument_list
)call
)not_operator
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(concatenated_string
(string_"Glyph top margin must be an :ref:`type-int-float`, ") string_"Glyph top margin must be an :ref:`type-int-float`, "
(string_"not %s.") string_"not %s."
)concatenated_string
(attribute
(call
(identifier_type) identifier_type
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Normalizes glyph top margin.
* **value** must be a :ref:`type-int-float` or `None`.
* Returned value is the same type as the input value. |
(module
(function_definition
(function_name_parse_remote) function_name_parse_remote
(parameters
(identifier_cls) identifier_cls
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_blob_file) identifier_blob_file
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier__URL_FORMAT) identifier__URL_FORMAT
)attribute
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__REMOTE_FILE) identifier__REMOTE_FILE
)attribute
(argument_list
(string_"blob") string_"blob"
(keyword_argument
(identifier_storage) identifier_storage
(call
(attribute
(identifier_blob_file) identifier_blob_file
(identifier_group) identifier_group
)attribute
(argument_list
(string_"storage") string_"storage"
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_container) identifier_container
(call
(attribute
(identifier_blob_file) identifier_blob_file
(identifier_group) identifier_group
)attribute
(argument_list
(string_"container") string_"container"
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_blob) identifier_blob
(call
(attribute
(identifier_blob_file) identifier_blob_file
(identifier_group) identifier_group
)attribute
(argument_list
(string_"blob") string_"blob"
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parses a remote filename into blob information. |
(module
(function_definition
(function_name_relocate) function_name_relocate
(parameters
(identifier_source) identifier_source
(identifier_destination) identifier_destination
(default_parameter
(identifier_move) identifier_move
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_venv) identifier_venv
(call
(attribute
(identifier_api) identifier_api
(identifier_VirtualEnvironment) identifier_VirtualEnvironment
)attribute
(argument_list
(identifier_source) identifier_source
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_move) identifier_move
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_venv) identifier_venv
(identifier_relocate) identifier_relocate
)attribute
(argument_list
(identifier_destination) identifier_destination
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_venv) identifier_venv
(identifier_move) identifier_move
)attribute
(argument_list
(identifier_destination) identifier_destination
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Adjust the virtual environment settings and optional move it.
Args:
source (str): Path to the existing virtual environment.
destination (str): Desired path of the virtual environment.
move (bool): Whether or not to actually move the files. Default False. |
(module
(function_definition
(function_name_add_to_sources) function_name_add_to_sources
(parameters
(identifier_self) identifier_self
(identifier_action) identifier_action
(identifier_doc_source) identifier_doc_source
)parameters
(block
(expression_statement
(assignment
(identifier_mapping) identifier_mapping
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sources) identifier_sources
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(subscript
(identifier_action) identifier_action
(string_"_index") string_"_index"
)subscript
(dictionary
)dictionary
)argument_list
)call
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(subscript
(identifier_action) identifier_action
(string_"_type") string_"_type"
)subscript
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_mapping) identifier_mapping
(subscript
(identifier_action) identifier_action
(string_"_id") string_"_id"
)subscript
)subscript
(identifier_doc_source) identifier_doc_source
)assignment
)expression_statement
)block
)function_definition
)module | Store sources locally |
(module
(function_definition
(function_name_override_build_kwarg) function_name_override_build_kwarg
(parameters
(identifier_workflow) identifier_workflow
(identifier_k) identifier_k
(identifier_v) identifier_v
(default_parameter
(identifier_platform) identifier_platform
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(attribute
(identifier_OrchestrateBuildPlugin) identifier_OrchestrateBuildPlugin
(identifier_key) identifier_key
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_workspace) identifier_workspace
(call
(attribute
(attribute
(identifier_workflow) identifier_workflow
(identifier_plugin_workspace) identifier_plugin_workspace
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_key) identifier_key
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_override_kwargs) identifier_override_kwargs
(call
(attribute
(identifier_workspace) identifier_workspace
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_WORKSPACE_KEY_OVERRIDE_KWARGS) identifier_WORKSPACE_KEY_OVERRIDE_KWARGS
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_override_kwargs) identifier_override_kwargs
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(identifier_platform) identifier_platform
(dictionary
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_override_kwargs) identifier_override_kwargs
(identifier_platform) identifier_platform
)subscript
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)function_definition
)module | Override a build-kwarg for all worker builds |
(module
(function_definition
(function_name_fave) function_name_fave
(parameters
(identifier_self) identifier_self
(identifier_deviationid) identifier_deviationid
(default_parameter
(identifier_folderid) identifier_folderid
(string_"") string_""
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_standard_grant_type) identifier_standard_grant_type
)attribute
(string_"authorization_code") string_"authorization_code"
)comparison_operator
(block
(raise_statement
(call
(identifier_DeviantartError) identifier_DeviantartError
(argument_list
(string_"Authentication through Authorization Code (Grant Type) is required in order to connect to this endpoint.") string_"Authentication through Authorization Code (Grant Type) is required in order to connect to this endpoint."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_post_data) identifier_post_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'deviationid') string_'deviationid'
)subscript
(identifier_deviationid) identifier_deviationid
)assignment
)expression_statement
(if_statement
(identifier_folderid) identifier_folderid
(block
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'folderid') string_'folderid'
)subscript
(identifier_folderid) identifier_folderid
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__req) identifier__req
)attribute
(argument_list
(string_'/collections/fave') string_'/collections/fave'
(keyword_argument
(identifier_post_data) identifier_post_data
(identifier_post_data) identifier_post_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Add deviation to favourites
:param deviationid: Id of the Deviation to favourite
:param folderid: Optional UUID of the Collection folder to add the favourite into |
(module
(function_definition
(function_name_save_metadata) function_name_save_metadata
(parameters
(identifier_self) identifier_self
(identifier_metadata) identifier_metadata
)parameters
(block
(if_statement
(comparison_operator
(identifier_metadata) identifier_metadata
(tuple
(None) None
(dictionary
)dictionary
)tuple
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_SYSTEM_METADATA) identifier_SYSTEM_METADATA
(identifier_metadata) identifier_metadata
)comparison_operator
(block
(raise_statement
(call
(identifier_StoreException) identifier_StoreException
(argument_list
(binary_operator
(string_"Not allowed to store %r in metadata") string_"Not allowed to store %r in metadata"
(identifier_SYSTEM_METADATA) identifier_SYSTEM_METADATA
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_self) identifier_self
(identifier_temporary_object_path) identifier_temporary_object_path
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_uuid) identifier_uuid
(identifier_uuid4) identifier_uuid4
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_fd) identifier_fd
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_metadata) identifier_metadata
(identifier_fd) identifier_fd
(keyword_argument
(identifier_sort_keys) identifier_sort_keys
(True) True
)keyword_argument
(keyword_argument
(identifier_separators) identifier_separators
(tuple
(string_',') string_','
(string_':') string_':'
)tuple
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(raise_statement
(call
(identifier_StoreException) identifier_StoreException
(argument_list
(string_"Metadata is not serializable") string_"Metadata is not serializable"
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_metahash) identifier_metahash
(call
(identifier_digest_file) identifier_digest_file
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__move_to_store) identifier__move_to_store
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_metahash) identifier_metahash
)argument_list
)call
)expression_statement
(return_statement
(identifier_metahash) identifier_metahash
)return_statement
)block
)function_definition
)module | Save metadata to the store. |
(module
(function_definition
(function_name_values_for_column) function_name_values_for_column
(parameters
(identifier_self) identifier_self
(identifier_column_name) identifier_column_name
(default_parameter
(identifier_limit) identifier_limit
(integer_10000) integer_10000
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cols) identifier_cols
(dictionary_comprehension
(pair
(attribute
(identifier_col) identifier_col
(identifier_column_name) identifier_column_name
)attribute
(identifier_col) identifier_col
)pair
(for_in_clause
(identifier_col) identifier_col
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target_col) identifier_target_col
(subscript
(identifier_cols) identifier_cols
(identifier_column_name) identifier_column_name
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tp) identifier_tp
(call
(attribute
(identifier_self) identifier_self
(identifier_get_template_processor) identifier_get_template_processor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_qry) identifier_qry
(parenthesized_expression
(call
(attribute
(call
(attribute
(call
(identifier_select) identifier_select
(argument_list
(list
(call
(attribute
(identifier_target_col) identifier_target_col
(identifier_get_sqla_col) identifier_get_sqla_col
)attribute
(argument_list
)argument_list
)call
)list
)argument_list
)call
(identifier_select_from) identifier_select_from
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_from_clause) identifier_get_from_clause
)attribute
(argument_list
(identifier_tp) identifier_tp
)argument_list
)call
)argument_list
)call
(identifier_distinct) identifier_distinct
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(identifier_limit) identifier_limit
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(call
(attribute
(identifier_qry) identifier_qry
(identifier_limit) identifier_limit
)attribute
(argument_list
(identifier_limit) identifier_limit
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_fetch_values_predicate) identifier_fetch_values_predicate
)attribute
(block
(expression_statement
(assignment
(identifier_tp) identifier_tp
(call
(attribute
(identifier_self) identifier_self
(identifier_get_template_processor) identifier_get_template_processor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_qry) identifier_qry
(call
(attribute
(identifier_qry) identifier_qry
(identifier_where) identifier_where
)attribute
(argument_list
(call
(attribute
(identifier_tp) identifier_tp
(identifier_process_template) identifier_process_template
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_fetch_values_predicate) identifier_fetch_values_predicate
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_engine) identifier_engine
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
(identifier_get_sqla_engine) identifier_get_sqla_engine
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(call
(attribute
(string_'{}') string_'{}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(identifier_qry) identifier_qry
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_engine) identifier_engine
(keyword_argument
(identifier_compile_kwargs) identifier_compile_kwargs
(dictionary
(pair
(string_'literal_binds') string_'literal_binds'
(True) True
)pair
)dictionary
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sql) identifier_sql
(call
(attribute
(identifier_self) identifier_self
(identifier_mutate_query_from_config) identifier_mutate_query_from_config
)attribute
(argument_list
(identifier_sql) identifier_sql
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_read_sql_query) identifier_read_sql_query
)attribute
(argument_list
(keyword_argument
(identifier_sql) identifier_sql
(identifier_sql) identifier_sql
)keyword_argument
(keyword_argument
(identifier_con) identifier_con
(identifier_engine) identifier_engine
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_row) identifier_row
(call
(attribute
(identifier_df) identifier_df
(identifier_to_records) identifier_to_records
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(False) False
)keyword_argument
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Runs query against sqla to retrieve some
sample values for the given column. |
(module
(function_definition
(function_name_setsockopt) function_name_setsockopt
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_sockopts) identifier_sockopts
)list_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(subscript
(identifier_sockopts) identifier_sockopts
(integer_0) integer_0
)subscript
)argument_list
)call
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
)tuple
)comparison_operator
(block
(for_statement
(identifier_sock_opt) identifier_sock_opt
(subscript
(identifier_sockopts) identifier_sockopts
(integer_0) integer_0
)subscript
(block
(expression_statement
(assignment
(pattern_list
(identifier_level) identifier_level
(identifier_option) identifier_option
(identifier_value) identifier_value
)pattern_list
(identifier_sock_opt) identifier_sock_opt
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_sockopts) identifier_sockopts
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(tuple
(identifier_level) identifier_level
(identifier_option) identifier_option
(identifier_value) identifier_value
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_level) identifier_level
(identifier_option) identifier_option
(identifier_value) identifier_value
)pattern_list
(identifier_sockopts) identifier_sockopts
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_sockopts) identifier_sockopts
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(tuple
(identifier_level) identifier_level
(identifier_option) identifier_option
(identifier_value) identifier_value
)tuple
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add socket options to set |
(module
(function_definition
(function_name_replace_pattern) function_name_replace_pattern
(parameters
(identifier_tokens) identifier_tokens
(identifier_new_pattern) identifier_new_pattern
)parameters
(block
(for_statement
(identifier_state) identifier_state
(call
(attribute
(identifier_tokens) identifier_tokens
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_pattern) identifier_pattern
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_state) identifier_state
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_pattern) identifier_pattern
(identifier_tuple) identifier_tuple
)argument_list
)call
(comparison_operator
(subscript
(identifier_pattern) identifier_pattern
(integer_1) integer_1
)subscript
(subscript
(identifier_new_pattern) identifier_new_pattern
(integer_1) integer_1
)subscript
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_state) identifier_state
(identifier_index) identifier_index
)subscript
(identifier_new_pattern) identifier_new_pattern
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Given a RegexLexer token dictionary 'tokens', replace all patterns that
match the token specified in 'new_pattern' with 'new_pattern'. |
(module
(function_definition
(function_name_drawPolyline) function_name_drawPolyline
(parameters
(identifier_self) identifier_self
(identifier_points) identifier_points
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_p) identifier_p
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_points) identifier_points
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_i) identifier_i
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(not_operator
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_lastPoint) identifier_lastPoint
)attribute
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)comparison_operator
)parenthesized_expression
)not_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_draw_cont) identifier_draw_cont
)attribute
(binary_operator
(string_"%g %g m\n") string_"%g %g m\n"
(call
(identifier_JM_TUPLE) identifier_JM_TUPLE
(argument_list
(binary_operator
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_ipctm) identifier_ipctm
)attribute
)binary_operator
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastPoint) identifier_lastPoint
)attribute
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_draw_cont) identifier_draw_cont
)attribute
(binary_operator
(string_"%g %g l\n") string_"%g %g l\n"
(call
(identifier_JM_TUPLE) identifier_JM_TUPLE
(argument_list
(binary_operator
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_p) identifier_p
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_ipctm) identifier_ipctm
)attribute
)binary_operator
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_updateRect) identifier_updateRect
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_lastPoint) identifier_lastPoint
)attribute
(call
(identifier_Point) identifier_Point
(argument_list
(subscript
(identifier_points) identifier_points
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_lastPoint) identifier_lastPoint
)attribute
)return_statement
)block
)function_definition
)module | Draw several connected line segments. |
(module
(function_definition
(function_name_links) function_name_links
(parameters
(identifier_self) identifier_self
(identifier_base_link) identifier_base_link
(identifier_current_page) identifier_current_page
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(expression_statement
(assignment
(identifier_max_pages) identifier_max_pages
(conditional_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_max_pages) identifier_max_pages
)attribute
(integer_1) integer_1
)binary_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_max_pages) identifier_max_pages
)attribute
(integer_0) integer_0
)comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_max_pages) identifier_max_pages
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_base_link) identifier_base_link
(binary_operator
(string_'/%s') string_'/%s'
(parenthesized_expression
(call
(attribute
(identifier_base_link) identifier_base_link
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_self_page) identifier_self_page
(identifier_current_page) identifier_current_page
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev) identifier_prev
(conditional_expression
(binary_operator
(identifier_current_page) identifier_current_page
(integer_1) integer_1
)binary_operator
(comparison_operator
(identifier_current_page) identifier_current_page
(integer_0) integer_0
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prev_link) identifier_prev_link
(conditional_expression
(binary_operator
(string_'%s/page/%s/%s') string_'%s/page/%s/%s'
(tuple
(identifier_base_link) identifier_base_link
(identifier_prev) identifier_prev
(attribute
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)attribute
)tuple
)binary_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_prev) identifier_prev
(None) None
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next) identifier_next
(conditional_expression
(binary_operator
(identifier_current_page) identifier_current_page
(integer_1) integer_1
)binary_operator
(comparison_operator
(identifier_current_page) identifier_current_page
(identifier_max_pages) identifier_max_pages
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next_link) identifier_next_link
(conditional_expression
(binary_operator
(string_'%s/page/%s/%s') string_'%s/page/%s/%s'
(tuple
(identifier_base_link) identifier_base_link
(identifier_next) identifier_next
(attribute
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)attribute
)tuple
)binary_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_next) identifier_next
(None) None
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_first) identifier_first
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last) identifier_last
(identifier_max_pages) identifier_max_pages
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'self') string_'self'
(binary_operator
(string_'%s/page/%s/%s') string_'%s/page/%s/%s'
(tuple
(identifier_base_link) identifier_base_link
(identifier_self_page) identifier_self_page
(attribute
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)attribute
)tuple
)binary_operator
)pair
(pair
(string_'prev') string_'prev'
(identifier_prev_link) identifier_prev_link
)pair
(pair
(string_'next') string_'next'
(identifier_next_link) identifier_next_link
)pair
(pair
(string_'first') string_'first'
(binary_operator
(string_'%s/page/%s/%s') string_'%s/page/%s/%s'
(tuple
(identifier_base_link) identifier_base_link
(identifier_first) identifier_first
(attribute
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)attribute
)tuple
)binary_operator
)pair
(pair
(string_'last') string_'last'
(binary_operator
(string_'%s/page/%s/%s') string_'%s/page/%s/%s'
(tuple
(identifier_base_link) identifier_base_link
(identifier_last) identifier_last
(attribute
(identifier_self) identifier_self
(identifier_limit) identifier_limit
)attribute
)tuple
)binary_operator
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Return JSON paginate links |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"Closing socket connection for %s:%d") string_"Closing socket connection for %s:%d"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__sock) identifier__sock
)attribute
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sock) identifier__sock
)attribute
(identifier_shutdown) identifier_shutdown
)attribute
(argument_list
(attribute
(identifier_socket) identifier_socket
(identifier_SHUT_RDWR) identifier_SHUT_RDWR
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_socket) identifier_socket
(identifier_error) identifier_error
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__sock) identifier__sock
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__sock) identifier__sock
)attribute
(None) None
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"No socket found to close!") string_"No socket found to close!"
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Shutdown and close the connection socket |
(module
(function_definition
(function_name_format_national_number_with_carrier_code) function_name_format_national_number_with_carrier_code
(parameters
(identifier_numobj) identifier_numobj
(identifier_carrier_code) identifier_carrier_code
)parameters
(block
(expression_statement
(assignment
(identifier_country_code) identifier_country_code
(attribute
(identifier_numobj) identifier_numobj
(identifier_country_code) identifier_country_code
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nsn) identifier_nsn
(call
(identifier_national_significant_number) identifier_national_significant_number
(argument_list
(identifier_numobj) identifier_numobj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier__has_valid_country_calling_code) identifier__has_valid_country_calling_code
(argument_list
(identifier_country_code) identifier_country_code
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_nsn) identifier_nsn
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_region_code) identifier_region_code
(call
(identifier_region_code_for_country_code) identifier_region_code_for_country_code
(argument_list
(identifier_country_code) identifier_country_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(attribute
(identifier_PhoneMetadata) identifier_PhoneMetadata
(identifier_metadata_for_region_or_calling_code) identifier_metadata_for_region_or_calling_code
)attribute
(argument_list
(identifier_country_code) identifier_country_code
(identifier_region_code) identifier_region_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_formatted_number) identifier_formatted_number
(call
(identifier__format_nsn) identifier__format_nsn
(argument_list
(identifier_nsn) identifier_nsn
(identifier_metadata) identifier_metadata
(attribute
(identifier_PhoneNumberFormat) identifier_PhoneNumberFormat
(identifier_NATIONAL) identifier_NATIONAL
)attribute
(identifier_carrier_code) identifier_carrier_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_formatted_number) identifier_formatted_number
(call
(identifier__maybe_append_formatted_extension) identifier__maybe_append_formatted_extension
(argument_list
(identifier_numobj) identifier_numobj
(identifier_metadata) identifier_metadata
(attribute
(identifier_PhoneNumberFormat) identifier_PhoneNumberFormat
(identifier_NATIONAL) identifier_NATIONAL
)attribute
(identifier_formatted_number) identifier_formatted_number
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_formatted_number) identifier_formatted_number
(call
(identifier__prefix_number_with_country_calling_code) identifier__prefix_number_with_country_calling_code
(argument_list
(identifier_country_code) identifier_country_code
(attribute
(identifier_PhoneNumberFormat) identifier_PhoneNumberFormat
(identifier_NATIONAL) identifier_NATIONAL
)attribute
(identifier_formatted_number) identifier_formatted_number
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_formatted_number) identifier_formatted_number
)return_statement
)block
)function_definition
)module | Format a number in national format for dialing using the specified carrier.
The carrier-code will always be used regardless of whether the phone
number already has a preferred domestic carrier code stored. If
carrier_code contains an empty string, returns the number in national
format without any carrier code.
Arguments:
numobj -- The phone number to be formatted
carrier_code -- The carrier selection code to be used
Returns the formatted phone number in national format for dialing using
the carrier as specified in the carrier_code. |
(module
(function_definition
(function_name_add_key_path) function_name_add_key_path
(parameters
(identifier_key_proto) identifier_key_proto
(list_splat_pattern
(identifier_path_elements) identifier_path_elements
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(call
(identifier_len) identifier_len
(argument_list
(identifier_path_elements) identifier_path_elements
)argument_list
)call
(integer_2) integer_2
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_pair) identifier_pair
(subscript
(identifier_path_elements) identifier_path_elements
(slice
(identifier_i) identifier_i
(colon) colon
(binary_operator
(identifier_i) identifier_i
(integer_2) integer_2
)binary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_elem) identifier_elem
(call
(attribute
(attribute
(identifier_key_proto) identifier_key_proto
(identifier_path) identifier_path
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_elem) identifier_elem
(identifier_kind) identifier_kind
)attribute
(subscript
(identifier_pair) identifier_pair
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_pair) identifier_pair
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_id_or_name) identifier_id_or_name
(subscript
(identifier_pair) identifier_pair
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_id_or_name) identifier_id_or_name
(tuple
(identifier_int) identifier_int
(identifier_long) identifier_long
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_elem) identifier_elem
(identifier_id) identifier_id
)attribute
(identifier_id_or_name) identifier_id_or_name
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_id_or_name) identifier_id_or_name
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_elem) identifier_elem
(identifier_name) identifier_name
)attribute
(identifier_id_or_name) identifier_id_or_name
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(concatenated_string
(string_'Expected an integer id or string name as argument %d; ') string_'Expected an integer id or string name as argument %d; '
(string_'received %r (a %s).') string_'received %r (a %s).'
)concatenated_string
(tuple
(binary_operator
(identifier_i) identifier_i
(integer_2) integer_2
)binary_operator
(identifier_id_or_name) identifier_id_or_name
(call
(identifier_type) identifier_type
(argument_list
(identifier_id_or_name) identifier_id_or_name
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_key_proto) identifier_key_proto
)return_statement
)block
)function_definition
)module | Add path elements to the given datastore.Key proto message.
Args:
key_proto: datastore.Key proto message.
*path_elements: list of ancestors to add to the key.
(kind1, id1/name1, ..., kindN, idN/nameN), the last 2 elements
represent the entity key, if no terminating id/name: they key
will be an incomplete key.
Raises:
TypeError: the given id or name has the wrong type.
Returns:
the same datastore.Key.
Usage:
>>> add_key_path(key_proto, 'Kind', 'name') # no parent, with name
datastore.Key(...)
>>> add_key_path(key_proto, 'Kind2', 1) # no parent, with id
datastore.Key(...)
>>> add_key_path(key_proto, 'Kind', 'name', 'Kind2', 1) # parent, complete
datastore.Key(...)
>>> add_key_path(key_proto, 'Kind', 'name', 'Kind2') # parent, incomplete
datastore.Key(...) |
(module
(function_definition
(function_name_publish) function_name_publish
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_" Publish last changes.") string_" Publish last changes."
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_put) identifier_put
)attribute
(argument_list
(binary_operator
(string_'/REST/Zone/%s') string_'/REST/Zone/%s'
(tuple
(attribute
(identifier_self) identifier_self
(identifier_zone) identifier_zone
)attribute
)tuple
)binary_operator
(keyword_argument
(identifier_data) identifier_data
(dictionary
(pair
(string_'publish') string_'publish'
(True) True
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(subscript
(attribute
(identifier_response) identifier_response
(identifier_content) identifier_content
)attribute
(string_'data') string_'data'
)subscript
(string_'serial') string_'serial'
)subscript
)return_statement
)block
)function_definition
)module | Publish last changes. |
(module
(function_definition
(function_name_addHost) function_name_addHost
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(None) None
)comparison_operator
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(binary_operator
(string_'h') string_'h'
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___hnum) identifier___hnum
)attribute
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier___hnum) identifier___hnum
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier___nxgraph) identifier___nxgraph
)attribute
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)while_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___addNode) identifier___addNode
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_Host) identifier_Host
)argument_list
)call
)expression_statement
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)function_definition
)module | Add a new host node to the topology. |
(module
(function_definition
(function_name_parse_instancepath) function_name_parse_instancepath
(parameters
(identifier_self) identifier_self
(identifier_tup_tree) identifier_tup_tree
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check_node) identifier_check_node
)attribute
(argument_list
(identifier_tup_tree) identifier_tup_tree
(string_'INSTANCEPATH') string_'INSTANCEPATH'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_k) identifier_k
(call
(identifier_kids) identifier_kids
(argument_list
(identifier_tup_tree) identifier_tup_tree
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(raise_statement
(call
(identifier_CIMXMLParseError) identifier_CIMXMLParseError
(argument_list
(call
(identifier__format) identifier__format
(argument_list
(concatenated_string
(string_"Element {0!A} has invalid number of child elements ") string_"Element {0!A} has invalid number of child elements "
(string_"{1!A} (expecting two child elements ") string_"{1!A} (expecting two child elements "
(string_"(NAMESPACEPATH, INSTANCENAME))") string_"(NAMESPACEPATH, INSTANCENAME))"
)concatenated_string
(call
(identifier_name) identifier_name
(argument_list
(identifier_tup_tree) identifier_tup_tree
)argument_list
)call
(identifier_k) identifier_k
)argument_list
)call
(keyword_argument
(identifier_conn_id) identifier_conn_id
(attribute
(identifier_self) identifier_self
(identifier_conn_id) identifier_conn_id
)attribute
)keyword_argument
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_host) identifier_host
(identifier_namespace) identifier_namespace
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_namespacepath) identifier_parse_namespacepath
)attribute
(argument_list
(subscript
(identifier_k) identifier_k
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_inst_path) identifier_inst_path
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_instancename) identifier_parse_instancename
)attribute
(argument_list
(subscript
(identifier_k) identifier_k
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_inst_path) identifier_inst_path
(identifier_host) identifier_host
)attribute
(identifier_host) identifier_host
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_inst_path) identifier_inst_path
(identifier_namespace) identifier_namespace
)attribute
(identifier_namespace) identifier_namespace
)assignment
)expression_statement
(return_statement
(identifier_inst_path) identifier_inst_path
)return_statement
)block
)function_definition
)module | Parse an INSTANCEPATH element and return the instance path it
represents as a CIMInstanceName object.
::
<!ELEMENT INSTANCEPATH (NAMESPACEPATH, INSTANCENAME)> |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_file) identifier_file
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_self) identifier_self
(identifier__sendRequest) identifier__sendRequest
)attribute
(argument_list
(string_"GET") string_"GET"
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file) identifier_file
(string_"wb") string_"wb"
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_content) identifier_content
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_YaDiskException) identifier_YaDiskException
(argument_list
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_resp) identifier_resp
(identifier_content) identifier_content
)attribute
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Download remote file to disk. |
(module
(function_definition
(function_name_bind) function_name_bind
(parameters
(identifier_self) identifier_self
(identifier_study) identifier_study
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_default) identifier_default
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ArcanaError) identifier_ArcanaError
(argument_list
(call
(attribute
(concatenated_string
(string_"Attempted to bind '{}' to {} but only acquired specs with ") string_"Attempted to bind '{}' to {} but only acquired specs with "
(string_"a default value should be bound to studies{})") string_"a default value should be bound to studies{})"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_study) identifier_study
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__study) identifier__study
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_bound) identifier_bound
(identifier_self) identifier_self
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_bound) identifier_bound
(call
(identifier_copy) identifier_copy
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_bound) identifier_bound
(identifier__study) identifier__study
)attribute
(identifier_study) identifier_study
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_bound) identifier_bound
(identifier__default) identifier__default
)attribute
(call
(attribute
(attribute
(identifier_bound) identifier_bound
(identifier_default) identifier_default
)attribute
(identifier_bind) identifier_bind
)attribute
(argument_list
(identifier_study) identifier_study
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_bound) identifier_bound
)return_statement
)block
)function_definition
)module | Returns a copy of the AcquiredSpec bound to the given study
Parameters
----------
study : Study
A study to bind the fileset spec to (should happen in the
study __init__) |
(module
(function_definition
(function_name_parse_xml_file) function_name_parse_xml_file
(parameters
(identifier_self) identifier_self
(identifier_fileobj) identifier_fileobj
(default_parameter
(identifier_id_generator) identifier_id_generator
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(call
(attribute
(identifier_etree) identifier_etree
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_fileobj) identifier_fileobj
)argument_list
)call
(identifier_getroot) identifier_getroot
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_usage_id) identifier_usage_id
(call
(attribute
(identifier_self) identifier_self
(identifier__usage_id_from_node) identifier__usage_id_from_node
)attribute
(argument_list
(identifier_root) identifier_root
(None) None
(identifier_id_generator) identifier_id_generator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_usage_id) identifier_usage_id
)return_statement
)block
)function_definition
)module | Parse an open XML file, returning a usage id. |
(module
(function_definition
(function_name_from_api) function_name_from_api
(parameters
(identifier_cls) identifier_cls
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_vals) identifier_vals
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_non_empty_vals) identifier_get_non_empty_vals
)attribute
(argument_list
(dictionary_comprehension
(pair
(call
(attribute
(identifier_cls) identifier_cls
(identifier__to_snake_case) identifier__to_snake_case
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(identifier_v) identifier_v
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_remove) identifier_remove
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_attr) identifier_attr
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(identifier_vals) identifier_vals
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_vals) identifier_vals
(identifier_attr) identifier_attr
)subscript
(call
(attribute
(identifier_cls) identifier_cls
(identifier__parse_property) identifier__parse_property
)attribute
(argument_list
(identifier_attr) identifier_attr
(identifier_val) identifier_val
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_HelpScoutValidationException) identifier_HelpScoutValidationException
(block
(expression_statement
(call
(attribute
(identifier_remove) identifier_remove
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_attr) identifier_attr
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Unexpected property received in API response') string_'Unexpected property received in API response'
(keyword_argument
(identifier_exc_info) identifier_exc_info
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(for_statement
(identifier_attr) identifier_attr
(identifier_remove) identifier_remove
(block
(delete_statement
(subscript
(identifier_vals) identifier_vals
(identifier_attr) identifier_attr
)subscript
)delete_statement
)block
)for_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(dictionary_splat
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_non_empty_vals) identifier_get_non_empty_vals
)attribute
(argument_list
(identifier_vals) identifier_vals
)argument_list
)call
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a new instance from API arguments.
This will switch camelCase keys into snake_case for instantiation.
It will also identify any ``Instance`` or ``List`` properties, and
instantiate the proper objects using the values. The end result being
a fully Objectified and Pythonified API response.
Returns:
BaseModel: Instantiated model using the API values. |
(module
(function_definition
(function_name_discover_settings) function_name_discover_settings
(parameters
(default_parameter
(identifier_conf_base) identifier_conf_base
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_settings) identifier_settings
(dictionary
(pair
(string_'zmq_prefix') string_'zmq_prefix'
(string_'') string_''
)pair
(pair
(string_'libzmq_extension') string_'libzmq_extension'
(False) False
)pair
(pair
(string_'no_libzmq_extension') string_'no_libzmq_extension'
(False) False
)pair
(pair
(string_'skip_check_zmq') string_'skip_check_zmq'
(False) False
)pair
(pair
(string_'build_ext') string_'build_ext'
(dictionary
)dictionary
)pair
(pair
(string_'bdist_egg') string_'bdist_egg'
(dictionary
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'win') string_'win'
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'have_sys_un_h') string_'have_sys_un_h'
)subscript
(False) False
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_conf_base) identifier_conf_base
(block
(expression_statement
(call
(identifier_merge) identifier_merge
(argument_list
(identifier_settings) identifier_settings
(call
(identifier_load_config) identifier_load_config
(argument_list
(string_'config') string_'config'
(identifier_conf_base) identifier_conf_base
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_merge) identifier_merge
(argument_list
(identifier_settings) identifier_settings
(call
(identifier_get_cfg_args) identifier_get_cfg_args
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_merge) identifier_merge
(argument_list
(identifier_settings) identifier_settings
(call
(identifier_get_eargs) identifier_get_eargs
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_settings) identifier_settings
)return_statement
)block
)function_definition
)module | Discover custom settings for ZMQ path |
(module
(function_definition
(function_name_detect_regions) function_name_detect_regions
(parameters
(identifier_bam_in) identifier_bam_in
(identifier_bed_file) identifier_bed_file
(identifier_out_dir) identifier_out_dir
(identifier_prefix) identifier_prefix
)parameters
(block
(expression_statement
(assignment
(identifier_bed_file) identifier_bed_file
(call
(identifier__reorder_columns) identifier__reorder_columns
(argument_list
(identifier_bed_file) identifier_bed_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_counts_reads_cmd) identifier_counts_reads_cmd
(parenthesized_expression
(concatenated_string
(string_"coverageBed -s -counts -b {bam_in} ") string_"coverageBed -s -counts -b {bam_in} "
(string_"-a {bed_file} | sort -k4,4 ") string_"-a {bed_file} | sort -k4,4 "
(string_"> {out_dir}/loci.cov") string_"> {out_dir}/loci.cov"
)concatenated_string
)parenthesized_expression
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_utils) identifier_utils
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_out_dir) identifier_out_dir
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_run) identifier_run
(argument_list
(call
(attribute
(identifier_counts_reads_cmd) identifier_counts_reads_cmd
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_min_trimmed_read_len) identifier_min_trimmed_read_len
(identifier_min_trimmed_read_len) identifier_min_trimmed_read_len
)keyword_argument
(keyword_argument
(identifier_max_trimmed_read_len) identifier_max_trimmed_read_len
(identifier_max_trimmed_read_len) identifier_max_trimmed_read_len
)keyword_argument
(dictionary_splat
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
)dictionary_splat
)argument_list
)call
(string_"Run counts_reads") string_"Run counts_reads"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_loci_file) identifier_loci_file
(call
(identifier__fix_score_column) identifier__fix_score_column
(argument_list
(call
(attribute
(identifier_op) identifier_op
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_out_dir) identifier_out_dir
(string_"loci.cov") string_"loci.cov"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_loci_file) identifier_loci_file
)return_statement
)block
)with_statement
)block
)function_definition
)module | Detect regions using first CoRaL module |
(module
(function_definition
(function_name_assert_valid_input) function_name_assert_valid_input
(parameters
(identifier_cls) identifier_cls
(identifier_tag) identifier_tag
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_cls) identifier_cls
(identifier_is_tag) identifier_is_tag
)attribute
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_"Expected a BeautifulSoup 'Tag', but instead recieved type {}") string_"Expected a BeautifulSoup 'Tag', but instead recieved type {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Check if valid input tag or document. |
(module
(function_definition
(function_name__cast_to_type) function_name__cast_to_type
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_dict) identifier_dict
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_fail) identifier_fail
)attribute
(argument_list
(string_'invalid') string_'invalid'
(keyword_argument
(identifier_value) identifier_value
(identifier_value) identifier_value
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Raise error if the value is not a dict |
(module
(function_definition
(function_name_cleanup) function_name_cleanup
(parameters
(identifier_output_root) identifier_output_root
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_output_root) identifier_output_root
)argument_list
)call
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_output_root) identifier_output_root
)argument_list
)call
(block
(expression_statement
(call
(identifier_rmtree) identifier_rmtree
(argument_list
(identifier_output_root) identifier_output_root
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_output_root) identifier_output_root
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Remove any reST files which were generated by this extension |
(module
(function_definition
(function_name__push_frontier) function_name__push_frontier
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_early_frontier) identifier_early_frontier
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(attribute
(identifier_ops) identifier_ops
(identifier_Qid) identifier_Qid
)attribute
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_late_frontier) identifier_late_frontier
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(attribute
(identifier_ops) identifier_ops
(identifier_Qid) identifier_Qid
)attribute
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_default_parameter
(identifier_update_qubits) identifier_update_qubits
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(attribute
(identifier_ops) identifier_ops
(identifier_Qid) identifier_Qid
)attribute
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
(block
(if_statement
(comparison_operator
(identifier_update_qubits) identifier_update_qubits
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_update_qubits) identifier_update_qubits
(call
(attribute
(call
(identifier_set) identifier_set
(argument_list
(identifier_early_frontier) identifier_early_frontier
)argument_list
)call
(identifier_difference) identifier_difference
)attribute
(argument_list
(identifier_late_frontier) identifier_late_frontier
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_n_new_moments) identifier_n_new_moments
(parenthesized_expression
(conditional_expression
(call
(identifier_max) identifier_max
(generator_expression
(binary_operator
(call
(attribute
(identifier_early_frontier) identifier_early_frontier
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_q) identifier_q
(integer_0) integer_0
)argument_list
)call
(subscript
(identifier_late_frontier) identifier_late_frontier
(identifier_q) identifier_q
)subscript
)binary_operator
(for_in_clause
(identifier_q) identifier_q
(identifier_late_frontier) identifier_late_frontier
)for_in_clause
)generator_expression
)call
(identifier_late_frontier) identifier_late_frontier
(integer_0) integer_0
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_n_new_moments) identifier_n_new_moments
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_insert_index) identifier_insert_index
(call
(identifier_min) identifier_min
(argument_list
(call
(attribute
(identifier_late_frontier) identifier_late_frontier
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__moments) identifier__moments
)attribute
(slice
(identifier_insert_index) identifier_insert_index
(colon) colon
(identifier_insert_index) identifier_insert_index
)slice
)subscript
(parenthesized_expression
(binary_operator
(list
(call
(attribute
(identifier_ops) identifier_ops
(identifier_Moment) identifier_Moment
)attribute
(argument_list
)argument_list
)call
)list
(identifier_n_new_moments) identifier_n_new_moments
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(for_statement
(identifier_q) identifier_q
(identifier_update_qubits) identifier_update_qubits
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_early_frontier) identifier_early_frontier
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_q) identifier_q
(integer_0) integer_0
)argument_list
)call
(identifier_insert_index) identifier_insert_index
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_early_frontier) identifier_early_frontier
(identifier_q) identifier_q
)subscript
(identifier_n_new_moments) identifier_n_new_moments
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_insert_index) identifier_insert_index
(identifier_n_new_moments) identifier_n_new_moments
)expression_list
)return_statement
)block
)if_statement
(return_statement
(tuple
(integer_0) integer_0
(integer_0) integer_0
)tuple
)return_statement
)block
)function_definition
)module | Inserts moments to separate two frontiers.
After insertion n_new moments, the following holds:
for q in late_frontier:
early_frontier[q] <= late_frontier[q] + n_new
for q in update_qubits:
early_frontier[q] the identifies the same moment as before
(but whose index may have changed if this moment is after
those inserted).
Args:
early_frontier: The earlier frontier. For qubits not in the later
frontier, this is updated to account for the newly inserted
moments.
late_frontier: The later frontier. This is not modified.
update_qubits: The qubits for which to update early_frontier to
account for the newly inserted moments.
Returns:
(index at which new moments were inserted, how many new moments
were inserted) if new moments were indeed inserted. (0, 0)
otherwise. |
(module
(function_definition
(function_name_field_exists) function_name_field_exists
(parameters
(identifier_self) identifier_self
(identifier_well_x) identifier_well_x
(identifier_well_y) identifier_well_y
(identifier_field_x) identifier_field_x
(identifier_field_y) identifier_field_y
)parameters
(block
(expression_statement
(string_"Check if field exists ScanFieldArray.") string_"Check if field exists ScanFieldArray."
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_field) identifier_field
)attribute
(argument_list
(identifier_well_x) identifier_well_x
(identifier_well_y) identifier_well_y
(identifier_field_x) identifier_field_x
(identifier_field_y) identifier_field_y
)argument_list
)call
(None) None
)comparison_operator
)return_statement
)block
)function_definition
)module | Check if field exists ScanFieldArray. |
(module
(function_definition
(function_name__get_candidates) function_name__get_candidates
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_candidates) identifier_candidates
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_dpp_vector) identifier_dpp_vector
)attribute
(integer_0) integer_0
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(None) None
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_candidates) identifier_candidates
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(subscript
(identifier_candidates) identifier_candidates
(integer_0) integer_0
)subscript
)conditional_expression
)return_statement
)block
)function_definition
)module | Finds the pipelines that are not yet tried.
Returns:
np.array: Indices corresponding to columns in ``dpp_matrix`` that haven't been tried on
``X``. ``None`` if all pipelines have been tried on X. |
(module
(function_definition
(function_name_send_frame) function_name_send_frame
(parameters
(identifier_self) identifier_self
(identifier_frame) identifier_frame
)parameters
(block
(if_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_connected) identifier_connected
)attribute
)not_operator
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_connect) identifier_connect
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_update_version) identifier_update_version
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(identifier_set_utc) identifier_set_utc
(argument_list
(keyword_argument
(identifier_pyvlx) identifier_pyvlx
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)await
)expression_statement
(expression_statement
(await
(call
(identifier_house_status_monitor_enable) identifier_house_status_monitor_enable
(argument_list
(keyword_argument
(identifier_pyvlx) identifier_pyvlx
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_connection) identifier_connection
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_frame) identifier_frame
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Send frame to API via connection. |
(module
(function_definition
(function_name_get_enrollment) function_name_get_enrollment
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__url) identifier__url
)attribute
(argument_list
(call
(attribute
(string_'enrollments/{}') string_'enrollments/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves an enrollment.
Useful to check its type and related metadata.
Args:
id (str): The id of the device account to update
See: https://auth0.com/docs/api/management/v2#!/Guardian/get_enrollments_by_id |
(module
(function_definition
(function_name_validate_request_certificate) function_name_validate_request_certificate
(parameters
(identifier_headers) identifier_headers
(identifier_data) identifier_data
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'SignatureCertChainUrl') string_'SignatureCertChainUrl'
(identifier_headers) identifier_headers
)comparison_operator
(comparison_operator
(string_'Signature') string_'Signature'
(identifier_headers) identifier_headers
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'invalid request headers') string_'invalid request headers'
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cert_url) identifier_cert_url
(subscript
(identifier_headers) identifier_headers
(string_'SignatureCertChainUrl') string_'SignatureCertChainUrl'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sig) identifier_sig
(call
(attribute
(identifier_base64) identifier_base64
(identifier_b64decode) identifier_b64decode
)attribute
(argument_list
(subscript
(identifier_headers) identifier_headers
(string_'Signature') string_'Signature'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cert) identifier_cert
(call
(identifier__get_certificate) identifier__get_certificate
(argument_list
(identifier_cert_url) identifier_cert_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_cert) identifier_cert
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_crypto) identifier_crypto
(identifier_verify) identifier_verify
)attribute
(argument_list
(identifier_cert) identifier_cert
(identifier_sig) identifier_sig
(identifier_data) identifier_data
(string_'sha1') string_'sha1'
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'invalid request signature') string_'invalid request signature'
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Ensure that the certificate and signature specified in the
request headers are truely from Amazon and correctly verify.
Returns True if certificate verification succeeds, False otherwise.
:param headers: Dictionary (or sufficiently dictionary-like) map of request
headers.
:param data: Raw POST data attached to this request. |
(module
(function_definition
(function_name_handle_exception) function_name_handle_exception
(parameters
(identifier_self) identifier_self
(identifier_exception) identifier_exception
)parameters
(block
(expression_statement
(assignment
(identifier_can_redirect) identifier_can_redirect
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_exception) identifier_exception
(string_"can_redirect") string_"can_redirect"
(True) True
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_redirect_uri) identifier_redirect_uri
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(string_"redirect_uri") string_"redirect_uri"
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_can_redirect) identifier_can_redirect
(identifier_redirect_uri) identifier_redirect_uri
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_redirect_exception) identifier_redirect_exception
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render_exception) identifier_render_exception
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Handle a unspecified exception and return the correct method that should be used
for handling it.
If the exception has the `can_redirect` property set to False, it is
rendered to the browser. Otherwise, it will be redirected to the location
provided in the `RedirectUri` object that is associated with the request. |
(module
(function_definition
(function_name___clean_and_tokenize) function_name___clean_and_tokenize
(parameters
(identifier_self) identifier_self
(identifier_doc_list) identifier_doc_list
)parameters
(block
(expression_statement
(assignment
(identifier_doc_list) identifier_doc_list
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(boolean_operator
(comparison_operator
(identifier_x) identifier_x
(None) None
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(attribute
(identifier_GitSuggest) identifier_GitSuggest
(identifier_MAX_DESC_LEN) identifier_MAX_DESC_LEN
)attribute
)comparison_operator
)boolean_operator
)lambda
(identifier_doc_list) identifier_doc_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cleaned_doc_list) identifier_cleaned_doc_list
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokenizer) identifier_tokenizer
(call
(identifier_RegexpTokenizer) identifier_RegexpTokenizer
(argument_list
(string_r"[a-zA-Z]+") string_r"[a-zA-Z]+"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stopwords) identifier_stopwords
(call
(attribute
(identifier_self) identifier_self
(identifier___get_words_to_ignore) identifier___get_words_to_ignore
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dict_words) identifier_dict_words
(call
(attribute
(identifier_self) identifier_self
(identifier___get_words_to_consider) identifier___get_words_to_consider
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_doc) identifier_doc
(identifier_doc_list) identifier_doc_list
(block
(expression_statement
(assignment
(identifier_lower) identifier_lower
(call
(attribute
(identifier_doc) identifier_doc
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(call
(attribute
(identifier_tokenizer) identifier_tokenizer
(identifier_tokenize) identifier_tokenize
)attribute
(argument_list
(identifier_lower) identifier_lower
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(list_comprehension
(identifier_tok) identifier_tok
(for_in_clause
(identifier_tok) identifier_tok
(identifier_tokens) identifier_tokens
)for_in_clause
(if_clause
(comparison_operator
(identifier_tok) identifier_tok
(identifier_dict_words) identifier_dict_words
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(list_comprehension
(identifier_tok) identifier_tok
(for_in_clause
(identifier_tok) identifier_tok
(identifier_tokens) identifier_tokens
)for_in_clause
(if_clause
(comparison_operator
(identifier_tok) identifier_tok
(identifier_stopwords) identifier_stopwords
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tokens) identifier_tokens
(list_comprehension
(identifier_tok) identifier_tok
(for_in_clause
(identifier_tok) identifier_tok
(identifier_tokens) identifier_tokens
)for_in_clause
(if_clause
(comparison_operator
(identifier_tok) identifier_tok
(None) None
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cleaned_doc_list) identifier_cleaned_doc_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_cleaned_doc_list) identifier_cleaned_doc_list
)return_statement
)block
)function_definition
)module | Method to clean and tokenize the document list.
:param doc_list: Document list to clean and tokenize.
:return: Cleaned and tokenized document list. |
(module
(function_definition
(function_name_cacheback) function_name_cacheback
(parameters
(default_parameter
(identifier_lifetime) identifier_lifetime
(None) None
)default_parameter
(default_parameter
(identifier_fetch_on_miss) identifier_fetch_on_miss
(None) None
)default_parameter
(default_parameter
(identifier_cache_alias) identifier_cache_alias
(None) None
)default_parameter
(default_parameter
(identifier_job_class) identifier_job_class
(None) None
)default_parameter
(default_parameter
(identifier_task_options) identifier_task_options
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_job_class_kwargs) identifier_job_class_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_job_class) identifier_job_class
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_job_class) identifier_job_class
(identifier_FunctionJob) identifier_FunctionJob
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_job) identifier_job
(call
(identifier_job_class) identifier_job_class
(argument_list
(keyword_argument
(identifier_lifetime) identifier_lifetime
(identifier_lifetime) identifier_lifetime
)keyword_argument
(keyword_argument
(identifier_fetch_on_miss) identifier_fetch_on_miss
(identifier_fetch_on_miss) identifier_fetch_on_miss
)keyword_argument
(keyword_argument
(identifier_cache_alias) identifier_cache_alias
(identifier_cache_alias) identifier_cache_alias
)keyword_argument
(keyword_argument
(identifier_task_options) identifier_task_options
(identifier_task_options) identifier_task_options
)keyword_argument
(dictionary_splat
(identifier_job_class_kwargs) identifier_job_class_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name__wrapper) function_name__wrapper
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_fn) identifier_fn
(keyword_argument
(identifier_assigned) identifier_assigned
(call
(identifier_available_attrs) identifier_available_attrs
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)keyword_argument
)argument_list
)call
)decorator
(function_definition
(function_name___wrapper) function_name___wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_job) identifier_job
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_fn) identifier_fn
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(expression_statement
(assignment
(attribute
(identifier___wrapper) identifier___wrapper
(identifier_fn) identifier_fn
)attribute
(identifier_fn) identifier_fn
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier___wrapper) identifier___wrapper
(identifier_job) identifier_job
)attribute
(identifier_job) identifier_job
)assignment
)expression_statement
(return_statement
(identifier___wrapper) identifier___wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier__wrapper) identifier__wrapper
)return_statement
)block
)function_definition
)module | Decorate function to cache its return value.
:lifetime: How long to cache items for
:fetch_on_miss: Whether to perform a synchronous fetch when no cached
result is found
:cache_alias: The Django cache alias to store the result into.
:job_class: The class to use for running the cache refresh job. Defaults
using the FunctionJob.
:job_class_kwargs: Any extra kwargs to pass to job_class constructor.
Useful with custom job_class implementations. |
(module
(function_definition
(function_name_from_str) function_name_from_str
(parameters
(identifier_cls) identifier_cls
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(if_statement
(comparison_operator
(string_'\x1b[') string_'\x1b['
(identifier_s) identifier_s
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_tokens_and_strings) identifier_tokens_and_strings
(call
(identifier_parse) identifier_parse
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(call
(identifier_FmtStr) identifier_FmtStr
(argument_list
(call
(identifier_Chunk) identifier_Chunk
(argument_list
(call
(identifier_remove_ansi) identifier_remove_ansi
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_chunks) identifier_chunks
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cur_fmt) identifier_cur_fmt
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(identifier_tokens_and_strings) identifier_tokens_and_strings
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_cur_fmt) identifier_cur_fmt
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(tuple
(identifier_bytes) identifier_bytes
(identifier_unicode) identifier_unicode
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_atts) identifier_atts
(call
(identifier_parse_args) identifier_parse_args
(argument_list
(string_'') string_''
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_cur_fmt) identifier_cur_fmt
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
)if_clause
)generator_expression
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_chunks) identifier_chunks
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Chunk) identifier_Chunk
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_atts) identifier_atts
(identifier_atts) identifier_atts
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"logic error") string_"logic error"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(call
(identifier_FmtStr) identifier_FmtStr
(argument_list
(list_splat
(identifier_chunks) identifier_chunks
)list_splat
)argument_list
)call
)return_statement
)block
)else_clause
)try_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_FmtStr) identifier_FmtStr
(argument_list
(call
(identifier_Chunk) identifier_Chunk
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | r"""
Return a FmtStr representing input.
The str() of a FmtStr is guaranteed to produced the same FmtStr.
Other input with escape sequences may not be preserved.
>>> fmtstr("|"+fmtstr("hey", fg='red', bg='blue')+"|")
'|'+on_blue(red('hey'))+'|'
>>> fmtstr('|\x1b[31m\x1b[44mhey\x1b[49m\x1b[39m|')
'|'+on_blue(red('hey'))+'|' |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_code) identifier_code
(None) None
)default_parameter
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_ignore) identifier_ignore
(None) None
)default_parameter
(default_parameter
(identifier_select) identifier_select
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_meta) identifier_meta
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_complexity) identifier_complexity
(call
(attribute
(identifier_params) identifier_params
(identifier_get) identifier_get
)attribute
(argument_list
(string_'complexity') string_'complexity'
(integer_10) integer_10
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_no_assert) identifier_no_assert
(call
(attribute
(identifier_params) identifier_params
(identifier_get) identifier_get
)attribute
(argument_list
(string_'no_assert') string_'no_assert'
(False) False
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_show_closures) identifier_show_closures
(call
(attribute
(identifier_params) identifier_params
(identifier_get) identifier_get
)attribute
(argument_list
(string_'show_closures') string_'show_closures'
(False) False
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_visitor) identifier_visitor
(call
(attribute
(identifier_ComplexityVisitor) identifier_ComplexityVisitor
(identifier_from_code) identifier_from_code
)attribute
(argument_list
(identifier_code) identifier_code
(keyword_argument
(identifier_no_assert) identifier_no_assert
(identifier_no_assert) identifier_no_assert
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_blocks) identifier_blocks
(attribute
(identifier_visitor) identifier_visitor
(identifier_blocks) identifier_blocks
)attribute
)assignment
)expression_statement
(if_statement
(identifier_show_closures) identifier_show_closures
(block
(expression_statement
(assignment
(identifier_blocks) identifier_blocks
(call
(identifier_add_inner_blocks) identifier_add_inner_blocks
(argument_list
(identifier_blocks) identifier_blocks
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(list_comprehension
(dictionary
(pair
(string_'lnum') string_'lnum'
(attribute
(identifier_block) identifier_block
(identifier_lineno) identifier_lineno
)attribute
)pair
(pair
(string_'col') string_'col'
(attribute
(identifier_block) identifier_block
(identifier_col_offset) identifier_col_offset
)attribute
)pair
(pair
(string_'type') string_'type'
(string_'R') string_'R'
)pair
(pair
(string_'number') string_'number'
(string_'R709') string_'R709'
)pair
(pair
(string_'text') string_'text'
(binary_operator
(string_'R701: %s is too complex %d') string_'R701: %s is too complex %d'
(tuple
(attribute
(identifier_block) identifier_block
(identifier_name) identifier_name
)attribute
(attribute
(identifier_block) identifier_block
(identifier_complexity) identifier_complexity
)attribute
)tuple
)binary_operator
)pair
)dictionary
(for_in_clause
(identifier_block) identifier_block
(attribute
(identifier_visitor) identifier_visitor
(identifier_blocks) identifier_blocks
)attribute
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_block) identifier_block
(identifier_complexity) identifier_complexity
)attribute
(identifier_complexity) identifier_complexity
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Check code with Radon.
:return list: List of errors. |
(module
(function_definition
(function_name__Pluralize) function_name__Pluralize
(parameters
(identifier_value) identifier_value
(identifier_unused_context) identifier_unused_context
(identifier_args) identifier_args
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_s) identifier_s
(identifier_p) identifier_p
)pattern_list
(expression_list
(string_'') string_''
(string_'s') string_'s'
)expression_list
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_s) identifier_s
(identifier_p) identifier_p
)pattern_list
(expression_list
(string_'') string_''
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)expression_list
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_s) identifier_s
(identifier_p) identifier_p
)pattern_list
(identifier_args) identifier_args
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(identifier_AssertionError) identifier_AssertionError
)raise_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(integer_1) integer_1
)comparison_operator
(block
(return_statement
(identifier_p) identifier_p
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_s) identifier_s
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Formatter to pluralize words. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.