sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_get_summary) function_name_get_summary (parameters (identifier_session) identifier_session )parameters (block (expression_statement (assignment (identifier_profile) identifier_profile (call (identifier_get_profile) identifier_get_profile (argument_list (identifier_session) identifier_session )argument_list )call )assignment )expression_statement (return_statement (dictionary (pair (string_'user') string_'user' (dictionary (pair (string_'email') string_'email' (subscript (subscript (identifier_profile) identifier_profile (string_'userProfile') string_'userProfile' )subscript (string_'eMail') string_'eMail' )subscript )pair (pair (string_'name') string_'name' (call (attribute (string_'{} {}') string_'{} {}' (identifier_format) identifier_format )attribute (argument_list (subscript (subscript (identifier_profile) identifier_profile (string_'userProfile') string_'userProfile' )subscript (string_'firstName') string_'firstName' )subscript (subscript (subscript (identifier_profile) identifier_profile (string_'userProfile') string_'userProfile' )subscript (string_'lastName') string_'lastName' )subscript )argument_list )call )pair )dictionary )pair (pair (string_'vehicles') string_'vehicles' (list_comprehension (dictionary (pair (string_'vin') string_'vin' (subscript (identifier_vehicle) identifier_vehicle (string_'vin') string_'vin' )subscript )pair (pair (string_'year') string_'year' (subscript (identifier_vehicle) identifier_vehicle (string_'year') string_'year' )subscript )pair (pair (string_'make') string_'make' (subscript (identifier_vehicle) identifier_vehicle (string_'make') string_'make' )subscript )pair (pair (string_'model') string_'model' (call (identifier__get_model) identifier__get_model (argument_list (identifier_vehicle) identifier_vehicle )argument_list )call )pair (pair (string_'odometer') string_'odometer' (subscript (identifier_vehicle) identifier_vehicle (string_'odometerMileage') string_'odometerMileage' )subscript )pair )dictionary (for_in_clause (identifier_vehicle) identifier_vehicle (subscript (identifier_profile) identifier_profile (string_'vehicles') string_'vehicles' )subscript )for_in_clause )list_comprehension )pair )dictionary )return_statement )block )function_definition )module
Get vehicle summary.
(module (function_definition (function_name_init) function_name_init (parameters (identifier_directory) identifier_directory )parameters (block (expression_statement (assignment (identifier_username) identifier_username (call (attribute (identifier_click) identifier_click (identifier_prompt) identifier_prompt )attribute (argument_list (string_"Input your username") string_"Input your username" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_password) identifier_password (call (attribute (identifier_click) identifier_click (identifier_prompt) identifier_prompt )attribute (argument_list (string_"Input your password") string_"Input your password" (keyword_argument (identifier_hide_input) identifier_hide_input (True) True )keyword_argument (keyword_argument (identifier_confirmation_prompt) identifier_confirmation_prompt (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_log_directory) identifier_log_directory (call (attribute (identifier_click) identifier_click (identifier_prompt) identifier_prompt )attribute (argument_list (string_"Input your log directory") string_"Input your log directory" )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (attribute (identifier_path) identifier_path (identifier_exists) identifier_exists )attribute (argument_list (identifier_log_directory) identifier_log_directory )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_sys) identifier_sys (identifier_exit) identifier_exit )attribute (argument_list (string_"Invalid log directory, please have a check.") string_"Invalid log directory, please have a check." )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_config_file_path) identifier_config_file_path (call (attribute (identifier_path) identifier_path (identifier_join) identifier_join )attribute (argument_list (identifier_directory) identifier_directory (string_'v2ex_config.json') string_'v2ex_config.json' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_config) identifier_config (dictionary (pair (string_"username") string_"username" (identifier_username) identifier_username )pair (pair (string_"password") string_"password" (identifier_password) identifier_password )pair (pair (string_"log_directory") string_"log_directory" (call (attribute (identifier_path) identifier_path (identifier_abspath) identifier_abspath )attribute (argument_list (identifier_log_directory) identifier_log_directory )argument_list )call )pair )dictionary )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_config_file_path) identifier_config_file_path (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 (identifier_config) identifier_config (identifier_f) identifier_f )argument_list )call )expression_statement )block )with_statement (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (call (attribute (string_"Init the config file at: {0}") string_"Init the config file at: {0}" (identifier_format) identifier_format )attribute (argument_list (identifier_config_file_path) identifier_config_file_path )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Init the config fle.
(module (function_definition (function_name_select) function_name_select (parameters (identifier_table) identifier_table (default_parameter (identifier_cols) identifier_cols (string_"*") string_"*" )default_parameter (default_parameter (identifier_where) identifier_where (tuple )tuple )default_parameter (default_parameter (identifier_group) identifier_group (string_"") string_"" )default_parameter (default_parameter (identifier_order) identifier_order (tuple )tuple )default_parameter (default_parameter (identifier_limit) identifier_limit (tuple )tuple )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_where) identifier_where (call (attribute (call (identifier_dict) identifier_dict (argument_list (identifier_where) identifier_where (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call (identifier_items) identifier_items )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_sql) identifier_sql (identifier_args) identifier_args )pattern_list (call (identifier_makeSQL) identifier_makeSQL (argument_list (string_"SELECT") string_"SELECT" (identifier_table) identifier_table (identifier_cols) identifier_cols (identifier_where) identifier_where (identifier_group) identifier_group (identifier_order) identifier_order (identifier_limit) identifier_limit )argument_list )call )assignment )expression_statement (return_statement (call (identifier_execute) identifier_execute (argument_list (identifier_sql) identifier_sql (identifier_args) identifier_args )argument_list )call )return_statement )block )function_definition )module
Convenience wrapper for database SELECT.
(module (function_definition (function_name_set_token) function_name_set_token (parameters (identifier_self) identifier_self (identifier_token) identifier_token )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_token) identifier_token )attribute (identifier_token) identifier_token )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_set_header) identifier_set_header )attribute (argument_list (string_'Authorization') string_'Authorization' (call (attribute (string_"Bearer {}") string_"Bearer {}" (identifier_format) identifier_format )attribute (argument_list (identifier_token) identifier_token )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Set the token for the v20 context Args: token: The token used to access the v20 REST api
(module (function_definition (function_name_sg_input) function_name_sg_input (parameters (default_parameter (identifier_shape) identifier_shape (None) None )default_parameter (default_parameter (identifier_dtype) identifier_dtype (identifier_sg_floatx) identifier_sg_floatx )default_parameter (default_parameter (identifier_name) identifier_name (None) None )default_parameter )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (if_statement (comparison_operator (identifier_shape) identifier_shape (None) None )comparison_operator (block (return_statement (call (attribute (identifier_tf) identifier_tf (identifier_placeholder) identifier_placeholder )attribute (argument_list (identifier_dtype) identifier_dtype (keyword_argument (identifier_shape) identifier_shape (None) None )keyword_argument (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument )argument_list )call )return_statement )block (else_clause (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_shape) identifier_shape (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call )not_operator (block (expression_statement (assignment (identifier_shape) identifier_shape (list (identifier_shape) identifier_shape )list )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_tf) identifier_tf (identifier_placeholder) identifier_placeholder )attribute (argument_list (identifier_dtype) identifier_dtype (keyword_argument (identifier_shape) identifier_shape (binary_operator (list (None) None )list (call (identifier_list) identifier_list (argument_list (identifier_shape) identifier_shape )argument_list )call )binary_operator )keyword_argument (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
r"""Creates a placeholder. Args: shape: A tuple/list of integers. If an integers is given, it will turn to a list. dtype: A data type. Default is float32. name: A name for the placeholder. Returns: A wrapped placeholder `Tensor`.
(module (function_definition (function_name_add_column) function_name_add_column (parameters (identifier_self) identifier_self (identifier_func) identifier_func (default_parameter (identifier_name) identifier_name (None) None )default_parameter (default_parameter (identifier_show) identifier_show (True) True )default_parameter )parameters (block (assert_statement (identifier_func) identifier_func )assert_statement (expression_statement (assignment (identifier_name) identifier_name (boolean_operator (identifier_name) identifier_name (attribute (identifier_func) identifier_func (identifier___name__) identifier___name__ )attribute )boolean_operator )assignment )expression_statement (if_statement (comparison_operator (identifier_name) identifier_name (string_'<lambda>') string_'<lambda>' )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"Please provide a valid name for ") string_"Please provide a valid name for " (identifier_name) identifier_name )binary_operator )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_d) identifier_d (dictionary (pair (string_'func') string_'func' (identifier_func) identifier_func )pair (pair (string_'show') string_'show' (identifier_show) identifier_show )pair )dictionary )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__columns) identifier__columns )attribute (identifier_name) identifier_name )subscript (identifier_d) identifier_d )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (identifier__create_json_dict) identifier__create_json_dict (argument_list (keyword_argument (identifier_cols) identifier_cols (attribute (identifier_self) identifier_self (identifier_column_names) identifier_column_names )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_eval_js) identifier_eval_js )attribute (argument_list (call (attribute (string_'table.setHeaders({});') string_'table.setHeaders({});' (identifier_format) identifier_format )attribute (argument_list (identifier_data) identifier_data )argument_list )call )argument_list )call )expression_statement (return_statement (identifier_func) identifier_func )return_statement )block )function_definition )module
Add a column function which takes an id as argument and returns a value.
(module (function_definition (function_name_makeCys) function_name_makeCys (parameters (identifier_segID) identifier_segID (identifier_N) identifier_N (identifier_CA) identifier_CA (identifier_C) identifier_C (identifier_O) identifier_O (identifier_geo) identifier_geo )parameters (block (expression_statement (assignment (identifier_CA_CB_length) identifier_CA_CB_length (attribute (identifier_geo) identifier_geo (identifier_CA_CB_length) identifier_CA_CB_length )attribute )assignment )expression_statement (expression_statement (assignment (identifier_C_CA_CB_angle) identifier_C_CA_CB_angle (attribute (identifier_geo) identifier_geo (identifier_C_CA_CB_angle) identifier_C_CA_CB_angle )attribute )assignment )expression_statement (expression_statement (assignment (identifier_N_C_CA_CB_diangle) identifier_N_C_CA_CB_diangle (attribute (identifier_geo) identifier_geo (identifier_N_C_CA_CB_diangle) identifier_N_C_CA_CB_diangle )attribute )assignment )expression_statement (expression_statement (assignment (identifier_CB_SG_length) identifier_CB_SG_length (attribute (identifier_geo) identifier_geo (identifier_CB_SG_length) identifier_CB_SG_length )attribute )assignment )expression_statement (expression_statement (assignment (identifier_CA_CB_SG_angle) identifier_CA_CB_SG_angle (attribute (identifier_geo) identifier_geo (identifier_CA_CB_SG_angle) identifier_CA_CB_SG_angle )attribute )assignment )expression_statement (expression_statement (assignment (identifier_N_CA_CB_SG_diangle) identifier_N_CA_CB_SG_diangle (attribute (identifier_geo) identifier_geo (identifier_N_CA_CB_SG_diangle) identifier_N_CA_CB_SG_diangle )attribute )assignment )expression_statement (expression_statement (assignment (identifier_carbon_b) identifier_carbon_b (call (identifier_calculateCoordinates) identifier_calculateCoordinates (argument_list (identifier_N) identifier_N (identifier_C) identifier_C (identifier_CA) identifier_CA (identifier_CA_CB_length) identifier_CA_CB_length (identifier_C_CA_CB_angle) identifier_C_CA_CB_angle (identifier_N_C_CA_CB_diangle) identifier_N_C_CA_CB_diangle )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_CB) identifier_CB (call (identifier_Atom) identifier_Atom (argument_list (string_"CB") string_"CB" (identifier_carbon_b) identifier_carbon_b (float_0.0) float_0.0 (float_1.0) float_1.0 (string_" ") string_" " (string_" CB") string_" CB" (integer_0) integer_0 (string_"C") string_"C" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_sulfur_g) identifier_sulfur_g (call (identifier_calculateCoordinates) identifier_calculateCoordinates (argument_list (identifier_N) identifier_N (identifier_CA) identifier_CA (identifier_CB) identifier_CB (identifier_CB_SG_length) identifier_CB_SG_length (identifier_CA_CB_SG_angle) identifier_CA_CB_SG_angle (identifier_N_CA_CB_SG_diangle) identifier_N_CA_CB_SG_diangle )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_SG) identifier_SG (call (identifier_Atom) identifier_Atom (argument_list (string_"SG") string_"SG" (identifier_sulfur_g) identifier_sulfur_g (float_0.0) float_0.0 (float_1.0) float_1.0 (string_" ") string_" " (string_" SG") string_" SG" (integer_0) integer_0 (string_"S") string_"S" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (call (identifier_Residue) identifier_Residue (argument_list (tuple (string_' ') string_' ' (identifier_segID) identifier_segID (string_' ') string_' ' )tuple (string_"CYS") string_"CYS" (string_' ') string_' ' )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_res) identifier_res (identifier_add) identifier_add )attribute (argument_list (identifier_N) identifier_N )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_res) identifier_res (identifier_add) identifier_add )attribute (argument_list (identifier_CA) identifier_CA )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_res) identifier_res (identifier_add) identifier_add )attribute (argument_list (identifier_C) identifier_C )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_res) identifier_res (identifier_add) identifier_add )attribute (argument_list (identifier_O) identifier_O )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_res) identifier_res (identifier_add) identifier_add )attribute (argument_list (identifier_CB) identifier_CB )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_res) identifier_res (identifier_add) identifier_add )attribute (argument_list (identifier_SG) identifier_SG )argument_list )call )expression_statement (return_statement (identifier_res) identifier_res )return_statement )block )function_definition )module
Creates a Cysteine residue
(module (function_definition (function_name_get_brizo_url) function_name_get_brizo_url (parameters (identifier_config) identifier_config )parameters (block (expression_statement (assignment (identifier_brizo_url) identifier_brizo_url (string_'http://localhost:8030') string_'http://localhost:8030' )assignment )expression_statement (if_statement (call (attribute (identifier_config) identifier_config (identifier_has_option) identifier_has_option )attribute (argument_list (string_'resources') string_'resources' (string_'brizo.url') string_'brizo.url' )argument_list )call (block (expression_statement (assignment (identifier_brizo_url) identifier_brizo_url (boolean_operator (call (attribute (identifier_config) identifier_config (identifier_get) identifier_get )attribute (argument_list (string_'resources') string_'resources' (string_'brizo.url') string_'brizo.url' )argument_list )call (identifier_brizo_url) identifier_brizo_url )boolean_operator )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_brizo_path) identifier_brizo_path (string_'/api/v1/brizo') string_'/api/v1/brizo' )assignment )expression_statement (return_statement (string_f'{brizo_url}{brizo_path}') string_f'{brizo_url}{brizo_path}' )return_statement )block )function_definition )module
Return the Brizo component url. :param config: Config :return: Url, str
(module (function_definition (function_name_destroy) function_name_destroy (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_setWebView) identifier_setWebView )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_widget) identifier_widget )attribute (None) None )argument_list )call )expression_statement (delete_statement (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute )delete_statement )block )if_statement (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_AndroidWebView) identifier_AndroidWebView (identifier_self) identifier_self )argument_list )call (identifier_destroy) identifier_destroy )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Destroy the client
(module (function_definition (function_name_transform_aglistener_output) function_name_transform_aglistener_output (parameters (identifier_result) identifier_result )parameters (block (import_from_statement (dotted_name (identifier_collections) identifier_collections )dotted_name (dotted_name (identifier_OrderedDict) identifier_OrderedDict )dotted_name )import_from_statement (import_from_statement (dotted_name (identifier_msrestazure) identifier_msrestazure (identifier_tools) identifier_tools )dotted_name (dotted_name (identifier_parse_resource_id) identifier_parse_resource_id )dotted_name )import_from_statement (try_statement (block (expression_statement (assignment (identifier_resource_group) identifier_resource_group (boolean_operator (call (identifier_getattr) identifier_getattr (argument_list (identifier_result) identifier_result (string_'resource_group') string_'resource_group' (None) None )argument_list )call (subscript (call (identifier_parse_resource_id) identifier_parse_resource_id (argument_list (attribute (identifier_result) identifier_result (identifier_id) identifier_id )attribute )argument_list )call (string_'resource_group') string_'resource_group' )subscript )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_output) identifier_output (call (identifier_OrderedDict) identifier_OrderedDict (argument_list (list (tuple (string_'id') string_'id' (attribute (identifier_result) identifier_result (identifier_id) identifier_id )attribute )tuple (tuple (string_'name') string_'name' (attribute (identifier_result) identifier_result (identifier_name) identifier_name )attribute )tuple (tuple (string_'provisioningState') string_'provisioningState' (attribute (identifier_result) identifier_result (identifier_provisioning_state) identifier_provisioning_state )attribute )tuple (tuple (string_'port') string_'port' (attribute (identifier_result) identifier_result (identifier_port) identifier_port )attribute )tuple (tuple (string_'resourceGroup') string_'resourceGroup' (identifier_resource_group) identifier_resource_group )tuple )list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_result) identifier_result (identifier_load_balancer_configurations) identifier_load_balancer_configurations )attribute (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_output) identifier_output (string_'loadBalancerConfigurations') string_'loadBalancerConfigurations' )subscript (call (identifier_format_load_balancer_configuration_list) identifier_format_load_balancer_configuration_list (argument_list (attribute (identifier_result) identifier_result (identifier_load_balancer_configurations) identifier_load_balancer_configurations )attribute )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (identifier_output) identifier_output )return_statement )block (except_clause (identifier_AttributeError) identifier_AttributeError (block (return_statement (identifier_result) identifier_result )return_statement )block )except_clause )try_statement )block )function_definition )module
Transforms the result of Availability Group Listener to eliminate unnecessary parameters.
(module (function_definition (function_name_dist) function_name_dist (parameters (identifier_x1) identifier_x1 (default_parameter (identifier_x2) identifier_x2 (None) None )default_parameter (default_parameter (identifier_metric) identifier_metric (string_'sqeuclidean') string_'sqeuclidean' )default_parameter (default_parameter (identifier_to_numpy) identifier_to_numpy (True) True )default_parameter )parameters (block (if_statement (comparison_operator (identifier_x2) identifier_x2 (None) None )comparison_operator (block (expression_statement (assignment (identifier_x2) identifier_x2 (identifier_x1) identifier_x1 )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_metric) identifier_metric (string_"sqeuclidean") string_"sqeuclidean" )comparison_operator (block (return_statement (call (identifier_euclidean_distances) identifier_euclidean_distances (argument_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 (keyword_argument (identifier_squared) identifier_squared (True) True )keyword_argument (keyword_argument (identifier_to_numpy) identifier_to_numpy (identifier_to_numpy) identifier_to_numpy )keyword_argument )argument_list )call )return_statement )block (elif_clause (comparison_operator (identifier_metric) identifier_metric (string_"euclidean") string_"euclidean" )comparison_operator (block (return_statement (call (identifier_euclidean_distances) identifier_euclidean_distances (argument_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 (keyword_argument (identifier_squared) identifier_squared (False) False )keyword_argument (keyword_argument (identifier_to_numpy) identifier_to_numpy (identifier_to_numpy) identifier_to_numpy )keyword_argument )argument_list )call )return_statement )block )elif_clause (else_clause (block (raise_statement (identifier_NotImplementedError) identifier_NotImplementedError )raise_statement )block )else_clause )if_statement )block )function_definition )module
Compute distance between samples in x1 and x2 on gpu Parameters ---------- x1 : np.array (n1,d) matrix with n1 samples of size d x2 : np.array (n2,d), optional matrix with n2 samples of size d (if None then x2=x1) metric : str Metric from 'sqeuclidean', 'euclidean', Returns ------- M : np.array (n1,n2) distance matrix computed with given metric
(module (function_definition (function_name_get_network) function_name_get_network (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_ref_key) identifier_ref_key (attribute (identifier_self) identifier_self (identifier_ref_key) identifier_ref_key )attribute )assignment )expression_statement (if_statement (comparison_operator (identifier_ref_key) identifier_ref_key (string_'NETWORK') string_'NETWORK' )comparison_operator (block (return_statement (attribute (identifier_self) identifier_self (identifier_network) identifier_network )attribute )return_statement )block (elif_clause (comparison_operator (identifier_ref_key) identifier_ref_key (string_'NODE') string_'NODE' )comparison_operator (block (return_statement (attribute (attribute (identifier_self) identifier_self (identifier_node) identifier_node )attribute (identifier_network) identifier_network )attribute )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_ref_key) identifier_ref_key (string_'LINK') string_'LINK' )comparison_operator (block (return_statement (attribute (attribute (identifier_self) identifier_self (identifier_link) identifier_link )attribute (identifier_network) identifier_network )attribute )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_ref_key) identifier_ref_key (string_'GROUP') string_'GROUP' )comparison_operator (block (return_statement (attribute (attribute (identifier_self) identifier_self (identifier_group) identifier_group )attribute (identifier_network) identifier_network )attribute )return_statement )block )elif_clause (elif_clause (comparison_operator (identifier_ref_key) identifier_ref_key (string_'PROJECT') string_'PROJECT' )comparison_operator (block (return_statement (None) None )return_statement )block )elif_clause )if_statement )block )function_definition )module
Get the network that this resource attribute is in.
(module (function_definition (function_name_setup_address) function_name_setup_address (parameters (identifier_self) identifier_self (identifier_name) identifier_name (default_parameter (identifier_address) identifier_address (identifier_default) identifier_default )default_parameter (default_parameter (identifier_transact) identifier_transact (dictionary )dictionary )default_parameter )parameters (block (expression_statement (assignment (identifier_owner) identifier_owner (call (attribute (identifier_self) identifier_self (identifier_setup_owner) identifier_setup_owner )attribute (argument_list (identifier_name) identifier_name (keyword_argument (identifier_transact) identifier_transact (identifier_transact) identifier_transact )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__assert_control) identifier__assert_control )attribute (argument_list (identifier_owner) identifier_owner (identifier_name) identifier_name )argument_list )call )expression_statement (if_statement (call (identifier_is_none_or_zero_address) identifier_is_none_or_zero_address (argument_list (identifier_address) identifier_address )argument_list )call (block (expression_statement (assignment (identifier_address) identifier_address (None) None )assignment )expression_statement )block (elif_clause (comparison_operator (identifier_address) identifier_address (identifier_default) identifier_default )comparison_operator (block (expression_statement (assignment (identifier_address) identifier_address (identifier_owner) identifier_owner )assignment )expression_statement )block )elif_clause (elif_clause (call (identifier_is_binary_address) identifier_is_binary_address (argument_list (identifier_address) identifier_address )argument_list )call (block (expression_statement (assignment (identifier_address) identifier_address (call (identifier_to_checksum_address) identifier_to_checksum_address (argument_list (identifier_address) identifier_address )argument_list )call )assignment )expression_statement )block )elif_clause (elif_clause (not_operator (call (identifier_is_checksum_address) identifier_is_checksum_address (argument_list (identifier_address) identifier_address )argument_list )call )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"You must supply the address in checksum format") string_"You must supply the address in checksum format" )argument_list )call )raise_statement )block )elif_clause )if_statement (if_statement (comparison_operator (call (attribute (identifier_self) identifier_self (identifier_address) identifier_address )attribute (argument_list (identifier_name) identifier_name )argument_list )call (identifier_address) identifier_address )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (if_statement (comparison_operator (identifier_address) identifier_address (None) None )comparison_operator (block (expression_statement (assignment (identifier_address) identifier_address (identifier_EMPTY_ADDR_HEX) identifier_EMPTY_ADDR_HEX )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (identifier_transact) identifier_transact (string_'from') string_'from' )subscript (identifier_owner) identifier_owner )assignment )expression_statement (expression_statement (assignment (identifier_resolver) identifier_resolver (call (attribute (identifier_self) identifier_self (identifier__set_resolver) identifier__set_resolver )attribute (argument_list (identifier_name) identifier_name (keyword_argument (identifier_transact) identifier_transact (identifier_transact) identifier_transact )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (call (attribute (attribute (identifier_resolver) identifier_resolver (identifier_functions) identifier_functions )attribute (identifier_setAddr) identifier_setAddr )attribute (argument_list (call (identifier_raw_name_to_hash) identifier_raw_name_to_hash (argument_list (identifier_name) identifier_name )argument_list )call (identifier_address) identifier_address )argument_list )call (identifier_transact) identifier_transact )attribute (argument_list (identifier_transact) identifier_transact )argument_list )call )return_statement )block )function_definition )module
Set up the name to point to the supplied address. The sender of the transaction must own the name, or its parent name. Example: If the caller owns ``parentname.eth`` with no subdomains and calls this method with ``sub.parentname.eth``, then ``sub`` will be created as part of this call. :param str name: ENS name to set up :param str address: name will point to this address, in checksum format. If ``None``, erase the record. If not specified, name will point to the owner's address. :param dict transact: the transaction configuration, like in :meth:`~web3.eth.Eth.sendTransaction` :raises InvalidName: if ``name`` has invalid syntax :raises UnauthorizedError: if ``'from'`` in `transact` does not own `name`
(module (function_definition (function_name_plot_point) function_name_plot_point (parameters (identifier_self) identifier_self (identifier_x) identifier_x (identifier_y) identifier_y (default_parameter (identifier_visible) identifier_visible (True) True )default_parameter (default_parameter (identifier_color) identifier_color (string_'black') string_'black' )default_parameter (default_parameter (identifier_size) identifier_size (integer_5) integer_5 )default_parameter )parameters (block (expression_statement (assignment (identifier_xp) identifier_xp (binary_operator (parenthesized_expression (binary_operator (attribute (identifier_self) identifier_self (identifier_px_x) identifier_px_x )attribute (parenthesized_expression (binary_operator (identifier_x) identifier_x (attribute (identifier_self) identifier_self (identifier_x_min) identifier_x_min )attribute )binary_operator )parenthesized_expression )binary_operator )parenthesized_expression (attribute (identifier_self) identifier_self (identifier_x_tick) identifier_x_tick )attribute )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_yp) identifier_yp (binary_operator (parenthesized_expression (binary_operator (attribute (identifier_self) identifier_self (identifier_px_y) identifier_px_y )attribute (parenthesized_expression (binary_operator (attribute (identifier_self) identifier_self (identifier_y_max) identifier_y_max )attribute (identifier_y) identifier_y )binary_operator )parenthesized_expression )binary_operator )parenthesized_expression (attribute (identifier_self) identifier_self (identifier_y_tick) identifier_y_tick )attribute )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_coord) identifier_coord (expression_list (binary_operator (integer_50) integer_50 (identifier_xp) identifier_xp )binary_operator (binary_operator (integer_50) integer_50 (identifier_yp) identifier_yp )binary_operator )expression_list )assignment )expression_statement (if_statement (identifier_visible) identifier_visible (block (expression_statement (assignment (identifier_size) identifier_size (conditional_expression (call (identifier_int) identifier_int (argument_list (binary_operator (identifier_size) identifier_size (integer_2) integer_2 )binary_operator )argument_list )call (comparison_operator (call (identifier_int) identifier_int (argument_list (binary_operator (identifier_size) identifier_size (integer_2) integer_2 )binary_operator )argument_list )call (integer_1) integer_1 )comparison_operator (integer_1) integer_1 )conditional_expression )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_x) identifier_x (identifier_y) identifier_y )pattern_list (identifier_coord) identifier_coord )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_canvas) identifier_canvas )attribute (identifier_create_oval) identifier_create_oval )attribute (argument_list (binary_operator (identifier_x) identifier_x (identifier_size) identifier_size )binary_operator (binary_operator (identifier_y) identifier_y (identifier_size) identifier_size )binary_operator (binary_operator (identifier_x) identifier_x (identifier_size) identifier_size )binary_operator (binary_operator (identifier_y) identifier_y (identifier_size) identifier_size )binary_operator (keyword_argument (identifier_fill) identifier_fill (identifier_color) identifier_color )keyword_argument )argument_list )call )expression_statement )block )if_statement (return_statement (identifier_coord) identifier_coord )return_statement )block )function_definition )module
Places a single point on the grid :param x: the x coordinate :param y: the y coordinate :param visible: True if the individual point should be visible :param color: the color of the point :param size: the point size in pixels :return: The absolute coordinates as a tuple
(module (function_definition (function_name_load_fileobj) function_name_load_fileobj (parameters (identifier_fileobj) identifier_fileobj (default_parameter (identifier_gz) identifier_gz (None) None )default_parameter (default_parameter (identifier_xmldoc) identifier_xmldoc (None) None )default_parameter (default_parameter (identifier_contenthandler) identifier_contenthandler (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_fileobj) identifier_fileobj (call (identifier_MD5File) identifier_MD5File (argument_list (identifier_fileobj) identifier_fileobj )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_md5obj) identifier_md5obj (attribute (identifier_fileobj) identifier_fileobj (identifier_md5obj) identifier_md5obj )attribute )assignment )expression_statement (if_statement (boolean_operator (identifier_gz) identifier_gz (comparison_operator (identifier_gz) identifier_gz (None) None )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_fileobj) identifier_fileobj (call (identifier_RewindableInputFile) identifier_RewindableInputFile (argument_list (identifier_fileobj) identifier_fileobj )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_magic) identifier_magic (call (attribute (identifier_fileobj) identifier_fileobj (identifier_read) identifier_read )attribute (argument_list (integer_2) integer_2 )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_fileobj) identifier_fileobj (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 (attribute (identifier_os) identifier_os (identifier_SEEK_SET) identifier_SEEK_SET )attribute )argument_list )call )expression_statement (if_statement (boolean_operator (identifier_gz) identifier_gz (comparison_operator (identifier_magic) identifier_magic (string_'\037\213') string_'\037\213' )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_fileobj) identifier_fileobj (call (attribute (identifier_gzip) identifier_gzip (identifier_GzipFile) identifier_GzipFile )attribute (argument_list (keyword_argument (identifier_mode) identifier_mode (string_"rb") string_"rb" )keyword_argument (keyword_argument (identifier_fileobj) identifier_fileobj (identifier_fileobj) identifier_fileobj )keyword_argument )argument_list )call )assignment )expression_statement )block )if_statement )block )if_statement (if_statement (comparison_operator (identifier_xmldoc) identifier_xmldoc (None) None )comparison_operator (block (expression_statement (assignment (identifier_xmldoc) identifier_xmldoc (call (attribute (identifier_ligolw) identifier_ligolw (identifier_Document) identifier_Document )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (call (attribute (identifier_ligolw) identifier_ligolw (identifier_make_parser) identifier_make_parser )attribute (argument_list (call (identifier_contenthandler) identifier_contenthandler (argument_list (identifier_xmldoc) identifier_xmldoc )argument_list )call )argument_list )call (identifier_parse) identifier_parse )attribute (argument_list (identifier_fileobj) identifier_fileobj )argument_list )call )expression_statement (return_statement (expression_list (identifier_xmldoc) identifier_xmldoc (call (attribute (identifier_md5obj) identifier_md5obj (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )expression_list )return_statement )block )function_definition )module
Parse the contents of the file object fileobj, and return the contents as a LIGO Light Weight document tree. The file object does not need to be seekable. If the gz parameter is None (the default) then gzip compressed data will be automatically detected and decompressed, otherwise decompression can be forced on or off by setting gz to True or False respectively. If the optional xmldoc argument is provided and not None, the parsed XML tree will be appended to that document, otherwise a new document will be created. The return value is a tuple, the first element of the tuple is the XML document and the second is a string containing the MD5 digest in hex digits of the bytestream that was parsed. Example: >>> from pycbc_glue.ligolw import ligolw >>> import StringIO >>> f = StringIO.StringIO('<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE LIGO_LW SYSTEM "http://ldas-sw.ligo.caltech.edu/doc/ligolwAPI/html/ligolw_dtd.txt"><LIGO_LW><Table Name="demo:table"><Column Name="name" Type="lstring"/><Column Name="value" Type="real8"/><Stream Name="demo:table" Type="Local" Delimiter=",">"mass",0.5,"velocity",34</Stream></Table></LIGO_LW>') >>> xmldoc, digest = load_fileobj(f, contenthandler = ligolw.LIGOLWContentHandler) >>> digest '6bdcc4726b892aad913531684024ed8e' The contenthandler argument specifies the SAX content handler to use when parsing the document. The contenthandler is a required argument. See the pycbc_glue.ligolw package documentation for typical parsing scenario involving a custom content handler. See pycbc_glue.ligolw.ligolw.PartialLIGOLWContentHandler and pycbc_glue.ligolw.ligolw.FilteringLIGOLWContentHandler for examples of custom content handlers used to load subsets of documents into memory.
(module (function_definition (function_name__get_client_fqdn) function_name__get_client_fqdn (parameters (identifier_self) identifier_self (identifier_client_info_contents) identifier_client_info_contents )parameters (block (expression_statement (assignment (identifier_yamldict) identifier_yamldict (call (attribute (identifier_yaml) identifier_yaml (identifier_safe_load) identifier_safe_load )attribute (argument_list (identifier_client_info_contents) identifier_client_info_contents )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_fqdn) identifier_fqdn (subscript (subscript (identifier_yamldict) identifier_yamldict (string_'system_info') string_'system_info' )subscript (string_'fqdn') string_'fqdn' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_client_id) identifier_client_id (subscript (call (attribute (subscript (identifier_yamldict) identifier_yamldict (string_'client_id') string_'client_id' )subscript (identifier_split) identifier_split )attribute (argument_list (string_'/') string_'/' )argument_list )call (integer_1) integer_1 )subscript )assignment )expression_statement (return_statement (expression_list (identifier_client_id) identifier_client_id (identifier_fqdn) identifier_fqdn )expression_list )return_statement )block )function_definition )module
Extracts a GRR client's FQDN from its client_info.yaml file. Args: client_info_contents: The contents of the client_info.yaml file. Returns: A (str, str) tuple representing client ID and client FQDN.
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (identifier_instance) identifier_instance (identifier_value) identifier_value (dictionary_splat_pattern (identifier_kw) identifier_kw )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_ref) identifier_ref (list )list )assignment )expression_statement (if_statement (call (attribute (identifier_api) identifier_api (identifier_is_uid) identifier_is_uid )attribute (argument_list (identifier_value) identifier_value )argument_list )call (block (expression_statement (call (attribute (identifier_ref) identifier_ref (identifier_append) identifier_append )attribute (argument_list (identifier_value) identifier_value )argument_list )call )expression_statement )block )if_statement (if_statement (call (attribute (identifier_u) identifier_u (identifier_is_dict) identifier_is_dict )attribute (argument_list (identifier_value) identifier_value )argument_list )call (block (expression_statement (assignment (identifier_ref) identifier_ref (call (attribute (identifier_ref) identifier_ref (identifier_append) identifier_append )attribute (argument_list (call (attribute (identifier_value) identifier_value (identifier_get) identifier_get )attribute (argument_list (string_"uid") string_"uid" )argument_list )call )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (call (attribute (identifier_api) identifier_api (identifier_is_at_content) identifier_is_at_content )attribute (argument_list (identifier_value) identifier_value )argument_list )call (block (expression_statement (call (attribute (identifier_ref) identifier_ref (identifier_append) identifier_append )attribute (argument_list (identifier_value) identifier_value )argument_list )call )expression_statement )block )if_statement (if_statement (call (attribute (identifier_u) identifier_u (identifier_is_list) identifier_is_list )attribute (argument_list (identifier_value) identifier_value )argument_list )call (block (for_statement (identifier_item) identifier_item (identifier_value) identifier_value (block (if_statement (call (attribute (identifier_api) identifier_api (identifier_is_uid) identifier_is_uid )attribute (argument_list (identifier_item) identifier_item )argument_list )call (block (expression_statement (call (attribute (identifier_ref) identifier_ref (identifier_append) identifier_append )attribute (argument_list (identifier_item) identifier_item )argument_list )call )expression_statement )block (elif_clause (call (attribute (identifier_u) identifier_u (identifier_is_dict) identifier_is_dict )attribute (argument_list (identifier_item) identifier_item )argument_list )call (block (expression_statement (assignment (identifier_uid) identifier_uid (call (attribute (identifier_item) identifier_item (identifier_get) identifier_get )attribute (argument_list (string_'uid') string_'uid' (None) None )argument_list )call )assignment )expression_statement (if_statement (identifier_uid) identifier_uid (block (expression_statement (call (attribute (identifier_ref) identifier_ref (identifier_append) identifier_append )attribute (argument_list (identifier_uid) identifier_uid )argument_list )call )expression_statement )block )if_statement )block )elif_clause )if_statement )block )for_statement )block )if_statement (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_multi_valued) identifier_multi_valued )attribute )not_operator (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_ref) identifier_ref )argument_list )call (integer_1) integer_1 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (concatenated_string (string_"Multiple values given for single valued ") string_"Multiple values given for single valued " (string_"field {}") string_"field {}" )concatenated_string (identifier_format) identifier_format )attribute (argument_list (call (identifier_repr) identifier_repr (argument_list (attribute (identifier_self) identifier_self (identifier_field) identifier_field )attribute )argument_list )call )argument_list )call )argument_list )call )raise_statement )block (else_clause (block (expression_statement (assignment (identifier_ref) identifier_ref (subscript (identifier_ref) identifier_ref (integer_0) integer_0 )subscript )assignment )expression_statement )block )else_clause )if_statement )block )if_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__set) identifier__set )attribute (argument_list (identifier_instance) identifier_instance (identifier_ref) identifier_ref (dictionary_splat (identifier_kw) identifier_kw )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Set the value of the uid reference field
(module (function_definition (function_name_scale) function_name_scale (parameters (identifier_cls) identifier_cls (list_splat_pattern (identifier_scaling) identifier_scaling )list_splat_pattern )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_scaling) identifier_scaling )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_sx) identifier_sx (assignment (identifier_sy) identifier_sy (call (identifier_float) identifier_float (argument_list (subscript (identifier_scaling) identifier_scaling (integer_0) integer_0 )subscript )argument_list )call )assignment )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (pattern_list (identifier_sx) identifier_sx (identifier_sy) identifier_sy )pattern_list (identifier_scaling) identifier_scaling )assignment )expression_statement )block )else_clause )if_statement (return_statement (call (attribute (identifier_tuple) identifier_tuple (identifier___new__) identifier___new__ )attribute (argument_list (identifier_cls) identifier_cls (tuple (identifier_sx) identifier_sx (float_0.0) float_0.0 (float_0.0) float_0.0 (float_0.0) float_0.0 (identifier_sy) identifier_sy (float_0.0) float_0.0 (float_0.0) float_0.0 (float_0.0) float_0.0 (float_1.0) float_1.0 )tuple )argument_list )call )return_statement )block )function_definition )module
Create a scaling transform from a scalar or vector. :param scaling: The scaling factor. A scalar value will scale in both dimensions equally. A vector scaling value scales the dimensions independently. :type scaling: float or sequence :rtype: Affine
(module (function_definition (function_name_certs) function_name_certs (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_certstack) identifier_certstack (call (attribute (identifier_libcrypto) identifier_libcrypto (identifier_CMS_get1_certs) identifier_CMS_get1_certs )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_ptr) identifier_ptr )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_certstack) identifier_certstack (None) None )comparison_operator (block (raise_statement (call (identifier_CMSError) identifier_CMSError (argument_list (string_"getting certs") string_"getting certs" )argument_list )call )raise_statement )block )if_statement (return_statement (call (identifier_StackOfX509) identifier_StackOfX509 (argument_list (keyword_argument (identifier_ptr) identifier_ptr (identifier_certstack) identifier_certstack )keyword_argument (keyword_argument (identifier_disposable) identifier_disposable (True) True )keyword_argument )argument_list )call )return_statement )block )function_definition )module
List of the certificates contained in the structure
(module (function_definition (function_name_find_multiplex_by_name) function_name_find_multiplex_by_name (parameters (identifier_self) identifier_self (typed_parameter (identifier_multiplex_name) identifier_multiplex_name (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_Multiplex) identifier_Multiplex )type (block (for_statement (identifier_multiplex) identifier_multiplex (attribute (identifier_self) identifier_self (identifier_multiplexes) identifier_multiplexes )attribute (block (if_statement (comparison_operator (attribute (identifier_multiplex) identifier_multiplex (identifier_name) identifier_name )attribute (identifier_multiplex_name) identifier_multiplex_name )comparison_operator (block (return_statement (identifier_multiplex) identifier_multiplex )return_statement )block )if_statement )block )for_statement (raise_statement (call (identifier_AttributeError) identifier_AttributeError (argument_list (string_f'multiplex "{multiplex_name}" does not exist') string_f'multiplex "{multiplex_name}" does not exist' )argument_list )call )raise_statement )block )function_definition )module
Find and return a multiplex in the influence graph with the given name. Raise an AttributeError if there is no multiplex in the graph with the given name.
(module (function_definition (function_name_check_data) function_name_check_data (parameters (identifier_self) identifier_self )parameters (block (assert_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_data_fp) identifier_data_fp )attribute )argument_list )call )assert_statement (if_statement (identifier_gis) identifier_gis (block (with_statement (with_clause (with_item (call (attribute (identifier_fiona) identifier_fiona (identifier_drivers) identifier_drivers )attribute (argument_list )argument_list )call )with_item )with_clause (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_fiona) identifier_fiona (identifier_open) identifier_open )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_faces_fp) identifier_faces_fp )attribute )argument_list )call (as_pattern_target (identifier_src) identifier_src )as_pattern_target )as_pattern )with_item )with_clause (block (assert_statement (attribute (identifier_src) identifier_src (identifier_meta) identifier_meta )attribute )assert_statement )block )with_statement )block )with_statement )block )if_statement (expression_statement (assignment (identifier_gpkg_hash) identifier_gpkg_hash (subscript (subscript (call (attribute (identifier_json) identifier_json (identifier_load) identifier_load )attribute (argument_list (call (identifier_open) identifier_open (argument_list (attribute (identifier_self) identifier_self (identifier_data_fp) identifier_data_fp )attribute )argument_list )call )argument_list )call (string_'metadata') string_'metadata' )subscript (string_'sha256') string_'sha256' )subscript )assignment )expression_statement (assert_statement (comparison_operator (identifier_gpkg_hash) identifier_gpkg_hash (call (identifier_sha256) identifier_sha256 (argument_list (attribute (identifier_self) identifier_self (identifier_faces_fp) identifier_faces_fp )attribute )argument_list )call )comparison_operator )assert_statement )block )function_definition )module
Check that definitions file is present, and that faces file is readable.
(module (function_definition (function_name_read_raw_parser_conf) function_name_read_raw_parser_conf (parameters (typed_parameter (identifier_data) identifier_data (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_dict) identifier_dict )type (block (expression_statement (assignment (identifier_config) identifier_config (call (attribute (identifier_configparser) identifier_configparser (identifier_ConfigParser) identifier_ConfigParser )attribute (argument_list (keyword_argument (identifier_allow_no_value) identifier_allow_no_value (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_config) identifier_config (identifier_read_string) identifier_read_string )attribute (argument_list (identifier_data) identifier_data )argument_list )call )expression_statement (try_statement (block (expression_statement (assignment (identifier__data) identifier__data (type (identifier_dict) identifier_dict )type (call (identifier_dict) identifier_dict (argument_list (subscript (identifier_config) identifier_config (string_"commitizen") string_"commitizen" )subscript )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (string_"files") string_"files" (identifier__data) identifier__data )comparison_operator (block (expression_statement (assignment (identifier_files) identifier_files (subscript (identifier__data) identifier__data (string_"files") string_"files" )subscript )assignment )expression_statement (expression_statement (assignment (identifier__f) identifier__f (call (attribute (identifier_json) identifier_json (identifier_loads) identifier_loads )attribute (argument_list (identifier_files) identifier_files )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier__data) identifier__data (identifier_update) identifier_update )attribute (argument_list (dictionary (pair (string_"files") string_"files" (identifier__f) identifier__f )pair )dictionary )argument_list )call )expression_statement )block )if_statement (return_statement (identifier__data) identifier__data )return_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (return_statement (dictionary )dictionary )return_statement )block )except_clause )try_statement )block )function_definition )module
We expect to have a section like this ``` [commitizen] name = cz_jira files = [ "commitizen/__version__.py", "pyproject.toml" ] # this tab at the end is important ```
(module (function_definition (function_name_to_path_globs) function_name_to_path_globs (parameters (identifier_self) identifier_self (identifier_relpath) identifier_relpath (identifier_conjunction) identifier_conjunction )parameters (block (return_statement (call (identifier_PathGlobs) identifier_PathGlobs (argument_list (keyword_argument (identifier_include) identifier_include (call (identifier_tuple) identifier_tuple (generator_expression (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_relpath) identifier_relpath (identifier_glob) identifier_glob )argument_list )call (for_in_clause (identifier_glob) identifier_glob (attribute (identifier_self) identifier_self (identifier__file_globs) identifier__file_globs )attribute )for_in_clause )generator_expression )call )keyword_argument (keyword_argument (identifier_exclude) identifier_exclude (call (identifier_tuple) identifier_tuple (generator_expression (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_relpath) identifier_relpath (identifier_exclude) identifier_exclude )argument_list )call (for_in_clause (identifier_exclude) identifier_exclude (attribute (identifier_self) identifier_self (identifier__excluded_file_globs) identifier__excluded_file_globs )attribute )for_in_clause )generator_expression )call )keyword_argument (keyword_argument (identifier_conjunction) identifier_conjunction (identifier_conjunction) identifier_conjunction )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Return a PathGlobs representing the included and excluded Files for these patterns.
(module (function_definition (function_name___create_image) function_name___create_image (parameters (identifier_self) identifier_self (identifier_inpt) identifier_inpt (identifier_hashfun) identifier_hashfun )parameters (block (if_statement (comparison_operator (identifier_hashfun) identifier_hashfun (call (attribute (attribute (identifier_generator) identifier_generator (identifier_HASHES) identifier_HASHES )attribute (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )comparison_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_"Unknown or unsupported hash function. Using default: %s") string_"Unknown or unsupported hash function. Using default: %s" (attribute (identifier_self) identifier_self (identifier_DEFAULT_HASHFUN) identifier_DEFAULT_HASHFUN )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (assignment (identifier_algo) identifier_algo (attribute (identifier_self) identifier_self (identifier_DEFAULT_HASHFUN) identifier_DEFAULT_HASHFUN )attribute )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_algo) identifier_algo (identifier_hashfun) identifier_hashfun )assignment )expression_statement )block )else_clause )if_statement (return_statement (call (attribute (identifier_generator) identifier_generator (identifier_generate) identifier_generate )attribute (argument_list (identifier_inpt) identifier_inpt (identifier_algo) identifier_algo )argument_list )call )return_statement )block )function_definition )module
Creates the avatar based on the input and the chosen hash function.
(module (function_definition (function_name_abort) function_name_abort (parameters (identifier_self) identifier_self (default_parameter (identifier_count) identifier_count (integer_2) integer_2 )default_parameter (default_parameter (identifier_timeout) identifier_timeout (integer_60) integer_60 )default_parameter )parameters (block (for_statement (identifier_counter) identifier_counter (call (identifier_xrange) identifier_xrange (argument_list (integer_0) integer_0 (identifier_count) identifier_count )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_putc) identifier_putc )attribute (argument_list (identifier_CAN) identifier_CAN (identifier_timeout) identifier_timeout )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Send an abort sequence using CAN bytes.
(module (function_definition (function_name_read_requirements) function_name_read_requirements (parameters )parameters (block (expression_statement (assignment (identifier_reqs_path) identifier_reqs_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (string_'.') string_'.' (string_'requirements.txt') string_'requirements.txt' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_install_reqs) identifier_install_reqs (call (identifier_parse_requirements) identifier_parse_requirements (argument_list (identifier_reqs_path) identifier_reqs_path (keyword_argument (identifier_session) identifier_session (call (identifier_PipSession) identifier_PipSession (argument_list )argument_list )call )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_reqs) identifier_reqs (list_comprehension (call (identifier_str) identifier_str (argument_list (attribute (identifier_ir) identifier_ir (identifier_req) identifier_req )attribute )argument_list )call (for_in_clause (identifier_ir) identifier_ir (identifier_install_reqs) identifier_install_reqs )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (identifier_reqs) identifier_reqs )return_statement )block )function_definition )module
parses requirements from requirements.txt
(module (function_definition (function_name_main) function_name_main (parameters )parameters (block (if_statement (not_operator (call (attribute (attribute (identifier_sys) identifier_sys (identifier_platform) identifier_platform )attribute (identifier_startswith) identifier_startswith )attribute (argument_list (string_"win") string_"win" )argument_list )call )not_operator (block (if_statement (comparison_operator (string_"--daemon") string_"--daemon" (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute )comparison_operator (block (expression_statement (call (identifier_daemonize) identifier_daemonize (argument_list )argument_list )call )expression_statement )block )if_statement )block )if_statement (import_from_statement (dotted_name (identifier_gns3server) identifier_gns3server (identifier_run) identifier_run )dotted_name (dotted_name (identifier_run) identifier_run )dotted_name )import_from_statement (expression_statement (call (identifier_run) identifier_run (argument_list )argument_list )call )expression_statement )block )function_definition )module
Entry point for GNS3 server
(module (function_definition (function_name_prover_get_credentials) function_name_prover_get_credentials (parameters (typed_parameter (identifier_wallet_handle) identifier_wallet_handle (type (identifier_int) identifier_int )type )typed_parameter (typed_parameter (identifier_filter_json) identifier_filter_json (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_str) identifier_str )type (block (expression_statement (assignment (identifier_logger) identifier_logger (call (attribute (identifier_logging) identifier_logging (identifier_getLogger) identifier_getLogger )attribute (argument_list (identifier___name__) identifier___name__ )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"prover_get_credentials: >>> wallet_handle: %r, filter_json: %r") string_"prover_get_credentials: >>> wallet_handle: %r, filter_json: %r" (identifier_wallet_handle) identifier_wallet_handle (identifier_filter_json) identifier_filter_json )argument_list )call )expression_statement (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_prover_get_credentials) identifier_prover_get_credentials (string_"cb") string_"cb" )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"prover_get_credentials: Creating callback") string_"prover_get_credentials: Creating callback" )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_prover_get_credentials) identifier_prover_get_credentials (identifier_cb) identifier_cb )attribute (call (identifier_create_cb) identifier_create_cb (argument_list (call (identifier_CFUNCTYPE) identifier_CFUNCTYPE (argument_list (None) None (identifier_c_int32) identifier_c_int32 (identifier_c_int32) identifier_c_int32 (identifier_c_char_p) identifier_c_char_p )argument_list )call )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_c_wallet_handle) identifier_c_wallet_handle (call (identifier_c_int32) identifier_c_int32 (argument_list (identifier_wallet_handle) identifier_wallet_handle )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_c_filter_json) identifier_c_filter_json (call (identifier_c_char_p) identifier_c_char_p (argument_list (call (attribute (identifier_filter_json) identifier_filter_json (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_credentials_json) identifier_credentials_json (await (call (identifier_do_call) identifier_do_call (argument_list (string_'indy_prover_get_credentials') string_'indy_prover_get_credentials' (identifier_c_wallet_handle) identifier_c_wallet_handle (identifier_c_filter_json) identifier_c_filter_json (attribute (identifier_prover_get_credentials) identifier_prover_get_credentials (identifier_cb) identifier_cb )attribute )argument_list )call )await )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (call (attribute (identifier_credentials_json) identifier_credentials_json (identifier_decode) identifier_decode )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"prover_get_credentials: <<< res: %r") string_"prover_get_credentials: <<< res: %r" (identifier_res) identifier_res )argument_list )call )expression_statement (return_statement (identifier_res) identifier_res )return_statement )block )function_definition )module
Gets human readable credentials according to the filter. If filter is NULL, then all credentials are returned. Credentials can be filtered by tags created during saving of credential. NOTE: This method is deprecated because immediately returns all fetched credentials. Use <prover_search_credentials> to fetch records by small batches. :param wallet_handle: wallet handler (created by open_wallet). :param filter_json: filter for credentials { "schema_id": string, (Optional) "schema_issuer_did": string, (Optional) "schema_name": string, (Optional) "schema_version": string, (Optional) "issuer_did": string, (Optional) "cred_def_id": string, (Optional) } :return: credentials json [{ "referent": string, // cred_id in the wallet "attrs": {"key1":"raw_value1", "key2":"raw_value2"}, "schema_id": string, "cred_def_id": string, "rev_reg_id": Optional<string>, "cred_rev_id": Optional<string> }]
(module (function_definition (function_name_looks_like_xml) function_name_looks_like_xml (parameters (identifier_text) identifier_text )parameters (block (if_statement (call (attribute (identifier_xml_decl_re) identifier_xml_decl_re (identifier_match) identifier_match )attribute (argument_list (identifier_text) identifier_text )argument_list )call (block (return_statement (True) True )return_statement )block )if_statement (expression_statement (assignment (identifier_key) identifier_key (call (identifier_hash) identifier_hash (argument_list (identifier_text) identifier_text )argument_list )call )assignment )expression_statement (try_statement (block (return_statement (subscript (identifier__looks_like_xml_cache) identifier__looks_like_xml_cache (identifier_key) identifier_key )subscript )return_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (expression_statement (assignment (identifier_m) identifier_m (call (attribute (identifier_doctype_lookup_re) identifier_doctype_lookup_re (identifier_match) identifier_match )attribute (argument_list (identifier_text) identifier_text )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_m) identifier_m (None) None )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement (expression_statement (assignment (identifier_rv) identifier_rv (comparison_operator (call (attribute (identifier_tag_re) identifier_tag_re (identifier_search) identifier_search )attribute (argument_list (subscript (identifier_text) identifier_text (slice (colon) colon (integer_1000) integer_1000 )slice )subscript )argument_list )call (None) None )comparison_operator )assignment )expression_statement (expression_statement (assignment (subscript (identifier__looks_like_xml_cache) identifier__looks_like_xml_cache (identifier_key) identifier_key )subscript (identifier_rv) identifier_rv )assignment )expression_statement (return_statement (identifier_rv) identifier_rv )return_statement )block )except_clause )try_statement )block )function_definition )module
Check if a doctype exists or if we have some tags.
(module (function_definition (function_name__update_message_request) function_name__update_message_request (parameters (identifier_self) identifier_self (identifier_message) identifier_message )parameters (block (for_statement (identifier_each) identifier_each (attribute (identifier_self) identifier_self (identifier_row_keys) identifier_row_keys )attribute (block (expression_statement (call (attribute (attribute (attribute (identifier_message) identifier_message (identifier_rows) identifier_rows )attribute (identifier_row_keys) identifier_row_keys )attribute (identifier_append) identifier_append )attribute (argument_list (call (identifier__to_bytes) identifier__to_bytes (argument_list (identifier_each) identifier_each )argument_list )call )argument_list )call )expression_statement )block )for_statement (for_statement (identifier_each) identifier_each (attribute (identifier_self) identifier_self (identifier_row_ranges) identifier_row_ranges )attribute (block (expression_statement (assignment (identifier_r_kwrags) identifier_r_kwrags (call (attribute (identifier_each) identifier_each (identifier_get_range_kwargs) identifier_get_range_kwargs )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_message) identifier_message (identifier_rows) identifier_rows )attribute (identifier_row_ranges) identifier_row_ranges )attribute (identifier_add) identifier_add )attribute (argument_list (dictionary_splat (identifier_r_kwrags) identifier_r_kwrags )dictionary_splat )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Add row keys and row range to given request message :type message: class:`data_messages_v2_pb2.ReadRowsRequest` :param message: The ``ReadRowsRequest`` protobuf
(module (function_definition (function_name_to_internal) function_name_to_internal (parameters (identifier_self) identifier_self (identifier_attribute_profile) identifier_attribute_profile (identifier_external_dict) identifier_external_dict )parameters (block (expression_statement (assignment (identifier_internal_dict) identifier_internal_dict (dictionary )dictionary )assignment )expression_statement (for_statement (pattern_list (identifier_internal_attribute_name) identifier_internal_attribute_name (identifier_mapping) identifier_mapping )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_from_internal_attributes) identifier_from_internal_attributes )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (comparison_operator (identifier_attribute_profile) identifier_attribute_profile (identifier_mapping) identifier_mapping )comparison_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (binary_operator (string_"no attribute mapping found for internal attribute '%s' the attribute profile '%s'") string_"no attribute mapping found for internal attribute '%s' the attribute profile '%s'" (tuple (identifier_internal_attribute_name) identifier_internal_attribute_name (identifier_attribute_profile) identifier_attribute_profile )tuple )binary_operator )argument_list )call )expression_statement (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_external_attribute_name) identifier_external_attribute_name (subscript (identifier_mapping) identifier_mapping (identifier_attribute_profile) identifier_attribute_profile )subscript )assignment )expression_statement (expression_statement (assignment (identifier_attribute_values) identifier_attribute_values (call (attribute (identifier_self) identifier_self (identifier__collate_attribute_values_by_priority_order) identifier__collate_attribute_values_by_priority_order )attribute (argument_list (identifier_external_attribute_name) identifier_external_attribute_name (identifier_external_dict) identifier_external_dict )argument_list )call )assignment )expression_statement (if_statement (identifier_attribute_values) identifier_attribute_values (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (binary_operator (string_"backend attribute '%s' mapped to %s") string_"backend attribute '%s' mapped to %s" (tuple (identifier_external_attribute_name) identifier_external_attribute_name (identifier_internal_attribute_name) identifier_internal_attribute_name )tuple )binary_operator )argument_list )call )expression_statement (expression_statement (assignment (subscript (identifier_internal_dict) identifier_internal_dict (identifier_internal_attribute_name) identifier_internal_attribute_name )subscript (identifier_attribute_values) identifier_attribute_values )assignment )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"skipped backend attribute '%s': no value found") string_"skipped backend attribute '%s': no value found" (identifier_external_attribute_name) identifier_external_attribute_name )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (expression_statement (assignment (identifier_internal_dict) identifier_internal_dict (call (attribute (identifier_self) identifier_self (identifier__handle_template_attributes) identifier__handle_template_attributes )attribute (argument_list (identifier_attribute_profile) identifier_attribute_profile (identifier_internal_dict) identifier_internal_dict )argument_list )call )assignment )expression_statement (return_statement (identifier_internal_dict) identifier_internal_dict )return_statement )block )function_definition )module
Converts the external data from "type" to internal :type attribute_profile: str :type external_dict: dict[str, str] :rtype: dict[str, str] :param attribute_profile: From which external type to convert (ex: oidc, saml, ...) :param external_dict: Attributes in the external format :return: Attributes in the internal format
(module (function_definition (function_name_disconnect) function_name_disconnect (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_connState) identifier_connState )attribute (attribute (identifier_Client) identifier_Client (identifier_DISCONNECTED) identifier_DISCONNECTED )attribute )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_conn) identifier_conn )attribute (None) None )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__logger) identifier__logger )attribute (identifier_info) identifier_info )attribute (argument_list (string_'Disconnecting') string_'Disconnecting' )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_conn) identifier_conn )attribute (identifier_disconnect) identifier_disconnect )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_wrapper) identifier_wrapper )attribute (identifier_connectionClosed) identifier_connectionClosed )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_reset) identifier_reset )attribute (argument_list )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Disconnect from IB connection.
(module (function_definition (function_name_get_client_settings_env) function_name_get_client_settings_env (parameters (dictionary_splat_pattern (identifier__) identifier__ )dictionary_splat_pattern )parameters (block (return_statement (dictionary (pair (string_'proxy') string_'proxy' (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_get) identifier_get )attribute (argument_list (string_'https_proxy') string_'https_proxy' )argument_list )call )pair (pair (string_'username') string_'username' (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_get) identifier_get )attribute (argument_list (string_'SL_USERNAME') string_'SL_USERNAME' )argument_list )call )pair (pair (string_'api_key') string_'api_key' (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_get) identifier_get )attribute (argument_list (string_'SL_API_KEY') string_'SL_API_KEY' )argument_list )call )pair )dictionary )return_statement )block )function_definition )module
Retrieve client settings from environment settings. :param \\*\\*kwargs: Arguments that are passed into the client instance
(module (function_definition (function_name_to_regular_array) function_name_to_regular_array (parameters (identifier_self) identifier_self (identifier_A) identifier_A )parameters (block (return_statement (call (attribute (call (attribute (identifier_A) identifier_A (identifier_view) identifier_view )attribute (argument_list (tuple (identifier_int) identifier_int (call (identifier_len) identifier_len (argument_list (attribute (attribute (identifier_A) identifier_A (identifier_dtype) identifier_dtype )attribute (identifier_names) identifier_names )attribute )argument_list )call )tuple )argument_list )call (identifier_reshape) identifier_reshape )attribute (argument_list (binary_operator (attribute (identifier_A) identifier_A (identifier_shape) identifier_shape )attribute (tuple (unary_operator (integer_1) integer_1 )unary_operator )tuple )binary_operator )argument_list )call )return_statement )block )function_definition )module
Converts from an array of type `self.dtype` to an array of type `int` with an additional index labeling the tuple indeces. :param np.ndarray A: An `np.array` of type `self.dtype`. :rtype: `np.ndarray`
(module (function_definition (function_name_save_grade_system) function_name_save_grade_system (parameters (identifier_self) identifier_self (identifier_grade_system_form) identifier_grade_system_form (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (call (attribute (identifier_grade_system_form) identifier_grade_system_form (identifier_is_for_update) identifier_is_for_update )attribute (argument_list )argument_list )call (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_update_grade_system) identifier_update_grade_system )attribute (argument_list (identifier_grade_system_form) identifier_grade_system_form (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block (else_clause (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_create_grade_system) identifier_create_grade_system )attribute (argument_list (identifier_grade_system_form) identifier_grade_system_form (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 )module
Pass through to provider GradeSystemAdminSession.update_grade_system
(module (function_definition (function_name_encipher_shift) function_name_encipher_shift (parameters (identifier_plaintext) identifier_plaintext (identifier_plain_vocab) identifier_plain_vocab (identifier_shift) identifier_shift )parameters (block (expression_statement (assignment (identifier_ciphertext) identifier_ciphertext (list )list )assignment )expression_statement (expression_statement (assignment (identifier_cipher) identifier_cipher (call (identifier_ShiftEncryptionLayer) identifier_ShiftEncryptionLayer (argument_list (identifier_plain_vocab) identifier_plain_vocab (identifier_shift) identifier_shift )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier__) identifier__ (identifier_sentence) identifier_sentence )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_plaintext) identifier_plaintext )argument_list )call (block (expression_statement (assignment (identifier_cipher_sentence) identifier_cipher_sentence (list )list )assignment )expression_statement (for_statement (pattern_list (identifier__) identifier__ (identifier_character) identifier_character )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_sentence) identifier_sentence )argument_list )call (block (expression_statement (assignment (identifier_encrypted_char) identifier_encrypted_char (call (attribute (identifier_cipher) identifier_cipher (identifier_encrypt_character) identifier_encrypt_character )attribute (argument_list (identifier_character) identifier_character )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_cipher_sentence) identifier_cipher_sentence (identifier_append) identifier_append )attribute (argument_list (identifier_encrypted_char) identifier_encrypted_char )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_ciphertext) identifier_ciphertext (identifier_append) identifier_append )attribute (argument_list (identifier_cipher_sentence) identifier_cipher_sentence )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_ciphertext) identifier_ciphertext )return_statement )block )function_definition )module
Encrypt plain text with a single shift layer. Args: plaintext (list of list of Strings): a list of plain text to encrypt. plain_vocab (list of Integer): unique vocabularies being used. shift (Integer): number of shift, shift to the right if shift is positive. Returns: ciphertext (list of Strings): encrypted plain text.
(module (function_definition (function_name_escapePlaceholders) function_name_escapePlaceholders (parameters (identifier_self) identifier_self (identifier_inputString) identifier_inputString )parameters (block (expression_statement (assignment (identifier_escaped) identifier_escaped (call (attribute (identifier_inputString) identifier_inputString (identifier_replace) identifier_replace )attribute (argument_list (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholder) identifier_placeholder )attribute (binary_operator (string_'\\') string_'\\' (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholder) identifier_placeholder )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_escaped) identifier_escaped (call (attribute (identifier_escaped) identifier_escaped (identifier_replace) identifier_replace )attribute (argument_list (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderFileName) identifier_placeholderFileName )attribute (binary_operator (string_'\\') string_'\\' (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderFileName) identifier_placeholderFileName )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_escaped) identifier_escaped (call (attribute (identifier_escaped) identifier_escaped (identifier_replace) identifier_replace )attribute (argument_list (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderPath) identifier_placeholderPath )attribute (binary_operator (string_'\\') string_'\\' (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderPath) identifier_placeholderPath )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_escaped) identifier_escaped (call (attribute (identifier_escaped) identifier_escaped (identifier_replace) identifier_replace )attribute (argument_list (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderExtension) identifier_placeholderExtension )attribute (binary_operator (string_'\\') string_'\\' (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderExtension) identifier_placeholderExtension )attribute )binary_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_escaped) identifier_escaped (call (attribute (identifier_escaped) identifier_escaped (identifier_replace) identifier_replace )attribute (argument_list (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderCounter) identifier_placeholderCounter )attribute (binary_operator (string_'\\') string_'\\' (attribute (identifier_MapConstants) identifier_MapConstants (identifier_placeholderCounter) identifier_placeholderCounter )attribute )binary_operator )argument_list )call )assignment )expression_statement (return_statement (identifier_escaped) identifier_escaped )return_statement )block )function_definition )module
This is an internal method that escapes all the placeholders defined in MapConstants.py.
(module (function_definition (function_name_serve_forever) function_name_serve_forever (parameters (identifier_self) identifier_self (default_parameter (identifier_poll_interval) identifier_poll_interval (float_0.5) float_0.5 )default_parameter )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier___is_shut_down) identifier___is_shut_down )attribute (identifier_clear) identifier_clear )attribute (argument_list )argument_list )call )expression_statement (try_statement (block (while_statement (not_operator (attribute (identifier_self) identifier_self (identifier___shutdown_request) identifier___shutdown_request )attribute )not_operator (block (expression_statement (assignment (pattern_list (identifier_r) identifier_r (identifier_w) identifier_w (identifier_e) identifier_e )pattern_list (call (identifier__eintr_retry) identifier__eintr_retry (argument_list (attribute (identifier_select) identifier_select (identifier_select) identifier_select )attribute (list (identifier_self) identifier_self )list (list )list (list )list (identifier_poll_interval) identifier_poll_interval )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_self) identifier_self (identifier_r) identifier_r )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__handle_request_noblock) identifier__handle_request_noblock )attribute (argument_list )argument_list )call )expression_statement )block )if_statement )block )while_statement )block (finally_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___shutdown_request) identifier___shutdown_request )attribute (False) False )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier___is_shut_down) identifier___is_shut_down )attribute (identifier_set) identifier_set )attribute (argument_list )argument_list )call )expression_statement )block )finally_clause )try_statement )block )function_definition )module
Handle one request at a time until shutdown. Polls for shutdown every poll_interval seconds. Ignores self.timeout. If you need to do periodic tasks, do them in another thread.
(module (function_definition (function_name_txinfo) function_name_txinfo (parameters (identifier_self) identifier_self (typed_parameter (identifier_txid) identifier_txid (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_dict) identifier_dict )type (block (return_statement (call (identifier_cast) identifier_cast (argument_list (identifier_dict) identifier_dict (call (attribute (identifier_self) identifier_self (identifier_ext_fetch) identifier_ext_fetch )attribute (argument_list (binary_operator (string_'txinfo/') string_'txinfo/' (identifier_txid) identifier_txid )binary_operator )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Returns information about given transaction.
(module (function_definition (function_name_adjust_for_triggers) function_name_adjust_for_triggers (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_triggers) identifier_triggers (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_template) identifier_template )attribute (string_'spec') string_'spec' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'triggers') string_'triggers' (list )list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_remove_plugins) identifier_remove_plugins (list (tuple (string_"prebuild_plugins") string_"prebuild_plugins" (string_"check_and_set_rebuild") string_"check_and_set_rebuild" )tuple (tuple (string_"prebuild_plugins") string_"prebuild_plugins" (string_"stop_autorebuild_if_disabled") string_"stop_autorebuild_if_disabled" )tuple )list )assignment )expression_statement (expression_statement (assignment (identifier_should_remove) identifier_should_remove (False) False )assignment )expression_statement (if_statement (boolean_operator (identifier_triggers) identifier_triggers (parenthesized_expression (boolean_operator (call (attribute (identifier_self) identifier_self (identifier_is_custom_base_image) identifier_is_custom_base_image )attribute (argument_list )argument_list )call (call (attribute (identifier_self) identifier_self (identifier_is_from_scratch_image) identifier_is_from_scratch_image )attribute (argument_list )argument_list )call )boolean_operator )parenthesized_expression )boolean_operator (block (if_statement (call (attribute (identifier_self) identifier_self (identifier_is_custom_base_image) identifier_is_custom_base_image )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_msg) identifier_msg (string_"removing %s from request because custom base image") string_"removing %s from request because custom base image" )assignment )expression_statement )block (elif_clause (call (attribute (identifier_self) identifier_self (identifier_is_from_scratch_image) identifier_is_from_scratch_image )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_msg) identifier_msg (string_'removing %s from request because FROM scratch image') string_'removing %s from request because FROM scratch image' )assignment )expression_statement )block )elif_clause )if_statement (delete_statement (subscript (subscript (attribute (identifier_self) identifier_self (identifier_template) identifier_template )attribute (string_'spec') string_'spec' )subscript (string_'triggers') string_'triggers' )subscript )delete_statement (expression_statement (assignment (identifier_should_remove) identifier_should_remove (True) True )assignment )expression_statement )block (elif_clause (not_operator (identifier_triggers) identifier_triggers )not_operator (block (expression_statement (assignment (identifier_msg) identifier_msg (string_"removing %s from request because there are no triggers") string_"removing %s from request because there are no triggers" )assignment )expression_statement (expression_statement (assignment (identifier_should_remove) identifier_should_remove (True) True )assignment )expression_statement )block )elif_clause )if_statement (if_statement (identifier_should_remove) identifier_should_remove (block (for_statement (pattern_list (identifier_when) identifier_when (identifier_which) identifier_which )pattern_list (identifier_remove_plugins) identifier_remove_plugins (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_info) identifier_info )attribute (argument_list (identifier_msg) identifier_msg (identifier_which) identifier_which )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_dj) identifier_dj )attribute (identifier_remove_plugin) identifier_remove_plugin )attribute (argument_list (identifier_when) identifier_when (identifier_which) identifier_which )argument_list )call )expression_statement )block )for_statement )block )if_statement )block )function_definition )module
Remove trigger-related plugins when needed If there are no triggers defined, it's assumed the feature is disabled and all trigger-related plugins are removed. If there are triggers defined, and this is a custom base image, some trigger-related plugins do not apply. Additionally, this method ensures that custom base images never have triggers since triggering a base image rebuild is not a valid scenario.
(module (function_definition (function_name_execute_cmd) function_name_execute_cmd (parameters (identifier_self) identifier_self (identifier_userid) identifier_userid (identifier_cmdStr) identifier_cmdStr )parameters (block (expression_statement (call (attribute (identifier_LOG) identifier_LOG (identifier_debug) identifier_debug )attribute (argument_list (string_"executing cmd: %s") string_"executing cmd: %s" (identifier_cmdStr) identifier_cmdStr )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__smtclient) identifier__smtclient )attribute (identifier_execute_cmd) identifier_execute_cmd )attribute (argument_list (identifier_userid) identifier_userid (identifier_cmdStr) identifier_cmdStr )argument_list )call )return_statement )block )function_definition )module
Execute commands on the guest vm.
(module (function_definition (function_name_config_mode) function_name_config_mode (parameters (identifier_self) identifier_self (default_parameter (identifier_config_command) identifier_config_command (string_"configure") string_"configure" )default_parameter (default_parameter (identifier_pattern) identifier_pattern (string_r"[edit]") string_r"[edit]" )default_parameter )parameters (block (return_statement (call (attribute (call (identifier_super) identifier_super (argument_list (identifier_VyOSSSH) identifier_VyOSSSH (identifier_self) identifier_self )argument_list )call (identifier_config_mode) identifier_config_mode )attribute (argument_list (keyword_argument (identifier_config_command) identifier_config_command (identifier_config_command) identifier_config_command )keyword_argument (keyword_argument (identifier_pattern) identifier_pattern (identifier_pattern) identifier_pattern )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Enter configuration mode.
(module (function_definition (function_name__alpha2rho0) function_name__alpha2rho0 (parameters (identifier_self) identifier_self (identifier_theta_Rs) identifier_theta_Rs (identifier_Rs) identifier_Rs )parameters (block (expression_statement (assignment (identifier_rho0) identifier_rho0 (binary_operator (identifier_theta_Rs) identifier_theta_Rs (parenthesized_expression (binary_operator (binary_operator (float_4.) float_4. (binary_operator (identifier_Rs) identifier_Rs (integer_2) integer_2 )binary_operator )binary_operator (parenthesized_expression (binary_operator (float_1.) float_1. (call (attribute (identifier_np) identifier_np (identifier_log) identifier_log )attribute (argument_list (binary_operator (float_1.) float_1. (float_2.) float_2. )binary_operator )argument_list )call )binary_operator )parenthesized_expression )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (return_statement (identifier_rho0) identifier_rho0 )return_statement )block )function_definition )module
convert angle at Rs into rho0
(module (function_definition (function_name_remove_line_breaks) function_name_remove_line_breaks (parameters (identifier_text) identifier_text )parameters (block (return_statement (call (attribute (call (attribute (call (attribute (call (attribute (call (attribute (call (attribute (call (attribute (call (identifier_unicode) identifier_unicode (argument_list (identifier_text) identifier_text (string_'utf-8') string_'utf-8' )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_'\f') string_'\f' (string_'') string_'' )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_'\n') string_'\n' (string_'') string_'' )argument_list )call (line_continuation_\) line_continuation_\ (identifier_replace) identifier_replace )attribute (argument_list (string_'\r') string_'\r' (string_'') string_'' )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_u'\xe2\x80\xa8') string_u'\xe2\x80\xa8' (string_'') string_'' )argument_list )call (line_continuation_\) line_continuation_\ (identifier_replace) identifier_replace )attribute (argument_list (string_u'\xe2\x80\xa9') string_u'\xe2\x80\xa9' (string_'') string_'' )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_u'\xc2\x85') string_u'\xc2\x85' (string_'') string_'' )argument_list )call (line_continuation_\) line_continuation_\ (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )return_statement )block )function_definition )module
Remove line breaks from input. Including unicode 'line separator', 'paragraph separator', and 'next line' characters.
(module (function_definition (function_name_stop) function_name_stop (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_state) identifier_state )attribute (False) False )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_display_manager) identifier_display_manager (argument_list (attribute (identifier_self) identifier_self (identifier_display) identifier_display )attribute )argument_list )call (as_pattern_target (identifier_d) identifier_d )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_d) identifier_d (identifier_record_disable_context) identifier_record_disable_context )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_ctx) identifier_ctx )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_d) identifier_d (identifier_ungrab_keyboard) identifier_ungrab_keyboard )attribute (argument_list (attribute (identifier_X) identifier_X (identifier_CurrentTime) identifier_CurrentTime )attribute )argument_list )call )expression_statement )block )with_statement (with_statement (with_clause (with_item (call (identifier_display_manager) identifier_display_manager (argument_list (attribute (identifier_self) identifier_self (identifier_display2) identifier_display2 )attribute )argument_list )call )with_item )with_clause (block (expression_statement (call (attribute (identifier_d) identifier_d (identifier_record_disable_context) identifier_record_disable_context )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_ctx) identifier_ctx )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_d) identifier_d (identifier_ungrab_keyboard) identifier_ungrab_keyboard )attribute (argument_list (attribute (identifier_X) identifier_X (identifier_CurrentTime) identifier_CurrentTime )attribute )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Stop listening for keyboard input events.
(module (function_definition (function_name_add_section) function_name_add_section (parameters (identifier_self) identifier_self (identifier_section) identifier_section )parameters (block (if_statement (not_operator (call (identifier_issubclass) identifier_issubclass (argument_list (attribute (identifier_section) identifier_section (identifier___class__) identifier___class__ )attribute (identifier__AbstractSection) identifier__AbstractSection )argument_list )call )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_"argument should be a subclass of Section") string_"argument should be a subclass of Section" )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_sections) identifier_sections )attribute (call (attribute (identifier_section) identifier_section (identifier_get_key_name) identifier_get_key_name )attribute (argument_list )argument_list )call )subscript (identifier_section) identifier_section )assignment )expression_statement (return_statement (identifier_section) identifier_section )return_statement )block )function_definition )module
Add a new Section object to the config. Should be a subclass of _AbstractSection.
(module (function_definition (function_name_real) function_name_real (parameters (identifier_self) identifier_self )parameters (block (function_definition (function_name_re) function_name_re (parameters (identifier_val) identifier_val )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_val) identifier_val (string_'real') string_'real' )argument_list )call (block (return_statement (attribute (identifier_val) identifier_val (identifier_real) identifier_real )attribute )return_statement )block (elif_clause (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_val) identifier_val (string_'as_real_imag') string_'as_real_imag' )argument_list )call (block (return_statement (subscript (call (attribute (identifier_val) identifier_val (identifier_as_real_imag) identifier_as_real_imag )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript )return_statement )block )elif_clause (elif_clause (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_val) identifier_val (string_'conjugate') string_'conjugate' )argument_list )call (block (return_statement (binary_operator (parenthesized_expression (binary_operator (call (attribute (identifier_val) identifier_val (identifier_conjugate) identifier_conjugate )attribute (argument_list )argument_list )call (identifier_val) identifier_val )binary_operator )parenthesized_expression (integer_2) integer_2 )binary_operator )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_NoConjugateMatrix) identifier_NoConjugateMatrix (argument_list (binary_operator (concatenated_string (string_"Matrix entry %s contains has no defined ") string_"Matrix entry %s contains has no defined " (string_"conjugate") string_"conjugate" )concatenated_string (call (identifier_str) identifier_str (argument_list (identifier_val) identifier_val )argument_list )call )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition (return_statement (call (attribute (identifier_self) identifier_self (identifier_element_wise) identifier_element_wise )attribute (argument_list (identifier_re) identifier_re )argument_list )call )return_statement )block )function_definition )module
Element-wise real part Raises: NoConjugateMatrix: if entries have no `conjugate` method and no other way to determine the real part Note: A mathematically equivalent way to obtain a real matrix from a complex matrix ``M`` is:: (M.conjugate() + M) / 2 However, the result may not be identical to ``M.real``, as the latter tries to convert elements of the matrix to real values directly, if possible, and only uses the conjugate as a fall-back
(module (function_definition (function_name_assignParameters) function_name_assignParameters (parameters (identifier_self) identifier_self (identifier_solution_next) identifier_solution_next (identifier_DiscFac) identifier_DiscFac (identifier_LivPrb) identifier_LivPrb (identifier_CRRA) identifier_CRRA (identifier_Rfree) identifier_Rfree (identifier_PermGroFac) identifier_PermGroFac )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_solution_next) identifier_solution_next )attribute (identifier_solution_next) identifier_solution_next )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_DiscFac) identifier_DiscFac )attribute (identifier_DiscFac) identifier_DiscFac )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_LivPrb) identifier_LivPrb )attribute (identifier_LivPrb) identifier_LivPrb )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_CRRA) identifier_CRRA )attribute (identifier_CRRA) identifier_CRRA )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_Rfree) identifier_Rfree )attribute (identifier_Rfree) identifier_Rfree )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_PermGroFac) identifier_PermGroFac )attribute (identifier_PermGroFac) identifier_PermGroFac )assignment )expression_statement )block )function_definition )module
Saves necessary parameters as attributes of self for use by other methods. Parameters ---------- solution_next : ConsumerSolution The solution to next period's one period problem. DiscFac : float Intertemporal discount factor for future utility. LivPrb : float Survival probability; likelihood of being alive at the beginning of the succeeding period. CRRA : float Coefficient of relative risk aversion. Rfree : float Risk free interest factor on end-of-period assets. PermGroFac : float Expected permanent income growth factor at the end of this period. Returns ------- none
(module (function_definition (function_name_re_run_file) function_name_re_run_file (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (attribute (identifier_self) identifier_self (identifier_get_option) identifier_get_option )attribute (argument_list (string_'save_all_before_run') string_'save_all_before_run' )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_save_all) identifier_save_all )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier___last_ec_exec) identifier___last_ec_exec )attribute (None) None )comparison_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (tuple_pattern (identifier_fname) identifier_fname (identifier_wdir) identifier_wdir (identifier_args) identifier_args (identifier_interact) identifier_interact (identifier_debug) identifier_debug (identifier_python) identifier_python (identifier_python_args) identifier_python_args (identifier_current) identifier_current (identifier_systerm) identifier_systerm (identifier_post_mortem) identifier_post_mortem (identifier_clear_namespace) identifier_clear_namespace )tuple_pattern (attribute (identifier_self) identifier_self (identifier___last_ec_exec) identifier___last_ec_exec )attribute )assignment )expression_statement (if_statement (not_operator (identifier_systerm) identifier_systerm )not_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_run_in_current_ipyclient) identifier_run_in_current_ipyclient )attribute (identifier_emit) identifier_emit )attribute (argument_list (identifier_fname) identifier_fname (identifier_wdir) identifier_wdir (identifier_args) identifier_args (identifier_debug) identifier_debug (identifier_post_mortem) identifier_post_mortem (identifier_current) identifier_current (identifier_clear_namespace) identifier_clear_namespace )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_main) identifier_main )attribute (identifier_open_external_console) identifier_open_external_console )attribute (argument_list (identifier_fname) identifier_fname (identifier_wdir) identifier_wdir (identifier_args) identifier_args (identifier_interact) identifier_interact (identifier_debug) identifier_debug (identifier_python) identifier_python (identifier_python_args) identifier_python_args (identifier_systerm) identifier_systerm (identifier_post_mortem) identifier_post_mortem )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Re-run last script
(module (function_definition (function_name_merge_entity) function_name_merge_entity (parameters (identifier_self) identifier_self (identifier_table_name) identifier_table_name (identifier_entity) identifier_entity (default_parameter (identifier_if_match) identifier_if_match (string_'*') string_'*' )default_parameter (default_parameter (identifier_timeout) identifier_timeout (None) None )default_parameter )parameters (block (expression_statement (call (identifier__validate_not_none) identifier__validate_not_none (argument_list (string_'table_name') string_'table_name' (identifier_table_name) identifier_table_name )argument_list )call )expression_statement (expression_statement (assignment (identifier_request) identifier_request (call (identifier__merge_entity) identifier__merge_entity (argument_list (identifier_entity) identifier_entity (identifier_if_match) identifier_if_match (attribute (identifier_self) identifier_self (identifier_require_encryption) identifier_require_encryption )attribute (attribute (identifier_self) identifier_self (identifier_key_encryption_key) identifier_key_encryption_key )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_host_locations) identifier_host_locations )attribute (call (attribute (identifier_self) identifier_self (identifier__get_host_locations) identifier__get_host_locations )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_request) identifier_request (identifier_query) identifier_query )attribute (string_'timeout') string_'timeout' )subscript (call (identifier__int_to_str) identifier__int_to_str (argument_list (identifier_timeout) identifier_timeout )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_request) identifier_request (identifier_path) identifier_path )attribute (call (identifier__get_entity_path) identifier__get_entity_path (argument_list (identifier_table_name) identifier_table_name (subscript (identifier_entity) identifier_entity (string_'PartitionKey') string_'PartitionKey' )subscript (subscript (identifier_entity) identifier_entity (string_'RowKey') string_'RowKey' )subscript )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__perform_request) identifier__perform_request )attribute (argument_list (identifier_request) identifier_request (identifier__extract_etag) identifier__extract_etag )argument_list )call )return_statement )block )function_definition )module
Updates an existing entity by merging the entity's properties. Throws if the entity does not exist. This operation does not replace the existing entity as the update_entity operation does. A property cannot be removed with merge_entity. Any properties with null values are ignored. All other properties will be updated or added. :param str table_name: The name of the table containing the entity to merge. :param entity: The entity to merge. Could be a dict or an entity object. Must contain a PartitionKey and a RowKey. :type entity: dict or :class:`~azure.storage.table.models.Entity` :param str if_match: The client may specify the ETag for the entity on the request in order to compare to the ETag maintained by the service for the purpose of optimistic concurrency. The merge operation will be performed only if the ETag sent by the client matches the value maintained by the server, indicating that the entity has not been modified since it was retrieved by the client. To force an unconditional merge, set If-Match to the wildcard character (*). :param int timeout: The server timeout, expressed in seconds. :return: The etag of the entity. :rtype: str
(module (function_definition (function_name__generate_rpc_method) function_name__generate_rpc_method (parameters (identifier_self) identifier_self (identifier_method) identifier_method )parameters (block (function_definition (function_name__) function_name__ (parameters (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_msg_id) identifier_msg_id (call (attribute (identifier_self) identifier_self (identifier_get_unique_msg_id) identifier_get_unique_msg_id )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_params) identifier_params (call (identifier_encode_data) identifier_encode_data (argument_list (identifier_kwargs) identifier_kwargs )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_payload) identifier_payload (dictionary (pair (string_'method') string_'method' (identifier_method) identifier_method )pair (pair (string_'params') string_'params' (identifier_params) identifier_params )pair (pair (string_'jsonrpc') string_'jsonrpc' (string_'2.0') string_'2.0' )pair (pair (string_'id') string_'id' (identifier_msg_id) identifier_msg_id )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (call (attribute (identifier_requests) identifier_requests (identifier_post) identifier_post )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_url) identifier_url )attribute (keyword_argument (identifier_data) identifier_data (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_payload) identifier_payload )argument_list )call )keyword_argument (keyword_argument (identifier_headers) identifier_headers (attribute (identifier_self) identifier_self (identifier_headers) identifier_headers )attribute )keyword_argument )argument_list )call (identifier_json) identifier_json )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (parenthesized_expression (comparison_operator (string_'error') string_'error' (identifier_response) identifier_response )comparison_operator )parenthesized_expression (block (if_statement (comparison_operator (subscript (subscript (identifier_response) identifier_response (string_'error') string_'error' )subscript (string_'code') string_'code' )subscript (identifier_JSONRPC_NO_RESULT) identifier_JSONRPC_NO_RESULT )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (binary_operator (string_'Got error from RPC server when called "%s" error: %s') string_'Got error from RPC server when called "%s" error: %s' (tuple (identifier_method) identifier_method (subscript (identifier_response) identifier_response (string_'error') string_'error' )subscript )tuple )binary_operator )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (string_'result') string_'result' (identifier_response) identifier_response )comparison_operator (block (expression_statement (assignment (identifier_result) identifier_result (call (identifier_decode_data) identifier_decode_data (argument_list (subscript (identifier_response) identifier_response (string_'result') string_'result' )subscript )argument_list )call )assignment )expression_statement (return_statement (identifier_result) identifier_result )return_statement )block )if_statement )block )function_definition (return_statement (identifier__) identifier__ )return_statement )block )function_definition )module
Generate a function that performs rpc call :param method: method name :return: rpc function
(module (function_definition (function_name__archive_single_dir) function_name__archive_single_dir (parameters (identifier_archive) identifier_archive )parameters (block (expression_statement (assignment (identifier_common_root) identifier_common_root (None) None )assignment )expression_statement (for_statement (identifier_info) identifier_info (call (identifier__list_archive_members) identifier__list_archive_members (argument_list (identifier_archive) identifier_archive )argument_list )call (block (expression_statement (assignment (identifier_fn) identifier_fn (call (identifier__info_name) identifier__info_name (argument_list (identifier_info) identifier_info )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_fn) identifier_fn (call (identifier_set) identifier_set (argument_list (list (string_'.') string_'.' (string_'/') string_'/' )list )argument_list )call )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_sep) identifier_sep (None) None )assignment )expression_statement (if_statement (comparison_operator (string_'/') string_'/' (identifier_fn) identifier_fn )comparison_operator (block (expression_statement (assignment (identifier_sep) identifier_sep (string_'/') string_'/' )assignment )expression_statement )block (elif_clause (comparison_operator (string_'\\') string_'\\' (identifier_fn) identifier_fn )comparison_operator (block (expression_statement (assignment (identifier_sep) identifier_sep (string_'\\') string_'\\' )assignment )expression_statement )block )elif_clause )if_statement (if_statement (comparison_operator (identifier_sep) identifier_sep (None) None )comparison_operator (block (expression_statement (assignment (identifier_root_dir) identifier_root_dir (identifier_fn) identifier_fn )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (pattern_list (identifier_root_dir) identifier_root_dir (identifier__) identifier__ )pattern_list (call (attribute (identifier_fn) identifier_fn (identifier_split) identifier_split )attribute (argument_list (identifier_sep) identifier_sep (integer_1) integer_1 )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (comparison_operator (identifier_common_root) identifier_common_root (None) None )comparison_operator (block (expression_statement (assignment (identifier_common_root) identifier_common_root (identifier_root_dir) identifier_root_dir )assignment )expression_statement )block (else_clause (block (if_statement (comparison_operator (identifier_common_root) identifier_common_root (identifier_root_dir) identifier_root_dir )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_common_root) identifier_common_root )return_statement )block )function_definition )module
Check if all members of the archive are in a single top-level directory :param archive: An archive from _open_archive() :return: None if not a single top level directory in archive, otherwise a unicode string of the top level directory name
(module (function_definition (function_name_add_handler) function_name_add_handler (parameters (identifier_cls) identifier_cls (identifier_level) identifier_level (identifier_fmt) identifier_fmt (identifier_colorful) identifier_colorful (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (global_statement (identifier_g_logger) identifier_g_logger )global_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_level) identifier_level (identifier_str) identifier_str )argument_list )call (block (expression_statement (assignment (identifier_level) identifier_level (call (identifier_getattr) identifier_getattr (argument_list (identifier_logging) identifier_logging (call (attribute (identifier_level) identifier_level (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call (attribute (identifier_logging) identifier_logging (identifier_DEBUG) identifier_DEBUG )attribute )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_handler) identifier_handler (call (identifier_cls) identifier_cls (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_handler) identifier_handler (identifier_setLevel) identifier_setLevel )attribute (argument_list (identifier_level) identifier_level )argument_list )call )expression_statement (if_statement (identifier_colorful) identifier_colorful (block (expression_statement (assignment (identifier_formatter) identifier_formatter (call (identifier_ColoredFormatter) identifier_ColoredFormatter (argument_list (identifier_fmt) identifier_fmt (keyword_argument (identifier_datefmt) identifier_datefmt (string_'%Y-%m-%d %H:%M:%S') string_'%Y-%m-%d %H:%M:%S' )keyword_argument )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_formatter) identifier_formatter (call (attribute (identifier_logging) identifier_logging (identifier_Formatter) identifier_Formatter )attribute (argument_list (identifier_fmt) identifier_fmt (keyword_argument (identifier_datefmt) identifier_datefmt (string_'%Y-%m-%d %H:%M:%S') string_'%Y-%m-%d %H:%M:%S' )keyword_argument )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_handler) identifier_handler (identifier_setFormatter) identifier_setFormatter )attribute (argument_list (identifier_formatter) identifier_formatter )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_g_logger) identifier_g_logger (identifier_addHandler) identifier_addHandler )attribute (argument_list (identifier_handler) identifier_handler )argument_list )call )expression_statement (return_statement (identifier_handler) identifier_handler )return_statement )block )function_definition )module
Add a configured handler to the global logger.
(module (function_definition (function_name__get_load_ramping_construct) function_name__get_load_ramping_construct (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_bus_no) identifier_bus_no (call (attribute (identifier_integer) identifier_integer (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"bus_no") string_"bus_no" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_s_rating) identifier_s_rating (call (attribute (identifier_real) identifier_real (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"s_rating") string_"s_rating" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_up_rate) identifier_up_rate (call (attribute (identifier_real) identifier_real (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"up_rate") string_"up_rate" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_down_rate) identifier_down_rate (call (attribute (identifier_real) identifier_real (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"down_rate") string_"down_rate" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_min_up_time) identifier_min_up_time (call (attribute (identifier_real) identifier_real (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"min_up_time") string_"min_up_time" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_min_down_time) identifier_min_down_time (call (attribute (identifier_real) identifier_real (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"min_down_time") string_"min_down_time" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_n_period_up) identifier_n_period_up (call (attribute (identifier_integer) identifier_integer (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"n_period_up") string_"n_period_up" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_n_period_down) identifier_n_period_down (call (attribute (identifier_integer) identifier_integer (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"n_period_down") string_"n_period_down" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_status) identifier_status (call (attribute (identifier_boolean) identifier_boolean (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_"status") string_"status" )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_l_ramp_data) identifier_l_ramp_data (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (binary_operator (identifier_bus_no) identifier_bus_no (identifier_s_rating) identifier_s_rating )binary_operator (identifier_up_rate) identifier_up_rate )binary_operator (identifier_down_rate) identifier_down_rate )binary_operator (line_continuation_\) line_continuation_\ (identifier_min_up_time) identifier_min_up_time )binary_operator (identifier_min_down_time) identifier_min_down_time )binary_operator (identifier_n_period_up) identifier_n_period_up )binary_operator (line_continuation_\) line_continuation_\ (identifier_n_period_down) identifier_n_period_down )binary_operator (identifier_status) identifier_status )binary_operator (identifier_scolon) identifier_scolon )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_l_ramp_array) identifier_l_ramp_array (binary_operator (binary_operator (binary_operator (call (identifier_Literal) identifier_Literal (argument_list (string_"Rmpl.con") string_"Rmpl.con" )argument_list )call (string_"=") string_"=" )binary_operator (string_"[") string_"[" )binary_operator (line_continuation_\) line_continuation_\ (call (identifier_ZeroOrMore) identifier_ZeroOrMore (argument_list (binary_operator (identifier_l_ramp_data) identifier_l_ramp_data (call (identifier_Optional) identifier_Optional (argument_list (binary_operator (string_"]") string_"]" (identifier_scolon) identifier_scolon )binary_operator )argument_list )call )binary_operator )argument_list )call )binary_operator )assignment )expression_statement (return_statement (identifier_l_ramp_array) identifier_l_ramp_array )return_statement )block )function_definition )module
Returns a construct for an array of load ramping data.
(module (function_definition (function_name__find_files) function_name__find_files (parameters (identifier_root) identifier_root (identifier_includes) identifier_includes (identifier_excludes) identifier_excludes (identifier_follow_symlinks) identifier_follow_symlinks )parameters (block (expression_statement (assignment (identifier_root) identifier_root (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (identifier_root) identifier_root )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_file_set) identifier_file_set (call (attribute (identifier_formic) identifier_formic (identifier_FileSet) identifier_FileSet )attribute (argument_list (keyword_argument (identifier_directory) identifier_directory (identifier_root) identifier_root )keyword_argument (keyword_argument (identifier_include) identifier_include (identifier_includes) identifier_includes )keyword_argument (keyword_argument (identifier_exclude) identifier_exclude (identifier_excludes) identifier_excludes )keyword_argument (keyword_argument (identifier_symlinks) identifier_symlinks (identifier_follow_symlinks) identifier_follow_symlinks )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_filename) identifier_filename (call (attribute (identifier_file_set) identifier_file_set (identifier_qualified_files) identifier_qualified_files )attribute (argument_list (keyword_argument (identifier_absolute) identifier_absolute (False) False )keyword_argument )argument_list )call (block (expression_statement (yield (identifier_filename) identifier_filename )yield )expression_statement )block )for_statement )block )function_definition )module
List files inside a directory based on include and exclude rules. This is a more advanced version of `glob.glob`, that accepts multiple complex patterns. Args: root (str): base directory to list files from. includes (list[str]): inclusion patterns. Only files matching those patterns will be included in the result. excludes (list[str]): exclusion patterns. Files matching those patterns will be excluded from the result. Exclusions take precedence over inclusions. follow_symlinks (bool): If true, symlinks will be included in the resulting zip file Yields: str: a file name relative to the root. Note: Documentation for the patterns can be found at http://www.aviser.asia/formic/doc/index.html
(module (function_definition (function_name__apply_xheaders) function_name__apply_xheaders (parameters (identifier_self) identifier_self (typed_parameter (identifier_headers) identifier_headers (type (attribute (identifier_httputil) identifier_httputil (identifier_HTTPHeaders) identifier_HTTPHeaders )attribute )type )typed_parameter )parameters (type (None) None )type (block (expression_statement (assignment (identifier_ip) identifier_ip (call (attribute (identifier_headers) identifier_headers (identifier_get) identifier_get )attribute (argument_list (string_"X-Forwarded-For") string_"X-Forwarded-For" (attribute (identifier_self) identifier_self (identifier_remote_ip) identifier_remote_ip )attribute )argument_list )call )assignment )expression_statement (for_statement (identifier_ip) identifier_ip (generator_expression (call (attribute (identifier_cand) identifier_cand (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (for_in_clause (identifier_cand) identifier_cand (call (identifier_reversed) identifier_reversed (argument_list (call (attribute (identifier_ip) identifier_ip (identifier_split) identifier_split )attribute (argument_list (string_",") string_"," )argument_list )call )argument_list )call )for_in_clause )generator_expression (block (if_statement (comparison_operator (identifier_ip) identifier_ip (attribute (identifier_self) identifier_self (identifier_trusted_downstream) identifier_trusted_downstream )attribute )comparison_operator (block (break_statement )break_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_ip) identifier_ip (call (attribute (identifier_headers) identifier_headers (identifier_get) identifier_get )attribute (argument_list (string_"X-Real-Ip") string_"X-Real-Ip" (identifier_ip) identifier_ip )argument_list )call )assignment )expression_statement (if_statement (call (attribute (identifier_netutil) identifier_netutil (identifier_is_valid_ip) identifier_is_valid_ip )attribute (argument_list (identifier_ip) identifier_ip )argument_list )call (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_remote_ip) identifier_remote_ip )attribute (identifier_ip) identifier_ip )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_proto_header) identifier_proto_header (call (attribute (identifier_headers) identifier_headers (identifier_get) identifier_get )attribute (argument_list (string_"X-Scheme") string_"X-Scheme" (call (attribute (identifier_headers) identifier_headers (identifier_get) identifier_get )attribute (argument_list (string_"X-Forwarded-Proto") string_"X-Forwarded-Proto" (attribute (identifier_self) identifier_self (identifier_protocol) identifier_protocol )attribute )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (identifier_proto_header) identifier_proto_header (block (expression_statement (assignment (identifier_proto_header) identifier_proto_header (call (attribute (subscript (call (attribute (identifier_proto_header) identifier_proto_header (identifier_split) identifier_split )attribute (argument_list (string_",") string_"," )argument_list )call (unary_operator (integer_1) integer_1 )unary_operator )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_proto_header) identifier_proto_header (tuple (string_"http") string_"http" (string_"https") string_"https" )tuple )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_protocol) identifier_protocol )attribute (identifier_proto_header) identifier_proto_header )assignment )expression_statement )block )if_statement )block )function_definition )module
Rewrite the ``remote_ip`` and ``protocol`` fields.
(module (function_definition (function_name_get_alt_description) function_name_get_alt_description (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (comparison_operator (string_'altDescription') string_'altDescription' (attribute (identifier_self) identifier_self (identifier_attributes) identifier_attributes )attribute )comparison_operator (call (identifier_bool) identifier_bool (argument_list (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_attributes) identifier_attributes )attribute (string_'altDescription') string_'altDescription' )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )argument_list )call )boolean_operator (block (return_statement (subscript (attribute (identifier_self) identifier_self (identifier_attributes) identifier_attributes )attribute (string_'altDescription') string_'altDescription' )subscript )return_statement )block (else_clause (block (return_statement (None) None )return_statement )block )else_clause )if_statement )block )function_definition )module
Returns the alternate description of a parameter. Only pipeline prompt-when-run parameters can have alternate names and alternate descriptions
(module (function_definition (function_name_rename_to_tmp_name) function_name_rename_to_tmp_name (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_rename) identifier_rename )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute (binary_operator (string_'%s_%s') string_'%s_%s' (tuple (attribute (identifier_self) identifier_self (identifier_short_id) identifier_short_id )attribute (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute )tuple )binary_operator )argument_list )call )expression_statement )block )function_definition )module
Rename the container to a hopefully unique temporary container name by prepending the short id.
(module (function_definition (function_name_wait_for_element_by_selector) function_name_wait_for_element_by_selector (parameters (identifier_self) identifier_self (identifier_selector) identifier_selector (identifier_seconds) identifier_seconds )parameters (block (function_definition (function_name_assert_element_present) function_name_assert_element_present (parameters )parameters (block (if_statement (not_operator (call (identifier_find_elements_by_jquery) identifier_find_elements_by_jquery (argument_list (attribute (identifier_world) identifier_world (identifier_browser) identifier_browser )attribute (identifier_selector) identifier_selector )argument_list )call )not_operator (block (raise_statement (call (identifier_AssertionError) identifier_AssertionError (argument_list (string_"Expected a matching element.") string_"Expected a matching element." )argument_list )call )raise_statement )block )if_statement )block )function_definition (expression_statement (call (call (identifier_wait_for) identifier_wait_for (argument_list (identifier_assert_element_present) identifier_assert_element_present )argument_list )call (argument_list (keyword_argument (identifier_timeout) identifier_timeout (call (identifier_int) identifier_int (argument_list (identifier_seconds) identifier_seconds )argument_list )call )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Assert an element exists matching the given selector within the given time period.
(module (function_definition (function_name_parse_services) function_name_parse_services (parameters (identifier_rule) identifier_rule )parameters (block (expression_statement (assignment (identifier_parser) identifier_parser (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentParser) identifier_ArgumentParser )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_rules) identifier_rules (call (attribute (identifier_shlex) identifier_shlex (identifier_split) identifier_split )attribute (argument_list (identifier_rule) identifier_rule )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_rules) identifier_rules (identifier_pop) identifier_pop )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'--disabled') string_'--disabled' (keyword_argument (identifier_dest) identifier_dest (string_'disabled') string_'disabled' )keyword_argument (keyword_argument (identifier_action) identifier_action (string_'store') string_'store' )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_'--enabled') string_'--enabled' (keyword_argument (identifier_dest) identifier_dest (string_'enabled') string_'enabled' )keyword_argument (keyword_argument (identifier_action) identifier_action (string_'store') string_'store' )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_args) identifier_args (call (identifier_clean_args) identifier_clean_args (argument_list (call (identifier_vars) identifier_vars (argument_list (call (attribute (identifier_parser) identifier_parser (identifier_parse_args) identifier_parse_args )attribute (argument_list (identifier_rules) identifier_rules )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_parser) identifier_parser (None) None )assignment )expression_statement (return_statement (identifier_args) identifier_args )return_statement )block )function_definition )module
Parse the services line
(module (function_definition (function_name_replace_variables) function_name_replace_variables (parameters (typed_parameter (identifier_sentence) identifier_sentence (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type )typed_parameter (typed_parameter (identifier_sentence_variables) identifier_sentence_variables (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_str) identifier_str )type )type_parameter )generic_type )type )typed_parameter )parameters (type (generic_type (identifier_Tuple) identifier_Tuple (type_parameter (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type )type_parameter )generic_type )type (block (expression_statement (assignment (identifier_tokens) identifier_tokens (list )list )assignment )expression_statement (expression_statement (assignment (identifier_tags) identifier_tags (list )list )assignment )expression_statement (for_statement (identifier_token) identifier_token (identifier_sentence) identifier_sentence (block (if_statement (comparison_operator (identifier_token) identifier_token (identifier_sentence_variables) identifier_sentence_variables )comparison_operator (block (expression_statement (call (attribute (identifier_tokens) identifier_tokens (identifier_append) identifier_append )attribute (argument_list (identifier_token) identifier_token )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_tags) identifier_tags (identifier_append) identifier_append )attribute (argument_list (string_"O") string_"O" )argument_list )call )expression_statement )block (else_clause (block (for_statement (identifier_word) identifier_word (call (attribute (subscript (identifier_sentence_variables) identifier_sentence_variables (identifier_token) identifier_token )subscript (identifier_split) identifier_split )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (identifier_tokens) identifier_tokens (identifier_append) identifier_append )attribute (argument_list (identifier_word) identifier_word )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_tags) identifier_tags (identifier_append) identifier_append )attribute (argument_list (identifier_token) identifier_token )argument_list )call )expression_statement )block )for_statement )block )else_clause )if_statement )block )for_statement (return_statement (expression_list (identifier_tokens) identifier_tokens (identifier_tags) identifier_tags )expression_list )return_statement )block )function_definition )module
Replaces abstract variables in text with their concrete counterparts.
(module (function_definition (function_name_get_local_environnement) function_name_get_local_environnement (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_local_env) identifier_local_env (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_local_var) identifier_local_var (attribute (identifier_self) identifier_self (identifier_env) identifier_env )attribute (block (expression_statement (assignment (subscript (identifier_local_env) identifier_local_env (identifier_local_var) identifier_local_var )subscript (subscript (attribute (identifier_self) identifier_self (identifier_env) identifier_env )attribute (identifier_local_var) identifier_local_var )subscript )assignment )expression_statement )block )for_statement (return_statement (identifier_local_env) identifier_local_env )return_statement )block )function_definition )module
Mix the environment and the environment variables into a new local environment dictionary Note: We cannot just update the global os.environ because this would effect all other checks. :return: local environment variables :rtype: dict
(module (function_definition (function_name_add_behave_arguments) function_name_add_behave_arguments (parameters (identifier_parser) identifier_parser )parameters (block (expression_statement (assignment (identifier_conflicts) identifier_conflicts (list (string_'--no-color') string_'--no-color' (string_'--version') string_'--version' (string_'-c') string_'-c' (string_'-k') string_'-k' (string_'-v') string_'-v' (string_'-S') string_'-S' (string_'--simple') string_'--simple' )list )assignment )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'paths') string_'paths' (keyword_argument (identifier_action) identifier_action (string_'store') string_'store' )keyword_argument (keyword_argument (identifier_nargs) identifier_nargs (string_'*') string_'*' )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"Feature directory, file or file location (FILE:LINE).") string_"Feature directory, file or file location (FILE:LINE)." )keyword_argument )argument_list )call )expression_statement (for_statement (pattern_list (identifier_fixed) identifier_fixed (identifier_keywords) identifier_keywords )pattern_list (identifier_behave_options) identifier_behave_options (block (expression_statement (assignment (identifier_keywords) identifier_keywords (call (attribute (identifier_keywords) identifier_keywords (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_fixed) identifier_fixed )not_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_option_strings) identifier_option_strings (list )list )assignment )expression_statement (for_statement (identifier_option) identifier_option (identifier_fixed) identifier_fixed (block (if_statement (comparison_operator (identifier_option) identifier_option (identifier_conflicts) identifier_conflicts )comparison_operator (block (expression_statement (assignment (identifier_prefix) identifier_prefix (conditional_expression (string_'--') string_'--' (call (attribute (identifier_option) identifier_option (identifier_startswith) identifier_startswith )attribute (argument_list (string_'--') string_'--' )argument_list )call (string_'-') string_'-' )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_option) identifier_option (call (attribute (identifier_option) identifier_option (identifier_replace) identifier_replace )attribute (argument_list (identifier_prefix) identifier_prefix (string_'--behave-') string_'--behave-' (integer_1) integer_1 )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_option_strings) identifier_option_strings (identifier_append) identifier_append )attribute (argument_list (identifier_option) identifier_option )argument_list )call )expression_statement )block )for_statement (if_statement (comparison_operator (string_'config_help') string_'config_help' (identifier_keywords) identifier_keywords )comparison_operator (block (expression_statement (assignment (subscript (identifier_keywords) identifier_keywords (string_'help') string_'help' )subscript (subscript (identifier_keywords) identifier_keywords (string_'config_help') string_'config_help' )subscript )assignment )expression_statement (delete_statement (subscript (identifier_keywords) identifier_keywords (string_'config_help') string_'config_help' )subscript )delete_statement )block )if_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (list_splat (identifier_option_strings) identifier_option_strings )list_splat (dictionary_splat (identifier_keywords) identifier_keywords )dictionary_splat )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Additional command line arguments extracted directly from behave
(module (function_definition (function_name_sget_steptime) function_name_sget_steptime (parameters (identifier_self) identifier_self (identifier_cycle) identifier_cycle (identifier_step) identifier_step (default_parameter (identifier_dataset_number) identifier_dataset_number (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_dataset_number) identifier_dataset_number (call (attribute (identifier_self) identifier_self (identifier__validate_dataset_number) identifier__validate_dataset_number )attribute (argument_list (identifier_dataset_number) identifier_dataset_number )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_dataset_number) identifier_dataset_number (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__report_empty_dataset) identifier__report_empty_dataset )attribute (argument_list )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_cycle_index_header) identifier_cycle_index_header (attribute (attribute (identifier_self) identifier_self (identifier_headers_normal) identifier_headers_normal )attribute (identifier_cycle_index_txt) identifier_cycle_index_txt )attribute )assignment )expression_statement (expression_statement (assignment (identifier_step_time_header) identifier_step_time_header (attribute (attribute (identifier_self) identifier_self (identifier_headers_normal) identifier_headers_normal )attribute (identifier_step_time_txt) identifier_step_time_txt )attribute )assignment )expression_statement (expression_statement (assignment (identifier_step_index_header) identifier_step_index_header (attribute (attribute (identifier_self) identifier_self (identifier_headers_normal) identifier_headers_normal )attribute (identifier_step_index_txt) identifier_step_index_txt )attribute )assignment )expression_statement (expression_statement (assignment (identifier_test) identifier_test (attribute (subscript (attribute (identifier_self) identifier_self (identifier_datasets) identifier_datasets )attribute (identifier_dataset_number) identifier_dataset_number )subscript (identifier_dfdata) identifier_dfdata )attribute )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_step) identifier_step (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (block (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (concatenated_string (string_f"The varialbe step is a list.") string_f"The varialbe step is a list." (string_f"Should be an integer.") string_f"Should be an integer." (string_f"{step}") string_f"{step}" )concatenated_string )argument_list )call )expression_statement (expression_statement (assignment (identifier_step) identifier_step (subscript (identifier_step) identifier_step (integer_0) integer_0 )subscript )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_c) identifier_c (subscript (attribute (identifier_test) identifier_test (identifier_loc) identifier_loc )attribute (binary_operator (parenthesized_expression (comparison_operator (subscript (identifier_test) identifier_test (identifier_cycle_index_header) identifier_cycle_index_header )subscript (identifier_cycle) identifier_cycle )comparison_operator )parenthesized_expression (parenthesized_expression (comparison_operator (subscript (identifier_test) identifier_test (identifier_step_index_header) identifier_step_index_header )subscript (identifier_step) identifier_step )comparison_operator )parenthesized_expression )binary_operator (slice (colon) colon )slice )subscript )assignment )expression_statement (if_statement (not_operator (call (attribute (identifier_self) identifier_self (identifier_is_empty) identifier_is_empty )attribute (argument_list (identifier_c) identifier_c )argument_list )call )not_operator (block (expression_statement (assignment (identifier_t) identifier_t (subscript (identifier_c) identifier_c (identifier_step_time_header) identifier_step_time_header )subscript )assignment )expression_statement (return_statement (identifier_t) identifier_t )return_statement )block (else_clause (block (return_statement (None) None )return_statement )block )else_clause )if_statement )block )function_definition )module
Returns step time for cycle, step. Convinience function; same as issuing dfdata[(dfdata[cycle_index_header] == cycle) & (dfdata[step_index_header] == step)][step_time_header] Args: cycle: cycle number step: step number dataset_number: the dataset number (automatic selection if None) Returns: pandas.Series or None if empty
(module (function_definition (function_name__get_jwt_for_audience) function_name__get_jwt_for_audience (parameters (identifier_self) identifier_self (identifier_audience) identifier_audience )parameters (block (expression_statement (assignment (pattern_list (identifier_token) identifier_token (identifier_expiry) identifier_expiry )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier__cache) identifier__cache )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_audience) identifier_audience (tuple (None) None (None) None )tuple )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_token) identifier_token (None) None )comparison_operator (comparison_operator (identifier_expiry) identifier_expiry (call (attribute (identifier__helpers) identifier__helpers (identifier_utcnow) identifier_utcnow )attribute (argument_list )argument_list )call )comparison_operator )boolean_operator (block (expression_statement (assignment (pattern_list (identifier_token) identifier_token (identifier_expiry) identifier_expiry )pattern_list (call (attribute (identifier_self) identifier_self (identifier__make_jwt_for_audience) identifier__make_jwt_for_audience )attribute (argument_list (identifier_audience) identifier_audience )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__cache) identifier__cache )attribute (identifier_audience) identifier_audience )subscript (expression_list (identifier_token) identifier_token (identifier_expiry) identifier_expiry )expression_list )assignment )expression_statement )block )if_statement (return_statement (identifier_token) identifier_token )return_statement )block )function_definition )module
Get a JWT For a given audience. If there is already an existing, non-expired token in the cache for the audience, that token is used. Otherwise, a new token will be created. Args: audience (str): The intended audience. Returns: bytes: The encoded JWT.
(module (function_definition (function_name_subvolume_find_new) function_name_subvolume_find_new (parameters (identifier_name) identifier_name (identifier_last_gen) identifier_last_gen )parameters (block (expression_statement (assignment (identifier_cmd) identifier_cmd (list (string_'btrfs') string_'btrfs' (string_'subvolume') string_'subvolume' (string_'find-new') string_'find-new' (identifier_name) identifier_name (identifier_last_gen) identifier_last_gen )list )assignment )expression_statement (expression_statement (assignment (identifier_res) identifier_res (call (subscript (identifier___salt__) identifier___salt__ (string_'cmd.run_all') string_'cmd.run_all' )subscript (argument_list (identifier_cmd) identifier_cmd )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_fsutils) identifier_fsutils )attribute (identifier__verify_run) identifier__verify_run )attribute (argument_list (identifier_res) identifier_res )argument_list )call )expression_statement (expression_statement (assignment (identifier_lines) identifier_lines (call (attribute (subscript (identifier_res) identifier_res (string_'stdout') string_'stdout' )subscript (identifier_splitlines) identifier_splitlines )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_files) identifier_files (list_comprehension (subscript (call (attribute (identifier_l) identifier_l (identifier_split) identifier_split )attribute (argument_list )argument_list )call (unary_operator (integer_1) integer_1 )unary_operator )subscript (for_in_clause (identifier_l) identifier_l (identifier_lines) identifier_lines )for_in_clause (if_clause (call (attribute (identifier_l) identifier_l (identifier_startswith) identifier_startswith )attribute (argument_list (string_'inode') string_'inode' )argument_list )call )if_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_transid) identifier_transid (subscript (call (attribute (subscript (identifier_lines) identifier_lines (unary_operator (integer_1) integer_1 )unary_operator )subscript (identifier_split) identifier_split )attribute (argument_list )argument_list )call (unary_operator (integer_1) integer_1 )unary_operator )subscript )assignment )expression_statement (return_statement (dictionary (pair (string_'files') string_'files' (identifier_files) identifier_files )pair (pair (string_'transid') string_'transid' (identifier_transid) identifier_transid )pair )dictionary )return_statement )block )function_definition )module
List the recently modified files in a subvolume name Name of the subvolume last_gen Last transid marker from where to compare CLI Example: .. code-block:: bash salt '*' btrfs.subvolume_find_new /var/volumes/tmp 1024
(module (function_definition (function_name__apply_over_vars_with_dim) function_name__apply_over_vars_with_dim (parameters (identifier_func) identifier_func (identifier_self) identifier_self (default_parameter (identifier_dim) identifier_dim (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_ds) identifier_ds (call (call (identifier_type) identifier_type (argument_list (identifier_self) identifier_self )argument_list )call (argument_list (keyword_argument (identifier_coords) identifier_coords (attribute (identifier_self) identifier_self (identifier_coords) identifier_coords )attribute )keyword_argument (keyword_argument (identifier_attrs) identifier_attrs (attribute (identifier_self) identifier_self (identifier_attrs) identifier_attrs )attribute )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_name) identifier_name (identifier_var) identifier_var )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_data_vars) identifier_data_vars )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (comparison_operator (identifier_dim) identifier_dim (attribute (identifier_var) identifier_var (identifier_dims) identifier_dims )attribute )comparison_operator (block (expression_statement (assignment (subscript (identifier_ds) identifier_ds (identifier_name) identifier_name )subscript (call (identifier_func) identifier_func (argument_list (identifier_var) identifier_var (keyword_argument (identifier_dim) identifier_dim (identifier_dim) identifier_dim )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_ds) identifier_ds (identifier_name) identifier_name )subscript (identifier_var) identifier_var )assignment )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (identifier_ds) identifier_ds )return_statement )block )function_definition )module
wrapper for datasets
(module (function_definition (function_name_substring_search) function_name_substring_search (parameters (identifier_query) identifier_query (identifier_list_of_strings) identifier_list_of_strings (default_parameter (identifier_limit_results) identifier_limit_results (identifier_DEFAULT_LIMIT) identifier_DEFAULT_LIMIT )default_parameter )parameters (block (expression_statement (assignment (identifier_matching) identifier_matching (list )list )assignment )expression_statement (expression_statement (assignment (identifier_query_words) identifier_query_words (call (attribute (identifier_query) identifier_query (identifier_split) identifier_split )attribute (argument_list (string_' ') string_' ' )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_query_words) identifier_query_words (identifier_sort) identifier_sort )attribute (argument_list (keyword_argument (identifier_key) identifier_key (identifier_len) identifier_len )keyword_argument (keyword_argument (identifier_reverse) identifier_reverse (True) True )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_counter) identifier_counter (integer_0) integer_0 )assignment )expression_statement (for_statement (identifier_s) identifier_s (identifier_list_of_strings) identifier_list_of_strings (block (expression_statement (assignment (identifier_target_words) identifier_target_words (call (attribute (identifier_s) identifier_s (identifier_split) identifier_split )attribute (argument_list (string_' ') string_' ' )argument_list )call )assignment )expression_statement (if_statement (parenthesized_expression (call (identifier_anyword_substring_search) identifier_anyword_substring_search (argument_list (identifier_target_words) identifier_target_words (identifier_query_words) identifier_query_words )argument_list )call )parenthesized_expression (block (expression_statement (call (attribute (identifier_matching) identifier_matching (identifier_append) identifier_append )attribute (argument_list (identifier_s) identifier_s )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_counter) identifier_counter (integer_1) integer_1 )augmented_assignment )expression_statement (if_statement (parenthesized_expression (comparison_operator (identifier_counter) identifier_counter (identifier_limit_results) identifier_limit_results )comparison_operator )parenthesized_expression (block (break_statement )break_statement )block )if_statement )block )if_statement )block )for_statement (return_statement (identifier_matching) identifier_matching )return_statement )block )function_definition )module
main function to call for searching
(module (function_definition (function_name_use_comparative_sequence_rule_enabler_view) function_name_use_comparative_sequence_rule_enabler_view (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__object_views) identifier__object_views )attribute (string_'sequence_rule_enabler') string_'sequence_rule_enabler' )subscript (identifier_COMPARATIVE) identifier_COMPARATIVE )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_comparative_sequence_rule_enabler_view) identifier_use_comparative_sequence_rule_enabler_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 SequenceRuleEnablerLookupSession.use_comparative_sequence_rule_enabler_view
(module (function_definition (function_name__get_event_cls) function_name__get_event_cls (parameters (identifier_view_obj) identifier_view_obj (identifier_events_map) identifier_events_map )parameters (block (expression_statement (assignment (identifier_request) identifier_request (attribute (identifier_view_obj) identifier_view_obj (identifier_request) identifier_request )attribute )assignment )expression_statement (expression_statement (assignment (identifier_view_method) identifier_view_method (call (identifier_getattr) identifier_getattr (argument_list (identifier_view_obj) identifier_view_obj (attribute (identifier_request) identifier_request (identifier_action) identifier_action )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_event_action) identifier_event_action (parenthesized_expression (boolean_operator (call (identifier_getattr) identifier_getattr (argument_list (identifier_view_method) identifier_view_method (string_'_event_action') string_'_event_action' (None) None )argument_list )call (attribute (identifier_request) identifier_request (identifier_action) identifier_action )attribute )boolean_operator )parenthesized_expression )assignment )expression_statement (return_statement (subscript (identifier_events_map) identifier_events_map (identifier_event_action) identifier_event_action )subscript )return_statement )block )function_definition )module
Helper function to get event class. :param view_obj: Instance of View that processes the request. :param events_map: Map of events from which event class should be picked. :returns: Found event class.
(module (function_definition (function_name_is_cleanly_mergable) function_name_is_cleanly_mergable (parameters (typed_parameter (list_splat_pattern (identifier_dicts) identifier_dicts )list_splat_pattern (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_Any) identifier_Any )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )typed_parameter )parameters (type (identifier_bool) identifier_bool )type (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_dicts) identifier_dicts )argument_list )call (integer_1) integer_1 )comparison_operator (block (return_statement (True) True )return_statement )block (elif_clause (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_dicts) identifier_dicts )argument_list )call (integer_2) integer_2 )comparison_operator (block (if_statement (not_operator (call (identifier_all) identifier_all (generator_expression (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_d) identifier_d (identifier_Mapping) identifier_Mapping )argument_list )call (for_in_clause (identifier_d) identifier_d (identifier_dicts) identifier_dicts )for_in_clause )generator_expression )call )not_operator (block (return_statement (False) False )return_statement )block (else_clause (block (expression_statement (assignment (identifier_shared_keys) identifier_shared_keys (binary_operator (call (identifier_set) identifier_set (argument_list (call (attribute (subscript (identifier_dicts) identifier_dicts (integer_0) integer_0 )subscript (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )argument_list )call (call (identifier_set) identifier_set (argument_list (call (attribute (subscript (identifier_dicts) identifier_dicts (integer_1) integer_1 )subscript (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call )argument_list )call )binary_operator )assignment )expression_statement (return_statement (call (identifier_all) identifier_all (generator_expression (call (identifier_is_cleanly_mergable) identifier_is_cleanly_mergable (argument_list (subscript (subscript (identifier_dicts) identifier_dicts (integer_0) integer_0 )subscript (identifier_key) identifier_key )subscript (subscript (subscript (identifier_dicts) identifier_dicts (integer_1) integer_1 )subscript (identifier_key) identifier_key )subscript )argument_list )call (for_in_clause (identifier_key) identifier_key (identifier_shared_keys) identifier_shared_keys )for_in_clause )generator_expression )call )return_statement )block )else_clause )if_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_dict_combinations) identifier_dict_combinations (call (attribute (identifier_itertools) identifier_itertools (identifier_combinations) identifier_combinations )attribute (argument_list (identifier_dicts) identifier_dicts (integer_2) integer_2 )argument_list )call )assignment )expression_statement (return_statement (call (identifier_all) identifier_all (generator_expression (call (identifier_is_cleanly_mergable) identifier_is_cleanly_mergable (argument_list (list_splat (identifier_combination) identifier_combination )list_splat )argument_list )call (for_in_clause (identifier_combination) identifier_combination (identifier_dict_combinations) identifier_dict_combinations )for_in_clause )generator_expression )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Check that nothing will be overwritten when dictionaries are merged using `deep_merge`. Examples: >>> is_cleanly_mergable({"a": 1}, {"b": 2}, {"c": 3}) True >>> is_cleanly_mergable({"a": 1}, {"b": 2}, {"a": 0, c": 3}) False >>> is_cleanly_mergable({"a": 1, "b": {"ba": 2}}, {"c": 3, {"b": {"bb": 4}}) True >>> is_cleanly_mergable({"a": 1, "b": {"ba": 2}}, {"b": {"ba": 4}}) False
(module (function_definition (function_name__dedent) function_name__dedent (parameters (identifier_text) identifier_text )parameters (block (expression_statement (assignment (identifier_lines) identifier_lines (call (attribute (identifier_text) identifier_text (identifier_split) identifier_split )attribute (argument_list (string_'\n') string_'\n' )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_lines) identifier_lines )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_indent) identifier_indent (integer_0) integer_0 )assignment )expression_statement )block (elif_clause (call (attribute (subscript (identifier_lines) identifier_lines (integer_0) integer_0 )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'when multiple lines, first line must be blank') string_'when multiple lines, first line must be blank' )argument_list )call )raise_statement )block )elif_clause (elif_clause (call (attribute (subscript (identifier_lines) identifier_lines (unary_operator (integer_1) integer_1 )unary_operator )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'last line must only contain indent whitespace') string_'last line must only contain indent whitespace' )argument_list )call )raise_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_indent) identifier_indent (call (identifier_len) identifier_len (argument_list (subscript (identifier_lines) identifier_lines (unary_operator (integer_1) integer_1 )unary_operator )subscript )argument_list )call )assignment )expression_statement (if_statement (call (identifier_any) identifier_any (generator_expression (call (attribute (subscript (identifier_line) identifier_line (slice (colon) colon (identifier_indent) identifier_indent )slice )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (for_in_clause (identifier_line) identifier_line (identifier_lines) identifier_lines )for_in_clause )generator_expression )call (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'indents must equal or exceed indent in last line') string_'indents must equal or exceed indent in last line' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_lines) identifier_lines (subscript (list_comprehension (subscript (identifier_line) identifier_line (slice (identifier_indent) identifier_indent (colon) colon )slice )subscript (for_in_clause (identifier_line) identifier_line (identifier_lines) identifier_lines )for_in_clause )list_comprehension (slice (integer_1) integer_1 (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript )assignment )expression_statement )block )else_clause )if_statement (return_statement (expression_list (identifier_indent) identifier_indent (call (attribute (string_'\n') string_'\n' (identifier_join) identifier_join )attribute (argument_list (identifier_lines) identifier_lines )argument_list )call )expression_list )return_statement )block )function_definition )module
Remove common indentation from each line in a text block. When text block is a single line, return text block. Otherwise determine common indentation from last line, strip common indentation from each line, and return text block consisting of inner lines (don't include first and last lines since they either empty or contain whitespace and are present in baselined string to make them pretty and delineate the common indentation). :param str text: text block :returns: text block with common indentation removed :rtype: str :raises ValueError: when text block violates whitespace rules
(module (function_definition (function_name_revnet) function_name_revnet (parameters (identifier_inputs) identifier_inputs (identifier_hparams) identifier_hparams (default_parameter (identifier_reuse) identifier_reuse (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_training) identifier_training (comparison_operator (attribute (identifier_hparams) identifier_hparams (identifier_mode) identifier_mode )attribute (attribute (attribute (attribute (identifier_tf) identifier_tf (identifier_estimator) identifier_estimator )attribute (identifier_ModeKeys) identifier_ModeKeys )attribute (identifier_TRAIN) identifier_TRAIN )attribute )comparison_operator )assignment )expression_statement (with_statement (with_clause (with_item (call (attribute (identifier_tf) identifier_tf (identifier_variable_scope) identifier_variable_scope )attribute (argument_list (string_'RevNet') string_'RevNet' (keyword_argument (identifier_reuse) identifier_reuse (identifier_reuse) identifier_reuse )keyword_argument )argument_list )call )with_item )with_clause (block (expression_statement (assignment (pattern_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 )pattern_list (call (identifier_init) identifier_init (argument_list (identifier_inputs) identifier_inputs (keyword_argument (identifier_num_channels) identifier_num_channels (attribute (identifier_hparams) identifier_hparams (identifier_num_channels_init_block) identifier_num_channels_init_block )attribute )keyword_argument (keyword_argument (identifier_dim) identifier_dim (attribute (identifier_hparams) identifier_hparams (identifier_dim) identifier_dim )attribute )keyword_argument (keyword_argument (identifier_kernel_size) identifier_kernel_size (attribute (identifier_hparams) identifier_hparams (identifier_init_kernel_size) identifier_init_kernel_size )attribute )keyword_argument (keyword_argument (identifier_maxpool) identifier_maxpool (attribute (identifier_hparams) identifier_hparams (identifier_init_maxpool) identifier_init_maxpool )attribute )keyword_argument (keyword_argument (identifier_stride) identifier_stride (attribute (identifier_hparams) identifier_hparams (identifier_init_stride) identifier_init_stride )attribute )keyword_argument (keyword_argument (identifier_training) identifier_training (identifier_training) identifier_training )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_block_num) identifier_block_num (call (identifier_range) identifier_range (argument_list (call (identifier_len) identifier_len (argument_list (attribute (identifier_hparams) identifier_hparams (identifier_num_layers_per_block) identifier_num_layers_per_block )attribute )argument_list )call )argument_list )call (block (expression_statement (assignment (identifier_block) identifier_block (dictionary (pair (string_'depth') string_'depth' (subscript (attribute (identifier_hparams) identifier_hparams (identifier_num_channels) identifier_num_channels )attribute (identifier_block_num) identifier_block_num )subscript )pair (pair (string_'num_layers') string_'num_layers' (subscript (attribute (identifier_hparams) identifier_hparams (identifier_num_layers_per_block) identifier_num_layers_per_block )attribute (identifier_block_num) identifier_block_num )subscript )pair (pair (string_'first_batch_norm') string_'first_batch_norm' (subscript (attribute (identifier_hparams) identifier_hparams (identifier_first_batch_norm) identifier_first_batch_norm )attribute (identifier_block_num) identifier_block_num )subscript )pair (pair (string_'stride') string_'stride' (subscript (attribute (identifier_hparams) identifier_hparams (identifier_strides) identifier_strides )attribute (identifier_block_num) identifier_block_num )subscript )pair (pair (string_'bottleneck') string_'bottleneck' (attribute (identifier_hparams) identifier_hparams (identifier_bottleneck) identifier_bottleneck )attribute )pair )dictionary )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 )pattern_list (call (identifier_unit) identifier_unit (argument_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 (identifier_block_num) identifier_block_num (keyword_argument (identifier_dim) identifier_dim (attribute (identifier_hparams) identifier_hparams (identifier_dim) identifier_dim )attribute )keyword_argument (keyword_argument (identifier_training) identifier_training (identifier_training) identifier_training )keyword_argument (dictionary_splat (identifier_block) identifier_block )dictionary_splat )argument_list )call )assignment )expression_statement )block )for_statement (expression_statement (assignment (identifier_pre_logits) identifier_pre_logits (call (identifier_final_block) identifier_final_block (argument_list (identifier_x1) identifier_x1 (identifier_x2) identifier_x2 (keyword_argument (identifier_dim) identifier_dim (attribute (identifier_hparams) identifier_hparams (identifier_dim) identifier_dim )attribute )keyword_argument (keyword_argument (identifier_training) identifier_training (identifier_training) identifier_training )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_pre_logits) identifier_pre_logits )return_statement )block )with_statement )block )function_definition )module
Uses Tensor2Tensor memory optimized RevNet block to build a RevNet. Args: inputs: [NxHxWx3] tensor of input images to the model. hparams: HParams object that contains the following parameters, in addition to the parameters contained in the basic_params1() object in the common_hparams module: num_channels_first - A Python list where each element represents the depth of the first and third convolutional layers in the bottleneck residual unit for a given block. num_channels_second - A Python list where each element represents the depth of the second convolutional layer in the bottleneck residual unit for a given block. num_layers_per_block - A Python list containing the number of RevNet layers for each block. first_batch_norm - A Python list containing booleans representing the presence of a batch norm layer at the beginning of a given block. strides - A Python list containing integers representing the stride of the residual function for each block. num_channels_init_block - An integer representing the number of channels for the convolutional layer in the initial block. dimension - A string (either "2d" or "3d") that decides if the RevNet is 2-dimensional or 3-dimensional. reuse: Whether to reuse the default variable scope. Returns: [batch_size, hidden_dim] pre-logits tensor from the bottleneck RevNet.
(module (function_definition (function_name__json_safe) function_name__json_safe (parameters (identifier_cls) identifier_cls (identifier_value) identifier_value )parameters (block (if_statement (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_value) identifier_value )argument_list )call (identifier_date) identifier_date )comparison_operator (block (return_statement (call (identifier_str) identifier_str (argument_list (identifier_value) identifier_value )argument_list )call )return_statement )block (elif_clause (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_value) identifier_value )argument_list )call (identifier_datetime) identifier_datetime )comparison_operator (block (return_statement (call (attribute (identifier_value) identifier_value (identifier_strftime) identifier_strftime )attribute (argument_list (string_'%Y-%m-%d %H:%M:%S') string_'%Y-%m-%d %H:%M:%S' )argument_list )call )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_ObjectId) identifier_ObjectId )argument_list )call (block (return_statement (call (identifier_str) identifier_str (argument_list (identifier_value) identifier_value )argument_list )call )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier__BaseFrame) identifier__BaseFrame )argument_list )call (block (return_statement (call (attribute (identifier_value) identifier_value (identifier_to_json_type) identifier_to_json_type )attribute (argument_list )argument_list )call )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (block (return_statement (list_comprehension (call (attribute (identifier_cls) identifier_cls (identifier__json_safe) identifier__json_safe )attribute (argument_list (identifier_v) identifier_v )argument_list )call (for_in_clause (identifier_v) identifier_v (identifier_value) identifier_value )for_in_clause )list_comprehension )return_statement )block )elif_clause (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_dict) identifier_dict )argument_list )call (block (return_statement (dictionary_comprehension (pair (identifier_k) identifier_k (call (attribute (identifier_cls) identifier_cls (identifier__json_safe) identifier__json_safe )attribute (argument_list (identifier_v) identifier_v )argument_list )call )pair (for_in_clause (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (identifier_value) identifier_value (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )dictionary_comprehension )return_statement )block )elif_clause )if_statement (return_statement (identifier_value) identifier_value )return_statement )block )function_definition )module
Return a JSON safe value
(module (function_definition (function_name__package_conf_file_to_dir) function_name__package_conf_file_to_dir (parameters (identifier_file_name) identifier_file_name )parameters (block (if_statement (comparison_operator (identifier_file_name) identifier_file_name (identifier_SUPPORTED_CONFS) identifier_SUPPORTED_CONFS )comparison_operator (block (expression_statement (assignment (identifier_path) identifier_path (call (attribute (identifier_BASE_PATH) identifier_BASE_PATH (identifier_format) identifier_format )attribute (argument_list (identifier_file_name) identifier_file_name )argument_list )call )assignment )expression_statement (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_exists) identifier_exists )attribute (argument_list (identifier_path) identifier_path )argument_list )call (block (if_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (identifier_path) identifier_path )argument_list )call (block (return_statement (False) False )return_statement )block (else_clause (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_rename) identifier_rename )attribute (argument_list (identifier_path) identifier_path (binary_operator (identifier_path) identifier_path (string_'.tmpbak') string_'.tmpbak' )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_mkdir) identifier_mkdir )attribute (argument_list (identifier_path) identifier_path (integer_0o755) integer_0o755 )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_rename) identifier_rename )attribute (argument_list (binary_operator (identifier_path) identifier_path (string_'.tmpbak') string_'.tmpbak' )binary_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_path) identifier_path (string_'tmp') string_'tmp' )argument_list )call )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_mkdir) identifier_mkdir )attribute (argument_list (identifier_path) identifier_path (integer_0o755) integer_0o755 )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )else_clause )if_statement )block )if_statement )block )function_definition )module
Convert a config file to a config directory.
(module (function_definition (function_name_from_representation) function_name_from_representation (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (if_statement (comparison_operator (identifier_data) identifier_data (attribute (identifier_self) identifier_self (identifier__TRUE_VALUES) identifier__TRUE_VALUES )attribute )comparison_operator (block (return_statement (True) True )return_statement )block (elif_clause (comparison_operator (identifier_data) identifier_data (attribute (identifier_self) identifier_self (identifier__FALSE_VALUES) identifier__FALSE_VALUES )attribute )comparison_operator (block (return_statement (False) False )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (call (attribute (string_"{type} type value must be one of {values}") string_"{type} type value must be one of {values}" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_type) identifier_type (attribute (identifier_self) identifier_self (identifier_type) identifier_type )attribute )keyword_argument (keyword_argument (identifier_values) identifier_values (call (attribute (attribute (identifier_self) identifier_self (identifier__TRUE_VALUES) identifier__TRUE_VALUES )attribute (identifier_union) identifier_union )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__FALSE_VALUES) identifier__FALSE_VALUES )attribute )argument_list )call )keyword_argument )argument_list )call )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Convert representation value to ``bool`` if it has expected form.
(module (function_definition (function_name_add_term) function_name_add_term (parameters (identifier_self) identifier_self (identifier_t) identifier_t )parameters (block (if_statement (comparison_operator (identifier_t) identifier_t (attribute (identifier_self) identifier_self (identifier_terms) identifier_terms )attribute )comparison_operator (block (if_statement (comparison_operator (attribute (identifier_t) identifier_t (identifier_parent_term_lc) identifier_parent_term_lc )attribute (string_'root') string_'root' )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_terms) identifier_terms )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_t) identifier_t )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_doc) identifier_doc )attribute (identifier_add_term) identifier_add_term )attribute (argument_list (identifier_t) identifier_t (keyword_argument (identifier_add_section) identifier_add_section (False) False )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_t) identifier_t (identifier_set_ownership) identifier_set_ownership )attribute (argument_list )argument_list )call )expression_statement )block (else_clause (block (raise_statement (call (identifier_GenerateError) identifier_GenerateError (argument_list (call (attribute (string_"Can only add or move root-level terms. Term '{}' parent is '{}' ") string_"Can only add or move root-level terms. Term '{}' parent is '{}' " (identifier_format) identifier_format )attribute (argument_list (identifier_t) identifier_t (attribute (identifier_t) identifier_t (identifier_parent_term_lc) identifier_parent_term_lc )attribute )argument_list )call )argument_list )call )raise_statement )block )else_clause )if_statement )block )if_statement (assert_statement (boolean_operator (attribute (identifier_t) identifier_t (identifier_section) identifier_section )attribute (comparison_operator (attribute (identifier_t) identifier_t (identifier_join_lc) identifier_join_lc )attribute (string_'root.root') string_'root.root' )comparison_operator )boolean_operator (identifier_t) identifier_t )assert_statement )block )function_definition )module
Add a term to this section and set it's ownership. Should only be used on root level terms
(module (function_definition (function_name_isom) function_name_isom (parameters (identifier_self) identifier_self (default_parameter (identifier_coolingFactor) identifier_coolingFactor (None) None )default_parameter (default_parameter (identifier_EdgeAttribute) identifier_EdgeAttribute (None) None )default_parameter (default_parameter (identifier_initialAdaptation) identifier_initialAdaptation (None) None )default_parameter (line_continuation_\) line_continuation_\ (default_parameter (identifier_maxEpoch) identifier_maxEpoch (None) None )default_parameter (default_parameter (identifier_minAdaptation) identifier_minAdaptation (None) None )default_parameter (default_parameter (identifier_minRadius) identifier_minRadius (None) None )default_parameter (default_parameter (identifier_network) identifier_network (None) None )default_parameter (default_parameter (identifier_NodeAttribute) identifier_NodeAttribute (None) None )default_parameter (line_continuation_\) line_continuation_\ (default_parameter (identifier_nodeList) identifier_nodeList (None) None )default_parameter (default_parameter (identifier_radius) identifier_radius (None) None )default_parameter (default_parameter (identifier_radiusConstantTime) identifier_radiusConstantTime (None) None )default_parameter (default_parameter (identifier_singlePartition) identifier_singlePartition (None) None )default_parameter (line_continuation_\) line_continuation_\ (default_parameter (identifier_sizeFactor) identifier_sizeFactor (None) None )default_parameter (default_parameter (identifier_verbose) identifier_verbose (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_network) identifier_network (call (identifier_check_network) identifier_check_network (argument_list (identifier_self) identifier_self (identifier_network) identifier_network (keyword_argument (identifier_verbose) identifier_verbose (identifier_verbose) identifier_verbose )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_PARAMS) identifier_PARAMS (call (identifier_set_param) identifier_set_param (argument_list (list (string_'coolingFactor') string_'coolingFactor' (string_'EdgeAttribute') string_'EdgeAttribute' (string_'initialAdaptation') string_'initialAdaptation' (string_'maxEpoch') string_'maxEpoch' (string_'minAdaptation') string_'minAdaptation' (string_'minRadius') string_'minRadius' (string_'network') string_'network' (string_'NodeAttribute') string_'NodeAttribute' (string_'nodeList') string_'nodeList' (string_'radius') string_'radius' (string_'radiusConstantTime') string_'radiusConstantTime' (string_'singlePartition') string_'singlePartition' (string_'sizeFactor') string_'sizeFactor' )list (list (identifier_coolingFactor) identifier_coolingFactor (line_continuation_\) line_continuation_\ (identifier_EdgeAttribute) identifier_EdgeAttribute (identifier_initialAdaptation) identifier_initialAdaptation (identifier_maxEpoch) identifier_maxEpoch (identifier_minAdaptation) identifier_minAdaptation (identifier_minRadius) identifier_minRadius (identifier_network) identifier_network (line_continuation_\) line_continuation_\ (identifier_NodeAttribute) identifier_NodeAttribute (identifier_nodeList) identifier_nodeList (identifier_radius) identifier_radius (identifier_radiusConstantTime) identifier_radiusConstantTime (identifier_singlePartition) identifier_singlePartition (identifier_sizeFactor) identifier_sizeFactor )list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (identifier_api) identifier_api (argument_list (keyword_argument (identifier_url) identifier_url (binary_operator (attribute (identifier_self) identifier_self (identifier___url) identifier___url )attribute (string_"/isom") string_"/isom" )binary_operator )keyword_argument (keyword_argument (identifier_PARAMS) identifier_PARAMS (identifier_PARAMS) identifier_PARAMS )keyword_argument (keyword_argument (identifier_method) identifier_method (string_"POST") string_"POST" )keyword_argument (keyword_argument (identifier_verbose) identifier_verbose (identifier_verbose) identifier_verbose )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_response) identifier_response )return_statement )block )function_definition )module
Execute the Inverted Self-Organizing Map Layout on a network. :param coolingFactor (string, optional): Cooling factor, in numeric value :param EdgeAttribute (string, optional): The name of the edge column contai ning numeric values that will be used as weights in the layout algor ithm. Only columns containing numeric values are shown :param initialAdaptation (string, optional): Initial adaptation, in numeric value :param maxEpoch (string, optional): Number of iterations, in numeric value :param minAdaptation (string, optional): Minimum adaptation value, in numer ic value :param minRadius (string, optional): Minimum radius, in numeric value :param network (string, optional): Specifies a network by name, or by SUID if the prefix SUID: is used. The keyword CURRENT, or a blank value c an also be used to specify the current network. :param NodeAttribute (string, optional): The name of the node column contai ning numeric values that will be used as weights in the layout algor ithm. Only columns containing numeric values are shown :param nodeList (string, optional): Specifies a list of nodes. The keywords all, selected, or unselected can be used to specify nodes by their selection state. The pattern COLUMN:VALUE sets this parameter to any rows that contain the specified column value; if the COLUMN prefix is not used, the NAME column is matched by default. A list of COLUMN :VALUE pairs of the format COLUMN1:VALUE1,COLUMN2:VALUE2,... can be used to match multiple values. :param radius (string, optional): Radius, in numeric value :param radiusConstantTime (string, optional): Radius constant, in numeric v alue :param singlePartition (string, optional): Don't partition graph before lay out; boolean values only, true or false; defaults to false :param sizeFactor (string, optional): Size factor, in numeric value
(module (function_definition (function_name__should_set) function_name__should_set (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_mode) identifier_mode )parameters (block (if_statement (boolean_operator (comparison_operator (identifier_mode) identifier_mode (None) None )comparison_operator (comparison_operator (identifier_mode) identifier_mode (list (string_"nx") string_"nx" (string_"xx") string_"xx" )list )comparison_operator )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (comparison_operator (identifier_mode) identifier_mode (string_"nx") string_"nx" )comparison_operator (block (if_statement (comparison_operator (identifier_key) identifier_key (attribute (identifier_self) identifier_self (identifier_redis) identifier_redis )attribute )comparison_operator (block (return_statement (False) False )return_statement )block )if_statement )block (elif_clause (comparison_operator (identifier_key) identifier_key (attribute (identifier_self) identifier_self (identifier_redis) identifier_redis )attribute )comparison_operator (block (return_statement (False) False )return_statement )block )elif_clause )if_statement (return_statement (True) True )return_statement )block )function_definition )module
Determine if it is okay to set a key. If the mode is None, returns True, otherwise, returns True of false based on the value of ``key`` and the ``mode`` (nx | xx).
(module (function_definition (function_name_decorate_event_js) function_name_decorate_event_js (parameters (identifier_js_code) identifier_js_code )parameters (block (function_definition (function_name_add_annotation) function_name_add_annotation (parameters (identifier_method) identifier_method )parameters (block (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_method) identifier_method (string_"__is_event") string_"__is_event" (True) True )argument_list )call )expression_statement (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_method) identifier_method (string_"_js_code") string_"_js_code" (identifier_js_code) identifier_js_code )argument_list )call )expression_statement (return_statement (identifier_method) identifier_method )return_statement )block )function_definition (return_statement (identifier_add_annotation) identifier_add_annotation )return_statement )block )function_definition )module
setup a method as an event, adding also javascript code to generate Args: js_code (str): javascript code to generate the event client-side. js_code is added to the widget html as widget.attributes['onclick'] = js_code%{'emitter_identifier':widget.identifier, 'event_name':'onclick'}
(module (function_definition (function_name_get_position_searchable) function_name_get_position_searchable (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_ids) identifier_ids (call (attribute (identifier_gkr) identifier_gkr (identifier_list_item_ids_sync) identifier_list_item_ids_sync )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_keyring) identifier_keyring )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_position_searchable) identifier_position_searchable (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_i) identifier_i (identifier_ids) identifier_ids (block (expression_statement (assignment (identifier_item_attrs) identifier_item_attrs (call (attribute (identifier_gkr) identifier_gkr (identifier_item_get_attributes_sync) identifier_item_get_attributes_sync )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_keyring) identifier_keyring )attribute (identifier_i) identifier_i )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_position_searchable) identifier_position_searchable (identifier_i) identifier_i )subscript (subscript (identifier_item_attrs) identifier_item_attrs (string_'searchable') string_'searchable' )subscript )assignment )expression_statement )block )for_statement (return_statement (identifier_position_searchable) identifier_position_searchable )return_statement )block )function_definition )module
Return dict of the position and corrasponding searchable str
(module (function_definition (function_name__clear) function_name__clear (parameters (identifier_self) identifier_self (default_parameter (identifier_pipe) identifier_pipe (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_redis) identifier_redis (conditional_expression (attribute (identifier_self) identifier_self (identifier_redis) identifier_redis )attribute (comparison_operator (identifier_pipe) identifier_pipe (None) None )comparison_operator (identifier_pipe) identifier_pipe )conditional_expression )assignment )expression_statement (expression_statement (call (attribute (identifier_redis) identifier_redis (identifier_delete) identifier_delete )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_key) identifier_key )attribute )argument_list )call )expression_statement )block )function_definition )module
Helper for clear operations. :param pipe: Redis pipe in case update is performed as a part of transaction. :type pipe: :class:`redis.client.StrictPipeline` or :class:`redis.client.StrictRedis`
(module (function_definition (function_name_discharge_coefficient_to_K) function_name_discharge_coefficient_to_K (parameters (identifier_D) identifier_D (identifier_Do) identifier_Do (identifier_C) identifier_C )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignment (identifier_beta) identifier_beta (binary_operator (identifier_Do) identifier_Do (identifier_D) identifier_D )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_beta2) identifier_beta2 (binary_operator (identifier_beta) identifier_beta (identifier_beta) identifier_beta )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_beta4) identifier_beta4 (binary_operator (identifier_beta2) identifier_beta2 (identifier_beta2) identifier_beta2 )binary_operator )assignment )expression_statement (return_statement (binary_operator (parenthesized_expression (binary_operator (binary_operator (binary_operator (parenthesized_expression (binary_operator (float_1.0) float_1.0 (binary_operator (identifier_beta4) identifier_beta4 (parenthesized_expression (binary_operator (float_1.0) float_1.0 (binary_operator (identifier_C) identifier_C (identifier_C) identifier_C )binary_operator )binary_operator )parenthesized_expression )binary_operator )binary_operator )parenthesized_expression (float_0.5) float_0.5 )binary_operator (parenthesized_expression (binary_operator (identifier_C) identifier_C (identifier_beta2) identifier_beta2 )binary_operator )parenthesized_expression )binary_operator (float_1.0) float_1.0 )binary_operator )parenthesized_expression (integer_2) integer_2 )binary_operator )return_statement )block )function_definition )module
r'''Converts a discharge coefficient to a standard loss coefficient, for use in computation of the actual pressure drop of an orifice or other device. .. math:: K = \left[\frac{\sqrt{1-\beta^4(1-C^2)}}{C\beta^2} - 1\right]^2 Parameters ---------- D : float Upstream internal pipe diameter, [m] Do : float Diameter of orifice at flow conditions, [m] C : float Coefficient of discharge of the orifice, [-] Returns ------- K : float Loss coefficient with respect to the velocity and density of the fluid just upstream of the orifice, [-] Notes ----- If expansibility is used in the orifice calculation, the result will not match with the specified pressure drop formula in [1]_; it can almost be matched by dividing the calculated mass flow by the expansibility factor and using that mass flow with the loss coefficient. Examples -------- >>> discharge_coefficient_to_K(D=0.07366, Do=0.05, C=0.61512) 5.2314291729754 References ---------- .. [1] American Society of Mechanical Engineers. Mfc-3M-2004 Measurement Of Fluid Flow In Pipes Using Orifice, Nozzle, And Venturi. ASME, 2001. .. [2] ISO 5167-2:2003 - Measurement of Fluid Flow by Means of Pressure Differential Devices Inserted in Circular Cross-Section Conduits Running Full -- Part 2: Orifice Plates.
(module (function_definition (function_name_get_table_info) function_name_get_table_info (parameters (identifier_self) identifier_self (identifier_tablename) identifier_tablename )parameters (block (expression_statement (assignment (identifier_conn) identifier_conn (call (attribute (identifier_self) identifier_self (identifier___get_conn) identifier___get_conn )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (identifier_a99) identifier_a99 (identifier_get_table_info) identifier_get_table_info )attribute (argument_list (identifier_conn) identifier_conn (identifier_tablename) identifier_tablename )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_ret) identifier_ret )argument_list )call (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (call (attribute (string_"Cannot get info for table '{}'") string_"Cannot get info for table '{}'" (identifier_format) identifier_format )attribute (argument_list (identifier_tablename) identifier_tablename )argument_list )call )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_more) identifier_more (call (attribute (attribute (identifier_self) identifier_self (identifier_gui_info) identifier_gui_info )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_tablename) identifier_tablename )argument_list )call )assignment )expression_statement (for_statement (identifier_row) identifier_row (call (attribute (identifier_ret) identifier_ret (identifier_values) identifier_values )attribute (argument_list )argument_list )call (block (expression_statement (assignment (pattern_list (identifier_caption) identifier_caption (identifier_tooltip) identifier_tooltip )pattern_list (expression_list (None) None (None) None )expression_list )assignment )expression_statement (if_statement (identifier_more) identifier_more (block (expression_statement (assignment (identifier_info) identifier_info (call (attribute (identifier_more) identifier_more (identifier_get) identifier_get )attribute (argument_list (subscript (identifier_row) identifier_row (string_"name") string_"name" )subscript )argument_list )call )assignment )expression_statement (if_statement (identifier_info) identifier_info (block (expression_statement (assignment (pattern_list (identifier_caption) identifier_caption (identifier_tooltip) identifier_tooltip )pattern_list (identifier_info) identifier_info )assignment )expression_statement )block )if_statement )block )if_statement (expression_statement (assignment (subscript (identifier_row) identifier_row (string_"caption") string_"caption" )subscript (identifier_caption) identifier_caption )assignment )expression_statement (expression_statement (assignment (subscript (identifier_row) identifier_row (string_"tooltip") string_"tooltip" )subscript (identifier_tooltip) identifier_tooltip )assignment )expression_statement )block )for_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Returns information about fields of a specific table Returns: OrderedDict(("fieldname", MyDBRow), ...)) **Note** Fields "caption" and "tooltip" are added to rows using information in moldb.gui_info
(module (function_definition (function_name_train) function_name_train (parameters (identifier_self) identifier_self (identifier_conversation) identifier_conversation )parameters (block (expression_statement (assignment (identifier_previous_statement_text) identifier_previous_statement_text (None) None )assignment )expression_statement (expression_statement (assignment (identifier_previous_statement_search_text) identifier_previous_statement_search_text (string_'') string_'' )assignment )expression_statement (expression_statement (assignment (identifier_statements_to_create) identifier_statements_to_create (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_conversation_count) identifier_conversation_count (identifier_text) identifier_text )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_conversation) identifier_conversation )argument_list )call (block (if_statement (attribute (identifier_self) identifier_self (identifier_show_training_progress) identifier_show_training_progress )attribute (block (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_print_progress_bar) identifier_print_progress_bar )attribute (argument_list (string_'List Trainer') string_'List Trainer' (binary_operator (identifier_conversation_count) identifier_conversation_count (integer_1) integer_1 )binary_operator (call (identifier_len) identifier_len (argument_list (identifier_conversation) identifier_conversation )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_statement_search_text) identifier_statement_search_text (call (attribute (attribute (attribute (attribute (identifier_self) identifier_self (identifier_chatbot) identifier_chatbot )attribute (identifier_storage) identifier_storage )attribute (identifier_tagger) identifier_tagger )attribute (identifier_get_bigram_pair_string) identifier_get_bigram_pair_string )attribute (argument_list (identifier_text) identifier_text )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_statement) identifier_statement (call (attribute (identifier_self) identifier_self (identifier_get_preprocessed_statement) identifier_get_preprocessed_statement )attribute (argument_list (call (identifier_Statement) identifier_Statement (argument_list (keyword_argument (identifier_text) identifier_text (identifier_text) identifier_text )keyword_argument (keyword_argument (identifier_search_text) identifier_search_text (identifier_statement_search_text) identifier_statement_search_text )keyword_argument (keyword_argument (identifier_in_response_to) identifier_in_response_to (identifier_previous_statement_text) identifier_previous_statement_text )keyword_argument (keyword_argument (identifier_search_in_response_to) identifier_search_in_response_to (identifier_previous_statement_search_text) identifier_previous_statement_search_text )keyword_argument (keyword_argument (identifier_conversation) identifier_conversation (string_'training') string_'training' )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_previous_statement_text) identifier_previous_statement_text (attribute (identifier_statement) identifier_statement (identifier_text) identifier_text )attribute )assignment )expression_statement (expression_statement (assignment (identifier_previous_statement_search_text) identifier_previous_statement_search_text (identifier_statement_search_text) identifier_statement_search_text )assignment )expression_statement (expression_statement (call (attribute (identifier_statements_to_create) identifier_statements_to_create (identifier_append) identifier_append )attribute (argument_list (identifier_statement) identifier_statement )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_chatbot) identifier_chatbot )attribute (identifier_storage) identifier_storage )attribute (identifier_create_many) identifier_create_many )attribute (argument_list (identifier_statements_to_create) identifier_statements_to_create )argument_list )call )expression_statement )block )function_definition )module
Train the chat bot based on the provided list of statements that represents a single conversation.
(module (function_definition (function_name_cancel_expired_invitations) function_name_cancel_expired_invitations (parameters (default_parameter (identifier_invitations) identifier_invitations (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_expiration_date) identifier_expiration_date (binary_operator (call (attribute (identifier_timezone) identifier_timezone (identifier_now) identifier_now )attribute (argument_list )argument_list )call (subscript (attribute (identifier_settings) identifier_settings (identifier_WALDUR_CORE) identifier_WALDUR_CORE )attribute (string_'INVITATION_LIFETIME') string_'INVITATION_LIFETIME' )subscript )binary_operator )assignment )expression_statement (if_statement (not_operator (identifier_invitations) identifier_invitations )not_operator (block (expression_statement (assignment (identifier_invitations) identifier_invitations (call (attribute (attribute (attribute (identifier_models) identifier_models (identifier_Invitation) identifier_Invitation )attribute (identifier_objects) identifier_objects )attribute (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_state) identifier_state (attribute (attribute (attribute (identifier_models) identifier_models (identifier_Invitation) identifier_Invitation )attribute (identifier_State) identifier_State )attribute (identifier_PENDING) identifier_PENDING )attribute )keyword_argument )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_invitations) identifier_invitations (call (attribute (identifier_invitations) identifier_invitations (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_created__lte) identifier_created__lte (identifier_expiration_date) identifier_expiration_date )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_invitations) identifier_invitations (identifier_update) identifier_update )attribute (argument_list (keyword_argument (identifier_state) identifier_state (attribute (attribute (attribute (identifier_models) identifier_models (identifier_Invitation) identifier_Invitation )attribute (identifier_State) identifier_State )attribute (identifier_EXPIRED) identifier_EXPIRED )attribute )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Invitation lifetime must be specified in Waldur Core settings with parameter "INVITATION_LIFETIME". If invitation creation time is less than expiration time, the invitation will set as expired.
(module (function_definition (function_name_copyNode) function_name_copyNode (parameters (identifier_node) identifier_node (default_parameter (identifier_children) identifier_children (False) False )default_parameter (default_parameter (identifier_parent) identifier_parent (False) False )default_parameter )parameters (block (if_statement (comparison_operator (identifier_parent) identifier_parent (False) False )comparison_operator (block (expression_statement (assignment (identifier_element) identifier_element (call (identifier_SubElement) identifier_SubElement (argument_list (identifier_parent) identifier_parent (attribute (identifier_node) identifier_node (identifier_tag) identifier_tag )attribute (keyword_argument (identifier_attrib) identifier_attrib (attribute (identifier_node) identifier_node (identifier_attrib) identifier_attrib )attribute )keyword_argument (keyword_argument (identifier_nsmap) identifier_nsmap (dictionary (pair (None) None (string_"http://www.tei-c.org/ns/1.0") string_"http://www.tei-c.org/ns/1.0" )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_element) identifier_element (call (identifier_Element) identifier_Element (argument_list (attribute (identifier_node) identifier_node (identifier_tag) identifier_tag )attribute (keyword_argument (identifier_attrib) identifier_attrib (attribute (identifier_node) identifier_node (identifier_attrib) identifier_attrib )attribute )keyword_argument (keyword_argument (identifier_nsmap) identifier_nsmap (dictionary (pair (None) None (string_"http://www.tei-c.org/ns/1.0") string_"http://www.tei-c.org/ns/1.0" )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (identifier_children) identifier_children (block (if_statement (attribute (identifier_node) identifier_node (identifier_text) identifier_text )attribute (block (expression_statement (call (attribute (identifier_element) identifier_element (identifier__setText) identifier__setText )attribute (argument_list (attribute (identifier_node) identifier_node (identifier_text) identifier_text )attribute )argument_list )call )expression_statement )block )if_statement (for_statement (identifier_child) identifier_child (call (identifier_xmliter) identifier_xmliter (argument_list (identifier_node) identifier_node )argument_list )call (block (expression_statement (call (attribute (identifier_element) identifier_element (identifier_append) identifier_append )attribute (argument_list (call (identifier_copy) identifier_copy (argument_list (identifier_child) identifier_child )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )if_statement (return_statement (identifier_element) identifier_element )return_statement )block )function_definition )module
Copy an XML Node :param node: Etree Node :param children: Copy children nodes is set to True :param parent: Append copied node to parent if given :return: New Element
(module (function_definition (function_name_week_to_datetime) function_name_week_to_datetime (parameters (identifier_iso_year) identifier_iso_year (identifier_iso_week) identifier_iso_week )parameters (block (expression_statement (string_"datetime instance for the start of the given ISO year and week") string_"datetime instance for the start of the given ISO year and week" )expression_statement (expression_statement (assignment (identifier_gregorian) identifier_gregorian (call (identifier_iso_to_gregorian) identifier_iso_to_gregorian (argument_list (identifier_iso_year) identifier_iso_year (identifier_iso_week) identifier_iso_week (integer_0) integer_0 )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_datetime) identifier_datetime (identifier_datetime) identifier_datetime )attribute (identifier_combine) identifier_combine )attribute (argument_list (identifier_gregorian) identifier_gregorian (call (attribute (identifier_datetime) identifier_datetime (identifier_time) identifier_time )attribute (argument_list (integer_0) integer_0 )argument_list )call )argument_list )call )return_statement )block )function_definition )module
datetime instance for the start of the given ISO year and week
(module (function_definition (function_name_LDAP_search) function_name_LDAP_search (parameters (identifier_pattern_search) identifier_pattern_search (identifier_attribute) identifier_attribute )parameters (block (expression_statement (assignment (pattern_list (identifier_connection) identifier_connection (identifier_ldap_base) identifier_ldap_base )pattern_list (call (identifier__get_LDAP_connection) identifier__get_LDAP_connection (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_connection) identifier_connection (identifier_search) identifier_search )attribute (argument_list (keyword_argument (identifier_search_base) identifier_search_base (identifier_ldap_base) identifier_ldap_base )keyword_argument (keyword_argument (identifier_search_filter) identifier_search_filter (identifier_pattern_search) identifier_pattern_search )keyword_argument (keyword_argument (identifier_attributes) identifier_attributes (list (identifier_attribute) identifier_attribute )list )keyword_argument )argument_list )call )expression_statement (return_statement (attribute (identifier_connection) identifier_connection (identifier_response) identifier_response )attribute )return_statement )block )function_definition )module
Do a LDAP search
(module (function_definition (function_name__clean_streams) function_name__clean_streams (parameters (identifier_repo) identifier_repo (identifier_mapped_streams) identifier_mapped_streams )parameters (block (for_statement (identifier_stream_name) identifier_stream_name (tuple (string_'stdout') string_'stdout' (string_'stderr') string_'stderr' )tuple (block (expression_statement (assignment (identifier_stream) identifier_stream (call (attribute (identifier_mapped_streams) identifier_mapped_streams (identifier_get) identifier_get )attribute (argument_list (identifier_stream_name) identifier_stream_name )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_stream) identifier_stream )not_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_path) identifier_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_relpath) identifier_relpath )attribute (argument_list (identifier_stream) identifier_stream (keyword_argument (identifier_start) identifier_start (attribute (identifier_repo) identifier_repo (identifier_working_dir) identifier_working_dir )attribute )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (tuple (identifier_path) identifier_path (integer_0) integer_0 )tuple (attribute (attribute (identifier_repo) identifier_repo (identifier_index) identifier_index )attribute (identifier_entries) identifier_entries )attribute )comparison_operator (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_remove) identifier_remove )attribute (argument_list (identifier_stream) identifier_stream )argument_list )call )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_blob) identifier_blob (call (attribute (subscript (attribute (attribute (identifier_repo) identifier_repo (identifier_index) identifier_index )attribute (identifier_entries) identifier_entries )attribute (tuple (identifier_path) identifier_path (integer_0) integer_0 )tuple )subscript (identifier_to_blob) identifier_to_blob )attribute (argument_list (identifier_repo) identifier_repo )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_path) identifier_path (string_'wb') string_'wb' )argument_list )call (as_pattern_target (identifier_fp) identifier_fp )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (attribute (identifier_fp) identifier_fp (identifier_write) identifier_write )attribute (argument_list (call (attribute (attribute (identifier_blob) identifier_blob (identifier_data_stream) identifier_data_stream )attribute (identifier_read) identifier_read )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )with_statement )block )else_clause )if_statement )block )for_statement )block )function_definition )module
Clean mapped standard streams.
(module (function_definition (function_name_put_logging) function_name_put_logging (parameters (identifier_Bucket) identifier_Bucket (default_parameter (identifier_TargetBucket) identifier_TargetBucket (None) None )default_parameter (default_parameter (identifier_TargetPrefix) identifier_TargetPrefix (None) None )default_parameter (default_parameter (identifier_TargetGrants) identifier_TargetGrants (None) None )default_parameter (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_logstate) identifier_logstate (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_targets) identifier_targets (dictionary (pair (string_'TargetBucket') string_'TargetBucket' (identifier_TargetBucket) identifier_TargetBucket )pair (pair (string_'TargetGrants') string_'TargetGrants' (identifier_TargetGrants) identifier_TargetGrants )pair (pair (string_'TargetPrefix') string_'TargetPrefix' (identifier_TargetPrefix) identifier_TargetPrefix )pair )dictionary )assignment )expression_statement (for_statement (pattern_list (identifier_key) identifier_key (identifier_val) identifier_val )pattern_list (call (attribute (identifier_six) identifier_six (identifier_iteritems) identifier_iteritems )attribute (argument_list (identifier_targets) identifier_targets )argument_list )call (block (if_statement (comparison_operator (identifier_val) identifier_val (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_logstate) identifier_logstate (identifier_key) identifier_key )subscript (identifier_val) identifier_val )assignment )expression_statement )block )if_statement )block )for_statement (if_statement (identifier_logstate) identifier_logstate (block (expression_statement (assignment (identifier_logstatus) identifier_logstatus (dictionary (pair (string_'LoggingEnabled') string_'LoggingEnabled' (identifier_logstate) identifier_logstate )pair )dictionary )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_logstatus) identifier_logstatus (dictionary )dictionary )assignment )expression_statement )block )else_clause )if_statement (if_statement (boolean_operator (comparison_operator (identifier_TargetGrants) identifier_TargetGrants (None) None )comparison_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_TargetGrants) identifier_TargetGrants (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call )boolean_operator (block (expression_statement (assignment (identifier_TargetGrants) identifier_TargetGrants (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_json) identifier_json )attribute (identifier_loads) identifier_loads )attribute (argument_list (identifier_TargetGrants) identifier_TargetGrants )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_conn) identifier_conn (identifier_put_bucket_logging) identifier_put_bucket_logging )attribute (argument_list (keyword_argument (identifier_Bucket) identifier_Bucket (identifier_Bucket) identifier_Bucket )keyword_argument (keyword_argument (identifier_BucketLoggingStatus) identifier_BucketLoggingStatus (identifier_logstatus) identifier_logstatus )keyword_argument )argument_list )call )expression_statement (return_statement (dictionary (pair (string_'updated') string_'updated' (True) True )pair (pair (string_'name') string_'name' (identifier_Bucket) identifier_Bucket )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_'updated') string_'updated' (False) False )pair (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
Given a valid config, update the logging parameters for a bucket. Returns {updated: true} if parameters were updated and returns {updated: False} if parameters were not updated. CLI Example: .. code-block:: bash salt myminion boto_s3_bucket.put_logging my_bucket log_bucket '[{...}]' prefix
(module (function_definition (function_name_removeLayer) function_name_removeLayer (parameters (identifier_self) identifier_self (identifier_layer) identifier_layer )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_layer) identifier_layer (identifier_BaseGlyph) identifier_BaseGlyph )argument_list )call (block (expression_statement (assignment (identifier_layer) identifier_layer (attribute (attribute (identifier_layer) identifier_layer (identifier_layer) identifier_layer )attribute (identifier_name) identifier_name )attribute )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_layerName) identifier_layerName (identifier_layer) identifier_layer )assignment )expression_statement (expression_statement (assignment (identifier_layerName) identifier_layerName (call (attribute (identifier_normalizers) identifier_normalizers (identifier_normalizeLayerName) identifier_normalizeLayerName )attribute (argument_list (identifier_layerName) identifier_layerName )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (attribute (call (attribute (identifier_self) identifier_self (identifier__getLayer) identifier__getLayer )attribute (argument_list (identifier_layerName) identifier_layerName )argument_list )call (identifier_layer) identifier_layer )attribute (identifier_name) identifier_name )attribute (identifier_layerName) identifier_layerName )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__removeLayer) identifier__removeLayer )attribute (argument_list (identifier_layerName) identifier_layerName )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Remove ``layer`` from this glyph. >>> glyph.removeLayer("background") Layer can be a :ref:`type-glyph-layer` or a :ref:`type-string` representing a layer name.
(module (function_definition (function_name_getStartTag) function_name_getStartTag (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_attributeStrings) identifier_attributeStrings (list )list )assignment )expression_statement (for_statement (pattern_list (identifier_name) identifier_name (identifier_val) identifier_val )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier__attributes) identifier__attributes )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (identifier_val) identifier_val (block (expression_statement (assignment (identifier_val) identifier_val (call (identifier_tostr) identifier_tostr (argument_list (identifier_val) identifier_val )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (boolean_operator (identifier_val) identifier_val (comparison_operator (identifier_name) identifier_name (identifier_TAG_ITEM_BINARY_ATTRIBUTES) identifier_TAG_ITEM_BINARY_ATTRIBUTES )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_val) identifier_val (call (identifier_escapeQuotes) identifier_escapeQuotes (argument_list (identifier_val) identifier_val )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_attributeStrings) identifier_attributeStrings (identifier_append) identifier_append )attribute (argument_list (binary_operator (string_'%s="%s"') string_'%s="%s"' (tuple (identifier_name) identifier_name (identifier_val) identifier_val )tuple )binary_operator )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_attributeStrings) identifier_attributeStrings (identifier_append) identifier_append )attribute (argument_list (identifier_name) identifier_name )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (if_statement (identifier_attributeStrings) identifier_attributeStrings (block (expression_statement (assignment (identifier_attributeString) identifier_attributeString (binary_operator (string_' ') string_' ' (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (identifier_attributeStrings) identifier_attributeStrings )argument_list )call )binary_operator )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_attributeString) identifier_attributeString (string_'') string_'' )assignment )expression_statement )block )else_clause )if_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_isSelfClosing) identifier_isSelfClosing )attribute (False) False )comparison_operator (block (return_statement (binary_operator (string_"%s<%s%s >") string_"%s<%s%s >" (tuple (attribute (identifier_self) identifier_self (identifier__indent) identifier__indent )attribute (attribute (identifier_self) identifier_self (identifier_tagName) identifier_tagName )attribute (identifier_attributeString) identifier_attributeString )tuple )binary_operator )return_statement )block (else_clause (block (return_statement (binary_operator (string_"%s<%s%s />") string_"%s<%s%s />" (tuple (attribute (identifier_self) identifier_self (identifier__indent) identifier__indent )attribute (attribute (identifier_self) identifier_self (identifier_tagName) identifier_tagName )attribute (identifier_attributeString) identifier_attributeString )tuple )binary_operator )return_statement )block )else_clause )if_statement )block )function_definition )module
getStartTag - Returns the start tag represented as HTML @return - String of start tag with attributes
(module (function_definition (function_name__try_dump_cnt) function_name__try_dump_cnt (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_now) identifier_now (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (binary_operator (identifier_now) identifier_now (attribute (identifier_self) identifier_self (identifier__last_dump_cnt) identifier__last_dump_cnt )attribute )binary_operator (integer_60) integer_60 )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__last_dump_cnt) identifier__last_dump_cnt )attribute (identifier_now) identifier_now )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__dump_cnt) identifier__dump_cnt )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__print_counter_log) identifier__print_counter_log )attribute (argument_list )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Dump counters every 60 seconds
(module (function_definition (function_name_put) function_name_put (parameters (identifier_self) identifier_self (typed_parameter (identifier_device_id) identifier_device_id (type (identifier_int) identifier_int )type )typed_parameter )parameters (type (identifier_Device) identifier_Device )type (block (expression_statement (assignment (identifier_device) identifier_device (call (attribute (identifier_self) identifier_self (identifier__get_or_abort) identifier__get_or_abort )attribute (argument_list (identifier_device_id) identifier_device_id )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_update) identifier_update )attribute (argument_list (identifier_device) identifier_device )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_commit) identifier_commit )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_add) identifier_add )attribute (argument_list (identifier_device) identifier_device )argument_list )call )expression_statement (return_statement (identifier_device) identifier_device )return_statement )block )function_definition )module
Updates the Device Resource with the name.
(module (function_definition (function_name_make) function_name_make (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"preparing to add all git files") string_"preparing to add all git files" )argument_list )call )expression_statement (expression_statement (assignment (identifier_num_added) identifier_num_added (call (attribute (attribute (identifier_self) identifier_self (identifier_local_repo) identifier_local_repo )attribute (identifier_add_all_files) identifier_add_all_files )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_num_added) identifier_num_added (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_local_repo) identifier_local_repo )attribute (identifier_commit) identifier_commit )attribute (argument_list (string_"Initial import from Project Gutenberg") string_"Initial import from Project Gutenberg" )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_file_handler) identifier_file_handler (call (identifier_NewFilesHandler) identifier_NewFilesHandler (argument_list (identifier_self) identifier_self )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_file_handler) identifier_file_handler (identifier_add_new_files) identifier_add_new_files )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_num_added) identifier_num_added (call (attribute (attribute (identifier_self) identifier_self (identifier_local_repo) identifier_local_repo )attribute (identifier_add_all_files) identifier_add_all_files )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_num_added) identifier_num_added (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_local_repo) identifier_local_repo )attribute (identifier_commit) identifier_commit )attribute (argument_list (string_"Updates Readme, contributing, license files, cover, metadata.") string_"Updates Readme, contributing, license files, cover, metadata." )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
turn fetched files into a local repo, make auxiliary files
(module (function_definition (function_name_get_s2_pixel_cloud_detector) function_name_get_s2_pixel_cloud_detector (parameters (default_parameter (identifier_threshold) identifier_threshold (float_0.4) float_0.4 )default_parameter (default_parameter (identifier_average_over) identifier_average_over (integer_4) integer_4 )default_parameter (default_parameter (identifier_dilation_size) identifier_dilation_size (integer_2) integer_2 )default_parameter (default_parameter (identifier_all_bands) identifier_all_bands (True) True )default_parameter )parameters (block (return_statement (call (identifier_S2PixelCloudDetector) identifier_S2PixelCloudDetector (argument_list (keyword_argument (identifier_threshold) identifier_threshold (identifier_threshold) identifier_threshold )keyword_argument (keyword_argument (identifier_average_over) identifier_average_over (identifier_average_over) identifier_average_over )keyword_argument (keyword_argument (identifier_dilation_size) identifier_dilation_size (identifier_dilation_size) identifier_dilation_size )keyword_argument (keyword_argument (identifier_all_bands) identifier_all_bands (identifier_all_bands) identifier_all_bands )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Wrapper function for pixel-based S2 cloud detector `S2PixelCloudDetector`
(module (function_definition (function_name_chdir) function_name_chdir (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_cur_cwd) identifier_cur_cwd (call (attribute (identifier_os) identifier_os (identifier_getcwd) identifier_getcwd )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_chdir) identifier_chdir )attribute (argument_list (identifier_path) identifier_path )argument_list )call )expression_statement (try_statement (block (expression_statement (yield )yield )expression_statement )block (finally_clause (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_chdir) identifier_chdir )attribute (argument_list (identifier_cur_cwd) identifier_cur_cwd )argument_list )call )expression_statement )block )finally_clause )try_statement )block )function_definition )module
Change the working directory to `path` for the duration of this context manager. :param str path: The path to change to
(module (function_definition (function_name_inside_softimage) function_name_inside_softimage (parameters )parameters (block (try_statement (block (import_statement (dotted_name (identifier_maya) identifier_maya )dotted_name )import_statement (return_statement (False) False )return_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (pass_statement )pass_statement )block )except_clause )try_statement (try_statement (block (import_from_statement (dotted_name (identifier_win32com) identifier_win32com (identifier_client) identifier_client )dotted_name (aliased_import (dotted_name (identifier_Dispatch) identifier_Dispatch )dotted_name (identifier_disp) identifier_disp )aliased_import )import_from_statement (expression_statement (call (identifier_disp) identifier_disp (argument_list (string_'XSI.Application') string_'XSI.Application' )argument_list )call )expression_statement (return_statement (True) True )return_statement )block (except_clause (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
Returns a boolean indicating if the code is executed inside softimage.
(module (function_definition (function_name_constructor) function_name_constructor (parameters (identifier_self) identifier_self (default_parameter (identifier_name) identifier_name (None) None )default_parameter (default_parameter (identifier_function) identifier_function (None) None )default_parameter (default_parameter (identifier_return_type) identifier_return_type (None) None )default_parameter (default_parameter (identifier_arg_types) identifier_arg_types (None) None )default_parameter (default_parameter (identifier_header_dir) identifier_header_dir (None) None )default_parameter (default_parameter (identifier_header_file) identifier_header_file (None) None )default_parameter (default_parameter (identifier_recursive) identifier_recursive (None) None )default_parameter )parameters (block (return_statement (parenthesized_expression (call (attribute (identifier_self) identifier_self (identifier__find_single) identifier__find_single )attribute (argument_list (subscript (attribute (identifier_self) identifier_self (identifier__impl_matchers) identifier__impl_matchers )attribute (attribute (identifier_scopedef_t) identifier_scopedef_t (identifier_constructor) identifier_constructor )attribute )subscript (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument (keyword_argument (identifier_function) identifier_function (identifier_function) identifier_function )keyword_argument (keyword_argument (identifier_decl_type) identifier_decl_type (subscript (attribute (identifier_self) identifier_self (identifier__impl_decl_types) identifier__impl_decl_types )attribute (attribute (identifier_scopedef_t) identifier_scopedef_t (identifier_constructor) identifier_constructor )attribute )subscript )keyword_argument (keyword_argument (identifier_return_type) identifier_return_type (identifier_return_type) identifier_return_type )keyword_argument (keyword_argument (identifier_arg_types) identifier_arg_types (identifier_arg_types) identifier_arg_types )keyword_argument (keyword_argument (identifier_header_dir) identifier_header_dir (identifier_header_dir) identifier_header_dir )keyword_argument (keyword_argument (identifier_header_file) identifier_header_file (identifier_header_file) identifier_header_file )keyword_argument (keyword_argument (identifier_recursive) identifier_recursive (identifier_recursive) identifier_recursive )keyword_argument )argument_list )call )parenthesized_expression )return_statement )block )function_definition )module
returns reference to constructor declaration, that is matched defined criteria