sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_merge_all_sections) function_name_merge_all_sections (parameters (identifier_prnt_sctns) identifier_prnt_sctns (identifier_child_sctns) identifier_child_sctns (identifier_style) identifier_style )parameters (block (expression_statement (assignment (identifier_doc) identifier_doc (list )list )assignment )expression_statement (expression_statement (assignment (identifier_prnt_only_raises) identifier_prnt_only_raises (boolean_operator (subscript (identifier_prnt_sctns) identifier_prnt_sctns (string_"Raises") string_"Raises" )subscript (not_operator (parenthesized_expression (boolean_operator (subscript (identifier_prnt_sctns) identifier_prnt_sctns (string_"Returns") string_"Returns" )subscript (subscript (identifier_prnt_sctns) identifier_prnt_sctns (string_"Yields") string_"Yields" )subscript )boolean_operator )parenthesized_expression )not_operator )boolean_operator )assignment )expression_statement (if_statement (boolean_operator (identifier_prnt_only_raises) identifier_prnt_only_raises (parenthesized_expression (boolean_operator (subscript (identifier_child_sctns) identifier_child_sctns (string_"Returns") string_"Returns" )subscript (subscript (identifier_child_sctns) identifier_child_sctns (string_"Yields") string_"Yields" )subscript )boolean_operator )parenthesized_expression )boolean_operator (block (expression_statement (assignment (subscript (identifier_prnt_sctns) identifier_prnt_sctns (string_"Raises") string_"Raises" )subscript (None) None )assignment )expression_statement )block )if_statement (for_statement (identifier_key) identifier_key (identifier_prnt_sctns) identifier_prnt_sctns (block (expression_statement (assignment (identifier_sect) identifier_sect (call (identifier_merge_section) identifier_merge_section (argument_list (identifier_key) identifier_key (subscript (identifier_prnt_sctns) identifier_prnt_sctns (identifier_key) identifier_key )subscript (subscript (identifier_child_sctns) identifier_child_sctns (identifier_key) identifier_key )subscript (identifier_style) identifier_style )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_sect) identifier_sect (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_doc) identifier_doc (identifier_append) identifier_append )attribute (argument_list (identifier_sect) identifier_sect )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (conditional_expression (call (attribute (string_"\n\n") string_"\n\n" (identifier_join) identifier_join )attribute (argument_list (identifier_doc) identifier_doc )argument_list )call (identifier_doc) identifier_doc (None) None )conditional_expression )return_statement )block )function_definition )module
Merge the doc-sections of the parent's and child's attribute into a single docstring. Parameters ---------- prnt_sctns: OrderedDict[str, Union[None,str]] child_sctns: OrderedDict[str, Union[None,str]] Returns ------- str Output docstring of the merged docstrings.
(module (function_definition (function_name_default) function_name_default (parameters (identifier_self) identifier_self )parameters (block (if_statement (identifier_ZONE_NAME) identifier_ZONE_NAME (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_info) identifier_info )attribute (argument_list (call (attribute (string_"Getting or creating default environment for zone with name '{0}'") string_"Getting or creating default environment for zone with name '{0}'" (identifier_format) identifier_format )attribute (argument_list (call (identifier_DEFAULT_ENV_NAME) identifier_DEFAULT_ENV_NAME (argument_list )argument_list )call )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_zone_id) identifier_zone_id (attribute (subscript (attribute (attribute (identifier_self) identifier_self (identifier_organization) identifier_organization )attribute (identifier_zones) identifier_zones )attribute (identifier_ZONE_NAME) identifier_ZONE_NAME )subscript (identifier_id) identifier_id )attribute )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_organization) identifier_organization )attribute (identifier_get_or_create_environment) identifier_get_or_create_environment )attribute (argument_list (keyword_argument (identifier_name) identifier_name (call (identifier_DEFAULT_ENV_NAME) identifier_DEFAULT_ENV_NAME (argument_list )argument_list )call )keyword_argument (keyword_argument (identifier_zone) identifier_zone (identifier_zone_id) identifier_zone_id )keyword_argument )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_def_envs) identifier_def_envs (list_comprehension (subscript (identifier_env_j) identifier_env_j (string_"id") string_"id" )subscript (for_in_clause (identifier_env_j) identifier_env_j (call (attribute (identifier_self) identifier_self (identifier_json) identifier_json )attribute (argument_list )argument_list )call )for_in_clause (if_clause (subscript (identifier_env_j) identifier_env_j (string_"isDefault") string_"isDefault" )subscript )if_clause )list_comprehension )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_def_envs) identifier_def_envs )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_warning) identifier_warning )attribute (argument_list (string_'Found more than one default environment. Picking last.') string_'Found more than one default environment. Picking last.' )argument_list )call )expression_statement (return_statement (subscript (identifier_self) identifier_self (subscript (identifier_def_envs) identifier_def_envs (unary_operator (integer_1) integer_1 )unary_operator )subscript )subscript )return_statement )block (elif_clause (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_def_envs) identifier_def_envs )argument_list )call (integer_1) integer_1 )comparison_operator (block (return_statement (subscript (identifier_self) identifier_self (subscript (identifier_def_envs) identifier_def_envs (integer_0) integer_0 )subscript )subscript )return_statement )block )elif_clause )if_statement (raise_statement (call (attribute (identifier_exceptions) identifier_exceptions (identifier_NotFoundError) identifier_NotFoundError )attribute (argument_list (string_'Unable to get default environment') string_'Unable to get default environment' )argument_list )call )raise_statement )block )function_definition )module
Returns environment marked as default. When Zone is set marked default makes no sense, special env with proper Zone is returned.
(module (function_definition (function_name_add_items_to_message) function_name_add_items_to_message (parameters (identifier_msg) identifier_msg (identifier_log_dict) identifier_log_dict )parameters (block (expression_statement (assignment (identifier_out) identifier_out (identifier_msg) identifier_msg )assignment )expression_statement (for_statement (pattern_list (identifier_key) identifier_key (identifier_value) identifier_value )pattern_list (call (attribute (identifier_log_dict) identifier_log_dict (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (augmented_assignment (identifier_out) identifier_out (call (attribute (string_" {}={}") string_" {}={}" (identifier_format) identifier_format )attribute (argument_list (identifier_key) identifier_key (identifier_value) identifier_value )argument_list )call )augmented_assignment )expression_statement )block )for_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Utility function to add dictionary items to a log message.
(module (function_definition (function_name_is_already_locked) function_name_is_already_locked (parameters (identifier_request) identifier_request (default_parameter (identifier_get_username) identifier_get_username (identifier_get_username_from_request) identifier_get_username_from_request )default_parameter (default_parameter (identifier_username) identifier_username (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_user_blocked) identifier_user_blocked (call (identifier_is_user_already_locked) identifier_is_user_already_locked (argument_list (boolean_operator (identifier_username) identifier_username (call (identifier_get_username) identifier_get_username (argument_list (identifier_request) identifier_request )argument_list )call )boolean_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ip_blocked) identifier_ip_blocked (call (identifier_is_source_ip_already_locked) identifier_is_source_ip_already_locked (argument_list (call (identifier_get_ip) identifier_get_ip (argument_list (identifier_request) identifier_request )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (attribute (identifier_config) identifier_config (identifier_LOCKOUT_BY_IP_USERNAME) identifier_LOCKOUT_BY_IP_USERNAME )attribute (block (return_statement (boolean_operator (identifier_ip_blocked) identifier_ip_blocked (identifier_user_blocked) identifier_user_blocked )boolean_operator )return_statement )block )if_statement (return_statement (boolean_operator (identifier_ip_blocked) identifier_ip_blocked (identifier_user_blocked) identifier_user_blocked )boolean_operator )return_statement )block )function_definition )module
Parse the username & IP from the request, and see if it's already locked.
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self (identifier_json_file) identifier_json_file )parameters (block (expression_statement (assignment (identifier_cart_file) identifier_cart_file (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_CART_LOCATION) identifier_CART_LOCATION (identifier_json_file) identifier_json_file )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_cart_body) identifier_cart_body (call (attribute (attribute (identifier_juicer) identifier_juicer (identifier_utils) identifier_utils )attribute (identifier_read_json_document) identifier_read_json_document )attribute (argument_list (identifier_cart_file) identifier_cart_file )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_IOError) identifier_IOError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (attribute (attribute (attribute (identifier_juicer) identifier_juicer (identifier_utils) identifier_utils )attribute (identifier_Log) identifier_Log )attribute (identifier_log_error) identifier_log_error )attribute (argument_list (binary_operator (string_'an error occured while accessing %s:') string_'an error occured while accessing %s:' (identifier_cart_file) identifier_cart_file )binary_operator )argument_list )call )expression_statement (raise_statement (call (identifier_JuicerError) identifier_JuicerError (argument_list (attribute (identifier_e) identifier_e (identifier_message) identifier_message )attribute )argument_list )call )raise_statement )block )except_clause )try_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_cart_name) identifier_cart_name )attribute (subscript (identifier_cart_body) identifier_cart_body (string_'_id') string_'_id' )subscript )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_cart_body) identifier_cart_body (string_'current_env') string_'current_env' )subscript (string_'') string_'' )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_current_env) identifier_current_env )attribute (subscript (subscript (call (attribute (attribute (identifier_juicer) identifier_juicer (identifier_utils) identifier_utils )attribute (identifier_get_login_info) identifier_get_login_info )attribute (argument_list )argument_list )call (integer_1) integer_1 )subscript (string_'start_in') string_'start_in' )subscript )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_current_env) identifier_current_env )attribute (subscript (identifier_cart_body) identifier_cart_body (string_'current_env') string_'current_env' )subscript )assignment )expression_statement )block )else_clause )if_statement (for_statement (pattern_list (identifier_repo) identifier_repo (identifier_items) identifier_items )pattern_list (call (attribute (subscript (identifier_cart_body) identifier_cart_body (string_'repos_items') string_'repos_items' )subscript (identifier_iteritems) identifier_iteritems )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_add_repo) identifier_add_repo )attribute (argument_list (identifier_repo) identifier_repo (identifier_items) identifier_items )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Build a cart from a json file
(module (function_definition (function_name__remove_unit_rule) function_name__remove_unit_rule (parameters (identifier_g) identifier_g (identifier_rule) identifier_rule )parameters (block (expression_statement (assignment (identifier_new_rules) identifier_new_rules (list_comprehension (identifier_x) identifier_x (for_in_clause (identifier_x) identifier_x (attribute (identifier_g) identifier_g (identifier_rules) identifier_rules )attribute )for_in_clause (if_clause (comparison_operator (identifier_x) identifier_x (identifier_rule) identifier_rule )comparison_operator )if_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_refs) identifier_refs (list_comprehension (identifier_x) identifier_x (for_in_clause (identifier_x) identifier_x (attribute (identifier_g) identifier_g (identifier_rules) identifier_rules )attribute )for_in_clause (if_clause (comparison_operator (attribute (identifier_x) identifier_x (identifier_lhs) identifier_lhs )attribute (subscript (attribute (identifier_rule) identifier_rule (identifier_rhs) identifier_rhs )attribute (integer_0) integer_0 )subscript )comparison_operator )if_clause )list_comprehension )assignment )expression_statement (expression_statement (augmented_assignment (identifier_new_rules) identifier_new_rules (list_comprehension (call (identifier_build_unit_skiprule) identifier_build_unit_skiprule (argument_list (identifier_rule) identifier_rule (identifier_ref) identifier_ref )argument_list )call (for_in_clause (identifier_ref) identifier_ref (identifier_refs) identifier_refs )for_in_clause )list_comprehension )augmented_assignment )expression_statement (return_statement (call (identifier_Grammar) identifier_Grammar (argument_list (identifier_new_rules) identifier_new_rules )argument_list )call )return_statement )block )function_definition )module
Removes 'rule' from 'g' without changing the langugage produced by 'g'.
(module (function_definition (function_name_to_obj) function_name_to_obj (parameters (identifier_self) identifier_self (default_parameter (identifier_ns_info) identifier_ns_info (None) None )default_parameter )parameters (block (if_statement (identifier_ns_info) identifier_ns_info (block (expression_statement (call (attribute (identifier_ns_info) identifier_ns_info (identifier_collect) identifier_collect )attribute (argument_list (identifier_self) identifier_self )argument_list )call )expression_statement )block )if_statement (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_self) identifier_self (string_"_binding_class") string_"_binding_class" )argument_list )call )not_operator (block (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (identifier_entity_obj) identifier_entity_obj (call (attribute (identifier_self) identifier_self (identifier__binding_class) identifier__binding_class )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_field) identifier_field (identifier_val) identifier_val )pattern_list (call (attribute (identifier_six) identifier_six (identifier_iteritems) identifier_iteritems )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__fields) identifier__fields )attribute )argument_list )call (block (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_val) identifier_val (identifier_EntityList) identifier_EntityList )argument_list )call (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_val) identifier_val )argument_list )call (integer_0) integer_0 )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_val) identifier_val (None) None )assignment )expression_statement )block (elif_clause (attribute (identifier_field) identifier_field (identifier_multiple) identifier_multiple )attribute (block (if_statement (identifier_val) identifier_val (block (expression_statement (assignment (identifier_val) identifier_val (list_comprehension (call (identifier__objectify) identifier__objectify (argument_list (identifier_field) identifier_field (identifier_x) identifier_x (identifier_ns_info) identifier_ns_info )argument_list )call (for_in_clause (identifier_x) identifier_x (identifier_val) identifier_val )for_in_clause )list_comprehension )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_val) identifier_val (list )list )assignment )expression_statement )block )else_clause )if_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_val) identifier_val (call (identifier__objectify) identifier__objectify (argument_list (identifier_field) identifier_field (identifier_val) identifier_val (identifier_ns_info) identifier_ns_info )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (identifier_entity_obj) identifier_entity_obj (attribute (identifier_field) identifier_field (identifier_name) identifier_name )attribute (identifier_val) identifier_val )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__finalize_obj) identifier__finalize_obj )attribute (argument_list (identifier_entity_obj) identifier_entity_obj )argument_list )call )expression_statement (return_statement (identifier_entity_obj) identifier_entity_obj )return_statement )block )function_definition )module
Convert to a GenerateDS binding object. Subclasses can override this function. Returns: An instance of this Entity's ``_binding_class`` with properties set from this Entity.
(module (function_definition (function_name_hpo_genes) function_name_hpo_genes (parameters (identifier_phenotype_ids) identifier_phenotype_ids (identifier_username) identifier_username (identifier_password) identifier_password )parameters (block (if_statement (identifier_phenotype_ids) identifier_phenotype_ids (block (try_statement (block (expression_statement (assignment (identifier_results) identifier_results (call (attribute (identifier_query_phenomizer) identifier_query_phenomizer (identifier_query) identifier_query )attribute (argument_list (identifier_username) identifier_username (identifier_password) identifier_password (identifier_phenotype_ids) identifier_phenotype_ids )argument_list )call )assignment )expression_statement (return_statement (list_comprehension (identifier_result) identifier_result (for_in_clause (identifier_result) identifier_result (identifier_results) identifier_results )for_in_clause (if_clause (comparison_operator (subscript (identifier_result) identifier_result (string_'p_value') string_'p_value' )subscript (None) None )comparison_operator )if_clause )list_comprehension )return_statement )block (except_clause (identifier_SystemExit) identifier_SystemExit (identifier_RuntimeError) identifier_RuntimeError (block (pass_statement )pass_statement )block )except_clause )try_statement )block )if_statement (return_statement (None) None )return_statement )block )function_definition )module
Return list of HGNC symbols matching HPO phenotype ids. Args: phenotype_ids (list): list of phenotype ids username (str): username to connect to phenomizer password (str): password to connect to phenomizer Returns: query_result: a list of dictionaries on the form { 'p_value': float, 'gene_id': str, 'omim_id': int, 'orphanet_id': int, 'decipher_id': int, 'any_id': int, 'mode_of_inheritance': str, 'description': str, 'raw_line': str }
(module (function_definition (function_name_get_broadcast_transactions) function_name_get_broadcast_transactions (parameters (default_parameter (identifier_coin_symbol) identifier_coin_symbol (string_'btc') string_'btc' )default_parameter (default_parameter (identifier_limit) identifier_limit (integer_10) integer_10 )default_parameter (default_parameter (identifier_api_key) identifier_api_key (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_url) identifier_url (call (identifier_make_url) identifier_make_url (argument_list (identifier_coin_symbol) identifier_coin_symbol (string_'txs') string_'txs' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_params) identifier_params (dictionary )dictionary )assignment )expression_statement (if_statement (identifier_api_key) identifier_api_key (block (expression_statement (assignment (subscript (identifier_params) identifier_params (string_'token') string_'token' )subscript (identifier_api_key) identifier_api_key )assignment )expression_statement )block )if_statement (if_statement (identifier_limit) identifier_limit (block (expression_statement (assignment (subscript (identifier_params) identifier_params (string_'limit') string_'limit' )subscript (identifier_limit) identifier_limit )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_r) identifier_r (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (identifier_url) identifier_url (keyword_argument (identifier_params) identifier_params (identifier_params) identifier_params )keyword_argument (keyword_argument (identifier_verify) identifier_verify (True) True )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (identifier_TIMEOUT_IN_SECONDS) identifier_TIMEOUT_IN_SECONDS )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response_dict) identifier_response_dict (call (identifier_get_valid_json) identifier_get_valid_json (argument_list (identifier_r) identifier_r )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_unconfirmed_txs) identifier_unconfirmed_txs (list )list )assignment )expression_statement (for_statement (identifier_unconfirmed_tx) identifier_unconfirmed_tx (identifier_response_dict) identifier_response_dict (block (expression_statement (assignment (subscript (identifier_unconfirmed_tx) identifier_unconfirmed_tx (string_'received') string_'received' )subscript (call (attribute (identifier_parser) identifier_parser (identifier_parse) identifier_parse )attribute (argument_list (subscript (identifier_unconfirmed_tx) identifier_unconfirmed_tx (string_'received') string_'received' )subscript )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_unconfirmed_txs) identifier_unconfirmed_txs (identifier_append) identifier_append )attribute (argument_list (identifier_unconfirmed_tx) identifier_unconfirmed_tx )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_unconfirmed_txs) identifier_unconfirmed_txs )return_statement )block )function_definition )module
Get a list of broadcast but unconfirmed transactions Similar to bitcoind's getrawmempool method
(module (function_definition (function_name_OnCellSelected) function_name_OnCellSelected (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (expression_statement (assignment (identifier_key) identifier_key (assignment (pattern_list (identifier_row) identifier_row (identifier_col) identifier_col (identifier_tab) identifier_tab )pattern_list (expression_list (attribute (identifier_event) identifier_event (identifier_Row) identifier_Row )attribute (attribute (identifier_event) identifier_event (identifier_Col) identifier_Col )attribute (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_current_table) identifier_current_table )attribute )expression_list )assignment )assignment )expression_statement (expression_statement (assignment (identifier_cell_attributes) identifier_cell_attributes (attribute (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_code_array) identifier_code_array )attribute (identifier_cell_attributes) identifier_cell_attributes )attribute )assignment )expression_statement (expression_statement (assignment (identifier_merging_cell) identifier_merging_cell (call (attribute (identifier_cell_attributes) identifier_cell_attributes (identifier_get_merging_cell) identifier_get_merging_cell )attribute (argument_list (identifier_key) identifier_key )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_merging_cell) identifier_merging_cell (None) None )comparison_operator (comparison_operator (identifier_merging_cell) identifier_merging_cell (identifier_key) identifier_key )comparison_operator )boolean_operator (block (expression_statement (call (identifier_post_command_event) identifier_post_command_event (argument_list (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_GotoCellMsg) identifier_GotoCellMsg )attribute (keyword_argument (identifier_key) identifier_key (identifier_merging_cell) identifier_merging_cell )keyword_argument )argument_list )call )expression_statement (if_statement (subscript (subscript (identifier_cell_attributes) identifier_cell_attributes (identifier_merging_cell) identifier_merging_cell )subscript (string_"button_cell") string_"button_cell" )subscript (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_EnableCellEditControl) identifier_EnableCellEditControl )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (return_statement )return_statement )block )if_statement (if_statement (not_operator (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_IsEditable) identifier_IsEditable )attribute (argument_list )argument_list )call )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_ForceRefresh) identifier_ForceRefresh )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_lock_entry_line) identifier_lock_entry_line )attribute (argument_list (subscript (subscript (attribute (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_code_array) identifier_code_array )attribute (identifier_cell_attributes) identifier_cell_attributes )attribute (identifier_key) identifier_key )subscript (string_"locked") string_"locked" )subscript )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_update_entry_line) identifier_update_entry_line )attribute (argument_list (identifier_key) identifier_key )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_update_attribute_toolbar) identifier_update_attribute_toolbar )attribute (argument_list (identifier_key) identifier_key )argument_list )call )expression_statement (expression_statement (assignment (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier__last_selected_cell) identifier__last_selected_cell )attribute (identifier_key) identifier_key )assignment )expression_statement (expression_statement (call (attribute (identifier_event) identifier_event (identifier_Skip) identifier_Skip )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Cell selection event handler
(module (function_definition (function_name_generateDHCPOptionsTemplate) function_name_generateDHCPOptionsTemplate (parameters (identifier_self) identifier_self (identifier_address_family) identifier_address_family )parameters (block (import_from_statement (dotted_name (identifier_ns1) identifier_ns1 (identifier_ipam) identifier_ipam )dotted_name (dotted_name (identifier_DHCPOptions) identifier_DHCPOptions )dotted_name )import_from_statement (expression_statement (assignment (identifier_options) identifier_options (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_option) identifier_option (subscript (attribute (identifier_DHCPOptions) identifier_DHCPOptions (identifier_OPTIONS) identifier_OPTIONS )attribute (identifier_address_family) identifier_address_family )subscript (block (expression_statement (assignment (subscript (identifier_options) identifier_options (identifier_option) identifier_option )subscript (string_"") string_"" )assignment )expression_statement )block )for_statement (return_statement (identifier_options) identifier_options )return_statement )block )function_definition )module
Generate boilerplate dictionary to hold dhcp options :param str address_family: dhcpv4 or dhcpv6 :return: dict containing valid option set for address family
(module (function_definition (function_name_doseigs) function_name_doseigs (parameters (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_A) identifier_A (call (identifier_s2a) identifier_s2a (argument_list (identifier_s) identifier_s )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_tau) identifier_tau (identifier_V) identifier_V )pattern_list (call (identifier_tauV) identifier_tauV (argument_list (identifier_A) identifier_A )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_Vdirs) identifier_Vdirs (list )list )assignment )expression_statement (for_statement (identifier_v) identifier_v (identifier_V) identifier_V (block (expression_statement (assignment (identifier_Vdir) identifier_Vdir (call (identifier_cart2dir) identifier_cart2dir (argument_list (identifier_v) identifier_v )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_Vdir) identifier_Vdir (integer_1) integer_1 )subscript (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (subscript (identifier_Vdir) identifier_Vdir (integer_1) integer_1 )subscript (unary_operator (subscript (identifier_Vdir) identifier_Vdir (integer_1) integer_1 )subscript )unary_operator )assignment )expression_statement (expression_statement (assignment (subscript (identifier_Vdir) identifier_Vdir (integer_0) integer_0 )subscript (binary_operator (parenthesized_expression (binary_operator (subscript (identifier_Vdir) identifier_Vdir (integer_0) integer_0 )subscript (float_180.) float_180. )binary_operator )parenthesized_expression (float_360.) float_360. )binary_operator )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_Vdirs) identifier_Vdirs (identifier_append) identifier_append )attribute (argument_list (list (subscript (identifier_Vdir) identifier_Vdir (integer_0) integer_0 )subscript (subscript (identifier_Vdir) identifier_Vdir (integer_1) integer_1 )subscript )list )argument_list )call )expression_statement )block )for_statement (return_statement (expression_list (identifier_tau) identifier_tau (identifier_Vdirs) identifier_Vdirs )expression_list )return_statement )block )function_definition )module
convert s format for eigenvalues and eigenvectors Parameters __________ s=[x11,x22,x33,x12,x23,x13] : the six tensor elements Return __________ tau : [t1,t2,t3] tau is an list of eigenvalues in decreasing order: V : [[V1_dec,V1_inc],[V2_dec,V2_inc],[V3_dec,V3_inc]] is an list of the eigenvector directions
(module (function_definition (function_name_crc_ihex) function_name_crc_ihex (parameters (identifier_hexstr) identifier_hexstr )parameters (block (expression_statement (assignment (identifier_crc) identifier_crc (call (identifier_sum) identifier_sum (argument_list (call (identifier_bytearray) identifier_bytearray (argument_list (call (attribute (identifier_binascii) identifier_binascii (identifier_unhexlify) identifier_unhexlify )attribute (argument_list (identifier_hexstr) identifier_hexstr )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (augmented_assignment (identifier_crc) identifier_crc (integer_0xff) integer_0xff )augmented_assignment )expression_statement (expression_statement (assignment (identifier_crc) identifier_crc (parenthesized_expression (binary_operator (parenthesized_expression (binary_operator (unary_operator (identifier_crc) identifier_crc )unary_operator (integer_1) integer_1 )binary_operator )parenthesized_expression (integer_0xff) integer_0xff )binary_operator )parenthesized_expression )assignment )expression_statement (return_statement (identifier_crc) identifier_crc )return_statement )block )function_definition )module
Calculate the CRC for given Intel HEX hexstring.
(module (function_definition (function_name_maximum_size_estimated) function_name_maximum_size_estimated (parameters (identifier_self) identifier_self (identifier_sz) identifier_sz )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_sz) identifier_sz (identifier_str) identifier_str )argument_list )call )not_operator (block (expression_statement (assignment (identifier_sz) identifier_sz (call (identifier_str) identifier_str (argument_list (identifier_sz) identifier_sz )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__attributes) identifier__attributes )attribute (string_"sz") string_"sz" )subscript (identifier_sz) identifier_sz )assignment )expression_statement )block )function_definition )module
Set the CoRE Link Format sz attribute of the resource. :param sz: the CoRE Link Format sz attribute
(module (function_definition (function_name_get_works) function_name_get_works (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_Work) identifier_Work (call (attribute (attribute (identifier_self) identifier_self (identifier__session) identifier__session )attribute (identifier_get_class) identifier_get_class )attribute (argument_list (subscript (attribute (attribute (identifier_surf) identifier_surf (identifier_ns) identifier_ns )attribute (identifier_EFRBROO) identifier_EFRBROO )attribute (string_'F1_Work') string_'F1_Work' )subscript )argument_list )call )assignment )expression_statement (return_statement (call (identifier_list) identifier_list (argument_list (call (attribute (identifier_Work) identifier_Work (identifier_all) identifier_all )attribute (argument_list )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Return the author's works. :return: a list of `HucitWork` instances.
(module (function_definition (function_name_id) function_name_id (parameters (identifier_self) identifier_self )parameters (block (function_definition (function_name_normalize) function_name_normalize (parameters (identifier_distro_id) identifier_distro_id (identifier_table) identifier_table )parameters (block (expression_statement (assignment (identifier_distro_id) identifier_distro_id (call (attribute (call (attribute (identifier_distro_id) identifier_distro_id (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_' ') string_' ' (string_'_') string_'_' )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_table) identifier_table (identifier_get) identifier_get )attribute (argument_list (identifier_distro_id) identifier_distro_id (identifier_distro_id) identifier_distro_id )argument_list )call )return_statement )block )function_definition (expression_statement (assignment (identifier_distro_id) identifier_distro_id (call (attribute (identifier_self) identifier_self (identifier_os_release_attr) identifier_os_release_attr )attribute (argument_list (string_'id') string_'id' )argument_list )call )assignment )expression_statement (if_statement (identifier_distro_id) identifier_distro_id (block (return_statement (call (identifier_normalize) identifier_normalize (argument_list (identifier_distro_id) identifier_distro_id (identifier_NORMALIZED_OS_ID) identifier_NORMALIZED_OS_ID )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_distro_id) identifier_distro_id (call (attribute (identifier_self) identifier_self (identifier_lsb_release_attr) identifier_lsb_release_attr )attribute (argument_list (string_'distributor_id') string_'distributor_id' )argument_list )call )assignment )expression_statement (if_statement (identifier_distro_id) identifier_distro_id (block (return_statement (call (identifier_normalize) identifier_normalize (argument_list (identifier_distro_id) identifier_distro_id (identifier_NORMALIZED_LSB_ID) identifier_NORMALIZED_LSB_ID )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_distro_id) identifier_distro_id (call (attribute (identifier_self) identifier_self (identifier_distro_release_attr) identifier_distro_release_attr )attribute (argument_list (string_'id') string_'id' )argument_list )call )assignment )expression_statement (if_statement (identifier_distro_id) identifier_distro_id (block (return_statement (call (identifier_normalize) identifier_normalize (argument_list (identifier_distro_id) identifier_distro_id (identifier_NORMALIZED_DISTRO_ID) identifier_NORMALIZED_DISTRO_ID )argument_list )call )return_statement )block )if_statement (expression_statement (assignment (identifier_distro_id) identifier_distro_id (call (attribute (identifier_self) identifier_self (identifier_uname_attr) identifier_uname_attr )attribute (argument_list (string_'id') string_'id' )argument_list )call )assignment )expression_statement (if_statement (identifier_distro_id) identifier_distro_id (block (return_statement (call (identifier_normalize) identifier_normalize (argument_list (identifier_distro_id) identifier_distro_id (identifier_NORMALIZED_DISTRO_ID) identifier_NORMALIZED_DISTRO_ID )argument_list )call )return_statement )block )if_statement (return_statement (string_'') string_'' )return_statement )block )function_definition )module
Return the distro ID of the OS distribution, as a string. For details, see :func:`distro.id`.
(module (function_definition (function_name_startswith) function_name_startswith (parameters (identifier_text) identifier_text (default_parameter (identifier_ignore_case) identifier_ignore_case (True) True )default_parameter )parameters (block (if_statement (identifier_ignore_case) identifier_ignore_case (block (expression_statement (assignment (identifier_compiled) identifier_compiled (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (binary_operator (string_"^%s") string_"^%s" (call (attribute (identifier_text) identifier_text (identifier_replace) identifier_replace )attribute (argument_list (string_"\\") string_"\\" (string_"\\\\") string_"\\\\" )argument_list )call )binary_operator (attribute (identifier_re) identifier_re (identifier_IGNORECASE) identifier_IGNORECASE )attribute )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_compiled) identifier_compiled (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (binary_operator (string_"^%s") string_"^%s" (call (attribute (identifier_text) identifier_text (identifier_replace) identifier_replace )attribute (argument_list (string_"\\") string_"\\" (string_"\\\\") string_"\\\\" )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (return_statement (dictionary (pair (string_"$regex") string_"$regex" (identifier_compiled) identifier_compiled )pair )dictionary )return_statement )block )function_definition )module
Test if a string-field start with ``text``. Example:: filters = {"path": Text.startswith(r"C:\\")}
(module (function_definition (function_name_try_acquire) function_name_try_acquire (parameters (identifier_self) identifier_self (default_parameter (identifier_permits) identifier_permits (integer_1) integer_1 )default_parameter (default_parameter (identifier_timeout) identifier_timeout (integer_0) integer_0 )default_parameter )parameters (block (expression_statement (call (identifier_check_not_negative) identifier_check_not_negative (argument_list (identifier_permits) identifier_permits (string_"Permits cannot be negative!") string_"Permits cannot be negative!" )argument_list )call )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__encode_invoke) identifier__encode_invoke )attribute (argument_list (identifier_semaphore_try_acquire_codec) identifier_semaphore_try_acquire_codec (keyword_argument (identifier_permits) identifier_permits (identifier_permits) identifier_permits )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (call (identifier_to_millis) identifier_to_millis (argument_list (identifier_timeout) identifier_timeout )argument_list )call )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Tries to acquire one or the given number of permits, if they are available, and returns immediately, with the value ``true``, reducing the number of available permits by the given amount. If there are insufficient permits and a timeout is provided, the current thread becomes disabled for thread scheduling purposes and lies dormant until one of following happens: * some other thread invokes the release() method for this semaphore and the current thread is next to be assigned a permit, or * some other thread interrupts the current thread, or * the specified waiting time elapses. If there are insufficient permits and no timeout is provided, this method will return immediately with the value ``false`` and the number of available permits is unchanged. :param permits: (int), the number of permits to acquire (optional). :param timeout: (long), the maximum time in seconds to wait for the permit(s) (optional). :return: (bool), ``true`` if desired amount of permits was acquired, ``false`` otherwise.
(module (function_definition (function_name_p0) function_name_p0 (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__p0) identifier__p0 )attribute (None) None )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"initial positions not set; run set_p0") string_"initial positions not set; run set_p0" )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_p0) identifier_p0 (dictionary_comprehension (pair (identifier_param) identifier_param (subscript (attribute (identifier_self) identifier_self (identifier__p0) identifier__p0 )attribute (ellipsis_...) ellipsis_... (identifier_k) identifier_k )subscript )pair (for_in_clause (tuple_pattern (identifier_k) identifier_k (identifier_param) identifier_param )tuple_pattern (call (identifier_enumerate) identifier_enumerate (argument_list (attribute (identifier_self) identifier_self (identifier_sampling_params) identifier_sampling_params )attribute )argument_list )call )for_in_clause )dictionary_comprehension )assignment )expression_statement (return_statement (identifier_p0) identifier_p0 )return_statement )block )function_definition )module
A dictionary of the initial position of the walkers. This is set by using ``set_p0``. If not set yet, a ``ValueError`` is raised when the attribute is accessed.
(module (function_definition (function_name_imethodcallPayload) function_name_imethodcallPayload (parameters (identifier_self) identifier_self (identifier_methodname) identifier_methodname (identifier_localnsp) identifier_localnsp (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_param_list) identifier_param_list (list_comprehension (call (attribute (identifier_pywbem) identifier_pywbem (identifier_IPARAMVALUE) identifier_IPARAMVALUE )attribute (argument_list (subscript (identifier_x) identifier_x (integer_0) integer_0 )subscript (call (attribute (identifier_pywbem) identifier_pywbem (identifier_tocimxml) identifier_tocimxml )attribute (argument_list (subscript (identifier_x) identifier_x (integer_1) integer_1 )subscript )argument_list )call )argument_list )call (for_in_clause (identifier_x) identifier_x (call (attribute (identifier_kwargs) identifier_kwargs (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_payload) identifier_payload (call (attribute (identifier_cim_xml) identifier_cim_xml (identifier_CIM) identifier_CIM )attribute (argument_list (call (attribute (identifier_cim_xml) identifier_cim_xml (identifier_MESSAGE) identifier_MESSAGE )attribute (argument_list (call (attribute (identifier_cim_xml) identifier_cim_xml (identifier_SIMPLEREQ) identifier_SIMPLEREQ )attribute (argument_list (call (attribute (identifier_cim_xml) identifier_cim_xml (identifier_IMETHODCALL) identifier_IMETHODCALL )attribute (argument_list (identifier_methodname) identifier_methodname (call (attribute (identifier_cim_xml) identifier_cim_xml (identifier_LOCALNAMESPACEPATH) identifier_LOCALNAMESPACEPATH )attribute (argument_list (list_comprehension (call (attribute (identifier_cim_xml) identifier_cim_xml (identifier_NAMESPACE) identifier_NAMESPACE )attribute (argument_list (identifier_ns) identifier_ns )argument_list )call (for_in_clause (identifier_ns) identifier_ns (call (attribute (identifier_localnsp) identifier_localnsp (identifier_split) identifier_split )attribute (argument_list (string_'/') string_'/' )argument_list )call )for_in_clause )list_comprehension )argument_list )call (identifier_param_list) identifier_param_list )argument_list )call )argument_list )call (string_'1001') string_'1001' (string_'1.0') string_'1.0' )argument_list )call (string_'2.0') string_'2.0' (string_'2.0') string_'2.0' )argument_list )call )assignment )expression_statement (return_statement (binary_operator (attribute (identifier_self) identifier_self (identifier_xml_header) identifier_xml_header )attribute (call (attribute (identifier_payload) identifier_payload (identifier_toxml) identifier_toxml )attribute (argument_list )argument_list )call )binary_operator )return_statement )block )function_definition )module
Generate the XML payload for an intrinsic methodcall.
(module (function_definition (function_name_getProvIden) function_name_getProvIden (parameters (identifier_self) identifier_self (identifier_provstack) identifier_provstack )parameters (block (expression_statement (assignment (identifier_iden) identifier_iden (call (identifier__providen) identifier__providen (argument_list (identifier_provstack) identifier_provstack )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_misc) identifier_misc (identifier_frames) identifier_frames )pattern_list (identifier_provstack) identifier_provstack )assignment )expression_statement (expression_statement (assignment (identifier_dictframes) identifier_dictframes (list_comprehension (tuple (identifier_typ) identifier_typ (dictionary_comprehension (pair (identifier_k) identifier_k (identifier_v) identifier_v )pair (for_in_clause (tuple_pattern (identifier_k) identifier_k (identifier_v) identifier_v )tuple_pattern (identifier_info) identifier_info )for_in_clause )dictionary_comprehension )tuple (for_in_clause (tuple_pattern (identifier_typ) identifier_typ (identifier_info) identifier_info )tuple_pattern (identifier_frames) identifier_frames )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_bytz) identifier_bytz (call (attribute (identifier_s_msgpack) identifier_s_msgpack (identifier_en) identifier_en )attribute (argument_list (tuple (identifier_misc) identifier_misc (identifier_dictframes) identifier_dictframes )tuple )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_didwrite) identifier_didwrite (call (attribute (attribute (identifier_self) identifier_self (identifier_slab) identifier_slab )attribute (identifier_put) identifier_put )attribute (argument_list (identifier_iden) identifier_iden (identifier_bytz) identifier_bytz (keyword_argument (identifier_overwrite) identifier_overwrite (False) False )keyword_argument (keyword_argument (identifier_db) identifier_db (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (identifier_didwrite) identifier_didwrite (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_provseq) identifier_provseq )attribute (identifier_save) identifier_save )attribute (argument_list (list (identifier_iden) identifier_iden )list )argument_list )call )expression_statement )block )if_statement (return_statement (identifier_iden) identifier_iden )return_statement )block )function_definition )module
Returns the iden corresponding to a provenance stack and stores if it hasn't seen it before
(module (function_definition (function_name_scene_velocity) function_name_scene_velocity (parameters (identifier_frames) identifier_frames )parameters (block (expression_statement (assignment (identifier_reader) identifier_reader (call (identifier_MessageReader) identifier_MessageReader (argument_list (identifier_frames) identifier_frames )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_results) identifier_results (call (attribute (call (attribute (call (attribute (call (attribute (call (attribute (identifier_reader) identifier_reader (identifier_string) identifier_string )attribute (argument_list (string_"command") string_"command" )argument_list )call (identifier_uint32) identifier_uint32 )attribute (argument_list (string_"scene_id") string_"scene_id" )argument_list )call (identifier_uint32) identifier_uint32 )attribute (argument_list (string_"velocity") string_"velocity" )argument_list )call (identifier_assert_end) identifier_assert_end )attribute (argument_list )argument_list )call (identifier_get) identifier_get )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_results) identifier_results (identifier_command) identifier_command )attribute (string_"scene.velocity") string_"scene.velocity" )comparison_operator (block (raise_statement (call (identifier_MessageParserError) identifier_MessageParserError (argument_list (string_"Command is not 'scene.velocity'") string_"Command is not 'scene.velocity'" )argument_list )call )raise_statement )block )if_statement (return_statement (tuple (attribute (identifier_results) identifier_results (identifier_scene_id) identifier_scene_id )attribute (binary_operator (attribute (identifier_results) identifier_results (identifier_velocity) identifier_velocity )attribute (integer_1000) integer_1000 )binary_operator )tuple )return_statement )block )function_definition )module
parse a scene.velocity message
(module (function_definition (function_name_available) function_name_available (parameters )parameters (block (expression_statement (assignment (identifier_proc) identifier_proc (call (identifier_popen_multiple) identifier_popen_multiple (argument_list (identifier_COMMANDS) identifier_COMMANDS (list (string_'-version') string_'-version' )list (keyword_argument (identifier_stdout) identifier_stdout (attribute (identifier_subprocess) identifier_subprocess (identifier_PIPE) identifier_PIPE )attribute )keyword_argument (keyword_argument (identifier_stderr) identifier_stderr (attribute (identifier_subprocess) identifier_subprocess (identifier_PIPE) identifier_PIPE )attribute )keyword_argument (keyword_argument (identifier_creationflags) identifier_creationflags (identifier_PROC_FLAGS) identifier_PROC_FLAGS )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_proc) identifier_proc (identifier_wait) identifier_wait )attribute (argument_list )argument_list )call )expression_statement (return_statement (parenthesized_expression (comparison_operator (attribute (identifier_proc) identifier_proc (identifier_returncode) identifier_returncode )attribute (integer_0) integer_0 )comparison_operator )parenthesized_expression )return_statement )block )function_definition )module
Detect if the FFmpeg backend can be used on this system.
(module (function_definition (function_name_parse_geometry) function_name_parse_geometry (parameters (identifier_geometry) identifier_geometry (default_parameter (identifier_ratio) identifier_ratio (None) None )default_parameter )parameters (block (if_statement (comparison_operator (string_"%") string_"%" (identifier_geometry) identifier_geometry )comparison_operator (block (return_statement (call (identifier_xy_geometry_parser) identifier_xy_geometry_parser (argument_list (identifier_geometry) identifier_geometry (identifier_ratio) identifier_ratio )argument_list )call )return_statement )block )if_statement (return_statement (binary_operator (call (identifier_float) identifier_float (argument_list (call (attribute (identifier_geometry) identifier_geometry (identifier_strip) identifier_strip )attribute (argument_list (string_"%") string_"%" )argument_list )call )argument_list )call (float_100.0) float_100.0 )binary_operator )return_statement )block )function_definition )module
Enhanced parse_geometry parser with percentage support.
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value (default_parameter (identifier_expires) identifier_expires (None) None )default_parameter (default_parameter (identifier_future) identifier_future (None) None )default_parameter )parameters (block (with_statement (with_clause (with_item (attribute (identifier_self) identifier_self (identifier__lock) identifier__lock )attribute )with_item )with_clause (block (try_statement (block (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier__dict) identifier__dict )attribute (identifier_key) identifier_key )subscript (identifier_set) identifier_set )attribute (argument_list (identifier_value) identifier_value (keyword_argument (identifier_expires) identifier_expires (identifier_expires) identifier_expires )keyword_argument (keyword_argument (identifier_future) identifier_future (identifier_future) identifier_future )keyword_argument )argument_list )call )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__dict) identifier__dict )attribute (identifier_key) identifier_key )subscript (call (identifier_moment) identifier_moment (argument_list (identifier_value) identifier_value (keyword_argument (identifier_expires) identifier_expires (identifier_expires) identifier_expires )keyword_argument (keyword_argument (identifier_future) identifier_future (identifier_future) identifier_future )keyword_argument (keyword_argument (identifier_lock) identifier_lock (attribute (identifier_self) identifier_self (identifier__lock) identifier__lock )attribute )keyword_argument )argument_list )call )assignment )expression_statement )block )except_clause )try_statement (return_statement (identifier_value) identifier_value )return_statement )block )with_statement )block )function_definition )module
Set a value
(module (function_definition (function_name_updateAARText) function_name_updateAARText (parameters (identifier_self) identifier_self )parameters (block (expression_statement (string_'Updates the displayed airspeed, altitude, climb rate Text') string_'Updates the displayed airspeed, altitude, climb rate Text' )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_airspeedText) identifier_airspeedText )attribute (identifier_set_text) identifier_set_text )attribute (argument_list (binary_operator (string_'AR: %.1f m/s') string_'AR: %.1f m/s' (attribute (identifier_self) identifier_self (identifier_airspeed) identifier_airspeed )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_altitudeText) identifier_altitudeText )attribute (identifier_set_text) identifier_set_text )attribute (argument_list (binary_operator (string_'ALT: %.1f m ') string_'ALT: %.1f m ' (attribute (identifier_self) identifier_self (identifier_relAlt) identifier_relAlt )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_climbRateText) identifier_climbRateText )attribute (identifier_set_text) identifier_set_text )attribute (argument_list (binary_operator (string_'CR: %.1f m/s') string_'CR: %.1f m/s' (attribute (identifier_self) identifier_self (identifier_climbRate) identifier_climbRate )attribute )binary_operator )argument_list )call )expression_statement )block )function_definition )module
Updates the displayed airspeed, altitude, climb rate Text
(module (function_definition (function_name_receive) function_name_receive (parameters (identifier_self) identifier_self (identifier_sequence) identifier_sequence (identifier_args) identifier_args )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier__reorder) identifier__reorder )attribute )not_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__callback) identifier__callback )attribute (argument_list (list_splat (identifier_args) identifier_args )list_splat )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__next_expected) identifier__next_expected )attribute (None) None )comparison_operator (comparison_operator (identifier_sequence) identifier_sequence (attribute (identifier_self) identifier_self (identifier__next_expected) identifier__next_expected )attribute )comparison_operator )boolean_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_"Dropping out of order packet, seq=%d") string_"Dropping out of order packet, seq=%d" (identifier_sequence) identifier_sequence )binary_operator )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__out_of_order) identifier__out_of_order )attribute (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_sequence) identifier_sequence (identifier_args) identifier_args )tuple )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__out_of_order) identifier__out_of_order )attribute (identifier_sort) identifier_sort )attribute (argument_list (keyword_argument (identifier_key) identifier_key (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (subscript (identifier_x) identifier_x (integer_0) integer_0 )subscript )lambda )keyword_argument )argument_list )call )expression_statement (while_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__out_of_order) identifier__out_of_order )attribute )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (pattern_list (identifier_seq) identifier_seq (identifier_args) identifier_args )pattern_list (subscript (attribute (identifier_self) identifier_self (identifier__out_of_order) identifier__out_of_order )attribute (integer_0) integer_0 )subscript )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__next_expected) identifier__next_expected )attribute (None) None )comparison_operator (comparison_operator (identifier_seq) identifier_seq (attribute (identifier_self) identifier_self (identifier__next_expected) identifier__next_expected )attribute )comparison_operator )boolean_operator (block (return_statement )return_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__callback) identifier__callback )attribute (argument_list (list_splat (identifier_args) identifier_args )list_splat )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__out_of_order) identifier__out_of_order )attribute (identifier_pop) identifier_pop )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__next_expected) identifier__next_expected )attribute (binary_operator (identifier_seq) identifier_seq (integer_1) integer_1 )binary_operator )assignment )expression_statement )block )while_statement )block )function_definition )module
Receive one packet If the sequence number is one we've already seen before, it is dropped. If it is not the next expected sequence number, it is put into the _out_of_order queue to be processed once the holes in sequence number are filled in. Args: sequence (int): The sequence number of the received packet args (list): The list of packet contents that will be passed to callback as callback(*args)
(module (function_definition (function_name_list_buckets) function_name_list_buckets (parameters (identifier_self) identifier_self (default_parameter (identifier_max_results) identifier_max_results (None) None )default_parameter (default_parameter (identifier_page_token) identifier_page_token (None) None )default_parameter (default_parameter (identifier_prefix) identifier_prefix (None) None )default_parameter (default_parameter (identifier_projection) identifier_projection (string_"noAcl") string_"noAcl" )default_parameter (default_parameter (identifier_fields) identifier_fields (None) None )default_parameter (default_parameter (identifier_project) identifier_project (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_project) identifier_project (None) None )comparison_operator (block (expression_statement (assignment (identifier_project) identifier_project (attribute (identifier_self) identifier_self (identifier_project) identifier_project )attribute )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_project) identifier_project (None) None )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"Client project not set: pass an explicit project.") string_"Client project not set: pass an explicit project." )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_extra_params) identifier_extra_params (dictionary (pair (string_"project") string_"project" (identifier_project) identifier_project )pair )dictionary )assignment )expression_statement (if_statement (comparison_operator (identifier_prefix) identifier_prefix (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_extra_params) identifier_extra_params (string_"prefix") string_"prefix" )subscript (identifier_prefix) identifier_prefix )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (identifier_extra_params) identifier_extra_params (string_"projection") string_"projection" )subscript (identifier_projection) identifier_projection )assignment )expression_statement (if_statement (comparison_operator (identifier_fields) identifier_fields (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_extra_params) identifier_extra_params (string_"fields") string_"fields" )subscript (identifier_fields) identifier_fields )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_page_iterator) identifier_page_iterator (identifier_HTTPIterator) identifier_HTTPIterator )attribute (argument_list (keyword_argument (identifier_client) identifier_client (identifier_self) identifier_self )keyword_argument (keyword_argument (identifier_api_request) identifier_api_request (attribute (attribute (identifier_self) identifier_self (identifier__connection) identifier__connection )attribute (identifier_api_request) identifier_api_request )attribute )keyword_argument (keyword_argument (identifier_path) identifier_path (string_"/b") string_"/b" )keyword_argument (keyword_argument (identifier_item_to_value) identifier_item_to_value (identifier__item_to_bucket) identifier__item_to_bucket )keyword_argument (keyword_argument (identifier_page_token) identifier_page_token (identifier_page_token) identifier_page_token )keyword_argument (keyword_argument (identifier_max_results) identifier_max_results (identifier_max_results) identifier_max_results )keyword_argument (keyword_argument (identifier_extra_params) identifier_extra_params (identifier_extra_params) identifier_extra_params )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Get all buckets in the project associated to the client. This will not populate the list of blobs available in each bucket. .. literalinclude:: snippets.py :start-after: [START list_buckets] :end-before: [END list_buckets] This implements "storage.buckets.list". :type max_results: int :param max_results: Optional. The maximum number of buckets to return. :type page_token: str :param page_token: Optional. If present, return the next batch of buckets, using the value, which must correspond to the ``nextPageToken`` value returned in the previous response. Deprecated: use the ``pages`` property of the returned iterator instead of manually passing the token. :type prefix: str :param prefix: Optional. Filter results to buckets whose names begin with this prefix. :type projection: str :param projection: (Optional) Specifies the set of properties to return. If used, must be 'full' or 'noAcl'. Defaults to 'noAcl'. :type fields: str :param fields: (Optional) Selector specifying which fields to include in a partial response. Must be a list of fields. For example to get a partial response with just the next page token and the language of each bucket returned: 'items/id,nextPageToken' :type project: str :param project: (Optional) the project whose buckets are to be listed. If not passed, uses the project set on the client. :rtype: :class:`~google.api_core.page_iterator.Iterator` :raises ValueError: if both ``project`` is ``None`` and the client's project is also ``None``. :returns: Iterator of all :class:`~google.cloud.storage.bucket.Bucket` belonging to this project.
(module (function_definition (function_name_remote_pdb_handler) function_name_remote_pdb_handler (parameters (identifier_signum) identifier_signum (identifier_frame) identifier_frame )parameters (block (try_statement (block (import_from_statement (dotted_name (identifier_remote_pdb) identifier_remote_pdb )dotted_name (dotted_name (identifier_RemotePdb) identifier_RemotePdb )dotted_name )import_from_statement (expression_statement (assignment (identifier_rdb) identifier_rdb (call (identifier_RemotePdb) identifier_RemotePdb (argument_list (keyword_argument (identifier_host) identifier_host (string_"127.0.0.1") string_"127.0.0.1" )keyword_argument (keyword_argument (identifier_port) identifier_port (integer_0) integer_0 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_rdb) identifier_rdb (identifier_set_trace) identifier_set_trace )attribute (argument_list (keyword_argument (identifier_frame) identifier_frame (identifier_frame) identifier_frame )keyword_argument )argument_list )call )expression_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_warning) identifier_warning )attribute (argument_list (concatenated_string (string_"remote_pdb unavailable. Please install remote_pdb to ") string_"remote_pdb unavailable. Please install remote_pdb to " (string_"allow remote debugging.") string_"allow remote debugging." )concatenated_string )argument_list )call )expression_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_signal) identifier_signal (identifier_signal) identifier_signal )attribute (argument_list (identifier_signum) identifier_signum (identifier_remote_pdb_handler) identifier_remote_pdb_handler )argument_list )call )expression_statement )block )function_definition )module
Handler to drop us into a remote debugger upon receiving SIGUSR1
(module (function_definition (function_name__read_header) function_name__read_header (parameters (identifier_filename) identifier_filename )parameters (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_filename) identifier_filename (identifier_open) identifier_open )attribute (argument_list (string_'rb') string_'rb' )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_h) identifier_h (call (attribute (call (attribute (identifier_f) identifier_f (identifier_read) identifier_read )attribute (argument_list (identifier_HDR_LENGTH) identifier_HDR_LENGTH )argument_list )call (identifier_decode) identifier_decode )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_header) identifier_header (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_line) identifier_line (call (attribute (identifier_h) identifier_h (identifier_split) identifier_split )attribute (argument_list (string_'\n') string_'\n' )argument_list )call (block (if_statement (comparison_operator (string_'=') string_'=' (identifier_line) identifier_line )comparison_operator (block (expression_statement (assignment (pattern_list (identifier_key) identifier_key (identifier_value) identifier_value )pattern_list (call (attribute (identifier_line) identifier_line (identifier_split) identifier_split )attribute (argument_list (string_' = ') string_' = ' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_key) identifier_key (subscript (call (attribute (identifier_key) identifier_key (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (slice (integer_7) integer_7 (colon) colon )slice )subscript )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (subscript (call (attribute (identifier_value) identifier_value (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (slice (colon) colon (unary_operator (integer_1) integer_1 )unary_operator )slice )subscript )assignment )expression_statement (expression_statement (assignment (subscript (identifier_header) identifier_header (identifier_key) identifier_key )subscript (identifier_value) identifier_value )assignment )expression_statement )block )if_statement )block )for_statement )block )with_statement (return_statement (identifier_header) identifier_header )return_statement )block )function_definition )module
Read the text header for each file Parameters ---------- channel_file : Path path to single filename with the header Returns ------- dict header
(module (function_definition (function_name_make_response) function_name_make_response (parameters (identifier_response) identifier_response )parameters (block (if_statement (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_response) identifier_response (identifier_unicode) identifier_unicode )argument_list )call (line_continuation_\) line_continuation_\ (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_response) identifier_response (identifier_str) identifier_str )argument_list )call )boolean_operator (block (expression_statement (assignment (identifier_response) identifier_response (tuple (identifier_response) identifier_response (string_'text/html') string_'text/html' )tuple )assignment )expression_statement )block )if_statement (return_statement (identifier_response) identifier_response )return_statement )block )function_definition )module
Make response tuple Potential features to be added - Parameters validation
(module (function_definition (function_name_delete_vlan_entry) function_name_delete_vlan_entry (parameters (identifier_self) identifier_self (identifier_vlan_id) identifier_vlan_id )parameters (block (with_statement (with_clause (with_item (call (attribute (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute (identifier_begin) identifier_begin )attribute (argument_list (keyword_argument (identifier_subtransactions) identifier_subtransactions (True) True )keyword_argument )argument_list )call )with_item )with_clause (block (try_statement (block (expression_statement (call (attribute (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute (identifier_query) identifier_query )attribute (argument_list (attribute (identifier_ucsm_model) identifier_ucsm_model (identifier_PortProfile) identifier_PortProfile )attribute )argument_list )call (identifier_filter_by) identifier_filter_by )attribute (argument_list (keyword_argument (identifier_vlan_id) identifier_vlan_id (identifier_vlan_id) identifier_vlan_id )keyword_argument )argument_list )call (identifier_delete) identifier_delete )attribute (argument_list )argument_list )call )expression_statement )block (except_clause (attribute (attribute (identifier_orm) identifier_orm (identifier_exc) identifier_exc )attribute (identifier_NoResultFound) identifier_NoResultFound )attribute (block (return_statement )return_statement )block )except_clause )try_statement )block )with_statement )block )function_definition )module
Deletes entry for a vlan_id if it exists.
(module (function_definition (function_name_has_group) function_name_has_group (parameters (identifier_user) identifier_user (identifier_group_name) identifier_group_name )parameters (block (if_statement (call (attribute (call (attribute (attribute (identifier_user) identifier_user (identifier_groups) identifier_groups )attribute (identifier_filter) identifier_filter )attribute (argument_list (keyword_argument (identifier_name) identifier_name (identifier_group_name) identifier_group_name )keyword_argument )argument_list )call (identifier_exists) identifier_exists )attribute (argument_list )argument_list )call (block (return_statement (True) True )return_statement )block )if_statement (return_statement (False) False )return_statement )block )function_definition )module
This allows specification group-based permissions in templates. In most instances, creating model-based permissions and giving them to the desired group is preferable.
(module (function_definition (function_name_getFilepaths) function_name_getFilepaths (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename )parameters (block (return_statement (tuple (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (subscript (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (string_'HOME') string_'HOME' )subscript (identifier_filename) identifier_filename )argument_list )call (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_mackup) identifier_mackup )attribute (identifier_mackup_folder) identifier_mackup_folder )attribute (identifier_filename) identifier_filename )argument_list )call )tuple )return_statement )block )function_definition )module
Get home and mackup filepaths for given file Args: filename (str) Returns: home_filepath, mackup_filepath (str, str)
(module (function_definition (function_name_get_sources) function_name_get_sources (parameters (identifier_self) identifier_self (identifier_plate) identifier_plate (identifier_plate_value) identifier_plate_value (default_parameter (identifier_sources) identifier_sources (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_sources) identifier_sources (None) None )comparison_operator (block (expression_statement (assignment (identifier_sources) identifier_sources (list )list )assignment )expression_statement )block )if_statement (if_statement (attribute (identifier_self) identifier_self (identifier_sources) identifier_sources )attribute (block (for_statement (pattern_list (identifier_si) identifier_si (identifier_source) identifier_source )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (attribute (identifier_self) identifier_self (identifier_sources) identifier_sources )attribute )argument_list )call (block (if_statement (boolean_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_source) identifier_source (identifier_streams) identifier_streams )attribute )argument_list )call (integer_1) integer_1 )comparison_operator (comparison_operator (None) None (attribute (identifier_source) identifier_source (identifier_streams) identifier_streams )attribute )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_sources) identifier_sources (identifier_append) identifier_append )attribute (argument_list (subscript (attribute (identifier_source) identifier_source (identifier_streams) identifier_streams )attribute (None) None )subscript )argument_list )call )expression_statement )block (elif_clause (comparison_operator (identifier_plate_value) identifier_plate_value (attribute (identifier_source) identifier_source (identifier_streams) identifier_streams )attribute )comparison_operator (block (expression_statement (call (attribute (identifier_sources) identifier_sources (identifier_append) identifier_append )attribute (argument_list (subscript (attribute (identifier_source) identifier_source (identifier_streams) identifier_streams )attribute (identifier_plate_value) identifier_plate_value )subscript )argument_list )call )expression_statement )block )elif_clause (else_clause (block (pass_statement )pass_statement )block )else_clause )if_statement )block )for_statement )block )if_statement (if_statement (not_operator (attribute (identifier_plate) identifier_plate (identifier_is_root) identifier_is_root )attribute )not_operator (block (expression_statement (assignment (identifier_parent_plate_value) identifier_parent_plate_value (call (identifier_tuple) identifier_tuple (generator_expression (identifier_pv) identifier_pv (for_in_clause (identifier_pv) identifier_pv (identifier_plate_value) identifier_plate_value )for_in_clause (if_clause (comparison_operator (subscript (identifier_pv) identifier_pv (integer_0) integer_0 )subscript (attribute (identifier_plate) identifier_plate (identifier_meta_data_id) identifier_meta_data_id )attribute )comparison_operator )if_clause )generator_expression )call )assignment )expression_statement (expression_statement (assignment (identifier_sources) identifier_sources (call (attribute (identifier_self) identifier_self (identifier_get_sources) identifier_get_sources )attribute (argument_list (attribute (identifier_plate) identifier_plate (identifier_parent) identifier_parent )attribute (identifier_parent_plate_value) identifier_parent_plate_value (identifier_sources) identifier_sources )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (identifier_sources) identifier_sources )return_statement )block )function_definition )module
Gets the source streams for a given plate value on a plate. Also populates with source streams that are valid for the parent plates of this plate, with the appropriate meta-data for the parent plate. :param plate: The plate being operated on :param plate_value: The specific plate value of interest :param sources: The currently found sources (for recursion) :return: The appropriate source streams :type plate: Plate :type plate_value: tuple :type sources: list[Stream] | None
(module (function_definition (function_name__get_by_id) function_name__get_by_id (parameters (identifier_cls) identifier_cls (identifier_id) identifier_id (default_parameter (identifier_parent) identifier_parent (None) None )default_parameter (dictionary_splat_pattern (identifier_ctx_options) identifier_ctx_options )dictionary_splat_pattern )parameters (block (return_statement (call (attribute (call (attribute (identifier_cls) identifier_cls (identifier__get_by_id_async) identifier__get_by_id_async )attribute (argument_list (identifier_id) identifier_id (keyword_argument (identifier_parent) identifier_parent (identifier_parent) identifier_parent )keyword_argument (dictionary_splat (identifier_ctx_options) identifier_ctx_options )dictionary_splat )argument_list )call (identifier_get_result) identifier_get_result )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Returns an instance of Model class by ID. This is really just a shorthand for Key(cls, id, ...).get(). Args: id: A string or integer key ID. parent: Optional parent key of the model to get. namespace: Optional namespace. app: Optional app ID. **ctx_options: Context options. Returns: A model instance or None if not found.
(module (function_definition (function_name_deriv2) function_name_deriv2 (parameters (identifier_self) identifier_self (identifier_p) identifier_p )parameters (block (expression_statement (assignment (identifier_numer) identifier_numer (unary_operator (parenthesized_expression (binary_operator (integer_1) integer_1 (binary_operator (binary_operator (integer_2) integer_2 (attribute (identifier_self) identifier_self (identifier_alpha) identifier_alpha )attribute )binary_operator (identifier_p) identifier_p )binary_operator )binary_operator )parenthesized_expression )unary_operator )assignment )expression_statement (expression_statement (assignment (identifier_denom) identifier_denom (binary_operator (parenthesized_expression (binary_operator (identifier_p) identifier_p (binary_operator (attribute (identifier_self) identifier_self (identifier_alpha) identifier_alpha )attribute (binary_operator (identifier_p) identifier_p (integer_2) integer_2 )binary_operator )binary_operator )binary_operator )parenthesized_expression (integer_2) integer_2 )binary_operator )assignment )expression_statement (return_statement (binary_operator (identifier_numer) identifier_numer (identifier_denom) identifier_denom )binary_operator )return_statement )block )function_definition )module
Second derivative of the negative binomial link function. Parameters ---------- p : array-like Mean parameters Returns ------- g''(p) : array The second derivative of the negative binomial transform link function Notes ----- g''(x) = -(1+2*alpha*x)/(x+alpha*x^2)^2
(module (function_definition (function_name_dewpoint_temperature) function_name_dewpoint_temperature (parameters (identifier_temp) identifier_temp (identifier_hum) identifier_hum )parameters (block (assert_statement (parenthesized_expression (comparison_operator (attribute (identifier_temp) identifier_temp (identifier_shape) identifier_shape )attribute (attribute (identifier_hum) identifier_hum (identifier_shape) identifier_shape )attribute )comparison_operator )parenthesized_expression )assert_statement (expression_statement (assignment (identifier_vap_press) identifier_vap_press (call (identifier_vapor_pressure) identifier_vapor_pressure (argument_list (identifier_temp) identifier_temp (identifier_hum) identifier_hum )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_positives) identifier_positives (call (attribute (identifier_np) identifier_np (identifier_array) identifier_array )attribute (argument_list (comparison_operator (identifier_temp) identifier_temp (float_273.15) float_273.15 )comparison_operator )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_dewpoint_temp) identifier_dewpoint_temp (binary_operator (call (attribute (identifier_temp) identifier_temp (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call (attribute (identifier_np) identifier_np (identifier_nan) identifier_nan )attribute )binary_operator )assignment )expression_statement (expression_statement (assignment (subscript (identifier_dewpoint_temp) identifier_dewpoint_temp (identifier_positives) identifier_positives )subscript (binary_operator (binary_operator (float_243.12) float_243.12 (call (attribute (identifier_np) identifier_np (identifier_log) identifier_log )attribute (argument_list (binary_operator (subscript (identifier_vap_press) identifier_vap_press (identifier_positives) identifier_positives )subscript (float_6.112) float_6.112 )binary_operator )argument_list )call )binary_operator (parenthesized_expression (binary_operator (float_17.62) float_17.62 (call (attribute (identifier_np) identifier_np (identifier_log) identifier_log )attribute (argument_list (binary_operator (subscript (identifier_vap_press) identifier_vap_press (identifier_positives) identifier_positives )subscript (float_6.112) float_6.112 )binary_operator )argument_list )call )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (expression_statement (assignment (subscript (identifier_dewpoint_temp) identifier_dewpoint_temp (unary_operator (identifier_positives) identifier_positives )unary_operator )subscript (binary_operator (binary_operator (float_272.62) float_272.62 (call (attribute (identifier_np) identifier_np (identifier_log) identifier_log )attribute (argument_list (binary_operator (subscript (identifier_vap_press) identifier_vap_press (unary_operator (identifier_positives) identifier_positives )unary_operator )subscript (float_6.112) float_6.112 )binary_operator )argument_list )call )binary_operator (parenthesized_expression (binary_operator (float_22.46) float_22.46 (call (attribute (identifier_np) identifier_np (identifier_log) identifier_log )attribute (argument_list (binary_operator (subscript (identifier_vap_press) identifier_vap_press (unary_operator (identifier_positives) identifier_positives )unary_operator )subscript (float_6.112) float_6.112 )binary_operator )argument_list )call )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (return_statement (binary_operator (identifier_dewpoint_temp) identifier_dewpoint_temp (float_273.15) float_273.15 )binary_operator )return_statement )block )function_definition )module
computes the dewpoint temperature Parameters ---- temp : temperature [K] hum : relative humidity Returns dewpoint temperature in K
(module (function_definition (function_name___argument) function_name___argument (parameters (identifier_self) identifier_self (identifier_ttype) identifier_ttype (identifier_tvalue) identifier_tvalue )parameters (block (if_statement (comparison_operator (identifier_ttype) identifier_ttype (list (string_"multiline") string_"multiline" (string_"string") string_"string" )list )comparison_operator (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier___curcommand) identifier___curcommand )attribute (identifier_check_next_arg) identifier_check_next_arg )attribute (argument_list (string_"string") string_"string" (call (attribute (identifier_tvalue) identifier_tvalue (identifier_decode) identifier_decode )attribute (argument_list (string_"utf-8") string_"utf-8" )argument_list )call )argument_list )call )return_statement )block )if_statement (if_statement (comparison_operator (identifier_ttype) identifier_ttype (list (string_"number") string_"number" (string_"tag") string_"tag" )list )comparison_operator (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier___curcommand) identifier___curcommand )attribute (identifier_check_next_arg) identifier_check_next_arg )attribute (argument_list (identifier_ttype) identifier_ttype (call (attribute (identifier_tvalue) identifier_tvalue (identifier_decode) identifier_decode )attribute (argument_list (string_"ascii") string_"ascii" )argument_list )call )argument_list )call )return_statement )block )if_statement (if_statement (comparison_operator (identifier_ttype) identifier_ttype (string_"left_bracket") string_"left_bracket" )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___cstate) identifier___cstate )attribute (attribute (identifier_self) identifier_self (identifier___stringlist) identifier___stringlist )attribute )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___curstringlist) identifier___curstringlist )attribute (list )list )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier___set_expected) identifier___set_expected )attribute (argument_list (string_"string") string_"string" )argument_list )call )expression_statement (return_statement (True) True )return_statement )block )if_statement (expression_statement (assignment (identifier_condition) identifier_condition (parenthesized_expression (boolean_operator (comparison_operator (identifier_ttype) identifier_ttype (list (string_"left_cbracket") string_"left_cbracket" (string_"comma") string_"comma" )list )comparison_operator (attribute (attribute (identifier_self) identifier_self (identifier___curcommand) identifier___curcommand )attribute (identifier_non_deterministic_args) identifier_non_deterministic_args )attribute )boolean_operator )parenthesized_expression )assignment )expression_statement (if_statement (identifier_condition) identifier_condition (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier___curcommand) identifier___curcommand )attribute (identifier_reassign_arguments) identifier_reassign_arguments )attribute (argument_list )argument_list )call )expression_statement (expression_statement (augmented_assignment (attribute (attribute (identifier_self) identifier_self (identifier_lexer) identifier_lexer )attribute (identifier_pos) identifier_pos )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (return_statement (True) True )return_statement )block )if_statement (return_statement (False) False )return_statement )block )function_definition )module
Argument parsing method This method acts as an entry point for 'argument' parsing. Syntax: string-list / number / tag :param ttype: current token type :param tvalue: current token value :return: False if an error is encountered, True otherwise
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_data) identifier_data (call (identifier_dict) identifier_dict (argument_list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_label) identifier_label (identifier_entry) identifier_entry )pattern_list (call (identifier_zip) identifier_zip (argument_list (attribute (identifier_self) identifier_self (identifier_keys) identifier_keys )attribute (attribute (identifier_self) identifier_self (identifier_values) identifier_values )attribute )argument_list )call (block (expression_statement (assignment (subscript (identifier_data) identifier_data (call (attribute (identifier_label) identifier_label (identifier_cget) identifier_cget )attribute (argument_list (string_'text') string_'text' )argument_list )call )subscript (call (attribute (identifier_entry) identifier_entry (identifier_get) identifier_get )attribute (argument_list )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_data) identifier_data )return_statement )block )function_definition )module
Retrieve the GUI elements for program use. :return: a dictionary containing all \ of the data from the key/value entries
(module (function_definition (function_name_ListOf) function_name_ListOf (parameters (identifier_element_type) identifier_element_type (default_parameter (identifier_element_none_value) identifier_element_none_value (None) None )default_parameter )parameters (block (import_from_statement (dotted_name (identifier_pyws) identifier_pyws (identifier_functions) identifier_functions (identifier_args) identifier_args (identifier_types) identifier_types )dotted_name (dotted_name (identifier_TypeFactory) identifier_TypeFactory )dotted_name )import_from_statement (expression_statement (assignment (identifier_element_type) identifier_element_type (call (identifier_TypeFactory) identifier_TypeFactory (argument_list (identifier_element_type) identifier_element_type )argument_list )call )assignment )expression_statement (return_statement (call (identifier_type) identifier_type (argument_list (binary_operator (attribute (identifier_element_type) identifier_element_type (identifier___name__) identifier___name__ )attribute (string_'List') string_'List' )binary_operator (tuple (identifier_List) identifier_List )tuple (dictionary (pair (string_'element_type') string_'element_type' (identifier_element_type) identifier_element_type )pair (pair (string_'element_none_value') string_'element_none_value' (identifier_element_none_value) identifier_element_none_value )pair )dictionary )argument_list )call )return_statement )block )function_definition )module
This function creates a list type with element type ``element_type`` and an empty element value ``element_none_value``. >>> from pyws.functions.args import Integer, ListOf >>> lst = ListOf(int) >>> issubclass(lst, List) True >>> lst.__name__ 'IntegerList' >>> lst.element_type == Integer True
(module (function_definition (function_name_read_locations) function_name_read_locations (parameters (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_data) identifier_data (call (identifier_ConfigParser) identifier_ConfigParser (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_filename) identifier_filename (string_'-') string_'-' )comparison_operator (block (expression_statement (call (attribute (identifier_data) identifier_data (identifier_read_file) identifier_read_file )attribute (argument_list (attribute (identifier_sys) identifier_sys (identifier_stdin) identifier_stdin )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_data) identifier_data (identifier_read) identifier_read )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )expression_statement )block )else_clause )if_statement (if_statement (not_operator (call (attribute (identifier_data) identifier_data (identifier_sections) identifier_sections )attribute (argument_list )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (string_'Config file is empty') string_'Config file is empty' )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (identifier_locations) identifier_locations (dictionary )dictionary )assignment )expression_statement (for_statement (identifier_name) identifier_name (call (attribute (identifier_data) identifier_data (identifier_sections) identifier_sections )attribute (argument_list )argument_list )call (block (if_statement (call (attribute (identifier_data) identifier_data (identifier_has_option) identifier_has_option )attribute (argument_list (identifier_name) identifier_name (string_'locator') string_'locator' )argument_list )call (block (expression_statement (assignment (pattern_list (identifier_latitude) identifier_latitude (identifier_longitude) identifier_longitude )pattern_list (call (attribute (identifier_utils) identifier_utils (identifier_from_grid_locator) identifier_from_grid_locator )attribute (argument_list (call (attribute (identifier_data) identifier_data (identifier_get) identifier_get )attribute (argument_list (identifier_name) identifier_name (string_'locator') string_'locator' )argument_list )call )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_latitude) identifier_latitude (call (attribute (identifier_data) identifier_data (identifier_getfloat) identifier_getfloat )attribute (argument_list (identifier_name) identifier_name (string_'latitude') string_'latitude' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_longitude) identifier_longitude (call (attribute (identifier_data) identifier_data (identifier_getfloat) identifier_getfloat )attribute (argument_list (identifier_name) identifier_name (string_'longitude') string_'longitude' )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (subscript (identifier_locations) identifier_locations (identifier_name) identifier_name )subscript (tuple (identifier_latitude) identifier_latitude (identifier_longitude) identifier_longitude )tuple )assignment )expression_statement )block )for_statement (return_statement (identifier_locations) identifier_locations )return_statement )block )function_definition )module
Pull locations from a user's config file. Args: filename (str): Config file to parse Returns: dict: List of locations from config file
(module (function_definition (function_name_make_directory) function_name_make_directory (parameters (identifier_path) identifier_path )parameters (block (try_statement (block (expression_statement (call (identifier_makedirs) identifier_makedirs (argument_list (identifier_path) identifier_path )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'Directory created: {0}') string_'Directory created: {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_path) identifier_path )argument_list )call )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_OSError) identifier_OSError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (if_statement (comparison_operator (attribute (identifier_e) identifier_e (identifier_errno) identifier_errno )attribute (attribute (identifier_errno) identifier_errno (identifier_EEXIST) identifier_EEXIST )attribute )comparison_operator (block (raise_statement )raise_statement )block )if_statement )block )except_clause )try_statement )block )function_definition )module
Create directory if that not exists.
(module (function_definition (function_name__get_description) function_name__get_description (parameters (identifier_self) identifier_self (typed_parameter (identifier_args) identifier_args (type (identifier_Tuple) identifier_Tuple )type )typed_parameter (typed_parameter (identifier_kwargs) identifier_kwargs (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type )typed_parameter )parameters (type (generic_type (identifier_Dict) identifier_Dict (type_parameter (type (identifier_str) identifier_str )type (type (identifier_Any) identifier_Any )type )type_parameter )generic_type )type (block (return_statement (dictionary (pair (string_'id') string_'id' (attribute (call (identifier_uuid1) identifier_uuid1 (argument_list )argument_list )call (identifier_hex) identifier_hex )attribute )pair (pair (string_'args') string_'args' (identifier_args) identifier_args )pair (pair (string_'kwargs') string_'kwargs' (identifier_kwargs) identifier_kwargs )pair (pair (string_'module') string_'module' (attribute (identifier_self) identifier_self (identifier__module_name) identifier__module_name )attribute )pair (pair (string_'function') string_'function' (attribute (attribute (identifier_self) identifier_self (identifier_f) identifier_f )attribute (identifier___name__) identifier___name__ )attribute )pair (pair (string_'sender_hostname') string_'sender_hostname' (call (attribute (identifier_socket) identifier_socket (identifier_gethostname) identifier_gethostname )attribute (argument_list )argument_list )call )pair (pair (string_'sender_pid') string_'sender_pid' (call (attribute (identifier_os) identifier_os (identifier_getpid) identifier_getpid )attribute (argument_list )argument_list )call )pair (pair (string_'sender_cmd') string_'sender_cmd' (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_sys) identifier_sys (identifier_argv) identifier_argv )attribute )argument_list )call )pair (pair (string_'sender_timestamp') string_'sender_timestamp' (subscript (call (attribute (call (attribute (identifier_datetime) identifier_datetime (identifier_utcnow) identifier_utcnow )attribute (argument_list )argument_list )call (identifier_isoformat) identifier_isoformat )attribute (argument_list )argument_list )call (slice (colon) colon (integer_19) integer_19 )slice )subscript )pair )dictionary )return_statement )block )function_definition )module
Return the dictionary to be sent to the queue.
(module (function_definition (function_name_fromOctetString) function_name_fromOctetString (parameters (identifier_cls) identifier_cls (identifier_value) identifier_value (default_parameter (identifier_internalFormat) identifier_internalFormat (False) False )default_parameter (default_parameter (identifier_prepend) identifier_prepend (None) None )default_parameter (default_parameter (identifier_padding) identifier_padding (integer_0) integer_0 )default_parameter )parameters (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (call (identifier_SizedInteger) identifier_SizedInteger (argument_list (binary_operator (call (attribute (identifier_integer) identifier_integer (identifier_from_bytes) identifier_from_bytes )attribute (argument_list (identifier_value) identifier_value )argument_list )call (identifier_padding) identifier_padding )binary_operator )argument_list )call (identifier_setBitLength) identifier_setBitLength )attribute (argument_list (binary_operator (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_value) identifier_value )argument_list )call (integer_8) integer_8 )binary_operator (identifier_padding) identifier_padding )binary_operator )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_prepend) identifier_prepend (None) None )comparison_operator (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (call (identifier_SizedInteger) identifier_SizedInteger (argument_list (binary_operator (parenthesized_expression (binary_operator (call (identifier_SizedInteger) identifier_SizedInteger (argument_list (identifier_prepend) identifier_prepend )argument_list )call (call (identifier_len) identifier_len (argument_list (identifier_value) identifier_value )argument_list )call )binary_operator )parenthesized_expression (identifier_value) identifier_value )binary_operator )argument_list )call (identifier_setBitLength) identifier_setBitLength )attribute (argument_list (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_prepend) identifier_prepend )argument_list )call (call (identifier_len) identifier_len (argument_list (identifier_value) identifier_value )argument_list )call )binary_operator )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (not_operator (identifier_internalFormat) identifier_internalFormat )not_operator (block (expression_statement (assignment (identifier_value) identifier_value (call (identifier_cls) identifier_cls (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (identifier_value) identifier_value )return_statement )block )function_definition )module
Create a |ASN.1| object initialized from a string. Parameters ---------- value: :class:`str` (Py2) or :class:`bytes` (Py3) Text string like '\\\\x01\\\\xff' (Py2) or b'\\\\x01\\\\xff' (Py3)
(module (function_definition (function_name_release) function_name_release (parameters (identifier_ctx) identifier_ctx (default_parameter (identifier_deploy) identifier_deploy (False) False )default_parameter (default_parameter (identifier_test) identifier_test (False) False )default_parameter (default_parameter (identifier_version) identifier_version (string_'') string_'' )default_parameter )parameters (block (if_statement (identifier_test) identifier_test (block (expression_statement (call (identifier_run) identifier_run (argument_list (string_"python setup.py check") string_"python setup.py check" )argument_list )call )expression_statement (expression_statement (call (identifier_run) identifier_run (argument_list (string_"python setup.py register sdist upload --dry-run") string_"python setup.py register sdist upload --dry-run" )argument_list )call )expression_statement )block )if_statement (if_statement (identifier_deploy) identifier_deploy (block (expression_statement (call (identifier_run) identifier_run (argument_list (string_"python setup.py check") string_"python setup.py check" )argument_list )call )expression_statement (if_statement (identifier_version) identifier_version (block (expression_statement (call (identifier_run) identifier_run (argument_list (string_"git checkout master") string_"git checkout master" )argument_list )call )expression_statement (expression_statement (call (identifier_run) identifier_run (argument_list (call (attribute (string_"git tag -a v{ver} -m 'v{ver}'") string_"git tag -a v{ver} -m 'v{ver}'" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_ver) identifier_ver (identifier_version) identifier_version )keyword_argument )argument_list )call )argument_list )call )expression_statement (expression_statement (call (identifier_run) identifier_run (argument_list (string_"git push") string_"git push" )argument_list )call )expression_statement (expression_statement (call (identifier_run) identifier_run (argument_list (string_"git push origin --tags") string_"git push origin --tags" )argument_list )call )expression_statement (expression_statement (call (identifier_run) identifier_run (argument_list (string_"python setup.py sdist bdist_wheel") string_"python setup.py sdist bdist_wheel" )argument_list )call )expression_statement (expression_statement (call (identifier_run) identifier_run (argument_list (string_"twine upload --skip-existing dist/*") string_"twine upload --skip-existing dist/*" )argument_list )call )expression_statement )block )if_statement )block (else_clause (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Have you updated the version?") string_"- Have you updated the version?" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Have you updated CHANGELOG.md, README.md, and AUTHORS.md?") string_"- Have you updated CHANGELOG.md, README.md, and AUTHORS.md?" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Have you fixed any last minute bugs?") string_"- Have you fixed any last minute bugs?" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Have you merged changes for release into the master branch?") string_"- Have you merged changes for release into the master branch?" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"If you answered yes to all of the above questions,") string_"If you answered yes to all of the above questions," )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"then run `inv release --deploy -vX.YY.ZZ` to:") string_"then run `inv release --deploy -vX.YY.ZZ` to:" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Checkout master") string_"- Checkout master" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Tag the git release with provided vX.YY.ZZ version") string_"- Tag the git release with provided vX.YY.ZZ version" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"- Push the master branch and tags to repo") string_"- Push the master branch and tags to repo" )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Tag release, run Travis-CI, and deploy to PyPI
(module (function_definition (function_name_dumps) function_name_dumps (parameters (identifier_d) identifier_d (default_parameter (identifier_indent) identifier_indent (integer_4) integer_4 )default_parameter (default_parameter (identifier_spacer) identifier_spacer (string_" ") string_" " )default_parameter (default_parameter (identifier_quote) identifier_quote (string_'"') string_'"' )default_parameter (default_parameter (identifier_newlinechar) identifier_newlinechar (string_"\n") string_"\n" )default_parameter (default_parameter (identifier_end_comment) identifier_end_comment (False) False )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (identifier__pprint) identifier__pprint (argument_list (identifier_d) identifier_d (identifier_indent) identifier_indent (identifier_spacer) identifier_spacer (identifier_quote) identifier_quote (identifier_newlinechar) identifier_newlinechar (identifier_end_comment) identifier_end_comment (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Output a Mapfile dictionary as a string Parameters ---------- d: dict A Python dictionary based on the the mappyfile schema indent: int The number of ``spacer`` characters to indent structures in the Mapfile spacer: string The character to use for indenting structures in the Mapfile. Typically spaces or tab characters (``\\t``) quote: string The quote character to use in the Mapfile (double or single quotes) newlinechar: string The character used to insert newlines in the Mapfile end_comment: bool Add a comment with the block type at each closing END statement e.g. END # MAP Returns ------- string The Mapfile as a string Example ------- To open a Mapfile from a string, and then print it back out as a string using tabs:: s = '''MAP NAME "TEST" END''' d = mappyfile.loads(s) print(mappyfile.dumps(d, indent=1, spacer="\\t"))
(module (function_definition (function_name_collect_publications) function_name_collect_publications (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_pubs) identifier_pubs (call (identifier_list) identifier_list (argument_list (attribute (identifier_self) identifier_self (identifier_sub_publications) identifier_sub_publications )attribute )argument_list )call )assignment )expression_statement (for_statement (identifier_sub_tree) identifier_sub_tree (attribute (identifier_self) identifier_self (identifier_sub_trees) identifier_sub_trees )attribute (block (expression_statement (call (attribute (identifier_pubs) identifier_pubs (identifier_extend) identifier_extend )attribute (argument_list (call (attribute (identifier_sub_tree) identifier_sub_tree (identifier_collect_publications) identifier_collect_publications )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_pubs) identifier_pubs )return_statement )block )function_definition )module
Recursively collect list of all publications referenced in this tree and all sub-trees. Returns: list: List of UUID strings.
(module (function_definition (function_name__combine_nt_vals) function_name__combine_nt_vals (parameters (identifier_lst0_lstn) identifier_lst0_lstn (identifier_flds) identifier_flds (identifier_dflt_null) identifier_dflt_null )parameters (block (expression_statement (assignment (identifier_vals) identifier_vals (list )list )assignment )expression_statement (for_statement (identifier_fld) identifier_fld (identifier_flds) identifier_flds (block (expression_statement (assignment (identifier_fld_seen) identifier_fld_seen (False) False )assignment )expression_statement (for_statement (identifier_nt_curr) identifier_nt_curr (identifier_lst0_lstn) identifier_lst0_lstn (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_nt_curr) identifier_nt_curr (identifier_fld) identifier_fld )argument_list )call (block (expression_statement (call (attribute (identifier_vals) identifier_vals (identifier_append) identifier_append )attribute (argument_list (call (identifier_getattr) identifier_getattr (argument_list (identifier_nt_curr) identifier_nt_curr (identifier_fld) identifier_fld )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_fld_seen) identifier_fld_seen (True) True )assignment )expression_statement (break_statement )break_statement )block )if_statement )block )for_statement (if_statement (comparison_operator (identifier_fld_seen) identifier_fld_seen (False) False )comparison_operator (block (expression_statement (call (attribute (identifier_vals) identifier_vals (identifier_append) identifier_append )attribute (argument_list (identifier_dflt_null) identifier_dflt_null )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (identifier_vals) identifier_vals )return_statement )block )function_definition )module
Given a list of lists of nts, return a single namedtuple.
(module (function_definition (function_name_value) function_name_value (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_result) identifier_result (attribute (identifier_self) identifier_self (identifier__value) identifier__value )attribute )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_result) identifier_result (None) None )comparison_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier__svalue) identifier__svalue )attribute (None) None )comparison_operator )boolean_operator (block (try_statement (block (expression_statement (assignment (identifier_result) identifier_result (assignment (attribute (identifier_self) identifier_self (identifier__value) identifier__value )attribute (call (attribute (identifier_self) identifier_self (identifier_resolve) identifier_resolve )attribute (argument_list )argument_list )call )assignment )assignment )expression_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (identifier_reraise) identifier_reraise (argument_list (attribute (identifier_Parameter) identifier_Parameter (identifier_Error) identifier_Error )attribute (call (attribute (identifier_Parameter) identifier_Parameter (identifier_Error) identifier_Error )attribute (argument_list (string_'Call the method "resolve" first.') string_'Call the method "resolve" first.' )argument_list )call )argument_list )call )expression_statement )block )except_clause )try_statement )block )if_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Get parameter value. If this cached value is None and this serialized value is not None, calculate the new value from the serialized one. :return: parameter value. :raises: TypeError if serialized value is not an instance of self ptype . ParserError if parsing step raised an error.
(module (function_definition (function_name_rsum) function_name_rsum (parameters (identifier_self) identifier_self (typed_parameter (identifier_time_period) identifier_time_period (type (identifier_str) identifier_str )type )typed_parameter (typed_default_parameter (identifier_num_col) identifier_num_col (type (identifier_str) identifier_str )type (string_"Number") string_"Number" )typed_default_parameter (typed_default_parameter (identifier_dateindex) identifier_dateindex (type (identifier_str) identifier_str )type (None) None )typed_default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_df) identifier_df (call (attribute (identifier_self) identifier_self (identifier__resample_) identifier__resample_ )attribute (argument_list (string_"sum") string_"sum" (identifier_time_period) identifier_time_period (identifier_num_col) identifier_num_col (identifier_dateindex) identifier_dateindex )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_df) identifier_df )attribute (identifier_df) identifier_df )assignment )expression_statement (if_statement (comparison_operator (identifier_df) identifier_df (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_err) identifier_err )attribute (argument_list (string_"Can not sum data") string_"Can not sum data" )argument_list )call )expression_statement )block )if_statement )block (except_clause (as_pattern (identifier_Exceptions) identifier_Exceptions (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_err) identifier_err )attribute (argument_list (identifier_e) identifier_e (string_"Can not sum data") string_"Can not sum data" )argument_list )call )expression_statement )block )except_clause )try_statement )block )function_definition )module
Resample and add a sum the main dataframe to a time period :param time_period: unit + period: periods are Y, M, D, H, Min, S :param time_period: str :param num_col: number of the new column, defaults to "Number" :param num_col: str, optional :param dateindex: column name to use as date index, defaults to None :param dateindex: str, optional :example: ``ds.rsum("1D")``
(module (function_definition (function_name__seek_to_extent) function_name__seek_to_extent (parameters (identifier_self) identifier_self (identifier_extent) identifier_extent )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__cdfp) identifier__cdfp )attribute (identifier_seek) identifier_seek )attribute (argument_list (binary_operator (identifier_extent) identifier_extent (call (attribute (attribute (identifier_self) identifier_self (identifier_pvd) identifier_pvd )attribute (identifier_logical_block_size) identifier_logical_block_size )attribute (argument_list )argument_list )call )binary_operator )argument_list )call )expression_statement )block )function_definition )module
An internal method to seek to a particular extent on the input ISO. Parameters: extent - The extent to seek to. Returns: Nothing.
(module (function_definition (function_name_port_manager) function_name_port_manager (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__port_manager) identifier__port_manager )attribute (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__port_manager) identifier__port_manager )attribute (call (attribute (identifier_PortManager) identifier_PortManager (identifier_instance) identifier_instance )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (attribute (identifier_self) identifier_self (identifier__port_manager) identifier__port_manager )attribute )return_statement )block )function_definition )module
Returns the port manager. :returns: Port manager
(module (function_definition (function_name_pack) function_name_pack (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_headers) identifier_headers )attribute (identifier_setdefault) identifier_setdefault )attribute (argument_list (string_'content-length') string_'content-length' (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_body) identifier_body )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_headerparts) identifier_headerparts (generator_expression (call (attribute (string_"{0}:{1}\n") string_"{0}:{1}\n" (identifier_format) identifier_format )attribute (argument_list (identifier_key) identifier_key (identifier_value) identifier_value )argument_list )call (for_in_clause (pattern_list (identifier_key) identifier_key (identifier_value) identifier_value )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_headers) identifier_headers )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )generator_expression )assignment )expression_statement (return_statement (binary_operator (binary_operator (call (attribute (identifier_six) identifier_six (identifier_b) identifier_b )attribute (argument_list (call (attribute (string_"{0}\n{1}\n") string_"{0}\n{1}\n" (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_cmd) identifier_cmd )attribute (call (attribute (string_"") string_"" (identifier_join) identifier_join )attribute (argument_list (identifier_headerparts) identifier_headerparts )argument_list )call )argument_list )call )argument_list )call (parenthesized_expression (conditional_expression (attribute (identifier_self) identifier_self (identifier_body) identifier_body )attribute (call (identifier_isinstance) identifier_isinstance (argument_list (attribute (identifier_self) identifier_self (identifier_body) identifier_body )attribute (attribute (identifier_six) identifier_six (identifier_binary_type) identifier_binary_type )attribute )argument_list )call (call (attribute (identifier_six) identifier_six (identifier_b) identifier_b )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_body) identifier_body )attribute )argument_list )call )conditional_expression )parenthesized_expression )binary_operator (call (attribute (identifier_six) identifier_six (identifier_b) identifier_b )attribute (argument_list (string_'\x00') string_'\x00' )argument_list )call )binary_operator )return_statement )block )function_definition )module
Create a string representation from object state. @return: The string (bytes) for this stomp frame. @rtype: C{str}
(module (function_definition (function_name_devices) function_name_devices (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_devices) identifier_devices (list )list )assignment )expression_statement (expression_statement (assignment (identifier_count) identifier_count (call (attribute (attribute (identifier_self) identifier_self (identifier_lib) identifier_lib )attribute (identifier_tdGetNumberOfDevices) identifier_tdGetNumberOfDevices )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_i) identifier_i (call (identifier_range) identifier_range (argument_list (identifier_count) identifier_count )argument_list )call (block (expression_statement (assignment (identifier_device) identifier_device (call (identifier_DeviceFactory) identifier_DeviceFactory (argument_list (call (attribute (attribute (identifier_self) identifier_self (identifier_lib) identifier_lib )attribute (identifier_tdGetDeviceId) identifier_tdGetDeviceId )attribute (argument_list (identifier_i) identifier_i )argument_list )call (keyword_argument (identifier_lib) identifier_lib (attribute (identifier_self) identifier_self (identifier_lib) identifier_lib )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_devices) identifier_devices (identifier_append) identifier_append )attribute (argument_list (identifier_device) identifier_device )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_devices) identifier_devices )return_statement )block )function_definition )module
Return all known devices. :return: list of :class:`Device` or :class:`DeviceGroup` instances.
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__initialize_run) identifier__initialize_run )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_stimuli) identifier_stimuli (call (attribute (attribute (identifier_self) identifier_self (identifier_protocol_model) identifier_protocol_model )attribute (identifier_allTests) identifier_allTests )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_acq_thread) identifier_acq_thread )attribute (call (attribute (identifier_threading) identifier_threading (identifier_Thread) identifier_Thread )attribute (argument_list (keyword_argument (identifier_target) identifier_target (attribute (identifier_self) identifier_self (identifier__worker) identifier__worker )attribute )keyword_argument (keyword_argument (identifier_args) identifier_args (tuple (identifier_stimuli) identifier_stimuli )tuple )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier_save_data) identifier_save_data )attribute (block (expression_statement (assignment (identifier_info) identifier_info (dictionary (pair (string_'calibration_used') string_'calibration_used' (attribute (identifier_self) identifier_self (identifier_calname) identifier_calname )attribute )pair (pair (string_'calibration_range') string_'calibration_range' (attribute (identifier_self) identifier_self (identifier_cal_frange) identifier_cal_frange )attribute )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_datafile) identifier_datafile )attribute (identifier_set_metadata) identifier_set_metadata )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_current_dataset_name) identifier_current_dataset_name )attribute (identifier_info) identifier_info )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_start_time) identifier_start_time )attribute (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_last_tick) identifier_last_tick )attribute (binary_operator (attribute (identifier_self) identifier_self (identifier_start_time) identifier_start_time )attribute (parenthesized_expression (binary_operator (attribute (identifier_self) identifier_self (identifier_interval) identifier_interval )attribute (integer_1000) integer_1000 )binary_operator )parenthesized_expression )binary_operator )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_acq_thread) identifier_acq_thread )attribute (identifier_start) identifier_start )attribute (argument_list )argument_list )call )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_acq_thread) identifier_acq_thread )attribute )return_statement )block )function_definition )module
Runs the acquisition
(module (function_definition (function_name_get_legacy_storage_path) function_name_get_legacy_storage_path (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_config_dir) identifier_config_dir (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_py3_wrapper) identifier_py3_wrapper )attribute (identifier_config) identifier_config )attribute (identifier_get) identifier_get )attribute (argument_list (string_"i3status_config_path") string_"i3status_config_path" (string_"/tmp") string_"/tmp" )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_storage_path) identifier_storage_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_config_dir) identifier_config_dir (string_"py3status.data") string_"py3status.data" )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_storage_path) identifier_storage_path )argument_list )call (block (return_statement (identifier_storage_path) identifier_storage_path )return_statement )block (else_clause (block (return_statement (None) None )return_statement )block )else_clause )if_statement )block )function_definition )module
Detect and return existing legacy storage path.
(module (function_definition (function_name__get_rest_doc) function_name__get_rest_doc (parameters (identifier_self) identifier_self (identifier_request) identifier_request (identifier_start_response) identifier_start_response )parameters (block (expression_statement (assignment (identifier_api) identifier_api (subscript (attribute (identifier_request) identifier_request (identifier_body_json) identifier_body_json )attribute (string_'api') string_'api' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_version) identifier_version (subscript (attribute (identifier_request) identifier_request (identifier_body_json) identifier_body_json )attribute (string_'version') string_'version' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_generator) identifier_generator (call (attribute (identifier_discovery_generator) identifier_discovery_generator (identifier_DiscoveryGenerator) identifier_DiscoveryGenerator )attribute (argument_list (keyword_argument (identifier_request) identifier_request (identifier_request) identifier_request )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_services) identifier_services (list_comprehension (identifier_s) identifier_s (for_in_clause (identifier_s) identifier_s (attribute (attribute (identifier_self) identifier_self (identifier__backend) identifier__backend )attribute (identifier_api_services) identifier_api_services )attribute )for_in_clause (if_clause (boolean_operator (comparison_operator (attribute (attribute (identifier_s) identifier_s (identifier_api_info) identifier_api_info )attribute (identifier_name) identifier_name )attribute (identifier_api) identifier_api )comparison_operator (comparison_operator (attribute (attribute (identifier_s) identifier_s (identifier_api_info) identifier_api_info )attribute (identifier_api_version) identifier_api_version )attribute (identifier_version) identifier_version )comparison_operator )boolean_operator )if_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_doc) identifier_doc (call (attribute (identifier_generator) identifier_generator (identifier_pretty_print_config_to_json) identifier_pretty_print_config_to_json )attribute (argument_list (identifier_services) identifier_services )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_doc) identifier_doc )not_operator (block (expression_statement (assignment (identifier_error_msg) identifier_error_msg (binary_operator (parenthesized_expression (concatenated_string (string_'Failed to convert .api to discovery doc for ') string_'Failed to convert .api to discovery doc for ' (string_'version %s of api %s') string_'version %s of api %s' )concatenated_string )parenthesized_expression (tuple (identifier_version) identifier_version (identifier_api) identifier_api )tuple )binary_operator )assignment )expression_statement (expression_statement (call (attribute (identifier__logger) identifier__logger (identifier_error) identifier_error )attribute (argument_list (string_'%s') string_'%s' (identifier_error_msg) identifier_error_msg )argument_list )call )expression_statement (return_statement (call (attribute (identifier_util) identifier_util (identifier_send_wsgi_error_response) identifier_send_wsgi_error_response )attribute (argument_list (identifier_error_msg) identifier_error_msg (identifier_start_response) identifier_start_response )argument_list )call )return_statement )block )if_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__send_success_response) identifier__send_success_response )attribute (argument_list (identifier_doc) identifier_doc (identifier_start_response) identifier_start_response )argument_list )call )return_statement )block )function_definition )module
Sends back HTTP response with API directory. This calls start_response and returns the response body. It will return the discovery doc for the requested api/version. Args: request: An ApiRequest, the transformed request sent to the Discovery API. start_response: A function with semantics defined in PEP-333. Returns: A string, the response body.
(module (function_definition (function_name_set_status) function_name_set_status (parameters (identifier_self) identifier_self (identifier_status) identifier_status )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_status) identifier_status )attribute (identifier_status) identifier_status )assignment )expression_statement (for_statement (identifier_callback) identifier_callback (attribute (identifier_self) identifier_self (identifier__update_status_callbacks) identifier__update_status_callbacks )attribute (block (expression_statement (call (identifier_callback) identifier_callback (argument_list (identifier_self) identifier_self )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Save the new status and call all defined callbacks
(module (function_definition (function_name___plain_bfs) function_name___plain_bfs (parameters (identifier_adj) identifier_adj (identifier_source) identifier_source )parameters (block (expression_statement (assignment (identifier_seen) identifier_seen (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_nextlevel) identifier_nextlevel (set (identifier_source) identifier_source )set )assignment )expression_statement (while_statement (identifier_nextlevel) identifier_nextlevel (block (expression_statement (assignment (identifier_thislevel) identifier_thislevel (identifier_nextlevel) identifier_nextlevel )assignment )expression_statement (expression_statement (assignment (identifier_nextlevel) identifier_nextlevel (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_v) identifier_v (identifier_thislevel) identifier_thislevel (block (if_statement (comparison_operator (identifier_v) identifier_v (identifier_seen) identifier_seen )comparison_operator (block (expression_statement (yield (identifier_v) identifier_v )yield )expression_statement (expression_statement (call (attribute (identifier_seen) identifier_seen (identifier_add) identifier_add )attribute (argument_list (identifier_v) identifier_v )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_nextlevel) identifier_nextlevel (identifier_update) identifier_update )attribute (argument_list (subscript (identifier_adj) identifier_adj (identifier_v) identifier_v )subscript )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )while_statement )block )function_definition )module
modified NX fast BFS node generator
(module (function_definition (function_name_compose_capability) function_name_compose_capability (parameters (identifier_base) identifier_base (list_splat_pattern (identifier_classes) identifier_classes )list_splat_pattern )parameters (block (if_statement (identifier__debug) identifier__debug (block (expression_statement (call (attribute (identifier_compose_capability) identifier_compose_capability (identifier__debug) identifier__debug )attribute (argument_list (string_"compose_capability %r %r") string_"compose_capability %r %r" (identifier_base) identifier_base (identifier_classes) identifier_classes )argument_list )call )expression_statement )block )if_statement (if_statement (not_operator (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_base) identifier_base (identifier_Collector) identifier_Collector )argument_list )call )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (string_"base must be a subclass of Collector") string_"base must be a subclass of Collector" )argument_list )call )raise_statement )block )if_statement (for_statement (identifier_cls) identifier_cls (identifier_classes) identifier_classes (block (if_statement (not_operator (call (identifier_issubclass) identifier_issubclass (argument_list (identifier_cls) identifier_cls (identifier_Capability) identifier_Capability )argument_list )call )not_operator (block (raise_statement (call (identifier_TypeError) identifier_TypeError (argument_list (binary_operator (string_"%s is not a Capability subclass") string_"%s is not a Capability subclass" (tuple (identifier_cls) identifier_cls )tuple )binary_operator )argument_list )call )raise_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_bases) identifier_bases (binary_operator (tuple (identifier_base) identifier_base )tuple (identifier_classes) identifier_classes )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_name) identifier_name (attribute (identifier_base) identifier_base (identifier___name__) identifier___name__ )attribute )assignment )expression_statement (for_statement (identifier_cls) identifier_cls (identifier_classes) identifier_classes (block (expression_statement (augmented_assignment (identifier_name) identifier_name (binary_operator (string_'+') string_'+' (attribute (identifier_cls) identifier_cls (identifier___name__) identifier___name__ )attribute )binary_operator )augmented_assignment )expression_statement )block )for_statement (return_statement (call (identifier_type) identifier_type (argument_list (identifier_name) identifier_name (identifier_bases) identifier_bases (dictionary )dictionary )argument_list )call )return_statement )block )function_definition )module
Create a new class starting with the base and adding capabilities.
(module (function_definition (function_name_tableNames) function_name_tableNames (parameters (identifier_self) identifier_self (default_parameter (identifier_dbName) identifier_dbName (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_dbName) identifier_dbName (None) None )comparison_operator (block (return_statement (list_comprehension (identifier_name) identifier_name (for_in_clause (identifier_name) identifier_name (call (attribute (attribute (identifier_self) identifier_self (identifier__ssql_ctx) identifier__ssql_ctx )attribute (identifier_tableNames) identifier_tableNames )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )return_statement )block (else_clause (block (return_statement (list_comprehension (identifier_name) identifier_name (for_in_clause (identifier_name) identifier_name (call (attribute (attribute (identifier_self) identifier_self (identifier__ssql_ctx) identifier__ssql_ctx )attribute (identifier_tableNames) identifier_tableNames )attribute (argument_list (identifier_dbName) identifier_dbName )argument_list )call )for_in_clause )list_comprehension )return_statement )block )else_clause )if_statement )block )function_definition )module
Returns a list of names of tables in the database ``dbName``. :param dbName: string, name of the database to use. Default to the current database. :return: list of table names, in string >>> sqlContext.registerDataFrameAsTable(df, "table1") >>> "table1" in sqlContext.tableNames() True >>> "table1" in sqlContext.tableNames("default") True
(module (function_definition (function_name_on) function_name_on (parameters (identifier_self) identifier_self (default_parameter (identifier_val) identifier_val (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_val) identifier_val (False) False )comparison_operator (block (raise_statement (call (identifier_ParameterError) identifier_ParameterError (argument_list (concatenated_string (string_"Turning the ValuedParameter on with value ") string_"Turning the ValuedParameter on with value " (string_"False is the same as turning it off. Use ") string_"False is the same as turning it off. Use " (string_"another value.") string_"another value." )concatenated_string )argument_list )call )raise_statement )block (elif_clause (attribute (identifier_self) identifier_self (identifier_IsPath) identifier_IsPath )attribute (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_Value) identifier_Value )attribute (call (identifier_FilePath) identifier_FilePath (argument_list (identifier_val) identifier_val )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_Value) identifier_Value )attribute (identifier_val) identifier_val )assignment )expression_statement )block )else_clause )if_statement )block )function_definition )module
Turns the MixedParameter ON by setting its Value to val An attempt to turn the parameter on with value 'False' will result in an error, since this is the same as turning the parameter off. Turning the MixedParameter ON without a value or with value 'None' will let the parameter behave as a flag.
(module (function_definition (function_name_add_paths_argument) function_name_add_paths_argument (parameters (identifier_cls) identifier_cls (identifier_group) identifier_group (identifier_argname) identifier_argname (default_parameter (identifier_dest) identifier_dest (None) None )default_parameter (default_parameter (identifier_help_) identifier_help_ (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_prefixed) identifier_prefixed (binary_operator (string_'%s-%s') string_'%s-%s' (tuple (attribute (identifier_cls) identifier_cls (identifier_argument_prefix) identifier_argument_prefix )attribute (identifier_argname) identifier_argname )tuple )binary_operator )assignment )expression_statement (if_statement (comparison_operator (identifier_dest) identifier_dest (None) None )comparison_operator (block (expression_statement (assignment (identifier_dest) identifier_dest (call (attribute (identifier_prefixed) identifier_prefixed (identifier_replace) identifier_replace )attribute (argument_list (string_'-') string_'-' (string_'_') string_'_' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_final_dest) identifier_final_dest (subscript (identifier_dest) identifier_dest (slice (binary_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_cls) identifier_cls (identifier_argument_prefix) identifier_argument_prefix )attribute )argument_list )call (integer_1) integer_1 )binary_operator (colon) colon )slice )subscript )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_final_dest) identifier_final_dest (identifier_dest) identifier_dest )assignment )expression_statement (expression_statement (assignment (identifier_dest) identifier_dest (binary_operator (string_'%s_%s') string_'%s_%s' (tuple (attribute (identifier_cls) identifier_cls (identifier_argument_prefix) identifier_argument_prefix )attribute (identifier_dest) identifier_dest )tuple )binary_operator )assignment )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_group) identifier_group (identifier_add_argument) identifier_add_argument )attribute (argument_list (binary_operator (string_'--%s') string_'--%s' (identifier_prefixed) identifier_prefixed )binary_operator (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_dest) identifier_dest (identifier_dest) identifier_dest )keyword_argument (keyword_argument (identifier_help) identifier_help (identifier_help_) identifier_help_ )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (subscript (attribute (identifier_cls) identifier_cls (identifier_paths_arguments) identifier_paths_arguments )attribute (identifier_dest) identifier_dest )subscript (identifier_final_dest) identifier_final_dest )assignment )expression_statement )block )function_definition )module
Subclasses may call this to expose a paths argument. Args: group: arparse.ArgumentGroup, the extension argument group argname: str, the name of the argument, will be namespaced. dest: str, similar to the `dest` argument of `argparse.ArgumentParser.add_argument`, will be namespaced. help_: str, similar to the `help` argument of `argparse.ArgumentParser.add_argument`.
(module (function_definition (function_name_items) function_name_items (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_request) identifier_request (call (identifier_get) identifier_get (argument_list (call (identifier_str) identifier_str (argument_list (attribute (identifier_self) identifier_self (identifier_url) identifier_url )attribute )argument_list )call (keyword_argument (identifier_headers) identifier_headers (dictionary (pair (string_'User-Agent') string_'User-Agent' (string_"Magic Browser") string_"Magic Browser" )pair (pair (string_"origin_req_host") string_"origin_req_host" (string_"thepiratebay.se") string_"thepiratebay.se" )pair )dictionary )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_root) identifier_root (call (attribute (identifier_html) identifier_html (identifier_fromstring) identifier_fromstring )attribute (argument_list (attribute (identifier_request) identifier_request (identifier_text) identifier_text )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_items) identifier_items (list_comprehension (call (attribute (identifier_self) identifier_self (identifier__build_torrent) identifier__build_torrent )attribute (argument_list (identifier_row) identifier_row )argument_list )call (for_in_clause (identifier_row) identifier_row (call (attribute (identifier_self) identifier_self (identifier__get_torrent_rows) identifier__get_torrent_rows )attribute (argument_list (identifier_root) identifier_root )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (for_statement (identifier_item) identifier_item (identifier_items) identifier_items (block (expression_statement (yield (identifier_item) identifier_item )yield )expression_statement )block )for_statement )block )function_definition )module
Request URL and parse response. Yield a ``Torrent`` for every torrent on page.
(module (function_definition (function_name_local_scope) function_name_local_scope (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_scope) identifier_scope )attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_scope) identifier_scope )attribute (identifier_new_child) identifier_new_child )attribute (argument_list )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (yield (attribute (identifier_self) identifier_self (identifier_scope) identifier_scope )attribute )yield )expression_statement )block (finally_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_scope) identifier_scope )attribute (attribute (attribute (identifier_self) identifier_self (identifier_scope) identifier_scope )attribute (identifier_parents) identifier_parents )attribute )assignment )expression_statement )block )finally_clause )try_statement )block )function_definition )module
Assign symbols to local variables.
(module (function_definition (function_name_main) function_name_main (parameters (identifier_argv) identifier_argv )parameters (block (expression_statement (assignment (identifier_p) identifier_p (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentParser) identifier_ArgumentParser )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'-s') string_'-s' (string_'--scope') string_'--scope' (keyword_argument (identifier_nargs) identifier_nargs (string_'+') string_'+' )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'-o') string_'-o' (string_'--oauth-service') string_'--oauth-service' (keyword_argument (identifier_default) identifier_default (string_'google') string_'google' )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'-i') string_'-i' (string_'--client-id') string_'--client-id' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'-x') string_'-x' (string_'--client-secret') string_'--client-secret' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'-r') string_'-r' (string_'--redirect-uri') string_'--redirect-uri' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'-f') string_'-f' (string_'--client-secrets') string_'--client-secrets' )argument_list )call )expression_statement (expression_statement (assignment (identifier_args) identifier_args (call (attribute (identifier_p) identifier_p (identifier_parse_args) identifier_parse_args )attribute (argument_list (identifier_argv) identifier_argv )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_client_args) identifier_client_args (tuple (attribute (identifier_args) identifier_args (identifier_client_id) identifier_client_id )attribute (attribute (identifier_args) identifier_args (identifier_client_secret) identifier_client_secret )attribute (attribute (identifier_args) identifier_args (identifier_client_id) identifier_client_id )attribute )tuple )assignment )expression_statement (if_statement (boolean_operator (call (identifier_any) identifier_any (argument_list (identifier_client_args) identifier_client_args )argument_list )call (not_operator (call (identifier_all) identifier_all (argument_list (identifier_client_args) identifier_client_args )argument_list )call )not_operator )boolean_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (concatenated_string (string_'Must provide none of client-id, client-secret and redirect-uri;') string_'Must provide none of client-id, client-secret and redirect-uri;' (string_' or all of them.') string_' or all of them.' )concatenated_string )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_print_usage) identifier_print_usage )attribute (argument_list )argument_list )call )expression_statement (return_statement (integer_1) integer_1 )return_statement )block )if_statement (print_statement (attribute (identifier_args) identifier_args (identifier_scope) identifier_scope )attribute )print_statement (if_statement (not_operator (attribute (identifier_args) identifier_args (identifier_scope) identifier_scope )attribute )not_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_'Scope must be provided.') string_'Scope must be provided.' )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_print_usage) identifier_print_usage )attribute (argument_list )argument_list )call )expression_statement (return_statement (integer_1) integer_1 )return_statement )block )if_statement (expression_statement (assignment (identifier_config) identifier_config (call (identifier_WizardClientConfig) identifier_WizardClientConfig (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_config) identifier_config (identifier_scope) identifier_scope )attribute (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_scope) identifier_scope )attribute )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (subscript (call (identifier_run_local) identifier_run_local (argument_list (call (identifier_UserOAuth2) identifier_UserOAuth2 (argument_list (identifier_config) identifier_config )argument_list )call )argument_list )call (string_'access_token') string_'access_token' )subscript )argument_list )call )expression_statement (return_statement (integer_0) integer_0 )return_statement )block )function_definition )module
Entry point for command line script to perform OAuth 2.0.
(module (function_definition (function_name_compute_hash) function_name_compute_hash (parameters (identifier_func) identifier_func (identifier_string) identifier_string )parameters (block (expression_statement (assignment (identifier_h) identifier_h (call (identifier_func) identifier_func (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_h) identifier_h (identifier_update) identifier_update )attribute (argument_list (identifier_string) identifier_string )argument_list )call )expression_statement (return_statement (call (attribute (identifier_h) identifier_h (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
compute hash of string using given hash function
(module (function_definition (function_name__split_repo_str) function_name__split_repo_str (parameters (identifier_repo) identifier_repo )parameters (block (expression_statement (assignment (identifier_split) identifier_split (call (attribute (identifier_sourceslist) identifier_sourceslist (identifier_SourceEntry) identifier_SourceEntry )attribute (argument_list (identifier_repo) identifier_repo )argument_list )call )assignment )expression_statement (return_statement (expression_list (attribute (identifier_split) identifier_split (identifier_type) identifier_type )attribute (attribute (identifier_split) identifier_split (identifier_architectures) identifier_architectures )attribute (attribute (identifier_split) identifier_split (identifier_uri) identifier_uri )attribute (attribute (identifier_split) identifier_split (identifier_dist) identifier_dist )attribute (attribute (identifier_split) identifier_split (identifier_comps) identifier_comps )attribute )expression_list )return_statement )block )function_definition )module
Return APT source entry as a tuple.
(module (function_definition (function_name_intersect) function_name_intersect (parameters (identifier_self) identifier_self (identifier_range_) identifier_range_ )parameters (block (expression_statement (augmented_assignment (attribute (attribute (identifier_self) identifier_self (identifier_solver) identifier_solver )attribute (identifier_intersection_broad_tests_count) identifier_intersection_broad_tests_count )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (if_statement (call (attribute (identifier_range_) identifier_range_ (identifier_is_any) identifier_is_any )attribute (argument_list )argument_list )call (block (return_statement (identifier_self) identifier_self )return_statement )block )if_statement (if_statement (attribute (attribute (identifier_self) identifier_self (identifier_solver) identifier_solver )attribute (identifier_optimised) identifier_optimised )attribute (block (if_statement (comparison_operator (identifier_range_) identifier_range_ (attribute (identifier_self) identifier_self (identifier_been_intersected_with) identifier_been_intersected_with )attribute )comparison_operator (block (return_statement (identifier_self) identifier_self )return_statement )block )if_statement )block )if_statement (if_statement (attribute (identifier_self) identifier_self (identifier_pr) identifier_pr )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_pr) identifier_pr )attribute (identifier_passive) identifier_passive )attribute (argument_list (string_"intersecting %s wrt range '%s'...") string_"intersecting %s wrt range '%s'..." (identifier_self) identifier_self (identifier_range_) identifier_range_ )argument_list )call )expression_statement )block )if_statement (expression_statement (augmented_assignment (attribute (attribute (identifier_self) identifier_self (identifier_solver) identifier_solver )attribute (identifier_intersection_tests_count) identifier_intersection_tests_count )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (with_statement (with_clause (with_item (call (attribute (attribute (identifier_self) identifier_self (identifier_solver) identifier_solver )attribute (identifier_timed) identifier_timed )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_solver) identifier_solver )attribute (identifier_intersection_time) identifier_intersection_time )attribute )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_entries) identifier_entries (list_comprehension (identifier_x) identifier_x (for_in_clause (identifier_x) identifier_x (attribute (identifier_self) identifier_self (identifier_entries) identifier_entries )attribute )for_in_clause (if_clause (comparison_operator (attribute (identifier_x) identifier_x (identifier_version) identifier_version )attribute (identifier_range_) identifier_range_ )comparison_operator )if_clause )list_comprehension )assignment )expression_statement )block )with_statement (if_statement (not_operator (identifier_entries) identifier_entries )not_operator (block (return_statement (None) None )return_statement )block (elif_clause (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_entries) identifier_entries )argument_list )call (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier_entries) identifier_entries )attribute )argument_list )call )comparison_operator (block (expression_statement (assignment (identifier_copy_) identifier_copy_ (call (attribute (identifier_self) identifier_self (identifier__copy) identifier__copy )attribute (argument_list (identifier_entries) identifier_entries )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_copy_) identifier_copy_ (identifier_been_intersected_with) identifier_been_intersected_with )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_range_) identifier_range_ )argument_list )call )expression_statement (return_statement (identifier_copy_) identifier_copy_ )return_statement )block )elif_clause (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_been_intersected_with) identifier_been_intersected_with )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_range_) identifier_range_ )argument_list )call )expression_statement (return_statement (identifier_self) identifier_self )return_statement )block )else_clause )if_statement )block )function_definition )module
Remove variants whose version fall outside of the given range.
(module (function_definition (function_name_unsigned_request) function_name_unsigned_request (parameters (identifier_self) identifier_self (identifier_path) identifier_path (default_parameter (identifier_payload) identifier_payload (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_headers) identifier_headers (dictionary (pair (string_"content-type") string_"content-type" (string_"application/json") string_"application/json" )pair (pair (string_"accept") string_"accept" (string_"application/json") string_"application/json" )pair (pair (string_"X-accept-version") string_"X-accept-version" (string_"2.0.0") string_"2.0.0" )pair )dictionary )assignment )expression_statement (try_statement (block (if_statement (identifier_payload) identifier_payload (block (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_requests) identifier_requests (identifier_post) identifier_post )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_uri) identifier_uri )attribute (identifier_path) identifier_path )binary_operator (keyword_argument (identifier_verify) identifier_verify (attribute (identifier_self) identifier_self (identifier_verify) identifier_verify )attribute )keyword_argument (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 (identifier_headers) identifier_headers )keyword_argument )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_uri) identifier_uri )attribute (identifier_path) identifier_path )binary_operator (keyword_argument (identifier_verify) identifier_verify (attribute (identifier_self) identifier_self (identifier_verify) identifier_verify )attribute )keyword_argument (keyword_argument (identifier_headers) identifier_headers (identifier_headers) identifier_headers )keyword_argument )argument_list )call )assignment )expression_statement )block )else_clause )if_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_pro) identifier_pro )as_pattern_target )as_pattern (block (raise_statement (call (identifier_BitPayConnectionError) identifier_BitPayConnectionError (argument_list (string_'Connection refused') string_'Connection refused' )argument_list )call )raise_statement )block )except_clause )try_statement (return_statement (identifier_response) identifier_response )return_statement )block )function_definition )module
generic bitpay usigned wrapper passing a payload will do a POST, otherwise a GET
(module (function_definition (function_name_command_line_runner) function_name_command_line_runner (parameters )parameters (block (expression_statement (assignment (identifier_parser) identifier_parser (call (identifier_get_parser) identifier_get_parser (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_args) identifier_args (call (identifier_vars) identifier_vars (argument_list (call (attribute (identifier_parser) identifier_parser (identifier_parse_args) identifier_parse_args )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (subscript (identifier_args) identifier_args (string_'version') string_'version' )subscript (block (expression_statement (call (identifier_print) identifier_print (argument_list (identifier___version__) identifier___version__ )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (if_statement (subscript (identifier_args) identifier_args (string_'clear_cache') string_'clear_cache' )subscript (block (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_clear_cache) identifier_clear_cache )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_'Cleared {0}.') string_'Cleared {0}.' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_utils) identifier_utils (identifier_CACHE_DIR) identifier_CACHE_DIR )attribute )argument_list )call )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (if_statement (not_operator (subscript (identifier_args) identifier_args (string_'query') string_'query' )subscript )not_operator (block (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_print_help) identifier_print_help )attribute (argument_list )argument_list )call )expression_statement (return_statement )return_statement )block )if_statement (if_statement (not_operator (call (attribute (identifier_os) identifier_os (identifier_getenv) identifier_getenv )attribute (argument_list (string_'SCRAPE_DISABLE_CACHE') string_'SCRAPE_DISABLE_CACHE' )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_utils) identifier_utils (identifier_enable_cache) identifier_enable_cache )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (if_statement (call (attribute (identifier_os) identifier_os (identifier_getenv) identifier_getenv )attribute (argument_list (string_'SCRAPE_DISABLE_IMGS') string_'SCRAPE_DISABLE_IMGS' )argument_list )call (block (expression_statement (assignment (subscript (identifier_args) identifier_args (string_'no_images') string_'no_images' )subscript (True) True )assignment )expression_statement )block )if_statement (expression_statement (call (identifier_prompt_filetype) identifier_prompt_filetype (argument_list (identifier_args) identifier_args )argument_list )call )expression_statement (expression_statement (call (identifier_prompt_save_images) identifier_prompt_save_images (argument_list (identifier_args) identifier_args )argument_list )call )expression_statement (expression_statement (call (identifier_scrape) identifier_scrape (argument_list (identifier_args) identifier_args )argument_list )call )expression_statement )block )function_definition )module
Handle command-line interaction.
(module (function_definition (function_name__firestore_api) function_name__firestore_api (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier__firestore_api_internal) identifier__firestore_api_internal )attribute (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__firestore_api_internal) identifier__firestore_api_internal )attribute (call (attribute (identifier_firestore_client) identifier_firestore_client (identifier_FirestoreClient) identifier_FirestoreClient )attribute (argument_list (keyword_argument (identifier_credentials) identifier_credentials (attribute (identifier_self) identifier_self (identifier__credentials) identifier__credentials )attribute )keyword_argument )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (attribute (identifier_self) identifier_self (identifier__firestore_api_internal) identifier__firestore_api_internal )attribute )return_statement )block )function_definition )module
Lazy-loading getter GAPIC Firestore API. Returns: ~.gapic.firestore.v1beta1.firestore_client.FirestoreClient: The GAPIC client with the credentials of the current client.
(module (function_definition (function_name_request_halt) function_name_request_halt (parameters (identifier_self) identifier_self (identifier_req) identifier_req (identifier_msg) identifier_msg )parameters (block (expression_statement (assignment (identifier_f) identifier_f (call (identifier_Future) identifier_Future (argument_list )argument_list )call )assignment )expression_statement (decorated_definition (decorator (attribute (identifier_gen) identifier_gen (identifier_coroutine) identifier_coroutine )attribute )decorator (function_definition (function_name__halt) function_name__halt (parameters )parameters (block (expression_statement (call (attribute (identifier_req) identifier_req (identifier_reply) identifier_reply )attribute (argument_list (string_"ok") string_"ok" )argument_list )call )expression_statement (expression_statement (yield (attribute (identifier_gen) identifier_gen (identifier_moment) identifier_moment )attribute )yield )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_stop) identifier_stop )attribute (argument_list (keyword_argument (identifier_timeout) identifier_timeout (None) None )keyword_argument )argument_list )call )expression_statement (raise_statement (identifier_AsyncReply) identifier_AsyncReply )raise_statement )block )function_definition )decorated_definition (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_ioloop) identifier_ioloop )attribute (identifier_add_callback) identifier_add_callback )attribute (argument_list (lambda (call (identifier_chain_future) identifier_chain_future (argument_list (call (identifier__halt) identifier__halt (argument_list )argument_list )call (identifier_f) identifier_f )argument_list )call )lambda )argument_list )call )expression_statement (return_statement (identifier_f) identifier_f )return_statement )block )function_definition )module
Halt the device server. Returns ------- success : {'ok', 'fail'} Whether scheduling the halt succeeded. Examples -------- :: ?halt !halt ok
(module (function_definition (function_name_get_devices) function_name_get_devices (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_devices) identifier_devices (list )list )assignment )expression_statement (for_statement (identifier_element) identifier_element (call (attribute (identifier_self) identifier_self (identifier_get_device_elements) identifier_get_device_elements )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_device) identifier_device (call (identifier_FritzhomeDevice) identifier_FritzhomeDevice (argument_list (identifier_self) identifier_self (keyword_argument (identifier_node) identifier_node (identifier_element) identifier_element )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_devices) identifier_devices (identifier_append) identifier_append )attribute (argument_list (identifier_device) identifier_device )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_devices) identifier_devices )return_statement )block )function_definition )module
Get the list of all known devices.
(module (function_definition (function_name_retrieve_all) function_name_retrieve_all (parameters (identifier_self) identifier_self (default_parameter (identifier_subset) identifier_subset (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_get_object) identifier_get_object (attribute (attribute (identifier_self) identifier_self (identifier_factory) identifier_factory )attribute (identifier_get_object) identifier_get_object )attribute )assignment )expression_statement (expression_statement (assignment (identifier_obj_class) identifier_obj_class (attribute (identifier_self) identifier_self (identifier_obj_class) identifier_obj_class )attribute )assignment )expression_statement (expression_statement (assignment (identifier_full_objects) identifier_full_objects (list_comprehension (call (identifier_get_object) identifier_get_object (argument_list (identifier_obj_class) identifier_obj_class (attribute (identifier_list_obj) identifier_list_obj (identifier_id) identifier_id )attribute (identifier_subset) identifier_subset )argument_list )call (for_in_clause (identifier_list_obj) identifier_list_obj (identifier_self) identifier_self )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (call (identifier_JSSObjectList) identifier_JSSObjectList (argument_list (attribute (identifier_self) identifier_self (identifier_factory) identifier_factory )attribute (identifier_obj_class) identifier_obj_class (identifier_full_objects) identifier_full_objects )argument_list )call )return_statement )block )function_definition )module
Return a list of all JSSListData elements as full JSSObjects. This can take a long time given a large number of objects, and depending on the size of each object. Subsetting to only include the data you need can improve performance. Args: subset: For objects which support it, a list of sub-tags to request, or an "&" delimited string, (e.g. "general&purchasing"). Default to None.
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_options) identifier_options (call (attribute (attribute (identifier_conf) identifier_conf (identifier_lib) identifier_lib )attribute (identifier_clang_defaultSaveOptions) identifier_clang_defaultSaveOptions )attribute (argument_list (identifier_self) identifier_self )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (identifier_int) identifier_int (argument_list (call (attribute (attribute (identifier_conf) identifier_conf (identifier_lib) identifier_lib )attribute (identifier_clang_saveTranslationUnit) identifier_clang_saveTranslationUnit )attribute (argument_list (identifier_self) identifier_self (identifier_filename) identifier_filename (identifier_options) identifier_options )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_result) identifier_result (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_TranslationUnitSaveError) identifier_TranslationUnitSaveError (argument_list (identifier_result) identifier_result (string_'Error saving TranslationUnit.') string_'Error saving TranslationUnit.' )argument_list )call )raise_statement )block )if_statement )block )function_definition )module
Saves the TranslationUnit to a file. This is equivalent to passing -emit-ast to the clang frontend. The saved file can be loaded back into a TranslationUnit. Or, if it corresponds to a header, it can be used as a pre-compiled header file. If an error occurs while saving, a TranslationUnitSaveError is raised. If the error was TranslationUnitSaveError.ERROR_INVALID_TU, this means the constructed TranslationUnit was not valid at time of save. In this case, the reason(s) why should be available via TranslationUnit.diagnostics(). filename -- The path to save the translation unit to.
(module (function_definition (function_name_mutualReceptions) function_name_mutualReceptions (parameters (identifier_self) identifier_self (identifier_idA) identifier_idA (identifier_idB) identifier_idB )parameters (block (expression_statement (assignment (identifier_AB) identifier_AB (call (attribute (identifier_self) identifier_self (identifier_receives) identifier_receives )attribute (argument_list (identifier_idA) identifier_idA (identifier_idB) identifier_idB )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_BA) identifier_BA (call (attribute (identifier_self) identifier_self (identifier_receives) identifier_receives )attribute (argument_list (identifier_idB) identifier_idB (identifier_idA) identifier_idA )argument_list )call )assignment )expression_statement (return_statement (list_comprehension (tuple (identifier_a) identifier_a (identifier_b) identifier_b )tuple (for_in_clause (identifier_a) identifier_a (identifier_AB) identifier_AB )for_in_clause (for_in_clause (identifier_b) identifier_b (identifier_BA) identifier_BA )for_in_clause )list_comprehension )return_statement )block )function_definition )module
Returns all pairs of dignities in mutual reception.
(module (function_definition (function_name_parse_problem) function_name_parse_problem (parameters (identifier_self) identifier_self (identifier_problem_content) identifier_problem_content )parameters (block (delete_statement (subscript (identifier_problem_content) identifier_problem_content (string_"@order") string_"@order" )subscript )delete_statement (return_statement (call (attribute (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_task_factory) identifier_task_factory )attribute (identifier_get_problem_types) identifier_get_problem_types )attribute (argument_list )argument_list )call (identifier_get) identifier_get )attribute (argument_list (subscript (identifier_problem_content) identifier_problem_content (string_"type") string_"type" )subscript )argument_list )call (identifier_parse_problem) identifier_parse_problem )attribute (argument_list (identifier_problem_content) identifier_problem_content )argument_list )call )return_statement )block )function_definition )module
Parses a problem, modifying some data
(module (function_definition (function_name__autodiscover) function_name__autodiscover (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (call (identifier_getattr) identifier_getattr (argument_list (identifier_self) identifier_self (string_'_registerable_class') string_'_registerable_class' (None) None )argument_list )call )not_operator (block (raise_statement (call (identifier_ImproperlyConfigured) identifier_ImproperlyConfigured (argument_list (concatenated_string (string_'You must set a ') string_'You must set a ' (string_'"_registerable_class" property ') string_'"_registerable_class" property ' (string_'in order to use autodiscovery.') string_'in order to use autodiscovery.' )concatenated_string )argument_list )call )raise_statement )block )if_statement (for_statement (identifier_mod_name) identifier_mod_name (tuple (string_'dashboard') string_'dashboard' (string_'panel') string_'panel' )tuple (block (for_statement (identifier_app) identifier_app (attribute (identifier_settings) identifier_settings (identifier_INSTALLED_APPS) identifier_INSTALLED_APPS )attribute (block (expression_statement (assignment (identifier_mod) identifier_mod (call (identifier_import_module) identifier_import_module (argument_list (identifier_app) identifier_app )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_before_import_registry) identifier_before_import_registry (call (attribute (identifier_copy) identifier_copy (identifier_copy) identifier_copy )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__registry) identifier__registry )attribute )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_import_module) identifier_import_module (argument_list (binary_operator (string_'%s.%s') string_'%s.%s' (tuple (identifier_app) identifier_app (identifier_mod_name) identifier_mod_name )tuple )binary_operator )argument_list )call )expression_statement )block (except_clause (identifier_Exception) identifier_Exception (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__registry) identifier__registry )attribute (identifier_before_import_registry) identifier_before_import_registry )assignment )expression_statement (if_statement (call (identifier_module_has_submodule) identifier_module_has_submodule (argument_list (identifier_mod) identifier_mod (identifier_mod_name) identifier_mod_name )argument_list )call (block (raise_statement )raise_statement )block )if_statement )block )except_clause )try_statement )block )for_statement )block )for_statement )block )function_definition )module
Discovers modules to register from ``settings.INSTALLED_APPS``. This makes sure that the appropriate modules get imported to register themselves with Horizon.
(module (function_definition (function_name_load_tag_library) function_name_load_tag_library (parameters (identifier_libname) identifier_libname )parameters (block (import_from_statement (dotted_name (identifier_django) identifier_django (identifier_template) identifier_template (identifier_backends) identifier_backends (identifier_django) identifier_django )dotted_name (dotted_name (identifier_get_installed_libraries) identifier_get_installed_libraries )dotted_name )import_from_statement (import_from_statement (dotted_name (identifier_django) identifier_django (identifier_template) identifier_template (identifier_library) identifier_library )dotted_name (dotted_name (identifier_InvalidTemplateLibrary) identifier_InvalidTemplateLibrary )dotted_name )import_from_statement (try_statement (block (expression_statement (assignment (identifier_lib) identifier_lib (subscript (call (identifier_get_installed_libraries) identifier_get_installed_libraries (argument_list )argument_list )call (identifier_libname) identifier_libname )subscript )assignment )expression_statement (expression_statement (assignment (identifier_lib) identifier_lib (attribute (call (attribute (identifier_importlib) identifier_importlib (identifier_import_module) identifier_import_module )attribute (argument_list (identifier_lib) identifier_lib )argument_list )call (identifier_register) identifier_register )attribute )assignment )expression_statement (return_statement (identifier_lib) identifier_lib )return_statement )block (except_clause (tuple (identifier_InvalidTemplateLibrary) identifier_InvalidTemplateLibrary (identifier_KeyError) identifier_KeyError )tuple (block (return_statement (None) None )return_statement )block )except_clause )try_statement )block )function_definition )module
Load a templatetag library on multiple Django versions. Returns None if the library isn't loaded.
(module (function_definition (function_name__get_generic_schema) function_name__get_generic_schema (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_schema) identifier_schema (call (identifier_Schema) identifier_Schema (argument_list (keyword_argument (identifier_identifier) identifier_identifier (call (identifier_ID) identifier_ID (argument_list (keyword_argument (identifier_stored) identifier_stored (True) True )keyword_argument )argument_list )call )keyword_argument (keyword_argument (identifier_type) identifier_type (call (identifier_ID) identifier_ID (argument_list (keyword_argument (identifier_stored) identifier_stored (True) True )keyword_argument )argument_list )call )keyword_argument (keyword_argument (identifier_name) identifier_name (call (identifier_NGRAM) identifier_NGRAM (argument_list (keyword_argument (identifier_phrase) identifier_phrase (True) True )keyword_argument (keyword_argument (identifier_stored) identifier_stored (True) True )keyword_argument (keyword_argument (identifier_minsize) identifier_minsize (integer_2) integer_2 )keyword_argument (keyword_argument (identifier_maxsize) identifier_maxsize (integer_8) integer_8 )keyword_argument )argument_list )call )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_schema) identifier_schema )return_statement )block )function_definition )module
Returns whoosh's generic schema.
(module (function_definition (function_name_spin1x_from_xi1_phi_a_phi_s) function_name_spin1x_from_xi1_phi_a_phi_s (parameters (identifier_xi1) identifier_xi1 (identifier_phi_a) identifier_phi_a (identifier_phi_s) identifier_phi_s )parameters (block (expression_statement (assignment (identifier_phi1) identifier_phi1 (call (identifier_phi1_from_phi_a_phi_s) identifier_phi1_from_phi_a_phi_s (argument_list (identifier_phi_a) identifier_phi_a (identifier_phi_s) identifier_phi_s )argument_list )call )assignment )expression_statement (return_statement (binary_operator (identifier_xi1) identifier_xi1 (call (attribute (identifier_numpy) identifier_numpy (identifier_cos) identifier_cos )attribute (argument_list (identifier_phi1) identifier_phi1 )argument_list )call )binary_operator )return_statement )block )function_definition )module
Returns x-component spin for primary mass.
(module (function_definition (function_name_serialize) function_name_serialize (parameters (identifier_self) identifier_self (identifier_value) identifier_value (identifier_state) identifier_state )parameters (block (if_statement (boolean_operator (not_operator (identifier_value) identifier_value )not_operator (attribute (identifier_self) identifier_self (identifier_required) identifier_required )attribute )boolean_operator (block (expression_statement (call (attribute (identifier_state) identifier_state (identifier_raise_error) identifier_raise_error )attribute (argument_list (identifier_MissingValue) identifier_MissingValue (call (attribute (string_'Missing required aggregate "{}"') string_'Missing required aggregate "{}"' (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_element_path) identifier_element_path )attribute )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (pattern_list (identifier_start_element) identifier_start_element (identifier_end_element) identifier_end_element )pattern_list (call (identifier__element_path_create_new) identifier__element_path_create_new (argument_list (attribute (identifier_self) identifier_self (identifier_element_path) identifier_element_path )attribute )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__serialize) identifier__serialize )attribute (argument_list (identifier_end_element) identifier_end_element (identifier_value) identifier_value (identifier_state) identifier_state )argument_list )call )expression_statement (return_statement (identifier_start_element) identifier_start_element )return_statement )block )function_definition )module
Serialize the value to a new element and return the element.
(module (function_definition (function_name_upgrade_account) function_name_upgrade_account (parameters (identifier_self) identifier_self (default_parameter (identifier_account) identifier_account (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (not_operator (identifier_account) identifier_account )not_operator (block (if_statement (comparison_operator (string_"default_account") string_"default_account" (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute )comparison_operator (block (expression_statement (assignment (identifier_account) identifier_account (subscript (attribute (identifier_self) identifier_self (identifier_config) identifier_config )attribute (string_"default_account") string_"default_account" )subscript )assignment )expression_statement )block )if_statement )block )if_statement (if_statement (not_operator (identifier_account) identifier_account )not_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"You need to provide an account") string_"You need to provide an account" )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_account) identifier_account (call (identifier_Account) identifier_Account (argument_list (identifier_account) identifier_account (keyword_argument (identifier_blockchain_instance) identifier_blockchain_instance (identifier_self) identifier_self )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_op) identifier_op (call (attribute (identifier_operations) identifier_operations (identifier_Account_upgrade) identifier_Account_upgrade )attribute (argument_list (dictionary_splat (dictionary (pair (string_"fee") string_"fee" (dictionary (pair (string_"amount") string_"amount" (integer_0) integer_0 )pair (pair (string_"asset_id") string_"asset_id" (string_"1.3.0") string_"1.3.0" )pair )dictionary )pair (pair (string_"account_to_upgrade") string_"account_to_upgrade" (subscript (identifier_account) identifier_account (string_"id") string_"id" )subscript )pair (pair (string_"upgrade_to_lifetime_member") string_"upgrade_to_lifetime_member" (True) True )pair (pair (string_"prefix") string_"prefix" (attribute (identifier_self) identifier_self (identifier_prefix) identifier_prefix )attribute )pair )dictionary )dictionary_splat )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_finalizeOp) identifier_finalizeOp )attribute (argument_list (identifier_op) identifier_op (subscript (identifier_account) identifier_account (string_"name") string_"name" )subscript (string_"active") string_"active" (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Upgrade an account to Lifetime membership :param str account: (optional) the account to allow access to (defaults to ``default_account``)
(module (function_definition (function_name_add) function_name_add (parameters (typed_parameter (identifier_workflow_definition) identifier_workflow_definition (type (identifier_dict) identifier_dict )type )typed_parameter (typed_parameter (identifier_templates_root) identifier_templates_root (type (identifier_str) identifier_str )type )typed_parameter )parameters (block (expression_statement (assignment (identifier_schema_path) identifier_schema_path (call (identifier_join) identifier_join (argument_list (call (identifier_dirname) identifier_dirname (argument_list (identifier___file__) identifier___file__ )argument_list )call (string_'schema') string_'schema' (string_'workflow_definition.json') string_'workflow_definition.json' )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_schema_path) identifier_schema_path (string_'r') string_'r' )argument_list )call (as_pattern_target (identifier_file) identifier_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_schema) identifier_schema (call (attribute (identifier_json) identifier_json (identifier_loads) identifier_loads )attribute (argument_list (call (attribute (identifier_file) identifier_file (identifier_read) identifier_read )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement )block )with_statement (expression_statement (call (attribute (identifier_jsonschema) identifier_jsonschema (identifier_validate) identifier_validate )attribute (argument_list (identifier_workflow_definition) identifier_workflow_definition (identifier_schema) identifier_schema )argument_list )call )expression_statement (expression_statement (assignment (identifier__id) identifier__id (subscript (identifier_workflow_definition) identifier_workflow_definition (string_'id') string_'id' )subscript )assignment )expression_statement (expression_statement (assignment (identifier__version) identifier__version (subscript (identifier_workflow_definition) identifier_workflow_definition (string_'version') string_'version' )subscript )assignment )expression_statement (expression_statement (call (identifier__load_templates) identifier__load_templates (argument_list (identifier_workflow_definition) identifier_workflow_definition (identifier_templates_root) identifier_templates_root )argument_list )call )expression_statement (expression_statement (assignment (identifier_workflow_id) identifier_workflow_id (subscript (identifier_workflow_definition) identifier_workflow_definition (string_'id') string_'id' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_version) identifier_version (subscript (identifier_workflow_definition) identifier_workflow_definition (string_'version') string_'version' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_name) identifier_name (call (attribute (string_"workflow_definitions:{}:{}") string_"workflow_definitions:{}:{}" (identifier_format) identifier_format )attribute (argument_list (identifier_workflow_id) identifier_workflow_id (identifier_version) identifier_version )argument_list )call )assignment )expression_statement (if_statement (call (attribute (identifier_DB) identifier_DB (identifier_get_keys) identifier_get_keys )attribute (argument_list (identifier_name) identifier_name )argument_list )call (block (raise_statement (call (identifier_KeyError) identifier_KeyError (argument_list (call (attribute (string_'Workflow definition already exists: {}') string_'Workflow definition already exists: {}' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )argument_list )call )raise_statement )block )if_statement (expression_statement (call (attribute (identifier_DB) identifier_DB (identifier_save_dict) identifier_save_dict )attribute (argument_list (identifier_name) identifier_name (identifier_workflow_definition) identifier_workflow_definition (keyword_argument (identifier_hierarchical) identifier_hierarchical (False) False )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Add a workflow definition to the Configuration Database. Templates are expected to be found in a directory tree with the following structure: - workflow_id: |- workflow_version |- stage_id |- stage_version |- <templates> Args: workflow_definition (dict): Workflow definition. templates_root (str): Workflow templates root path
(module (function_definition (function_name_to_hg_scheme_url) function_name_to_hg_scheme_url (parameters (identifier_cls) identifier_cls (identifier_url) identifier_url )parameters (block (expression_statement (assignment (identifier_regexes) identifier_regexes (call (attribute (identifier_cls) identifier_cls (identifier__get_url_scheme_regexes) identifier__get_url_scheme_regexes )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_scheme_key) identifier_scheme_key (identifier_pattern) identifier_pattern (identifier_regex) identifier_regex )pattern_list (identifier_regexes) identifier_regexes (block (expression_statement (assignment (identifier_match) identifier_match (call (attribute (identifier_regex) identifier_regex (identifier_match) identifier_match )attribute (argument_list (identifier_url) identifier_url )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_match) identifier_match (None) None )comparison_operator (block (expression_statement (assignment (identifier_groups) identifier_groups (call (attribute (identifier_match) identifier_match (identifier_groups) identifier_groups )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_groups) identifier_groups )argument_list )call (integer_2) integer_2 )comparison_operator (block (return_statement (call (attribute (string_u'') string_u'' (identifier_join) identifier_join )attribute (argument_list (identifier_scheme_key) identifier_scheme_key (string_'://') string_'://' (call (attribute (identifier_pattern) identifier_pattern (identifier_replace) identifier_replace )attribute (argument_list (string_'{1}') string_'{1}' (subscript (identifier_groups) identifier_groups (integer_0) integer_0 )subscript )argument_list )call (subscript (identifier_groups) identifier_groups (integer_1) integer_1 )subscript )argument_list )call )return_statement )block (elif_clause (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_groups) identifier_groups )argument_list )call (integer_1) integer_1 )comparison_operator (block (return_statement (call (attribute (string_u'') string_u'' (identifier_join) identifier_join )attribute (argument_list (identifier_scheme_key) identifier_scheme_key (string_'://') string_'://' (identifier_pattern) identifier_pattern (subscript (identifier_groups) identifier_groups (integer_0) integer_0 )subscript )argument_list )call )return_statement )block )elif_clause )if_statement )block )if_statement )block )for_statement )block )function_definition )module
Convert a URL to local mercurial URL schemes Args: url (str): URL to map to local mercurial URL schemes example:: # schemes.gh = git://github.com/ >> remote_url = git://github.com/westurner/dotfiles' >> to_hg_scheme_url(remote_url) << gh://westurner/dotfiles
(module (function_definition (function_name_get_repo_parent) function_name_get_repo_parent (parameters (identifier_path) identifier_path )parameters (block (if_statement (call (identifier_is_repo) identifier_is_repo (argument_list (identifier_path) identifier_path )argument_list )call (block (return_statement (call (identifier_Local) identifier_Local (argument_list (identifier_path) identifier_path )argument_list )call )return_statement )block (elif_clause (not_operator (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 )not_operator (block (expression_statement (assignment (identifier__rel) identifier__rel (string_'') string_'' )assignment )expression_statement (while_statement (boolean_operator (identifier_path) identifier_path (comparison_operator (identifier_path) identifier_path (string_'/') string_'/' )comparison_operator )boolean_operator (block (if_statement (call (identifier_is_repo) identifier_is_repo (argument_list (identifier_path) identifier_path )argument_list )call (block (return_statement (call (identifier_Local) identifier_Local (argument_list (identifier_path) identifier_path )argument_list )call )return_statement )block (else_clause (block (expression_statement (assignment (identifier__rel) identifier__rel (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_path) identifier_path )argument_list )call (identifier__rel) identifier__rel )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_path) identifier_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement )block )else_clause )if_statement )block )while_statement (return_statement (identifier_path) identifier_path )return_statement )block )elif_clause )if_statement )block )function_definition )module
Returns parent repo or input path if none found. :return: grit.Local or path
(module (function_definition (function_name_sortByIndex) function_name_sortByIndex (parameters (identifier_self) identifier_self (identifier_index) identifier_index )parameters (block (expression_statement (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_table_level) identifier_table_level )attribute (identifier_horizontalHeader) identifier_horizontalHeader )attribute (argument_list )argument_list )call (identifier_setSortIndicatorShown) identifier_setSortIndicatorShown )attribute (argument_list (True) True )argument_list )call )expression_statement (expression_statement (assignment (identifier_sort_order) identifier_sort_order (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_table_level) identifier_table_level )attribute (identifier_horizontalHeader) identifier_horizontalHeader )attribute (argument_list )argument_list )call (identifier_sortIndicatorOrder) identifier_sortIndicatorOrder )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_table_index) identifier_table_index )attribute (identifier_model) identifier_model )attribute (argument_list )argument_list )call (identifier_sort) identifier_sort )attribute (argument_list (identifier_index) identifier_index (identifier_sort_order) identifier_sort_order )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__sort_update) identifier__sort_update )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Implement a Index sort.
(module (function_definition (function_name___log_number_of_constants) function_name___log_number_of_constants (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_n_id) identifier_n_id (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__labels) identifier__labels )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_n_widths) identifier_n_widths (binary_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_self) identifier_self (identifier__constants) identifier__constants )attribute )argument_list )call (identifier_n_id) identifier_n_id )binary_operator )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__io) identifier__io )attribute (identifier_writeln) identifier_writeln )attribute (argument_list (string_'') string_'' )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__io) identifier__io )attribute (identifier_text) identifier_text )attribute (argument_list (call (attribute (string_'Number of constants based on column widths: {0}') string_'Number of constants based on column widths: {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_n_widths) identifier_n_widths )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__io) identifier__io )attribute (identifier_text) identifier_text )attribute (argument_list (call (attribute (string_'Number of constants based on database IDs : {0}') string_'Number of constants based on database IDs : {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_n_id) identifier_n_id )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Logs the number of constants generated.
(module (function_definition (function_name_get_geotiff_area_def) function_name_get_geotiff_area_def (parameters (identifier_filename) identifier_filename (identifier_crs) identifier_crs )parameters (block (import_from_statement (dotted_name (identifier_osgeo) identifier_osgeo )dotted_name (dotted_name (identifier_gdal) identifier_gdal )dotted_name )import_from_statement (import_from_statement (dotted_name (identifier_pyresample) identifier_pyresample (identifier_geometry) identifier_geometry )dotted_name (dotted_name (identifier_AreaDefinition) identifier_AreaDefinition )dotted_name )import_from_statement (import_from_statement (dotted_name (identifier_pyresample) identifier_pyresample (identifier_utils) identifier_utils )dotted_name (dotted_name (identifier_proj4_str_to_dict) identifier_proj4_str_to_dict )dotted_name )import_from_statement (expression_statement (assignment (identifier_fid) identifier_fid (call (attribute (identifier_gdal) identifier_gdal (identifier_Open) identifier_Open )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_geo_transform) identifier_geo_transform (call (attribute (identifier_fid) identifier_fid (identifier_GetGeoTransform) identifier_GetGeoTransform )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_pcs_id) identifier_pcs_id (subscript (call (attribute (call (attribute (identifier_fid) identifier_fid (identifier_GetProjection) identifier_GetProjection )attribute (argument_list )argument_list )call (identifier_split) identifier_split )attribute (argument_list (string_'"') string_'"' )argument_list )call (integer_1) integer_1 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_min_x) identifier_min_x (subscript (identifier_geo_transform) identifier_geo_transform (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_max_y) identifier_max_y (subscript (identifier_geo_transform) identifier_geo_transform (integer_3) integer_3 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_x_size) identifier_x_size (attribute (identifier_fid) identifier_fid (identifier_RasterXSize) identifier_RasterXSize )attribute )assignment )expression_statement (expression_statement (assignment (identifier_y_size) identifier_y_size (attribute (identifier_fid) identifier_fid (identifier_RasterYSize) identifier_RasterYSize )attribute )assignment )expression_statement (expression_statement (assignment (identifier_max_x) identifier_max_x (binary_operator (identifier_min_x) identifier_min_x (binary_operator (subscript (identifier_geo_transform) identifier_geo_transform (integer_1) integer_1 )subscript (identifier_x_size) identifier_x_size )binary_operator )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_min_y) identifier_min_y (binary_operator (identifier_max_y) identifier_max_y (binary_operator (subscript (identifier_geo_transform) identifier_geo_transform (integer_5) integer_5 )subscript (identifier_y_size) identifier_y_size )binary_operator )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_area_extent) identifier_area_extent (list (identifier_min_x) identifier_min_x (identifier_min_y) identifier_min_y (identifier_max_x) identifier_max_x (identifier_max_y) identifier_max_y )list )assignment )expression_statement (expression_statement (assignment (identifier_area_def) identifier_area_def (call (identifier_AreaDefinition) identifier_AreaDefinition (argument_list (string_'geotiff_area') string_'geotiff_area' (identifier_pcs_id) identifier_pcs_id (identifier_pcs_id) identifier_pcs_id (call (identifier_proj4_str_to_dict) identifier_proj4_str_to_dict (argument_list (identifier_crs) identifier_crs )argument_list )call (identifier_x_size) identifier_x_size (identifier_y_size) identifier_y_size (identifier_area_extent) identifier_area_extent )argument_list )call )assignment )expression_statement (return_statement (identifier_area_def) identifier_area_def )return_statement )block )function_definition )module
Read area definition from a geotiff.
(module (function_definition (function_name_masked_middle_mfcc) function_name_masked_middle_mfcc (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_begin) identifier_begin (identifier_end) identifier_end )pattern_list (call (attribute (identifier_self) identifier_self (identifier__masked_middle_begin_end) identifier__masked_middle_begin_end )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (subscript (parenthesized_expression (attribute (identifier_self) identifier_self (identifier_masked_mfcc) identifier_masked_mfcc )attribute )parenthesized_expression (slice (colon) colon )slice (slice (identifier_begin) identifier_begin (colon) colon (identifier_end) identifier_end )slice )subscript )return_statement )block )function_definition )module
Return the MFCC speech frames in the MIDDLE portion of the wave. :rtype: :class:`numpy.ndarray` (2D)
(module (function_definition (function_name_get_speaker_settings) function_name_get_speaker_settings (parameters (identifier_self) identifier_self )parameters (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_Setting) identifier_Setting )type )type_parameter )generic_type )type (block (expression_statement (assignment (identifier_speaker_settings) identifier_speaker_settings (await (call (subscript (subscript (attribute (identifier_self) identifier_self (identifier_services) identifier_services )attribute (string_"audio") string_"audio" )subscript (string_"getSpeakerSettings") string_"getSpeakerSettings" )subscript (argument_list (dictionary )dictionary )argument_list )call )await )assignment )expression_statement (return_statement (list_comprehension (call (attribute (identifier_Setting) identifier_Setting (identifier_make) identifier_make )attribute (argument_list (dictionary_splat (identifier_x) identifier_x )dictionary_splat )argument_list )call (for_in_clause (identifier_x) identifier_x (identifier_speaker_settings) identifier_speaker_settings )for_in_clause )list_comprehension )return_statement )block )function_definition )module
Return speaker settings.
(module (function_definition (function_name_exists) function_name_exists (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_client) identifier_client (attribute (attribute (identifier_self) identifier_self (identifier__instance) identifier__instance )attribute (identifier__client) identifier__client )attribute )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (attribute (identifier_client) identifier_client (identifier_instance_admin_client) identifier_instance_admin_client )attribute (identifier_get_cluster) identifier_get_cluster )attribute (argument_list (keyword_argument (identifier_name) identifier_name (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute )keyword_argument )argument_list )call )expression_statement (return_statement (True) True )return_statement )block (except_clause (identifier_NotFound) identifier_NotFound (block (return_statement (False) False )return_statement )block )except_clause )try_statement )block )function_definition )module
Check whether the cluster already exists. For example: .. literalinclude:: snippets.py :start-after: [START bigtable_check_cluster_exists] :end-before: [END bigtable_check_cluster_exists] :rtype: bool :returns: True if the table exists, else False.
(module (function_definition (function_name_get_owner_asset_ids) function_name_get_owner_asset_ids (parameters (identifier_self) identifier_self (identifier_address) identifier_address )parameters (block (expression_statement (assignment (identifier_block_filter) identifier_block_filter (call (attribute (identifier_self) identifier_self (identifier__get_event_filter) identifier__get_event_filter )attribute (argument_list (keyword_argument (identifier_owner) identifier_owner (identifier_address) identifier_address )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_log_items) identifier_log_items (call (attribute (identifier_block_filter) identifier_block_filter (identifier_get_all_entries) identifier_get_all_entries )attribute (argument_list (keyword_argument (identifier_max_tries) identifier_max_tries (integer_5) integer_5 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_did_list) identifier_did_list (list )list )assignment )expression_statement (for_statement (identifier_log_i) identifier_log_i (identifier_log_items) identifier_log_items (block (expression_statement (call (attribute (identifier_did_list) identifier_did_list (identifier_append) identifier_append )attribute (argument_list (call (identifier_id_to_did) identifier_id_to_did (argument_list (subscript (attribute (identifier_log_i) identifier_log_i (identifier_args) identifier_args )attribute (string_'_did') string_'_did' )subscript )argument_list )call )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_did_list) identifier_did_list )return_statement )block )function_definition )module
Get the list of assets owned by an address owner. :param address: ethereum account address, hex str :return:
(module (function_definition (function_name_people) function_name_people (parameters (identifier_self) identifier_self )parameters (block (if_statement (subscript (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (string_'people') string_'people' )subscript (block (return_statement (subscript (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (string_'people') string_'people' )subscript )return_statement )block )if_statement (expression_statement (assignment (identifier_people_xml) identifier_people_xml (call (attribute (attribute (identifier_self) identifier_self (identifier_bc) identifier_bc )attribute (identifier_people_within_project) identifier_people_within_project )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute )argument_list )call )assignment )expression_statement (for_statement (identifier_person_node) identifier_person_node (call (attribute (call (attribute (identifier_ET) identifier_ET (identifier_fromstring) identifier_fromstring )attribute (argument_list (identifier_people_xml) identifier_people_xml )argument_list )call (identifier_findall) identifier_findall )attribute (argument_list (string_'person') string_'person' )argument_list )call (block (expression_statement (assignment (identifier_p) identifier_p (call (identifier_Person) identifier_Person (argument_list (identifier_person_node) identifier_person_node )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (subscript (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (string_'people') string_'people' )subscript (attribute (identifier_p) identifier_p (identifier_id) identifier_id )attribute )subscript (identifier_p) identifier_p )assignment )expression_statement )block )for_statement (return_statement (subscript (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (string_'people') string_'people' )subscript )return_statement )block )function_definition )module
Dictionary of people on the project, keyed by id
(module (function_definition (function_name_get_methods) function_name_get_methods (parameters (list_splat_pattern (identifier_objs) identifier_objs )list_splat_pattern )parameters (block (return_statement (call (identifier_set) identifier_set (generator_expression (identifier_attr) identifier_attr (for_in_clause (identifier_obj) identifier_obj (identifier_objs) identifier_objs )for_in_clause (for_in_clause (identifier_attr) identifier_attr (call (identifier_dir) identifier_dir (argument_list (identifier_obj) identifier_obj )argument_list )call )for_in_clause (if_clause (boolean_operator (not_operator (call (attribute (identifier_attr) identifier_attr (identifier_startswith) identifier_startswith )attribute (argument_list (string_'_') string_'_' )argument_list )call )not_operator (call (identifier_callable) identifier_callable (argument_list (call (identifier_getattr) identifier_getattr (argument_list (identifier_obj) identifier_obj (identifier_attr) identifier_attr )argument_list )call )argument_list )call )boolean_operator )if_clause )generator_expression )call )return_statement )block )function_definition )module
Return the names of all callable attributes of an object
(module (function_definition (function_name_reference) function_name_reference (parameters (identifier_cls) identifier_cls (identifier_value) identifier_value )parameters (block (import_from_statement (dotted_name (identifier_sqlpuzzle) identifier_sqlpuzzle (identifier__common) identifier__common (identifier_utils) identifier_utils )dotted_name (dotted_name (identifier_force_text) identifier_force_text )dotted_name )import_from_statement (expression_statement (assignment (identifier_value) identifier_value (call (identifier_force_text) identifier_force_text (argument_list (identifier_value) identifier_value )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_parts) identifier_parts (call (attribute (identifier_re) identifier_re (identifier_split) identifier_split )attribute (argument_list (call (attribute (string_r'{quote}([^{quote}]+){quote}|\.') string_r'{quote}([^{quote}]+){quote}|\.' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_quote) identifier_quote (attribute (identifier_cls) identifier_cls (identifier_reference_quote) identifier_reference_quote )attribute )keyword_argument )argument_list )call (identifier_value) identifier_value )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_parts) identifier_parts (generator_expression (conditional_expression (call (attribute (string_'{quote}{i}{quote}') string_'{quote}{i}{quote}' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_quote) identifier_quote (attribute (identifier_cls) identifier_cls (identifier_reference_quote) identifier_reference_quote )attribute )keyword_argument (keyword_argument (identifier_i) identifier_i (identifier_i) identifier_i )keyword_argument )argument_list )call (comparison_operator (identifier_i) identifier_i (string_'*') string_'*' )comparison_operator (identifier_i) identifier_i )conditional_expression (for_in_clause (identifier_i) identifier_i (identifier_parts) identifier_parts )for_in_clause (if_clause (identifier_i) identifier_i )if_clause )generator_expression )assignment )expression_statement (return_statement (call (attribute (string_'.') string_'.' (identifier_join) identifier_join )attribute (argument_list (identifier_parts) identifier_parts )argument_list )call )return_statement )block )function_definition )module
Convert as reference on column. table => "table" table.column => "table"."column" db.table.column => "db"."table"."column" table."col.umn" => "table"."col.umn" "table"."col.umn" => "table"."col.umn"
(module (function_definition (function_name_connection_factory_absent) function_name_connection_factory_absent (parameters (identifier_name) identifier_name (default_parameter (identifier_both) identifier_both (True) True )default_parameter (default_parameter (identifier_server) identifier_server (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (dictionary (pair (string_'name') string_'name' (identifier_name) identifier_name )pair (pair (string_'result') string_'result' (None) None )pair (pair (string_'comment') string_'comment' (None) None )pair (pair (string_'changes') string_'changes' (dictionary )dictionary )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_pool_name) identifier_pool_name (call (attribute (string_'{0}-Connection-Pool') string_'{0}-Connection-Pool' (identifier_format) identifier_format )attribute (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_pool_ret) identifier_pool_ret (call (identifier__do_element_absent) identifier__do_element_absent (argument_list (identifier_pool_name) identifier_pool_name (string_'connector_c_pool') string_'connector_c_pool' (dictionary (pair (string_'cascade') string_'cascade' (identifier_both) identifier_both )pair )dictionary (identifier_server) identifier_server )argument_list )call )assignment )expression_statement (if_statement (not_operator (subscript (identifier_pool_ret) identifier_pool_ret (string_'error') string_'error' )subscript )not_operator (block (if_statement (boolean_operator (subscript (identifier___opts__) identifier___opts__ (string_'test') string_'test' )subscript (subscript (identifier_pool_ret) identifier_pool_ret (string_'delete') string_'delete' )subscript )boolean_operator (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'comment') string_'comment' )subscript (string_'Connection Factory set to be deleted') string_'Connection Factory set to be deleted' )assignment )expression_statement )block (elif_clause (subscript (identifier_pool_ret) identifier_pool_ret (string_'delete') string_'delete' )subscript (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (True) True )assignment )expression_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'comment') string_'comment' )subscript (string_'Connection Factory deleted') string_'Connection Factory deleted' )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (True) True )assignment )expression_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'comment') string_'comment' )subscript (string_'Connection Factory doesn\'t exist') string_'Connection Factory doesn\'t exist' )assignment )expression_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (False) False )assignment )expression_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'comment') string_'comment' )subscript (call (attribute (string_'Error: {0}') string_'Error: {0}' (identifier_format) identifier_format )attribute (argument_list (subscript (identifier_pool_ret) identifier_pool_ret (string_'error') string_'error' )subscript )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Ensures the transaction factory is absent. name Name of the connection factory both Delete both the pool and the resource, defaults to ``true``
(module (function_definition (function_name_get_mailbox_stats) function_name_get_mailbox_stats (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_resp) identifier_resp (call (attribute (identifier_self) identifier_self (identifier_request_single) identifier_request_single )attribute (argument_list (string_'GetMailboxStats') string_'GetMailboxStats' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ret) identifier_ret (dictionary )dictionary )assignment )expression_statement (for_statement (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (identifier_resp) identifier_resp (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (identifier_k) identifier_k )subscript (call (identifier_int) identifier_int (argument_list (identifier_v) identifier_v )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Get global stats about mailboxes Parses <stats numMboxes="6" totalSize="141077"/> :returns: dict with stats