sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_pty_wrapper_main) function_name_pty_wrapper_main (parameters )parameters (block (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_path) identifier_path )attribute (identifier_insert) identifier_insert )attribute (argument_list (integer_0) integer_0 (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier___file__) identifier___file__ )argument_list )call )argument_list )call )expression_statement (import_statement (dotted_name (identifier__pty) identifier__pty )dotted_name )import_statement (expression_statement (call (attribute (identifier__pty) identifier__pty (identifier_spawn) identifier_spawn )attribute (argument_list (subscript (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute (slice (integer_1) integer_1 (colon) colon )slice )subscript )argument_list )call )expression_statement )block )function_definition )module
Main function of the pty wrapper script
(module (function_definition (function_name_list_entitlements_options) function_name_list_entitlements_options (parameters (identifier_f) identifier_f )parameters (block (decorated_definition (decorator (identifier_common_entitlements_options) identifier_common_entitlements_options )decorator (decorator (attribute (identifier_decorators) identifier_decorators (identifier_common_cli_config_options) identifier_common_cli_config_options )attribute )decorator (decorator (attribute (identifier_decorators) identifier_decorators (identifier_common_cli_list_options) identifier_common_cli_list_options )attribute )decorator (decorator (attribute (identifier_decorators) identifier_decorators (identifier_common_cli_output_options) identifier_common_cli_output_options )attribute )decorator (decorator (attribute (identifier_decorators) identifier_decorators (identifier_common_api_auth_options) identifier_common_api_auth_options )attribute )decorator (decorator (attribute (identifier_decorators) identifier_decorators (identifier_initialise_api) identifier_initialise_api )attribute )decorator (decorator (call (attribute (identifier_click) identifier_click (identifier_argument) identifier_argument )attribute (argument_list (string_"owner_repo") string_"owner_repo" (keyword_argument (identifier_metavar) identifier_metavar (string_"OWNER/REPO") string_"OWNER/REPO" )keyword_argument (keyword_argument (identifier_callback) identifier_callback (attribute (identifier_validators) identifier_validators (identifier_validate_owner_repo) identifier_validate_owner_repo )attribute )keyword_argument )argument_list )call )decorator (decorator (attribute (identifier_click) identifier_click (identifier_pass_context) identifier_pass_context )attribute )decorator (decorator (call (attribute (identifier_functools) identifier_functools (identifier_wraps) identifier_wraps )attribute (argument_list (identifier_f) identifier_f )argument_list )call )decorator (function_definition (function_name_wrapper) function_name_wrapper (parameters (identifier_ctx) identifier_ctx (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_ctx) identifier_ctx (identifier_invoke) identifier_invoke )attribute (argument_list (identifier_f) identifier_f (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 (return_statement (identifier_wrapper) identifier_wrapper )return_statement )block )function_definition )module
Options for list entitlements subcommand.
(module (function_definition (function_name_update_settings) function_name_update_settings (parameters (identifier_self) identifier_self (default_parameter (identifier_kwargs_model) identifier_kwargs_model (dictionary )dictionary )default_parameter (default_parameter (identifier_kwargs_constraints) identifier_kwargs_constraints (dictionary )dictionary )default_parameter (default_parameter (identifier_kwargs_likelihood) identifier_kwargs_likelihood (dictionary )dictionary )default_parameter (default_parameter (identifier_lens_add_fixed) identifier_lens_add_fixed (list )list )default_parameter (default_parameter (identifier_source_add_fixed) identifier_source_add_fixed (list )list )default_parameter (default_parameter (identifier_lens_light_add_fixed) identifier_lens_light_add_fixed (list )list )default_parameter (default_parameter (identifier_ps_add_fixed) identifier_ps_add_fixed (list )list )default_parameter (default_parameter (identifier_cosmo_add_fixed) identifier_cosmo_add_fixed (list )list )default_parameter (default_parameter (identifier_lens_remove_fixed) identifier_lens_remove_fixed (list )list )default_parameter (default_parameter (identifier_source_remove_fixed) identifier_source_remove_fixed (list )list )default_parameter (default_parameter (identifier_lens_light_remove_fixed) identifier_lens_light_remove_fixed (list )list )default_parameter (default_parameter (identifier_ps_remove_fixed) identifier_ps_remove_fixed (list )list )default_parameter (default_parameter (identifier_cosmo_remove_fixed) identifier_cosmo_remove_fixed (list )list )default_parameter (default_parameter (identifier_change_source_lower_limit) identifier_change_source_lower_limit (None) None )default_parameter (default_parameter (identifier_change_source_upper_limit) identifier_change_source_upper_limit (None) None )default_parameter )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__updateManager) identifier__updateManager )attribute (identifier_update_options) identifier_update_options )attribute (argument_list (identifier_kwargs_model) identifier_kwargs_model (identifier_kwargs_constraints) identifier_kwargs_constraints (identifier_kwargs_likelihood) identifier_kwargs_likelihood )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__updateManager) identifier__updateManager )attribute (identifier_update_fixed) identifier_update_fixed )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__lens_temp) identifier__lens_temp )attribute (attribute (identifier_self) identifier_self (identifier__source_temp) identifier__source_temp )attribute (attribute (identifier_self) identifier_self (identifier__lens_light_temp) identifier__lens_light_temp )attribute (attribute (identifier_self) identifier_self (identifier__ps_temp) identifier__ps_temp )attribute (attribute (identifier_self) identifier_self (identifier__cosmo_temp) identifier__cosmo_temp )attribute (identifier_lens_add_fixed) identifier_lens_add_fixed (identifier_source_add_fixed) identifier_source_add_fixed (identifier_lens_light_add_fixed) identifier_lens_light_add_fixed (identifier_ps_add_fixed) identifier_ps_add_fixed (identifier_cosmo_add_fixed) identifier_cosmo_add_fixed (identifier_lens_remove_fixed) identifier_lens_remove_fixed (identifier_source_remove_fixed) identifier_source_remove_fixed (identifier_lens_light_remove_fixed) identifier_lens_light_remove_fixed (identifier_ps_remove_fixed) identifier_ps_remove_fixed (identifier_cosmo_remove_fixed) identifier_cosmo_remove_fixed )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__updateManager) identifier__updateManager )attribute (identifier_update_limits) identifier_update_limits )attribute (argument_list (identifier_change_source_lower_limit) identifier_change_source_lower_limit (identifier_change_source_upper_limit) identifier_change_source_upper_limit )argument_list )call )expression_statement (return_statement (integer_0) integer_0 )return_statement )block )function_definition )module
updates lenstronomy settings "on the fly" :param kwargs_model: kwargs, specified keyword arguments overwrite the existing ones :param kwargs_constraints: kwargs, specified keyword arguments overwrite the existing ones :param kwargs_likelihood: kwargs, specified keyword arguments overwrite the existing ones :param lens_add_fixed: [[i_model, ['param1', 'param2',...], [...]] :param source_add_fixed: [[i_model, ['param1', 'param2',...], [...]] :param lens_light_add_fixed: [[i_model, ['param1', 'param2',...], [...]] :param ps_add_fixed: [[i_model, ['param1', 'param2',...], [...]] :param cosmo_add_fixed: ['param1', 'param2',...] :param lens_remove_fixed: [[i_model, ['param1', 'param2',...], [...]] :param source_remove_fixed: [[i_model, ['param1', 'param2',...], [...]] :param lens_light_remove_fixed: [[i_model, ['param1', 'param2',...], [...]] :param ps_remove_fixed: [[i_model, ['param1', 'param2',...], [...]] :param cosmo_remove_fixed: ['param1', 'param2',...] :return: 0, the settings are overwritten for the next fitting step to come
(module (function_definition (function_name_almutem) function_name_almutem (parameters (identifier_sign) identifier_sign (identifier_lon) identifier_lon )parameters (block (expression_statement (assignment (identifier_planets) identifier_planets (attribute (identifier_const) identifier_const (identifier_LIST_SEVEN_PLANETS) identifier_LIST_SEVEN_PLANETS )attribute )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (list (None) None (integer_0) integer_0 )list )assignment )expression_statement (for_statement (identifier_ID) identifier_ID (identifier_planets) identifier_planets (block (expression_statement (assignment (identifier_sc) identifier_sc (call (identifier_score) identifier_score (argument_list (identifier_ID) identifier_ID (identifier_sign) identifier_sign (identifier_lon) identifier_lon )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_sc) identifier_sc (subscript (identifier_res) identifier_res (integer_1) integer_1 )subscript )comparison_operator (block (expression_statement (assignment (identifier_res) identifier_res (list (identifier_ID) identifier_ID (identifier_sc) identifier_sc )list )assignment )expression_statement )block )if_statement )block )for_statement (return_statement (subscript (identifier_res) identifier_res (integer_0) integer_0 )subscript )return_statement )block )function_definition )module
Returns the almutem for a given sign and longitude.
(module (function_definition (function_name_become) function_name_become (parameters (identifier_self) identifier_self (typed_parameter (identifier_layer_type) identifier_layer_type (type (generic_type (identifier_Type) identifier_Type (type_parameter (type (identifier_L) identifier_L )type )type_parameter )generic_type )type )typed_parameter (typed_parameter (identifier_request) identifier_request (type (string_'Request') string_'Request' )type )typed_parameter )parameters (block (if_statement (comparison_operator (identifier_layer_type) identifier_layer_type (identifier_RawText) identifier_RawText )comparison_operator (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_Text) identifier_Text (identifier_self) identifier_self )argument_list )call (identifier_become) identifier_become )attribute (argument_list (identifier_layer_type) identifier_layer_type (identifier_request) identifier_request )argument_list )call )expression_statement )block )if_statement (return_statement (call (identifier_RawText) identifier_RawText (argument_list (await (call (identifier_render) identifier_render (argument_list (attribute (identifier_self) identifier_self (identifier_text) identifier_text )attribute (identifier_request) identifier_request )argument_list )call )await )argument_list )call )return_statement )block )function_definition )module
Transforms the translatable string into an actual string and put it inside a RawText.
(module (function_definition (function_name_startAlertListener) function_name_startAlertListener (parameters (identifier_self) identifier_self (default_parameter (identifier_callback) identifier_callback (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_notifier) identifier_notifier (call (identifier_AlertListener) identifier_AlertListener (argument_list (identifier_self) identifier_self (identifier_callback) identifier_callback )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_notifier) identifier_notifier (identifier_start) identifier_start )attribute (argument_list )argument_list )call )expression_statement (return_statement (identifier_notifier) identifier_notifier )return_statement )block )function_definition )module
Creates a websocket connection to the Plex Server to optionally recieve notifications. These often include messages from Plex about media scans as well as updates to currently running Transcode Sessions. NOTE: You need websocket-client installed in order to use this feature. >> pip install websocket-client Parameters: callback (func): Callback function to call on recieved messages. raises: :class:`plexapi.exception.Unsupported`: Websocket-client not installed.
(module (function_definition (function_name__isValidQuery) function_name__isValidQuery (parameters (identifier_self) identifier_self (identifier_query) identifier_query (default_parameter (identifier_mode) identifier_mode (string_"phonefy") string_"phonefy" )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_validator) identifier_validator (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_modes) identifier_modes )attribute (identifier_mode) identifier_mode )subscript (identifier_get) identifier_get )attribute (argument_list (string_"query_validator") string_"query_validator" )argument_list )call )assignment )expression_statement (if_statement (identifier_validator) identifier_validator (block (try_statement (block (expression_statement (assignment (identifier_compiledRegexp) identifier_compiledRegexp (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (call (attribute (string_"^{expr}$") string_"^{expr}$" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_expr) identifier_expr (identifier_validator) identifier_validator )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_compiledRegexp) identifier_compiledRegexp (identifier_match) identifier_match )attribute (argument_list (identifier_query) identifier_query )argument_list )call )return_statement )block (except_clause (as_pattern (identifier_AttributeError) identifier_AttributeError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (return_statement (True) True )return_statement )block )except_clause )try_statement )block )if_statement )block (except_clause (as_pattern (identifier_AttributeError) identifier_AttributeError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (assignment (identifier_compiledRegexp) identifier_compiledRegexp (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (call (attribute (string_"^{r}$") string_"^{r}$" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_r) identifier_r (subscript (attribute (identifier_self) identifier_self (identifier_validQuery) identifier_validQuery )attribute (identifier_mode) identifier_mode )subscript )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_compiledRegexp) identifier_compiledRegexp (identifier_match) identifier_match )attribute (argument_list (identifier_query) identifier_query )argument_list )call )return_statement )block )except_clause )try_statement )block )function_definition )module
Method to verify if a given query is processable by the platform. The system looks for the forbidden characters in self.Forbidden list. Args: ----- query: The query to be launched. mode: To be chosen amongst mailfy, phonefy, usufy, searchfy. Return: ------- True | False
(module (function_definition (function_name_import_pipeline) function_name_import_pipeline (parameters (identifier_url) identifier_url (identifier_pipeline_id) identifier_pipeline_id (identifier_auth) identifier_auth (identifier_json_payload) identifier_json_payload (identifier_verify_ssl) identifier_verify_ssl (default_parameter (identifier_overwrite) identifier_overwrite (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_parameters) identifier_parameters (dictionary (pair (string_'overwrite') string_'overwrite' (identifier_overwrite) identifier_overwrite )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_import_result) identifier_import_result (call (attribute (identifier_requests) identifier_requests (identifier_post) identifier_post )attribute (argument_list (binary_operator (binary_operator (binary_operator (identifier_url) identifier_url (string_'/') string_'/' )binary_operator (identifier_pipeline_id) identifier_pipeline_id )binary_operator (string_'/import') string_'/import' )binary_operator (keyword_argument (identifier_params) identifier_params (identifier_parameters) identifier_parameters )keyword_argument (keyword_argument (identifier_headers) identifier_headers (identifier_X_REQ_BY) identifier_X_REQ_BY )keyword_argument (keyword_argument (identifier_auth) identifier_auth (identifier_auth) identifier_auth )keyword_argument (keyword_argument (identifier_verify) identifier_verify (identifier_verify_ssl) identifier_verify_ssl )keyword_argument (keyword_argument (identifier_json) identifier_json (identifier_json_payload) identifier_json_payload )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_import_result) identifier_import_result (identifier_status_code) identifier_status_code )attribute (integer_200) integer_200 )comparison_operator (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_error) identifier_error )attribute (argument_list (binary_operator (string_'Import error response: ') string_'Import error response: ' (attribute (identifier_import_result) identifier_import_result (identifier_text) identifier_text )attribute )binary_operator )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_import_result) identifier_import_result (identifier_raise_for_status) identifier_raise_for_status )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_info) identifier_info )attribute (argument_list (string_'Pipeline import successful.') string_'Pipeline import successful.' )argument_list )call )expression_statement (return_statement (call (attribute (identifier_import_result) identifier_import_result (identifier_json) identifier_json )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Import a pipeline. This will completely overwrite the existing pipeline. Args: url (str): the host url in the form 'http://host:port/'. pipeline_id (str): the ID of of the exported pipeline. auth (tuple): a tuple of username, and password. json_payload (dict): the exported json payload as a dictionary. overwrite (bool): overwrite existing pipeline verify_ssl (bool): whether to verify ssl certificates Returns: dict: the response json
(module (function_definition (function_name__init_nxapi) function_name__init_nxapi (parameters (identifier_opts) identifier_opts )parameters (block (expression_statement (assignment (identifier_proxy_dict) identifier_proxy_dict (call (attribute (identifier_opts) identifier_opts (identifier_get) identifier_get )attribute (argument_list (string_'proxy') string_'proxy' (dictionary )dictionary )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_conn_args) identifier_conn_args (call (attribute (identifier_copy) identifier_copy (identifier_deepcopy) identifier_deepcopy )attribute (argument_list (identifier_proxy_dict) identifier_proxy_dict )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_conn_args) identifier_conn_args (identifier_pop) identifier_pop )attribute (argument_list (string_'proxytype') string_'proxytype' (None) None )argument_list )call )expression_statement (expression_statement (assignment (subscript (identifier_opts) identifier_opts (string_'multiprocessing') string_'multiprocessing' )subscript (call (attribute (identifier_conn_args) identifier_conn_args (identifier_pop) identifier_pop )attribute (argument_list (string_'multiprocessing') string_'multiprocessing' (True) True )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_rpc_reply) identifier_rpc_reply (call (subscript (identifier___utils__) identifier___utils__ (string_'nxos.nxapi_request') string_'nxos.nxapi_request' )subscript (argument_list (string_'show clock') string_'show clock' (dictionary_splat (identifier_conn_args) identifier_conn_args )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_DEVICE_DETAILS) identifier_DEVICE_DETAILS (string_'conn_args') string_'conn_args' )subscript (identifier_conn_args) identifier_conn_args )assignment )expression_statement (expression_statement (assignment (subscript (identifier_DEVICE_DETAILS) identifier_DEVICE_DETAILS (string_'initialized') string_'initialized' )subscript (True) True )assignment )expression_statement (expression_statement (assignment (subscript (identifier_DEVICE_DETAILS) identifier_DEVICE_DETAILS (string_'up') string_'up' )subscript (True) True )assignment )expression_statement (expression_statement (assignment (subscript (identifier_DEVICE_DETAILS) identifier_DEVICE_DETAILS (string_'no_save_config') string_'no_save_config' )subscript (call (attribute (subscript (identifier_opts) identifier_opts (string_'proxy') string_'proxy' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'no_save_config') string_'no_save_config' (False) False )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_ex) identifier_ex )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_'Unable to connect to %s') string_'Unable to connect to %s' (subscript (identifier_conn_args) identifier_conn_args (string_'host') string_'host' )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_'Please check the following:\n') string_'Please check the following:\n' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_'-- Verify that "feature nxapi" is enabled on your NX-OS device: %s') string_'-- Verify that "feature nxapi" is enabled on your NX-OS device: %s' (subscript (identifier_conn_args) identifier_conn_args (string_'host') string_'host' )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_'-- Verify that nxapi settings on the NX-OS device and proxy minion config file match') string_'-- Verify that nxapi settings on the NX-OS device and proxy minion config file match' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_'-- Exception Generated: %s') string_'-- Exception Generated: %s' (identifier_ex) identifier_ex )argument_list )call )expression_statement (expression_statement (call (identifier_exit) identifier_exit (argument_list )argument_list )call )expression_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_info) identifier_info )attribute (argument_list (string_'nxapi DEVICE_DETAILS info: %s') string_'nxapi DEVICE_DETAILS info: %s' (identifier_DEVICE_DETAILS) identifier_DEVICE_DETAILS )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )function_definition )module
Open a connection to the NX-OS switch over NX-API. As the communication is HTTP(S) based, there is no connection to maintain, however, in order to test the connectivity and make sure we are able to bring up this Minion, we are executing a very simple command (``show clock``) which doesn't come with much overhead and it's sufficient to confirm we are indeed able to connect to the NX-API endpoint as configured.
(module (function_definition (function_name_start_all_linking) function_name_start_all_linking (parameters (identifier_self) identifier_self (identifier_linkcode) identifier_linkcode (identifier_group) identifier_group (default_parameter (identifier_address) identifier_address (None) None )default_parameter )parameters (block (expression_statement (call (attribute (identifier__LOGGING) identifier__LOGGING (identifier_info) identifier_info )attribute (argument_list (string_'Starting the All-Linking process') string_'Starting the All-Linking process' )argument_list )call )expression_statement (if_statement (identifier_address) identifier_address (block (expression_statement (assignment (identifier_linkdevice) identifier_linkdevice (subscript (attribute (attribute (identifier_self) identifier_self (identifier_plm) identifier_plm )attribute (identifier_devices) identifier_devices )attribute (attribute (call (identifier_Address) identifier_Address (argument_list (identifier_address) identifier_address )argument_list )call (identifier_id) identifier_id )attribute )subscript )assignment )expression_statement (if_statement (not_operator (identifier_linkdevice) identifier_linkdevice )not_operator (block (expression_statement (assignment (identifier_linkdevice) identifier_linkdevice (call (identifier_create) identifier_create (argument_list (attribute (identifier_self) identifier_self (identifier_plm) identifier_plm )attribute (identifier_address) identifier_address (None) None (None) None )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier__LOGGING) identifier__LOGGING (identifier_info) identifier_info )attribute (argument_list (string_'Attempting to link the PLM to device %s. ') string_'Attempting to link the PLM to device %s. ' (identifier_address) identifier_address )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_plm) identifier_plm )attribute (identifier_start_all_linking) identifier_start_all_linking )attribute (argument_list (identifier_linkcode) identifier_linkcode (identifier_group) identifier_group )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_asyncio) identifier_asyncio (identifier_sleep) identifier_sleep )attribute (argument_list (float_.5) float_.5 (keyword_argument (identifier_loop) identifier_loop (attribute (identifier_self) identifier_self (identifier_loop) identifier_loop )attribute )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_linkdevice) identifier_linkdevice (identifier_enter_linking_mode) identifier_enter_linking_mode )attribute (argument_list (keyword_argument (identifier_group) identifier_group (identifier_group) identifier_group )keyword_argument )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier__LOGGING) identifier__LOGGING (identifier_info) identifier_info )attribute (argument_list (concatenated_string (string_'Starting All-Linking on PLM. ') string_'Starting All-Linking on PLM. ' (string_'Waiting for button press') string_'Waiting for button press' )concatenated_string )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_plm) identifier_plm )attribute (identifier_start_all_linking) identifier_start_all_linking )attribute (argument_list (identifier_linkcode) identifier_linkcode (identifier_group) identifier_group )argument_list )call )expression_statement (expression_statement (await (call (attribute (identifier_asyncio) identifier_asyncio (identifier_sleep) identifier_sleep )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_wait_time) identifier_wait_time )attribute (keyword_argument (identifier_loop) identifier_loop (attribute (identifier_self) identifier_self (identifier_loop) identifier_loop )attribute )keyword_argument )argument_list )call )await )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier__LOGGING) identifier__LOGGING (identifier_info) identifier_info )attribute (argument_list (string_'%d devices added to the All-Link Database') string_'%d devices added to the All-Link Database' (call (identifier_len) identifier_len (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_plm) identifier_plm )attribute (identifier_devices) identifier_devices )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (await (call (attribute (identifier_asyncio) identifier_asyncio (identifier_sleep) identifier_sleep )attribute (argument_list (float_.1) float_.1 (keyword_argument (identifier_loop) identifier_loop (attribute (identifier_self) identifier_self (identifier_loop) identifier_loop )attribute )keyword_argument )argument_list )call )await )expression_statement )block )function_definition )module
Start the All-Linking process with the IM and device.
(module (function_definition (function_name_decorator) function_name_decorator (parameters (identifier_func) identifier_func )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (function_definition (function_name_wrapper) function_name_wrapper (parameters (default_parameter (identifier___decorated__) identifier___decorated__ (None) None )default_parameter (list_splat_pattern (identifier_Args) identifier_Args )list_splat_pattern (dictionary_splat_pattern (identifier_KwArgs) identifier_KwArgs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (identifier___decorated__) identifier___decorated__ (None) None )comparison_operator (block (return_statement (lambda (lambda_parameters (identifier__func) identifier__func )lambda_parameters (call (identifier_func) identifier_func (argument_list (identifier__func) identifier__func (list_splat (identifier_Args) identifier_Args )list_splat (dictionary_splat (identifier_KwArgs) identifier_KwArgs )dictionary_splat )argument_list )call )lambda )return_statement )block (else_clause (block (return_statement (call (identifier_func) identifier_func (argument_list (identifier___decorated__) identifier___decorated__ (list_splat (identifier_Args) identifier_Args )list_splat (dictionary_splat (identifier_KwArgs) identifier_KwArgs )dictionary_splat )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition (return_statement (call (identifier_wrap) identifier_wrap (argument_list (identifier_wrapper) identifier_wrapper (identifier_func) identifier_func )argument_list )call )return_statement )block )function_definition )module
r"""Makes the passed decorators to support optional args.
(module (function_definition (function_name_list) function_name_list (parameters (identifier_self) identifier_self (identifier_request) identifier_request (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_ServicesViewSet) identifier_ServicesViewSet (identifier_self) identifier_self )argument_list )call (identifier_list) identifier_list )attribute (argument_list (identifier_request) identifier_request (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
Filter services by type ^^^^^^^^^^^^^^^^^^^^^^^ It is possible to filter services by their types. Example: /api/services/?service_type=DigitalOcean&service_type=OpenStack
(module (function_definition (function_name_execute) function_name_execute (parameters (identifier_func) identifier_func (identifier_handler) identifier_handler (identifier_args) identifier_args (identifier_kwargs) identifier_kwargs )parameters (block (expression_statement (assignment (identifier_tracing) identifier_tracing (call (attribute (attribute (identifier_handler) identifier_handler (identifier_settings) identifier_settings )attribute (identifier_get) identifier_get )attribute (argument_list (string_'opentracing_tracing') string_'opentracing_tracing' )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (call (identifier_tracer_stack_context) identifier_tracer_stack_context (argument_list )argument_list )call )with_item )with_clause (block (if_statement (attribute (identifier_tracing) identifier_tracing (identifier__trace_all) identifier__trace_all )attribute (block (expression_statement (assignment (identifier_attrs) identifier_attrs (call (attribute (attribute (identifier_handler) identifier_handler (identifier_settings) identifier_settings )attribute (identifier_get) identifier_get )attribute (argument_list (string_'opentracing_traced_attributes') string_'opentracing_traced_attributes' (list )list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_tracing) identifier_tracing (identifier__apply_tracing) identifier__apply_tracing )attribute (argument_list (identifier_handler) identifier_handler (identifier_attrs) identifier_attrs )argument_list )call )expression_statement )block )if_statement (return_statement (call (identifier_func) identifier_func (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )with_statement )block )function_definition )module
Wrap the handler ``_execute`` method to trace incoming requests, extracting the context from the headers, if available.
(module (function_definition (function_name_noEmptyNests) function_name_noEmptyNests (parameters (identifier_node) identifier_node )parameters (block (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_node) identifier_node )argument_list )call (identifier_list) identifier_list )comparison_operator (block (for_statement (identifier_i) identifier_i (identifier_node) identifier_node (block (expression_statement (call (identifier_noEmptyNests) identifier_noEmptyNests (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement )block )for_statement )block )if_statement (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_node) identifier_node )argument_list )call (identifier_dict) identifier_dict )comparison_operator (block (for_statement (identifier_i) identifier_i (call (attribute (identifier_node) identifier_node (identifier_values) identifier_values )attribute (argument_list )argument_list )call (block (expression_statement (call (identifier_noEmptyNests) identifier_noEmptyNests (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement )block )for_statement (if_statement (comparison_operator (subscript (identifier_node) identifier_node (string_"children") string_"children" )subscript (list )list )comparison_operator (block (expression_statement (call (attribute (identifier_node) identifier_node (identifier_pop) identifier_pop )attribute (argument_list (string_"children") string_"children" )argument_list )call )expression_statement )block )if_statement )block )if_statement (return_statement (identifier_node) identifier_node )return_statement )block )function_definition )module
recursively make sure that no dictionaries inside node contain empty children lists
(module (function_definition (function_name_as_string) function_name_as_string (parameters (identifier_self) identifier_self (identifier_chars) identifier_chars (default_parameter (identifier_show_leaf) identifier_show_leaf (True) True )default_parameter (default_parameter (identifier_current_linkable) identifier_current_linkable (False) False )default_parameter (default_parameter (identifier_class_current) identifier_class_current (string_"active_link") string_"active_link" )default_parameter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier___do_menu) identifier___do_menu )attribute (argument_list (string_"as_string") string_"as_string" (identifier_show_leaf) identifier_show_leaf (identifier_current_linkable) identifier_current_linkable (identifier_class_current) identifier_class_current (identifier_chars) identifier_chars )argument_list )call )return_statement )block )function_definition )module
It returns breadcrumb as string
(module (function_definition (function_name_get_create_index_sql) function_name_get_create_index_sql (parameters (identifier_self) identifier_self (identifier_index) identifier_index (identifier_table) identifier_table )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_table) identifier_table (identifier_Table) identifier_Table )argument_list )call (block (expression_statement (assignment (identifier_table) identifier_table (call (attribute (identifier_table) identifier_table (identifier_get_quoted_name) identifier_get_quoted_name )attribute (argument_list (identifier_self) identifier_self )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_name) identifier_name (call (attribute (identifier_index) identifier_index (identifier_get_quoted_name) identifier_get_quoted_name )attribute (argument_list (identifier_self) identifier_self )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_columns) identifier_columns (call (attribute (identifier_index) identifier_index (identifier_get_quoted_columns) identifier_get_quoted_columns )attribute (argument_list (identifier_self) identifier_self )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_columns) identifier_columns )not_operator (block (raise_statement (call (identifier_DBALException) identifier_DBALException (argument_list (string_'Incomplete definition. "columns" required.') string_'Incomplete definition. "columns" required.' )argument_list )call )raise_statement )block )if_statement (if_statement (call (attribute (identifier_index) identifier_index (identifier_is_primary) identifier_is_primary )attribute (argument_list )argument_list )call (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_get_create_primary_key_sql) identifier_get_create_primary_key_sql )attribute (argument_list (identifier_index) identifier_index (identifier_table) identifier_table )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_query) identifier_query (binary_operator (string_"CREATE %sINDEX %s ON %s") string_"CREATE %sINDEX %s ON %s" (tuple (call (attribute (identifier_self) identifier_self (identifier_get_create_index_sql_flags) identifier_get_create_index_sql_flags )attribute (argument_list (identifier_index) identifier_index )argument_list )call (identifier_name) identifier_name (identifier_table) identifier_table )tuple )binary_operator )assignment )expression_statement (expression_statement (augmented_assignment (identifier_query) identifier_query (binary_operator (string_" (%s)%s") string_" (%s)%s" (tuple (call (attribute (identifier_self) identifier_self (identifier_get_index_field_declaration_list_sql) identifier_get_index_field_declaration_list_sql )attribute (argument_list (identifier_columns) identifier_columns )argument_list )call (call (attribute (identifier_self) identifier_self (identifier_get_partial_index_sql) identifier_get_partial_index_sql )attribute (argument_list (identifier_index) identifier_index )argument_list )call )tuple )binary_operator )augmented_assignment )expression_statement (return_statement (identifier_query) identifier_query )return_statement )block )function_definition )module
Returns the SQL to create an index on a table on this platform. :param index: The index :type index: Index :param table: The table :type table: Table or str :rtype: str
(module (function_definition (function_name_get_object_name) function_name_get_object_name (parameters (identifier_obj) identifier_obj )parameters (block (expression_statement (assignment (identifier_name_dispatch) identifier_name_dispatch (dictionary (pair (attribute (identifier_ast) identifier_ast (identifier_Name) identifier_Name )attribute (string_"id") string_"id" )pair (pair (attribute (identifier_ast) identifier_ast (identifier_Attribute) identifier_Attribute )attribute (string_"attr") string_"attr" )pair (pair (attribute (identifier_ast) identifier_ast (identifier_Call) identifier_Call )attribute (string_"func") string_"func" )pair (pair (attribute (identifier_ast) identifier_ast (identifier_FunctionDef) identifier_FunctionDef )attribute (string_"name") string_"name" )pair (pair (attribute (identifier_ast) identifier_ast (identifier_ClassDef) identifier_ClassDef )attribute (string_"name") string_"name" )pair (pair (attribute (identifier_ast) identifier_ast (identifier_Subscript) identifier_Subscript )attribute (string_"value") string_"value" )pair )dictionary )assignment )expression_statement (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_ast) identifier_ast (string_"arg") string_"arg" )argument_list )call (block (expression_statement (assignment (subscript (identifier_name_dispatch) identifier_name_dispatch (attribute (identifier_ast) identifier_ast (identifier_arg) identifier_arg )attribute )subscript (string_"arg") string_"arg" )assignment )expression_statement )block )if_statement (while_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_obj) identifier_obj (identifier_str) identifier_str )argument_list )call )not_operator (block (assert_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_obj) identifier_obj )argument_list )call (identifier_name_dispatch) identifier_name_dispatch )comparison_operator )assert_statement (expression_statement (assignment (identifier_obj) identifier_obj (call (identifier_getattr) identifier_getattr (argument_list (identifier_obj) identifier_obj (subscript (identifier_name_dispatch) identifier_name_dispatch (call (identifier_type) identifier_type (argument_list (identifier_obj) identifier_obj )argument_list )call )subscript )argument_list )call )assignment )expression_statement )block )while_statement (return_statement (identifier_obj) identifier_obj )return_statement )block )function_definition )module
Return the name of a given object
(module (function_definition (function_name_get_curricula_by_term) function_name_get_curricula_by_term (parameters (identifier_term) identifier_term (default_parameter (identifier_view_unpublished) identifier_view_unpublished (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_view_unpublished) identifier_view_unpublished (conditional_expression (string_"true") string_"true" (identifier_view_unpublished) identifier_view_unpublished (string_"false") string_"false" )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_url) identifier_url (call (attribute (string_"{}?{}") string_"{}?{}" (identifier_format) identifier_format )attribute (argument_list (identifier_curriculum_search_url_prefix) identifier_curriculum_search_url_prefix (call (identifier_urlencode) identifier_urlencode (argument_list (list (tuple (string_"quarter") string_"quarter" (call (attribute (attribute (identifier_term) identifier_term (identifier_quarter) identifier_quarter )attribute (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )tuple (tuple (string_"year") string_"year" (attribute (identifier_term) identifier_term (identifier_year) identifier_year )attribute )tuple (tuple (string_"view_unpublished") string_"view_unpublished" (identifier_view_unpublished) identifier_view_unpublished )tuple )list )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (identifier__json_to_curricula) identifier__json_to_curricula (argument_list (call (identifier_get_resource) identifier_get_resource (argument_list (identifier_url) identifier_url )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Returns a list of restclients.Curriculum models, for the passed Term model.
(module (function_definition (function_name_add_adjust) function_name_add_adjust (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_prehashed) identifier_prehashed (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_subtrees) identifier_subtrees (call (attribute (identifier_self) identifier_self (identifier__get_whole_subtrees) identifier__get_whole_subtrees )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_new_node) identifier_new_node (call (identifier_Node) identifier_Node (argument_list (identifier_data) identifier_data (keyword_argument (identifier_prehashed) identifier_prehashed (identifier_prehashed) identifier_prehashed )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_leaves) identifier_leaves )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_new_node) identifier_new_node )argument_list )call )expression_statement (for_statement (identifier_node) identifier_node (call (identifier_reversed) identifier_reversed (argument_list (identifier_subtrees) identifier_subtrees )argument_list )call (block (expression_statement (assignment (identifier_new_parent) identifier_new_parent (call (identifier_Node) identifier_Node (argument_list (binary_operator (attribute (identifier_node) identifier_node (identifier_val) identifier_val )attribute (attribute (identifier_new_node) identifier_new_node (identifier_val) identifier_val )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_node) identifier_node (identifier_p) identifier_p )attribute (attribute (identifier_new_node) identifier_new_node (identifier_p) identifier_p )attribute )pattern_list (expression_list (identifier_new_parent) identifier_new_parent (identifier_new_parent) identifier_new_parent )expression_list )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_new_parent) identifier_new_parent (identifier_l) identifier_l )attribute (attribute (identifier_new_parent) identifier_new_parent (identifier_r) identifier_r )attribute )pattern_list (expression_list (identifier_node) identifier_node (identifier_new_node) identifier_new_node )expression_list )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_node) identifier_node (identifier_sib) identifier_sib )attribute (attribute (identifier_new_node) identifier_new_node (identifier_sib) identifier_sib )attribute )pattern_list (expression_list (identifier_new_node) identifier_new_node (identifier_node) identifier_node )expression_list )assignment )expression_statement (expression_statement (assignment (pattern_list (attribute (identifier_node) identifier_node (identifier_side) identifier_side )attribute (attribute (identifier_new_node) identifier_new_node (identifier_side) identifier_side )attribute )pattern_list (expression_list (string_'L') string_'L' (string_'R') string_'R' )expression_list )assignment )expression_statement (expression_statement (assignment (identifier_new_node) identifier_new_node (attribute (identifier_new_node) identifier_new_node (identifier_p) identifier_p )attribute )assignment )expression_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_root) identifier_root )attribute (identifier_new_node) identifier_new_node )assignment )expression_statement )block )function_definition )module
Add a new leaf, and adjust the tree, without rebuilding the whole thing.
(module (function_definition (function_name_get_application_parser) function_name_get_application_parser (parameters (identifier_commands) identifier_commands )parameters (block (expression_statement (assignment (identifier_parser) identifier_parser (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentParser) identifier_ArgumentParser )attribute (argument_list (keyword_argument (identifier_description) identifier_description (attribute (identifier_configuration) identifier_configuration (identifier_APPLICATION_DESCRIPTION) identifier_APPLICATION_DESCRIPTION )attribute )keyword_argument (keyword_argument (identifier_usage) identifier_usage (binary_operator (attribute (identifier_configuration) identifier_configuration (identifier_EXECUTABLE_NAME) identifier_EXECUTABLE_NAME )attribute (string_' [sub-command] [options]') string_' [sub-command] [options]' )binary_operator )keyword_argument (keyword_argument (identifier_add_help) identifier_add_help (False) False )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'sub_command') string_'sub_command' (keyword_argument (identifier_choices) identifier_choices (list_comprehension (identifier_name) identifier_name (for_in_clause (identifier_name) identifier_name (identifier_commands) identifier_commands )for_in_clause )list_comprehension )keyword_argument (keyword_argument (identifier_nargs) identifier_nargs (string_"?") string_"?" )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"-h") string_"-h" (string_"--help") string_"--help" (keyword_argument (identifier_action) identifier_action (string_"store_true") string_"store_true" )keyword_argument )argument_list )call )expression_statement (return_statement (identifier_parser) identifier_parser )return_statement )block )function_definition )module
Builds an argument parser for the application's CLI. :param commands: :return: ArgumentParser
(module (function_definition (function_name_create_time_subscription) function_name_create_time_subscription (parameters (identifier_self) identifier_self (identifier_instance) identifier_instance (default_parameter (identifier_on_data) identifier_on_data (None) None )default_parameter (default_parameter (identifier_timeout) identifier_timeout (integer_60) integer_60 )default_parameter )parameters (block (expression_statement (assignment (identifier_manager) identifier_manager (call (identifier_WebSocketSubscriptionManager) identifier_WebSocketSubscriptionManager (argument_list (identifier_self) identifier_self (keyword_argument (identifier_resource) identifier_resource (string_'time') string_'time' )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_subscription) identifier_subscription (call (identifier_TimeSubscription) identifier_TimeSubscription (argument_list (identifier_manager) identifier_manager )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_wrapped_callback) identifier_wrapped_callback (call (attribute (identifier_functools) identifier_functools (identifier_partial) identifier_partial )attribute (argument_list (identifier__wrap_callback_parse_time_info) identifier__wrap_callback_parse_time_info (identifier_subscription) identifier_subscription (identifier_on_data) identifier_on_data )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_manager) identifier_manager (identifier_open) identifier_open )attribute (argument_list (identifier_wrapped_callback) identifier_wrapped_callback (identifier_instance) identifier_instance )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_subscription) identifier_subscription (identifier_reply) identifier_reply )attribute (argument_list (keyword_argument (identifier_timeout) identifier_timeout (identifier_timeout) identifier_timeout )keyword_argument )argument_list )call )expression_statement (return_statement (identifier_subscription) identifier_subscription )return_statement )block )function_definition )module
Create a new subscription for receiving time updates of an instance. Time updates are emitted at 1Hz. This method returns a future, then returns immediately. Stop the subscription by canceling the future. :param str instance: A Yamcs instance name :param on_data: Function that gets called with :class:`~datetime.datetime` updates. :type on_data: Optional[Callable[~datetime.datetime]) :param timeout: The amount of seconds to wait for the request to complete. :type timeout: Optional[float] :return: Future that can be used to manage the background websocket subscription. :rtype: .TimeSubscription
(module (function_definition (function_name_create_client_with_lazy_load) function_name_create_client_with_lazy_load (parameters (identifier_api_key) identifier_api_key (default_parameter (identifier_cache_time_to_live_seconds) identifier_cache_time_to_live_seconds (integer_60) integer_60 )default_parameter (default_parameter (identifier_config_cache_class) identifier_config_cache_class (None) None )default_parameter (default_parameter (identifier_base_url) identifier_base_url (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_api_key) identifier_api_key (None) None )comparison_operator (block (raise_statement (call (identifier_ConfigCatClientException) identifier_ConfigCatClientException (argument_list (string_'API Key is required.') string_'API Key is required.' )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (identifier_cache_time_to_live_seconds) identifier_cache_time_to_live_seconds (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_cache_time_to_live_seconds) identifier_cache_time_to_live_seconds (integer_1) integer_1 )assignment )expression_statement )block )if_statement (return_statement (call (identifier_ConfigCatClient) identifier_ConfigCatClient (argument_list (identifier_api_key) identifier_api_key (integer_0) integer_0 (integer_0) integer_0 (None) None (identifier_cache_time_to_live_seconds) identifier_cache_time_to_live_seconds (identifier_config_cache_class) identifier_config_cache_class (identifier_base_url) identifier_base_url )argument_list )call )return_statement )block )function_definition )module
Create an instance of ConfigCatClient and setup Lazy Load mode with custom options :param api_key: ConfigCat ApiKey to access your configuration. :param cache_time_to_live_seconds: The cache TTL. :param config_cache_class: If you want to use custom caching instead of the client's default InMemoryConfigCache, You can provide an implementation of ConfigCache. :param base_url: You can set a base_url if you want to use a proxy server between your application and ConfigCat
(module (function_definition (function_name_set_defaults) function_name_set_defaults (parameters (identifier_config) identifier_config (identifier_cluster_name) identifier_cluster_name )parameters (block (expression_statement (call (attribute (subscript (identifier_config) identifier_config (string_'postgresql') string_'postgresql' )subscript (identifier_setdefault) identifier_setdefault )attribute (argument_list (string_'name') string_'name' (identifier_cluster_name) identifier_cluster_name )argument_list )call )expression_statement (expression_statement (call (attribute (subscript (identifier_config) identifier_config (string_'postgresql') string_'postgresql' )subscript (identifier_setdefault) identifier_setdefault )attribute (argument_list (string_'scope') string_'scope' (identifier_cluster_name) identifier_cluster_name )argument_list )call )expression_statement (expression_statement (call (attribute (subscript (identifier_config) identifier_config (string_'postgresql') string_'postgresql' )subscript (identifier_setdefault) identifier_setdefault )attribute (argument_list (string_'listen') string_'listen' (string_'127.0.0.1') string_'127.0.0.1' )argument_list )call )expression_statement (expression_statement (assignment (subscript (subscript (identifier_config) identifier_config (string_'postgresql') string_'postgresql' )subscript (string_'authentication') string_'authentication' )subscript (dictionary (pair (string_'replication') string_'replication' (None) None )pair )dictionary )assignment )expression_statement (expression_statement (assignment (subscript (subscript (identifier_config) identifier_config (string_'restapi') string_'restapi' )subscript (string_'listen') string_'listen' )subscript (boolean_operator (boolean_operator (comparison_operator (string_':') string_':' (subscript (subscript (identifier_config) identifier_config (string_'restapi') string_'restapi' )subscript (string_'listen') string_'listen' )subscript )comparison_operator (subscript (subscript (identifier_config) identifier_config (string_'restapi') string_'restapi' )subscript (string_'listen') string_'listen' )subscript )boolean_operator (string_'127.0.0.1:8008') string_'127.0.0.1:8008' )boolean_operator )assignment )expression_statement )block )function_definition )module
fill-in some basic configuration parameters if config file is not set
(module (function_definition (function_name_get_function_for_cognito_trigger) function_name_get_function_for_cognito_trigger (parameters (identifier_self) identifier_self (identifier_trigger) identifier_trigger )parameters (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"get_function_for_cognito_trigger") string_"get_function_for_cognito_trigger" (attribute (attribute (identifier_self) identifier_self (identifier_settings) identifier_settings )attribute (identifier_COGNITO_TRIGGER_MAPPING) identifier_COGNITO_TRIGGER_MAPPING )attribute (identifier_trigger) identifier_trigger (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_settings) identifier_settings )attribute (identifier_COGNITO_TRIGGER_MAPPING) identifier_COGNITO_TRIGGER_MAPPING )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_trigger) identifier_trigger )argument_list )call )argument_list )call )expression_statement (return_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_settings) identifier_settings )attribute (identifier_COGNITO_TRIGGER_MAPPING) identifier_COGNITO_TRIGGER_MAPPING )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_trigger) identifier_trigger )argument_list )call )return_statement )block )function_definition )module
Get the associated function to execute for a cognito trigger
(module (function_definition (function_name_save_params) function_name_save_params (parameters (typed_parameter (identifier_model_name) identifier_model_name (type (identifier_str) identifier_str )type )typed_parameter )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (binary_operator (identifier_model_name) identifier_model_name (string_'.params') string_'.params' )binary_operator (string_'w') string_'w' )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_json) identifier_json (identifier_dump) identifier_dump )attribute (argument_list (attribute (identifier_pr) identifier_pr (identifier___dict__) identifier___dict__ )attribute (identifier_f) identifier_f )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Save current global listener params to a file
(module (function_definition (function_name_remove_accounts_from_institute) function_name_remove_accounts_from_institute (parameters (identifier_accounts_query) identifier_accounts_query (identifier_institute) identifier_institute )parameters (block (expression_statement (assignment (identifier_query) identifier_query (call (attribute (identifier_accounts_query) identifier_accounts_query (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_date_deleted__isnull) identifier_date_deleted__isnull (True) True )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_account) identifier_account (identifier_query) identifier_query (block (expression_statement (call (identifier_remove_account_from_institute) identifier_remove_account_from_institute (argument_list (identifier_account) identifier_account (identifier_institute) identifier_institute )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Remove accounts from institute.
(module (function_definition (function_name_clear_data) function_name_clear_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier___header) identifier___header )attribute (identifier_title) identifier_title )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier___header) identifier___header )attribute (identifier_subtitle) identifier_subtitle )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier___prologue) identifier___prologue )attribute (identifier_text) identifier_text )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier___epilogue) identifier___epilogue )attribute (identifier_text) identifier_text )attribute (None) None )assignment )expression_statement (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier___items_section) identifier___items_section )attribute (identifier_items) identifier_items )attribute (None) None )assignment )expression_statement )block )function_definition )module
Clear menu data from previous menu generation.
(module (function_definition (function_name_transformFromNative) function_name_transformFromNative (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (boolean_operator (attribute (identifier_self) identifier_self (identifier_isNative) identifier_isNative )attribute (attribute (identifier_self) identifier_self (identifier_behavior) identifier_behavior )attribute )boolean_operator (attribute (attribute (identifier_self) identifier_self (identifier_behavior) identifier_behavior )attribute (identifier_hasNative) identifier_hasNative )attribute )boolean_operator (block (try_statement (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_behavior) identifier_behavior )attribute (identifier_transformFromNative) identifier_transformFromNative )attribute (argument_list (identifier_self) identifier_self )argument_list )call )return_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (assignment (identifier_lineNumber) identifier_lineNumber (call (identifier_getattr) identifier_getattr (argument_list (identifier_self) identifier_self (string_'lineNumber') string_'lineNumber' (None) None )argument_list )call )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_e) identifier_e (identifier_NativeError) identifier_NativeError )argument_list )call (block (if_statement (comparison_operator (identifier_lineNumber) identifier_lineNumber (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_e) identifier_e (identifier_lineNumber) identifier_lineNumber )attribute (identifier_lineNumber) identifier_lineNumber )assignment )expression_statement )block )if_statement (raise_statement )raise_statement )block (else_clause (block (expression_statement (assignment (identifier_msg) identifier_msg (string_"In transformFromNative, unhandled exception on line %s %s: %s") string_"In transformFromNative, unhandled exception on line %s %s: %s" )assignment )expression_statement (expression_statement (assignment (identifier_msg) identifier_msg (binary_operator (identifier_msg) identifier_msg (tuple (identifier_lineNumber) identifier_lineNumber (subscript (call (attribute (identifier_sys) identifier_sys (identifier_exc_info) identifier_exc_info )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript (subscript (call (attribute (identifier_sys) identifier_sys (identifier_exc_info) identifier_exc_info )attribute (argument_list )argument_list )call (integer_1) integer_1 )subscript )tuple )binary_operator )assignment )expression_statement (raise_statement (call (identifier_NativeError) identifier_NativeError (argument_list (identifier_msg) identifier_msg (identifier_lineNumber) identifier_lineNumber )argument_list )call )raise_statement )block )else_clause )if_statement )block )except_clause )try_statement )block (else_clause (block (return_statement (identifier_self) identifier_self )return_statement )block )else_clause )if_statement )block )function_definition )module
Return self transformed into a ContentLine or Component if needed. May have side effects. If it does, transformFromNative and transformToNative MUST have perfectly inverse side effects. Allowing such side effects is convenient for objects whose transformations only change a few attributes. Note that it isn't always possible for transformFromNative to be a perfect inverse of transformToNative, in such cases transformFromNative should return a new object, not self after modifications.
(module (function_definition (function_name_move_roles_to_base_role_config_group) function_name_move_roles_to_base_role_config_group (parameters (identifier_resource_root) identifier_resource_root (identifier_service_name) identifier_service_name (identifier_role_names) identifier_role_names (default_parameter (identifier_cluster_name) identifier_cluster_name (string_"default") string_"default" )default_parameter )parameters (block (return_statement (call (identifier_call) identifier_call (argument_list (attribute (identifier_resource_root) identifier_resource_root (identifier_put) identifier_put )attribute (binary_operator (call (identifier__get_role_config_groups_path) identifier__get_role_config_groups_path (argument_list (identifier_cluster_name) identifier_cluster_name (identifier_service_name) identifier_service_name )argument_list )call (string_'/roles') string_'/roles' )binary_operator (identifier_ApiRole) identifier_ApiRole (True) True (keyword_argument (identifier_data) identifier_data (identifier_role_names) identifier_role_names )keyword_argument (keyword_argument (identifier_api_version) identifier_api_version (integer_3) integer_3 )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Moves roles to the base role config group. The roles can be moved from any role config group belonging to the same service. The role type of the roles may vary. Each role will be moved to its corresponding base group depending on its role type. @param role_names: The names of the roles to move. @return: List of roles which have been moved successfully. @since: API v3
(module (function_definition (function_name__collapse_subitems) function_name__collapse_subitems (parameters (identifier_base) identifier_base (identifier_items) identifier_items )parameters (block (expression_statement (assignment (identifier_out) identifier_out (list )list )assignment )expression_statement (for_statement (identifier_d) identifier_d (identifier_items) identifier_items (block (expression_statement (assignment (identifier_newd) identifier_newd (call (identifier__diff_dict) identifier__diff_dict (argument_list (identifier_base) identifier_base (identifier_d) identifier_d )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_out) identifier_out (identifier_append) identifier_append )attribute (argument_list (identifier_newd) identifier_newd )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Collapse full data representations relative to a standard base.
(module (function_definition (function_name_passwordReset1to2) function_name_passwordReset1to2 (parameters (identifier_old) identifier_old )parameters (block (expression_statement (assignment (identifier_new) identifier_new (call (attribute (identifier_old) identifier_old (identifier_upgradeVersion) identifier_upgradeVersion )attribute (argument_list (attribute (identifier_old) identifier_old (identifier_typeName) identifier_typeName )attribute (integer_1) integer_1 (integer_2) integer_2 (keyword_argument (identifier_installedOn) identifier_installedOn (None) None )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_iface) identifier_iface (call (attribute (attribute (identifier_new) identifier_new (identifier_store) identifier_store )attribute (identifier_interfacesFor) identifier_interfacesFor )attribute (argument_list (identifier_new) identifier_new )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_new) identifier_new (identifier_store) identifier_store )attribute (identifier_powerDown) identifier_powerDown )attribute (argument_list (identifier_new) identifier_new (identifier_iface) identifier_iface )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_new) identifier_new (identifier_deleteFromStore) identifier_deleteFromStore )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Power down and delete the item
(module (function_definition (function_name__emit_message) function_name__emit_message (parameters (identifier_cls) identifier_cls (identifier_message) identifier_message )parameters (block (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_write) identifier_write )attribute (argument_list (identifier_message) identifier_message )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute (identifier_flush) identifier_flush )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Print a message to STDOUT.
(module (function_definition (function_name_save_source) function_name_save_source (parameters (identifier_driver) identifier_driver (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_source) identifier_source (attribute (identifier_driver) identifier_driver (identifier_page_source) identifier_page_source )attribute )assignment )expression_statement (expression_statement (assignment (identifier_file_name) identifier_file_name (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_get) identifier_get )attribute (argument_list (string_'SAVED_SOURCE_DIR') string_'SAVED_SOURCE_DIR' )argument_list )call (call (attribute (string_'{name}.html') string_'{name}.html' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (try_statement (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_file_name) identifier_file_name (string_'wb') string_'wb' )argument_list )call (as_pattern_target (identifier_output_file) identifier_output_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_output_file) identifier_output_file (identifier_write) identifier_write )attribute (argument_list (call (attribute (identifier_source) identifier_source (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )argument_list )call )expression_statement )block )with_statement )block (except_clause (identifier_Exception) identifier_Exception (block (expression_statement (assignment (identifier_msg) identifier_msg (call (attribute (string_u"Could not save the browser page source to {}.") string_u"Could not save the browser page source to {}." (identifier_format) identifier_format )attribute (argument_list (identifier_file_name) identifier_file_name )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_LOGGER) identifier_LOGGER (identifier_warning) identifier_warning )attribute (argument_list (identifier_msg) identifier_msg )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
Save the rendered HTML of the browser. The location of the source can be configured by the environment variable `SAVED_SOURCE_DIR`. If not set, this defaults to the current working directory. Args: driver (selenium.webdriver): The Selenium-controlled browser. name (str): A name to use in the output file name. Note that ".html" is appended automatically Returns: None
(module (function_definition (function_name__get_acquisition) function_name__get_acquisition (parameters (identifier_self) identifier_self (identifier_model) identifier_model (identifier_space) identifier_space )parameters (block (import_from_statement (dotted_name (identifier_copy) identifier_copy )dotted_name (dotted_name (identifier_deepcopy) identifier_deepcopy )dotted_name )import_from_statement (expression_statement (assignment (identifier_acqOpt_config) identifier_acqOpt_config (call (identifier_deepcopy) identifier_deepcopy (argument_list (subscript (subscript (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (string_'acquisition') string_'acquisition' )subscript (string_'optimizer') string_'optimizer' )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_acqOpt_name) identifier_acqOpt_name (subscript (identifier_acqOpt_config) identifier_acqOpt_config (string_'name') string_'name' )subscript )assignment )expression_statement (delete_statement (subscript (identifier_acqOpt_config) identifier_acqOpt_config (string_'name') string_'name' )subscript )delete_statement (import_from_statement (relative_import (import_prefix )import_prefix (dotted_name (identifier_optimization) identifier_optimization )dotted_name )relative_import (dotted_name (identifier_AcquisitionOptimizer) identifier_AcquisitionOptimizer )dotted_name )import_from_statement (expression_statement (assignment (identifier_acqOpt) identifier_acqOpt (call (identifier_AcquisitionOptimizer) identifier_AcquisitionOptimizer (argument_list (identifier_space) identifier_space (identifier_acqOpt_name) identifier_acqOpt_name (dictionary_splat (identifier_acqOpt_config) identifier_acqOpt_config )dictionary_splat )argument_list )call )assignment )expression_statement (import_from_statement (relative_import (import_prefix )import_prefix (dotted_name (identifier_acquisitions) identifier_acquisitions )dotted_name )relative_import (dotted_name (identifier_select_acquisition) identifier_select_acquisition )dotted_name )import_from_statement (return_statement (call (attribute (call (identifier_select_acquisition) identifier_select_acquisition (argument_list (subscript (subscript (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (string_'acquisition') string_'acquisition' )subscript (string_'type') string_'type' )subscript )argument_list )call (identifier_fromConfig) identifier_fromConfig )attribute (argument_list (identifier_model) identifier_model (identifier_space) identifier_space (identifier_acqOpt) identifier_acqOpt (None) None (subscript (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (string_'acquisition') string_'acquisition' )subscript )argument_list )call )return_statement )block )function_definition )module
Imports the acquisition
(module (function_definition (function_name_heatmap) function_name_heatmap (parameters (identifier_z) identifier_z (default_parameter (identifier_x) identifier_x (None) None )default_parameter (default_parameter (identifier_y) identifier_y (None) None )default_parameter (default_parameter (identifier_colorscale) identifier_colorscale (string_'Viridis') string_'Viridis' )default_parameter )parameters (block (expression_statement (assignment (identifier_z) identifier_z (call (attribute (identifier_np) identifier_np (identifier_atleast_1d) identifier_atleast_1d )attribute (argument_list (identifier_z) identifier_z )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (list (call (attribute (identifier_go) identifier_go (identifier_Heatmap) identifier_Heatmap )attribute (argument_list (keyword_argument (identifier_z) identifier_z (identifier_z) identifier_z )keyword_argument (keyword_argument (identifier_x) identifier_x (identifier_x) identifier_x )keyword_argument (keyword_argument (identifier_y) identifier_y (identifier_y) identifier_y )keyword_argument (keyword_argument (identifier_colorscale) identifier_colorscale (identifier_colorscale) identifier_colorscale )keyword_argument )argument_list )call )list )assignment )expression_statement (return_statement (call (identifier_Chart) identifier_Chart (argument_list (keyword_argument (identifier_data) identifier_data (identifier_data) identifier_data )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Create a heatmap. Parameters ---------- z : TODO x : TODO, optional y : TODO, optional colorscale : TODO, optional Returns ------- Chart
(module (function_definition (function_name__loadable_get_) function_name__loadable_get_ (parameters (identifier_name) identifier_name (identifier_self) identifier_self )parameters (block (expression_statement (string_"Used to lazily-evaluate & memoize an attribute.") string_"Used to lazily-evaluate & memoize an attribute." )expression_statement (expression_statement (assignment (identifier_func) identifier_func (call (identifier_getattr) identifier_getattr (argument_list (attribute (identifier_self) identifier_self (identifier__attr_func_) identifier__attr_func_ )attribute (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (call (identifier_func) identifier_func (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (attribute (identifier_self) identifier_self (identifier__attr_data_) identifier__attr_data_ )attribute (identifier_name) identifier_name (identifier_ret) identifier_ret )argument_list )call )expression_statement (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (call (identifier_type) identifier_type (argument_list (identifier_self) identifier_self )argument_list )call (identifier_name) identifier_name (call (identifier_property) identifier_property (argument_list (call (attribute (identifier_functools) identifier_functools (identifier_partial) identifier_partial )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__simple_get_) identifier__simple_get_ )attribute (identifier_name) identifier_name )argument_list )call )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_delattr) identifier_delattr (argument_list (attribute (identifier_self) identifier_self (identifier__attr_func_) identifier__attr_func_ )attribute (identifier_name) identifier_name )argument_list )call )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Used to lazily-evaluate & memoize an attribute.
(module (function_definition (function_name_do_PUT) function_name_do_PUT (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_do_initial_operations) identifier_do_initial_operations )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_payload) identifier_payload (call (attribute (attribute (identifier_self) identifier_self (identifier_coap_uri) identifier_coap_uri )attribute (identifier_get_payload) identifier_get_payload )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_payload) identifier_payload (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_error) identifier_error )attribute (argument_list (string_"BAD PUT REQUEST") string_"BAD PUT REQUEST" )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_send_error) identifier_send_error )attribute (argument_list (identifier_BAD_REQUEST) identifier_BAD_REQUEST )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (identifier_payload) identifier_payload )argument_list )call )expression_statement (expression_statement (assignment (identifier_coap_response) identifier_coap_response (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_put) identifier_put )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_coap_uri) identifier_coap_uri )attribute (identifier_path) identifier_path )attribute (identifier_payload) identifier_payload )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_stop) identifier_stop )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"Server response: %s") string_"Server response: %s" (call (attribute (identifier_coap_response) identifier_coap_response (identifier_pretty_print) identifier_pretty_print )attribute (argument_list )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_set_http_response) identifier_set_http_response )attribute (argument_list (identifier_coap_response) identifier_coap_response )argument_list )call )expression_statement )block )function_definition )module
Perform a PUT request
(module (function_definition (function_name_compute_taxes) function_name_compute_taxes (parameters (identifier_self) identifier_self (default_parameter (identifier_precision) identifier_precision (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_base) identifier_base (binary_operator (attribute (identifier_self) identifier_self (identifier_gross) identifier_gross )attribute (attribute (identifier_self) identifier_self (identifier_total_discounts) identifier_total_discounts )attribute )binary_operator )assignment )expression_statement (return_statement (call (identifier_quantize) identifier_quantize (argument_list (call (identifier_sum) identifier_sum (argument_list (list_comprehension (call (attribute (identifier_t) identifier_t (identifier_compute) identifier_compute )attribute (argument_list (identifier_base) identifier_base (identifier_precision) identifier_precision )argument_list )call (for_in_clause (identifier_t) identifier_t (attribute (identifier_self) identifier_self (identifier___taxes) identifier___taxes )attribute )for_in_clause )list_comprehension )argument_list )call (identifier_precision) identifier_precision )argument_list )call )return_statement )block )function_definition )module
Returns the total amount of taxes for this line with a specific number of decimals @param precision: int Number of decimal places @return: Decimal
(module (function_definition (function_name_change) function_name_change (parameters (identifier_img) identifier_img )parameters (block (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_img) identifier_img )argument_list )call )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_desktop) identifier_desktop (call (identifier_get_desktop_env) identifier_get_desktop_env (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_OS) identifier_OS (string_"Darwin") string_"Darwin" )comparison_operator (block (expression_statement (call (identifier_set_mac_wallpaper) identifier_set_mac_wallpaper (argument_list (identifier_img) identifier_img )argument_list )call )expression_statement )block (elif_clause (comparison_operator (identifier_OS) identifier_OS (string_"Windows") string_"Windows" )comparison_operator (block (expression_statement (call (identifier_set_win_wallpaper) identifier_set_win_wallpaper (argument_list (identifier_img) identifier_img )argument_list )call )expression_statement )block )elif_clause (else_clause (block (expression_statement (call (identifier_set_desktop_wallpaper) identifier_set_desktop_wallpaper (argument_list (identifier_desktop) identifier_desktop (identifier_img) identifier_img )argument_list )call )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_info) identifier_info )attribute (argument_list (string_"Set the new wallpaper.") string_"Set the new wallpaper." )argument_list )call )expression_statement )block )function_definition )module
Set the wallpaper.
(module (function_definition (function_name_codes_match_any) function_name_codes_match_any (parameters (identifier_self) identifier_self (identifier_codes) identifier_codes )parameters (block (for_statement (identifier_selector) identifier_selector (attribute (identifier_self) identifier_self (identifier_code_selectors) identifier_code_selectors )attribute (block (if_statement (comparison_operator (attribute (identifier_selector) identifier_selector (identifier_code) identifier_code )attribute (identifier_codes) identifier_codes )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement )block )for_statement (return_statement (False) False )return_statement )block )function_definition )module
Match any code.
(module (function_definition (function_name_hash_pair) function_name_hash_pair (parameters (typed_parameter (identifier_first) identifier_first (type (identifier_Keccak256) identifier_Keccak256 )type )typed_parameter (typed_parameter (identifier_second) identifier_second (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (identifier_Keccak256) identifier_Keccak256 )type )type_parameter )generic_type )type )typed_parameter )parameters (type (identifier_Keccak256) identifier_Keccak256 )type (block (assert_statement (comparison_operator (identifier_first) identifier_first (None) None )comparison_operator )assert_statement (if_statement (comparison_operator (identifier_second) identifier_second (None) None )comparison_operator (block (return_statement (identifier_first) identifier_first )return_statement )block )if_statement (if_statement (comparison_operator (identifier_first) identifier_first (identifier_second) identifier_second )comparison_operator (block (return_statement (call (identifier_sha3) identifier_sha3 (argument_list (binary_operator (identifier_second) identifier_second (identifier_first) identifier_first )binary_operator )argument_list )call )return_statement )block )if_statement (return_statement (call (identifier_sha3) identifier_sha3 (argument_list (binary_operator (identifier_first) identifier_first (identifier_second) identifier_second )binary_operator )argument_list )call )return_statement )block )function_definition )module
Computes the keccak hash of the elements ordered topologically. Since a merkle proof will not include all the elements, but only the path starting from the leaves up to the root, the order of the elements is not known by the proof checker. The topological order is used as a deterministic way of ordering the elements making sure the smart contract verification and the python code are compatible.
(module (function_definition (function_name_handle) function_name_handle (parameters (identifier_cls) identifier_cls (identifier_value) identifier_value (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_value) identifier_value (call (identifier_read_value_from_path) identifier_read_value_from_path (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_region) identifier_region (None) None )assignment )expression_statement (if_statement (comparison_operator (string_"@") string_"@" (identifier_value) identifier_value )comparison_operator (block (expression_statement (assignment (pattern_list (identifier_region) identifier_region (identifier_value) identifier_value )pattern_list (call (attribute (identifier_value) identifier_value (identifier_split) identifier_split )attribute (argument_list (string_"@") string_"@" (integer_1) integer_1 )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_kms) identifier_kms (call (attribute (call (identifier_get_session) identifier_get_session (argument_list (identifier_region) identifier_region )argument_list )call (identifier_client) identifier_client )attribute (argument_list (string_'kms') string_'kms' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (call (attribute (identifier_value) identifier_value (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_decoded) identifier_decoded (call (attribute (identifier_codecs) identifier_codecs (identifier_decode) identifier_decode )attribute (argument_list (identifier_value) identifier_value (string_'base64') string_'base64' )argument_list )call )assignment )expression_statement (return_statement (subscript (call (attribute (identifier_kms) identifier_kms (identifier_decrypt) identifier_decrypt )attribute (argument_list (keyword_argument (identifier_CiphertextBlob) identifier_CiphertextBlob (identifier_decoded) identifier_decoded )keyword_argument )argument_list )call (string_"Plaintext") string_"Plaintext" )subscript )return_statement )block )function_definition )module
Decrypt the specified value with a master key in KMS. kmssimple field types should be in the following format: [<region>@]<base64 encrypted value> Note: The region is optional, and defaults to the environment's `AWS_DEFAULT_REGION` if not specified. For example: # We use the aws cli to get the encrypted value for the string # "PASSWORD" using the master key called "myStackerKey" in # us-east-1 $ aws --region us-east-1 kms encrypt --key-id alias/myStackerKey \ --plaintext "PASSWORD" --output text --query CiphertextBlob CiD6bC8t2Y<...encrypted blob...> # In stacker we would reference the encrypted value like: conf_key: ${kms us-east-1@CiD6bC8t2Y<...encrypted blob...>} You can optionally store the encrypted value in a file, ie: kms_value.txt us-east-1@CiD6bC8t2Y<...encrypted blob...> and reference it within stacker (NOTE: the path should be relative to the stacker config file): conf_key: ${kms file://kms_value.txt} # Both of the above would resolve to conf_key: PASSWORD
(module (function_definition (function_name_load_config) function_name_load_config (parameters (identifier_data) identifier_data (list_splat_pattern (identifier_models) identifier_models )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_models) identifier_models (identifier_tuple) identifier_tuple )argument_list )call (call (identifier_isinstance) identifier_isinstance (argument_list (subscript (identifier_models) identifier_models (integer_0) integer_0 )subscript (identifier_list) identifier_list )argument_list )call )boolean_operator (block (expression_statement (assignment (identifier_models) identifier_models (subscript (identifier_models) identifier_models (integer_0) integer_0 )subscript )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_config) identifier_config (call (identifier_get_config) identifier_get_config (argument_list (identifier_data) identifier_data (list_splat (identifier_models) identifier_models )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_test) identifier_test (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_'test') string_'test' (False) False )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_debug) identifier_debug (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_'debug') string_'debug' (False) False )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_commit) identifier_commit (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_'commit') string_'commit' (True) True )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_replace) identifier_replace (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_'replace') string_'replace' (False) False )argument_list )call )assignment )expression_statement (return_statement (call (subscript (identifier___salt__) identifier___salt__ (string_'net.load_config') string_'net.load_config' )subscript (argument_list (keyword_argument (identifier_text) identifier_text (identifier_config) identifier_config )keyword_argument (keyword_argument (identifier_test) identifier_test (identifier_test) identifier_test )keyword_argument (keyword_argument (identifier_debug) identifier_debug (identifier_debug) identifier_debug )keyword_argument (keyword_argument (identifier_commit) identifier_commit (identifier_commit) identifier_commit )keyword_argument (keyword_argument (identifier_replace) identifier_replace (identifier_replace) identifier_replace )keyword_argument (keyword_argument (identifier_inherit_napalm_device) identifier_inherit_napalm_device (identifier_napalm_device) identifier_napalm_device )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Generate and load the config on the device using the OpenConfig or IETF models and device profiles. data Dictionary structured with respect to the models referenced. models A list of models to be used when generating the config. profiles: ``None`` Use certain profiles to generate the config. If not specified, will use the platform default profile(s). test: ``False`` Dry run? If set as ``True``, will apply the config, discard and return the changes. Default: ``False`` and will commit the changes on the device. commit: ``True`` Commit? Default: ``True``. debug: ``False`` Debug mode. Will insert a new key under the output dictionary, as ``loaded_config`` containing the raw configuration loaded on the device. replace: ``False`` Should replace the config with the new generate one? CLI Example: .. code-block:: bash salt '*' napalm_yang.load_config {} models.openconfig_interfaces test=True debug=True Output Example: .. code-block:: jinja device1: ---------- already_configured: False comment: diff: [edit interfaces ge-0/0/0] - mtu 1400; [edit interfaces ge-0/0/0 unit 0 family inet] - dhcp; [edit interfaces lo0] - unit 0 { - description lo0.0; - } + unit 1 { + description "new loopback"; + } loaded_config: <configuration> <interfaces replace="replace"> <interface> <name>ge-0/0/0</name> <unit> <name>0</name> <family> <inet/> </family> <description>ge-0/0/0.0</description> </unit> <description>management interface</description> </interface> <interface> <name>ge-0/0/1</name> <disable/> <description>ge-0/0/1</description> </interface> <interface> <name>ae0</name> <unit> <name>0</name> <vlan-id>100</vlan-id> <family> <inet> <address> <name>192.168.100.1/24</name> </address> <address> <name>172.20.100.1/24</name> </address> </inet> </family> <description>a description</description> </unit> <vlan-tagging/> <unit> <name>1</name> <vlan-id>1</vlan-id> <family> <inet> <address> <name>192.168.101.1/24</name> </address> </inet> </family> <disable/> <description>ae0.1</description> </unit> <vlan-tagging/> <unit> <name>2</name> <vlan-id>2</vlan-id> <family> <inet> <address> <name>192.168.102.1/24</name> </address> </inet> </family> <description>ae0.2</description> </unit> <vlan-tagging/> </interface> <interface> <name>lo0</name> <unit> <name>1</name> <description>new loopback</description> </unit> <description>lo0</description> </interface> </interfaces> </configuration> result: True
(module (function_definition (function_name_retrieve_loadbalancer_status) function_name_retrieve_loadbalancer_status (parameters (identifier_self) identifier_self (identifier_loadbalancer) identifier_loadbalancer (dictionary_splat_pattern (identifier__params) identifier__params )dictionary_splat_pattern )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_get) identifier_get )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_lbaas_loadbalancer_path_status) identifier_lbaas_loadbalancer_path_status )attribute (parenthesized_expression (identifier_loadbalancer) identifier_loadbalancer )parenthesized_expression )binary_operator (keyword_argument (identifier_params) identifier_params (identifier__params) identifier__params )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Retrieves status for a certain load balancer.
(module (function_definition (function_name_setCachedDataKey) function_name_setCachedDataKey (parameters (identifier_engineVersionHash) identifier_engineVersionHash (identifier_key) identifier_key (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_cacheFile) identifier_cacheFile (call (attribute (identifier_CachedDataManager) identifier_CachedDataManager (identifier__cacheFileForHash) identifier__cacheFileForHash )attribute (argument_list (identifier_engineVersionHash) identifier_engineVersionHash )argument_list )call )assignment )expression_statement (return_statement (call (attribute (call (identifier_JsonDataManager) identifier_JsonDataManager (argument_list (identifier_cacheFile) identifier_cacheFile )argument_list )call (identifier_setKey) identifier_setKey )attribute (argument_list (identifier_key) identifier_key (identifier_value) identifier_value )argument_list )call )return_statement )block )function_definition )module
Sets the cached data value for the specified engine version hash and dictionary key
(module (function_definition (function_name_pole_from_endpoints) function_name_pole_from_endpoints (parameters (identifier_coord1) identifier_coord1 (identifier_coord2) identifier_coord2 )parameters (block (expression_statement (assignment (identifier_c1) identifier_c1 (binary_operator (attribute (identifier_coord1) identifier_coord1 (identifier_cartesian) identifier_cartesian )attribute (call (attribute (attribute (identifier_coord1) identifier_coord1 (identifier_cartesian) identifier_cartesian )attribute (identifier_norm) identifier_norm )attribute (argument_list )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_coord2) identifier_coord2 (call (attribute (identifier_coord2) identifier_coord2 (identifier_transform_to) identifier_transform_to )attribute (argument_list (attribute (identifier_coord1) identifier_coord1 (identifier_frame) identifier_frame )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_c2) identifier_c2 (binary_operator (attribute (identifier_coord2) identifier_coord2 (identifier_cartesian) identifier_cartesian )attribute (call (attribute (attribute (identifier_coord2) identifier_coord2 (identifier_cartesian) identifier_cartesian )attribute (identifier_norm) identifier_norm )attribute (argument_list )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_pole) identifier_pole (call (attribute (identifier_c1) identifier_c1 (identifier_cross) identifier_cross )attribute (argument_list (identifier_c2) identifier_c2 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_pole) identifier_pole (binary_operator (identifier_pole) identifier_pole (call (attribute (identifier_pole) identifier_pole (identifier_norm) identifier_norm )attribute (argument_list )argument_list )call )binary_operator )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_coord1) identifier_coord1 (identifier_frame) identifier_frame )attribute (identifier_realize_frame) identifier_realize_frame )attribute (argument_list (identifier_pole) identifier_pole )argument_list )call )return_statement )block )function_definition )module
Compute the pole from a great circle that connects the two specified coordinates. This assumes a right-handed rule from coord1 to coord2: the pole is the north pole under that assumption. Parameters ---------- coord1 : `~astropy.coordinates.SkyCoord` Coordinate of one point on a great circle. coord2 : `~astropy.coordinates.SkyCoord` Coordinate of the other point on a great circle. Returns ------- pole : `~astropy.coordinates.SkyCoord` The coordinates of the pole.
(module (function_definition (function_name_write_byte) function_name_write_byte (parameters (identifier_self) identifier_self (identifier_address) identifier_address (identifier_value) identifier_value )parameters (block (expression_statement (call (attribute (identifier_LOGGER) identifier_LOGGER (identifier_debug) identifier_debug )attribute (argument_list (string_"Writing byte %s to device %s!") string_"Writing byte %s to device %s!" (call (identifier_bin) identifier_bin (argument_list (identifier_value) identifier_value )argument_list )call (call (identifier_hex) identifier_hex (argument_list (identifier_address) identifier_address )argument_list )call )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_driver) identifier_driver )attribute (identifier_write_byte) identifier_write_byte )attribute (argument_list (identifier_address) identifier_address (identifier_value) identifier_value )argument_list )call )return_statement )block )function_definition )module
Writes the byte to unaddressed register in a device.
(module (function_definition (function_name_getControllerStateWithPose) function_name_getControllerStateWithPose (parameters (identifier_self) identifier_self (identifier_eOrigin) identifier_eOrigin (identifier_unControllerDeviceIndex) identifier_unControllerDeviceIndex (default_parameter (identifier_unControllerStateSize) identifier_unControllerStateSize (call (identifier_sizeof) identifier_sizeof (argument_list (identifier_VRControllerState_t) identifier_VRControllerState_t )argument_list )call )default_parameter )parameters (block (expression_statement (assignment (identifier_fn) identifier_fn (attribute (attribute (identifier_self) identifier_self (identifier_function_table) identifier_function_table )attribute (identifier_getControllerStateWithPose) identifier_getControllerStateWithPose )attribute )assignment )expression_statement (expression_statement (assignment (identifier_pControllerState) identifier_pControllerState (call (identifier_VRControllerState_t) identifier_VRControllerState_t (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_pTrackedDevicePose) identifier_pTrackedDevicePose (call (identifier_TrackedDevicePose_t) identifier_TrackedDevicePose_t (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_fn) identifier_fn (argument_list (identifier_eOrigin) identifier_eOrigin (identifier_unControllerDeviceIndex) identifier_unControllerDeviceIndex (call (identifier_byref) identifier_byref (argument_list (identifier_pControllerState) identifier_pControllerState )argument_list )call (identifier_unControllerStateSize) identifier_unControllerStateSize (call (identifier_byref) identifier_byref (argument_list (identifier_pTrackedDevicePose) identifier_pTrackedDevicePose )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (expression_list (identifier_result) identifier_result (identifier_pControllerState) identifier_pControllerState (identifier_pTrackedDevicePose) identifier_pTrackedDevicePose )expression_list )return_statement )block )function_definition )module
fills the supplied struct with the current state of the controller and the provided pose with the pose of the controller when the controller state was updated most recently. Use this form if you need a precise controller pose as input to your application when the user presses or releases a button. This function is deprecated in favor of the new IVRInput system.
(module (function_definition (function_name_reinit_index) function_name_reinit_index (parameters (default_parameter (identifier_index) identifier_index (identifier_INDEX_NAME) identifier_INDEX_NAME )default_parameter )parameters (block (expression_statement (call (attribute (attribute (identifier_es_conn) identifier_es_conn (identifier_indices) identifier_indices )attribute (identifier_delete) identifier_delete )attribute (argument_list (identifier_index) identifier_index (keyword_argument (identifier_ignore) identifier_ignore (integer_404) integer_404 )keyword_argument )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (attribute (identifier_es_conn) identifier_es_conn (identifier_indices) identifier_indices )attribute (identifier_create) identifier_create )attribute (argument_list (identifier_index) identifier_index (call (attribute (identifier_INDEX_SETTINGS) identifier_INDEX_SETTINGS (identifier_get) identifier_get )attribute (argument_list (identifier_index) identifier_index (None) None )argument_list )call )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_TransportError) identifier_TransportError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (call (attribute (string_'Failed to created index, got: {}') string_'Failed to created index, got: {}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_e) identifier_e (identifier_error) identifier_error )attribute )argument_list )call )argument_list )call )raise_statement )block )except_clause )try_statement )block )function_definition )module
Delete and then initialise the given index name Gets settings if they exist in the mappings module. https://elasticsearch-py.readthedocs.io/en/master/api.html#elasticsearch.client.IndicesClient.create https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html https://elasticsearch-py.readthedocs.io/en/master/api.html#elasticsearch.client.IndicesClient.delete https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html
(module (function_definition (function_name_from_dict) function_name_from_dict (parameters (identifier_cls) identifier_cls (identifier_d) identifier_d )parameters (block (expression_statement (assignment (identifier_conf) identifier_conf (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_k) identifier_k (subscript (identifier_d) identifier_d (string_"config") string_"config" )subscript (block (expression_statement (assignment (identifier_v) identifier_v (subscript (subscript (identifier_d) identifier_d (string_"config") string_"config" )subscript (identifier_k) identifier_k )subscript )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_v) identifier_v (identifier_dict) identifier_dict )argument_list )call (block (expression_statement (assignment (subscript (identifier_conf) identifier_conf (call (identifier_str) identifier_str (argument_list (identifier_k) identifier_k )argument_list )call )subscript (call (call (identifier_get_dict_handler) identifier_get_dict_handler (argument_list (subscript (subscript (identifier_d) identifier_d (string_"config") string_"config" )subscript (string_"type") string_"type" )subscript )argument_list )call (argument_list (identifier_v) identifier_v )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_conf) identifier_conf (call (identifier_str) identifier_str (argument_list (identifier_k) identifier_k )argument_list )call )subscript (identifier_v) identifier_v )assignment )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (call (call (identifier_get_class) identifier_get_class (argument_list (call (identifier_str) identifier_str (argument_list (subscript (identifier_d) identifier_d (string_"class") string_"class" )subscript )argument_list )call )argument_list )call (argument_list (keyword_argument (identifier_config) identifier_config (identifier_conf) identifier_conf )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Restores its state from a dictionary, used in de-JSONification. :param d: the object dictionary :type d: dict
(module (function_definition (function_name_conforms) function_name_conforms (parameters (identifier_self) identifier_self (typed_parameter (identifier_json) identifier_json (type (identifier_str) identifier_str )type )typed_parameter (typed_default_parameter (identifier_name) identifier_name (type (identifier_str) identifier_str )type (string_"") string_"" )typed_default_parameter (typed_default_parameter (identifier_verbose) identifier_verbose (type (identifier_bool) identifier_bool )type (False) False )typed_default_parameter )parameters (type (identifier_ValidationResult) identifier_ValidationResult )type (block (expression_statement (assignment (identifier_json) identifier_json (conditional_expression (call (attribute (identifier_self) identifier_self (identifier__to_string) identifier__to_string )attribute (argument_list (identifier_json) identifier_json )argument_list )call (not_operator (call (attribute (identifier_self) identifier_self (identifier_is_json) identifier_is_json )attribute (argument_list (identifier_json) identifier_json )argument_list )call )not_operator (identifier_json) identifier_json )conditional_expression )assignment )expression_statement (try_statement (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_json_obj) identifier_json_obj )attribute (call (identifier_loads) identifier_loads (argument_list (identifier_json) identifier_json (attribute (identifier_self) identifier_self (identifier_module) identifier_module )attribute )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_ValueError) identifier_ValueError (as_pattern_target (identifier_v) identifier_v )as_pattern_target )as_pattern (block (return_statement (call (identifier_ValidationResult) identifier_ValidationResult (argument_list (False) False (call (identifier_str) identifier_str (argument_list (identifier_v) identifier_v )argument_list )call (identifier_name) identifier_name (None) None )argument_list )call )return_statement )block )except_clause )try_statement (expression_statement (assignment (identifier_logfile) identifier_logfile (call (identifier_StringIO) identifier_StringIO (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_logger) identifier_logger (call (identifier_Logger) identifier_Logger (argument_list (call (identifier_cast) identifier_cast (argument_list (identifier_TextIO) identifier_TextIO (identifier_logfile) identifier_logfile )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (identifier_is_valid) identifier_is_valid (argument_list (attribute (identifier_self) identifier_self (identifier_json_obj) identifier_json_obj )attribute (identifier_logger) identifier_logger )argument_list )call )not_operator (block (return_statement (call (identifier_ValidationResult) identifier_ValidationResult (argument_list (False) False (call (attribute (call (attribute (identifier_logfile) identifier_logfile (identifier_getvalue) identifier_getvalue )attribute (argument_list )argument_list )call (identifier_strip) identifier_strip )attribute (argument_list (string_'\n') string_'\n' )argument_list )call (identifier_name) identifier_name (None) None )argument_list )call )return_statement )block )if_statement (return_statement (call (identifier_ValidationResult) identifier_ValidationResult (argument_list (True) True (string_"") string_"" (identifier_name) identifier_name (attribute (call (identifier_type) identifier_type (argument_list (attribute (identifier_self) identifier_self (identifier_json_obj) identifier_json_obj )attribute )argument_list )call (identifier___name__) identifier___name__ )attribute )argument_list )call )return_statement )block )function_definition )module
Determine whether json conforms with the JSG specification :param json: JSON string, URI to JSON or file name with JSON :param name: Test name for ValidationResult -- printed in dx if present :param verbose: True means print the response :return: pass/fail + fail reason
(module (function_definition (function_name_get_postalcodes_around_radius) function_name_get_postalcodes_around_radius (parameters (identifier_self) identifier_self (identifier_pc) identifier_pc (identifier_radius) identifier_radius )parameters (block (expression_statement (assignment (identifier_postalcodes) identifier_postalcodes (call (attribute (identifier_self) identifier_self (identifier_get) identifier_get )attribute (argument_list (identifier_pc) identifier_pc )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_postalcodes) identifier_postalcodes (None) None )comparison_operator (block (raise_statement (call (identifier_PostalCodeNotFoundException) identifier_PostalCodeNotFoundException (argument_list (string_"Could not find postal code you're searching for.") string_"Could not find postal code you're searching for." )argument_list )call )raise_statement )block (else_clause (block (expression_statement (assignment (identifier_pc) identifier_pc (subscript (identifier_postalcodes) identifier_postalcodes (integer_0) integer_0 )subscript )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_radius) identifier_radius (call (identifier_float) identifier_float (argument_list (identifier_radius) identifier_radius )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_earth_radius) identifier_earth_radius (integer_6371) integer_6371 )assignment )expression_statement (expression_statement (assignment (identifier_dlat) identifier_dlat (binary_operator (identifier_radius) identifier_radius (identifier_earth_radius) identifier_earth_radius )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_dlon) identifier_dlon (call (identifier_asin) identifier_asin (argument_list (binary_operator (call (identifier_sin) identifier_sin (argument_list (identifier_dlat) identifier_dlat )argument_list )call (call (identifier_cos) identifier_cos (argument_list (call (identifier_radians) identifier_radians (argument_list (attribute (identifier_pc) identifier_pc (identifier_latitude) identifier_latitude )attribute )argument_list )call )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lat_delta) identifier_lat_delta (call (identifier_degrees) identifier_degrees (argument_list (identifier_dlat) identifier_dlat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lon_delta) identifier_lon_delta (call (identifier_degrees) identifier_degrees (argument_list (identifier_dlon) identifier_dlon )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_lat_delta) identifier_lat_delta (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_lat_range) identifier_lat_range (tuple (binary_operator (attribute (identifier_pc) identifier_pc (identifier_latitude) identifier_latitude )attribute (identifier_lat_delta) identifier_lat_delta )binary_operator (binary_operator (attribute (identifier_pc) identifier_pc (identifier_latitude) identifier_latitude )attribute (identifier_lat_delta) identifier_lat_delta )binary_operator )tuple )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_lat_range) identifier_lat_range (tuple (binary_operator (attribute (identifier_pc) identifier_pc (identifier_latitude) identifier_latitude )attribute (identifier_lat_delta) identifier_lat_delta )binary_operator (binary_operator (attribute (identifier_pc) identifier_pc (identifier_latitude) identifier_latitude )attribute (identifier_lat_delta) identifier_lat_delta )binary_operator )tuple )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_long_range) identifier_long_range (tuple (binary_operator (attribute (identifier_pc) identifier_pc (identifier_longitude) identifier_longitude )attribute (identifier_lat_delta) identifier_lat_delta )binary_operator (binary_operator (attribute (identifier_pc) identifier_pc (identifier_longitude) identifier_longitude )attribute (identifier_lon_delta) identifier_lon_delta )binary_operator )tuple )assignment )expression_statement (return_statement (call (identifier_format_result) identifier_format_result (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_conn_manager) identifier_conn_manager )attribute (identifier_query) identifier_query )attribute (argument_list (binary_operator (identifier_PC_RANGE_QUERY) identifier_PC_RANGE_QUERY (tuple (subscript (identifier_long_range) identifier_long_range (integer_0) integer_0 )subscript (subscript (identifier_long_range) identifier_long_range (integer_1) integer_1 )subscript (subscript (identifier_lat_range) identifier_lat_range (integer_0) integer_0 )subscript (subscript (identifier_lat_range) identifier_lat_range (integer_1) integer_1 )subscript )tuple )binary_operator )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Bounding box calculations updated from pyzipcode
(module (function_definition (function_name_find_faces) function_name_find_faces (parameters (identifier_self) identifier_self (identifier_image) identifier_image (default_parameter (identifier_draw_box) identifier_draw_box (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_frame_gray) identifier_frame_gray (call (attribute (identifier_cv2) identifier_cv2 (identifier_cvtColor) identifier_cvtColor )attribute (argument_list (identifier_image) identifier_image (attribute (identifier_cv2) identifier_cv2 (identifier_COLOR_RGB2GRAY) identifier_COLOR_RGB2GRAY )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_faces) identifier_faces (call (attribute (attribute (identifier_self) identifier_self (identifier_cascade) identifier_cascade )attribute (identifier_detectMultiScale) identifier_detectMultiScale )attribute (argument_list (identifier_frame_gray) identifier_frame_gray (keyword_argument (identifier_scaleFactor) identifier_scaleFactor (float_1.3) float_1.3 )keyword_argument (keyword_argument (identifier_minNeighbors) identifier_minNeighbors (integer_5) integer_5 )keyword_argument (keyword_argument (identifier_minSize) identifier_minSize (tuple (integer_50) integer_50 (integer_50) integer_50 )tuple )keyword_argument (keyword_argument (identifier_flags) identifier_flags (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (identifier_draw_box) identifier_draw_box (block (for_statement (pattern_list (identifier_x) identifier_x (identifier_y) identifier_y (identifier_w) identifier_w (identifier_h) identifier_h )pattern_list (identifier_faces) identifier_faces (block (expression_statement (call (attribute (identifier_cv2) identifier_cv2 (identifier_rectangle) identifier_rectangle )attribute (argument_list (identifier_image) identifier_image (tuple (identifier_x) identifier_x (identifier_y) identifier_y )tuple (tuple (binary_operator (identifier_x) identifier_x (identifier_w) identifier_w )binary_operator (binary_operator (identifier_y) identifier_y (identifier_h) identifier_h )binary_operator )tuple (tuple (integer_0) integer_0 (integer_255) integer_255 (integer_0) integer_0 )tuple (integer_2) integer_2 )argument_list )call )expression_statement )block )for_statement )block )if_statement (return_statement (identifier_faces) identifier_faces )return_statement )block )function_definition )module
Uses a haarcascade to detect faces inside an image. Args: image: The image. draw_box: If True, the image will be marked with a rectangle. Return: The faces as returned by OpenCV's detectMultiScale method for cascades.
(module (function_definition (function_name_on_apply) function_name_on_apply (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (for_statement (identifier_label) identifier_label (call (attribute (attribute (identifier_self) identifier_self (identifier_setting_map) identifier_setting_map )attribute (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_setting) identifier_setting (subscript (attribute (identifier_self) identifier_self (identifier_setting_map) identifier_setting_map )attribute (identifier_label) identifier_label )subscript )assignment )expression_statement (expression_statement (assignment (identifier_ctrl) identifier_ctrl (subscript (attribute (identifier_self) identifier_self (identifier_controls) identifier_controls )attribute (identifier_label) identifier_label )subscript )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (call (attribute (identifier_ctrl) identifier_ctrl (identifier_GetValue) identifier_GetValue )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_str) identifier_str (argument_list (identifier_value) identifier_value )argument_list )call (call (identifier_str) identifier_str (argument_list (attribute (identifier_setting) identifier_setting (identifier_value) identifier_value )attribute )argument_list )call )comparison_operator (block (expression_statement (assignment (identifier_oldvalue) identifier_oldvalue (attribute (identifier_setting) identifier_setting (identifier_value) identifier_value )attribute )assignment )expression_statement (if_statement (not_operator (call (attribute (identifier_setting) identifier_setting (identifier_set) identifier_set )attribute (argument_list (identifier_value) identifier_value )argument_list )call )not_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_"Invalid value %s for %s") string_"Invalid value %s for %s" (tuple (identifier_value) identifier_value (attribute (identifier_setting) identifier_setting (identifier_name) identifier_name )attribute )tuple )binary_operator )argument_list )call )expression_statement (continue_statement )continue_statement )block )if_statement (if_statement (comparison_operator (call (identifier_str) identifier_str (argument_list (identifier_oldvalue) identifier_oldvalue )argument_list )call (call (identifier_str) identifier_str (argument_list (attribute (identifier_setting) identifier_setting (identifier_value) identifier_value )attribute )argument_list )call )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_parent_pipe) identifier_parent_pipe )attribute (identifier_send) identifier_send )attribute (argument_list (identifier_setting) identifier_setting )argument_list )call )expression_statement )block )if_statement )block )if_statement )block )for_statement )block )function_definition )module
called on apply
(module (function_definition (function_name_write) function_name_write (parameters (identifier_editor) identifier_editor (identifier_location) identifier_location (default_parameter (identifier_force) identifier_force (False) False )default_parameter )parameters (block (if_statement (boolean_operator (boolean_operator (identifier_location) identifier_location (not_operator (identifier_force) identifier_force )not_operator )boolean_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (identifier_location) identifier_location )argument_list )call )boolean_operator (block (expression_statement (call (attribute (identifier_editor) identifier_editor (identifier_show_message) identifier_show_message )attribute (argument_list (string_'File exists (add ! to overriwe)') string_'File exists (add ! to overriwe)' )argument_list )call )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_eb) identifier_eb (attribute (attribute (identifier_editor) identifier_editor (identifier_window_arrangement) identifier_window_arrangement )attribute (identifier_active_editor_buffer) identifier_active_editor_buffer )attribute )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_location) identifier_location (None) None )comparison_operator (comparison_operator (attribute (identifier_eb) identifier_eb (identifier_location) identifier_location )attribute (None) None )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_editor) identifier_editor (identifier_show_message) identifier_show_message )attribute (argument_list (identifier__NO_FILE_NAME) identifier__NO_FILE_NAME )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_eb) identifier_eb (identifier_write) identifier_write )attribute (argument_list (identifier_location) identifier_location )argument_list )call )expression_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )function_definition )module
Write file.
(module (function_definition (function_name_get_safe_type) function_name_get_safe_type (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_product_type) identifier_product_type (subscript (call (attribute (attribute (identifier_self) identifier_self (identifier_product_id) identifier_product_id )attribute (identifier_split) identifier_split )attribute (argument_list (string_'_') string_'_' )argument_list )call (integer_1) integer_1 )subscript )assignment )expression_statement (if_statement (call (attribute (identifier_product_type) identifier_product_type (identifier_startswith) identifier_startswith )attribute (argument_list (string_'MSI') string_'MSI' )argument_list )call (block (return_statement (attribute (identifier_EsaSafeType) identifier_EsaSafeType (identifier_COMPACT_TYPE) identifier_COMPACT_TYPE )attribute )return_statement )block )if_statement (if_statement (comparison_operator (identifier_product_type) identifier_product_type (list (string_'OPER') string_'OPER' (string_'USER') string_'USER' )list )comparison_operator (block (return_statement (attribute (identifier_EsaSafeType) identifier_EsaSafeType (identifier_OLD_TYPE) identifier_OLD_TYPE )attribute )return_statement )block )if_statement (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_'Unrecognized product type of product id {}') string_'Unrecognized product type of product id {}' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_product_id) identifier_product_id )attribute )argument_list )call )argument_list )call )raise_statement )block )function_definition )module
Determines the type of ESA product. In 2016 ESA changed structure and naming of data. Therefore the class must distinguish between old product type and compact (new) product type. :return: type of ESA product :rtype: constants.EsaSafeType :raises: ValueError
(module (function_definition (function_name_check_declared) function_name_check_declared (parameters (identifier_self) identifier_self (identifier_node) identifier_node )parameters (block (for_statement (identifier_ident) identifier_ident (call (attribute (identifier_node) identifier_node (identifier_undeclared_identifiers) identifier_undeclared_identifiers )attribute (argument_list )argument_list )call (block (if_statement (boolean_operator (comparison_operator (identifier_ident) identifier_ident (string_'context') string_'context' )comparison_operator (line_continuation_\) line_continuation_\ (comparison_operator (identifier_ident) identifier_ident (call (attribute (attribute (identifier_self) identifier_self (identifier_declared) identifier_declared )attribute (identifier_union) identifier_union )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_locally_declared) identifier_locally_declared )attribute )argument_list )call )comparison_operator )boolean_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_undeclared) identifier_undeclared )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_ident) identifier_ident )argument_list )call )expression_statement )block )if_statement )block )for_statement (for_statement (identifier_ident) identifier_ident (call (attribute (identifier_node) identifier_node (identifier_declared_identifiers) identifier_declared_identifiers )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_locally_declared) identifier_locally_declared )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_ident) identifier_ident )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
update the state of this Identifiers with the undeclared and declared identifiers of the given node.
(module (function_definition (function_name_press_keycode) function_name_press_keycode (parameters (identifier_self) identifier_self (identifier_keycode) identifier_keycode (default_parameter (identifier_metastate) identifier_metastate (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_driver) identifier_driver (call (attribute (identifier_self) identifier_self (identifier__current_application) identifier__current_application )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_driver) identifier_driver (identifier_press_keycode) identifier_press_keycode )attribute (argument_list (identifier_keycode) identifier_keycode (identifier_metastate) identifier_metastate )argument_list )call )expression_statement )block )function_definition )module
Sends a press of keycode to the device. Android only. Possible keycodes & meta states can be found in http://developer.android.com/reference/android/view/KeyEvent.html Meta state describe the pressed state of key modifiers such as Shift, Ctrl & Alt keys. The Meta State is an integer in which each bit set to 1 represents a pressed meta key. For example - META_SHIFT_ON = 1 - META_ALT_ON = 2 | metastate=1 --> Shift is pressed | metastate=2 --> Alt is pressed | metastate=3 --> Shift+Alt is pressed - _keycode- - the keycode to be sent to the device - _metastate- - status of the meta keys
(module (function_definition (function_name_close) function_name_close (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (attribute (identifier_self) identifier_self (identifier_stop_lock) identifier_stop_lock )attribute )with_item )with_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_stopped) identifier_stopped )attribute (True) True )assignment )expression_statement )block )with_statement (return_statement (call (attribute (identifier_ioloop_util) identifier_ioloop_util (identifier_submit) identifier_submit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__flush) identifier__flush )attribute (keyword_argument (identifier_io_loop) identifier_io_loop (attribute (identifier_self) identifier_self (identifier_io_loop) identifier_io_loop )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Ensure that all spans from the queue are submitted. Returns Future that will be completed once the queue is empty.
(module (function_definition (function_name_in_navitem) function_name_in_navitem (parameters (identifier_self) identifier_self (identifier_resources) identifier_resources (identifier_nav_href) identifier_nav_href )parameters (block (if_statement (call (attribute (identifier_nav_href) identifier_nav_href (identifier_endswith) identifier_endswith )attribute (argument_list (string_'/index') string_'/index' )argument_list )call (block (expression_statement (assignment (identifier_nav_href) identifier_nav_href (subscript (identifier_nav_href) identifier_nav_href (slice (colon) colon (unary_operator (integer_6) integer_6 )unary_operator )slice )subscript )assignment )expression_statement )block )if_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_docname) identifier_docname )attribute (identifier_startswith) identifier_startswith )attribute (argument_list (identifier_nav_href) identifier_nav_href )argument_list )call )return_statement )block )function_definition )module
Given href of nav item, determine if resource is in it
(module (function_definition (function_name_disallow) function_name_disallow (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (attribute (identifier_self) identifier_self (identifier__schema) identifier__schema )attribute (identifier_get) identifier_get )attribute (argument_list (string_"disallow") string_"disallow" (None) None )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_value) identifier_value (None) None )comparison_operator (block (return_statement )return_statement )block )if_statement (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (tuple (identifier_basestring) identifier_basestring (identifier_dict) identifier_dict (identifier_list) identifier_list )tuple )argument_list )call )not_operator (block (raise_statement (call (identifier_SchemaError) identifier_SchemaError (argument_list (call (attribute (concatenated_string (string_"disallow value {0!r} is not a simple type name, nested ") string_"disallow value {0!r} is not a simple type name, nested " (string_"schema nor a list of those") string_"schema nor a list of those" )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_value) identifier_value )argument_list )call )argument_list )call )raise_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_list) identifier_list )argument_list )call (block (expression_statement (assignment (identifier_disallow_list) identifier_disallow_list (identifier_value) identifier_value )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_disallow_list) identifier_disallow_list (list (identifier_value) identifier_value )list )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_seen) identifier_seen (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_js_disallow) identifier_js_disallow (identifier_disallow_list) identifier_disallow_list (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_js_disallow) identifier_js_disallow (identifier_dict) identifier_dict )argument_list )call (block (pass_statement )pass_statement )block (else_clause (block (if_statement (comparison_operator (identifier_js_disallow) identifier_js_disallow (identifier_seen) identifier_seen )comparison_operator (block (raise_statement (call (identifier_SchemaError) identifier_SchemaError (argument_list (call (attribute (concatenated_string (string_"disallow value {0!r} contains duplicate element") string_"disallow value {0!r} contains duplicate element" (string_" {1!r}") string_" {1!r}" )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_value) identifier_value (identifier_js_disallow) identifier_js_disallow )argument_list )call )argument_list )call )raise_statement )block (else_clause (block (expression_statement (call (attribute (identifier_seen) identifier_seen (identifier_add) identifier_add )attribute (argument_list (identifier_js_disallow) identifier_js_disallow )argument_list )call )expression_statement )block )else_clause )if_statement (if_statement (comparison_operator (identifier_js_disallow) identifier_js_disallow (tuple (string_"string") string_"string" (string_"number") string_"number" (string_"integer") string_"integer" (string_"boolean") string_"boolean" (string_"object") string_"object" (string_"array") string_"array" (string_"null") string_"null" (string_"any") string_"any" )tuple )comparison_operator (block (raise_statement (call (identifier_SchemaError) identifier_SchemaError (argument_list (call (attribute (concatenated_string (string_"disallow value {0!r} is not a simple type") string_"disallow value {0!r} is not a simple type" (string_" name") string_" name" )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_js_disallow) identifier_js_disallow )argument_list )call )argument_list )call )raise_statement )block )if_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_disallow_list) identifier_disallow_list )return_statement )block )function_definition )module
Description of disallowed objects. Disallow must be a type name, a nested schema or a list of those. Type name must be one of ``string``, ``number``, ``integer``, ``boolean``, ``object``, ``array``, ``null`` or ``any``.
(module (function_definition (function_name_merged) function_name_merged (parameters (identifier_cls) identifier_cls (typed_parameter (list_splat_pattern (identifier_flatterms) identifier_flatterms )list_splat_pattern (type (string_'FlatTerm') string_'FlatTerm' )type )typed_parameter )parameters (type (string_'FlatTerm') string_'FlatTerm' )type (block (return_statement (call (identifier_cls) identifier_cls (argument_list (call (attribute (identifier_cls) identifier_cls (identifier__combined_wildcards_iter) identifier__combined_wildcards_iter )attribute (argument_list (call (identifier_sum) identifier_sum (argument_list (identifier_flatterms) identifier_flatterms (call (attribute (identifier_cls) identifier_cls (identifier_empty) identifier_empty )attribute (argument_list )argument_list )call )argument_list )call )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Concatenate the given flatterms to a single flatterm. Args: *flatterms: The flatterms which are concatenated. Returns: The concatenated flatterms.
(module (function_definition (function_name_to_ufo_background_image) function_name_to_ufo_background_image (parameters (identifier_self) identifier_self (identifier_ufo_glyph) identifier_ufo_glyph (identifier_layer) identifier_layer )parameters (block (expression_statement (assignment (identifier_image) identifier_image (attribute (identifier_layer) identifier_layer (identifier_backgroundImage) identifier_backgroundImage )attribute )assignment )expression_statement (if_statement (comparison_operator (identifier_image) identifier_image (None) None )comparison_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_ufo_image) identifier_ufo_image (attribute (identifier_ufo_glyph) identifier_ufo_glyph (identifier_image) identifier_image )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_ufo_image) identifier_ufo_image (identifier_fileName) identifier_fileName )attribute (attribute (identifier_image) identifier_image (identifier_path) identifier_path )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_ufo_image) identifier_ufo_image (identifier_transformation) identifier_transformation )attribute (attribute (identifier_image) identifier_image (identifier_transform) identifier_transform )attribute )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_ufo_glyph) identifier_ufo_glyph (identifier_lib) identifier_lib )attribute (identifier_CROP_KEY) identifier_CROP_KEY )subscript (call (identifier_list) identifier_list (argument_list (attribute (identifier_image) identifier_image (identifier_crop) identifier_crop )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_ufo_glyph) identifier_ufo_glyph (identifier_lib) identifier_lib )attribute (identifier_LOCKED_KEY) identifier_LOCKED_KEY )subscript (attribute (identifier_image) identifier_image (identifier_locked) identifier_locked )attribute )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_ufo_glyph) identifier_ufo_glyph (identifier_lib) identifier_lib )attribute (identifier_ALPHA_KEY) identifier_ALPHA_KEY )subscript (attribute (identifier_image) identifier_image (identifier_alpha) identifier_alpha )attribute )assignment )expression_statement )block )function_definition )module
Copy the backgound image from the GSLayer to the UFO Glyph.
(module (function_definition (function_name_unicode_wrapper) function_name_unicode_wrapper (parameters (identifier_self) identifier_self (identifier_property) identifier_property (default_parameter (identifier_default) identifier_default (call (identifier_ugettext) identifier_ugettext (argument_list (string_'Untitled') string_'Untitled' )argument_list )call )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_value) identifier_value (call (identifier_getattr) identifier_getattr (argument_list (identifier_self) identifier_self (identifier_property) identifier_property )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ValueError) identifier_ValueError (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_warn) identifier_warn )attribute (argument_list (string_u'ValueError rendering unicode for %s object.') string_u'ValueError rendering unicode for %s object.' (attribute (attribute (identifier_self) identifier_self (identifier__meta) identifier__meta )attribute (identifier_object_name) identifier_object_name )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_value) identifier_value (None) None )assignment )expression_statement )block )except_clause )try_statement (if_statement (not_operator (identifier_value) identifier_value )not_operator (block (expression_statement (assignment (identifier_value) identifier_value (identifier_default) identifier_default )assignment )expression_statement )block )if_statement (return_statement (identifier_value) identifier_value )return_statement )block )function_definition )module
Wrapper to allow for easy unicode representation of an object by the specified property. If this wrapper is not able to find the right translation of the specified property, it will return the default value instead. Example:: def __unicode__(self): return unicode_wrapper('name', default='Unnamed')
(module (function_definition (function_name_from_class_name) function_name_from_class_name (parameters (identifier_name) identifier_name (identifier_theme_element) identifier_theme_element )parameters (block (expression_statement (assignment (identifier_msg) identifier_msg (call (attribute (string_"No such themeable element {}") string_"No such themeable element {}" (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_klass) identifier_klass (subscript (attribute (identifier_themeable) identifier_themeable (identifier__registry) identifier__registry )attribute (identifier_name) identifier_name )subscript )assignment )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (raise_statement (call (identifier_PlotnineError) identifier_PlotnineError (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )except_clause )try_statement (if_statement (not_operator (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_klass) identifier_klass (identifier_themeable) identifier_themeable )argument_list )call )not_operator (block (raise_statement (call (identifier_PlotnineError) identifier_PlotnineError (argument_list (identifier_msg) identifier_msg )argument_list )call )raise_statement )block )if_statement (return_statement (call (identifier_klass) identifier_klass (argument_list (identifier_theme_element) identifier_theme_element )argument_list )call )return_statement )block )function_definition )module
Create an themeable by name Parameters ---------- name : str Class name theme_element : element object One of :class:`element_line`, :class:`element_rect`, :class:`element_text` or :class:`element_blank` Returns ------- out : Themeable
(module (function_definition (function_name_min_heapify) function_name_min_heapify (parameters (identifier_arr) identifier_arr (identifier_start) identifier_start (identifier_simulation) identifier_simulation (identifier_iteration) identifier_iteration )parameters (block (expression_statement (assignment (identifier_end) identifier_end (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_arr) identifier_arr )argument_list )call (integer_1) integer_1 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_last_parent) identifier_last_parent (binary_operator (parenthesized_expression (binary_operator (binary_operator (identifier_end) identifier_end (identifier_start) identifier_start )binary_operator (integer_1) integer_1 )binary_operator )parenthesized_expression (integer_2) integer_2 )binary_operator )assignment )expression_statement (for_statement (identifier_parent) identifier_parent (call (identifier_range) identifier_range (argument_list (identifier_last_parent) identifier_last_parent (unary_operator (integer_1) integer_1 )unary_operator (unary_operator (integer_1) integer_1 )unary_operator )argument_list )call (block (expression_statement (assignment (identifier_current_parent) identifier_current_parent (identifier_parent) identifier_parent )assignment )expression_statement (while_statement (comparison_operator (identifier_current_parent) identifier_current_parent (identifier_last_parent) identifier_last_parent )comparison_operator (block (expression_statement (assignment (identifier_child) identifier_child (binary_operator (binary_operator (integer_2) integer_2 (identifier_current_parent) identifier_current_parent )binary_operator (integer_1) integer_1 )binary_operator )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (binary_operator (identifier_child) identifier_child (integer_1) integer_1 )binary_operator (binary_operator (identifier_end) identifier_end (identifier_start) identifier_start )binary_operator )comparison_operator (comparison_operator (subscript (identifier_arr) identifier_arr (binary_operator (identifier_child) identifier_child (identifier_start) identifier_start )binary_operator )subscript (subscript (identifier_arr) identifier_arr (binary_operator (binary_operator (identifier_child) identifier_child (integer_1) integer_1 )binary_operator (identifier_start) identifier_start )binary_operator )subscript )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_child) identifier_child (binary_operator (identifier_child) identifier_child (integer_1) integer_1 )binary_operator )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (subscript (identifier_arr) identifier_arr (binary_operator (identifier_child) identifier_child (identifier_start) identifier_start )binary_operator )subscript (subscript (identifier_arr) identifier_arr (binary_operator (identifier_current_parent) identifier_current_parent (identifier_start) identifier_start )binary_operator )subscript )comparison_operator (block (expression_statement (assignment (pattern_list (subscript (identifier_arr) identifier_arr (binary_operator (identifier_current_parent) identifier_current_parent (identifier_start) identifier_start )binary_operator )subscript (subscript (identifier_arr) identifier_arr (binary_operator (identifier_child) identifier_child (identifier_start) identifier_start )binary_operator )subscript )pattern_list (line_continuation_\) line_continuation_\ (expression_list (subscript (identifier_arr) identifier_arr (binary_operator (identifier_child) identifier_child (identifier_start) identifier_start )binary_operator )subscript (subscript (identifier_arr) identifier_arr (binary_operator (identifier_current_parent) identifier_current_parent (identifier_start) identifier_start )binary_operator )subscript )expression_list )assignment )expression_statement (expression_statement (assignment (identifier_current_parent) identifier_current_parent (identifier_child) identifier_child )assignment )expression_statement (if_statement (identifier_simulation) identifier_simulation (block (expression_statement (assignment (identifier_iteration) identifier_iteration (binary_operator (identifier_iteration) identifier_iteration (integer_1) integer_1 )binary_operator )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"iteration") string_"iteration" (identifier_iteration) identifier_iteration (string_":") string_":" (list_splat (identifier_arr) identifier_arr )list_splat )argument_list )call )expression_statement )block )if_statement )block (else_clause (block (break_statement )break_statement )block )else_clause )if_statement )block )while_statement )block )for_statement (return_statement (identifier_iteration) identifier_iteration )return_statement )block )function_definition )module
Min heapify helper for min_heap_sort
(module (function_definition (function_name_as_plural) function_name_as_plural (parameters (identifier_result_key) identifier_result_key )parameters (block (if_statement (call (attribute (identifier_result_key) identifier_result_key (identifier_endswith) identifier_endswith )attribute (argument_list (string_'y') string_'y' )argument_list )call (block (return_statement (call (attribute (identifier_re) identifier_re (identifier_sub) identifier_sub )attribute (argument_list (string_"y$") string_"y$" (string_"ies") string_"ies" (identifier_result_key) identifier_result_key )argument_list )call )return_statement )block (elif_clause (call (attribute (identifier_result_key) identifier_result_key (identifier_endswith) identifier_endswith )attribute (argument_list (string_'address') string_'address' )argument_list )call (block (return_statement (binary_operator (identifier_result_key) identifier_result_key (string_'es') string_'es' )binary_operator )return_statement )block )elif_clause (elif_clause (call (attribute (identifier_result_key) identifier_result_key (identifier_endswith) identifier_endswith )attribute (argument_list (string_'us') string_'us' )argument_list )call (block (return_statement (call (attribute (identifier_re) identifier_re (identifier_sub) identifier_sub )attribute (argument_list (string_"us$") string_"us$" (string_"uses") string_"uses" (identifier_result_key) identifier_result_key )argument_list )call )return_statement )block )elif_clause (elif_clause (not_operator (call (attribute (identifier_result_key) identifier_result_key (identifier_endswith) identifier_endswith )attribute (argument_list (string_'s') string_'s' )argument_list )call )not_operator (block (return_statement (binary_operator (identifier_result_key) identifier_result_key (string_'s') string_'s' )binary_operator )return_statement )block )elif_clause (else_clause (block (return_statement (identifier_result_key) identifier_result_key )return_statement )block )else_clause )if_statement )block )function_definition )module
Given a result key, return in the plural form.
(module (function_definition (function_name_average_gradients) function_name_average_gradients (parameters (identifier_tower_gradients) identifier_tower_gradients )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignment (identifier_average_grads) identifier_average_grads (list )list )assignment )expression_statement (with_statement (with_clause (with_item (call (attribute (identifier_tf) identifier_tf (identifier_device) identifier_device )attribute (argument_list (attribute (identifier_Config) identifier_Config (identifier_cpu_device) identifier_cpu_device )attribute )argument_list )call )with_item )with_clause (block (for_statement (identifier_grad_and_vars) identifier_grad_and_vars (call (identifier_zip) identifier_zip (argument_list (list_splat (identifier_tower_gradients) identifier_tower_gradients )list_splat )argument_list )call (block (expression_statement (assignment (identifier_grads) identifier_grads (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_g) identifier_g (identifier__) identifier__ )pattern_list (identifier_grad_and_vars) identifier_grad_and_vars (block (expression_statement (assignment (identifier_expanded_g) identifier_expanded_g (call (attribute (identifier_tf) identifier_tf (identifier_expand_dims) identifier_expand_dims )attribute (argument_list (identifier_g) identifier_g (integer_0) integer_0 )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_grads) identifier_grads (identifier_append) identifier_append )attribute (argument_list (identifier_expanded_g) identifier_expanded_g )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (identifier_grad) identifier_grad (call (attribute (identifier_tf) identifier_tf (identifier_concat) identifier_concat )attribute (argument_list (identifier_grads) identifier_grads (integer_0) integer_0 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_grad) identifier_grad (call (attribute (identifier_tf) identifier_tf (identifier_reduce_mean) identifier_reduce_mean )attribute (argument_list (identifier_grad) identifier_grad (integer_0) integer_0 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_grad_and_var) identifier_grad_and_var (tuple (identifier_grad) identifier_grad (subscript (subscript (identifier_grad_and_vars) identifier_grad_and_vars (integer_0) integer_0 )subscript (integer_1) integer_1 )subscript )tuple )assignment )expression_statement (expression_statement (call (attribute (identifier_average_grads) identifier_average_grads (identifier_append) identifier_append )attribute (argument_list (identifier_grad_and_var) identifier_grad_and_var )argument_list )call )expression_statement )block )for_statement )block )with_statement (return_statement (identifier_average_grads) identifier_average_grads )return_statement )block )function_definition )module
r''' A routine for computing each variable's average of the gradients obtained from the GPUs. Note also that this code acts as a synchronization point as it requires all GPUs to be finished with their mini-batch before it can run to completion.
(module (function_definition (function_name_get_historical_data) function_name_get_historical_data (parameters (identifier_self) identifier_self (identifier_uuid) identifier_uuid (identifier_start) identifier_start (identifier_end) identifier_end (default_parameter (identifier_average_by) identifier_average_by (integer_0) integer_0 )default_parameter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_parse_data) identifier_parse_data )attribute (argument_list (parenthesized_expression (yield (call (attribute (identifier_self) identifier_self (identifier__get) identifier__get )attribute (argument_list (call (attribute (identifier_HISTORICAL_DATA_URL) identifier_HISTORICAL_DATA_URL (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_uuid) identifier_uuid (identifier_uuid) identifier_uuid )keyword_argument (keyword_argument (identifier_start) identifier_start (call (identifier_trunc) identifier_trunc (argument_list (call (attribute (call (attribute (identifier_start) identifier_start (identifier_replace) identifier_replace )attribute (argument_list (keyword_argument (identifier_tzinfo) identifier_tzinfo (attribute (identifier_timezone) identifier_timezone (identifier_utc) identifier_utc )attribute )keyword_argument )argument_list )call (identifier_timestamp) identifier_timestamp )attribute (argument_list )argument_list )call )argument_list )call )keyword_argument (keyword_argument (identifier_end) identifier_end (call (identifier_trunc) identifier_trunc (argument_list (call (attribute (call (attribute (identifier_end) identifier_end (identifier_replace) identifier_replace )attribute (argument_list (keyword_argument (identifier_tzinfo) identifier_tzinfo (attribute (identifier_timezone) identifier_timezone (identifier_utc) identifier_utc )attribute )keyword_argument )argument_list )call (identifier_timestamp) identifier_timestamp )attribute (argument_list )argument_list )call )argument_list )call )keyword_argument (keyword_argument (identifier_average_by) identifier_average_by (call (identifier_trunc) identifier_trunc (argument_list (identifier_average_by) identifier_average_by )argument_list )call )keyword_argument )argument_list )call )argument_list )call )yield )parenthesized_expression )argument_list )call )return_statement )block )function_definition )module
Get the data from one device for a specified time range. .. note:: Can fetch a maximum of 42 days of data. To speed up query processing, you can use a combination of average factor multiple of 1H in seconds (e.g. 3600), and o'clock start and end times :param uuid: Id of the device :type uuid: str :param start: start of the range :type start: datetime :param end: end of the range :type end: datetime :param average_by: amount of seconds to average data over. 0 or 300 for no average. Use 3600 (average hourly) or a multiple for long range requests (e.g. more than 1 day) :type average_by: integer :returns: list of datapoints :raises: ClientError, AuthFailure, BadFormat, ForbiddenAccess, TooManyRequests, InternalError .. seealso:: :func:`parse_data` for return data syntax
(module (function_definition (function_name_get_documents_count) function_name_get_documents_count (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_db_collections) identifier_db_collections (list_comprehension (subscript (attribute (identifier_self) identifier_self (identifier_database) identifier_database )attribute (identifier_c) identifier_c )subscript (for_in_clause (identifier_c) identifier_c (call (attribute (identifier_self) identifier_self (identifier_get_collection_names) identifier_get_collection_names )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (call (identifier_sum) identifier_sum (argument_list (list_comprehension (call (attribute (identifier_c) identifier_c (identifier_count) identifier_count )attribute (argument_list )argument_list )call (for_in_clause (identifier_c) identifier_c (identifier_db_collections) identifier_db_collections )for_in_clause )list_comprehension )argument_list )call )return_statement )block )function_definition )module
Counts documents in database :return: Number of documents in db
(module (function_definition (function_name_load_image) function_name_load_image (parameters (identifier_name) identifier_name (identifier_n) identifier_n (default_parameter (identifier_m) identifier_m (None) None )default_parameter (default_parameter (identifier_gpu) identifier_gpu (None) None )default_parameter (default_parameter (identifier_square) identifier_square (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_m) identifier_m (None) None )comparison_operator (block (expression_statement (assignment (identifier_m) identifier_m (identifier_n) identifier_n )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_gpu) identifier_gpu (None) None )comparison_operator (block (expression_statement (assignment (identifier_gpu) identifier_gpu (integer_0) integer_0 )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_square) identifier_square (None) None )comparison_operator (block (expression_statement (assignment (identifier_square) identifier_square (integer_0) integer_0 )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_command) identifier_command (parenthesized_expression (call (attribute (string_'Shearlab.load_image("{}", {}, {}, {}, {})') string_'Shearlab.load_image("{}", {}, {}, {}, {})' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name (identifier_n) identifier_n (identifier_m) identifier_m (identifier_gpu) identifier_gpu (identifier_square) identifier_square )argument_list )call )parenthesized_expression )assignment )expression_statement (return_statement (call (attribute (identifier_j) identifier_j (identifier_eval) identifier_eval )attribute (argument_list (identifier_command) identifier_command )argument_list )call )return_statement )block )function_definition )module
Function to load images with certain size.
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (identifier_networkipv4s) identifier_networkipv4s )parameters (block (expression_statement (assignment (identifier_data) identifier_data (dictionary (pair (string_'networks') string_'networks' (identifier_networkipv4s) identifier_networkipv4s )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_networkipv4s_ids) identifier_networkipv4s_ids (list_comprehension (call (identifier_str) identifier_str (argument_list (call (attribute (identifier_networkipv4) identifier_networkipv4 (identifier_get) identifier_get )attribute (argument_list (string_'id') string_'id' )argument_list )call )argument_list )call (for_in_clause (identifier_networkipv4) identifier_networkipv4 (identifier_networkipv4s) identifier_networkipv4s )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_ApiNetworkIPv4) identifier_ApiNetworkIPv4 (identifier_self) identifier_self )argument_list )call (identifier_put) identifier_put )attribute (argument_list (binary_operator (string_'api/v3/networkv4/%s/') string_'api/v3/networkv4/%s/' (call (attribute (string_';') string_';' (identifier_join) identifier_join )attribute (argument_list (identifier_networkipv4s_ids) identifier_networkipv4s_ids )argument_list )call )binary_operator (identifier_data) identifier_data )argument_list )call )return_statement )block )function_definition )module
Method to update network-ipv4's :param networkipv4s: List containing network-ipv4's desired to updated :return: None
(module (function_definition (function_name_get_instance) function_name_get_instance (parameters (identifier_self) identifier_self (identifier_payload) identifier_payload )parameters (block (return_statement (call (identifier_SyncListItemInstance) identifier_SyncListItemInstance (argument_list (attribute (identifier_self) identifier_self (identifier__version) identifier__version )attribute (identifier_payload) identifier_payload (keyword_argument (identifier_service_sid) identifier_service_sid (subscript (attribute (identifier_self) identifier_self (identifier__solution) identifier__solution )attribute (string_'service_sid') string_'service_sid' )subscript )keyword_argument (keyword_argument (identifier_list_sid) identifier_list_sid (subscript (attribute (identifier_self) identifier_self (identifier__solution) identifier__solution )attribute (string_'list_sid') string_'list_sid' )subscript )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Build an instance of SyncListItemInstance :param dict payload: Payload response from the API :returns: twilio.rest.preview.sync.service.sync_list.sync_list_item.SyncListItemInstance :rtype: twilio.rest.preview.sync.service.sync_list.sync_list_item.SyncListItemInstance
(module (function_definition (function_name_isdicom) function_name_isdicom (parameters (identifier_fn) identifier_fn )parameters (block (expression_statement (assignment (identifier_fn) identifier_fn (call (identifier_str) identifier_str (argument_list (identifier_fn) identifier_fn )argument_list )call )assignment )expression_statement (if_statement (call (attribute (identifier_fn) identifier_fn (identifier_endswith) identifier_endswith )attribute (argument_list (string_'.dcm') string_'.dcm' )argument_list )call (block (return_statement (True) True )return_statement )block )if_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_fn) identifier_fn (string_'rb') string_'rb' )argument_list )call (as_pattern_target (identifier_fh) identifier_fh )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_fh) identifier_fh (identifier_seek) identifier_seek )attribute (argument_list (integer_0x80) integer_0x80 )argument_list )call )expression_statement (return_statement (comparison_operator (call (attribute (identifier_fh) identifier_fh (identifier_read) identifier_read )attribute (argument_list (integer_4) integer_4 )argument_list )call (string_b'DICM') string_b'DICM' )comparison_operator )return_statement )block )with_statement )block )function_definition )module
True if the fn points to a DICOM image
(module (function_definition (function_name_hypot) function_name_hypot (parameters (identifier_x) identifier_x (identifier_y) identifier_y (default_parameter (identifier_context) identifier_context (None) None )default_parameter )parameters (block (return_statement (call (identifier__apply_function_in_current_context) identifier__apply_function_in_current_context (argument_list (identifier_BigFloat) identifier_BigFloat (attribute (identifier_mpfr) identifier_mpfr (identifier_mpfr_hypot) identifier_mpfr_hypot )attribute (tuple (call (attribute (identifier_BigFloat) identifier_BigFloat (identifier__implicit_convert) identifier__implicit_convert )attribute (argument_list (identifier_x) identifier_x )argument_list )call (call (attribute (identifier_BigFloat) identifier_BigFloat (identifier__implicit_convert) identifier__implicit_convert )attribute (argument_list (identifier_y) identifier_y )argument_list )call )tuple (identifier_context) identifier_context )argument_list )call )return_statement )block )function_definition )module
Return the Euclidean norm of x and y, i.e., the square root of the sum of the squares of x and y.
(module (function_definition (function_name__consumers) function_name__consumers (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_app_config) identifier_app_config (attribute (subscript (attribute (identifier_self) identifier_self (identifier_lti_kwargs) identifier_lti_kwargs )attribute (string_'app') string_'app' )subscript (identifier_config) identifier_config )attribute )assignment )expression_statement (expression_statement (assignment (identifier_config) identifier_config (call (attribute (identifier_app_config) identifier_app_config (identifier_get) identifier_get )attribute (argument_list (string_'PYLTI_CONFIG') string_'PYLTI_CONFIG' (call (identifier_dict) identifier_dict (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_consumers) identifier_consumers (call (attribute (identifier_config) identifier_config (identifier_get) identifier_get )attribute (argument_list (string_'consumers') string_'consumers' (call (identifier_dict) identifier_dict (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_consumers) identifier_consumers )return_statement )block )function_definition )module
Gets consumer's map from app config :return: consumers map
(module (function_definition (function_name_clean) function_name_clean (parameters (identifier_file_) identifier_file_ (identifier_imports) identifier_imports )parameters (block (expression_statement (assignment (identifier_modules_not_imported) identifier_modules_not_imported (call (identifier_compare_modules) identifier_compare_modules (argument_list (identifier_file_) identifier_file_ (identifier_imports) identifier_imports )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_re_remove) identifier_re_remove (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (call (attribute (string_"|") string_"|" (identifier_join) identifier_join )attribute (argument_list (identifier_modules_not_imported) identifier_modules_not_imported )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_to_write) identifier_to_write (list )list )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_f) identifier_f (call (identifier_open_func) identifier_open_func (argument_list (identifier_file_) identifier_file_ (string_"r+") string_"r+" )argument_list )call )assignment )expression_statement )block (except_clause (identifier_OSError) identifier_OSError (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_error) identifier_error )attribute (argument_list (call (attribute (string_"Failed on file: {}") string_"Failed on file: {}" (identifier_format) identifier_format )attribute (argument_list (identifier_file_) identifier_file_ )argument_list )call )argument_list )call )expression_statement (raise_statement )raise_statement )block )except_clause (else_clause (block (for_statement (identifier_i) identifier_i (call (attribute (identifier_f) identifier_f (identifier_readlines) identifier_readlines )attribute (argument_list )argument_list )call (block (if_statement (comparison_operator (call (attribute (identifier_re_remove) identifier_re_remove (identifier_match) identifier_match )attribute (argument_list (identifier_i) identifier_i )argument_list )call (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_to_write) identifier_to_write (identifier_append) identifier_append )attribute (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement )block )if_statement )block )for_statement (expression_statement (call (attribute (identifier_f) identifier_f (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_f) identifier_f (identifier_truncate) identifier_truncate )attribute (argument_list )argument_list )call )expression_statement (for_statement (identifier_i) identifier_i (identifier_to_write) identifier_to_write (block (expression_statement (call (attribute (identifier_f) identifier_f (identifier_write) identifier_write )attribute (argument_list (identifier_i) identifier_i )argument_list )call )expression_statement )block )for_statement )block )else_clause (finally_clause (block (expression_statement (call (attribute (identifier_f) identifier_f (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement )block )finally_clause )try_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_info) identifier_info )attribute (argument_list (binary_operator (string_"Successfully cleaned up requirements in ") string_"Successfully cleaned up requirements in " (identifier_file_) identifier_file_ )binary_operator )argument_list )call )expression_statement )block )function_definition )module
Remove modules that aren't imported in project from file.
(module (function_definition (function_name_random_expr) function_name_random_expr (parameters (identifier_depth) identifier_depth (identifier_vlist) identifier_vlist (identifier_ops) identifier_ops )parameters (block (if_statement (not_operator (identifier_depth) identifier_depth )not_operator (block (return_statement (call (identifier_str) identifier_str (argument_list (subscript (identifier_vlist) identifier_vlist (call (attribute (identifier_random) identifier_random (identifier_randrange) identifier_randrange )attribute (argument_list (call (identifier_len) identifier_len (argument_list (identifier_vlist) identifier_vlist )argument_list )call )argument_list )call )subscript )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_max_depth_side) identifier_max_depth_side (call (attribute (identifier_random) identifier_random (identifier_randrange) identifier_randrange )attribute (argument_list (integer_2) integer_2 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_other_side_depth) identifier_other_side_depth (call (attribute (identifier_random) identifier_random (identifier_randrange) identifier_randrange )attribute (argument_list (identifier_depth) identifier_depth )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_left) identifier_left (call (identifier_random_expr) identifier_random_expr (argument_list (conditional_expression (binary_operator (identifier_depth) identifier_depth (integer_1) integer_1 )binary_operator (identifier_max_depth_side) identifier_max_depth_side (identifier_other_side_depth) identifier_other_side_depth )conditional_expression (identifier_vlist) identifier_vlist (identifier_ops) identifier_ops )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_right) identifier_right (call (identifier_random_expr) identifier_random_expr (argument_list (conditional_expression (binary_operator (identifier_depth) identifier_depth (integer_1) integer_1 )binary_operator (not_operator (identifier_max_depth_side) identifier_max_depth_side )not_operator (identifier_other_side_depth) identifier_other_side_depth )conditional_expression (identifier_vlist) identifier_vlist (identifier_ops) identifier_ops )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_op) identifier_op (subscript (identifier_ops) identifier_ops (call (attribute (identifier_random) identifier_random (identifier_randrange) identifier_randrange )attribute (argument_list (call (identifier_len) identifier_len (argument_list (identifier_ops) identifier_ops )argument_list )call )argument_list )call )subscript )assignment )expression_statement (return_statement (call (identifier_ExprNode) identifier_ExprNode (argument_list (identifier_left) identifier_left (identifier_right) identifier_right (identifier_op) identifier_op )argument_list )call )return_statement )block )function_definition )module
Generate a random expression tree. Args: depth: At least one leaf will be this many levels down from the top. vlist: A list of chars. These chars are randomly selected as leaf values. ops: A list of ExprOp instances. Returns: An ExprNode instance which is the root of the generated expression tree.
(module (function_definition (function_name_getItalianAccentedVocal) function_name_getItalianAccentedVocal (parameters (identifier_vocal) identifier_vocal (default_parameter (identifier_acc_type) identifier_acc_type (string_"g") string_"g" )default_parameter )parameters (block (expression_statement (assignment (identifier_vocals) identifier_vocals (dictionary (pair (string_'a') string_'a' (dictionary (pair (string_'g') string_'g' (string_u'\xe0') string_u'\xe0' )pair (pair (string_'a') string_'a' (string_u'\xe1') string_u'\xe1' )pair )dictionary )pair (pair (string_'e') string_'e' (dictionary (pair (string_'g') string_'g' (string_u'\xe8') string_u'\xe8' )pair (pair (string_'a') string_'a' (string_u'\xe9') string_u'\xe9' )pair )dictionary )pair (pair (string_'i') string_'i' (dictionary (pair (string_'g') string_'g' (string_u'\xec') string_u'\xec' )pair (pair (string_'a') string_'a' (string_u'\xed') string_u'\xed' )pair )dictionary )pair (pair (string_'o') string_'o' (dictionary (pair (string_'g') string_'g' (string_u'\xf2') string_u'\xf2' )pair (pair (string_'a') string_'a' (string_u'\xf3') string_u'\xf3' )pair )dictionary )pair (pair (string_'u') string_'u' (dictionary (pair (string_'g') string_'g' (string_u'\xf9') string_u'\xf9' )pair (pair (string_'a') string_'a' (string_u'\xfa') string_u'\xfa' )pair )dictionary )pair )dictionary )assignment )expression_statement (return_statement (subscript (subscript (identifier_vocals) identifier_vocals (identifier_vocal) identifier_vocal )subscript (identifier_acc_type) identifier_acc_type )subscript )return_statement )block )function_definition )module
It returns given vocal with grave or acute accent
(module (function_definition (function_name_use_sequestered_composition_view) function_name_use_sequestered_composition_view (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__containable_views) identifier__containable_views )attribute (string_'composition') string_'composition' )subscript (identifier_SEQUESTERED) identifier_SEQUESTERED )assignment )expression_statement (for_statement (identifier_session) identifier_session (call (attribute (identifier_self) identifier_self (identifier__get_provider_sessions) identifier__get_provider_sessions )attribute (argument_list )argument_list )call (block (try_statement (block (expression_statement (call (attribute (identifier_session) identifier_session (identifier_use_sequestered_composition_view) identifier_use_sequestered_composition_view )attribute (argument_list )argument_list )call )expression_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (pass_statement )pass_statement )block )except_clause )try_statement )block )for_statement )block )function_definition )module
Pass through to provider CompositionLookupSession.use_sequestered_composition_view
(module (function_definition (function_name_eventFilter) function_name_eventFilter (parameters (identifier_self) identifier_self (identifier_object) identifier_object (identifier_event) identifier_event )parameters (block (if_statement (boolean_operator (comparison_operator (identifier_object) identifier_object (call (attribute (identifier_self) identifier_self (identifier_parent) identifier_parent )attribute (argument_list )argument_list )call )comparison_operator (comparison_operator (call (attribute (identifier_event) identifier_event (identifier_type) identifier_type )attribute (argument_list )argument_list )call (attribute (attribute (identifier_QtCore) identifier_QtCore (identifier_QEvent) identifier_QEvent )attribute (identifier_Resize) identifier_Resize )attribute )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_resize) identifier_resize )attribute (argument_list (call (attribute (identifier_event) identifier_event (identifier_size) identifier_size )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block (elif_clause (comparison_operator (call (attribute (identifier_event) identifier_event (identifier_type) identifier_type )attribute (argument_list )argument_list )call (attribute (attribute (identifier_QtCore) identifier_QtCore (identifier_QEvent) identifier_QEvent )attribute (identifier_Close) identifier_Close )attribute )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_setResult) identifier_setResult )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement )block )elif_clause )if_statement (return_statement (False) False )return_statement )block )function_definition )module
Resizes this overlay as the widget resizes. :param object | <QtCore.QObject> event | <QtCore.QEvent> :return <bool>
(module (function_definition (function_name_version) function_name_version (parameters (identifier_self) identifier_self (default_parameter (identifier_api_version) identifier_api_version (True) True )default_parameter )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (attribute (identifier_self) identifier_self (identifier__url) identifier__url )attribute (argument_list (string_"/version") string_"/version" (keyword_argument (identifier_versioned_api) identifier_versioned_api (identifier_api_version) identifier_api_version )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__result) identifier__result )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier__get) identifier__get )attribute (argument_list (identifier_url) identifier_url )argument_list )call (keyword_argument (identifier_json) identifier_json (True) True )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Returns version information from the server. Similar to the ``docker version`` command. Returns: (dict): The server version information Raises: :py:class:`docker.errors.APIError` If the server returns an error.
(module (function_definition (function_name_export_draco) function_name_export_draco (parameters (identifier_mesh) identifier_mesh )parameters (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_tempfile) identifier_tempfile (identifier_NamedTemporaryFile) identifier_NamedTemporaryFile )attribute (argument_list (keyword_argument (identifier_suffix) identifier_suffix (string_'.ply') string_'.ply' )keyword_argument )argument_list )call (as_pattern_target (identifier_temp_ply) identifier_temp_ply )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_temp_ply) identifier_temp_ply (identifier_write) identifier_write )attribute (argument_list (call (identifier_export_ply) identifier_export_ply (argument_list (identifier_mesh) identifier_mesh )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_temp_ply) identifier_temp_ply (identifier_flush) identifier_flush )attribute (argument_list )argument_list )call )expression_statement (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_tempfile) identifier_tempfile (identifier_NamedTemporaryFile) identifier_NamedTemporaryFile )attribute (argument_list (keyword_argument (identifier_suffix) identifier_suffix (string_'.drc') string_'.drc' )keyword_argument )argument_list )call (as_pattern_target (identifier_encoded) identifier_encoded )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_subprocess) identifier_subprocess (identifier_check_output) identifier_check_output )attribute (argument_list (list (identifier_draco_encoder) identifier_draco_encoder (string_'-qp') string_'-qp' (string_'28') string_'28' (string_'-i') string_'-i' (attribute (identifier_temp_ply) identifier_temp_ply (identifier_name) identifier_name )attribute (string_'-o') string_'-o' (attribute (identifier_encoded) identifier_encoded (identifier_name) identifier_name )attribute )list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_encoded) identifier_encoded (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (attribute (identifier_encoded) identifier_encoded (identifier_read) identifier_read )attribute (argument_list )argument_list )call )assignment )expression_statement )block )with_statement )block )with_statement (return_statement (identifier_data) identifier_data )return_statement )block )function_definition )module
Export a mesh using Google's Draco compressed format. Only works if draco_encoder is in your PATH: https://github.com/google/draco Parameters ---------- mesh : Trimesh object Returns ---------- data : str or bytes DRC file bytes
(module (function_definition (function_name__format_credentials) function_name__format_credentials (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_tenant_name) identifier_tenant_name (boolean_operator (attribute (identifier_self) identifier_self (identifier_tenant_name) identifier_tenant_name )attribute (attribute (identifier_self) identifier_self (identifier_username) identifier_username )attribute )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_tenant_id) identifier_tenant_id (boolean_operator (attribute (identifier_self) identifier_self (identifier_tenant_id) identifier_tenant_id )attribute (attribute (identifier_self) identifier_self (identifier_username) identifier_username )attribute )boolean_operator )assignment )expression_statement (return_statement (dictionary (pair (string_"auth") string_"auth" (dictionary (pair (string_"passwordCredentials") string_"passwordCredentials" (dictionary (pair (string_"username") string_"username" (identifier_tenant_name) identifier_tenant_name )pair (pair (string_"password") string_"password" (attribute (identifier_self) identifier_self (identifier_password) identifier_password )attribute )pair )dictionary )pair (pair (string_"tenantId") string_"tenantId" (identifier_tenant_id) identifier_tenant_id )pair )dictionary )pair )dictionary )return_statement )block )function_definition )module
Returns the current credentials in the format expected by the authentication service.
(module (function_definition (function_name_describe_api_models) function_name_describe_api_models (parameters (identifier_restApiId) identifier_restApiId (default_parameter (identifier_region) identifier_region (None) None )default_parameter (default_parameter (identifier_key) identifier_key (None) None )default_parameter (default_parameter (identifier_keyid) identifier_keyid (None) None )default_parameter (default_parameter (identifier_profile) identifier_profile (None) None )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_conn) identifier_conn (call (identifier__get_conn) identifier__get_conn (argument_list (keyword_argument (identifier_region) identifier_region (identifier_region) identifier_region )keyword_argument (keyword_argument (identifier_key) identifier_key (identifier_key) identifier_key )keyword_argument (keyword_argument (identifier_keyid) identifier_keyid (identifier_keyid) identifier_keyid )keyword_argument (keyword_argument (identifier_profile) identifier_profile (identifier_profile) identifier_profile )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_models) identifier_models (call (identifier__multi_call) identifier__multi_call (argument_list (attribute (identifier_conn) identifier_conn (identifier_get_models) identifier_get_models )attribute (string_'items') string_'items' (keyword_argument (identifier_restApiId) identifier_restApiId (identifier_restApiId) identifier_restApiId )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (dictionary (pair (string_'models') string_'models' (list_comprehension (call (identifier__convert_datetime_str) identifier__convert_datetime_str (argument_list (identifier_model) identifier_model )argument_list )call (for_in_clause (identifier_model) identifier_model (identifier_models) identifier_models )for_in_clause )list_comprehension )pair )dictionary )return_statement )block (except_clause (as_pattern (identifier_ClientError) identifier_ClientError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (return_statement (dictionary (pair (string_'error') string_'error' (call (subscript (identifier___utils__) identifier___utils__ (string_'boto3.get_error') string_'boto3.get_error' )subscript (argument_list (identifier_e) identifier_e )argument_list )call )pair )dictionary )return_statement )block )except_clause )try_statement )block )function_definition )module
Get all models for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_models restApiId
(module (function_definition (function_name_remove_handler) function_name_remove_handler (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_index) identifier_index (None) None )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_h) identifier_h )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (attribute (identifier_self) identifier_self (identifier_capture_handlers) identifier_capture_handlers )attribute )argument_list )call (block (if_statement (comparison_operator (subscript (identifier_h) identifier_h (string_'name') string_'name' )subscript (identifier_name) identifier_name )comparison_operator (block (expression_statement (assignment (identifier_index) identifier_index (identifier_i) identifier_i )assignment )expression_statement )block )if_statement )block )for_statement (if_statement (comparison_operator (identifier_index) identifier_index (None) None )comparison_operator (block (expression_statement (call (attribute (subscript (subscript (attribute (identifier_self) identifier_self (identifier_capture_handlers) identifier_capture_handlers )attribute (identifier_index) identifier_index )subscript (string_'logger') string_'logger' )subscript (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement (delete_statement (subscript (attribute (identifier_self) identifier_self (identifier_capture_handlers) identifier_capture_handlers )attribute (identifier_index) identifier_index )subscript )delete_statement )block )if_statement )block )function_definition )module
Remove a handler given a name Note, if multiple handlers have the same name the last matching instance in the handler list will be removed. Args: name: The name of the handler to remove
(module (function_definition (function_name_inflate_context_tuple) function_name_inflate_context_tuple (parameters (identifier_ast_rootpath) identifier_ast_rootpath (identifier_root_env) identifier_root_env )parameters (block (with_statement (with_clause (with_item (call (attribute (identifier_util) identifier_util (identifier_LogTime) identifier_LogTime )attribute (argument_list (string_'inflate_context_tuple') string_'inflate_context_tuple' )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_inflated) identifier_inflated (call (attribute (subscript (identifier_ast_rootpath) identifier_ast_rootpath (integer_0) integer_0 )subscript (identifier_eval) identifier_eval )attribute (argument_list (identifier_root_env) identifier_root_env )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_current) identifier_current (identifier_inflated) identifier_inflated )assignment )expression_statement (expression_statement (assignment (identifier_env) identifier_env (identifier_root_env) identifier_root_env )assignment )expression_statement (try_statement (block (for_statement (identifier_node) identifier_node (subscript (identifier_ast_rootpath) identifier_ast_rootpath (slice (integer_1) integer_1 (colon) colon )slice )subscript (block (if_statement (call (identifier_is_tuple_member_node) identifier_is_tuple_member_node (argument_list (identifier_node) identifier_node )argument_list )call (block (assert_statement (call (attribute (identifier_framework) identifier_framework (identifier_is_tuple) identifier_is_tuple )attribute (argument_list (identifier_current) identifier_current )argument_list )call )assert_statement (with_statement (with_clause (with_item (call (attribute (identifier_util) identifier_util (identifier_LogTime) identifier_LogTime )attribute (argument_list (string_'into tuple') string_'into tuple' )argument_list )call )with_item )with_clause (block (expression_statement (assignment (pattern_list (identifier_thunk) identifier_thunk (identifier_env) identifier_env )pattern_list (call (attribute (identifier_inflated) identifier_inflated (identifier_get_thunk_env) identifier_get_thunk_env )attribute (argument_list (attribute (identifier_node) identifier_node (identifier_name) identifier_name )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_current) identifier_current (call (attribute (identifier_framework) identifier_framework (identifier_eval) identifier_eval )attribute (argument_list (identifier_thunk) identifier_thunk (identifier_env) identifier_env )argument_list )call )assignment )expression_statement )block )with_statement )block (elif_clause (call (attribute (identifier_framework) identifier_framework (identifier_is_list) identifier_is_list )attribute (argument_list (identifier_current) identifier_current )argument_list )call (block (with_statement (with_clause (with_item (call (attribute (identifier_util) identifier_util (identifier_LogTime) identifier_LogTime )attribute (argument_list (string_'eval thing') string_'eval thing' )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_current) identifier_current (call (attribute (identifier_framework) identifier_framework (identifier_eval) identifier_eval )attribute (argument_list (identifier_node) identifier_node (identifier_env) identifier_env )argument_list )call )assignment )expression_statement )block )with_statement )block )elif_clause )if_statement (if_statement (call (attribute (identifier_framework) identifier_framework (identifier_is_tuple) identifier_is_tuple )attribute (argument_list (identifier_current) identifier_current )argument_list )call (block (expression_statement (assignment (identifier_inflated) identifier_inflated (identifier_current) identifier_current )assignment )expression_statement )block )if_statement )block )for_statement )block (except_clause (tuple (attribute (identifier_gcl) identifier_gcl (identifier_EvaluationError) identifier_EvaluationError )attribute (attribute (identifier_ast) identifier_ast (identifier_UnparseableAccess) identifier_UnparseableAccess )attribute )tuple (block (pass_statement )pass_statement )block )except_clause )try_statement (return_statement (identifier_inflated) identifier_inflated )return_statement )block )with_statement )block )function_definition )module
Instantiate a Tuple from a TupleNode. Walking the AST tree upwards, evaluate from the root down again.
(module (function_definition (function_name_url_unescape) function_name_url_unescape (parameters (typed_parameter (identifier_value) identifier_value (type (generic_type (identifier_Union) identifier_Union (type_parameter (type (identifier_str) identifier_str )type (type (identifier_bytes) identifier_bytes )type )type_parameter )generic_type )type )typed_parameter (typed_default_parameter (identifier_encoding) identifier_encoding (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type (string_"utf-8") string_"utf-8" )typed_default_parameter (typed_default_parameter (identifier_plus) identifier_plus (type (identifier_bool) identifier_bool )type (True) True )typed_default_parameter )parameters (type (generic_type (identifier_Union) identifier_Union (type_parameter (type (identifier_str) identifier_str )type (type (identifier_bytes) identifier_bytes )type )type_parameter )generic_type )type (block (if_statement (comparison_operator (identifier_encoding) identifier_encoding (None) None )comparison_operator (block (if_statement (identifier_plus) identifier_plus (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (call (identifier_to_basestring) identifier_to_basestring (argument_list (identifier_value) identifier_value )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_"+") string_"+" (string_" ") string_" " )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (attribute (attribute (identifier_urllib) identifier_urllib (identifier_parse) identifier_parse )attribute (identifier_unquote_to_bytes) identifier_unquote_to_bytes )attribute (argument_list (identifier_value) identifier_value )argument_list )call )return_statement )block (else_clause (block (expression_statement (assignment (identifier_unquote) identifier_unquote (conditional_expression (attribute (attribute (identifier_urllib) identifier_urllib (identifier_parse) identifier_parse )attribute (identifier_unquote_plus) identifier_unquote_plus )attribute (identifier_plus) identifier_plus (attribute (attribute (identifier_urllib) identifier_urllib (identifier_parse) identifier_parse )attribute (identifier_unquote) identifier_unquote )attribute )conditional_expression )assignment )expression_statement (return_statement (call (identifier_unquote) identifier_unquote (argument_list (call (identifier_to_basestring) identifier_to_basestring (argument_list (identifier_value) identifier_value )argument_list )call (keyword_argument (identifier_encoding) identifier_encoding (identifier_encoding) identifier_encoding )keyword_argument )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Decodes the given value from a URL. The argument may be either a byte or unicode string. If encoding is None, the result will be a byte string. Otherwise, the result is a unicode string in the specified encoding. If ``plus`` is true (the default), plus signs will be interpreted as spaces (literal plus signs must be represented as "%2B"). This is appropriate for query strings and form-encoded values but not for the path component of a URL. Note that this default is the reverse of Python's urllib module. .. versionadded:: 3.1 The ``plus`` argument
(module (function_definition (function_name__get_sorted) function_name__get_sorted (parameters (identifier_self) identifier_self (identifier_resources) identifier_resources )parameters (block (expression_statement (assignment (identifier_tmp) identifier_tmp (list )list )assignment )expression_statement (for_statement (identifier_resource) identifier_resource (identifier_resources) identifier_resources (block (expression_statement (assignment (identifier_path) identifier_path (attribute (identifier_resource) identifier_resource (identifier__path) identifier__path )attribute )assignment )expression_statement (expression_statement (assignment (identifier_priority) identifier_priority (binary_operator (binary_operator (call (attribute (identifier_path) identifier_path (identifier_count) identifier_count )attribute (argument_list (string_'/') string_'/' )argument_list )call (integer_10) integer_10 )binary_operator (call (attribute (identifier_path) identifier_path (identifier_count) identifier_count )attribute (argument_list (string_'{') string_'{' )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (call (attribute (identifier_tmp) identifier_tmp (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_priority) identifier_priority (identifier_resource) identifier_resource )tuple )argument_list )call )expression_statement )block )for_statement (return_statement (list_comprehension (identifier_resource) identifier_resource (for_in_clause (pattern_list (identifier_prio) identifier_prio (identifier_resource) identifier_resource )pattern_list (call (identifier_reversed) identifier_reversed (argument_list (call (identifier_sorted) identifier_sorted (argument_list (identifier_tmp) identifier_tmp )argument_list )call )argument_list )call )for_in_clause )list_comprehension )return_statement )block )function_definition )module
Order the resources by priority - the most specific paths come first. :param resources: List of :class:`wsgiservice.resource.Resource` classes to be served by this application.
(module (function_definition (function_name_execute_template) function_name_execute_template (parameters (identifier_self) identifier_self (identifier_template_name) identifier_template_name (identifier_variables) identifier_variables (default_parameter (identifier_args) identifier_args (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_js_text) identifier_js_text (call (attribute (identifier_self) identifier_self (identifier_build_js_from_template) identifier_build_js_from_template )attribute (argument_list (identifier_template_name) identifier_template_name (identifier_variables) identifier_variables )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_execute_script) identifier_execute_script )attribute (argument_list (identifier_js_text) identifier_js_text (identifier_args) identifier_args )argument_list )call )expression_statement )block (except_clause (identifier_WebDriverException) identifier_WebDriverException (block (return_statement (False) False )return_statement )block )except_clause )try_statement (return_statement (True) True )return_statement )block )function_definition )module
Execute script from a template @type template_name: str @value template_name: Script template to implement @type args: dict @value args: Dictionary representing command line args @rtype: bool @rtype: Success or failure
(module (function_definition (function_name__parallel_downloader) function_name__parallel_downloader (parameters (identifier_voxforge_url) identifier_voxforge_url (identifier_archive_dir) identifier_archive_dir (identifier_total) identifier_total (identifier_counter) identifier_counter )parameters (block (function_definition (function_name_download) function_name_download (parameters (identifier_d) identifier_d )parameters (block (expression_statement (assignment (tuple_pattern (identifier_i) identifier_i (identifier_file) identifier_file )tuple_pattern (identifier_d) identifier_d )assignment )expression_statement (expression_statement (assignment (identifier_download_url) identifier_download_url (binary_operator (binary_operator (identifier_voxforge_url) identifier_voxforge_url (string_'/') string_'/' )binary_operator (identifier_file) identifier_file )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_c) identifier_c (call (attribute (identifier_counter) identifier_counter (identifier_increment) identifier_increment )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_'Downloading file {} ({}/{})...') string_'Downloading file {} ({}/{})...' (identifier_format) identifier_format )attribute (argument_list (binary_operator (identifier_i) identifier_i (integer_1) integer_1 )binary_operator (identifier_c) identifier_c (identifier_total) identifier_total )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_maybe_download) identifier_maybe_download (argument_list (call (identifier_filename_of) identifier_filename_of (argument_list (identifier_download_url) identifier_download_url )argument_list )call (identifier_archive_dir) identifier_archive_dir (identifier_download_url) identifier_download_url )argument_list )call )expression_statement )block )function_definition (return_statement (identifier_download) identifier_download )return_statement )block )function_definition )module
Generate a function to download a file based on given parameters This works by currying the above given arguments into a closure in the form of the following function. :param voxforge_url: the base voxforge URL :param archive_dir: the location to store the downloaded file :param total: the total number of files to download :param counter: an atomic counter to keep track of # of downloaded files :return: a function that actually downloads a file given these params
(module (function_definition (function_name_dimensions) function_name_dimensions (parameters (identifier_self) identifier_self (identifier_dims) identifier_dims )parameters (block (expression_statement (assignment (pattern_list (identifier_nx) identifier_nx (identifier_ny) identifier_ny (identifier_nz) identifier_nz )pattern_list (expression_list (subscript (identifier_dims) identifier_dims (integer_0) integer_0 )subscript (subscript (identifier_dims) identifier_dims (integer_1) integer_1 )subscript (subscript (identifier_dims) identifier_dims (integer_2) integer_2 )subscript )expression_list )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_SetDimensions) identifier_SetDimensions )attribute (argument_list (identifier_nx) identifier_nx (identifier_ny) identifier_ny (identifier_nz) identifier_nz )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_Modified) identifier_Modified )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Sets the dataset dimensions. Pass a length three tuple of integers
(module (function_definition (function_name_mkdir) function_name_mkdir (parameters (identifier_dirname) identifier_dirname )parameters (block (expression_statement (assignment (identifier_dir_list) identifier_dir_list (list )list )assignment )expression_statement (while_statement (not_operator (call (attribute (identifier_client) identifier_client (identifier_isdir) identifier_isdir )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_dir_list) identifier_dir_list (identifier_append) identifier_append )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )expression_statement (expression_statement (assignment (identifier_dirname) identifier_dirname (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )assignment )expression_statement )block )while_statement (while_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_dir_list) identifier_dir_list )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_info) identifier_info )attribute (argument_list (binary_operator (string_"Creating directory: %s") string_"Creating directory: %s" (parenthesized_expression (subscript (identifier_dir_list) identifier_dir_list (unary_operator (integer_1) integer_1 )unary_operator )subscript )parenthesized_expression )binary_operator )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_client) identifier_client (identifier_mkdir) identifier_mkdir )attribute (argument_list (call (attribute (identifier_dir_list) identifier_dir_list (identifier_pop) identifier_pop )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_IOError) identifier_IOError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (if_statement (comparison_operator (attribute (identifier_e) identifier_e (identifier_errno) identifier_errno )attribute (attribute (identifier_errno) identifier_errno (identifier_EEXIST) identifier_EEXIST )attribute )comparison_operator (block (pass_statement )pass_statement )block (else_clause (block (raise_statement (identifier_e) identifier_e )raise_statement )block )else_clause )if_statement )block )except_clause )try_statement )block )while_statement )block )function_definition )module
make directory tree in vospace. @param dirname: name of the directory to make
(module (function_definition (function_name_get_outcome) function_name_get_outcome (parameters (identifier_self) identifier_self (identifier_outcome) identifier_outcome )parameters (block (import_from_statement (dotted_name (identifier_canvasapi) identifier_canvasapi (identifier_outcome) identifier_outcome )dotted_name (dotted_name (identifier_Outcome) identifier_Outcome )dotted_name )import_from_statement (expression_statement (assignment (identifier_outcome_id) identifier_outcome_id (call (identifier_obj_or_id) identifier_obj_or_id (argument_list (identifier_outcome) identifier_outcome (string_"outcome") string_"outcome" (tuple (identifier_Outcome) identifier_Outcome )tuple )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (attribute (identifier_self) identifier_self (identifier___requester) identifier___requester )attribute (identifier_request) identifier_request )attribute (argument_list (string_'GET') string_'GET' (call (attribute (string_'outcomes/{}') string_'outcomes/{}' (identifier_format) identifier_format )attribute (argument_list (identifier_outcome_id) identifier_outcome_id )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (call (identifier_Outcome) identifier_Outcome (argument_list (attribute (identifier_self) identifier_self (identifier___requester) identifier___requester )attribute (call (attribute (identifier_response) identifier_response (identifier_json) identifier_json )attribute (argument_list )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Returns the details of the outcome with the given id. :calls: `GET /api/v1/outcomes/:id \ <https://canvas.instructure.com/doc/api/outcomes.html#method.outcomes_api.show>`_ :param outcome: The outcome object or ID to return. :type outcome: :class:`canvasapi.outcome.Outcome` or int :returns: An Outcome object. :rtype: :class:`canvasapi.outcome.Outcome`
(module (function_definition (function_name_tree_to_xml) function_name_tree_to_xml (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_filter_remove) identifier_filter_remove )attribute (argument_list (keyword_argument (identifier_remember) identifier_remember (True) True )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_tree) identifier_tree (attribute (identifier_self) identifier_self (identifier_treeview) identifier_treeview )attribute )assignment )expression_statement (expression_statement (assignment (identifier_root) identifier_root (call (attribute (identifier_ET) identifier_ET (identifier_Element) identifier_Element )attribute (argument_list (string_'interface') string_'interface' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_items) identifier_items (call (attribute (identifier_tree) identifier_tree (identifier_get_children) identifier_get_children )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_item) identifier_item (identifier_items) identifier_items (block (expression_statement (assignment (identifier_node) identifier_node (call (attribute (identifier_self) identifier_self (identifier_tree_node_to_xml) identifier_tree_node_to_xml )attribute (argument_list (string_'') string_'' (identifier_item) identifier_item )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_root) identifier_root (identifier_append) identifier_append )attribute (argument_list (identifier_node) identifier_node )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_filter_restore) identifier_filter_restore )attribute (argument_list )argument_list )call )expression_statement (return_statement (call (attribute (identifier_ET) identifier_ET (identifier_ElementTree) identifier_ElementTree )attribute (argument_list (identifier_root) identifier_root )argument_list )call )return_statement )block )function_definition )module
Traverses treeview and generates a ElementTree object
(module (function_definition (function_name_getall) function_name_getall (parameters (identifier_self) identifier_self (identifier_key) identifier_key (default_parameter (identifier_default) identifier_default (identifier__marker) identifier__marker )default_parameter )parameters (block (expression_statement (assignment (identifier_identity) identifier_identity (call (attribute (identifier_self) identifier_self (identifier__title) identifier__title )attribute (argument_list (identifier_key) identifier_key )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (list_comprehension (identifier_v) identifier_v (for_in_clause (pattern_list (identifier_i) identifier_i (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (attribute (attribute (identifier_self) identifier_self (identifier__impl) identifier__impl )attribute (identifier__items) identifier__items )attribute )for_in_clause (if_clause (comparison_operator (identifier_i) identifier_i (identifier_identity) identifier_identity )comparison_operator )if_clause )list_comprehension )assignment )expression_statement (if_statement (identifier_res) identifier_res (block (return_statement (identifier_res) identifier_res )return_statement )block )if_statement (if_statement (boolean_operator (not_operator (identifier_res) identifier_res )not_operator (comparison_operator (identifier_default) identifier_default (identifier__marker) identifier__marker )comparison_operator )boolean_operator (block (return_statement (identifier_default) identifier_default )return_statement )block )if_statement (raise_statement (call (identifier_KeyError) identifier_KeyError (argument_list (binary_operator (string_'Key not found: %r') string_'Key not found: %r' (identifier_key) identifier_key )binary_operator )argument_list )call )raise_statement )block )function_definition )module
Return a list of all values matching the key.
(module (function_definition (function_name_get_item_ids_for_assessment_part) function_name_get_item_ids_for_assessment_part (parameters (identifier_self) identifier_self (identifier_assessment_part_id) identifier_assessment_part_id )parameters (block (expression_statement (assignment (identifier_item_ids) identifier_item_ids (list )list )assignment )expression_statement (for_statement (identifier_question_map) identifier_question_map (subscript (attribute (identifier_self) identifier_self (identifier__my_map) identifier__my_map )attribute (string_'questions') string_'questions' )subscript (block (if_statement (comparison_operator (subscript (identifier_question_map) identifier_question_map (string_'assessmentPartId') string_'assessmentPartId' )subscript (call (identifier_str) identifier_str (argument_list (identifier_assessment_part_id) identifier_assessment_part_id )argument_list )call )comparison_operator (block (expression_statement (call (attribute (identifier_item_ids) identifier_item_ids (identifier_append) identifier_append )attribute (argument_list (call (identifier_Id) identifier_Id (argument_list (subscript (identifier_question_map) identifier_question_map (string_'itemId') string_'itemId' )subscript )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (identifier_item_ids) identifier_item_ids )return_statement )block )function_definition )module
convenience method returns item ids associated with an assessment_part_id
(module (function_definition (function_name_get_edit_url_link) function_name_get_edit_url_link (parameters (identifier_self) identifier_self (default_parameter (identifier_text) identifier_text (None) None )default_parameter (default_parameter (identifier_cls) identifier_cls (None) None )default_parameter (default_parameter (identifier_icon_class) identifier_icon_class (None) None )default_parameter (dictionary_splat_pattern (identifier_attrs) identifier_attrs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (identifier_text) identifier_text (None) None )comparison_operator (block (expression_statement (assignment (identifier_text) identifier_text (string_'Edit') string_'Edit' )assignment )expression_statement )block )if_statement (return_statement (call (identifier_build_link) identifier_build_link (argument_list (keyword_argument (identifier_href) identifier_href (call (attribute (identifier_self) identifier_self (identifier_get_edit_url) identifier_get_edit_url )attribute (argument_list )argument_list )call )keyword_argument (keyword_argument (identifier_text) identifier_text (identifier_text) identifier_text )keyword_argument (keyword_argument (identifier_cls) identifier_cls (identifier_cls) identifier_cls )keyword_argument (keyword_argument (identifier_icon_class) identifier_icon_class (identifier_icon_class) identifier_icon_class )keyword_argument (dictionary_splat (identifier_attrs) identifier_attrs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Gets the html edit link for the object.
(module (function_definition (function_name_external2internal) function_name_external2internal (parameters (identifier_xe) identifier_xe (identifier_bounds) identifier_bounds )parameters (block (expression_statement (assignment (identifier_xi) identifier_xi (call (attribute (identifier_np) identifier_np (identifier_empty_like) identifier_empty_like )attribute (argument_list (identifier_xe) identifier_xe )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (tuple_pattern (identifier_v) identifier_v (identifier_bound) identifier_bound )tuple_pattern )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (call (identifier_zip) identifier_zip (argument_list (identifier_xe) identifier_xe (identifier_bounds) identifier_bounds )argument_list )call )argument_list )call (block (expression_statement (assignment (identifier_a) identifier_a (subscript (identifier_bound) identifier_bound (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_b) identifier_b (subscript (identifier_bound) identifier_bound (integer_1) integer_1 )subscript )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_a) identifier_a (None) None )comparison_operator (comparison_operator (identifier_b) identifier_b (None) None )comparison_operator )boolean_operator (block (expression_statement (assignment (subscript (identifier_xi) identifier_xi (identifier_i) identifier_i )subscript (identifier_v) identifier_v )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_b) identifier_b (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_xi) identifier_xi (identifier_i) identifier_i )subscript (call (attribute (identifier_np) identifier_np (identifier_sqrt) identifier_sqrt )attribute (argument_list (binary_operator (binary_operator (parenthesized_expression (binary_operator (binary_operator (identifier_v) identifier_v (identifier_a) identifier_a )binary_operator (float_1.) float_1. )binary_operator )parenthesized_expression (float_2.) float_2. )binary_operator (integer_1) integer_1 )binary_operator )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_a) identifier_a (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_xi) identifier_xi (identifier_i) identifier_i )subscript (call (attribute (identifier_np) identifier_np (identifier_sqrt) identifier_sqrt )attribute (argument_list (binary_operator (binary_operator (parenthesized_expression (binary_operator (binary_operator (identifier_b) identifier_b (identifier_v) identifier_v )binary_operator (float_1.) float_1. )binary_operator )parenthesized_expression (float_2.) float_2. )binary_operator (integer_1) integer_1 )binary_operator )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (assignment (subscript (identifier_xi) identifier_xi (identifier_i) identifier_i )subscript (call (attribute (identifier_np) identifier_np (identifier_arcsin) identifier_arcsin )attribute (argument_list (binary_operator (parenthesized_expression (binary_operator (binary_operator (float_2.) float_2. (parenthesized_expression (binary_operator (identifier_v) identifier_v (identifier_a) identifier_a )binary_operator )parenthesized_expression )binary_operator (parenthesized_expression (binary_operator (identifier_b) identifier_b (identifier_a) identifier_a )binary_operator )parenthesized_expression )binary_operator )parenthesized_expression (float_1.) float_1. )binary_operator )argument_list )call )assignment )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_xi) identifier_xi )return_statement )block )function_definition )module
Convert a series of external variables to internal variables
(module (function_definition (function_name_unset) function_name_unset (parameters (identifier_self) identifier_self (identifier_key) identifier_key )parameters (block (expression_statement (assignment (identifier_params) identifier_params (dictionary (pair (string_'key') string_'key' (identifier_key) identifier_key )pair )dictionary )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_delete) identifier_delete )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier__url) identifier__url )attribute (argument_list )argument_list )call (keyword_argument (identifier_params) identifier_params (identifier_params) identifier_params )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Removes the rules config for a given key. Args: key (str): rules config key to remove See: https://auth0.com/docs/api/management/v2#!/Rules_Configs/delete_rules_configs_by_key