sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name__get_parents_from_parts) function_name__get_parents_from_parts (parameters (identifier_kwargs) identifier_kwargs )parameters (block (expression_statement (assignment (identifier_parent_builder) identifier_parent_builder (list )list )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_kwargs) identifier_kwargs (string_'last_child_num') string_'last_child_num' )subscript (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_parent_builder) identifier_parent_builder (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_'{type}/{name}/') string_'{type}/{name}/' (identifier_format) identifier_format )attribute (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )argument_list )call )expression_statement (for_statement (identifier_index) identifier_index (call (identifier_range) identifier_range (argument_list (integer_1) integer_1 (subscript (identifier_kwargs) identifier_kwargs (string_'last_child_num') string_'last_child_num' )subscript )argument_list )call (block (expression_statement (assignment (identifier_child_namespace) identifier_child_namespace (call (attribute (identifier_kwargs) identifier_kwargs (identifier_get) identifier_get )attribute (argument_list (call (attribute (string_'child_namespace_{}') string_'child_namespace_{}' (identifier_format) identifier_format )attribute (argument_list (identifier_index) identifier_index )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_child_namespace) identifier_child_namespace (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_parent_builder) identifier_parent_builder (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_'providers/{}/') string_'providers/{}/' (identifier_format) identifier_format )attribute (argument_list (identifier_child_namespace) identifier_child_namespace )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (subscript (identifier_kwargs) identifier_kwargs (call (attribute (string_'child_parent_{}') string_'child_parent_{}' (identifier_format) identifier_format )attribute (argument_list (identifier_index) identifier_index )argument_list )call )subscript (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (argument_list (identifier_parent_builder) identifier_parent_builder )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_parent_builder) identifier_parent_builder (identifier_append) identifier_append )attribute (argument_list (call (attribute (call (attribute (string_'{{child_type_{0}}}/{{child_name_{0}}}/') string_'{{child_type_{0}}}/{{child_name_{0}}}/' (identifier_format) identifier_format )attribute (argument_list (identifier_index) identifier_index )argument_list )call (identifier_format) identifier_format )attribute (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (identifier_child_namespace) identifier_child_namespace (call (attribute (identifier_kwargs) identifier_kwargs (identifier_get) identifier_get )attribute (argument_list (call (attribute (string_'child_namespace_{}') string_'child_namespace_{}' (identifier_format) identifier_format )attribute (argument_list (subscript (identifier_kwargs) identifier_kwargs (string_'last_child_num') string_'last_child_num' )subscript )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_child_namespace) identifier_child_namespace (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_parent_builder) identifier_parent_builder (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_'providers/{}/') string_'providers/{}/' (identifier_format) identifier_format )attribute (argument_list (identifier_child_namespace) identifier_child_namespace )argument_list )call )argument_list )call )expression_statement )block )if_statement (expression_statement (assignment (subscript (identifier_kwargs) identifier_kwargs (call (attribute (string_'child_parent_{}') string_'child_parent_{}' (identifier_format) identifier_format )attribute (argument_list (subscript (identifier_kwargs) identifier_kwargs (string_'last_child_num') string_'last_child_num' )subscript )argument_list )call )subscript (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (argument_list (identifier_parent_builder) identifier_parent_builder )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (identifier_kwargs) identifier_kwargs (string_'resource_parent') string_'resource_parent' )subscript (conditional_expression (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (argument_list (identifier_parent_builder) identifier_parent_builder )argument_list )call (subscript (identifier_kwargs) identifier_kwargs (string_'name') string_'name' )subscript (None) None )conditional_expression )assignment )expression_statement (return_statement (identifier_kwargs) identifier_kwargs )return_statement )block )function_definition )module
Get the parents given all the children parameters.
(module (function_definition (function_name_getFeature) function_name_getFeature (parameters (identifier_self) identifier_self (identifier_compoundId) identifier_compoundId )parameters (block (expression_statement (assignment (identifier_feature) identifier_feature (call (attribute (identifier_self) identifier_self (identifier__getFeatureById) identifier__getFeatureById )attribute (argument_list (attribute (identifier_compoundId) identifier_compoundId (identifier_featureId) identifier_featureId )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_feature) identifier_feature (identifier_id) identifier_id )attribute (call (identifier_str) identifier_str (argument_list (identifier_compoundId) identifier_compoundId )argument_list )call )assignment )expression_statement (return_statement (identifier_feature) identifier_feature )return_statement )block )function_definition )module
find a feature and return ga4gh representation, use compoundId as featureId
(module (function_definition (function_name_handle_command_line) function_name_handle_command_line (parameters (identifier_options) identifier_options )parameters (block (expression_statement (assignment (identifier_options) identifier_options (call (identifier_merge) identifier_merge (argument_list (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_DEFAULT_OPTIONS) identifier_DEFAULT_OPTIONS )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_engine) identifier_engine (call (attribute (attribute (identifier_plugins) identifier_plugins (identifier_ENGINES) identifier_ENGINES )attribute (identifier_get_engine) identifier_get_engine )attribute (argument_list (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_TEMPLATE_TYPE) identifier_LABEL_TEMPLATE_TYPE )attribute )subscript (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_TMPL_DIRS) identifier_LABEL_TMPL_DIRS )attribute )subscript (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_CONFIG_DIR) identifier_LABEL_CONFIG_DIR )attribute )subscript )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_TEMPLATE) identifier_LABEL_TEMPLATE )attribute )subscript (None) None )comparison_operator (block (if_statement (comparison_operator (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_POSITIONAL_LABEL_TEMPLATE) identifier_POSITIONAL_LABEL_TEMPLATE )attribute )subscript (None) None )comparison_operator (block (raise_statement (call (attribute (identifier_exceptions) identifier_exceptions (identifier_NoTemplate) identifier_NoTemplate )attribute (argument_list (attribute (identifier_constants) identifier_constants (identifier_ERROR_NO_TEMPLATE) identifier_ERROR_NO_TEMPLATE )attribute )argument_list )call )raise_statement )block (else_clause (block (expression_statement (call (attribute (identifier_engine) identifier_engine (identifier_render_string_to_file) identifier_render_string_to_file )attribute (argument_list (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_POSITIONAL_LABEL_TEMPLATE) identifier_POSITIONAL_LABEL_TEMPLATE )attribute )subscript (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_CONFIG) identifier_LABEL_CONFIG )attribute )subscript (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_OUTPUT) identifier_LABEL_OUTPUT )attribute )subscript )argument_list )call )expression_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (call (attribute (identifier_engine) identifier_engine (identifier_render_to_file) identifier_render_to_file )attribute (argument_list (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_TEMPLATE) identifier_LABEL_TEMPLATE )attribute )subscript (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_CONFIG) identifier_LABEL_CONFIG )attribute )subscript (subscript (identifier_options) identifier_options (attribute (identifier_constants) identifier_constants (identifier_LABEL_OUTPUT) identifier_LABEL_OUTPUT )attribute )subscript )argument_list )call )expression_statement )block )else_clause )if_statement (expression_statement (call (attribute (identifier_engine) identifier_engine (identifier_report) identifier_report )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_HASH_STORE) identifier_HASH_STORE (identifier_save_hashes) identifier_save_hashes )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_exit_code) identifier_exit_code (call (attribute (identifier_reporter) identifier_reporter (identifier_convert_to_shell_exit_code) identifier_convert_to_shell_exit_code )attribute (argument_list (call (attribute (identifier_engine) identifier_engine (identifier_number_of_templated_files) identifier_number_of_templated_files )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_exit_code) identifier_exit_code )return_statement )block )function_definition )module
act upon command options
(module (function_definition (function_name_tokenise) function_name_tokenise (parameters (identifier_string) identifier_string (default_parameter (identifier_strict) identifier_strict (False) False )default_parameter (default_parameter (identifier_replace) identifier_replace (False) False )default_parameter (default_parameter (identifier_diphtongs) identifier_diphtongs (False) False )default_parameter (default_parameter (identifier_tones) identifier_tones (False) False )default_parameter (default_parameter (identifier_unknown) identifier_unknown (False) False )default_parameter (default_parameter (identifier_merge) identifier_merge (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_words) identifier_words (call (attribute (call (attribute (call (attribute (identifier_string) identifier_string (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call (identifier_replace) identifier_replace )attribute (argument_list (string_'_') string_'_' (string_' ') string_' ' )argument_list )call (identifier_split) identifier_split )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_output) identifier_output (list )list )assignment )expression_statement (for_statement (identifier_word) identifier_word (identifier_words) identifier_words (block (expression_statement (assignment (identifier_tokens) identifier_tokens (call (identifier_tokenise_word) identifier_tokenise_word (argument_list (identifier_word) identifier_word (identifier_strict) identifier_strict (identifier_replace) identifier_replace (identifier_tones) identifier_tones (identifier_unknown) identifier_unknown )argument_list )call )assignment )expression_statement (if_statement (identifier_diphtongs) identifier_diphtongs (block (expression_statement (assignment (identifier_tokens) identifier_tokens (call (identifier_group) identifier_group (argument_list (identifier_are_diphtong) identifier_are_diphtong (identifier_tokens) identifier_tokens )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_merge) identifier_merge (None) None )comparison_operator (block (expression_statement (assignment (identifier_tokens) identifier_tokens (call (identifier_group) identifier_group (argument_list (identifier_merge) identifier_merge (identifier_tokens) identifier_tokens )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_output) identifier_output (identifier_extend) identifier_extend )attribute (argument_list (identifier_tokens) identifier_tokens )argument_list )call )expression_statement )block )for_statement (return_statement (identifier_output) identifier_output )return_statement )block )function_definition )module
Tokenise an IPA string into a list of tokens. Raise ValueError if there is a problem; if strict=True, this includes the string not being compliant to the IPA spec. If replace=True, replace some common non-IPA symbols with their IPA counterparts. If diphtongs=True, try to group diphtongs into single tokens. If tones=True, do not ignore tone symbols. If unknown=True, do not ignore symbols that cannot be classified into a relevant category. If merge is not None, use it for within-word token grouping. Part of ipatok's public API.
(module (function_definition (function_name_get_forecast_api) function_name_get_forecast_api (parameters (identifier_self) identifier_self (typed_parameter (identifier_longitude) identifier_longitude (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier_latitude) identifier_latitude (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (dictionary )dictionary )type (block (expression_statement (assignment (identifier_api_url) identifier_api_url (call (attribute (identifier_APIURL_TEMPLATE) identifier_APIURL_TEMPLATE (identifier_format) identifier_format )attribute (argument_list (identifier_longitude) identifier_longitude (identifier_latitude) identifier_latitude )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (identifier_urlopen) identifier_urlopen (argument_list (identifier_api_url) identifier_api_url )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (attribute (call (attribute (identifier_response) identifier_response (identifier_read) identifier_read )attribute (argument_list )argument_list )call (identifier_decode) identifier_decode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_json_data) identifier_json_data (call (attribute (identifier_json) identifier_json (identifier_loads) identifier_loads )attribute (argument_list (identifier_data) identifier_data )argument_list )call )assignment )expression_statement (return_statement (identifier_json_data) identifier_json_data )return_statement )block )function_definition )module
gets data from API
(module (function_definition (function_name_add_exception_handler) function_name_add_exception_handler (parameters (identifier_self) identifier_self (identifier_exception_handler) identifier_exception_handler )parameters (block (if_statement (comparison_operator (identifier_exception_handler) identifier_exception_handler (None) None )comparison_operator (block (raise_statement (call (identifier_RuntimeConfigException) identifier_RuntimeConfigException (argument_list (string_"Valid Exception Handler instance to be provided") string_"Valid Exception Handler instance to be provided" )argument_list )call )raise_statement )block )if_statement (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_exception_handler) identifier_exception_handler (identifier_AbstractExceptionHandler) identifier_AbstractExceptionHandler )argument_list )call )not_operator (block (raise_statement (call (identifier_RuntimeConfigException) identifier_RuntimeConfigException (argument_list (string_"Input should be an ExceptionHandler instance") string_"Input should be an ExceptionHandler instance" )argument_list )call )raise_statement )block )if_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_exception_handlers) identifier_exception_handlers )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_exception_handler) identifier_exception_handler )argument_list )call )expression_statement )block )function_definition )module
Register input to the exception handlers list. :param exception_handler: Exception Handler instance to be registered. :type exception_handler: AbstractExceptionHandler :return: None
(module (function_definition (function_name_at) function_name_at (parameters (identifier_self) identifier_self (identifier_time_str) identifier_time_str )parameters (block (assert_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier_unit) identifier_unit )attribute (tuple (string_'days') string_'days' (string_'hours') string_'hours' )tuple )comparison_operator (attribute (identifier_self) identifier_self (identifier_start_day) identifier_start_day )attribute )boolean_operator )assert_statement (expression_statement (assignment (pattern_list (identifier_hour) identifier_hour (identifier_minute) identifier_minute )pattern_list (call (attribute (identifier_time_str) identifier_time_str (identifier_split) identifier_split )attribute (argument_list (string_':') string_':' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_minute) identifier_minute (call (identifier_int) identifier_int (argument_list (identifier_minute) identifier_minute )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier_unit) identifier_unit )attribute (string_'days') string_'days' )comparison_operator (attribute (identifier_self) identifier_self (identifier_start_day) identifier_start_day )attribute )boolean_operator (block (expression_statement (assignment (identifier_hour) identifier_hour (call (identifier_int) identifier_int (argument_list (identifier_hour) identifier_hour )argument_list )call )assignment )expression_statement (assert_statement (comparison_operator (integer_0) integer_0 (identifier_hour) identifier_hour (integer_23) integer_23 )comparison_operator )assert_statement )block (elif_clause (comparison_operator (attribute (identifier_self) identifier_self (identifier_unit) identifier_unit )attribute (string_'hours') string_'hours' )comparison_operator (block (expression_statement (assignment (identifier_hour) identifier_hour (integer_0) integer_0 )assignment )expression_statement )block )elif_clause )if_statement (assert_statement (comparison_operator (integer_0) integer_0 (identifier_minute) identifier_minute (integer_59) integer_59 )comparison_operator )assert_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_at_time) identifier_at_time )attribute (call (attribute (identifier_datetime) identifier_datetime (identifier_time) identifier_time )attribute (argument_list (identifier_hour) identifier_hour (identifier_minute) identifier_minute )argument_list )call )assignment )expression_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Schedule the job every day at a specific time. Calling this is only valid for jobs scheduled to run every N day(s). :param time_str: A string in `XX:YY` format. :return: The invoked job instance
(module (function_definition (function_name_compare) function_name_compare (parameters (identifier_self) identifier_self (identifier_path) identifier_path (identifier_prefixed_path) identifier_prefixed_path (identifier_source_storage) identifier_source_storage )parameters (block (expression_statement (assignment (identifier_comparitor) identifier_comparitor (call (identifier_getattr) identifier_getattr (argument_list (identifier_self) identifier_self (binary_operator (string_'compare_%s') string_'compare_%s' (attribute (identifier_self) identifier_self (identifier_comparison_method) identifier_comparison_method )attribute )binary_operator (None) None )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_comparitor) identifier_comparitor )not_operator (block (expression_statement (assignment (identifier_comparitor) identifier_comparitor (call (attribute (identifier_self) identifier_self (identifier__create_comparitor) identifier__create_comparitor )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_comparison_method) identifier_comparison_method )attribute )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (identifier_comparitor) identifier_comparitor (argument_list (identifier_path) identifier_path (identifier_prefixed_path) identifier_prefixed_path (identifier_source_storage) identifier_source_storage )argument_list )call )return_statement )block )function_definition )module
Returns True if the file should be copied.
(module (function_definition (function_name_escape) function_name_escape (parameters (identifier_self) identifier_self (identifier_text) identifier_text (default_parameter (identifier_quote) identifier_quote (True) True )default_parameter )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_text) identifier_text (identifier_bytes) identifier_bytes )argument_list )call (block (return_statement (call (identifier_escape_b) identifier_escape_b (argument_list (identifier_text) identifier_text (identifier_quote) identifier_quote )argument_list )call )return_statement )block (else_clause (block (return_statement (call (identifier_escape) identifier_escape (argument_list (identifier_text) identifier_text (identifier_quote) identifier_quote )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Escape special characters in HTML
(module (function_definition (function_name_GetClientVersion) function_name_GetClientVersion (parameters (identifier_client_id) identifier_client_id (default_parameter (identifier_token) identifier_token (None) None )default_parameter )parameters (block (if_statement (call (attribute (identifier_data_store) identifier_data_store (identifier_RelationalDBEnabled) identifier_RelationalDBEnabled )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_sinfo) identifier_sinfo (call (attribute (attribute (identifier_data_store) identifier_data_store (identifier_REL_DB) identifier_REL_DB )attribute (identifier_ReadClientStartupInfo) identifier_ReadClientStartupInfo )attribute (argument_list (keyword_argument (identifier_client_id) identifier_client_id (identifier_client_id) identifier_client_id )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_sinfo) identifier_sinfo (None) None )comparison_operator (block (return_statement (attribute (attribute (identifier_sinfo) identifier_sinfo (identifier_client_info) identifier_client_info )attribute (identifier_client_version) identifier_client_version )attribute )return_statement )block (else_clause (block (return_statement (subscript (attribute (identifier_config) identifier_config (identifier_CONFIG) identifier_CONFIG )attribute (string_"Source.version_numeric") string_"Source.version_numeric" )subscript )return_statement )block )else_clause )if_statement )block (else_clause (block (with_statement (with_clause (with_item (as_pattern (call (attribute (attribute (identifier_aff4) identifier_aff4 (identifier_FACTORY) identifier_FACTORY )attribute (identifier_Open) identifier_Open )attribute (argument_list (identifier_client_id) identifier_client_id (keyword_argument (identifier_token) identifier_token (identifier_token) identifier_token )keyword_argument )argument_list )call (as_pattern_target (identifier_client) identifier_client )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_cinfo) identifier_cinfo (call (attribute (identifier_client) identifier_client (identifier_Get) identifier_Get )attribute (argument_list (attribute (attribute (identifier_client) identifier_client (identifier_Schema) identifier_Schema )attribute (identifier_CLIENT_INFO) identifier_CLIENT_INFO )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_cinfo) identifier_cinfo (None) None )comparison_operator (block (return_statement (attribute (identifier_cinfo) identifier_cinfo (identifier_client_version) identifier_client_version )attribute )return_statement )block (else_clause (block (return_statement (subscript (attribute (identifier_config) identifier_config (identifier_CONFIG) identifier_CONFIG )attribute (string_"Source.version_numeric") string_"Source.version_numeric" )subscript )return_statement )block )else_clause )if_statement )block )with_statement )block )else_clause )if_statement )block )function_definition )module
Returns last known GRR version that the client used.
(module (function_definition (function_name_export) function_name_export (parameters (identifier_self) identifier_self (default_parameter (identifier_source) identifier_source (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_uidentities) identifier_uidentities (dictionary )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_uids) identifier_uids (call (attribute (identifier_api) identifier_api (identifier_unique_identities) identifier_unique_identities )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute (keyword_argument (identifier_source) identifier_source (identifier_source) identifier_source )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_uid) identifier_uid (identifier_uids) identifier_uids (block (expression_statement (assignment (identifier_enrollments) identifier_enrollments (list_comprehension (call (attribute (identifier_rol) identifier_rol (identifier_to_dict) identifier_to_dict )attribute (argument_list )argument_list )call (for_in_clause (identifier_rol) identifier_rol (call (attribute (identifier_api) identifier_api (identifier_enrollments) identifier_enrollments )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute (keyword_argument (identifier_uuid) identifier_uuid (attribute (identifier_uid) identifier_uid (identifier_uuid) identifier_uuid )attribute )keyword_argument )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_u) identifier_u (call (attribute (identifier_uid) identifier_uid (identifier_to_dict) identifier_to_dict )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (subscript (identifier_u) identifier_u (string_'identities') string_'identities' )subscript (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 (string_'id') string_'id' )subscript )lambda )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (subscript (identifier_uidentities) identifier_uidentities (attribute (identifier_uid) identifier_uid (identifier_uuid) identifier_uuid )attribute )subscript (identifier_u) identifier_u )assignment )expression_statement (expression_statement (assignment (subscript (subscript (identifier_uidentities) identifier_uidentities (attribute (identifier_uid) identifier_uid (identifier_uuid) identifier_uuid )attribute )subscript (string_'enrollments') string_'enrollments' )subscript (identifier_enrollments) identifier_enrollments )assignment )expression_statement )block )for_statement (expression_statement (assignment (identifier_blacklist) identifier_blacklist (list_comprehension (attribute (identifier_mb) identifier_mb (identifier_excluded) identifier_excluded )attribute (for_in_clause (identifier_mb) identifier_mb (call (attribute (identifier_api) identifier_api (identifier_blacklist) identifier_blacklist )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_db) identifier_db )attribute )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_obj) identifier_obj (dictionary (pair (string_'time') string_'time' (call (identifier_str) identifier_str (argument_list (call (attribute (attribute (identifier_datetime) identifier_datetime (identifier_datetime) identifier_datetime )attribute (identifier_now) identifier_now )attribute (argument_list )argument_list )call )argument_list )call )pair (pair (string_'source') string_'source' (identifier_source) identifier_source )pair (pair (string_'blacklist') string_'blacklist' (identifier_blacklist) identifier_blacklist )pair (pair (string_'organizations') string_'organizations' (dictionary )dictionary )pair (pair (string_'uidentities') string_'uidentities' (identifier_uidentities) identifier_uidentities )pair )dictionary )assignment )expression_statement (return_statement (call (attribute (identifier_json) identifier_json (identifier_dumps) identifier_dumps )attribute (argument_list (identifier_obj) identifier_obj (keyword_argument (identifier_default) identifier_default (attribute (identifier_self) identifier_self (identifier__json_encoder) identifier__json_encoder )attribute )keyword_argument (keyword_argument (identifier_indent) identifier_indent (integer_4) integer_4 )keyword_argument (keyword_argument (identifier_separators) identifier_separators (tuple (string_',') string_',' (string_': ') string_': ' )tuple )keyword_argument (keyword_argument (identifier_sort_keys) identifier_sort_keys (True) True )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Export a set of unique identities. Method to export unique identities from the registry. Identities schema will follow Sorting Hat JSON format. When source parameter is given, only those unique identities which have one or more identities from the given source will be exported. :param source: source of the identities to export :returns: a JSON formatted str
(module (function_definition (function_name__x_start_ok) function_name__x_start_ok (parameters (identifier_self) identifier_self (identifier_client_properties) identifier_client_properties (identifier_mechanism) identifier_mechanism (identifier_response) identifier_response (identifier_locale) identifier_locale )parameters (block (if_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_server_capabilities) identifier_server_capabilities )attribute (identifier_get) identifier_get )attribute (argument_list (string_'consumer_cancel_notify') string_'consumer_cancel_notify' )argument_list )call (block (if_statement (comparison_operator (string_'capabilities') string_'capabilities' (identifier_client_properties) identifier_client_properties )comparison_operator (block (expression_statement (assignment (subscript (identifier_client_properties) identifier_client_properties (string_'capabilities') string_'capabilities' )subscript (dictionary )dictionary )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (subscript (identifier_client_properties) identifier_client_properties (string_'capabilities') string_'capabilities' )subscript (string_'consumer_cancel_notify') string_'consumer_cancel_notify' )subscript (True) True )assignment )expression_statement )block )if_statement (if_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_server_capabilities) identifier_server_capabilities )attribute (identifier_get) identifier_get )attribute (argument_list (string_'connection.blocked') string_'connection.blocked' )argument_list )call (block (if_statement (comparison_operator (string_'capabilities') string_'capabilities' (identifier_client_properties) identifier_client_properties )comparison_operator (block (expression_statement (assignment (subscript (identifier_client_properties) identifier_client_properties (string_'capabilities') string_'capabilities' )subscript (dictionary )dictionary )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (subscript (identifier_client_properties) identifier_client_properties (string_'capabilities') string_'capabilities' )subscript (string_'connection.blocked') string_'connection.blocked' )subscript (True) True )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_args) identifier_args (call (identifier_AMQPWriter) identifier_AMQPWriter (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_args) identifier_args (identifier_write_table) identifier_write_table )attribute (argument_list (identifier_client_properties) identifier_client_properties )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_args) identifier_args (identifier_write_shortstr) identifier_write_shortstr )attribute (argument_list (identifier_mechanism) identifier_mechanism )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_args) identifier_args (identifier_write_longstr) identifier_write_longstr )attribute (argument_list (identifier_response) identifier_response )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_args) identifier_args (identifier_write_shortstr) identifier_write_shortstr )attribute (argument_list (identifier_locale) identifier_locale )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__send_method) identifier__send_method )attribute (argument_list (tuple (integer_10) integer_10 (integer_11) integer_11 )tuple (identifier_args) identifier_args )argument_list )call )expression_statement )block )function_definition )module
Select security mechanism and locale This method selects a SASL security mechanism. ASL uses SASL (RFC2222) to negotiate authentication and encryption. PARAMETERS: client_properties: table client properties mechanism: shortstr selected security mechanism A single security mechanisms selected by the client, which must be one of those specified by the server. RULE: The client SHOULD authenticate using the highest- level security profile it can handle from the list provided by the server. RULE: The mechanism field MUST contain one of the security mechanisms proposed by the server in the Start method. If it doesn't, the server MUST close the socket. response: longstr security response data A block of opaque data passed to the security mechanism. The contents of this data are defined by the SASL security mechanism. For the PLAIN security mechanism this is defined as a field table holding two fields, LOGIN and PASSWORD. locale: shortstr selected message locale A single message local selected by the client, which must be one of those specified by the server.
(module (function_definition (function_name_oauth_request) function_name_oauth_request (parameters (identifier_self) identifier_self (identifier_url) identifier_url (identifier_method) identifier_method (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute (call (attribute (identifier_self) identifier_self (identifier_get_session) identifier_get_session )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__internal_request) identifier__internal_request )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_session) identifier_session )attribute (identifier_url) identifier_url (identifier_method) identifier_method (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Makes a request to url using an oauth session :param str url: url to send request to :param str method: type of request (get/put/post/patch/delete) :param kwargs: extra params to send to the request api :return: Response of the request :rtype: requests.Response
(module (function_definition (function_name_UNEXPOSED) function_name_UNEXPOSED (parameters (identifier_self) identifier_self (identifier__cursor_type) identifier__cursor_type )parameters (block (expression_statement (assignment (identifier__decl) identifier__decl (call (attribute (identifier__cursor_type) identifier__cursor_type (identifier_get_declaration) identifier_get_declaration )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_name) identifier_name (call (attribute (identifier_self) identifier_self (identifier_get_unique_name) identifier_get_unique_name )attribute (argument_list (identifier__decl) identifier__decl )argument_list )call )assignment )expression_statement (if_statement (call (attribute (identifier_self) identifier_self (identifier_is_registered) identifier_is_registered )attribute (argument_list (identifier_name) identifier_name )argument_list )call (block (expression_statement (assignment (identifier_obj) identifier_obj (call (attribute (identifier_self) identifier_self (identifier_get_registered) identifier_get_registered )attribute (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_obj) identifier_obj (call (attribute (identifier_self) identifier_self (identifier_parse_cursor) identifier_parse_cursor )attribute (argument_list (identifier__decl) identifier__decl )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_obj) identifier_obj )return_statement )block )function_definition )module
Handles unexposed types. Returns the canonical type instead.
(module (function_definition (function_name__get_cmap) function_name__get_cmap (parameters (typed_parameter (identifier_kwargs) identifier_kwargs (type (identifier_dict) identifier_dict )type )typed_parameter )parameters (type (attribute (identifier_colors) identifier_colors (identifier_Colormap) identifier_Colormap )attribute )type (block (import_from_statement (dotted_name (identifier_matplotlib) identifier_matplotlib (identifier_colors) identifier_colors )dotted_name (dotted_name (identifier_ListedColormap) identifier_ListedColormap )dotted_name )import_from_statement (expression_statement (assignment (identifier_cmap) identifier_cmap (call (attribute (identifier_kwargs) identifier_kwargs (identifier_pop) identifier_pop )attribute (argument_list (string_"cmap") string_"cmap" (identifier_default_cmap) identifier_default_cmap )argument_list )call )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_cmap) identifier_cmap (identifier_list) identifier_list )argument_list )call (block (return_statement (call (identifier_ListedColormap) identifier_ListedColormap (argument_list (identifier_cmap) identifier_cmap )argument_list )call )return_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_cmap) identifier_cmap (identifier_str) identifier_str )argument_list )call (block (try_statement (block (expression_statement (assignment (identifier_cmap) identifier_cmap (call (attribute (identifier_plt) identifier_plt (identifier_get_cmap) identifier_get_cmap )attribute (argument_list (identifier_cmap) identifier_cmap )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_BaseException) identifier_BaseException (as_pattern_target (identifier_exc) identifier_exc )as_pattern_target )as_pattern (block (try_statement (block (import_statement (aliased_import (dotted_name (identifier_seaborn) identifier_seaborn )dotted_name (identifier_sns) identifier_sns )aliased_import )import_statement (expression_statement (assignment (identifier_sns_palette) identifier_sns_palette (call (attribute (identifier_sns) identifier_sns (identifier_color_palette) identifier_color_palette )attribute (argument_list (identifier_cmap) identifier_cmap (keyword_argument (identifier_n_colors) identifier_n_colors (integer_256) integer_256 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cmap) identifier_cmap (call (identifier_ListedColormap) identifier_ListedColormap (argument_list (identifier_sns_palette) identifier_sns_palette (keyword_argument (identifier_name) identifier_name (identifier_cmap) identifier_cmap )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (identifier_ImportError) identifier_ImportError (block (raise_statement (identifier_exc) identifier_exc )raise_statement )block )except_clause )try_statement )block )except_clause )try_statement )block )if_statement (return_statement (identifier_cmap) identifier_cmap )return_statement )block )function_definition )module
Get the colour map for plots that support it. Parameters ---------- cmap : str or colors.Colormap or list of colors A map or an instance of cmap. This can also be a seaborn palette (if seaborn is installed).
(module (function_definition (function_name_polynomial_exp_mod) function_name_polynomial_exp_mod (parameters (identifier_base) identifier_base (identifier_exponent) identifier_exponent (identifier_polymod) identifier_polymod (identifier_p) identifier_p )parameters (block (assert_statement (comparison_operator (identifier_exponent) identifier_exponent (identifier_p) identifier_p )comparison_operator )assert_statement (if_statement (comparison_operator (identifier_exponent) identifier_exponent (integer_0) integer_0 )comparison_operator (block (return_statement (list (integer_1) integer_1 )list )return_statement )block )if_statement (expression_statement (assignment (identifier_G) identifier_G (identifier_base) identifier_base )assignment )expression_statement (expression_statement (assignment (identifier_k) identifier_k (identifier_exponent) identifier_exponent )assignment )expression_statement (if_statement (comparison_operator (binary_operator (identifier_k) identifier_k (integer_2) integer_2 )binary_operator (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_s) identifier_s (identifier_G) identifier_G )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_s) identifier_s (list (integer_1) integer_1 )list )assignment )expression_statement )block )else_clause )if_statement (while_statement (comparison_operator (identifier_k) identifier_k (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_k) identifier_k (binary_operator (identifier_k) identifier_k (integer_2) integer_2 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_G) identifier_G (call (identifier_polynomial_multiply_mod) identifier_polynomial_multiply_mod (argument_list (identifier_G) identifier_G (identifier_G) identifier_G (identifier_polymod) identifier_polymod (identifier_p) identifier_p )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (binary_operator (identifier_k) identifier_k (integer_2) integer_2 )binary_operator (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_s) identifier_s (call (identifier_polynomial_multiply_mod) identifier_polynomial_multiply_mod (argument_list (identifier_G) identifier_G (identifier_s) identifier_s (identifier_polymod) identifier_polymod (identifier_p) identifier_p )argument_list )call )assignment )expression_statement )block )if_statement )block )while_statement (return_statement (identifier_s) identifier_s )return_statement )block )function_definition )module
Polynomial exponentiation modulo a polynomial over ints mod p. Polynomials are represented as lists of coefficients of increasing powers of x.
(module (function_definition (function_name_try_pick_piece_of_work) function_name_try_pick_piece_of_work (parameters (identifier_self) identifier_self (identifier_worker_id) identifier_worker_id (default_parameter (identifier_submission_id) identifier_submission_id (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_client) identifier_client (attribute (identifier_self) identifier_self (identifier__datastore_client) identifier__datastore_client )attribute )assignment )expression_statement (expression_statement (assignment (identifier_unclaimed_work_ids) identifier_unclaimed_work_ids (None) None )assignment )expression_statement (if_statement (identifier_submission_id) identifier_submission_id (block (expression_statement (assignment (identifier_unclaimed_work_ids) identifier_unclaimed_work_ids (list_comprehension (identifier_k) identifier_k (for_in_clause (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (identifier_iteritems) identifier_iteritems (argument_list (attribute (identifier_self) identifier_self (identifier_work) identifier_work )attribute )argument_list )call )for_in_clause (if_clause (boolean_operator (call (identifier_is_unclaimed) identifier_is_unclaimed (argument_list (identifier_v) identifier_v )argument_list )call (parenthesized_expression (comparison_operator (subscript (identifier_v) identifier_v (string_'submission_id') string_'submission_id' )subscript (identifier_submission_id) identifier_submission_id )comparison_operator )parenthesized_expression )boolean_operator )if_clause )list_comprehension )assignment )expression_statement )block )if_statement (if_statement (not_operator (identifier_unclaimed_work_ids) identifier_unclaimed_work_ids )not_operator (block (expression_statement (assignment (identifier_unclaimed_work_ids) identifier_unclaimed_work_ids (list_comprehension (identifier_k) identifier_k (for_in_clause (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (identifier_iteritems) identifier_iteritems (argument_list (attribute (identifier_self) identifier_self (identifier_work) identifier_work )attribute )argument_list )call )for_in_clause (if_clause (call (identifier_is_unclaimed) identifier_is_unclaimed (argument_list (identifier_v) identifier_v )argument_list )call )if_clause )list_comprehension )assignment )expression_statement )block )if_statement (if_statement (identifier_unclaimed_work_ids) identifier_unclaimed_work_ids (block (expression_statement (assignment (identifier_next_work_id) identifier_next_work_id (call (attribute (identifier_random) identifier_random (identifier_choice) identifier_choice )attribute (argument_list (identifier_unclaimed_work_ids) identifier_unclaimed_work_ids )argument_list )call )assignment )expression_statement )block (else_clause (block (return_statement (None) None )return_statement )block )else_clause )if_statement (try_statement (block (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_client) identifier_client (identifier_transaction) identifier_transaction )attribute (argument_list )argument_list )call (as_pattern_target (identifier_transaction) identifier_transaction )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_work_key) identifier_work_key (call (attribute (identifier_client) identifier_client (identifier_key) identifier_key )attribute (argument_list (identifier_KIND_WORK_TYPE) identifier_KIND_WORK_TYPE (attribute (identifier_self) identifier_self (identifier__work_type_entity_id) identifier__work_type_entity_id )attribute (identifier_KIND_WORK) identifier_KIND_WORK (identifier_next_work_id) identifier_next_work_id )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_work_entity) identifier_work_entity (call (attribute (identifier_client) identifier_client (identifier_get) identifier_get )attribute (argument_list (identifier_work_key) identifier_work_key (keyword_argument (identifier_transaction) identifier_transaction (identifier_transaction) identifier_transaction )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (identifier_is_unclaimed) identifier_is_unclaimed (argument_list (identifier_work_entity) identifier_work_entity )argument_list )call )not_operator (block (return_statement (None) None )return_statement )block )if_statement (expression_statement (assignment (subscript (identifier_work_entity) identifier_work_entity (string_'claimed_worker_id') string_'claimed_worker_id' )subscript (identifier_worker_id) identifier_worker_id )assignment )expression_statement (expression_statement (assignment (subscript (identifier_work_entity) identifier_work_entity (string_'claimed_worker_start_time') string_'claimed_worker_start_time' )subscript (call (identifier_get_integer_time) identifier_get_integer_time (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_transaction) identifier_transaction (identifier_put) identifier_put )attribute (argument_list (identifier_work_entity) identifier_work_entity )argument_list )call )expression_statement )block )with_statement )block (except_clause (identifier_Exception) identifier_Exception (block (return_statement (None) None )return_statement )block )except_clause )try_statement (return_statement (identifier_next_work_id) identifier_next_work_id )return_statement )block )function_definition )module
Tries pick next unclaimed piece of work to do. Attempt to claim work piece is done using Cloud Datastore transaction, so only one worker can claim any work piece at a time. Args: worker_id: ID of current worker submission_id: if not None then this method will try to pick piece of work for this submission Returns: ID of the claimed work piece
(module (function_definition (function_name_phases_with) function_name_phases_with (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (type (list (identifier_PhaseOutput) identifier_PhaseOutput )list )type (block (return_statement (list_comprehension (identifier_phase) identifier_phase (for_in_clause (identifier_phase) identifier_phase (attribute (identifier_self) identifier_self (identifier_phases) identifier_phases )attribute )for_in_clause (if_clause (call (identifier_all) identifier_all (argument_list (list_comprehension (comparison_operator (call (identifier_getattr) identifier_getattr (argument_list (identifier_phase) identifier_phase (identifier_key) identifier_key )argument_list )call (identifier_value) identifier_value )comparison_operator (for_in_clause (pattern_list (identifier_key) identifier_key (identifier_value) identifier_value )pattern_list (call (attribute (identifier_kwargs) identifier_kwargs (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )list_comprehension )argument_list )call )if_clause )list_comprehension )return_statement )block )function_definition )module
Filters phases. If no arguments are passed all phases are returned. Arguments must be key value pairs, with phase, data or pipeline as the key. Parameters ---------- kwargs Filters, e.g. pipeline=pipeline1
(module (function_definition (function_name_generate_hotp) function_name_generate_hotp (parameters (identifier_secret) identifier_secret (default_parameter (identifier_counter) identifier_counter (integer_4) integer_4 )default_parameter )parameters (block (expression_statement (assignment (identifier_msg) identifier_msg (call (attribute (identifier_struct) identifier_struct (identifier_pack) identifier_pack )attribute (argument_list (string_'>Q') string_'>Q' (identifier_counter) identifier_counter )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_digest) identifier_digest (call (attribute (call (attribute (identifier_hmac) identifier_hmac (identifier_new) identifier_new )attribute (argument_list (call (identifier_to_bytes) identifier_to_bytes (argument_list (identifier_secret) identifier_secret )argument_list )call (identifier_msg) identifier_msg (attribute (identifier_hashlib) identifier_hashlib (identifier_sha1) identifier_sha1 )attribute )argument_list )call (identifier_digest) identifier_digest )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_ob) identifier_ob (subscript (identifier_digest) identifier_digest (integer_19) integer_19 )subscript )assignment )expression_statement (if_statement (identifier_PY2) identifier_PY2 (block (expression_statement (assignment (identifier_ob) identifier_ob (call (identifier_ord) identifier_ord (argument_list (identifier_ob) identifier_ob )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_pos) identifier_pos (binary_operator (identifier_ob) identifier_ob (integer_15) integer_15 )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_base) identifier_base (binary_operator (subscript (call (attribute (identifier_struct) identifier_struct (identifier_unpack) identifier_unpack )attribute (argument_list (string_'>I') string_'>I' (subscript (identifier_digest) identifier_digest (slice (identifier_pos) identifier_pos (colon) colon (binary_operator (identifier_pos) identifier_pos (integer_4) integer_4 )binary_operator )slice )subscript )argument_list )call (integer_0) integer_0 )subscript (integer_0x7fffffff) integer_0x7fffffff )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_token) identifier_token (binary_operator (identifier_base) identifier_base (integer_1000000) integer_1000000 )binary_operator )assignment )expression_statement (return_statement (identifier_token) identifier_token )return_statement )block )function_definition )module
Generate a HOTP code. :param secret: A secret token for the authentication. :param counter: HOTP is a counter based algorithm.
(module (function_definition (function_name_settled) function_name_settled (parameters (identifier_self) identifier_self (typed_parameter (identifier_block_identifier) identifier_block_identifier (type (identifier_BlockSpecification) identifier_BlockSpecification )type )typed_parameter )parameters (type (identifier_bool) identifier_bool )type (block (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_token_network) identifier_token_network )attribute (identifier_channel_is_settled) identifier_channel_is_settled )attribute (argument_list (keyword_argument (identifier_participant1) identifier_participant1 (attribute (identifier_self) identifier_self (identifier_participant1) identifier_participant1 )attribute )keyword_argument (keyword_argument (identifier_participant2) identifier_participant2 (attribute (identifier_self) identifier_self (identifier_participant2) identifier_participant2 )attribute )keyword_argument (keyword_argument (identifier_block_identifier) identifier_block_identifier (identifier_block_identifier) identifier_block_identifier )keyword_argument (keyword_argument (identifier_channel_identifier) identifier_channel_identifier (attribute (identifier_self) identifier_self (identifier_channel_identifier) identifier_channel_identifier )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Returns if the channel is settled.
(module (function_definition (function_name_get_perceval_params_from_url) function_name_get_perceval_params_from_url (parameters (identifier_cls) identifier_cls (identifier_urls) identifier_urls )parameters (block (expression_statement (assignment (identifier_params) identifier_params (list )list )assignment )expression_statement (expression_statement (assignment (identifier_dparam) identifier_dparam (call (attribute (identifier_cls) identifier_cls (identifier_get_arthur_params_from_url) identifier_get_arthur_params_from_url )attribute (argument_list (identifier_urls) identifier_urls )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_params) identifier_params (identifier_append) identifier_append )attribute (argument_list (subscript (identifier_dparam) identifier_dparam (string_"url") string_"url" )subscript )argument_list )call )expression_statement (return_statement (identifier_params) identifier_params )return_statement )block )function_definition )module
Get the perceval params given the URLs for the data source
(module (function_definition (function_name__get_from_dapi_or_mirror) function_name__get_from_dapi_or_mirror (parameters (identifier_link) identifier_link )parameters (block (expression_statement (assignment (identifier_exception) identifier_exception (False) False )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_req) identifier_req (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (binary_operator (call (identifier__api_url) identifier__api_url (argument_list )argument_list )call (identifier_link) identifier_link )binary_operator (keyword_argument (identifier_timeout) identifier_timeout (integer_5) integer_5 )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (attribute (attribute (identifier_requests) identifier_requests (identifier_exceptions) identifier_exceptions )attribute (identifier_RequestException) identifier_RequestException )attribute (block (expression_statement (assignment (identifier_exception) identifier_exception (True) True )assignment )expression_statement )block )except_clause )try_statement (expression_statement (assignment (identifier_attempts) identifier_attempts (integer_1) integer_1 )assignment )expression_statement (while_statement (boolean_operator (identifier_exception) identifier_exception (call (attribute (call (identifier_str) identifier_str (argument_list (attribute (identifier_req) identifier_req (identifier_status_code) identifier_status_code )attribute )argument_list )call (identifier_startswith) identifier_startswith )attribute (argument_list (string_'5') string_'5' )argument_list )call )boolean_operator (block (if_statement (comparison_operator (identifier_attempts) identifier_attempts (integer_5) integer_5 )comparison_operator (block (raise_statement (call (identifier_DapiCommError) identifier_DapiCommError (argument_list (string_'Could not connect to the API endpoint, sorry.') string_'Could not connect to the API endpoint, sorry.' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_exception) identifier_exception (False) False )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_req) identifier_req (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (binary_operator (call (identifier__api_url) identifier__api_url (argument_list (binary_operator (identifier_attempts) identifier_attempts (integer_2) integer_2 )binary_operator )argument_list )call (identifier_link) identifier_link )binary_operator (keyword_argument (identifier_timeout) identifier_timeout (binary_operator (integer_5) integer_5 (identifier_attempts) identifier_attempts )binary_operator )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (attribute (attribute (identifier_requests) identifier_requests (identifier_exceptions) identifier_exceptions )attribute (identifier_RequestException) identifier_RequestException )attribute (block (expression_statement (assignment (identifier_exception) identifier_exception (True) True )assignment )expression_statement )block )except_clause )try_statement (expression_statement (augmented_assignment (identifier_attempts) identifier_attempts (integer_1) integer_1 )augmented_assignment )expression_statement )block )while_statement (return_statement (identifier_req) identifier_req )return_statement )block )function_definition )module
Tries to get the link form DAPI or the mirror
(module (function_definition (function_name_bind) function_name_bind (parameters (identifier_value) identifier_value (identifier_name) identifier_name )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_Markup) identifier_Markup )argument_list )call (block (return_statement (identifier_value) identifier_value )return_statement )block (elif_clause (call (identifier_requires_in_clause) identifier_requires_in_clause (argument_list (identifier_value) identifier_value )argument_list )call (block (raise_statement (call (identifier_MissingInClauseException) identifier_MissingInClauseException (argument_list )argument_list )call )raise_statement )block )elif_clause (else_clause (block (return_statement (call (identifier__bind_param) identifier__bind_param (argument_list (attribute (identifier__thread_local) identifier__thread_local (identifier_bind_params) identifier_bind_params )attribute (identifier_name) identifier_name (identifier_value) identifier_value )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
A filter that prints %s, and stores the value in an array, so that it can be bound using a prepared statement This filter is automatically applied to every {{variable}} during the lexing stage, so developers can't forget to bind
(module (function_definition (function_name_log_warning) function_name_log_warning (parameters (identifier_msg) identifier_msg (default_parameter (identifier_logger) identifier_logger (string_"TaskLogger") string_"TaskLogger" )default_parameter )parameters (block (expression_statement (assignment (identifier_tasklogger) identifier_tasklogger (call (identifier_get_tasklogger) identifier_get_tasklogger (argument_list (identifier_logger) identifier_logger )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_tasklogger) identifier_tasklogger (identifier_warning) identifier_warning )attribute (argument_list (identifier_msg) identifier_msg )argument_list )call )expression_statement (return_statement (identifier_tasklogger) identifier_tasklogger )return_statement )block )function_definition )module
Log a WARNING message Convenience function to log a message to the default Logger Parameters ---------- msg : str Message to be logged logger : str, optional (default: "TaskLogger") Unique name of the logger to retrieve Returns ------- logger : TaskLogger
(module (function_definition (function_name_sorted_source_files) function_name_sorted_source_files (parameters (identifier_self) identifier_self )parameters (block (assert_statement (attribute (identifier_self) identifier_self (identifier_final) identifier_final )attribute (string_'Call build() before using the graph.') string_'Call build() before using the graph.' )assert_statement (expression_statement (assignment (identifier_out) identifier_out (list )list )assignment )expression_statement (for_statement (identifier_node) identifier_node (call (attribute (identifier_nx) identifier_nx (identifier_topological_sort) identifier_topological_sort )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_graph) identifier_graph )attribute )argument_list )call (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_node) identifier_node (identifier_NodeSet) identifier_NodeSet )argument_list )call (block (expression_statement (call (attribute (identifier_out) identifier_out (identifier_append) identifier_append )attribute (argument_list (attribute (identifier_node) identifier_node (identifier_nodes) identifier_nodes )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_out) identifier_out (identifier_append) identifier_append )attribute (argument_list (list (identifier_node) identifier_node )list )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (call (identifier_list) identifier_list (argument_list (call (identifier_reversed) identifier_reversed (argument_list (identifier_out) identifier_out )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Returns a list of targets in topologically sorted order.
(module (function_definition (function_name_collapse_focussed) function_name_collapse_focussed (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (identifier_implementsCollapseAPI) identifier_implementsCollapseAPI (argument_list (attribute (identifier_self) identifier_self (identifier__tree) identifier__tree )attribute )argument_list )call (block (expression_statement (assignment (pattern_list (identifier_w) identifier_w (identifier_focuspos) identifier_focuspos )pattern_list (call (attribute (identifier_self) identifier_self (identifier_get_focus) identifier_get_focus )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__tree) identifier__tree )attribute (identifier_collapse) identifier_collapse )attribute (argument_list (identifier_focuspos) identifier_focuspos )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__walker) identifier__walker )attribute (identifier_clear_cache) identifier_clear_cache )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_refresh) identifier_refresh )attribute (argument_list )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Collapse currently focussed position; works only if the underlying tree allows it.
(module (function_definition (function_name_drive_enclosures) function_name_drive_enclosures (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier___drive_enclures) identifier___drive_enclures )attribute )not_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier___drive_enclures) identifier___drive_enclures )attribute (call (identifier_DriveEnclosures) identifier_DriveEnclosures (argument_list (attribute (identifier_self) identifier_self (identifier___connection) identifier___connection )attribute )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (attribute (identifier_self) identifier_self (identifier___drive_enclures) identifier___drive_enclures )attribute )return_statement )block )function_definition )module
Gets the Drive Enclosures API client. Returns: DriveEnclosures:
(module (function_definition (function_name_get_language_database) function_name_get_language_database (parameters )parameters (block (expression_statement (assignment (identifier_lang) identifier_lang (None) None )assignment )expression_statement (expression_statement (assignment (identifier_language) identifier_language (call (identifier_get_language) identifier_get_language (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_language) identifier_language (block (for_statement (identifier_x) identifier_x (attribute (identifier_settings) identifier_settings (identifier_LANGUAGES_DATABASES) identifier_LANGUAGES_DATABASES )attribute (block (if_statement (comparison_operator (call (attribute (identifier_x) identifier_x (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call (call (attribute (identifier_language) identifier_language (identifier_upper) identifier_upper )attribute (argument_list )argument_list )call )comparison_operator (block (expression_statement (assignment (identifier_lang) identifier_lang (identifier_language) identifier_language )assignment )expression_statement (break_statement )break_statement )block )if_statement )block )for_statement )block )if_statement (if_statement (comparison_operator (identifier_lang) identifier_lang (None) None )comparison_operator (block (expression_statement (assignment (identifier_lang) identifier_lang (subscript (attribute (identifier_settings) identifier_settings (identifier_LANGUAGES_DATABASES) identifier_LANGUAGES_DATABASES )attribute (integer_0) integer_0 )subscript )assignment )expression_statement )block )if_statement (return_statement (call (attribute (identifier_lang) identifier_lang (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Return the language to be used to search the database contents
(module (function_definition (function_name_read_vpcs_stdout) function_name_read_vpcs_stdout (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_output) identifier_output (string_"") string_"" )assignment )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier__vpcs_stdout_file) identifier__vpcs_stdout_file )attribute (block (try_statement (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (attribute (identifier_self) identifier_self (identifier__vpcs_stdout_file) identifier__vpcs_stdout_file )attribute (string_"rb") string_"rb" )argument_list )call (as_pattern_target (identifier_file) identifier_file )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_output) identifier_output (call (attribute (call (attribute (identifier_file) identifier_file (identifier_read) identifier_read )attribute (argument_list )argument_list )call (identifier_decode) identifier_decode )attribute (argument_list (string_"utf-8") string_"utf-8" (keyword_argument (identifier_errors) identifier_errors (string_"replace") string_"replace" )keyword_argument )argument_list )call )assignment )expression_statement )block )with_statement )block (except_clause (as_pattern (identifier_OSError) identifier_OSError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_warn) identifier_warn )attribute (argument_list (call (attribute (string_"Could not read {}: {}") string_"Could not read {}: {}" (identifier_format) identifier_format )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__vpcs_stdout_file) identifier__vpcs_stdout_file )attribute (identifier_e) identifier_e )argument_list )call )argument_list )call )expression_statement )block )except_clause )try_statement )block )if_statement (return_statement (identifier_output) identifier_output )return_statement )block )function_definition )module
Reads the standard output of the VPCS process. Only use when the process has been stopped or has crashed.
(module (function_definition (function_name_libvlc_media_duplicate) function_name_libvlc_media_duplicate (parameters (identifier_p_md) identifier_p_md )parameters (block (expression_statement (assignment (identifier_f) identifier_f (boolean_operator (call (attribute (identifier__Cfunctions) identifier__Cfunctions (identifier_get) identifier_get )attribute (argument_list (string_'libvlc_media_duplicate') string_'libvlc_media_duplicate' (None) None )argument_list )call (line_continuation_\) line_continuation_\ (call (identifier__Cfunction) identifier__Cfunction (argument_list (string_'libvlc_media_duplicate') string_'libvlc_media_duplicate' (tuple (tuple (integer_1) integer_1 )tuple )tuple (call (identifier_class_result) identifier_class_result (argument_list (identifier_Media) identifier_Media )argument_list )call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_void_p) identifier_c_void_p )attribute (identifier_Media) identifier_Media )argument_list )call )boolean_operator )assignment )expression_statement (return_statement (call (identifier_f) identifier_f (argument_list (identifier_p_md) identifier_p_md )argument_list )call )return_statement )block )function_definition )module
Duplicate a media descriptor object. @param p_md: a media descriptor object.
(module (function_definition (function_name_get_port) function_name_get_port (parameters (identifier_self) identifier_self (identifier_adapter_number) identifier_adapter_number (identifier_port_number) identifier_port_number )parameters (block (for_statement (identifier_port) identifier_port (attribute (identifier_self) identifier_self (identifier_ports) identifier_ports )attribute (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_port) identifier_port (identifier_adapter_number) identifier_adapter_number )attribute (identifier_adapter_number) identifier_adapter_number )comparison_operator (comparison_operator (attribute (identifier_port) identifier_port (identifier_port_number) identifier_port_number )attribute (identifier_port_number) identifier_port_number )comparison_operator )boolean_operator (block (return_statement (identifier_port) identifier_port )return_statement )block )if_statement )block )for_statement (return_statement (None) None )return_statement )block )function_definition )module
Return the port for this adapter_number and port_number or returns None if the port is not found
(module (function_definition (function_name__decref_dependencies_recursive) function_name__decref_dependencies_recursive (parameters (identifier_self) identifier_self (identifier_term) identifier_term (identifier_refcounts) identifier_refcounts (identifier_garbage) identifier_garbage )parameters (block (for_statement (pattern_list (identifier_parent) identifier_parent (identifier__) identifier__ )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_graph) identifier_graph )attribute (identifier_in_edges) identifier_in_edges )attribute (argument_list (list (identifier_term) identifier_term )list )argument_list )call (block (expression_statement (augmented_assignment (subscript (identifier_refcounts) identifier_refcounts (identifier_parent) identifier_parent )subscript (integer_1) integer_1 )augmented_assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_refcounts) identifier_refcounts (identifier_parent) identifier_parent )subscript (integer_0) integer_0 )comparison_operator (block (expression_statement (call (attribute (identifier_garbage) identifier_garbage (identifier_add) identifier_add )attribute (argument_list (identifier_parent) identifier_parent )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__decref_dependencies_recursive) identifier__decref_dependencies_recursive )attribute (argument_list (identifier_parent) identifier_parent (identifier_refcounts) identifier_refcounts (identifier_garbage) identifier_garbage )argument_list )call )expression_statement )block )if_statement )block )for_statement )block )function_definition )module
Decrement terms recursively. Notes ----- This should only be used to build the initial workspace, after that we should use: :meth:`~zipline.pipeline.graph.TermGraph.decref_dependencies`
(module (function_definition (function_name_register_migration) function_name_register_migration (parameters (identifier_self) identifier_self (typed_parameter (identifier_migration) identifier_migration (type (string_'Migration') string_'Migration' )type )typed_parameter )parameters (block (if_statement (comparison_operator (attribute (identifier_migration) identifier_migration (identifier_from_ver) identifier_from_ver )attribute (attribute (identifier_migration) identifier_migration (identifier_to_ver) identifier_to_ver )attribute )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Migration cannot downgrade verson') string_'Migration cannot downgrade verson' )argument_list )call )raise_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_migration) identifier_migration (identifier_from_ver) identifier_from_ver )attribute (attribute (identifier_self) identifier_self (identifier__final_ver) identifier__final_ver )attribute )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_'Cannot register disjoint migration') string_'Cannot register disjoint migration' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__migrations) identifier__migrations )attribute (attribute (identifier_migration) identifier_migration (identifier_from_ver) identifier_from_ver )attribute )subscript (identifier_migration) identifier_migration )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__final_ver) identifier__final_ver )attribute (attribute (identifier_migration) identifier_migration (identifier_to_ver) identifier_to_ver )attribute )assignment )expression_statement )block )function_definition )module
Register a migration. You can only register migrations in order. For example, you can register migrations from version 1 to 2, then 2 to 3, then 3 to 4. You cannot register 1 to 2 followed by 3 to 4.
(module (function_definition (function_name_from_deformation) function_name_from_deformation (parameters (identifier_cls) identifier_cls (identifier_deformation) identifier_deformation )parameters (block (expression_statement (assignment (identifier_dfm) identifier_dfm (call (identifier_Deformation) identifier_Deformation (argument_list (identifier_deformation) identifier_deformation )argument_list )call )assignment )expression_statement (return_statement (call (identifier_cls) identifier_cls (argument_list (binary_operator (float_0.5) float_0.5 (parenthesized_expression (binary_operator (call (attribute (identifier_np) identifier_np (identifier_dot) identifier_dot )attribute (argument_list (attribute (identifier_dfm) identifier_dfm (identifier_trans) identifier_trans )attribute (identifier_dfm) identifier_dfm )argument_list )call (call (attribute (identifier_np) identifier_np (identifier_eye) identifier_eye )attribute (argument_list (integer_3) integer_3 )argument_list )call )binary_operator )parenthesized_expression )binary_operator )argument_list )call )return_statement )block )function_definition )module
Factory method that returns a Strain object from a deformation gradient Args: deformation (3x3 array-like):
(module (function_definition (function_name_contains_point) function_name_contains_point (parameters (identifier_self) identifier_self (identifier_p) identifier_p )parameters (block (for_statement (identifier_iv) identifier_iv (attribute (identifier_self) identifier_self (identifier_s_center) identifier_s_center )attribute (block (if_statement (call (attribute (identifier_iv) identifier_iv (identifier_contains_point) identifier_contains_point )attribute (argument_list (identifier_p) identifier_p )argument_list )call (block (return_statement (True) True )return_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_branch) identifier_branch (subscript (identifier_self) identifier_self (comparison_operator (identifier_p) identifier_p (attribute (identifier_self) identifier_self (identifier_x_center) identifier_x_center )attribute )comparison_operator )subscript )assignment )expression_statement (return_statement (boolean_operator (identifier_branch) identifier_branch (call (attribute (identifier_branch) identifier_branch (identifier_contains_point) identifier_contains_point )attribute (argument_list (identifier_p) identifier_p )argument_list )call )boolean_operator )return_statement )block )function_definition )module
Returns whether this node or a child overlaps p.
(module (function_definition (function_name_filter_query) function_name_filter_query (parameters (identifier_self) identifier_self (identifier_query) identifier_query )parameters (block (for_statement (identifier_filter_class) identifier_filter_class (call (identifier_list) identifier_list (argument_list (attribute (identifier_self) identifier_self (identifier_filter_classes) identifier_filter_classes )attribute )argument_list )call (block (expression_statement (assignment (identifier_query) identifier_query (call (attribute (call (identifier_filter_class) identifier_filter_class (argument_list )argument_list )call (identifier_filter_query) identifier_filter_query )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_request) identifier_request )attribute (identifier_query) identifier_query (identifier_self) identifier_self )argument_list )call )assignment )expression_statement )block )for_statement (return_statement (identifier_query) identifier_query )return_statement )block )function_definition )module
Filter the given query using the filter classes specified on the view if any are specified.
(module (function_definition (function_name_sentiment) function_name_sentiment (parameters (default_parameter (identifier_text) identifier_text (None) None )default_parameter (default_parameter (identifier_confidence) identifier_confidence (False) False )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_words) identifier_words (call (attribute (identifier_text) identifier_text (identifier_split) identifier_split )attribute (argument_list (string_" ") string_" " )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_words) identifier_words (list_comprehension (identifier_word) identifier_word (for_in_clause (identifier_word) identifier_word (identifier_words) identifier_words )for_in_clause (if_clause (identifier_word) identifier_word )if_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_features) identifier_features (call (identifier_word_features) identifier_word_features (argument_list (identifier_words) identifier_words )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_classification) identifier_classification (call (attribute (identifier_classifier) identifier_classifier (identifier_classify) identifier_classify )attribute (argument_list (identifier_features) identifier_features )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_confidence_classification) identifier_confidence_classification (call (attribute (call (attribute (identifier_classifier) identifier_classifier (identifier_prob_classify) identifier_prob_classify )attribute (argument_list (identifier_features) identifier_features )argument_list )call (identifier_prob) identifier_prob )attribute (argument_list (identifier_classification) identifier_classification )argument_list )call )assignment )expression_statement )block (except_clause (block (expression_statement (assignment (identifier_classification) identifier_classification (None) None )assignment )expression_statement (expression_statement (assignment (identifier_confidence_classification) identifier_confidence_classification (None) None )assignment )expression_statement )block )except_clause )try_statement (if_statement (identifier_confidence) identifier_confidence (block (return_statement (tuple (identifier_classification) identifier_classification (identifier_confidence_classification) identifier_confidence_classification )tuple )return_statement )block (else_clause (block (return_statement (identifier_classification) identifier_classification )return_statement )block )else_clause )if_statement )block )function_definition )module
This function accepts a string text input. It calculates the sentiment of the text, "pos" or "neg". By default, it returns this calculated sentiment. If selected, it returns a tuple of the calculated sentiment and the classificaton confidence.
(module (function_definition (function_name_get_patch_op) function_name_get_patch_op (parameters (identifier_self) identifier_self (identifier_keypath) identifier_keypath (identifier_value) identifier_value (default_parameter (identifier_op) identifier_op (string_'replace') string_'replace' )default_parameter )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value) identifier_value (identifier_bool) identifier_bool )argument_list )call (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (call (identifier_str) identifier_str (argument_list (identifier_value) identifier_value )argument_list )call (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (dictionary (pair (string_'op') string_'op' (identifier_op) identifier_op )pair (pair (string_'path') string_'path' (call (attribute (string_'/*/*/{}') string_'/*/*/{}' (identifier_format) identifier_format )attribute (argument_list (identifier_keypath) identifier_keypath )argument_list )call )pair (pair (string_'value') string_'value' (identifier_value) identifier_value )pair )dictionary )return_statement )block )function_definition )module
Return an object that describes a change of configuration on the given staging. Setting will be applied on all available HTTP methods.
(module (function_definition (function_name_drdpgr) function_name_drdpgr (parameters (identifier_body) identifier_body (identifier_lon) identifier_lon (identifier_lat) identifier_lat (identifier_alt) identifier_alt (identifier_re) identifier_re (identifier_f) identifier_f )parameters (block (expression_statement (assignment (identifier_body) identifier_body (call (attribute (identifier_stypes) identifier_stypes (identifier_stringToCharP) identifier_stringToCharP )attribute (argument_list (identifier_body) identifier_body )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lon) identifier_lon (call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_double) identifier_c_double )attribute (argument_list (identifier_lon) identifier_lon )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lat) identifier_lat (call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_double) identifier_c_double )attribute (argument_list (identifier_lat) identifier_lat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_alt) identifier_alt (call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_double) identifier_c_double )attribute (argument_list (identifier_alt) identifier_alt )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_re) identifier_re (call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_double) identifier_c_double )attribute (argument_list (identifier_re) identifier_re )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_f) identifier_f (call (attribute (identifier_ctypes) identifier_ctypes (identifier_c_double) identifier_c_double )attribute (argument_list (identifier_f) identifier_f )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_jacobi) identifier_jacobi (call (attribute (identifier_stypes) identifier_stypes (identifier_emptyDoubleMatrix) identifier_emptyDoubleMatrix )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_libspice) identifier_libspice (identifier_drdpgr_c) identifier_drdpgr_c )attribute (argument_list (identifier_body) identifier_body (identifier_lon) identifier_lon (identifier_lat) identifier_lat (identifier_alt) identifier_alt (identifier_re) identifier_re (identifier_f) identifier_f (identifier_jacobi) identifier_jacobi )argument_list )call )expression_statement (return_statement (call (attribute (identifier_stypes) identifier_stypes (identifier_cMatrixToNumpy) identifier_cMatrixToNumpy )attribute (argument_list (identifier_jacobi) identifier_jacobi )argument_list )call )return_statement )block )function_definition )module
This routine computes the Jacobian matrix of the transformation from planetographic to rectangular coordinates. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdpgr_c.html :param body: Body with which coordinate system is associated. :type body: str :param lon: Planetographic longitude of a point (radians). :type lon: float :param lat: Planetographic latitude of a point (radians). :type lat: float :param alt: Altitude of a point above reference spheroid. :type alt: float :param re: Equatorial radius of the reference spheroid. :type re: float :param f: Flattening coefficient. :type f: float :return: Matrix of partial derivatives. :rtype: 3x3-Element Array of floats
(module (function_definition (function_name_templates_in) function_name_templates_in (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_ext) identifier_ext (string_'.cpp') string_'.cpp' )assignment )expression_statement (return_statement (generator_expression (call (identifier_Template) identifier_Template (argument_list (subscript (identifier_f) identifier_f (slice (integer_0) integer_0 (colon) colon (unary_operator (call (identifier_len) identifier_len (argument_list (identifier_ext) identifier_ext )argument_list )call )unary_operator )slice )subscript (call (identifier_load_file) identifier_load_file (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_path) identifier_path (identifier_f) identifier_f )argument_list )call )argument_list )call )argument_list )call (for_in_clause (identifier_f) identifier_f (call (attribute (identifier_os) identifier_os (identifier_listdir) identifier_listdir )attribute (argument_list (identifier_path) identifier_path )argument_list )call )for_in_clause (if_clause (call (attribute (identifier_f) identifier_f (identifier_endswith) identifier_endswith )attribute (argument_list (identifier_ext) identifier_ext )argument_list )call )if_clause )generator_expression )return_statement )block )function_definition )module
Enumerate the templates found in path
(module (function_definition (function_name_on_batch_end) function_name_on_batch_end (parameters (identifier_self) identifier_self (identifier_train) identifier_train (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (string_"Take the stored results and puts it in `self.stats`") string_"Take the stored results and puts it in `self.stats`" )expression_statement (if_statement (identifier_train) identifier_train (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_stats) identifier_stats )attribute (identifier_append) identifier_append )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_hooks) identifier_hooks )attribute (identifier_stored) identifier_stored )attribute )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Take the stored results and puts it in `self.stats`
(module (function_definition (function_name_run_commands) function_name_run_commands (parameters (identifier_commands) identifier_commands (identifier_directory) identifier_directory (default_parameter (identifier_env) identifier_env (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_env) identifier_env (None) None )comparison_operator (block (expression_statement (assignment (identifier_env) identifier_env (call (attribute (attribute (identifier_os) identifier_os (identifier_environ) identifier_environ )attribute (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (for_statement (identifier_step) identifier_step (identifier_commands) identifier_commands (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_step) identifier_step (tuple (identifier_list) identifier_list (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )tuple )argument_list )call (block (expression_statement (assignment (identifier_execution_dir) identifier_execution_dir (identifier_directory) identifier_directory )assignment )expression_statement (expression_statement (assignment (identifier_raw_command) identifier_raw_command (identifier_step) identifier_step )assignment )expression_statement )block (elif_clause (call (attribute (identifier_step) identifier_step (identifier_get) identifier_get )attribute (argument_list (string_'command') string_'command' )argument_list )call (block (expression_statement (assignment (identifier_execution_dir) identifier_execution_dir (conditional_expression (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_directory) identifier_directory (call (attribute (identifier_step) identifier_step (identifier_get) identifier_get )attribute (argument_list (string_'cwd') string_'cwd' )argument_list )call )argument_list )call (call (attribute (identifier_step) identifier_step (identifier_get) identifier_get )attribute (argument_list (string_'cwd') string_'cwd' )argument_list )call (identifier_directory) identifier_directory )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_raw_command) identifier_raw_command (subscript (identifier_step) identifier_step (string_'command') string_'command' )subscript )assignment )expression_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_AttributeError) identifier_AttributeError (argument_list (binary_operator (string_"Invalid command step: %s") string_"Invalid command step: %s" (identifier_step) identifier_step )binary_operator )argument_list )call )raise_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_command_list) identifier_command_list (conditional_expression (call (attribute (identifier_raw_command) identifier_raw_command (identifier_split) identifier_split )attribute (argument_list (string_' ') string_' ' )argument_list )call (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_raw_command) identifier_raw_command (attribute (identifier_six) identifier_six (identifier_string_types) identifier_string_types )attribute )argument_list )call (identifier_raw_command) identifier_raw_command )conditional_expression )assignment )expression_statement (if_statement (comparison_operator (call (attribute (call (attribute (identifier_platform) identifier_platform (identifier_system) identifier_system )attribute (argument_list )argument_list )call (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (string_'windows') string_'windows' )comparison_operator (block (expression_statement (assignment (identifier_command_list) identifier_command_list (call (identifier_fix_windows_command_list) identifier_fix_windows_command_list (argument_list (identifier_command_list) identifier_command_list )argument_list )call )assignment )expression_statement )block )if_statement (with_statement (with_clause (with_item (call (identifier_change_dir) identifier_change_dir (argument_list (identifier_execution_dir) identifier_execution_dir )argument_list )call )with_item )with_clause (block (expression_statement (call (identifier_check_call) identifier_check_call (argument_list (identifier_command_list) identifier_command_list (keyword_argument (identifier_env) identifier_env (identifier_env) identifier_env )keyword_argument )argument_list )call )expression_statement )block )with_statement )block )for_statement )block )function_definition )module
Run list of commands.
(module (function_definition (function_name_apply_inverse) function_name_apply_inverse (parameters (identifier_self) identifier_self (identifier_y) identifier_y )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__recompute) identifier__recompute )attribute (argument_list )argument_list )call )expression_statement (return_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_solver) identifier_solver )attribute (identifier_solve) identifier_solve )attribute (argument_list (call (attribute (identifier_self) identifier_self (identifier__process_input) identifier__process_input )attribute (argument_list (identifier_y) identifier_y )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Apply the inverse of the covariance matrix to a vector or matrix Solve ``K.x = y`` for ``x`` where ``K`` is the covariance matrix of the GP with the white noise and ``yerr`` components included on the diagonal. Args: y (array[n] or array[n, nrhs]): The vector or matrix ``y`` described above. Returns: array[n] or array[n, nrhs]: The solution to the linear system. This will have the same shape as ``y``. Raises: ValueError: For mismatched dimensions.
(module (function_definition (function_name__fetch_data) function_name__fetch_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (with_statement (with_clause (with_item (as_pattern (call (attribute (identifier_h5py) identifier_h5py (identifier_File) identifier_File )attribute (argument_list (binary_operator (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute (string_'.hdf5') string_'.hdf5' )binary_operator )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (for_statement (identifier_item) identifier_item (call (attribute (identifier_f) identifier_f (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call (block (expression_statement (assignment (pattern_list (identifier_obj_name) identifier_obj_name (identifier_propname) identifier_propname )pattern_list (call (attribute (identifier_item) identifier_item (identifier_split) identifier_split )attribute (argument_list (string_'|') string_'|' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_propname) identifier_propname (call (attribute (identifier_propname) identifier_propname (identifier_split) identifier_split )attribute (argument_list (string_'_') string_'_' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_propname) identifier_propname (binary_operator (binary_operator (subscript (identifier_propname) identifier_propname (integer_0) integer_0 )subscript (string_'.') string_'.' )binary_operator (call (attribute (string_'_') string_'_' (identifier_join) identifier_join )attribute (argument_list (subscript (identifier_propname) identifier_propname (slice (integer_1) integer_1 (colon) colon )slice )subscript )argument_list )call )binary_operator )assignment )expression_statement (expression_statement (assignment (subscript (subscript (identifier_self) identifier_self (identifier_obj_name) identifier_obj_name )subscript (identifier_propname) identifier_propname )subscript (subscript (identifier_f) identifier_f (identifier_item) identifier_item )subscript )assignment )expression_statement )block )for_statement )block )with_statement )block )function_definition )module
r""" Retrieve data from an HDF5 file and place onto correct objects in the project See Also -------- _dump_data Notes ----- In principle, after data is fetched from and HDF5 file, it should physically stay there until it's called upon. This let users manage the data as if it's in memory, even though it isn't. This behavior has not been confirmed yet, which is why these functions are hidden.
(module (function_definition (function_name__sync_reminders) function_name__sync_reminders (parameters (identifier_self) identifier_self (identifier_reminders_json) identifier_reminders_json )parameters (block (for_statement (identifier_reminder_json) identifier_reminder_json (identifier_reminders_json) identifier_reminders_json (block (expression_statement (assignment (identifier_reminder_id) identifier_reminder_id (subscript (identifier_reminder_json) identifier_reminder_json (string_'id') string_'id' )subscript )assignment )expression_statement (expression_statement (assignment (identifier_task_id) identifier_task_id (subscript (identifier_reminder_json) identifier_reminder_json (string_'item_id') string_'item_id' )subscript )assignment )expression_statement (if_statement (comparison_operator (identifier_task_id) identifier_task_id (attribute (identifier_self) identifier_self (identifier_tasks) identifier_tasks )attribute )comparison_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_task) identifier_task (subscript (attribute (identifier_self) identifier_self (identifier_tasks) identifier_tasks )attribute (identifier_task_id) identifier_task_id )subscript )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_reminders) identifier_reminders )attribute (identifier_reminder_id) identifier_reminder_id )subscript (call (identifier_Reminder) identifier_Reminder (argument_list (identifier_reminder_json) identifier_reminder_json (identifier_task) identifier_task )argument_list )call )assignment )expression_statement )block )for_statement )block )function_definition )module
Populate the user's reminders from a JSON encoded list.
(module (function_definition (function_name__count_relevant_tb_levels) function_name__count_relevant_tb_levels (parameters (identifier_tb) identifier_tb )parameters (block (expression_statement (assignment (identifier_length) identifier_length (assignment (identifier_contiguous_unittest_frames) identifier_contiguous_unittest_frames (integer_0) integer_0 )assignment )assignment )expression_statement (while_statement (identifier_tb) identifier_tb (block (expression_statement (augmented_assignment (identifier_length) identifier_length (integer_1) integer_1 )augmented_assignment )expression_statement (if_statement (call (identifier__is_unittest_frame) identifier__is_unittest_frame (argument_list (identifier_tb) identifier_tb )argument_list )call (block (expression_statement (augmented_assignment (identifier_contiguous_unittest_frames) identifier_contiguous_unittest_frames (integer_1) integer_1 )augmented_assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_contiguous_unittest_frames) identifier_contiguous_unittest_frames (integer_0) integer_0 )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_tb) identifier_tb (attribute (identifier_tb) identifier_tb (identifier_tb_next) identifier_tb_next )attribute )assignment )expression_statement )block )while_statement (return_statement (binary_operator (identifier_length) identifier_length (identifier_contiguous_unittest_frames) identifier_contiguous_unittest_frames )binary_operator )return_statement )block )function_definition )module
Return the number of frames in ``tb`` before all that's left is unittest frames. Unlike its namesake in unittest, this doesn't bail out as soon as it hits a unittest frame, which means we don't bail out as soon as somebody uses the mock library, which defines ``__unittest``.
(module (function_definition (function_name_eglQueryString) function_name_eglQueryString (parameters (identifier_display) identifier_display (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_out) identifier_out (call (attribute (identifier__lib) identifier__lib (identifier_eglQueryString) identifier_eglQueryString )attribute (argument_list (identifier_display) identifier_display (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_out) identifier_out )not_operator (block (raise_statement (call (identifier_RuntimeError) identifier_RuntimeError (argument_list (binary_operator (string_'Could not query %s') string_'Could not query %s' (identifier_name) identifier_name )binary_operator )argument_list )call )raise_statement )block )if_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Query string from display
(module (function_definition (function_name_check_account_address) function_name_check_account_address (parameters (identifier_address) identifier_address )parameters (block (if_statement (boolean_operator (comparison_operator (identifier_address) identifier_address (string_'treasury') string_'treasury' )comparison_operator (comparison_operator (identifier_address) identifier_address (string_'unallocated') string_'unallocated' )comparison_operator )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (boolean_operator (call (attribute (identifier_address) identifier_address (identifier_startswith) identifier_startswith )attribute (argument_list (string_'not_distributed_') string_'not_distributed_' )argument_list )call (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_address) identifier_address )argument_list )call (call (identifier_len) identifier_len (argument_list (string_'not_distributed_') string_'not_distributed_' )argument_list )call )comparison_operator )boolean_operator (block (return_statement (True) True )return_statement )block )if_statement (if_statement (call (attribute (identifier_re) identifier_re (identifier_match) identifier_match )attribute (argument_list (identifier_OP_C32CHECK_PATTERN) identifier_OP_C32CHECK_PATTERN (identifier_address) identifier_address )argument_list )call (block (try_statement (block (expression_statement (call (identifier_c32addressDecode) identifier_c32addressDecode (argument_list (identifier_address) identifier_address )argument_list )call )expression_statement (return_statement (True) True )return_statement )block (except_clause (block (pass_statement )pass_statement )block )except_clause )try_statement )block )if_statement (return_statement (call (identifier_check_address) identifier_check_address (argument_list (identifier_address) identifier_address )argument_list )call )return_statement )block )function_definition )module
verify that a string is a valid account address. Can be a b58-check address, a c32-check address, as well as the string "treasury" or "unallocated" or a string starting with 'not_distributed_' >>> check_account_address('16EMaNw3pkn3v6f2BgnSSs53zAKH4Q8YJg') True >>> check_account_address('16EMaNw3pkn3v6f2BgnSSs53zAKH4Q8YJh') False >>> check_account_address('treasury') True >>> check_account_address('unallocated') True >>> check_account_address('neither') False >>> check_account_address('not_distributed') False >>> check_account_address('not_distributed_') False >>> check_account_address('not_distributed_asdfasdfasdfasdf') True >>> check_account_address('SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7') True >>> check_account_address('SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ8') False
(module (function_definition (function_name_service_param_string) function_name_service_param_string (parameters (identifier_params) identifier_params )parameters (block (expression_statement (assignment (identifier_p) identifier_p (list )list )assignment )expression_statement (expression_statement (assignment (identifier_k) identifier_k (list )list )assignment )expression_statement (for_statement (identifier_param) identifier_param (identifier_params) identifier_params (block (expression_statement (assignment (identifier_name) identifier_name (call (identifier_fix_param_name) identifier_fix_param_name (argument_list (subscript (identifier_param) identifier_param (string_'name') string_'name' )subscript )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (string_'required') string_'required' (identifier_param) identifier_param )comparison_operator (comparison_operator (subscript (identifier_param) identifier_param (string_'required') string_'required' )subscript (True) True )comparison_operator )boolean_operator (block (expression_statement (call (attribute (identifier_p) identifier_p (identifier_append) identifier_append )attribute (argument_list (identifier_name) identifier_name )argument_list )call )expression_statement )block (else_clause (block (if_statement (comparison_operator (string_'default') string_'default' (identifier_param) identifier_param )comparison_operator (block (expression_statement (call (attribute (identifier_k) identifier_k (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_'{name}={default}') string_'{name}={default}' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument (keyword_argument (identifier_default) identifier_default (subscript (identifier_param) identifier_param (string_'default') string_'default' )subscript )keyword_argument )argument_list )call )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_k) identifier_k (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_'{name}=None') string_'{name}=None' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_name) identifier_name (identifier_name) identifier_name )keyword_argument )argument_list )call )argument_list )call )expression_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )for_statement (expression_statement (call (attribute (identifier_p) identifier_p (identifier_sort) identifier_sort )attribute (argument_list (lambda (lambda_parameters (identifier_a) identifier_a (identifier_b) identifier_b )lambda_parameters (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_a) identifier_a )argument_list )call (call (identifier_len) identifier_len (argument_list (identifier_b) identifier_b )argument_list )call )binary_operator )lambda )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_k) identifier_k (identifier_sort) identifier_sort )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_a) identifier_a (binary_operator (identifier_p) identifier_p (identifier_k) identifier_k )binary_operator )assignment )expression_statement (return_statement (call (attribute (string_', ') string_', ' (identifier_join) identifier_join )attribute (argument_list (identifier_a) identifier_a )argument_list )call )return_statement )block )function_definition )module
Takes a param section from a metadata class and returns a param string for the service method
(module (function_definition (function_name_get_finished_results) function_name_get_finished_results (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_task_and_results) identifier_task_and_results (list )list )assignment )expression_statement (for_statement (identifier_pending_result) identifier_pending_result (attribute (identifier_self) identifier_self (identifier_pending_results) identifier_pending_results )attribute (block (if_statement (call (attribute (identifier_pending_result) identifier_pending_result (identifier_ready) identifier_ready )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (identifier_pending_result) identifier_pending_result (identifier_get) identifier_get )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_task_id) identifier_task_id (identifier_result) identifier_result )pattern_list (identifier_ret) identifier_ret )assignment )expression_statement (expression_statement (assignment (identifier_task) identifier_task (subscript (attribute (identifier_self) identifier_self (identifier_task_id_to_task) identifier_task_id_to_task )attribute (identifier_task_id) identifier_task_id )subscript )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_process_all_messages_in_queue) identifier_process_all_messages_in_queue )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_task) identifier_task (identifier_after_run) identifier_after_run )attribute (argument_list (identifier_result) identifier_result )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_task_and_results) identifier_task_and_results (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_task) identifier_task (identifier_result) identifier_result )tuple )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_pending_results) identifier_pending_results )attribute (identifier_remove) identifier_remove )attribute (argument_list (identifier_pending_result) identifier_pending_result )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (identifier_task_and_results) identifier_task_and_results )return_statement )block )function_definition )module
Go through pending results and retrieve the results if they are done. Then start child tasks for the task that finished.
(module (function_definition (function_name__hjoin_multiline) function_name__hjoin_multiline (parameters (identifier_join_char) identifier_join_char (identifier_strings) identifier_strings )parameters (block (expression_statement (assignment (identifier_cstrings) identifier_cstrings (list_comprehension (call (attribute (identifier_string) identifier_string (identifier_split) identifier_split )attribute (argument_list (string_"\n") string_"\n" )argument_list )call (for_in_clause (identifier_string) identifier_string (identifier_strings) identifier_strings )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_max_num_lines) identifier_max_num_lines (call (identifier_max) identifier_max (generator_expression (call (identifier_len) identifier_len (argument_list (identifier_item) identifier_item )argument_list )call (for_in_clause (identifier_item) identifier_item (identifier_cstrings) identifier_cstrings )for_in_clause )generator_expression )call )assignment )expression_statement (expression_statement (assignment (identifier_pp) identifier_pp (list )list )assignment )expression_statement (for_statement (identifier_k) identifier_k (call (identifier_range) identifier_range (argument_list (identifier_max_num_lines) identifier_max_num_lines )argument_list )call (block (expression_statement (assignment (identifier_p) identifier_p (list_comprehension (subscript (identifier_cstring) identifier_cstring (identifier_k) identifier_k )subscript (for_in_clause (identifier_cstring) identifier_cstring (identifier_cstrings) identifier_cstrings )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (call (attribute (identifier_pp) identifier_pp (identifier_append) identifier_append )attribute (argument_list (binary_operator (binary_operator (identifier_join_char) identifier_join_char (call (attribute (identifier_join_char) identifier_join_char (identifier_join) identifier_join )attribute (argument_list (identifier_p) identifier_p )argument_list )call )binary_operator (identifier_join_char) identifier_join_char )binary_operator )argument_list )call )expression_statement )block )for_statement (return_statement (call (attribute (string_"\n") string_"\n" (identifier_join) identifier_join )attribute (argument_list (list_comprehension (call (attribute (identifier_p) identifier_p (identifier_rstrip) identifier_rstrip )attribute (argument_list )argument_list )call (for_in_clause (identifier_p) identifier_p (identifier_pp) identifier_pp )for_in_clause )list_comprehension )argument_list )call )return_statement )block )function_definition )module
Horizontal join of multiline strings
(module (function_definition (function_name_compile_regex) function_name_compile_regex (parameters (identifier_self) identifier_self (identifier_pattern) identifier_pattern (default_parameter (identifier_flags) identifier_flags (integer_0) integer_0 )default_parameter )parameters (block (expression_statement (assignment (identifier_pattern_re) identifier_pattern_re (call (attribute (identifier_regex) identifier_regex (identifier_compile) identifier_compile )attribute (argument_list (string_'(?P<substr>%\{(?P<fullname>(?P<patname>\w+)(?::(?P<subname>\w+))?)\})') string_'(?P<substr>%\{(?P<fullname>(?P<patname>\w+)(?::(?P<subname>\w+))?)\})' )argument_list )call )assignment )expression_statement (while_statement (integer_1) integer_1 (block (expression_statement (assignment (identifier_matches) identifier_matches (list_comprehension (call (attribute (identifier_md) identifier_md (identifier_groupdict) identifier_groupdict )attribute (argument_list )argument_list )call (for_in_clause (identifier_md) identifier_md (call (attribute (identifier_pattern_re) identifier_pattern_re (identifier_finditer) identifier_finditer )attribute (argument_list (identifier_pattern) identifier_pattern )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_matches) identifier_matches )argument_list )call (integer_0) integer_0 )comparison_operator (block (break_statement )break_statement )block )if_statement (for_statement (identifier_md) identifier_md (identifier_matches) identifier_matches (block (if_statement (comparison_operator (subscript (identifier_md) identifier_md (string_'patname') string_'patname' )subscript (attribute (identifier_self) identifier_self (identifier_pattern_dict) identifier_pattern_dict )attribute )comparison_operator (block (if_statement (subscript (identifier_md) identifier_md (string_'subname') string_'subname' )subscript (block (if_statement (comparison_operator (string_'(?P<') string_'(?P<' (subscript (attribute (identifier_self) identifier_self (identifier_pattern_dict) identifier_pattern_dict )attribute (subscript (identifier_md) identifier_md (string_'patname') string_'patname' )subscript )subscript )comparison_operator (block (expression_statement (assignment (identifier_repl) identifier_repl (call (attribute (identifier_regex) identifier_regex (identifier_sub) identifier_sub )attribute (argument_list (string_'\(\?P<(\w+)>') string_'\(\?P<(\w+)>' (binary_operator (string_'(?P<%s>') string_'(?P<%s>' (subscript (identifier_md) identifier_md (string_'subname') string_'subname' )subscript )binary_operator (subscript (attribute (identifier_self) identifier_self (identifier_pattern_dict) identifier_pattern_dict )attribute (subscript (identifier_md) identifier_md (string_'patname') string_'patname' )subscript )subscript (integer_1) integer_1 )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_repl) identifier_repl (binary_operator (string_'(?P<%s>%s)') string_'(?P<%s>%s)' (tuple (subscript (identifier_md) identifier_md (string_'subname') string_'subname' )subscript (subscript (attribute (identifier_self) identifier_self (identifier_pattern_dict) identifier_pattern_dict )attribute (subscript (identifier_md) identifier_md (string_'patname') string_'patname' )subscript )subscript )tuple )binary_operator )assignment )expression_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (assignment (identifier_repl) identifier_repl (subscript (attribute (identifier_self) identifier_self (identifier_pattern_dict) identifier_pattern_dict )attribute (subscript (identifier_md) identifier_md (string_'patname') string_'patname' )subscript )subscript )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_pattern) identifier_pattern (call (attribute (identifier_pattern) identifier_pattern (identifier_replace) identifier_replace )attribute (argument_list (subscript (identifier_md) identifier_md (string_'substr') string_'substr' )subscript (identifier_repl) identifier_repl )argument_list )call )assignment )expression_statement )block (else_clause (block (return_statement )return_statement )block )else_clause )if_statement )block )for_statement )block )while_statement (return_statement (call (attribute (identifier_regex) identifier_regex (identifier_compile) identifier_compile )attribute (argument_list (identifier_pattern) identifier_pattern (identifier_flags) identifier_flags )argument_list )call )return_statement )block )function_definition )module
Compile regex from pattern and pattern_dict
(module (function_definition (function_name_make_session) function_name_make_session (parameters (identifier_scraper) identifier_scraper )parameters (block (expression_statement (assignment (identifier_cache_path) identifier_cache_path (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (attribute (attribute (identifier_scraper) identifier_scraper (identifier_config) identifier_config )attribute (identifier_data_path) identifier_data_path )attribute (string_'cache') string_'cache' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cache_policy) identifier_cache_policy (attribute (attribute (identifier_scraper) identifier_scraper (identifier_config) identifier_config )attribute (identifier_cache_policy) identifier_cache_policy )attribute )assignment )expression_statement (expression_statement (assignment (identifier_cache_policy) identifier_cache_policy (call (attribute (call (attribute (identifier_cache_policy) identifier_cache_policy (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_session) identifier_session (call (identifier_ScraperSession) identifier_ScraperSession (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_session) identifier_session (identifier_scraper) identifier_scraper )attribute (identifier_scraper) identifier_scraper )assignment )expression_statement (expression_statement (assignment (attribute (identifier_session) identifier_session (identifier_cache_policy) identifier_cache_policy )attribute (identifier_cache_policy) identifier_cache_policy )assignment )expression_statement (expression_statement (assignment (identifier_adapter) identifier_adapter (call (identifier_CacheControlAdapter) identifier_CacheControlAdapter (argument_list (call (identifier_FileCache) identifier_FileCache (argument_list (identifier_cache_path) identifier_cache_path )argument_list )call (keyword_argument (identifier_cache_etags) identifier_cache_etags (True) True )keyword_argument (keyword_argument (identifier_controller_class) identifier_controller_class (identifier_PolicyCacheController) identifier_PolicyCacheController )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_mount) identifier_mount )attribute (argument_list (string_'http://') string_'http://' (identifier_adapter) identifier_adapter )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_session) identifier_session (identifier_mount) identifier_mount )attribute (argument_list (string_'https://') string_'https://' (identifier_adapter) identifier_adapter )argument_list )call )expression_statement (return_statement (identifier_session) identifier_session )return_statement )block )function_definition )module
Instantiate a session with the desired configuration parameters, including the cache policy.
(module (function_definition (function_name_limit_inference) function_name_limit_inference (parameters (identifier_iterator) identifier_iterator (identifier_size) identifier_size )parameters (block (expression_statement (yield (call (identifier_islice) identifier_islice (argument_list (identifier_iterator) identifier_iterator (identifier_size) identifier_size )argument_list )call )yield )expression_statement (expression_statement (assignment (identifier_has_more) identifier_has_more (call (identifier_next) identifier_next (argument_list (identifier_iterator) identifier_iterator (False) False )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_has_more) identifier_has_more (False) False )comparison_operator (block (expression_statement (yield (identifier_Uninferable) identifier_Uninferable )yield )expression_statement (return_statement )return_statement )block )if_statement )block )function_definition )module
Limit inference amount. Limit inference amount to help with performance issues with exponentially exploding possible results. :param iterator: Inference generator to limit :type iterator: Iterator(NodeNG) :param size: Maximum mount of nodes yielded plus an Uninferable at the end if limit reached :type size: int :yields: A possibly modified generator :rtype param: Iterable
(module (function_definition (function_name_move_to) function_name_move_to (parameters (identifier_self) identifier_self (identifier_folder) identifier_folder )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_folder) identifier_folder (identifier_Folder) identifier_Folder )argument_list )call (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_move_to) identifier_move_to )attribute (argument_list (attribute (identifier_folder) identifier_folder (identifier_id) identifier_id )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__move_to) identifier__move_to )attribute (argument_list (identifier_folder) identifier_folder )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Moves the email to the folder specified by the folder parameter. Args: folder: A string containing the folder ID the message should be moved to, or a Folder instance
(module (function_definition (function_name_task_delete) function_name_task_delete (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kw) identifier_kw )dictionary_splat_pattern )parameters (block (function_definition (function_name_validate) function_name_validate (parameters (identifier_task) identifier_task )parameters (block (if_statement (comparison_operator (subscript (identifier_task) identifier_task (string_'status') string_'status' )subscript (attribute (identifier_Status) identifier_Status (identifier_DELETED) identifier_DELETED )attribute )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (string_"Task is already deleted.") string_"Task is already deleted." )argument_list )call )raise_statement )block )if_statement )block )function_definition (return_statement (call (attribute (identifier_self) identifier_self (identifier__task_change_status) identifier__task_change_status )attribute (argument_list (attribute (identifier_Status) identifier_Status (identifier_DELETED) identifier_DELETED )attribute (identifier_validate) identifier_validate (dictionary_splat (identifier_kw) identifier_kw )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Marks a task as deleted, optionally specifying a completion date with the 'end' argument.
(module (function_definition (function_name_email) function_name_email (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_to) identifier_to (identifier_from_addr) identifier_from_addr (identifier_subject) identifier_subject (identifier_body) identifier_body (identifier_header) identifier_header (default_parameter (identifier_owner) identifier_owner (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (return_statement (call (identifier_Email) identifier_Email (argument_list (attribute (identifier_self) identifier_self (identifier_tcex) identifier_tcex )attribute (identifier_name) identifier_name (identifier_to) identifier_to (identifier_from_addr) identifier_from_addr (identifier_subject) identifier_subject (identifier_body) identifier_body (identifier_header) identifier_header (keyword_argument (identifier_owner) identifier_owner (identifier_owner) identifier_owner )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Create the Email TI object. Args: owner: to: from_addr: name: subject: header: body: **kwargs: Return:
(module (function_definition (function_name_task_remove_user) function_name_task_remove_user (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_cur_task) identifier_cur_task )attribute )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_i) identifier_i (call (attribute (attribute (identifier_self) identifier_self (identifier_task_user_tablev) identifier_task_user_tablev )attribute (identifier_currentIndex) identifier_currentIndex )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_item) identifier_item (call (attribute (identifier_i) identifier_i (identifier_internalPointer) identifier_internalPointer )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (identifier_item) identifier_item (block (expression_statement (assignment (identifier_user) identifier_user (call (attribute (identifier_item) identifier_item (identifier_internal_data) identifier_internal_data )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_cur_task) identifier_cur_task )attribute (identifier_users) identifier_users )attribute (identifier_remove) identifier_remove )attribute (argument_list (identifier_user) identifier_user )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_item) identifier_item (identifier_set_parent) identifier_set_parent )attribute (argument_list (None) None )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Remove the selected user from the task :returns: None :rtype: None :raises: None
(module (function_definition (function_name__filter_by_statement) function_name__filter_by_statement (parameters (identifier_self) identifier_self (identifier_statement) identifier_statement )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (identifier__check_conditional_statement) identifier__check_conditional_statement )attribute (argument_list (identifier_statement) identifier_statement (integer_1) integer_1 )argument_list )call )expression_statement (expression_statement (assignment (pattern_list (identifier__filt_values) identifier__filt_values (identifier__filt_datetimes) identifier__filt_datetimes )pattern_list (expression_list (list )list (list )list )expression_list )assignment )expression_statement (for_statement (pattern_list (identifier_i) identifier_i (identifier_a) identifier_a )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (attribute (identifier_self) identifier_self (identifier__values) identifier__values )attribute )argument_list )call (block (if_statement (call (identifier_eval) identifier_eval (argument_list (identifier_statement) identifier_statement (dictionary (pair (string_'a') string_'a' (identifier_a) identifier_a )pair )dictionary )argument_list )call (block (expression_statement (call (attribute (identifier__filt_values) identifier__filt_values (identifier_append) identifier_append )attribute (argument_list (identifier_a) identifier_a )argument_list )call )expression_statement (expression_statement (call (attribute (identifier__filt_datetimes) identifier__filt_datetimes (identifier_append) identifier_append )attribute (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_datetimes) identifier_datetimes )attribute (identifier_i) identifier_i )subscript )argument_list )call )expression_statement )block )if_statement )block )for_statement (return_statement (expression_list (identifier__filt_values) identifier__filt_values (identifier__filt_datetimes) identifier__filt_datetimes )expression_list )return_statement )block )function_definition )module
Filter the data collection based on a conditional statement.
(module (function_definition (function_name__maybe_append_formatted_extension) function_name__maybe_append_formatted_extension (parameters (identifier_numobj) identifier_numobj (identifier_metadata) identifier_metadata (identifier_num_format) identifier_num_format (identifier_number) identifier_number )parameters (block (if_statement (attribute (identifier_numobj) identifier_numobj (identifier_extension) identifier_extension )attribute (block (if_statement (comparison_operator (identifier_num_format) identifier_num_format (attribute (identifier_PhoneNumberFormat) identifier_PhoneNumberFormat (identifier_RFC3966) identifier_RFC3966 )attribute )comparison_operator (block (return_statement (binary_operator (binary_operator (identifier_number) identifier_number (identifier__RFC3966_EXTN_PREFIX) identifier__RFC3966_EXTN_PREFIX )binary_operator (attribute (identifier_numobj) identifier_numobj (identifier_extension) identifier_extension )attribute )binary_operator )return_statement )block (else_clause (block (if_statement (comparison_operator (attribute (identifier_metadata) identifier_metadata (identifier_preferred_extn_prefix) identifier_preferred_extn_prefix )attribute (None) None )comparison_operator (block (return_statement (binary_operator (binary_operator (identifier_number) identifier_number (attribute (identifier_metadata) identifier_metadata (identifier_preferred_extn_prefix) identifier_preferred_extn_prefix )attribute )binary_operator (attribute (identifier_numobj) identifier_numobj (identifier_extension) identifier_extension )attribute )binary_operator )return_statement )block (else_clause (block (return_statement (binary_operator (binary_operator (identifier_number) identifier_number (identifier__DEFAULT_EXTN_PREFIX) identifier__DEFAULT_EXTN_PREFIX )binary_operator (attribute (identifier_numobj) identifier_numobj (identifier_extension) identifier_extension )attribute )binary_operator )return_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )if_statement (return_statement (identifier_number) identifier_number )return_statement )block )function_definition )module
Appends the formatted extension of a phone number to formatted number, if the phone number had an extension specified.
(module (function_definition (function_name_modify) function_name_modify (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (for_statement (identifier_key) identifier_key (identifier_kwargs) identifier_kwargs (block (if_statement (comparison_operator (identifier_key) identifier_key (list (string_'email') string_'email' (string_'cellphone') string_'cellphone' (string_'countrycode') string_'countrycode' (string_'countryiso') string_'countryiso' (string_'defaultsmsprovider') string_'defaultsmsprovider' (string_'directtwitter') string_'directtwitter' (string_'twitteruser') string_'twitteruser' (string_'name') string_'name' )list )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute (identifier_write) identifier_write )attribute (argument_list (binary_operator (binary_operator (binary_operator (string_"'%s'") string_"'%s'" (identifier_key) identifier_key )binary_operator (string_' is not a valid argument ') string_' is not a valid argument ' )binary_operator (string_'of <PingdomContact>.modify()\n') string_'of <PingdomContact>.modify()\n' )binary_operator )argument_list )call )expression_statement )block )if_statement )block )for_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (attribute (identifier_self) identifier_self (identifier_pingdom) identifier_pingdom )attribute (identifier_request) identifier_request )attribute (argument_list (string_'PUT') string_'PUT' (binary_operator (string_'notification_contacts/%s') string_'notification_contacts/%s' (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute )binary_operator (identifier_kwargs) identifier_kwargs )argument_list )call )assignment )expression_statement (return_statement (subscript (call (attribute (identifier_response) identifier_response (identifier_json) identifier_json )attribute (argument_list )argument_list )call (string_'message') string_'message' )subscript )return_statement )block )function_definition )module
Modify a contact. Returns status message Optional Parameters: * name -- Contact name Type: String * email -- Contact email address Type: String * cellphone -- Cellphone number, without the country code part. In some countries you are supposed to exclude leading zeroes. (Requires countrycode and countryiso) Type: String * countrycode -- Cellphone country code (Requires cellphone and countryiso) Type: String * countryiso -- Cellphone country ISO code. For example: US (USA), GB (Britain) or SE (Sweden) (Requires cellphone and countrycode) Type: String * defaultsmsprovider -- Default SMS provider Type: String ['clickatell', 'bulksms', 'esendex', 'cellsynt'] * directtwitter -- Send tweets as direct messages Type: Boolean Default: True * twitteruser -- Twitter user Type: String
(module (function_definition (function_name_upload) function_name_upload (parameters (identifier_self) identifier_self (identifier_file) identifier_file (identifier_path) identifier_path )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_file) identifier_file (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_resp) identifier_resp (call (attribute (identifier_self) identifier_self (identifier__sendRequest) identifier__sendRequest )attribute (argument_list (string_"PUT") string_"PUT" (identifier_path) identifier_path (keyword_argument (identifier_data) identifier_data (identifier_f) identifier_f )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_resp) identifier_resp (identifier_status_code) identifier_status_code )attribute (integer_201) integer_201 )comparison_operator (block (raise_statement (call (identifier_YaDiskException) identifier_YaDiskException (argument_list (attribute (identifier_resp) identifier_resp (identifier_status_code) identifier_status_code )attribute (attribute (identifier_resp) identifier_resp (identifier_content) identifier_content )attribute )argument_list )call )raise_statement )block )if_statement )block )with_statement )block )function_definition )module
Upload file.
(module (function_definition (function_name_use_tsig) function_name_use_tsig (parameters (identifier_self) identifier_self (identifier_keyring) identifier_keyring (default_parameter (identifier_keyname) identifier_keyname (None) None )default_parameter (default_parameter (identifier_fudge) identifier_fudge (integer_300) integer_300 )default_parameter (default_parameter (identifier_original_id) identifier_original_id (None) None )default_parameter (default_parameter (identifier_tsig_error) identifier_tsig_error (integer_0) integer_0 )default_parameter (default_parameter (identifier_other_data) identifier_other_data (string_'') string_'' )default_parameter (default_parameter (identifier_algorithm) identifier_algorithm (attribute (attribute (identifier_dns) identifier_dns (identifier_tsig) identifier_tsig )attribute (identifier_default_algorithm) identifier_default_algorithm )attribute )default_parameter )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_keyring) identifier_keyring )attribute (identifier_keyring) identifier_keyring )assignment )expression_statement (if_statement (comparison_operator (identifier_keyname) identifier_keyname (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_keyname) identifier_keyname )attribute (subscript (call (attribute (attribute (identifier_self) identifier_self (identifier_keyring) identifier_keyring )attribute (identifier_keys) identifier_keys )attribute (argument_list )argument_list )call (integer_0) integer_0 )subscript )assignment )expression_statement )block (else_clause (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_keyname) identifier_keyname (tuple (identifier_str) identifier_str (identifier_unicode) identifier_unicode )tuple )argument_list )call (block (expression_statement (assignment (identifier_keyname) identifier_keyname (call (attribute (attribute (identifier_dns) identifier_dns (identifier_name) identifier_name )attribute (identifier_from_text) identifier_from_text )attribute (argument_list (identifier_keyname) identifier_keyname )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_keyname) identifier_keyname )attribute (identifier_keyname) identifier_keyname )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_keyalgorithm) identifier_keyalgorithm )attribute (identifier_algorithm) identifier_algorithm )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_fudge) identifier_fudge )attribute (identifier_fudge) identifier_fudge )assignment )expression_statement (if_statement (comparison_operator (identifier_original_id) identifier_original_id (None) None )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_original_id) identifier_original_id )attribute (attribute (identifier_self) identifier_self (identifier_id) identifier_id )attribute )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_original_id) identifier_original_id )attribute (identifier_original_id) identifier_original_id )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_tsig_error) identifier_tsig_error )attribute (identifier_tsig_error) identifier_tsig_error )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_other_data) identifier_other_data )attribute (identifier_other_data) identifier_other_data )assignment )expression_statement )block )function_definition )module
When sending, a TSIG signature using the specified keyring and keyname should be added. @param keyring: The TSIG keyring to use; defaults to None. @type keyring: dict @param keyname: The name of the TSIG key to use; defaults to None. The key must be defined in the keyring. If a keyring is specified but a keyname is not, then the key used will be the first key in the keyring. Note that the order of keys in a dictionary is not defined, so applications should supply a keyname when a keyring is used, unless they know the keyring contains only one key. @type keyname: dns.name.Name or string @param fudge: TSIG time fudge; default is 300 seconds. @type fudge: int @param original_id: TSIG original id; defaults to the message's id @type original_id: int @param tsig_error: TSIG error code; default is 0. @type tsig_error: int @param other_data: TSIG other data. @type other_data: string @param algorithm: The TSIG algorithm to use; defaults to dns.tsig.default_algorithm
(module (function_definition (function_name_read_requirements) function_name_read_requirements (parameters (identifier_path) identifier_path (identifier_strict_bounds) identifier_strict_bounds (default_parameter (identifier_conda_format) identifier_conda_format (False) False )default_parameter (default_parameter (identifier_filter_names) identifier_filter_names (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_real_path) identifier_real_path (call (identifier_join) identifier_join (argument_list (call (identifier_dirname) identifier_dirname (argument_list (call (identifier_abspath) identifier_abspath (argument_list (identifier___file__) identifier___file__ )argument_list )call )argument_list )call (identifier_path) identifier_path )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_real_path) identifier_real_path )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_reqs) identifier_reqs (call (identifier__filter_requirements) identifier__filter_requirements (argument_list (call (attribute (identifier_f) identifier_f (identifier_readlines) identifier_readlines )attribute (argument_list )argument_list )call (keyword_argument (identifier_filter_names) identifier_filter_names (identifier_filter_names) identifier_filter_names )keyword_argument (keyword_argument (identifier_filter_sys_version) identifier_filter_sys_version (not_operator (identifier_conda_format) identifier_conda_format )not_operator )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_strict_bounds) identifier_strict_bounds )not_operator (block (expression_statement (assignment (identifier_reqs) identifier_reqs (call (identifier_map) identifier_map (argument_list (identifier__with_bounds) identifier__with_bounds (identifier_reqs) identifier_reqs )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (identifier_conda_format) identifier_conda_format (block (expression_statement (assignment (identifier_reqs) identifier_reqs (call (identifier_map) identifier_map (argument_list (identifier__conda_format) identifier__conda_format (identifier_reqs) identifier_reqs )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (call (identifier_list) identifier_list (argument_list (identifier_reqs) identifier_reqs )argument_list )call )return_statement )block )with_statement )block )function_definition )module
Read a requirements.txt file, expressed as a path relative to Zipline root. Returns requirements with the pinned versions as lower bounds if `strict_bounds` is falsey.
(module (function_definition (function_name_connect_array) function_name_connect_array (parameters (identifier_self) identifier_self (identifier_address) identifier_address (identifier_connection_key) identifier_connection_key (identifier_connection_type) identifier_connection_type (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_data) identifier_data (dictionary (pair (string_"management_address") string_"management_address" (identifier_address) identifier_address )pair (pair (string_"connection_key") string_"connection_key" (identifier_connection_key) identifier_connection_key )pair (pair (string_"type") string_"type" (identifier_connection_type) identifier_connection_type )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (identifier_data) identifier_data (identifier_update) identifier_update )attribute (argument_list (identifier_kwargs) identifier_kwargs )argument_list )call )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__request) identifier__request )attribute (argument_list (string_"POST") string_"POST" (string_"array/connection") string_"array/connection" (identifier_data) identifier_data )argument_list )call )return_statement )block )function_definition )module
Connect this array with another one. :param address: IP address or DNS name of other array. :type address: str :param connection_key: Connection key of other array. :type connection_key: str :param connection_type: Type(s) of connection desired. :type connection_type: list :param \*\*kwargs: See the REST API Guide on your array for the documentation on the request: **POST array/connection** :type \*\*kwargs: optional :returns: A dictionary describing the connection to the other array. :rtype: ResponseDict .. note:: Currently, the only type of connection is "replication". .. note:: Requires use of REST API 1.2 or later.
(module (function_definition (function_name__dump) function_name__dump (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_temp) identifier_temp )attribute (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (assignment (identifier_arr) identifier_arr (call (attribute (identifier_np) identifier_np (identifier_fromfile) identifier_fromfile )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_temp) identifier_temp )attribute (attribute (identifier_self) identifier_self (identifier_dtype) identifier_dtype )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_count_arr) identifier_count_arr )attribute (subscript (identifier_arr) identifier_arr (string_'count') string_'count' )subscript )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_elapsed_arr) identifier_elapsed_arr )attribute (subscript (identifier_arr) identifier_arr (string_'elapsed') string_'elapsed' )subscript )assignment )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier_calc_stats) identifier_calc_stats )attribute (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_count_mean) identifier_count_mean )attribute (call (attribute (identifier_np) identifier_np (identifier_mean) identifier_mean )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_count_arr) identifier_count_arr )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_count_std) identifier_count_std )attribute (call (attribute (identifier_np) identifier_np (identifier_std) identifier_std )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_count_arr) identifier_count_arr )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_elapsed_mean) identifier_elapsed_mean )attribute (call (attribute (identifier_np) identifier_np (identifier_mean) identifier_mean )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_elapsed_arr) identifier_elapsed_arr )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_elapsed_std) identifier_elapsed_std )attribute (call (attribute (identifier_np) identifier_np (identifier_std) identifier_std )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_elapsed_arr) identifier_elapsed_arr )attribute )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__output) identifier__output )attribute (argument_list )argument_list )call )expression_statement )block (finally_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_temp) identifier_temp )attribute (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__cleanup) identifier__cleanup )attribute (argument_list )argument_list )call )expression_statement )block )finally_clause )try_statement )block )function_definition )module
dump data for an individual metric. For internal use only.
(module (function_definition (function_name__avoid_duplicate_arrays) function_name__avoid_duplicate_arrays (parameters (identifier_types) identifier_types )parameters (block (expression_statement (assignment (identifier_arrays) identifier_arrays (list_comprehension (identifier_t) identifier_t (for_in_clause (identifier_t) identifier_t (identifier_types) identifier_types )for_in_clause (if_clause (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_t) identifier_t (identifier_dict) identifier_dict )argument_list )call (comparison_operator (subscript (identifier_t) identifier_t (string_"type") string_"type" )subscript (string_"array") string_"array" )comparison_operator )boolean_operator )if_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_others) identifier_others (list_comprehension (identifier_t) identifier_t (for_in_clause (identifier_t) identifier_t (identifier_types) identifier_types )for_in_clause (if_clause (not_operator (parenthesized_expression (boolean_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_t) identifier_t (identifier_dict) identifier_dict )argument_list )call (comparison_operator (subscript (identifier_t) identifier_t (string_"type") string_"type" )subscript (string_"array") string_"array" )comparison_operator )boolean_operator )parenthesized_expression )not_operator )if_clause )list_comprehension )assignment )expression_statement (if_statement (identifier_arrays) identifier_arrays (block (expression_statement (assignment (identifier_items) identifier_items (call (identifier_set) identifier_set (argument_list (list )list )argument_list )call )assignment )expression_statement (for_statement (identifier_t) identifier_t (identifier_arrays) identifier_arrays (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (subscript (identifier_t) identifier_t (string_"items") string_"items" )subscript (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (block (expression_statement (augmented_assignment (identifier_items) identifier_items (call (identifier_set) identifier_set (argument_list (subscript (identifier_t) identifier_t (string_"items") string_"items" )subscript )argument_list )call )augmented_assignment )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_items) identifier_items (identifier_add) identifier_add )attribute (argument_list (subscript (identifier_t) identifier_t (string_"items") string_"items" )subscript )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_items) identifier_items )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_items) identifier_items (call (attribute (identifier_items) identifier_items (identifier_pop) identifier_pop )attribute (argument_list )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_items) identifier_items (call (identifier_sorted) identifier_sorted (argument_list (call (identifier_list) identifier_list (argument_list (identifier_items) identifier_items )argument_list )call )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_arrays) identifier_arrays (list (dictionary (pair (string_"type") string_"type" (string_"array") string_"array" )pair (pair (string_"items") string_"items" (identifier_items) identifier_items )pair )dictionary )list )assignment )expression_statement )block )if_statement (return_statement (binary_operator (identifier_others) identifier_others (identifier_arrays) identifier_arrays )binary_operator )return_statement )block )function_definition )module
Collapse arrays when we have multiple types.
(module (function_definition (function_name__collect_state_names) function_name__collect_state_names (parameters (identifier_self) identifier_self (identifier_variable) identifier_variable )parameters (block (expression_statement (string_"Return a list of states that the variable takes in the data") string_"Return a list of states that the variable takes in the data" )expression_statement (expression_statement (assignment (identifier_states) identifier_states (call (identifier_sorted) identifier_sorted (argument_list (call (identifier_list) identifier_list (argument_list (call (attribute (call (attribute (subscript (attribute (attribute (identifier_self) identifier_self (identifier_data) identifier_data )attribute (identifier_ix) identifier_ix )attribute (slice (colon) colon )slice (identifier_variable) identifier_variable )subscript (identifier_dropna) identifier_dropna )attribute (argument_list )argument_list )call (identifier_unique) identifier_unique )attribute (argument_list )argument_list )call )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_states) identifier_states )return_statement )block )function_definition )module
Return a list of states that the variable takes in the data
(module (function_definition (function_name_build_simple_fault_source_node) function_name_build_simple_fault_source_node (parameters (identifier_fault_source) identifier_fault_source )parameters (block (expression_statement (assignment (identifier_source_nodes) identifier_source_nodes (list (call (identifier_build_simple_fault_geometry) identifier_build_simple_fault_geometry (argument_list (identifier_fault_source) identifier_fault_source )argument_list )call )list )assignment )expression_statement (expression_statement (call (attribute (identifier_source_nodes) identifier_source_nodes (identifier_extend) identifier_extend )attribute (argument_list (call (identifier_get_fault_source_nodes) identifier_get_fault_source_nodes (argument_list (identifier_fault_source) identifier_fault_source )argument_list )call )argument_list )call )expression_statement (return_statement (call (identifier_Node) identifier_Node (argument_list (string_"simpleFaultSource") string_"simpleFaultSource" (call (identifier_get_source_attributes) identifier_get_source_attributes (argument_list (identifier_fault_source) identifier_fault_source )argument_list )call (keyword_argument (identifier_nodes) identifier_nodes (identifier_source_nodes) identifier_source_nodes )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Parses a simple fault source to a Node class :param fault_source: Simple fault source as instance of :class: `openquake.hazardlib.source.simple_fault.SimpleFaultSource` :returns: Instance of :class:`openquake.baselib.node.Node`
(module (function_definition (function_name_handle_activity_legacy) function_name_handle_activity_legacy (parameters (typed_parameter (identifier__) identifier__ (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier___) identifier___ (type (identifier_int) identifier_int )type )typed_parameter (typed_parameter (identifier_tokens) identifier_tokens (type (identifier_ParseResults) identifier_ParseResults )type )typed_parameter )parameters (type (identifier_ParseResults) identifier_ParseResults )type (block (expression_statement (assignment (identifier_legacy_cls) identifier_legacy_cls (subscript (attribute (identifier_language) identifier_language (identifier_activity_labels) identifier_activity_labels )attribute (subscript (identifier_tokens) identifier_tokens (identifier_MODIFIER) identifier_MODIFIER )subscript )subscript )assignment )expression_statement (expression_statement (assignment (subscript (identifier_tokens) identifier_tokens (identifier_MODIFIER) identifier_MODIFIER )subscript (identifier_ACTIVITY) identifier_ACTIVITY )assignment )expression_statement (expression_statement (assignment (subscript (identifier_tokens) identifier_tokens (identifier_EFFECT) identifier_EFFECT )subscript (dictionary (pair (identifier_NAME) identifier_NAME (identifier_legacy_cls) identifier_legacy_cls )pair (pair (identifier_NAMESPACE) identifier_NAMESPACE (identifier_BEL_DEFAULT_NAMESPACE) identifier_BEL_DEFAULT_NAMESPACE )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_log) identifier_log )attribute (argument_list (integer_5) integer_5 (string_'upgraded legacy activity to %s') string_'upgraded legacy activity to %s' (identifier_legacy_cls) identifier_legacy_cls )argument_list )call )expression_statement (return_statement (identifier_tokens) identifier_tokens )return_statement )block )function_definition )module
Handle BEL 1.0 activities.
(module (function_definition (function_name_dump_limits) function_name_dump_limits (parameters (identifier_conf_file) identifier_conf_file (identifier_limits_file) identifier_limits_file (default_parameter (identifier_debug) identifier_debug (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_conf) identifier_conf (call (attribute (identifier_config) identifier_config (identifier_Config) identifier_Config )attribute (argument_list (keyword_argument (identifier_conf_file) identifier_conf_file (identifier_conf_file) identifier_conf_file )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_db) identifier_db (call (attribute (identifier_conf) identifier_conf (identifier_get_database) identifier_get_database )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_limits_key) identifier_limits_key (call (attribute (subscript (identifier_conf) identifier_conf (string_'control') string_'control' )subscript (identifier_get) identifier_get )attribute (argument_list (string_'limits_key') string_'limits_key' (string_'limits') string_'limits' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_lims) identifier_lims (list_comprehension (call (attribute (attribute (identifier_limits) identifier_limits (identifier_Limit) identifier_Limit )attribute (identifier_hydrate) identifier_hydrate )attribute (argument_list (identifier_db) identifier_db (call (attribute (identifier_msgpack) identifier_msgpack (identifier_loads) identifier_loads )attribute (argument_list (identifier_lim) identifier_lim )argument_list )call )argument_list )call (for_in_clause (identifier_lim) identifier_lim (call (attribute (identifier_db) identifier_db (identifier_zrange) identifier_zrange )attribute (argument_list (identifier_limits_key) identifier_limits_key (integer_0) integer_0 (unary_operator (integer_1) integer_1 )unary_operator )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_root) identifier_root (call (attribute (identifier_etree) identifier_etree (identifier_Element) identifier_Element )attribute (argument_list (string_'limits') string_'limits' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_limit_tree) identifier_limit_tree (call (attribute (identifier_etree) identifier_etree (identifier_ElementTree) identifier_ElementTree )attribute (argument_list (identifier_root) identifier_root )argument_list )call )assignment )expression_statement (for_statement (pattern_list (identifier_idx) identifier_idx (identifier_lim) identifier_lim )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_lims) identifier_lims )argument_list )call (block (if_statement (identifier_debug) identifier_debug (block (print_statement (chevron (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute )chevron (binary_operator (string_"Dumping limit index %d: %r") string_"Dumping limit index %d: %r" (tuple (identifier_idx) identifier_idx (identifier_lim) identifier_lim )tuple )binary_operator )print_statement )block )if_statement (expression_statement (call (identifier_make_limit_node) identifier_make_limit_node (argument_list (identifier_root) identifier_root (identifier_lim) identifier_lim )argument_list )call )expression_statement )block )for_statement (if_statement (comparison_operator (identifier_limits_file) identifier_limits_file (string_'-') string_'-' )comparison_operator (block (expression_statement (assignment (identifier_limits_file) identifier_limits_file (attribute (identifier_sys) identifier_sys (identifier_stdout) identifier_stdout )attribute )assignment )expression_statement )block )if_statement (if_statement (identifier_debug) identifier_debug (block (print_statement (chevron (attribute (identifier_sys) identifier_sys (identifier_stderr) identifier_stderr )attribute )chevron (binary_operator (string_"Dumping limits to file %r") string_"Dumping limits to file %r" (identifier_limits_file) identifier_limits_file )binary_operator )print_statement )block )if_statement (expression_statement (call (attribute (identifier_limit_tree) identifier_limit_tree (identifier_write) identifier_write )attribute (argument_list (identifier_limits_file) identifier_limits_file (keyword_argument (identifier_xml_declaration) identifier_xml_declaration (True) True )keyword_argument (keyword_argument (identifier_encoding) identifier_encoding (string_'UTF-8') string_'UTF-8' )keyword_argument (keyword_argument (identifier_pretty_print) identifier_pretty_print (True) True )keyword_argument )argument_list )call )expression_statement )block )function_definition )module
Dump the current limits from the Redis database. :param conf_file: Name of the configuration file, for connecting to the Redis database. :param limits_file: Name of the XML file that the limits will be dumped to. Use '-' to dump to stdout. :param debug: If True, debugging messages are emitted while dumping the limits.
(module (function_definition (function_name__cache_key_select_state) function_name__cache_key_select_state (parameters (identifier_method) identifier_method (identifier_self) identifier_self (identifier_workflow_id) identifier_workflow_id (identifier_field_id) identifier_field_id (identifier_field_title) identifier_field_title )parameters (block (expression_statement (assignment (identifier_key) identifier_key (expression_list (call (identifier_update_timer) identifier_update_timer (argument_list )argument_list )call (identifier_workflow_id) identifier_workflow_id (identifier_field_id) identifier_field_id (identifier_field_title) identifier_field_title )expression_list )assignment )expression_statement (return_statement (identifier_key) identifier_key )return_statement )block )function_definition )module
This function returns the key used to decide if select_state has to be recomputed
(module (function_definition (function_name_iswc) function_name_iswc (parameters (default_parameter (identifier_name) identifier_name (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_name) identifier_name (None) None )comparison_operator (block (expression_statement (assignment (identifier_name) identifier_name (string_'ISWC Field') string_'ISWC Field' )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_field) identifier_field (call (attribute (identifier_pp) identifier_pp (identifier_Regex) identifier_Regex )attribute (argument_list (string_'T[0-9]{10}') string_'T[0-9]{10}' )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_field) identifier_field (identifier_setName) identifier_setName )attribute (argument_list (identifier_name) identifier_name )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_field) identifier_field (identifier_leaveWhitespace) identifier_leaveWhitespace )attribute (argument_list )argument_list )call )expression_statement (return_statement (call (attribute (identifier_field) identifier_field (identifier_setResultsName) identifier_setResultsName )attribute (argument_list (string_'iswc') string_'iswc' )argument_list )call )return_statement )block )function_definition )module
ISWC field. A ISWC code written on a field follows the Pattern TNNNNNNNNNC. This being: - T: header, it is always T. - N: numeric value. - C: control digit. So, for example, an ISWC code field can contain T0345246801. :param name: name for the field :return: a parser for the ISWC field
(module (function_definition (function_name_check_valid_package) function_name_check_valid_package (parameters (identifier_package) identifier_package (default_parameter (identifier_cyg_arch) identifier_cyg_arch (string_'x86_64') string_'x86_64' )default_parameter (default_parameter (identifier_mirrors) identifier_mirrors (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_mirrors) identifier_mirrors (None) None )comparison_operator (block (expression_statement (assignment (identifier_mirrors) identifier_mirrors (list (dictionary (pair (identifier_DEFAULT_MIRROR) identifier_DEFAULT_MIRROR (identifier_DEFAULT_MIRROR_KEY) identifier_DEFAULT_MIRROR_KEY )pair )dictionary )list )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_LOG) identifier_LOG (identifier_debug) identifier_debug )attribute (argument_list (string_'Checking Valid Mirrors: %s') string_'Checking Valid Mirrors: %s' (identifier_mirrors) identifier_mirrors )argument_list )call )expression_statement (for_statement (identifier_mirror) identifier_mirror (identifier_mirrors) identifier_mirrors (block (for_statement (pattern_list (identifier_mirror_url) identifier_mirror_url (identifier_key) identifier_key )pattern_list (call (attribute (identifier_mirror) identifier_mirror (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (comparison_operator (identifier_package) identifier_package (call (identifier__get_all_packages) identifier__get_all_packages (argument_list (identifier_mirror_url) identifier_mirror_url (identifier_cyg_arch) identifier_cyg_arch )argument_list )call )comparison_operator (block (return_statement (True) True )return_statement )block )if_statement )block )for_statement )block )for_statement (return_statement (False) False )return_statement )block )function_definition )module
Check if the package is valid on the given mirrors. Args: package: The name of the package cyg_arch: The cygwin architecture mirrors: any mirrors to check Returns (bool): True if Valid, otherwise False CLI Example: .. code-block:: bash salt '*' cyg.check_valid_package <package name>
(module (function_definition (function_name__get_pdb_format_version) function_name__get_pdb_format_version (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_format_version) identifier_format_version )attribute )not_operator (block (expression_statement (assignment (identifier_version) identifier_version (None) None )assignment )expression_statement (expression_statement (assignment (identifier_version_lines) identifier_version_lines (None) None )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_version_lines) identifier_version_lines (list_comprehension (identifier_line) identifier_line (for_in_clause (identifier_line) identifier_line (subscript (attribute (identifier_self) identifier_self (identifier_parsed_lines) identifier_parsed_lines )attribute (string_'REMARK') string_'REMARK' )subscript )for_in_clause (if_clause (boolean_operator (comparison_operator (call (identifier_int) identifier_int (argument_list (subscript (identifier_line) identifier_line (slice (integer_7) integer_7 (colon) colon (integer_10) integer_10 )slice )subscript )argument_list )call (integer_4) integer_4 )comparison_operator (call (attribute (subscript (identifier_line) identifier_line (slice (integer_10) integer_10 (colon) colon )slice )subscript (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )boolean_operator )if_clause )list_comprehension )assignment )expression_statement )block (except_clause (block (pass_statement )pass_statement )block )except_clause )try_statement (if_statement (identifier_version_lines) identifier_version_lines (block (assert_statement (parenthesized_expression (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_version_lines) identifier_version_lines )argument_list )call (integer_1) integer_1 )comparison_operator )parenthesized_expression )assert_statement (expression_statement (assignment (identifier_version_line) identifier_version_line (subscript (identifier_version_lines) identifier_version_lines (integer_0) integer_0 )subscript )assignment )expression_statement (expression_statement (assignment (identifier_version_regex) identifier_version_regex (call (attribute (identifier_re) identifier_re (identifier_compile) identifier_compile )attribute (argument_list (string_'.*?FORMAT V.(.*),') string_'.*?FORMAT V.(.*),' )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_mtch) identifier_mtch (call (attribute (identifier_version_regex) identifier_version_regex (identifier_match) identifier_match )attribute (argument_list (identifier_version_line) identifier_version_line )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (identifier_mtch) identifier_mtch (call (attribute (identifier_mtch) identifier_mtch (identifier_groups) identifier_groups )attribute (argument_list (integer_0) integer_0 )argument_list )call )boolean_operator (block (try_statement (block (expression_statement (assignment (identifier_version) identifier_version (call (identifier_float) identifier_float (argument_list (subscript (call (attribute (identifier_mtch) identifier_mtch (identifier_groups) identifier_groups )attribute (argument_list (integer_0) integer_0 )argument_list )call (integer_0) integer_0 )subscript )argument_list )call )assignment )expression_statement )block (except_clause (block (pass_statement )pass_statement )block )except_clause )try_statement )block )if_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_format_version) identifier_format_version )attribute (identifier_version) identifier_version )assignment )expression_statement )block )if_statement )block )function_definition )module
Remark 4 indicates the version of the PDB File Format used to generate the file.
(module (function_definition (function_name__add_function) function_name__add_function (parameters (identifier_self) identifier_self (identifier_func) identifier_func (identifier_identify_observed) identifier_identify_observed )parameters (block (expression_statement (assignment (identifier_key) identifier_key (call (attribute (identifier_self) identifier_self (identifier_make_key) identifier_make_key )attribute (argument_list (identifier_func) identifier_func )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_key) identifier_key (attribute (identifier_self) identifier_self (identifier_observers) identifier_observers )attribute )comparison_operator (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_observers) identifier_observers )attribute (identifier_key) identifier_key )subscript (call (identifier_ObserverFunction) identifier_ObserverFunction (argument_list (identifier_func) identifier_func (identifier_identify_observed) identifier_identify_observed (tuple (identifier_key) identifier_key (attribute (identifier_self) identifier_self (identifier_observers) identifier_observers )attribute )tuple )argument_list )call )assignment )expression_statement (return_statement (True) True )return_statement )block (else_clause (block (return_statement (False) False )return_statement )block )else_clause )if_statement )block )function_definition )module
Add a function as an observer. Args: func: The function to register as an observer. identify_observed: See docstring for add_observer. Returns: True if the function is added, otherwise False.
(module (function_definition (function_name_list_formats) function_name_list_formats (parameters (identifier_self) identifier_self (identifier_node) identifier_node (default_parameter (identifier_path) identifier_path (tuple )tuple )default_parameter (default_parameter (identifier_formats) identifier_formats (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_formats) identifier_formats (None) None )comparison_operator (block (expression_statement (assignment (identifier_formats) identifier_formats (list )list )assignment )expression_statement )block )if_statement (for_statement (identifier_child) identifier_child (attribute (identifier_node) identifier_node (identifier_children) identifier_children )attribute (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_list_formats) identifier_list_formats )attribute (argument_list (identifier_child) identifier_child (binary_operator (identifier_path) identifier_path (tuple (attribute (identifier_child) identifier_child (identifier_name) identifier_name )attribute )tuple )binary_operator (identifier_formats) identifier_formats )argument_list )call )expression_statement )block )for_statement (expression_statement (boolean_operator (identifier_path) identifier_path (call (attribute (identifier_formats) identifier_formats (identifier_append) identifier_append )attribute (argument_list (call (attribute (string_".") string_"." (identifier_join) identifier_join )attribute (argument_list (identifier_path) identifier_path )argument_list )call )argument_list )call )boolean_operator )expression_statement (return_statement (call (identifier_sorted) identifier_sorted (argument_list (identifier_formats) identifier_formats )argument_list )call )return_statement )block )function_definition )module
Lists the object formats in sorted order. :param node: Root node to start listing the formats from. :type node: AbstractCompositeNode :param path: Walked paths. :type path: tuple :param formats: Formats. :type formats: list :return: Formats. :rtype: list
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_process) identifier_process )attribute (identifier_appendproctitle) identifier_appendproctitle )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier___class__) identifier___class__ )attribute (identifier___name__) identifier___name__ )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__post_fork_init) identifier__post_fork_init )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_last) identifier_last (call (identifier_int) identifier_int (argument_list (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_old_present) identifier_old_present (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (while_statement (True) True (block (expression_statement (assignment (identifier_now) identifier_now (call (identifier_int) identifier_int (argument_list (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (parenthesized_expression (binary_operator (identifier_now) identifier_now (identifier_last) identifier_last )binary_operator )parenthesized_expression (attribute (identifier_self) identifier_self (identifier_loop_interval) identifier_loop_interval )attribute )comparison_operator (block (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_daemons) identifier_daemons )attribute (identifier_masterapi) identifier_masterapi )attribute (identifier_clean_old_jobs) identifier_clean_old_jobs )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_daemons) identifier_daemons )attribute (identifier_masterapi) identifier_masterapi )attribute (identifier_clean_expired_tokens) identifier_clean_expired_tokens )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_daemons) identifier_daemons )attribute (identifier_masterapi) identifier_masterapi )attribute (identifier_clean_pub_auth) identifier_clean_pub_auth )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_daemons) identifier_daemons )attribute (identifier_masterapi) identifier_masterapi )attribute (identifier_clean_proc_dir) identifier_clean_proc_dir )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_handle_git_pillar) identifier_handle_git_pillar )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_handle_schedule) identifier_handle_schedule )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_handle_key_cache) identifier_handle_key_cache )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_handle_presence) identifier_handle_presence )attribute (argument_list (identifier_old_present) identifier_old_present )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_handle_key_rotate) identifier_handle_key_rotate )attribute (argument_list (identifier_now) identifier_now )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_verify) identifier_verify )attribute (identifier_check_max_open_files) identifier_check_max_open_files )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_opts) identifier_opts )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_last) identifier_last (identifier_now) identifier_now )assignment )expression_statement (expression_statement (call (attribute (identifier_time) identifier_time (identifier_sleep) identifier_sleep )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_loop_interval) identifier_loop_interval )attribute )argument_list )call )expression_statement )block )while_statement )block )function_definition )module
This is the general passive maintenance process controller for the Salt master. This is where any data that needs to be cleanly maintained from the master is maintained.
(module (function_definition (function_name_delimit) function_name_delimit (parameters (identifier_delimiters) identifier_delimiters (identifier_content) identifier_content )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_delimiters) identifier_delimiters )argument_list )call (integer_2) integer_2 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (string_"`delimiters` must be of length 2. Got %r") string_"`delimiters` must be of length 2. Got %r" (identifier_delimiters) identifier_delimiters )binary_operator )argument_list )call )raise_statement )block )if_statement (return_statement (call (attribute (string_'') string_'' (identifier_join) identifier_join )attribute (argument_list (list (subscript (identifier_delimiters) identifier_delimiters (integer_0) integer_0 )subscript (identifier_content) identifier_content (subscript (identifier_delimiters) identifier_delimiters (integer_1) integer_1 )subscript )list )argument_list )call )return_statement )block )function_definition )module
Surround `content` with the first and last characters of `delimiters`. >>> delimit('[]', "foo") # doctest: +SKIP '[foo]' >>> delimit('""', "foo") # doctest: +SKIP '"foo"'
(module (function_definition (function_name_predict) function_name_predict (parameters (identifier_fqdn) identifier_fqdn (identifier_result) identifier_result (list_splat_pattern (identifier_argl) identifier_argl )list_splat_pattern (dictionary_splat_pattern (identifier_argd) identifier_argd )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_out) identifier_out (None) None )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_argl) identifier_argl )argument_list )call (integer_0) integer_0 )comparison_operator (block (expression_statement (assignment (identifier_machine) identifier_machine (subscript (identifier_argl) identifier_argl (integer_0) integer_0 )subscript )assignment )expression_statement (if_statement (call (identifier_isclassifier) identifier_isclassifier (argument_list (identifier_machine) identifier_machine )argument_list )call (block (expression_statement (assignment (identifier_out) identifier_out (call (identifier_classify_predict) identifier_classify_predict (argument_list (identifier_fqdn) identifier_fqdn (identifier_result) identifier_result (None) None (list_splat (identifier_argl) identifier_argl )list_splat (dictionary_splat (identifier_argd) identifier_argd )dictionary_splat )argument_list )call )assignment )expression_statement )block (elif_clause (call (identifier_isregressor) identifier_isregressor (argument_list (identifier_machine) identifier_machine )argument_list )call (block (expression_statement (assignment (identifier_out) identifier_out (call (identifier_regress_predict) identifier_regress_predict (argument_list (identifier_fqdn) identifier_fqdn (identifier_result) identifier_result (None) None (list_splat (identifier_argl) identifier_argl )list_splat (dictionary_splat (identifier_argd) identifier_argd )dictionary_splat )argument_list )call )assignment )expression_statement )block )elif_clause )if_statement )block )if_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Analyzes the result of a generic predict operation performed by `sklearn`. Args: fqdn (str): full-qualified name of the method that was called. result: result of calling the method with `fqdn`. argl (tuple): positional arguments passed to the method call. argd (dict): keyword arguments passed to the method call.
(module (function_definition (function_name_on_raw_error) function_name_on_raw_error (parameters (identifier_self) identifier_self (identifier_message) identifier_message )parameters (block (expression_statement (assignment (identifier_error) identifier_error (call (attribute (identifier_protocol) identifier_protocol (identifier_ServerError) identifier_ServerError )attribute (argument_list (call (attribute (string_' ') string_' ' (identifier_join) identifier_join )attribute (argument_list (attribute (identifier_message) identifier_message (identifier_params) identifier_params )attribute )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (await (call (attribute (identifier_self) identifier_self (identifier_on_data_error) identifier_on_data_error )attribute (argument_list (identifier_error) identifier_error )argument_list )call )await )expression_statement )block )function_definition )module
Server encountered an error and will now close the connection.
(module (function_definition (function_name_dir_list) function_name_dir_list (parameters (identifier_load) identifier_load )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_files) identifier_files (call (identifier_file_list) identifier_file_list (argument_list (identifier_load) identifier_load )argument_list )call )assignment )expression_statement (for_statement (identifier_f) identifier_f (identifier_files) identifier_files (block (expression_statement (assignment (identifier_dirname) identifier_dirname (identifier_f) identifier_f )assignment )expression_statement (while_statement (identifier_dirname) identifier_dirname (block (expression_statement (assignment (identifier_dirname) identifier_dirname (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )assignment )expression_statement (if_statement (identifier_dirname) identifier_dirname (block (expression_statement (call (attribute (identifier_ret) identifier_ret (identifier_add) identifier_add )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )expression_statement )block )if_statement )block )while_statement )block )for_statement (return_statement (call (identifier_list) identifier_list (argument_list (identifier_ret) identifier_ret )argument_list )call )return_statement )block )function_definition )module
Return a list of all directories in a specified environment
(module (function_definition (function_name__path_is_executable_others) function_name__path_is_executable_others (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_prevpath) identifier_prevpath (None) None )assignment )expression_statement (while_statement (boolean_operator (identifier_path) identifier_path (comparison_operator (identifier_path) identifier_path (identifier_prevpath) identifier_prevpath )comparison_operator )boolean_operator (block (try_statement (block (if_statement (not_operator (binary_operator (attribute (call (attribute (identifier_os) identifier_os (identifier_stat) identifier_stat )attribute (argument_list (identifier_path) identifier_path )argument_list )call (identifier_st_mode) identifier_st_mode )attribute (attribute (identifier_stat) identifier_stat (identifier_S_IXOTH) identifier_S_IXOTH )attribute )binary_operator )not_operator (block (return_statement (False) False )return_statement )block )if_statement )block (except_clause (identifier_OSError) identifier_OSError (block (return_statement (False) False )return_statement )block )except_clause )try_statement (expression_statement (assignment (identifier_prevpath) identifier_prevpath (identifier_path) identifier_path )assignment )expression_statement (expression_statement (assignment (pattern_list (identifier_path) identifier_path (identifier__) identifier__ )pattern_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_split) identifier_split )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement )block )while_statement (return_statement (True) True )return_statement )block )function_definition )module
Check every part of path for executable permission
(module (function_definition (function_name__recursiveSetNodePath) function_name__recursiveSetNodePath (parameters (identifier_self) identifier_self (identifier_nodePath) identifier_nodePath )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__nodePath) identifier__nodePath )attribute (identifier_nodePath) identifier_nodePath )assignment )expression_statement (for_statement (identifier_childItem) identifier_childItem (attribute (identifier_self) identifier_self (identifier_childItems) identifier_childItems )attribute (block (expression_statement (call (attribute (identifier_childItem) identifier_childItem (identifier__recursiveSetNodePath) identifier__recursiveSetNodePath )attribute (argument_list (binary_operator (binary_operator (identifier_nodePath) identifier_nodePath (string_'/') string_'/' )binary_operator (attribute (identifier_childItem) identifier_childItem (identifier_nodeName) identifier_nodeName )attribute )binary_operator )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Sets the nodePath property and updates it for all children.
(module (function_definition (function_name_set_iam_policy) function_name_set_iam_policy (parameters (identifier_self) identifier_self (identifier_policy) identifier_policy (default_parameter (identifier_client) identifier_client (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_client) identifier_client (call (attribute (identifier_self) identifier_self (identifier__require_client) identifier__require_client )attribute (argument_list (identifier_client) identifier_client )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_query_params) identifier_query_params (dictionary )dictionary )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_user_project) identifier_user_project )attribute (None) None )comparison_operator (block (expression_statement (assignment (subscript (identifier_query_params) identifier_query_params (string_"userProject") string_"userProject" )subscript (attribute (identifier_self) identifier_self (identifier_user_project) identifier_user_project )attribute )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_resource) identifier_resource (call (attribute (identifier_policy) identifier_policy (identifier_to_api_repr) identifier_to_api_repr )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (identifier_resource) identifier_resource (string_"resourceId") string_"resourceId" )subscript (attribute (identifier_self) identifier_self (identifier_path) identifier_path )attribute )assignment )expression_statement (expression_statement (assignment (identifier_info) identifier_info (call (attribute (attribute (identifier_client) identifier_client (identifier__connection) identifier__connection )attribute (identifier_api_request) identifier_api_request )attribute (argument_list (keyword_argument (identifier_method) identifier_method (string_"PUT") string_"PUT" )keyword_argument (keyword_argument (identifier_path) identifier_path (binary_operator (string_"%s/iam") string_"%s/iam" (tuple (attribute (identifier_self) identifier_self (identifier_path) identifier_path )attribute )tuple )binary_operator )keyword_argument (keyword_argument (identifier_query_params) identifier_query_params (identifier_query_params) identifier_query_params )keyword_argument (keyword_argument (identifier_data) identifier_data (identifier_resource) identifier_resource )keyword_argument (keyword_argument (identifier__target_object) identifier__target_object (None) None )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (call (attribute (identifier_Policy) identifier_Policy (identifier_from_api_repr) identifier_from_api_repr )attribute (argument_list (identifier_info) identifier_info )argument_list )call )return_statement )block )function_definition )module
Update the IAM policy for the bucket. See https://cloud.google.com/storage/docs/json_api/v1/buckets/setIamPolicy If :attr:`user_project` is set, bills the API request to that project. :type policy: :class:`google.api_core.iam.Policy` :param policy: policy instance used to update bucket's IAM policy. :type client: :class:`~google.cloud.storage.client.Client` or ``NoneType`` :param client: Optional. The client to use. If not passed, falls back to the ``client`` stored on the current bucket. :rtype: :class:`google.api_core.iam.Policy` :returns: the policy instance, based on the resource returned from the ``setIamPolicy`` API request.
(module (function_definition (function_name_iconGlyph) function_name_iconGlyph (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier__h5Dataset) identifier__h5Dataset )attribute (identifier_attrs) identifier_attrs )attribute (identifier_get) identifier_get )attribute (argument_list (string_'CLASS') string_'CLASS' (None) None )argument_list )call (string_b'DIMENSION_SCALE') string_b'DIMENSION_SCALE' )comparison_operator (block (return_statement (attribute (identifier_RtiIconFactory) identifier_RtiIconFactory (identifier_DIMENSION) identifier_DIMENSION )attribute )return_statement )block (else_clause (block (return_statement (attribute (identifier_RtiIconFactory) identifier_RtiIconFactory (identifier_ARRAY) identifier_ARRAY )attribute )return_statement )block )else_clause )if_statement )block )function_definition )module
Shows an Array icon for regular datasets but a dimension icon for dimension scales
(module (function_definition (function_name_add_handler) function_name_add_handler (parameters (identifier_self) identifier_self (typed_parameter (identifier_handler) identifier_handler (type (identifier_Handler) identifier_Handler )type )typed_parameter (typed_default_parameter (identifier_group) identifier_group (type (identifier_int) identifier_int )type (integer_0) integer_0 )typed_default_parameter )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_handler) identifier_handler (identifier_DisconnectHandler) identifier_DisconnectHandler )argument_list )call (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_disconnect_handler) identifier_disconnect_handler )attribute (attribute (identifier_handler) identifier_handler (identifier_callback) identifier_callback )attribute )assignment )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_dispatcher) identifier_dispatcher )attribute (identifier_add_handler) identifier_add_handler )attribute (argument_list (identifier_handler) identifier_handler (identifier_group) identifier_group )argument_list )call )expression_statement )block )else_clause )if_statement (return_statement (expression_list (identifier_handler) identifier_handler (identifier_group) identifier_group )expression_list )return_statement )block )function_definition )module
Use this method to register an update handler. You can register multiple handlers, but at most one handler within a group will be used for a single update. To handle the same update more than once, register your handler using a different group id (lower group id == higher priority). Args: handler (``Handler``): The handler to be registered. group (``int``, *optional*): The group identifier, defaults to 0. Returns: A tuple of (handler, group)
(module (function_definition (function_name_extract_archive) function_name_extract_archive (parameters (identifier_client) identifier_client (identifier_archive_path) identifier_archive_path (default_parameter (identifier_extract_path) identifier_extract_path (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_command) identifier_command (call (attribute (string_'tar -xf {path}') string_'tar -xf {path}' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_path) identifier_path (identifier_archive_path) identifier_archive_path )keyword_argument )argument_list )call )assignment )expression_statement (if_statement (identifier_extract_path) identifier_extract_path (block (expression_statement (augmented_assignment (identifier_command) identifier_command (call (attribute (string_' -C {extract_path}') string_' -C {extract_path}' (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_extract_path) identifier_extract_path (identifier_extract_path) identifier_extract_path )keyword_argument )argument_list )call )augmented_assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_out) identifier_out (call (identifier_execute_ssh_command) identifier_execute_ssh_command (argument_list (identifier_client) identifier_client (identifier_command) identifier_command )argument_list )call )assignment )expression_statement (return_statement (identifier_out) identifier_out )return_statement )block )function_definition )module
Extract the archive in current path using the provided client. If extract_path is provided extract the archive there.
(module (function_definition (function_name__load_image_set_index) function_name__load_image_set_index (parameters (identifier_self) identifier_self (identifier_shuffle) identifier_shuffle )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_num_images) identifier_num_images )attribute (integer_0) integer_0 )assignment )expression_statement (for_statement (identifier_db) identifier_db (attribute (identifier_self) identifier_self (identifier_imdbs) identifier_imdbs )attribute (block (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier_num_images) identifier_num_images )attribute (attribute (identifier_db) identifier_db (identifier_num_images) identifier_num_images )attribute )augmented_assignment )expression_statement )block )for_statement (expression_statement (assignment (identifier_indices) identifier_indices (call (identifier_list) identifier_list (argument_list (call (identifier_range) identifier_range (argument_list (attribute (identifier_self) identifier_self (identifier_num_images) identifier_num_images )attribute )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (identifier_shuffle) identifier_shuffle (block (expression_statement (call (attribute (identifier_random) identifier_random (identifier_shuffle) identifier_shuffle )attribute (argument_list (identifier_indices) identifier_indices )argument_list )call )expression_statement )block )if_statement (return_statement (identifier_indices) identifier_indices )return_statement )block )function_definition )module
get total number of images, init indices Parameters ---------- shuffle : bool whether to shuffle the initial indices
(module (function_definition (function_name_substitute) function_name_substitute (parameters (identifier_self) identifier_self (identifier_var_map) identifier_var_map (default_parameter (identifier_cont) identifier_cont (False) False )default_parameter (default_parameter (identifier_tag) identifier_tag (None) None )default_parameter )parameters (block (return_statement (call (attribute (identifier_self) identifier_self (identifier_apply) identifier_apply )attribute (argument_list (identifier_substitute) identifier_substitute (keyword_argument (identifier_var_map) identifier_var_map (identifier_var_map) identifier_var_map )keyword_argument (keyword_argument (identifier_cont) identifier_cont (identifier_cont) identifier_cont )keyword_argument (keyword_argument (identifier_tag) identifier_tag (identifier_tag) identifier_tag )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Substitute sub-expressions both on the lhs and rhs Args: var_map (dict): Dictionary with entries of the form ``{expr: substitution}``
(module (function_definition (function_name_query) function_name_query (parameters (identifier_self) identifier_self (identifier_queryString) identifier_queryString )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__setHeaders) identifier__setHeaders )attribute (argument_list (string_'query') string_'query' )argument_list )call )expression_statement (return_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier__sforce) identifier__sforce )attribute (identifier_service) identifier_service )attribute (identifier_query) identifier_query )attribute (argument_list (identifier_queryString) identifier_queryString )argument_list )call )return_statement )block )function_definition )module
Executes a query against the specified object and returns data that matches the specified criteria.
(module (function_definition (function_name_push_fbo) function_name_push_fbo (parameters (identifier_self) identifier_self (identifier_fbo) identifier_fbo (identifier_offset) identifier_offset (identifier_csize) identifier_csize )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__fb_stack) identifier__fb_stack )attribute (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_fbo) identifier_fbo (identifier_offset) identifier_offset (identifier_csize) identifier_csize )tuple )argument_list )call )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_fbo) identifier_fbo (identifier_activate) identifier_activate )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (pattern_list (identifier_h) identifier_h (identifier_w) identifier_w )pattern_list (subscript (attribute (attribute (identifier_fbo) identifier_fbo (identifier_color_buffer) identifier_color_buffer )attribute (identifier_shape) identifier_shape )attribute (slice (colon) colon (integer_2) integer_2 )slice )subscript )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_push_viewport) identifier_push_viewport )attribute (argument_list (tuple (integer_0) integer_0 (integer_0) integer_0 (identifier_w) identifier_w (identifier_h) identifier_h )tuple )argument_list )call )expression_statement )block (except_clause (identifier_Exception) identifier_Exception (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__fb_stack) identifier__fb_stack )attribute (identifier_pop) identifier_pop )attribute (argument_list )argument_list )call )expression_statement (raise_statement )raise_statement )block )except_clause )try_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__update_transforms) identifier__update_transforms )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Push an FBO on the stack. This activates the framebuffer and causes subsequent rendering to be written to the framebuffer rather than the canvas's back buffer. This will also set the canvas viewport to cover the boundaries of the framebuffer. Parameters ---------- fbo : instance of FrameBuffer The framebuffer object . offset : tuple The location of the fbo origin relative to the canvas's framebuffer origin. csize : tuple The size of the region in the canvas's framebuffer that should be covered by this framebuffer object.
(module (function_definition (function_name_profile_remove) function_name_profile_remove (parameters (identifier_name) identifier_name (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_ctx) identifier_ctx (call (identifier_Context) identifier_Context (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_ctx) identifier_ctx (identifier_execute_action) identifier_execute_action )attribute (argument_list (string_'profile:remove') string_'profile:remove' (dictionary_splat (dictionary (pair (string_'storage') string_'storage' (call (attribute (attribute (identifier_ctx) identifier_ctx (identifier_repo) identifier_repo )attribute (identifier_create_secure_service) identifier_create_secure_service )attribute (argument_list (string_'storage') string_'storage' )argument_list )call )pair (pair (string_'name') string_'name' (identifier_name) identifier_name )pair )dictionary )dictionary_splat )argument_list )call )expression_statement )block )function_definition )module
Remove profile from the storage.
(module (function_definition (function_name_add_group) function_name_add_group (parameters (identifier_self) identifier_self (default_parameter (identifier_group_attribs) identifier_group_attribs (None) None )default_parameter (default_parameter (identifier_parent) identifier_parent (None) None )default_parameter )parameters (block (if_statement (comparison_operator (identifier_parent) identifier_parent (None) None )comparison_operator (block (expression_statement (assignment (identifier_parent) identifier_parent (call (attribute (attribute (identifier_self) identifier_self (identifier_tree) identifier_tree )attribute (identifier_getroot) identifier_getroot )attribute (argument_list )argument_list )call )assignment )expression_statement )block (elif_clause (not_operator (call (attribute (identifier_self) identifier_self (identifier_contains_group) identifier_contains_group )attribute (argument_list (identifier_parent) identifier_parent )argument_list )call )not_operator (block (expression_statement (call (attribute (identifier_warnings) identifier_warnings (identifier_warn) identifier_warn )attribute (argument_list (call (attribute (concatenated_string (string_'The requested group {0} does not belong to ') string_'The requested group {0} does not belong to ' (string_'this Document') string_'this Document' )concatenated_string (identifier_format) identifier_format )attribute (argument_list (identifier_parent) identifier_parent )argument_list )call )argument_list )call )expression_statement )block )elif_clause )if_statement (if_statement (comparison_operator (identifier_group_attribs) identifier_group_attribs (None) None )comparison_operator (block (expression_statement (assignment (identifier_group_attribs) identifier_group_attribs (dictionary )dictionary )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_group_attribs) identifier_group_attribs (call (attribute (identifier_group_attribs) identifier_group_attribs (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (return_statement (call (identifier_SubElement) identifier_SubElement (argument_list (identifier_parent) identifier_parent (call (attribute (string_'{{{0}}}g') string_'{{{0}}}g' (identifier_format) identifier_format )attribute (argument_list (subscript (identifier_SVG_NAMESPACE) identifier_SVG_NAMESPACE (string_'svg') string_'svg' )subscript )argument_list )call (identifier_group_attribs) identifier_group_attribs )argument_list )call )return_statement )block )function_definition )module
Add an empty group element to the SVG.
(module (function_definition (function_name_get_image_format) function_name_get_image_format (parameters (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_image) identifier_image (None) None )assignment )expression_statement (expression_statement (assignment (identifier_bad_image) identifier_bad_image (integer_1) integer_1 )assignment )expression_statement (expression_statement (assignment (identifier_image_format) identifier_image_format (identifier_NONE_FORMAT) identifier_NONE_FORMAT )assignment )expression_statement (expression_statement (assignment (identifier_sequenced) identifier_sequenced (False) False )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_bad_image) identifier_bad_image (call (attribute (call (attribute (identifier_Image) identifier_Image (identifier_open) identifier_open )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call (identifier_verify) identifier_verify )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_image) identifier_image (call (attribute (identifier_Image) identifier_Image (identifier_open) identifier_open )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_image_format) identifier_image_format (attribute (identifier_image) identifier_image (identifier_format) identifier_format )attribute )assignment )expression_statement (expression_statement (assignment (identifier_sequenced) identifier_sequenced (call (identifier__is_image_sequenced) identifier__is_image_sequenced (argument_list (identifier_image) identifier_image )argument_list )call )assignment )expression_statement )block (except_clause (tuple (identifier_OSError) identifier_OSError (identifier_IOError) identifier_IOError (identifier_AttributeError) identifier_AttributeError )tuple (block (pass_statement )pass_statement )block )except_clause )try_statement (if_statement (identifier_sequenced) identifier_sequenced (block (expression_statement (assignment (identifier_image_format) identifier_image_format (call (attribute (attribute (identifier_gif) identifier_gif (identifier_SEQUENCED_TEMPLATE) identifier_SEQUENCED_TEMPLATE )attribute (identifier_format) identifier_format )attribute (argument_list (identifier_image_format) identifier_image_format )argument_list )call )assignment )expression_statement )block (elif_clause (boolean_operator (boolean_operator (comparison_operator (identifier_image) identifier_image (None) None )comparison_operator (identifier_bad_image) identifier_bad_image )boolean_operator (comparison_operator (identifier_image_format) identifier_image_format (identifier_NONE_FORMAT) identifier_NONE_FORMAT )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_image_format) identifier_image_format (identifier_ERROR_FORMAT) identifier_ERROR_FORMAT )assignment )expression_statement (expression_statement (assignment (identifier_comic_format) identifier_comic_format (call (attribute (identifier_comic) identifier_comic (identifier_get_comic_format) identifier_get_comic_format )attribute (argument_list (identifier_filename) identifier_filename )argument_list )call )assignment )expression_statement (if_statement (identifier_comic_format) identifier_comic_format (block (expression_statement (assignment (identifier_image_format) identifier_image_format (identifier_comic_format) identifier_comic_format )assignment )expression_statement )block )if_statement (if_statement (boolean_operator (boolean_operator (parenthesized_expression (comparison_operator (attribute (identifier_Settings) identifier_Settings (identifier_verbose) identifier_verbose )attribute (integer_1) integer_1 )comparison_operator )parenthesized_expression (comparison_operator (identifier_image_format) identifier_image_format (identifier_ERROR_FORMAT) identifier_ERROR_FORMAT )comparison_operator )boolean_operator (line_continuation_\) line_continuation_\ (parenthesized_expression (not_operator (attribute (identifier_Settings) identifier_Settings (identifier_list_only) identifier_list_only )attribute )not_operator )parenthesized_expression )boolean_operator (block (expression_statement (call (identifier_print) identifier_print (argument_list (identifier_filename) identifier_filename (string_"doesn't look like an image or comic archive.") string_"doesn't look like an image or comic archive." )argument_list )call )expression_statement )block )if_statement )block )elif_clause )if_statement (return_statement (identifier_image_format) identifier_image_format )return_statement )block )function_definition )module
Get the image format.
(module (function_definition (function_name_get_minimum) function_name_get_minimum (parameters (identifier_self) identifier_self (identifier_other) identifier_other )parameters (block (return_statement (call (identifier_Point) identifier_Point (argument_list (call (identifier_min) identifier_min (argument_list (attribute (identifier_self) identifier_self (identifier_x) identifier_x )attribute (attribute (identifier_other) identifier_other (identifier_x) identifier_x )attribute )argument_list )call (call (identifier_min) identifier_min (argument_list (attribute (identifier_self) identifier_self (identifier_y) identifier_y )attribute (attribute (identifier_other) identifier_other (identifier_y) identifier_y )attribute )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Updates this vector so its components are the lower of its current components and those of the given other value.
(module (function_definition (function_name_userdata_to_db) function_name_userdata_to_db (parameters (identifier_session) identifier_session (default_parameter (identifier_method) identifier_method (string_'update') string_'update' )default_parameter (default_parameter (identifier_autocommit) identifier_autocommit (False) False )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_folder) identifier_folder (subscript (subscript (identifier_config) identifier_config (string_'import') string_'import' )subscript (string_'folder') string_'folder' )subscript )assignment )expression_statement )block (except_clause (identifier_KeyError) identifier_KeyError (block (return_statement )return_statement )block )except_clause )try_statement (if_statement (identifier_folder) identifier_folder (block (expression_statement (call (identifier_folder_to_db) identifier_folder_to_db (argument_list (identifier_folder) identifier_folder (identifier_session) identifier_session (keyword_argument (identifier_method) identifier_method (identifier_method) identifier_method )keyword_argument (keyword_argument (identifier_autocommit) identifier_autocommit (identifier_autocommit) identifier_autocommit )keyword_argument )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Add catchments from a user folder to the database. The user folder is specified in the ``config.ini`` file like this:: [import] folder = path/to/import/folder If this configuration key does not exist this will be silently ignored. :param session: database session to use, typically `floodestimation.db.Session()` :type session: :class:`sqlalchemy.orm.session.Session` :param method: - ``create``: only new catchments will be loaded, it must not already exist in the database. - ``update``: any existing catchment in the database will be updated. Otherwise it will be created. :type method: str :param autocommit: Whether to commit the database session immediately. Default: ``False``. :type autocommit: bool
(module (function_definition (function_name_InjectString) function_name_InjectString (parameters (identifier_self) identifier_self (identifier_codestring) identifier_codestring (default_parameter (identifier_wait_for_completion) identifier_wait_for_completion (True) True )default_parameter )parameters (block (if_statement (boolean_operator (attribute (attribute (identifier_self) identifier_self (identifier_inferior) identifier_inferior )attribute (identifier_is_running) identifier_is_running )attribute (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_inferior) identifier_inferior )attribute (identifier_gdb) identifier_gdb )attribute (identifier_IsAttached) identifier_IsAttached )attribute (argument_list )argument_list )call )boolean_operator (block (try_statement (block (expression_statement (call (attribute (attribute (attribute (identifier_self) identifier_self (identifier_inferior) identifier_inferior )attribute (identifier_gdb) identifier_gdb )attribute (identifier_InjectString) identifier_InjectString )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_inferior) identifier_inferior )attribute (identifier_position) identifier_position )attribute (identifier_codestring) identifier_codestring (keyword_argument (identifier_wait_for_completion) identifier_wait_for_completion (identifier_wait_for_completion) identifier_wait_for_completion )keyword_argument )argument_list )call )expression_statement )block (except_clause (identifier_RuntimeError) identifier_RuntimeError (block (expression_statement (assignment (pattern_list (identifier_exc_type) identifier_exc_type (identifier_exc_value) identifier_exc_value (identifier_exc_traceback) identifier_exc_traceback )pattern_list (call (attribute (identifier_sys) identifier_sys (identifier_exc_info) identifier_exc_info )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_traceback) identifier_traceback (identifier_print_exception) identifier_print_exception )attribute (argument_list (identifier_exc_type) identifier_exc_type (identifier_exc_value) identifier_exc_value (identifier_exc_traceback) identifier_exc_traceback )argument_list )call )expression_statement )block )except_clause )try_statement )block (else_clause (block (expression_statement (call (attribute (identifier_logging) identifier_logging (identifier_error) identifier_error )attribute (argument_list (string_'Not attached to any process.') string_'Not attached to any process.' )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Try to inject python code into current thread. Args: codestring: Python snippet to execute in inferior. (may contain newlines) wait_for_completion: Block until execution of snippet has completed.
(module (function_definition (function_name_activation_done) function_name_activation_done (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier__save) identifier__save )attribute (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_save_task) identifier_save_task )attribute (argument_list )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (call (identifier_super) identifier_super (argument_list )argument_list )call (identifier_activation_done) identifier_activation_done )attribute (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Complete the ``activation`` or save only, depending on form submit.
(module (function_definition (function_name_system_properties_absent) function_name_system_properties_absent (parameters (identifier_name) identifier_name (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' (string_'') string_'' )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 (try_statement (block (expression_statement (assignment (identifier_data) identifier_data (call (subscript (identifier___salt__) identifier___salt__ (string_'glassfish.get_system_properties') string_'glassfish.get_system_properties' )subscript (argument_list (keyword_argument (identifier_server) identifier_server (identifier_server) identifier_server )keyword_argument )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (attribute (identifier_requests) identifier_requests (identifier_ConnectionError) identifier_ConnectionError )attribute (as_pattern_target (identifier_error) identifier_error )as_pattern_target )as_pattern (block (if_statement (subscript (identifier___opts__) identifier___opts__ (string_'test') string_'test' )subscript (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'changes') string_'changes' )subscript (dictionary (pair (string_'Name') string_'Name' (identifier_name) identifier_name )pair )dictionary )assignment )expression_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (None) None )assignment )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'error') string_'error' )subscript (string_"Can't connect to the server") string_"Can't connect to the server" )assignment )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )else_clause )if_statement )block )except_clause )try_statement (if_statement (comparison_operator (identifier_name) identifier_name (identifier_data) identifier_data )comparison_operator (block (if_statement (not_operator (subscript (identifier___opts__) identifier___opts__ (string_'test') string_'test' )subscript )not_operator (block (try_statement (block (expression_statement (call (subscript (identifier___salt__) identifier___salt__ (string_'glassfish.delete_system_properties') string_'glassfish.delete_system_properties' )subscript (argument_list (identifier_name) identifier_name (keyword_argument (identifier_server) identifier_server (identifier_server) identifier_server )keyword_argument )argument_list )call )expression_statement (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_'System properties deleted') string_'System properties deleted' )assignment )expression_statement )block (except_clause (as_pattern (identifier_CommandExecutionError) identifier_CommandExecutionError (as_pattern_target (identifier_error) identifier_error )as_pattern_target )as_pattern (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'comment') string_'comment' )subscript (identifier_error) identifier_error )assignment )expression_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (False) False )assignment )expression_statement )block )except_clause )try_statement )block (else_clause (block (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'result') string_'result' )subscript (None) None )assignment )expression_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'comment') string_'comment' )subscript (string_'System properties would have been deleted') string_'System properties would have been deleted' )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (subscript (identifier_ret) identifier_ret (string_'changes') string_'changes' )subscript (dictionary (pair (string_'Name') string_'Name' (identifier_name) identifier_name )pair )dictionary )assignment )expression_statement )block (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_'System properties are already absent') string_'System properties are already absent' )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Ensures that the system property doesn't exists name Name of the system property