sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_Q) function_name_Q (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_N) identifier_N (attribute (identifier_self) identifier_self (identifier_N) identifier_N )attribute )assignment )expression_statement (expression_statement (assignment (identifier_tig_to_idx) identifier_tig_to_idx (attribute (identifier_self) identifier_self (identifier_tig_to_idx) identifier_tig_to_idx )attribute )assignment )expression_statement (expression_statement (assignment (identifier_signs) identifier_signs (attribute (identifier_self) identifier_self (identifier_signs) identifier_signs )attribute )assignment )expression_statement (expression_statement (assignment (identifier_Q) identifier_Q (binary_operator (call (attribute (identifier_np) identifier_np (identifier_ones) identifier_ones )attribute (argument_list (tuple (identifier_N) identifier_N (identifier_N) identifier_N (identifier_BB) identifier_BB )tuple (keyword_argument (identifier_dtype) identifier_dtype (identifier_int) identifier_int )keyword_argument )argument_list )call (unary_operator (integer_1) integer_1 )unary_operator )binary_operator )assignment )expression_statement (for_statement (pattern_list (tuple_pattern (identifier_at) identifier_at (identifier_bt) identifier_bt )tuple_pattern (identifier_k) identifier_k )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_contacts_oriented) identifier_contacts_oriented )attribute (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (not_operator (parenthesized_expression (boolean_operator (comparison_operator (identifier_at) identifier_at (identifier_tig_to_idx) identifier_tig_to_idx )comparison_operator (comparison_operator (identifier_bt) identifier_bt (identifier_tig_to_idx) identifier_tig_to_idx )comparison_operator )boolean_operator )parenthesized_expression )not_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (assignment (identifier_ai) identifier_ai (subscript (identifier_tig_to_idx) identifier_tig_to_idx (identifier_at) identifier_at )subscript )assignment )expression_statement (expression_statement (assignment (identifier_bi) identifier_bi (subscript (identifier_tig_to_idx) identifier_tig_to_idx (identifier_bt) identifier_bt )subscript )assignment )expression_statement (expression_statement (assignment (identifier_ao) identifier_ao (subscript (identifier_signs) identifier_signs (identifier_ai) identifier_ai )subscript )assignment )expression_statement (expression_statement (assignment (identifier_bo) identifier_bo (subscript (identifier_signs) identifier_signs (identifier_bi) identifier_bi )subscript )assignment )expression_statement (expression_statement (assignment (subscript (identifier_Q) identifier_Q (identifier_ai) identifier_ai (identifier_bi) identifier_bi )subscript (subscript (identifier_k) identifier_k (tuple (identifier_ao) identifier_ao (identifier_bo) identifier_bo )tuple )subscript )assignment )expression_statement )block )for_statement (return_statement (identifier_Q) identifier_Q )return_statement )block )function_definition )module
Contact frequency matrix when contigs are already oriented. This is s a similar matrix as M, but rather than having the number of links in the cell, it points to an array that has the actual distances.
(module (function_definition (function_name_from_iterable) function_name_from_iterable (parameters (identifier_cls) identifier_cls (identifier_target_types) identifier_target_types (identifier_address_mapper) identifier_address_mapper (identifier_adaptor_iter) identifier_adaptor_iter )parameters (block (expression_statement (assignment (identifier_inst) identifier_inst (call (identifier_cls) identifier_cls (argument_list (identifier_target_types) identifier_target_types (identifier_address_mapper) identifier_address_mapper )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_all_valid_addresses) identifier_all_valid_addresses (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_target_adaptor) identifier_target_adaptor (identifier_adaptor_iter) identifier_adaptor_iter (block (expression_statement (call (attribute (identifier_inst) identifier_inst (identifier__inject_target) identifier__inject_target )attribute (argument_list (identifier_target_adaptor) identifier_target_adaptor )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_all_valid_addresses) identifier_all_valid_addresses (identifier_add) identifier_add )attribute (argument_list (attribute (identifier_target_adaptor) identifier_target_adaptor (identifier_address) identifier_address )attribute )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_inst) identifier_inst (identifier__validate) identifier__validate )attribute (argument_list (identifier_all_valid_addresses) identifier_all_valid_addresses )argument_list )call )expression_statement (return_statement (identifier_inst) identifier_inst )return_statement )block )function_definition )module
Create a new DependentGraph from an iterable of TargetAdaptor subclasses.
(module (function_definition (function_name_post_comment) function_name_post_comment (parameters (identifier_self) identifier_self (identifier_message) identifier_message )parameters (block (expression_statement (assignment (identifier_report_url) identifier_report_url (parenthesized_expression (binary_operator (string_'https://api.github.com/repos/%s/issues/%s/comments') string_'https://api.github.com/repos/%s/issues/%s/comments' (tuple (attribute (identifier_self) identifier_self (identifier_repo_name) identifier_repo_name )attribute (attribute (identifier_self) identifier_self (identifier_pr_number) identifier_pr_number )attribute )tuple )binary_operator )parenthesized_expression )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (attribute (attribute (identifier_self) identifier_self (identifier_requester) identifier_requester )attribute (identifier_post) identifier_post )attribute (argument_list (identifier_report_url) identifier_report_url (dictionary (pair (string_'body') string_'body' (identifier_message) identifier_message )pair )dictionary )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (identifier_result) identifier_result (identifier_status_code) identifier_status_code )attribute (integer_400) integer_400 )comparison_operator (block (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (string_"Error posting comment to github. %s") string_"Error posting comment to github. %s" (call (attribute (identifier_result) identifier_result (identifier_json) identifier_json )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )if_statement (return_statement (identifier_result) identifier_result )return_statement )block )function_definition )module
Comments on an issue, not on a particular line.
(module (function_definition (function_name_get_file_for_id) function_name_get_file_for_id (parameters (identifier__id) identifier__id (default_parameter (identifier_language) identifier_language (identifier_DEFAULT_LANG) identifier_DEFAULT_LANG )default_parameter )parameters (block (expression_statement (assignment (identifier_file_start) identifier_file_start (binary_operator (string_'%s-') string_'%s-' (identifier__id) identifier__id )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_json_path) identifier_json_path (call (attribute (identifier_DBVuln) identifier_DBVuln (identifier_get_json_path) identifier_get_json_path )attribute (argument_list (keyword_argument (identifier_language) identifier_language (identifier_language) identifier_language )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier__file) identifier__file (call (attribute (identifier_os) identifier_os (identifier_listdir) identifier_listdir )attribute (argument_list (identifier_json_path) identifier_json_path )argument_list )call (block (if_statement (call (attribute (identifier__file) identifier__file (identifier_startswith) identifier_startswith )attribute (argument_list (identifier_file_start) identifier_file_start )argument_list )call (block (return_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_json_path) identifier_json_path (identifier__file) identifier__file )argument_list )call )return_statement )block )if_statement )block )for_statement (raise_statement (call (identifier_NotFoundException) identifier_NotFoundException (argument_list (binary_operator (string_'No data for ID %s') string_'No data for ID %s' (identifier__id) identifier__id )binary_operator )argument_list )call )raise_statement )block )function_definition )module
Given _id, search the DB for the file which contains the data :param _id: The id to search (int) :param language: The user's language (en, es, etc.) :return: The filename
(module (function_definition (function_name_exists) function_name_exists (parameters (identifier_Name) identifier_Name (default_parameter (identifier_region) identifier_region (None) None )default_parameter (default_parameter (identifier_key) identifier_key (None) None )default_parameter (default_parameter (identifier_keyid) identifier_keyid (None) None )default_parameter (default_parameter (identifier_profile) identifier_profile (None) None )default_parameter )parameters (block (try_statement (block (expression_statement (assignment (identifier_conn) identifier_conn (call (identifier__get_conn) identifier__get_conn (argument_list (keyword_argument (identifier_region) identifier_region (identifier_region) identifier_region )keyword_argument (keyword_argument (identifier_key) identifier_key (identifier_key) identifier_key )keyword_argument (keyword_argument (identifier_keyid) identifier_keyid (identifier_keyid) identifier_keyid )keyword_argument (keyword_argument (identifier_profile) identifier_profile (identifier_profile) identifier_profile )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_conn) identifier_conn (identifier_get_trail_status) identifier_get_trail_status )attribute (argument_list (keyword_argument (identifier_Name) identifier_Name (identifier_Name) identifier_Name )keyword_argument )argument_list )call )expression_statement (return_statement (dictionary (pair (string_'exists') string_'exists' (True) True )pair )dictionary )return_statement )block (except_clause (as_pattern (identifier_ClientError) identifier_ClientError (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (assignment (identifier_err) identifier_err (call (subscript (identifier___utils__) identifier___utils__ (string_'boto3.get_error') string_'boto3.get_error' )subscript (argument_list (identifier_e) identifier_e )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (attribute (call (attribute (attribute (identifier_e) identifier_e (identifier_response) identifier_response )attribute (identifier_get) identifier_get )attribute (argument_list (string_'Error') string_'Error' (dictionary )dictionary )argument_list )call (identifier_get) identifier_get )attribute (argument_list (string_'Code') string_'Code' )argument_list )call (string_'TrailNotFoundException') string_'TrailNotFoundException' )comparison_operator (block (return_statement (dictionary (pair (string_'exists') string_'exists' (False) False )pair )dictionary )return_statement )block )if_statement (return_statement (dictionary (pair (string_'error') string_'error' (identifier_err) identifier_err )pair )dictionary )return_statement )block )except_clause )try_statement )block )function_definition )module
Given a trail name, check to see if the given trail exists. Returns True if the given trail exists and returns False if the given trail does not exist. CLI Example: .. code-block:: bash salt myminion boto_cloudtrail.exists mytrail
(module (function_definition (function_name_get_storage) function_name_get_storage (parameters (identifier_self) identifier_self (typed_parameter (identifier_hex_contract_address) identifier_hex_contract_address (type (identifier_str) identifier_str )type )typed_parameter (typed_parameter (identifier_hex_key) identifier_hex_key (type (identifier_str) identifier_str )type )typed_parameter (typed_default_parameter (identifier_is_full) identifier_is_full (type (identifier_bool) identifier_bool )type (False) False )typed_default_parameter )parameters (type (identifier_str) identifier_str )type (block (expression_statement (assignment (identifier_payload) identifier_payload (call (attribute (identifier_self) identifier_self (identifier_generate_json_rpc_payload) identifier_generate_json_rpc_payload )attribute (argument_list (attribute (identifier_RpcMethod) identifier_RpcMethod (identifier_GET_STORAGE) identifier_GET_STORAGE )attribute (list (identifier_hex_contract_address) identifier_hex_contract_address (identifier_hex_key) identifier_hex_key (integer_1) integer_1 )list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_self) identifier_self (identifier___post) identifier___post )attribute (argument_list (attribute (identifier_self) identifier_self (identifier___url) identifier___url )attribute (identifier_payload) identifier_payload )argument_list )call )assignment )expression_statement (if_statement (identifier_is_full) identifier_is_full (block (return_statement (identifier_response) identifier_response )return_statement )block )if_statement (return_statement (subscript (identifier_response) identifier_response (string_'result') string_'result' )subscript )return_statement )block )function_definition )module
This interface is used to get the corresponding stored value based on hexadecimal contract address and stored key. :param hex_contract_address: hexadecimal contract address. :param hex_key: a hexadecimal stored key. :param is_full: :return: the information of contract storage.
(module (function_definition (function_name_training_status_renderer_context) function_name_training_status_renderer_context (parameters (typed_parameter (identifier_exercise_names) identifier_exercise_names (type (generic_type (identifier_List) identifier_List (type_parameter (type (identifier_str) identifier_str )type )type_parameter )generic_type )type )typed_parameter (typed_parameter (identifier_renderman) identifier_renderman (type (identifier_RenderingManager) identifier_RenderingManager )type )typed_parameter )parameters (block (expression_statement (assignment (identifier_renderer) identifier_renderer (call (identifier_TrainingStatusRenderer) identifier_TrainingStatusRenderer (argument_list (identifier_exercise_names) identifier_exercise_names (identifier_renderman) identifier_renderman )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (yield (identifier_renderer) identifier_renderer )yield )expression_statement )block (finally_clause (block (expression_statement (call (attribute (identifier_renderer) identifier_renderer (identifier_clear_screen) identifier_clear_screen )attribute (argument_list )argument_list )call )expression_statement )block )finally_clause )try_statement )block )function_definition )module
Ensures that the screen is always cleared, even on fatal errors in code that uses this renderer.
(module (function_definition (function_name_summary) function_name_summary (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary (pair (string_'bestScore') string_'bestScore' (attribute (attribute (call (attribute (identifier_self) identifier_self (identifier_bestHsp) identifier_bestHsp )attribute (argument_list )argument_list )call (identifier_score) identifier_score )attribute (identifier_score) identifier_score )attribute )pair (pair (string_'coverage') string_'coverage' (call (attribute (identifier_self) identifier_self (identifier_coverage) identifier_coverage )attribute (argument_list )argument_list )call )pair (pair (string_'hspCount') string_'hspCount' (call (attribute (identifier_self) identifier_self (identifier_hspCount) identifier_hspCount )attribute (argument_list )argument_list )call )pair (pair (string_'medianScore') string_'medianScore' (call (attribute (identifier_self) identifier_self (identifier_medianScore) identifier_medianScore )attribute (argument_list )argument_list )call )pair (pair (string_'readCount') string_'readCount' (call (attribute (identifier_self) identifier_self (identifier_readCount) identifier_readCount )attribute (argument_list )argument_list )call )pair (pair (string_'subjectLength') string_'subjectLength' (attribute (identifier_self) identifier_self (identifier_subjectLength) identifier_subjectLength )attribute )pair (pair (string_'subjectTitle') string_'subjectTitle' (attribute (identifier_self) identifier_self (identifier_subjectTitle) identifier_subjectTitle )attribute )pair )dictionary )return_statement )block )function_definition )module
Summarize the alignments for this subject. @return: A C{dict} with C{str} keys: bestScore: The C{float} best score of the matching reads. coverage: The C{float} fraction of the subject genome that is matched by at least one read. hspCount: The C{int} number of hsps that match the subject. medianScore: The C{float} median score of the matching reads. readCount: The C{int} number of reads that match the subject. subjectLength: The C{int} length of the subject. subjectTitle: The C{str} title of the subject.
(module (function_definition (function_name_date_in_range) function_name_date_in_range (parameters (identifier_date1) identifier_date1 (identifier_date2) identifier_date2 (identifier_range) identifier_range )parameters (block (expression_statement (assignment (identifier_date_obj1) identifier_date_obj1 (call (identifier_convert_date) identifier_convert_date (argument_list (identifier_date1) identifier_date1 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_date_obj2) identifier_date_obj2 (call (identifier_convert_date) identifier_convert_date (argument_list (identifier_date2) identifier_date2 )argument_list )call )assignment )expression_statement (return_statement (comparison_operator (attribute (parenthesized_expression (binary_operator (identifier_date_obj2) identifier_date_obj2 (identifier_date_obj1) identifier_date_obj1 )binary_operator )parenthesized_expression (identifier_days) identifier_days )attribute (identifier_range) identifier_range )comparison_operator )return_statement )block )function_definition )module
Check if two date objects are within a specific range
(module (function_definition (function_name_convert_filename) function_name_convert_filename (parameters (identifier_txtfilename) identifier_txtfilename (default_parameter (identifier_outdir) identifier_outdir (string_'.') string_'.' )default_parameter )parameters (block (return_statement (binary_operator (subscript (call (attribute (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_outdir) identifier_outdir (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_txtfilename) identifier_txtfilename )argument_list )call )argument_list )call (identifier_rsplit) identifier_rsplit )attribute (argument_list (string_'.') string_'.' (integer_1) integer_1 )argument_list )call (integer_0) integer_0 )subscript (string_'.th') string_'.th' )binary_operator )return_statement )block )function_definition )module
Convert a .TXT filename to a Therion .TH filename
(module (function_definition (function_name_transition_matrix_non_reversible) function_name_transition_matrix_non_reversible (parameters (identifier_C) identifier_C )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignment (identifier_rowsums) identifier_rowsums (binary_operator (float_1.0) float_1.0 (call (attribute (identifier_np) identifier_np (identifier_sum) identifier_sum )attribute (argument_list (identifier_C) identifier_C (keyword_argument (identifier_axis) identifier_axis (integer_1) integer_1 )keyword_argument )argument_list )call )binary_operator )assignment )expression_statement (if_statement (comparison_operator (call (attribute (identifier_np) identifier_np (identifier_min) identifier_min )attribute (argument_list (identifier_rowsums) identifier_rowsums )argument_list )call (integer_0) integer_0 )comparison_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (binary_operator (binary_operator (string_"Transition matrix has row sum of ") string_"Transition matrix has row sum of " (call (identifier_str) identifier_str (argument_list (call (attribute (identifier_np) identifier_np (identifier_min) identifier_min )attribute (argument_list (identifier_rowsums) identifier_rowsums )argument_list )call )argument_list )call )binary_operator (string_". Must have strictly positive row sums.") string_". Must have strictly positive row sums." )binary_operator )argument_list )call )raise_statement )block )if_statement (return_statement (call (attribute (identifier_np) identifier_np (identifier_divide) identifier_divide )attribute (argument_list (identifier_C) identifier_C (subscript (identifier_rowsums) identifier_rowsums (slice (colon) colon )slice (attribute (identifier_np) identifier_np (identifier_newaxis) identifier_newaxis )attribute )subscript )argument_list )call )return_statement )block )function_definition )module
r""" Estimates a non-reversible transition matrix from count matrix C T_ij = c_ij / c_i where c_i = sum_j c_ij Parameters ---------- C: ndarray, shape (n,n) count matrix Returns ------- T: Estimated transition matrix
(module (function_definition (function_name_apply) function_name_apply (parameters (identifier_instance) identifier_instance (identifier_func) identifier_func (default_parameter (identifier_path) identifier_path (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_path) identifier_path (boolean_operator (identifier_path) identifier_path (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_sep) identifier_sep )attribute )boolean_operator )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_instance) identifier_instance (identifier_list) identifier_list )argument_list )call (block (return_statement (list_comprehension (call (identifier_apply) identifier_apply (argument_list (identifier_item) identifier_item (identifier_func) identifier_func (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_path) identifier_path (call (identifier_str) identifier_str (argument_list (identifier_i) identifier_i )argument_list )call )argument_list )call )argument_list )call (for_in_clause (pattern_list (identifier_i) identifier_i (identifier_item) identifier_item )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_instance) identifier_instance )argument_list )call )for_in_clause )list_comprehension )return_statement )block (elif_clause (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_instance) identifier_instance (identifier_dict) identifier_dict )argument_list )call (block (return_statement (dictionary_comprehension (pair (identifier_key) identifier_key (call (identifier_apply) identifier_apply (argument_list (identifier_value) identifier_value (identifier_func) identifier_func (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (identifier_path) identifier_path (identifier_key) identifier_key )argument_list )call )argument_list )call )pair (for_in_clause (pattern_list (identifier_key) identifier_key (identifier_value) identifier_value )pattern_list (call (attribute (identifier_instance) identifier_instance (identifier_items) identifier_items )attribute (argument_list )argument_list )call )for_in_clause )dictionary_comprehension )return_statement )block )elif_clause )if_statement (return_statement (call (identifier_func) identifier_func (argument_list (identifier_instance) identifier_instance (identifier_path) identifier_path )argument_list )call )return_statement )block )function_definition )module
Apply `func` to all fundamental types of `instance`. Parameters ---------- instance : dict instance to apply functions to func : callable function with two arguments (instance, path) to apply to all fundamental types recursively path : str path in the document (defaults to '/') Returns ------- instance : dict instance after applying `func` to fundamental types
(module (function_definition (function_name_hybrid_forward) function_name_hybrid_forward (parameters (identifier_self) identifier_self (identifier_F) identifier_F (identifier_a) identifier_a (identifier_b) identifier_b )parameters (block (expression_statement (assignment (identifier_tilde_a) identifier_tilde_a (call (attribute (identifier_self) identifier_self (identifier_f) identifier_f )attribute (argument_list (identifier_a) identifier_a )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_tilde_b) identifier_tilde_b (call (attribute (identifier_self) identifier_self (identifier_f) identifier_f )attribute (argument_list (identifier_b) identifier_b )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_e) identifier_e (call (attribute (identifier_F) identifier_F (identifier_batch_dot) identifier_batch_dot )attribute (argument_list (identifier_tilde_a) identifier_tilde_a (identifier_tilde_b) identifier_tilde_b (keyword_argument (identifier_transpose_b) identifier_transpose_b (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_beta) identifier_beta (call (attribute (identifier_F) identifier_F (identifier_batch_dot) identifier_batch_dot )attribute (argument_list (call (attribute (identifier_e) identifier_e (identifier_softmax) identifier_softmax )attribute (argument_list )argument_list )call (identifier_tilde_b) identifier_tilde_b )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_alpha) identifier_alpha (call (attribute (identifier_F) identifier_F (identifier_batch_dot) identifier_batch_dot )attribute (argument_list (call (attribute (call (attribute (identifier_e) identifier_e (identifier_transpose) identifier_transpose )attribute (argument_list (list (integer_0) integer_0 (integer_2) integer_2 (integer_1) integer_1 )list )argument_list )call (identifier_softmax) identifier_softmax )attribute (argument_list )argument_list )call (identifier_tilde_a) identifier_tilde_a )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_feature1) identifier_feature1 (call (attribute (identifier_self) identifier_self (identifier_g) identifier_g )attribute (argument_list (call (attribute (identifier_F) identifier_F (identifier_concat) identifier_concat )attribute (argument_list (identifier_tilde_a) identifier_tilde_a (identifier_beta) identifier_beta (keyword_argument (identifier_dim) identifier_dim (integer_2) integer_2 )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_feature2) identifier_feature2 (call (attribute (identifier_self) identifier_self (identifier_g) identifier_g )attribute (argument_list (call (attribute (identifier_F) identifier_F (identifier_concat) identifier_concat )attribute (argument_list (identifier_tilde_b) identifier_tilde_b (identifier_alpha) identifier_alpha (keyword_argument (identifier_dim) identifier_dim (integer_2) integer_2 )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_feature1) identifier_feature1 (call (attribute (identifier_feature1) identifier_feature1 (identifier_sum) identifier_sum )attribute (argument_list (keyword_argument (identifier_axis) identifier_axis (integer_1) integer_1 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_feature2) identifier_feature2 (call (attribute (identifier_feature2) identifier_feature2 (identifier_sum) identifier_sum )attribute (argument_list (keyword_argument (identifier_axis) identifier_axis (integer_1) integer_1 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_yhat) identifier_yhat (call (attribute (identifier_self) identifier_self (identifier_h) identifier_h )attribute (argument_list (call (attribute (identifier_F) identifier_F (identifier_concat) identifier_concat )attribute (argument_list (identifier_feature1) identifier_feature1 (identifier_feature2) identifier_feature2 (keyword_argument (identifier_dim) identifier_dim (integer_1) integer_1 )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_yhat) identifier_yhat )return_statement )block )function_definition )module
Forward of Decomposable Attention layer
(module (function_definition (function_name_draw) function_name_draw (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_visible) identifier_visible )attribute )not_operator (block (return_statement )return_statement )block )if_statement (if_statement (attribute (identifier_self) identifier_self (identifier_isEnabled) identifier_isEnabled )attribute (block (if_statement (boolean_operator (boolean_operator (attribute (identifier_self) identifier_self (identifier_mouseIsDown) identifier_mouseIsDown )attribute (attribute (identifier_self) identifier_self (identifier_lastMouseDownOverButton) identifier_lastMouseDownOverButton )attribute )boolean_operator (attribute (identifier_self) identifier_self (identifier_mouseOverButton) identifier_mouseOverButton )attribute )boolean_operator (block (if_statement (attribute (identifier_self) identifier_self (identifier_value) identifier_value )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_window) identifier_window )attribute (identifier_blit) identifier_blit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_surfaceOnDown) identifier_surfaceOnDown )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_window) identifier_window )attribute (identifier_blit) identifier_blit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_surfaceOffDown) identifier_surfaceOffDown )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block )else_clause )if_statement )block (else_clause (block (if_statement (attribute (identifier_self) identifier_self (identifier_value) identifier_value )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_window) identifier_window )attribute (identifier_blit) identifier_blit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_surfaceOn) identifier_surfaceOn )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_window) identifier_window )attribute (identifier_blit) identifier_blit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_surfaceOff) identifier_surfaceOff )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block )else_clause )if_statement )block )else_clause )if_statement )block (else_clause (block (if_statement (attribute (identifier_self) identifier_self (identifier_value) identifier_value )attribute (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_window) identifier_window )attribute (identifier_blit) identifier_blit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_surfaceOnDisabled) identifier_surfaceOnDisabled )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_window) identifier_window )attribute (identifier_blit) identifier_blit )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_surfaceOffDisabled) identifier_surfaceOffDisabled )attribute (attribute (identifier_self) identifier_self (identifier_loc) identifier_loc )attribute )argument_list )call )expression_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )function_definition )module
Draws the checkbox.
(module (function_definition (function_name_valid_replay) function_name_valid_replay (parameters (identifier_info) identifier_info (identifier_ping) identifier_ping )parameters (block (if_statement (parenthesized_expression (boolean_operator (boolean_operator (boolean_operator (call (attribute (identifier_info) identifier_info (identifier_HasField) identifier_HasField )attribute (argument_list (string_"error") string_"error" )argument_list )call (comparison_operator (attribute (identifier_info) identifier_info (identifier_base_build) identifier_base_build )attribute (attribute (identifier_ping) identifier_ping (identifier_base_build) identifier_base_build )attribute )comparison_operator )boolean_operator (comparison_operator (attribute (identifier_info) identifier_info (identifier_game_duration_loops) identifier_game_duration_loops )attribute (integer_1000) integer_1000 )comparison_operator )boolean_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (attribute (identifier_info) identifier_info (identifier_player_info) identifier_player_info )attribute )argument_list )call (integer_2) integer_2 )comparison_operator )boolean_operator )parenthesized_expression (block (return_statement (False) False )return_statement )block )if_statement (for_statement (identifier_p) identifier_p (attribute (identifier_info) identifier_info (identifier_player_info) identifier_player_info )attribute (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_p) identifier_p (identifier_player_apm) identifier_player_apm )attribute (integer_10) integer_10 )comparison_operator (comparison_operator (attribute (identifier_p) identifier_p (identifier_player_mmr) identifier_player_mmr )attribute (integer_1000) integer_1000 )comparison_operator )boolean_operator (block (return_statement (False) False )return_statement )block )if_statement )block )for_statement (return_statement (True) True )return_statement )block )function_definition )module
Make sure the replay isn't corrupt, and is worth looking at.
(module (function_definition (function_name_restore_watched) function_name_restore_watched (parameters (identifier_plex) identifier_plex (identifier_opts) identifier_opts )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (attribute (identifier_opts) identifier_opts (identifier_filepath) identifier_filepath )attribute (string_'r') string_'r' )argument_list )call (as_pattern_target (identifier_handle) identifier_handle )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_source) identifier_source (call (attribute (identifier_json) identifier_json (identifier_load) identifier_load )attribute (argument_list (identifier_handle) identifier_handle )argument_list )call )assignment )expression_statement )block )with_statement (expression_statement (assignment (identifier_differences) identifier_differences (call (identifier_defaultdict) identifier_defaultdict (argument_list (lambda (call (identifier_dict) identifier_dict (argument_list )argument_list )call )lambda )argument_list )call )assignment )expression_statement (for_statement (identifier_section) identifier_section (call (identifier__iter_sections) identifier__iter_sections (argument_list (identifier_plex) identifier_plex (identifier_opts) identifier_opts )argument_list )call (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_'Finding differences in %s..') string_'Finding differences in %s..' (attribute (identifier_section) identifier_section (identifier_title) identifier_title )attribute )binary_operator )argument_list )call )expression_statement (expression_statement (assignment (identifier_skey) identifier_skey (call (attribute (attribute (identifier_section) identifier_section (identifier_title) identifier_title )attribute (identifier_lower) identifier_lower )attribute (argument_list )argument_list )call )assignment )expression_statement (for_statement (identifier_item) identifier_item (call (identifier__iter_items) identifier__iter_items (argument_list (identifier_section) identifier_section )argument_list )call (block (expression_statement (assignment (identifier_ikey) identifier_ikey (call (identifier__item_key) identifier__item_key (argument_list (identifier_item) identifier_item )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_sval) identifier_sval (call (attribute (call (attribute (identifier_source) identifier_source (identifier_get) identifier_get )attribute (argument_list (identifier_skey) identifier_skey (dictionary )dictionary )argument_list )call (identifier_get) identifier_get )attribute (argument_list (identifier_ikey) identifier_ikey )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_sval) identifier_sval (None) None )comparison_operator (block (raise_statement (call (identifier_SystemExit) identifier_SystemExit (argument_list (binary_operator (string_'%s not found') string_'%s not found' (identifier_ikey) identifier_ikey )binary_operator )argument_list )call )raise_statement )block )if_statement (if_statement (boolean_operator (parenthesized_expression (boolean_operator (comparison_operator (identifier_sval) identifier_sval (None) None )comparison_operator (comparison_operator (attribute (identifier_item) identifier_item (identifier_isWatched) identifier_isWatched )attribute (identifier_sval) identifier_sval )comparison_operator )boolean_operator )parenthesized_expression (parenthesized_expression (boolean_operator (not_operator (attribute (identifier_opts) identifier_opts (identifier_watchedonly) identifier_watchedonly )attribute )not_operator (identifier_sval) identifier_sval )boolean_operator )parenthesized_expression )boolean_operator (block (expression_statement (assignment (subscript (subscript (identifier_differences) identifier_differences (identifier_skey) identifier_skey )subscript (identifier_ikey) identifier_ikey )subscript (dictionary (pair (string_'isWatched') string_'isWatched' (identifier_sval) identifier_sval )pair (pair (string_'item') string_'item' (identifier_item) identifier_item )pair )dictionary )assignment )expression_statement )block )if_statement )block )for_statement )block )for_statement (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_'Applying %s differences to destination') string_'Applying %s differences to destination' (call (identifier_len) identifier_len (argument_list (identifier_differences) identifier_differences )argument_list )call )binary_operator )argument_list )call )expression_statement (import_statement (dotted_name (identifier_pprint) identifier_pprint )dotted_name )import_statement (expression_statement (call (attribute (identifier_pprint) identifier_pprint (identifier_pprint) identifier_pprint )attribute (argument_list (identifier_differences) identifier_differences )argument_list )call )expression_statement )block )function_definition )module
Restore watched status from the specified filepath.
(module (function_definition (function_name_set_event) function_name_set_event (parameters (identifier_self) identifier_self (default_parameter (identifier_simulation_start) identifier_simulation_start (None) None )default_parameter (default_parameter (identifier_simulation_duration) identifier_simulation_duration (None) None )default_parameter (default_parameter (identifier_simulation_end) identifier_simulation_end (None) None )default_parameter (default_parameter (identifier_rain_intensity) identifier_rain_intensity (integer_2) integer_2 )default_parameter (default_parameter (identifier_rain_duration) identifier_rain_duration (call (identifier_timedelta) identifier_timedelta (argument_list (keyword_argument (identifier_seconds) identifier_seconds (binary_operator (integer_30) integer_30 (integer_60) integer_60 )binary_operator )keyword_argument )argument_list )call )default_parameter (default_parameter (identifier_event_type) identifier_event_type (string_'EVENT') string_'EVENT' )default_parameter )parameters (block (if_statement (comparison_operator (identifier_event_type) identifier_event_type (string_'LONG_TERM') string_'LONG_TERM' )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_event) identifier_event )attribute (call (identifier_LongTermMode) identifier_LongTermMode (argument_list (attribute (identifier_self) identifier_self (identifier_project_manager) identifier_project_manager )attribute (attribute (identifier_self) identifier_self (identifier_db_session) identifier_db_session )attribute (attribute (identifier_self) identifier_self (identifier_project_directory) identifier_project_directory )attribute (keyword_argument (identifier_simulation_start) identifier_simulation_start (identifier_simulation_start) identifier_simulation_start )keyword_argument (keyword_argument (identifier_simulation_end) identifier_simulation_end (identifier_simulation_end) identifier_simulation_end )keyword_argument (keyword_argument (identifier_simulation_duration) identifier_simulation_duration (identifier_simulation_duration) identifier_simulation_duration )keyword_argument )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_event) identifier_event )attribute (call (identifier_EventMode) identifier_EventMode (argument_list (attribute (identifier_self) identifier_self (identifier_project_manager) identifier_project_manager )attribute (attribute (identifier_self) identifier_self (identifier_db_session) identifier_db_session )attribute (attribute (identifier_self) identifier_self (identifier_project_directory) identifier_project_directory )attribute (keyword_argument (identifier_simulation_start) identifier_simulation_start (identifier_simulation_start) identifier_simulation_start )keyword_argument (keyword_argument (identifier_simulation_duration) identifier_simulation_duration (identifier_simulation_duration) identifier_simulation_duration )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_event) identifier_event )attribute (identifier_add_uniform_precip_event) identifier_add_uniform_precip_event )attribute (argument_list (keyword_argument (identifier_intensity) identifier_intensity (identifier_rain_intensity) identifier_rain_intensity )keyword_argument (keyword_argument (identifier_duration) identifier_duration (identifier_rain_duration) identifier_rain_duration )keyword_argument )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Initializes event for GSSHA model
(module (function_definition (function_name_python_to_jupyter_cli) function_name_python_to_jupyter_cli (parameters (default_parameter (identifier_args) identifier_args (None) None )default_parameter (default_parameter (identifier_namespace) identifier_namespace (None) None )default_parameter )parameters (block (import_from_statement (relative_import (import_prefix )import_prefix )relative_import (dotted_name (identifier_gen_gallery) identifier_gen_gallery )dotted_name )import_from_statement (expression_statement (assignment (identifier_parser) identifier_parser (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentParser) identifier_ArgumentParser )attribute (argument_list (keyword_argument (identifier_description) identifier_description (string_'Sphinx-Gallery Notebook converter') string_'Sphinx-Gallery Notebook converter' )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'python_src_file') string_'python_src_file' (keyword_argument (identifier_nargs) identifier_nargs (string_'+') string_'+' )keyword_argument (keyword_argument (identifier_help) identifier_help (concatenated_string (string_'Input Python file script to convert. ') string_'Input Python file script to convert. ' (string_'Supports multiple files and shell wildcards') string_'Supports multiple files and shell wildcards' (string_' (e.g. *.py)') string_' (e.g. *.py)' )concatenated_string )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_args) identifier_args (call (attribute (identifier_parser) identifier_parser (identifier_parse_args) identifier_parse_args )attribute (argument_list (identifier_args) identifier_args (identifier_namespace) identifier_namespace )argument_list )call )assignment )expression_statement (for_statement (identifier_src_file) identifier_src_file (attribute (identifier_args) identifier_args (identifier_python_src_file) identifier_python_src_file )attribute (block (expression_statement (assignment (pattern_list (identifier_file_conf) identifier_file_conf (identifier_blocks) identifier_blocks )pattern_list (call (identifier_split_code_and_text_blocks) identifier_split_code_and_text_blocks (argument_list (identifier_src_file) identifier_src_file )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (call (attribute (string_'Converting {0}') string_'Converting {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_src_file) identifier_src_file )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_gallery_conf) identifier_gallery_conf (call (attribute (identifier_copy) identifier_copy (identifier_deepcopy) identifier_deepcopy )attribute (argument_list (attribute (identifier_gen_gallery) identifier_gen_gallery (identifier_DEFAULT_GALLERY_CONF) identifier_DEFAULT_GALLERY_CONF )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_example_nb) identifier_example_nb (call (identifier_jupyter_notebook) identifier_jupyter_notebook (argument_list (identifier_blocks) identifier_blocks (identifier_gallery_conf) identifier_gallery_conf )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_save_notebook) identifier_save_notebook (argument_list (identifier_example_nb) identifier_example_nb (call (identifier_replace_py_ipynb) identifier_replace_py_ipynb (argument_list (identifier_src_file) identifier_src_file )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Exposes the jupyter notebook renderer to the command line Takes the same arguments as ArgumentParser.parse_args
(module (function_definition (function_name_rm_auth_key_from_file) function_name_rm_auth_key_from_file (parameters (identifier_user) identifier_user (identifier_source) identifier_source (default_parameter (identifier_config) identifier_config (string_'.ssh/authorized_keys') string_'.ssh/authorized_keys' )default_parameter (default_parameter (identifier_saltenv) identifier_saltenv (string_'base') string_'base' )default_parameter (default_parameter (identifier_fingerprint_hash_type) identifier_fingerprint_hash_type (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_lfile) identifier_lfile (call (subscript (identifier___salt__) identifier___salt__ (string_'cp.cache_file') string_'cp.cache_file' )subscript (argument_list (identifier_source) identifier_source (identifier_saltenv) identifier_saltenv )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_lfile) identifier_lfile )argument_list )call )not_operator (block (raise_statement (call (identifier_CommandExecutionError) identifier_CommandExecutionError (argument_list (string_'Failed to pull key file from salt file server') string_'Failed to pull key file from salt file server' )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_s_keys) identifier_s_keys (call (identifier__validate_keys) identifier__validate_keys (argument_list (identifier_lfile) identifier_lfile (identifier_fingerprint_hash_type) identifier_fingerprint_hash_type )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_s_keys) identifier_s_keys )not_operator (block (expression_statement (assignment (identifier_err) identifier_err (parenthesized_expression (call (attribute (string_'No keys detected in {0}. Is file properly formatted?') string_'No keys detected in {0}. Is file properly formatted?' (identifier_format) identifier_format )attribute (argument_list (identifier_source) identifier_source )argument_list )call )parenthesized_expression )assignment )expression_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_error) identifier_error )attribute (argument_list (identifier_err) identifier_err )argument_list )call )expression_statement (expression_statement (assignment (subscript (identifier___context__) identifier___context__ (string_'ssh_auth.error') string_'ssh_auth.error' )subscript (identifier_err) identifier_err )assignment )expression_statement (return_statement (string_'fail') string_'fail' )return_statement )block (else_clause (block (expression_statement (assignment (identifier_rval) identifier_rval (string_'') string_'' )assignment )expression_statement (for_statement (identifier_key) identifier_key (identifier_s_keys) identifier_s_keys (block (expression_statement (augmented_assignment (identifier_rval) identifier_rval (call (identifier_rm_auth_key) identifier_rm_auth_key (argument_list (identifier_user) identifier_user (identifier_key) identifier_key (keyword_argument (identifier_config) identifier_config (identifier_config) identifier_config )keyword_argument (keyword_argument (identifier_fingerprint_hash_type) identifier_fingerprint_hash_type (identifier_fingerprint_hash_type) identifier_fingerprint_hash_type )keyword_argument )argument_list )call )augmented_assignment )expression_statement )block )for_statement (if_statement (comparison_operator (string_'Key not removed') string_'Key not removed' (identifier_rval) identifier_rval )comparison_operator (block (return_statement (string_'Key not removed') string_'Key not removed' )return_statement )block (elif_clause (comparison_operator (string_'Key removed') string_'Key removed' (identifier_rval) identifier_rval )comparison_operator (block (return_statement (string_'Key removed') string_'Key removed' )return_statement )block )elif_clause (else_clause (block (return_statement (string_'Key not present') string_'Key not present' )return_statement )block )else_clause )if_statement )block )else_clause )if_statement )block )function_definition )module
Remove an authorized key from the specified user's authorized key file, using a file as source CLI Example: .. code-block:: bash salt '*' ssh.rm_auth_key_from_file <user> salt://ssh_keys/<user>.id_rsa.pub
(module (function_definition (function_name_on_pubmsg) function_name_on_pubmsg (parameters (identifier_self) identifier_self (identifier_connection) identifier_connection (identifier_event) identifier_event )parameters (block (for_statement (identifier_message) identifier_message (call (attribute (identifier_event) identifier_event (identifier_arguments) identifier_arguments )attribute (argument_list )argument_list )call (block (expression_statement (assignment (identifier_nickname) identifier_nickname (call (attribute (identifier_self) identifier_self (identifier_get_nickname) identifier_get_nickname )attribute (argument_list (identifier_event) identifier_event )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_nickname_color) identifier_nickname_color (subscript (attribute (identifier_self) identifier_self (identifier_nicknames) identifier_nicknames )attribute (identifier_nickname) identifier_nickname )subscript )assignment )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_namespace) identifier_namespace )attribute (identifier_emit) identifier_emit )attribute (argument_list (string_"message") string_"message" (identifier_nickname) identifier_nickname (identifier_message) identifier_message (identifier_nickname_color) identifier_nickname_color )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Messages received in the channel - send them to the WebSocket.
(module (function_definition (function_name__starting_consonants_only) function_name__starting_consonants_only (parameters (identifier_self) identifier_self (typed_parameter (identifier_letters) identifier_letters (type (identifier_list) identifier_list )type )typed_parameter )parameters (type (identifier_list) identifier_list )type (block (for_statement (pattern_list (identifier_idx) identifier_idx (identifier_letter) identifier_letter )pattern_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_letters) identifier_letters )argument_list )call (block (if_statement (boolean_operator (not_operator (call (attribute (identifier_self) identifier_self (identifier__contains_vowels) identifier__contains_vowels )attribute (argument_list (identifier_letter) identifier_letter )argument_list )call )not_operator (call (attribute (identifier_self) identifier_self (identifier__contains_consonants) identifier__contains_consonants )attribute (argument_list (identifier_letter) identifier_letter )argument_list )call )boolean_operator (block (return_statement (list (identifier_idx) identifier_idx )list )return_statement )block )if_statement (if_statement (call (attribute (identifier_self) identifier_self (identifier__contains_vowels) identifier__contains_vowels )attribute (argument_list (identifier_letter) identifier_letter )argument_list )call (block (return_statement (list )list )return_statement )block )if_statement (if_statement (boolean_operator (call (attribute (identifier_self) identifier_self (identifier__contains_vowels) identifier__contains_vowels )attribute (argument_list (identifier_letter) identifier_letter )argument_list )call (call (attribute (identifier_self) identifier_self (identifier__contains_consonants) identifier__contains_consonants )attribute (argument_list (identifier_letter) identifier_letter )argument_list )call )boolean_operator (block (return_statement (list )list )return_statement )block )if_statement )block )for_statement (return_statement (list )list )return_statement )block )function_definition )module
Return a list of starting consonant positions.
(module (function_definition (function_name_stdlib) function_name_stdlib (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self (identifier_module) identifier_module )attribute (string_'pkg_resources') string_'pkg_resources' )comparison_operator (call (attribute (attribute (identifier_self) identifier_self (identifier_module) identifier_module )attribute (identifier_startswith) identifier_startswith )attribute (argument_list (string_'pkg_resources.') string_'pkg_resources.' )argument_list )call )boolean_operator (block (return_statement (False) False )return_statement )block (elif_clause (call (attribute (attribute (identifier_self) identifier_self (identifier_filename) identifier_filename )attribute (identifier_startswith) identifier_startswith )attribute (argument_list (identifier_SITE_PACKAGES_PATHS) identifier_SITE_PACKAGES_PATHS )argument_list )call (block (return_statement (False) False )return_statement )block )elif_clause (elif_clause (call (attribute (attribute (identifier_self) identifier_self (identifier_filename) identifier_filename )attribute (identifier_startswith) identifier_startswith )attribute (argument_list (identifier_SYS_PREFIX_PATHS) identifier_SYS_PREFIX_PATHS )argument_list )call (block (return_statement (True) True )return_statement )block )elif_clause (else_clause (block (return_statement (False) False )return_statement )block )else_clause )if_statement )block )function_definition )module
A boolean flag. ``True`` if frame is in stdlib. :type: bool
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self (identifier_message) identifier_message )parameters (block (try_statement (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_socket) identifier_socket )attribute (identifier_send) identifier_send )attribute (argument_list (binary_operator (call (attribute (identifier_message) identifier_message (identifier_encode) identifier_encode )attribute (argument_list (string_'utf-8') string_'utf-8' )argument_list )call (string_b'\0') string_b'\0' )binary_operator )argument_list )call )expression_statement )block (except_clause (attribute (identifier_socket) identifier_socket (identifier_error) identifier_error )attribute (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier__closed) identifier__closed )attribute )not_operator (block (raise_statement (identifier_BrokenPipeError) identifier_BrokenPipeError )raise_statement )block )if_statement )block )except_clause )try_statement (return_statement (call (attribute (identifier_Future) identifier_Future (identifier_succeed) identifier_succeed )attribute (argument_list (None) None )argument_list )call )return_statement )block )function_definition )module
Coroutine that writes the next packet.
(module (function_definition (function_name_build_if_needed) function_name_build_if_needed (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier__need_build) identifier__need_build )attribute (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__build) identifier__build )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__need_build) identifier__need_build )attribute (False) False )assignment )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_update_variables) identifier_update_variables )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Reset shader source if necesssary.
(module (function_definition (function_name_emit_metadata_for_region_py) function_name_emit_metadata_for_region_py (parameters (identifier_self) identifier_self (identifier_region) identifier_region (identifier_region_filename) identifier_region_filename (identifier_module_prefix) identifier_module_prefix )parameters (block (expression_statement (assignment (identifier_terrobj) identifier_terrobj (subscript (attribute (identifier_self) identifier_self (identifier_territory) identifier_territory )attribute (identifier_region) identifier_region )subscript )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (identifier_region_filename) identifier_region_filename (string_"w") string_"w" )argument_list )call (as_pattern_target (identifier_outfile) identifier_outfile )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (call (identifier_prnt) identifier_prnt (argument_list (binary_operator (identifier__REGION_METADATA_PROLOG) identifier__REGION_METADATA_PROLOG (dictionary (pair (string_'region') string_'region' (call (attribute (identifier_terrobj) identifier_terrobj (identifier_identifier) identifier_identifier )attribute (argument_list )argument_list )call )pair (pair (string_'module') string_'module' (identifier_module_prefix) identifier_module_prefix )pair )dictionary )binary_operator (keyword_argument (identifier_file) identifier_file (identifier_outfile) identifier_outfile )keyword_argument )argument_list )call )expression_statement (expression_statement (call (identifier_prnt) identifier_prnt (argument_list (binary_operator (string_"PHONE_METADATA_%s = %s") string_"PHONE_METADATA_%s = %s" (tuple (call (attribute (identifier_terrobj) identifier_terrobj (identifier_identifier) identifier_identifier )attribute (argument_list )argument_list )call (identifier_terrobj) identifier_terrobj )tuple )binary_operator (keyword_argument (identifier_file) identifier_file (identifier_outfile) identifier_outfile )keyword_argument )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Emit Python code generating the metadata for the given region
(module (function_definition (function_name_has_callback) function_name_has_callback (parameters (identifier_obj) identifier_obj (identifier_handle) identifier_handle )parameters (block (expression_statement (assignment (identifier_callbacks) identifier_callbacks (attribute (identifier_obj) identifier_obj (identifier__callbacks) identifier__callbacks )attribute )assignment )expression_statement (if_statement (not_operator (identifier_callbacks) identifier_callbacks )not_operator (block (return_statement (False) False )return_statement )block )if_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_callbacks) identifier_callbacks (identifier_Node) identifier_Node )argument_list )call (block (return_statement (comparison_operator (identifier_handle) identifier_handle (identifier_callbacks) identifier_callbacks )comparison_operator )return_statement )block (else_clause (block (return_statement (comparison_operator (identifier_handle) identifier_handle (identifier_callbacks) identifier_callbacks )comparison_operator )return_statement )block )else_clause )if_statement )block )function_definition )module
Return whether a callback is currently registered for an object.
(module (function_definition (function_name_get_children_metadata) function_name_get_children_metadata (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_metadata) identifier_metadata (call (identifier_dict) identifier_dict (argument_list (subscript (attribute (identifier_self) identifier_self (identifier__mdata) identifier__mdata )attribute (string_'children') string_'children' )subscript )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_metadata) identifier_metadata (identifier_update) identifier_update )attribute (argument_list (dictionary (pair (string_'existing_children_values') string_'existing_children_values' (subscript (attribute (identifier_self) identifier_self (identifier__my_map) identifier__my_map )attribute (string_'childIds') string_'childIds' )subscript )pair )dictionary )argument_list )call )expression_statement (return_statement (call (identifier_Metadata) identifier_Metadata (argument_list (dictionary_splat (identifier_metadata) identifier_metadata )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Gets the metadata for children. return: (osid.Metadata) - metadata for the children *compliance: mandatory -- This method must be implemented.*
(module (function_definition (function_name_add_inverse_query) function_name_add_inverse_query (parameters (identifier_self) identifier_self (default_parameter (identifier_key_val) identifier_key_val (dictionary )dictionary )default_parameter )parameters (block (expression_statement (assignment (identifier_q) identifier_q (call (identifier_Q) identifier_Q (argument_list (string_"match") string_"match" (dictionary_splat (identifier_key_val) identifier_key_val )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_search) identifier_search )attribute (call (attribute (attribute (identifier_self) identifier_self (identifier_search) identifier_search )attribute (identifier_query) identifier_query )attribute (argument_list (unary_operator (identifier_q) identifier_q )unary_operator )argument_list )call )assignment )expression_statement (return_statement (identifier_self) identifier_self )return_statement )block )function_definition )module
Add an es_dsl inverse query object to the es_dsl Search object :param key_val: a key-value pair(dict) containing the query to be added to the search object :returns: self, which allows the method to be chainable with the other methods
(module (function_definition (function_name_has_family_notes) function_name_has_family_notes (parameters (identifier_family) identifier_family (default_parameter (identifier_data_dir) identifier_data_dir (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_file_path) identifier_file_path (call (identifier__family_notes_path) identifier__family_notes_path (argument_list (identifier_family) identifier_family (identifier_data_dir) identifier_data_dir )argument_list )call )assignment )expression_statement (return_statement (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isfile) identifier_isfile )attribute (argument_list (identifier_file_path) identifier_file_path )argument_list )call )return_statement )block )function_definition )module
Check if notes exist for a given family Returns True if they exist, false otherwise
(module (function_definition (function_name_patch) function_name_patch (parameters )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (attribute (identifier_aiobotocore) identifier_aiobotocore (identifier_client) identifier_client )attribute (string_'_xray_enabled') string_'_xray_enabled' )argument_list )call (block (return_statement )return_statement )block )if_statement (expression_statement (call (identifier_setattr) identifier_setattr (argument_list (attribute (identifier_aiobotocore) identifier_aiobotocore (identifier_client) identifier_client )attribute (string_'_xray_enabled') string_'_xray_enabled' (True) True )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_wrapt) identifier_wrapt (identifier_wrap_function_wrapper) identifier_wrap_function_wrapper )attribute (argument_list (string_'aiobotocore.client') string_'aiobotocore.client' (string_'AioBaseClient._make_api_call') string_'AioBaseClient._make_api_call' (identifier__xray_traced_aiobotocore) identifier__xray_traced_aiobotocore )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_wrapt) identifier_wrapt (identifier_wrap_function_wrapper) identifier_wrap_function_wrapper )attribute (argument_list (string_'aiobotocore.endpoint') string_'aiobotocore.endpoint' (string_'AioEndpoint.prepare_request') string_'AioEndpoint.prepare_request' (identifier_inject_header) identifier_inject_header )argument_list )call )expression_statement )block )function_definition )module
Patch aiobotocore client so it generates subsegments when calling AWS services.
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (identifier_logicalId) identifier_logicalId (identifier_resource) identifier_resource )parameters (block (expression_statement (assignment (identifier_resource_dict) identifier_resource_dict (identifier_resource) identifier_resource )assignment )expression_statement (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_resource) identifier_resource (identifier_SamResource) identifier_SamResource )argument_list )call (block (expression_statement (assignment (identifier_resource_dict) identifier_resource_dict (call (attribute (identifier_resource) identifier_resource (identifier_to_dict) identifier_to_dict )attribute (argument_list )argument_list )call )assignment )expression_statement )block )if_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_resources) identifier_resources )attribute (identifier_logicalId) identifier_logicalId )subscript (identifier_resource_dict) identifier_resource_dict )assignment )expression_statement )block )function_definition )module
Adds the resource to dictionary with given logical Id. It will overwrite, if the logicalId is already used. :param string logicalId: Logical Id to set to :param SamResource or dict resource: The actual resource data
(module (function_definition (function_name__unsigned_bounds) function_name__unsigned_bounds (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_ssplit) identifier_ssplit (call (attribute (identifier_self) identifier_self (identifier__ssplit) identifier__ssplit )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_ssplit) identifier_ssplit )argument_list )call (integer_1) integer_1 )comparison_operator (block (expression_statement (assignment (identifier_lb) identifier_lb (attribute (subscript (identifier_ssplit) identifier_ssplit (integer_0) integer_0 )subscript (identifier_lower_bound) identifier_lower_bound )attribute )assignment )expression_statement (expression_statement (assignment (identifier_ub) identifier_ub (attribute (subscript (identifier_ssplit) identifier_ssplit (integer_0) integer_0 )subscript (identifier_upper_bound) identifier_upper_bound )attribute )assignment )expression_statement (return_statement (list (tuple (identifier_lb) identifier_lb (identifier_ub) identifier_ub )tuple )list )return_statement )block (elif_clause (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_ssplit) identifier_ssplit )argument_list )call (integer_2) integer_2 )comparison_operator (block (expression_statement (assignment (identifier_lb_1) identifier_lb_1 (attribute (subscript (identifier_ssplit) identifier_ssplit (integer_0) integer_0 )subscript (identifier_lower_bound) identifier_lower_bound )attribute )assignment )expression_statement (expression_statement (assignment (identifier_ub_1) identifier_ub_1 (attribute (subscript (identifier_ssplit) identifier_ssplit (integer_0) integer_0 )subscript (identifier_upper_bound) identifier_upper_bound )attribute )assignment )expression_statement (expression_statement (assignment (identifier_lb_2) identifier_lb_2 (attribute (subscript (identifier_ssplit) identifier_ssplit (integer_1) integer_1 )subscript (identifier_lower_bound) identifier_lower_bound )attribute )assignment )expression_statement (expression_statement (assignment (identifier_ub_2) identifier_ub_2 (attribute (subscript (identifier_ssplit) identifier_ssplit (integer_1) integer_1 )subscript (identifier_upper_bound) identifier_upper_bound )attribute )assignment )expression_statement (return_statement (list (tuple (identifier_lb_1) identifier_lb_1 (identifier_ub_1) identifier_ub_1 )tuple (tuple (identifier_lb_2) identifier_lb_2 (identifier_ub_2) identifier_ub_2 )tuple )list )return_statement )block )elif_clause (else_clause (block (raise_statement (call (identifier_Exception) identifier_Exception (argument_list (string_'WTF') string_'WTF' )argument_list )call )raise_statement )block )else_clause )if_statement )block )function_definition )module
Get lower bound and upper bound for `self` in unsigned arithmetic. :return: a list of (lower_bound, upper_bound) tuples.
(module (function_definition (function_name_smooth_rectangle) function_name_smooth_rectangle (parameters (identifier_x) identifier_x (identifier_y) identifier_y (identifier_rec_w) identifier_rec_w (identifier_rec_h) identifier_rec_h (identifier_gaussian_width_x) identifier_gaussian_width_x (identifier_gaussian_width_y) identifier_gaussian_width_y )parameters (block (expression_statement (assignment (identifier_gaussian_x_coord) identifier_gaussian_x_coord (binary_operator (call (identifier_abs) identifier_abs (argument_list (identifier_x) identifier_x )argument_list )call (binary_operator (identifier_rec_w) identifier_rec_w (float_2.0) float_2.0 )binary_operator )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_gaussian_y_coord) identifier_gaussian_y_coord (binary_operator (call (identifier_abs) identifier_abs (argument_list (identifier_y) identifier_y )argument_list )call (binary_operator (identifier_rec_h) identifier_rec_h (float_2.0) float_2.0 )binary_operator )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_box_x) identifier_box_x (call (attribute (identifier_np) identifier_np (identifier_less) identifier_less )attribute (argument_list (identifier_gaussian_x_coord) identifier_gaussian_x_coord (float_0.0) float_0.0 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_box_y) identifier_box_y (call (attribute (identifier_np) identifier_np (identifier_less) identifier_less )attribute (argument_list (identifier_gaussian_y_coord) identifier_gaussian_y_coord (float_0.0) float_0.0 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_sigmasq_x) identifier_sigmasq_x (binary_operator (identifier_gaussian_width_x) identifier_gaussian_width_x (identifier_gaussian_width_x) identifier_gaussian_width_x )binary_operator )assignment )expression_statement (expression_statement (assignment (identifier_sigmasq_y) identifier_sigmasq_y (binary_operator (identifier_gaussian_width_y) identifier_gaussian_width_y (identifier_gaussian_width_y) identifier_gaussian_width_y )binary_operator )assignment )expression_statement (with_statement (with_clause (with_item (call (identifier_float_error_ignore) identifier_float_error_ignore (argument_list )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_falloff_x) identifier_falloff_x (conditional_expression (binary_operator (identifier_x) identifier_x (float_0.0) float_0.0 )binary_operator (comparison_operator (identifier_sigmasq_x) identifier_sigmasq_x (float_0.0) float_0.0 )comparison_operator (line_continuation_\) line_continuation_\ (call (attribute (identifier_np) identifier_np (identifier_exp) identifier_exp )attribute (argument_list (call (attribute (identifier_np) identifier_np (identifier_divide) identifier_divide )attribute (argument_list (binary_operator (unary_operator (identifier_gaussian_x_coord) identifier_gaussian_x_coord )unary_operator (identifier_gaussian_x_coord) identifier_gaussian_x_coord )binary_operator (binary_operator (integer_2) integer_2 (identifier_sigmasq_x) identifier_sigmasq_x )binary_operator )argument_list )call )argument_list )call )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_falloff_y) identifier_falloff_y (conditional_expression (binary_operator (identifier_y) identifier_y (float_0.0) float_0.0 )binary_operator (comparison_operator (identifier_sigmasq_y) identifier_sigmasq_y (float_0.0) float_0.0 )comparison_operator (line_continuation_\) line_continuation_\ (call (attribute (identifier_np) identifier_np (identifier_exp) identifier_exp )attribute (argument_list (call (attribute (identifier_np) identifier_np (identifier_divide) identifier_divide )attribute (argument_list (binary_operator (unary_operator (identifier_gaussian_y_coord) identifier_gaussian_y_coord )unary_operator (identifier_gaussian_y_coord) identifier_gaussian_y_coord )binary_operator (binary_operator (integer_2) integer_2 (identifier_sigmasq_y) identifier_sigmasq_y )binary_operator )argument_list )call )argument_list )call )conditional_expression )assignment )expression_statement )block )with_statement (return_statement (call (attribute (identifier_np) identifier_np (identifier_minimum) identifier_minimum )attribute (argument_list (call (attribute (identifier_np) identifier_np (identifier_maximum) identifier_maximum )attribute (argument_list (identifier_box_x) identifier_box_x (identifier_falloff_x) identifier_falloff_x )argument_list )call (call (attribute (identifier_np) identifier_np (identifier_maximum) identifier_maximum )attribute (argument_list (identifier_box_y) identifier_box_y (identifier_falloff_y) identifier_falloff_y )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Rectangle with a solid central region, then Gaussian fall-off at the edges.
(module (function_definition (function_name_astype) function_name_astype (parameters (identifier_self) identifier_self (identifier_dtype) identifier_dtype )parameters (block (expression_statement (assignment (identifier_dtype) identifier_dtype (call (attribute (identifier_np) identifier_np (identifier_dtype) identifier_dtype )attribute (argument_list (identifier_dtype) identifier_dtype )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_filters) identifier_filters (list )list )assignment )expression_statement (if_statement (attribute (identifier_self) identifier_self (identifier__filters) identifier__filters )attribute (block (expression_statement (call (attribute (identifier_filters) identifier_filters (identifier_extend) identifier_extend )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__filters) identifier__filters )attribute )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_filters) identifier_filters (identifier_insert) identifier_insert )attribute (argument_list (integer_0) integer_0 (call (identifier_AsType) identifier_AsType (argument_list (keyword_argument (identifier_encode_dtype) identifier_encode_dtype (attribute (identifier_self) identifier_self (identifier__dtype) identifier__dtype )attribute )keyword_argument (keyword_argument (identifier_decode_dtype) identifier_decode_dtype (identifier_dtype) identifier_dtype )keyword_argument )argument_list )call )argument_list )call )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_view) identifier_view )attribute (argument_list (keyword_argument (identifier_filters) identifier_filters (identifier_filters) identifier_filters )keyword_argument (keyword_argument (identifier_dtype) identifier_dtype (identifier_dtype) identifier_dtype )keyword_argument (keyword_argument (identifier_read_only) identifier_read_only (True) True )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Returns a view that does on the fly type conversion of the underlying data. Parameters ---------- dtype : string or dtype NumPy dtype. Notes ----- This method returns a new Array object which is a view on the same underlying chunk data. Modifying any data via the view is currently not permitted and will result in an error. This is an experimental feature and its behavior is subject to change in the future. See Also -------- Array.view Examples -------- >>> import zarr >>> import numpy as np >>> data = np.arange(100, dtype=np.uint8) >>> a = zarr.array(data, chunks=10) >>> a[:] array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99], dtype=uint8) >>> v = a.astype(np.float32) >>> v.is_view True >>> v[:] array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21., 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32., 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43., 44., 45., 46., 47., 48., 49., 50., 51., 52., 53., 54., 55., 56., 57., 58., 59., 60., 61., 62., 63., 64., 65., 66., 67., 68., 69., 70., 71., 72., 73., 74., 75., 76., 77., 78., 79., 80., 81., 82., 83., 84., 85., 86., 87., 88., 89., 90., 91., 92., 93., 94., 95., 96., 97., 98., 99.], dtype=float32)
(module (function_definition (function_name_ping) function_name_ping (parameters (identifier_host) identifier_host (default_parameter (identifier_timeout) identifier_timeout (False) False )default_parameter (default_parameter (identifier_return_boolean) identifier_return_boolean (False) False )default_parameter )parameters (block (if_statement (identifier_timeout) identifier_timeout (block (if_statement (comparison_operator (subscript (identifier___grains__) identifier___grains__ (string_'kernel') string_'kernel' )subscript (string_'SunOS') string_'SunOS' )comparison_operator (block (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_'ping -c 4 {1} {0}') string_'ping -c 4 {1} {0}' (identifier_format) identifier_format )attribute (argument_list (identifier_timeout) identifier_timeout (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_network) identifier_network )attribute (identifier_sanitize_host) identifier_sanitize_host )attribute (argument_list (identifier_host) identifier_host )argument_list )call )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_'ping -W {0} -c 4 {1}') string_'ping -W {0} -c 4 {1}' (identifier_format) identifier_format )attribute (argument_list (identifier_timeout) identifier_timeout (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_network) identifier_network )attribute (identifier_sanitize_host) identifier_sanitize_host )attribute (argument_list (identifier_host) identifier_host )argument_list )call )argument_list )call )assignment )expression_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (assignment (identifier_cmd) identifier_cmd (call (attribute (string_'ping -c 4 {0}') string_'ping -c 4 {0}' (identifier_format) identifier_format )attribute (argument_list (call (attribute (attribute (attribute (identifier_salt) identifier_salt (identifier_utils) identifier_utils )attribute (identifier_network) identifier_network )attribute (identifier_sanitize_host) identifier_sanitize_host )attribute (argument_list (identifier_host) identifier_host )argument_list )call )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (if_statement (identifier_return_boolean) identifier_return_boolean (block (expression_statement (assignment (identifier_ret) identifier_ret (call (subscript (identifier___salt__) identifier___salt__ (string_'cmd.run_all') string_'cmd.run_all' )subscript (argument_list (identifier_cmd) identifier_cmd )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_ret) identifier_ret (string_'retcode') string_'retcode' )subscript (integer_0) integer_0 )comparison_operator (block (return_statement (False) False )return_statement )block (else_clause (block (return_statement (True) True )return_statement )block )else_clause )if_statement )block (else_clause (block (return_statement (call (subscript (identifier___salt__) identifier___salt__ (string_'cmd.run') string_'cmd.run' )subscript (argument_list (identifier_cmd) identifier_cmd )argument_list )call )return_statement )block )else_clause )if_statement )block )function_definition )module
Performs an ICMP ping to a host .. versionchanged:: 2015.8.0 Added support for SunOS CLI Example: .. code-block:: bash salt '*' network.ping archlinux.org .. versionadded:: 2015.5.0 Return a True or False instead of ping output. .. code-block:: bash salt '*' network.ping archlinux.org return_boolean=True Set the time to wait for a response in seconds. .. code-block:: bash salt '*' network.ping archlinux.org timeout=3
(module (function_definition (function_name__mkdir_for_config) function_name__mkdir_for_config (parameters (default_parameter (identifier_cfg_file) identifier_cfg_file (identifier_cfg_file) identifier_cfg_file )default_parameter )parameters (block (expression_statement (assignment (pattern_list (identifier_dirname) identifier_dirname (identifier_filename) identifier_filename )pattern_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_split) identifier_split )attribute (argument_list (identifier_cfg_file) identifier_cfg_file )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_makedirs) identifier_makedirs )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )expression_statement )block (except_clause (as_pattern (identifier_OSError) identifier_OSError (as_pattern_target (identifier_exc) identifier_exc )as_pattern_target )as_pattern (block (if_statement (boolean_operator (comparison_operator (attribute (identifier_exc) identifier_exc (identifier_errno) identifier_errno )attribute (attribute (identifier_errno) identifier_errno (identifier_EEXIST) identifier_EEXIST )attribute )comparison_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (identifier_dirname) identifier_dirname )argument_list )call )boolean_operator (block (pass_statement )pass_statement )block (else_clause (block (raise_statement )raise_statement )block )else_clause )if_statement )block )except_clause )try_statement )block )function_definition )module
Given a path to a filename, make sure the directory exists
(module (function_definition (function_name_remove_data_item) function_name_remove_data_item (parameters (identifier_self) identifier_self (typed_parameter (identifier_data_item) identifier_data_item (type (attribute (identifier_DataItem) identifier_DataItem (identifier_DataItem) identifier_DataItem )attribute )type )typed_parameter (keyword_separator )keyword_separator (typed_default_parameter (identifier_safe) identifier_safe (type (identifier_bool) identifier_bool )type (False) False )typed_default_parameter )parameters (type (subscript (attribute (identifier_typing) identifier_typing (identifier_Optional) identifier_Optional )attribute (attribute (identifier_typing) identifier_typing (identifier_Sequence) identifier_Sequence )attribute )subscript )type (block (return_statement (call (attribute (identifier_self) identifier_self (identifier___cascade_delete) identifier___cascade_delete )attribute (argument_list (identifier_data_item) identifier_data_item (keyword_argument (identifier_safe) identifier_safe (identifier_safe) identifier_safe )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Remove data item from document model. This method is NOT threadsafe.
(module (function_definition (function_name_identity_factor) function_name_identity_factor (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_DiscreteFactor) identifier_DiscreteFactor (argument_list (attribute (identifier_self) identifier_self (identifier_variables) identifier_variables )attribute (attribute (identifier_self) identifier_self (identifier_cardinality) identifier_cardinality )attribute (call (attribute (identifier_np) identifier_np (identifier_ones) identifier_ones )attribute (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_values) identifier_values )attribute (identifier_size) identifier_size )attribute )argument_list )call )argument_list )call )return_statement )block )function_definition )module
Returns the identity factor. Def: The identity factor of a factor has the same scope and cardinality as the original factor, but the values for all the assignments is 1. When the identity factor is multiplied with the factor it returns the factor itself. Returns ------- DiscreteFactor: The identity factor. Examples -------- >>> from pgmpy.factors.discrete import DiscreteFactor >>> phi = DiscreteFactor(['x1', 'x2', 'x3'], [2, 3, 2], range(12)) >>> phi_identity = phi.identity_factor() >>> phi_identity.variables ['x1', 'x2', 'x3'] >>> phi_identity.values array([[[ 1., 1.], [ 1., 1.], [ 1., 1.]], [[ 1., 1.], [ 1., 1.], [ 1., 1.]]])
(module (function_definition (function_name_find_cards) function_name_find_cards (parameters (identifier_self) identifier_self (default_parameter (identifier_source) identifier_source (None) None )default_parameter (dictionary_splat_pattern (identifier_filters) identifier_filters )dictionary_splat_pattern )parameters (block (if_statement (not_operator (identifier_filters) identifier_filters )not_operator (block (expression_statement (assignment (identifier_new_filters) identifier_new_filters (call (attribute (attribute (identifier_self) identifier_self (identifier_filters) identifier_filters )attribute (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_new_filters) identifier_new_filters (call (attribute (identifier_filters) identifier_filters (identifier_copy) identifier_copy )attribute (argument_list )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (for_statement (pattern_list (identifier_k) identifier_k (identifier_v) identifier_v )pattern_list (call (attribute (identifier_new_filters) identifier_new_filters (identifier_items) identifier_items )attribute (argument_list )argument_list )call (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_v) identifier_v (identifier_LazyValue) identifier_LazyValue )argument_list )call (block (expression_statement (assignment (subscript (identifier_new_filters) identifier_new_filters (identifier_k) identifier_k )subscript (call (attribute (identifier_v) identifier_v (identifier_evaluate) identifier_evaluate )attribute (argument_list (identifier_source) identifier_source )argument_list )call )assignment )expression_statement )block )if_statement )block )for_statement (import_from_statement (relative_import (import_prefix )import_prefix )relative_import (dotted_name (identifier_cards) identifier_cards )dotted_name )import_from_statement (return_statement (call (attribute (identifier_cards) identifier_cards (identifier_filter) identifier_filter )attribute (argument_list (dictionary_splat (identifier_new_filters) identifier_new_filters )dictionary_splat )argument_list )call )return_statement )block )function_definition )module
Generate a card pool with all cards matching specified filters
(module (function_definition (function_name_create_api_call) function_name_create_api_call (parameters (identifier_func) identifier_func (identifier_settings) identifier_settings )parameters (block (function_definition (function_name_base_caller) function_name_base_caller (parameters (identifier_api_call) identifier_api_call (identifier__) identifier__ (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (return_statement (call (identifier_api_call) identifier_api_call (argument_list (list_splat (identifier_args) identifier_args )list_splat )argument_list )call )return_statement )block )function_definition (function_definition (function_name_inner) function_name_inner (parameters (identifier_request) identifier_request (default_parameter (identifier_options) identifier_options (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_this_options) identifier_this_options (call (identifier__merge_options_metadata) identifier__merge_options_metadata (argument_list (identifier_options) identifier_options (identifier_settings) identifier_settings )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_this_settings) identifier_this_settings (call (attribute (identifier_settings) identifier_settings (identifier_merge) identifier_merge )attribute (argument_list (identifier_this_options) identifier_this_options )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (attribute (identifier_this_settings) identifier_this_settings (identifier_retry) identifier_retry )attribute (attribute (attribute (identifier_this_settings) identifier_this_settings (identifier_retry) identifier_retry )attribute (identifier_retry_codes) identifier_retry_codes )attribute )boolean_operator (block (expression_statement (assignment (identifier_api_call) identifier_api_call (call (attribute (attribute (identifier_gax) identifier_gax (identifier_retry) identifier_retry )attribute (identifier_retryable) identifier_retryable )attribute (argument_list (identifier_func) identifier_func (attribute (identifier_this_settings) identifier_this_settings (identifier_retry) identifier_retry )attribute (dictionary_splat (attribute (identifier_this_settings) identifier_this_settings (identifier_kwargs) identifier_kwargs )attribute )dictionary_splat )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_api_call) identifier_api_call (call (attribute (attribute (identifier_gax) identifier_gax (identifier_retry) identifier_retry )attribute (identifier_add_timeout_arg) identifier_add_timeout_arg )attribute (argument_list (identifier_func) identifier_func (attribute (identifier_this_settings) identifier_this_settings (identifier_timeout) identifier_timeout )attribute (dictionary_splat (attribute (identifier_this_settings) identifier_this_settings (identifier_kwargs) identifier_kwargs )attribute )dictionary_splat )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_api_call) identifier_api_call (call (identifier__catch_errors) identifier__catch_errors (argument_list (identifier_api_call) identifier_api_call (attribute (attribute (identifier_gax) identifier_gax (identifier_config) identifier_config )attribute (identifier_API_ERRORS) identifier_API_ERRORS )attribute )argument_list )call )assignment )expression_statement (return_statement (call (identifier_api_caller) identifier_api_caller (argument_list (identifier_api_call) identifier_api_call (identifier_this_settings) identifier_this_settings (identifier_request) identifier_request )argument_list )call )return_statement )block )function_definition (if_statement (attribute (identifier_settings) identifier_settings (identifier_page_descriptor) identifier_page_descriptor )attribute (block (if_statement (boolean_operator (attribute (identifier_settings) identifier_settings (identifier_bundler) identifier_bundler )attribute (attribute (identifier_settings) identifier_settings (identifier_bundle_descriptor) identifier_bundle_descriptor )attribute )boolean_operator (block (raise_statement (call (identifier_ValueError) identifier_ValueError (argument_list (concatenated_string (string_'The API call has incompatible settings: ') string_'The API call has incompatible settings: ' (string_'bundling and page streaming') string_'bundling and page streaming' )concatenated_string )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (identifier_api_caller) identifier_api_caller (call (identifier__page_streamable) identifier__page_streamable (argument_list (attribute (identifier_settings) identifier_settings (identifier_page_descriptor) identifier_page_descriptor )attribute )argument_list )call )assignment )expression_statement )block (elif_clause (boolean_operator (attribute (identifier_settings) identifier_settings (identifier_bundler) identifier_bundler )attribute (attribute (identifier_settings) identifier_settings (identifier_bundle_descriptor) identifier_bundle_descriptor )attribute )boolean_operator (block (expression_statement (assignment (identifier_api_caller) identifier_api_caller (call (identifier__bundleable) identifier__bundleable (argument_list (attribute (identifier_settings) identifier_settings (identifier_bundle_descriptor) identifier_bundle_descriptor )attribute )argument_list )call )assignment )expression_statement )block )elif_clause (else_clause (block (expression_statement (assignment (identifier_api_caller) identifier_api_caller (identifier_base_caller) identifier_base_caller )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_inner) identifier_inner )return_statement )block )function_definition )module
Converts an rpc call into an API call governed by the settings. In typical usage, ``func`` will be a callable used to make an rpc request. This will mostly likely be a bound method from a request stub used to make an rpc call. The result is created by applying a series of function decorators defined in this module to ``func``. ``settings`` is used to determine which function decorators to apply. The result is another callable which for most values of ``settings`` has has the same signature as the original. Only when ``settings`` configures bundling does the signature change. Args: func (Callable[Sequence[object], object]): is used to make a bare rpc call. settings (_CallSettings): provides the settings for this call Returns: Callable[Sequence[object], object]: a bound method on a request stub used to make an rpc call Raises: ValueError: if ``settings`` has incompatible values, e.g, if bundling and page_streaming are both configured
(module (function_definition (function_name_set_user_password) function_name_set_user_password (parameters (identifier_self) identifier_self (identifier_username) identifier_username (identifier_password) identifier_password )parameters (block (expression_statement (assignment (identifier_text) identifier_text (call (attribute (string_"SET PASSWORD FOR {0} = {1}") string_"SET PASSWORD FOR {0} = {1}" (identifier_format) identifier_format )attribute (argument_list (call (identifier_quote_ident) identifier_quote_ident (argument_list (identifier_username) identifier_username )argument_list )call (call (identifier_quote_literal) identifier_quote_literal (argument_list (identifier_password) identifier_password )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_query) identifier_query )attribute (argument_list (identifier_text) identifier_text )argument_list )call )expression_statement )block )function_definition )module
Change the password of an existing user. :param username: the username who's password is being changed :type username: str :param password: the new password for the user :type password: str
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self )parameters (block (while_statement (not_operator (attribute (identifier_self) identifier_self (identifier__abort) identifier__abort )attribute )not_operator (block (expression_statement (assignment (identifier_hashes) identifier_hashes (call (attribute (identifier_self) identifier_self (identifier__GetHashes) identifier__GetHashes )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__hash_queue) identifier__hash_queue )attribute (attribute (identifier_self) identifier_self (identifier_hashes_per_batch) identifier_hashes_per_batch )attribute )argument_list )call )assignment )expression_statement (if_statement (identifier_hashes) identifier_hashes (block (expression_statement (assignment (identifier_time_before_analysis) identifier_time_before_analysis (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_hash_analyses) identifier_hash_analyses (call (attribute (identifier_self) identifier_self (identifier_Analyze) identifier_Analyze )attribute (argument_list (identifier_hashes) identifier_hashes )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_current_time) identifier_current_time (call (attribute (identifier_time) identifier_time (identifier_time) identifier_time )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier_seconds_spent_analyzing) identifier_seconds_spent_analyzing )attribute (binary_operator (identifier_current_time) identifier_current_time (identifier_time_before_analysis) identifier_time_before_analysis )binary_operator )augmented_assignment )expression_statement (expression_statement (augmented_assignment (attribute (identifier_self) identifier_self (identifier_analyses_performed) identifier_analyses_performed )attribute (integer_1) integer_1 )augmented_assignment )expression_statement (for_statement (identifier_hash_analysis) identifier_hash_analysis (identifier_hash_analyses) identifier_hash_analyses (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__hash_analysis_queue) identifier__hash_analysis_queue )attribute (identifier_put) identifier_put )attribute (argument_list (identifier_hash_analysis) identifier_hash_analysis )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__hash_queue) identifier__hash_queue )attribute (identifier_task_done) identifier_task_done )attribute (argument_list )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (identifier_time) identifier_time (identifier_sleep) identifier_sleep )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_wait_after_analysis) identifier_wait_after_analysis )attribute )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_time) identifier_time (identifier_sleep) identifier_sleep )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_EMPTY_QUEUE_WAIT_TIME) identifier_EMPTY_QUEUE_WAIT_TIME )attribute )argument_list )call )expression_statement )block )else_clause )if_statement )block )while_statement )block )function_definition )module
The method called by the threading library to start the thread.
(module (function_definition (function_name_retrieve) function_name_retrieve (parameters (identifier_self) identifier_self (identifier_id) identifier_id )parameters (block (expression_statement (assignment (pattern_list (identifier__) identifier__ (identifier__) identifier__ (identifier_note) identifier_note )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_http_client) identifier_http_client )attribute (identifier_get) identifier_get )attribute (argument_list (call (attribute (string_"/notes/{id}") string_"/notes/{id}" (identifier_format) identifier_format )attribute (argument_list (keyword_argument (identifier_id) identifier_id (identifier_id) identifier_id )keyword_argument )argument_list )call )argument_list )call )assignment )expression_statement (return_statement (identifier_note) identifier_note )return_statement )block )function_definition )module
Retrieve a single note Returns a single note available to the user, according to the unique note ID provided If the note ID does not exist, this request will return an error :calls: ``get /notes/{id}`` :param int id: Unique identifier of a Note. :return: Dictionary that support attriubte-style access and represent Note resource. :rtype: dict
(module (function_definition (function_name_on_frame) function_name_on_frame (parameters (identifier_self) identifier_self (identifier_frame_in) identifier_frame_in )parameters (block (expression_statement (call (attribute (identifier_LOGGER) identifier_LOGGER (identifier_debug) identifier_debug )attribute (argument_list (string_'Frame Received: %s') string_'Frame Received: %s' (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute )argument_list )call )expression_statement (if_statement (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Heartbeat') string_'Heartbeat' )comparison_operator (block (return_statement )return_statement )block (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.Close') string_'Connection.Close' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__close_connection) identifier__close_connection )attribute (argument_list (identifier_frame_in) identifier_frame_in )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.CloseOk') string_'Connection.CloseOk' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__close_connection_ok) identifier__close_connection_ok )attribute (argument_list )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.Blocked') string_'Connection.Blocked' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__blocked_connection) identifier__blocked_connection )attribute (argument_list (identifier_frame_in) identifier_frame_in )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.Unblocked') string_'Connection.Unblocked' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__unblocked_connection) identifier__unblocked_connection )attribute (argument_list )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.OpenOk') string_'Connection.OpenOk' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__set_connection_state) identifier__set_connection_state )attribute (argument_list (attribute (identifier_Stateful) identifier_Stateful (identifier_OPEN) identifier_OPEN )attribute )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.Start') string_'Connection.Start' )comparison_operator (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_server_properties) identifier_server_properties )attribute (attribute (identifier_frame_in) identifier_frame_in (identifier_server_properties) identifier_server_properties )attribute )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__send_start_ok) identifier__send_start_ok )attribute (argument_list (identifier_frame_in) identifier_frame_in )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute (string_'Connection.Tune') string_'Connection.Tune' )comparison_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__send_tune_ok) identifier__send_tune_ok )attribute (argument_list (identifier_frame_in) identifier_frame_in )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__send_open_connection) identifier__send_open_connection )attribute (argument_list )argument_list )call )expression_statement )block )elif_clause (else_clause (block (expression_statement (call (attribute (identifier_LOGGER) identifier_LOGGER (identifier_error) identifier_error )attribute (argument_list (string_'[Channel0] Unhandled Frame: %s') string_'[Channel0] Unhandled Frame: %s' (attribute (identifier_frame_in) identifier_frame_in (identifier_name) identifier_name )attribute )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Handle frames sent to Channel0. :param frame_in: Amqp frame. :return:
(module (function_definition (function_name_add_mismatch) function_name_add_mismatch (parameters (identifier_self) identifier_self (identifier_entity) identifier_entity (list_splat_pattern (identifier_traits) identifier_traits )list_splat_pattern )parameters (block (for_statement (identifier_trait) identifier_trait (identifier_traits) identifier_traits (block (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier_index) identifier_index )attribute (identifier_trait) identifier_trait )subscript (identifier_add) identifier_add )attribute (argument_list (identifier_entity) identifier_entity )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Add a mismatching entity to the index. We do this by simply adding the mismatch to the index. :param collections.Hashable entity: an object to be mismatching the values of `traits_indexed_by` :param list traits: a list of hashable traits to index the entity with
(module (function_definition (function_name_device_configuration) function_name_device_configuration (parameters (identifier_self) identifier_self (default_parameter (identifier_pending) identifier_pending (False) False )default_parameter (default_parameter (identifier_use_included) identifier_use_included (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_device_configs) identifier_device_configs (call (attribute (identifier_self) identifier_self (identifier_device_configurations) identifier_device_configurations )attribute (argument_list (keyword_argument (identifier_use_included) identifier_use_included (identifier_use_included) identifier_use_included )keyword_argument )argument_list )call )assignment )expression_statement (for_statement (identifier_device_config) identifier_device_config (identifier_device_configs) identifier_device_configs (block (if_statement (comparison_operator (call (attribute (identifier_device_config) identifier_device_config (identifier_is_loaded) identifier_is_loaded )attribute (argument_list )argument_list )call (identifier_pending) identifier_pending )comparison_operator (block (return_statement (identifier_device_config) identifier_device_config )return_statement )block )if_statement )block )for_statement (return_statement (None) None )return_statement )block )function_definition )module
Get a specific device configuration. A device can have at most one loaded and one pending device configuration. This returns that device_configuration based on a given flag. Keyword Args: pending(bool): Fetch the pending configuration or return the loaded one. use_included(bool): Use included resources in this device configuration. Returns: The requested loaded or pending configuration or None if no device configuration is found.
(module (function_definition (function_name_add_new_header_groups) function_name_add_new_header_groups (parameters (identifier_self) identifier_self (identifier_groups) identifier_groups )parameters (block (expression_statement (assignment (identifier_already_present) identifier_already_present (list )list )assignment )expression_statement (for_statement (identifier_group) identifier_group (identifier_groups) identifier_groups (block (expression_statement (assignment (identifier_col_names) identifier_col_names (attribute (subscript (attribute (identifier_self) identifier_self (identifier_dm) identifier_dm )attribute (comparison_operator (subscript (attribute (identifier_self) identifier_self (identifier_dm) identifier_dm )attribute (string_'group') string_'group' )subscript (identifier_group) identifier_group )comparison_operator )subscript (identifier_index) identifier_index )attribute )assignment )expression_statement (for_statement (identifier_col) identifier_col (identifier_col_names) identifier_col_names (block (if_statement (comparison_operator (identifier_col) identifier_col (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_col_labels) identifier_col_labels )attribute )comparison_operator (block (expression_statement (assignment (identifier_col_number) identifier_col_number (call (attribute (attribute (identifier_self) identifier_self (identifier_grid) identifier_grid )attribute (identifier_add_col) identifier_add_col )attribute (argument_list (identifier_col) identifier_col )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_col) identifier_col (attribute (attribute (attribute (identifier_self) identifier_self (identifier_contribution) identifier_contribution )attribute (identifier_vocab) identifier_vocab )attribute (identifier_vocabularies) identifier_vocabularies )attribute )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_drop_down_menu) identifier_drop_down_menu )attribute (identifier_add_drop_down) identifier_add_drop_down )attribute (argument_list (identifier_col_number) identifier_col_number (identifier_col) identifier_col )argument_list )call )expression_statement )block (elif_clause (comparison_operator (identifier_col) identifier_col (attribute (attribute (attribute (identifier_self) identifier_self (identifier_contribution) identifier_contribution )attribute (identifier_vocab) identifier_vocab )attribute (identifier_suggested) identifier_suggested )attribute )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_drop_down_menu) identifier_drop_down_menu )attribute (identifier_add_drop_down) identifier_add_drop_down )attribute (argument_list (identifier_col_number) identifier_col_number (identifier_col) identifier_col )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_col) identifier_col (list (string_'specimen') string_'specimen' (string_'sample') string_'sample' (string_'site') string_'site' (string_'location') string_'location' (string_'specimens') string_'specimens' (string_'samples') string_'samples' (string_'sites') string_'sites' )list )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_drop_down_menu) identifier_drop_down_menu )attribute (identifier_add_drop_down) identifier_add_drop_down )attribute (argument_list (identifier_col_number) identifier_col_number (identifier_col) identifier_col )argument_list )call )expression_statement )block )elif_clause (elif_clause (comparison_operator (identifier_col) identifier_col (string_'experiments') string_'experiments' )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_drop_down_menu) identifier_drop_down_menu )attribute (identifier_add_drop_down) identifier_add_drop_down )attribute (argument_list (identifier_col_number) identifier_col_number (identifier_col) identifier_col )argument_list )call )expression_statement )block )elif_clause )if_statement (if_statement (comparison_operator (identifier_col) identifier_col (string_"method_codes") string_"method_codes" )comparison_operator (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_drop_down_menu) identifier_drop_down_menu )attribute (identifier_add_method_drop_down) identifier_add_method_drop_down )attribute (argument_list (identifier_col_number) identifier_col_number (identifier_col) identifier_col )argument_list )call )expression_statement )block )if_statement )block (else_clause (block (expression_statement (call (attribute (identifier_already_present) identifier_already_present (identifier_append) identifier_append )attribute (argument_list (identifier_col) identifier_col )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement )block )for_statement (return_statement (identifier_already_present) identifier_already_present )return_statement )block )function_definition )module
compile list of all headers belonging to all specified groups eliminate all headers that are already included add any req'd drop-down menus return errors
(module (function_definition (function_name_tube) function_name_tube (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_tube) identifier_tube (call (attribute (attribute (identifier_self) identifier_self (identifier_tubes) identifier_tubes )attribute (identifier_get) identifier_get )attribute (argument_list (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_tube) identifier_tube (None) None )comparison_operator (block (expression_statement (assignment (identifier_tube) identifier_tube (call (identifier_Tube) identifier_Tube (argument_list (identifier_self) identifier_self (identifier_name) identifier_name )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_tubes) identifier_tubes )attribute (identifier_name) identifier_name )subscript (identifier_tube) identifier_tube )assignment )expression_statement )block )if_statement (return_statement (identifier_tube) identifier_tube )return_statement )block )function_definition )module
Create tube object, if not created before. Returns `Tube` object.
(module (function_definition (function_name_hash_user_id) function_name_hash_user_id (parameters (identifier_self) identifier_self (typed_parameter (identifier_user_id) identifier_user_id (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_str) identifier_str )type (block (expression_statement (assignment (identifier_h) identifier_h (call (identifier_sha256) identifier_sha256 (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_h) identifier_h (identifier_update) identifier_update )attribute (argument_list (call (attribute (identifier_user_id) identifier_user_id (identifier_encode) identifier_encode )attribute (argument_list )argument_list )call )argument_list )call )expression_statement (return_statement (call (attribute (identifier_h) identifier_h (identifier_hexdigest) identifier_hexdigest )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
As per the law, anonymize user identifier before sending it.
(module (function_definition (function_name_is_not_empty) function_name_is_not_empty (parameters (identifier_value) identifier_value (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (try_statement (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (identifier_validators) identifier_validators (identifier_not_empty) identifier_not_empty )attribute (argument_list (identifier_value) identifier_value (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement )block (except_clause (as_pattern (identifier_SyntaxError) identifier_SyntaxError (as_pattern_target (identifier_error) identifier_error )as_pattern_target )as_pattern (block (raise_statement (identifier_error) identifier_error )raise_statement )block )except_clause (except_clause (identifier_Exception) identifier_Exception (block (return_statement (False) False )return_statement )block )except_clause )try_statement (return_statement (True) True )return_statement )block )function_definition )module
Indicate whether ``value`` is empty. :param value: The value to evaluate. :returns: ``True`` if ``value`` is empty, ``False`` if it is not. :rtype: :class:`bool <python:bool>` :raises SyntaxError: if ``kwargs`` contains duplicate keyword parameters or duplicates keyword parameters passed to the underlying validator
(module (function_definition (function_name_adjust_level) function_name_adjust_level (parameters (identifier_logger) identifier_logger (identifier_level) identifier_level )parameters (block (expression_statement (assignment (identifier_level) identifier_level (call (identifier_level_to_number) identifier_level_to_number (argument_list (identifier_level) identifier_level )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (call (attribute (identifier_logger) identifier_logger (identifier_getEffectiveLevel) identifier_getEffectiveLevel )attribute (argument_list )argument_list )call (identifier_level) identifier_level )comparison_operator (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_setLevel) identifier_setLevel )attribute (argument_list (identifier_level) identifier_level )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Increase a logger's verbosity up to the requested level. :param logger: The logger to change (a :class:`~logging.Logger` object). :param level: The log level to enable (a string or number). This function is used by functions like :func:`install()`, :func:`increase_verbosity()` and :func:`.enable_system_logging()` to adjust a logger's level so that log messages up to the requested log level are propagated to the configured output handler(s). It uses :func:`logging.Logger.getEffectiveLevel()` to check whether `logger` propagates or swallows log messages of the requested `level` and sets the logger's level to the requested level if it would otherwise swallow log messages. Effectively this function will "widen the scope of logging" when asked to do so but it will never "narrow the scope of logging". This is because I am convinced that filtering of log messages should (primarily) be decided by handlers.
(module (function_definition (function_name__patch_resource) function_name__patch_resource (parameters (identifier_self) identifier_self (identifier_method) identifier_method )parameters (block (expression_statement (assignment (identifier_resource) identifier_resource (call (attribute (attribute (identifier_self) identifier_self (identifier_client) identifier_client )attribute (identifier_get_resource) identifier_get_resource )attribute (argument_list (string_"") string_"" (attribute (attribute (identifier_self) identifier_self (identifier_resource) identifier_resource )attribute (identifier_path) identifier_path )attribute (identifier_method) identifier_method )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_resource) identifier_resource )not_operator (block (raise_statement (call (identifier_UnsupportedResourceMethodError) identifier_UnsupportedResourceMethodError (argument_list (attribute (attribute (identifier_self) identifier_self (identifier_resource) identifier_resource )attribute (identifier_path) identifier_path )attribute (identifier_method) identifier_method )argument_list )call )raise_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_resource) identifier_resource )attribute (identifier_resource) identifier_resource )assignment )expression_statement )block )function_definition )module
Patch the current RAML ResourceNode by the resource with the correct method if it exists If the resource with the specified method does not exist an exception is raised. :param str method: the method of the resource :raises UnsupportedResourceMethodError: if resource does not support the method
(module (function_definition (function_name_updatepLvlNextFunc) function_name_updatepLvlNextFunc (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_orig_time) identifier_orig_time (attribute (identifier_self) identifier_self (identifier_time_flow) identifier_time_flow )attribute )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_timeFwd) identifier_timeFwd )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_pLvlNextFunc) identifier_pLvlNextFunc (list )list )assignment )expression_statement (expression_statement (assignment (identifier_pLogMean) identifier_pLogMean (attribute (identifier_self) identifier_self (identifier_pLvlInitMean) identifier_pLvlInitMean )attribute )assignment )expression_statement (for_statement (identifier_t) identifier_t (call (identifier_range) identifier_range (argument_list (attribute (identifier_self) identifier_self (identifier_T_cycle) identifier_T_cycle )attribute )argument_list )call (block (expression_statement (call (attribute (identifier_pLvlNextFunc) identifier_pLvlNextFunc (identifier_append) identifier_append )attribute (argument_list (call (identifier_pLvlFuncAR1) identifier_pLvlFuncAR1 (argument_list (identifier_pLogMean) identifier_pLogMean (subscript (attribute (identifier_self) identifier_self (identifier_PermGroFac) identifier_PermGroFac )attribute (identifier_t) identifier_t )subscript (attribute (identifier_self) identifier_self (identifier_PrstIncCorr) identifier_PrstIncCorr )attribute )argument_list )call )argument_list )call )expression_statement (expression_statement (augmented_assignment (identifier_pLogMean) identifier_pLogMean (call (attribute (identifier_np) identifier_np (identifier_log) identifier_log )attribute (argument_list (subscript (attribute (identifier_self) identifier_self (identifier_PermGroFac) identifier_PermGroFac )attribute (identifier_t) identifier_t )subscript )argument_list )call )augmented_assignment )expression_statement )block )for_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_pLvlNextFunc) identifier_pLvlNextFunc )attribute (identifier_pLvlNextFunc) identifier_pLvlNextFunc )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_addToTimeVary) identifier_addToTimeVary )attribute (argument_list (string_'pLvlNextFunc') string_'pLvlNextFunc' )argument_list )call )expression_statement (if_statement (not_operator (identifier_orig_time) identifier_orig_time )not_operator (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier_timeRev) identifier_timeRev )attribute (argument_list )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
A method that creates the pLvlNextFunc attribute as a sequence of AR1-style functions. Draws on the attributes PermGroFac and PrstIncCorr. If cycles=0, the product of PermGroFac across all periods must be 1.0, otherwise this method is invalid. Parameters ---------- None Returns ------- None
(module (function_definition (function_name_wxcode) function_name_wxcode (parameters (typed_parameter (identifier_code) identifier_code (type (identifier_str) identifier_str )type )typed_parameter )parameters (type (identifier_str) identifier_str )type (block (if_statement (not_operator (identifier_code) identifier_code )not_operator (block (return_statement (string_'') string_'' )return_statement )block )if_statement (expression_statement (assignment (identifier_ret) identifier_ret (string_'') string_'' )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_code) identifier_code (integer_0) integer_0 )subscript (string_'+') string_'+' )comparison_operator (block (expression_statement (assignment (identifier_ret) identifier_ret (string_'Heavy ') string_'Heavy ' )assignment )expression_statement (expression_statement (assignment (identifier_code) identifier_code (subscript (identifier_code) identifier_code (slice (integer_1) integer_1 (colon) colon )slice )subscript )assignment )expression_statement )block (elif_clause (comparison_operator (subscript (identifier_code) identifier_code (integer_0) integer_0 )subscript (string_'-') string_'-' )comparison_operator (block (expression_statement (assignment (identifier_ret) identifier_ret (string_'Light ') string_'Light ' )assignment )expression_statement (expression_statement (assignment (identifier_code) identifier_code (subscript (identifier_code) identifier_code (slice (integer_1) integer_1 (colon) colon )slice )subscript )assignment )expression_statement )block )elif_clause )if_statement (if_statement (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_code) identifier_code )argument_list )call (list (integer_2) integer_2 (integer_4) integer_4 (integer_6) integer_6 )list )comparison_operator (block (return_statement (identifier_code) identifier_code )return_statement )block )if_statement (for_statement (identifier__) identifier__ (call (identifier_range) identifier_range (argument_list (binary_operator (call (identifier_len) identifier_len (argument_list (identifier_code) identifier_code )argument_list )call (integer_2) integer_2 )binary_operator )argument_list )call (block (if_statement (comparison_operator (subscript (identifier_code) identifier_code (slice (colon) colon (integer_2) integer_2 )slice )subscript (identifier_WX_TRANSLATIONS) identifier_WX_TRANSLATIONS )comparison_operator (block (expression_statement (augmented_assignment (identifier_ret) identifier_ret (binary_operator (subscript (identifier_WX_TRANSLATIONS) identifier_WX_TRANSLATIONS (subscript (identifier_code) identifier_code (slice (colon) colon (integer_2) integer_2 )slice )subscript )subscript (string_' ') string_' ' )binary_operator )augmented_assignment )expression_statement )block (else_clause (block (expression_statement (augmented_assignment (identifier_ret) identifier_ret (subscript (identifier_code) identifier_code (slice (colon) colon (integer_2) integer_2 )slice )subscript )augmented_assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_code) identifier_code (subscript (identifier_code) identifier_code (slice (integer_2) integer_2 (colon) colon )slice )subscript )assignment )expression_statement )block )for_statement (return_statement (call (attribute (identifier_ret) identifier_ret (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )return_statement )block )function_definition )module
Translates weather codes into readable strings Returns translated string of variable length
(module (function_definition (function_name_DEFINE_point) function_name_DEFINE_point (parameters (identifier_name) identifier_name (identifier_default) identifier_default (identifier_help) identifier_help )parameters (block (expression_statement (call (attribute (identifier_flags) identifier_flags (identifier_DEFINE) identifier_DEFINE )attribute (argument_list (call (identifier_PointParser) identifier_PointParser (argument_list )argument_list )call (identifier_name) identifier_name (identifier_default) identifier_default (identifier_help) identifier_help )argument_list )call )expression_statement )block )function_definition )module
Registers a flag whose value parses as a point.
(module (function_definition (function_name_qteGetAppletFromWidget) function_name_qteGetAppletFromWidget (parameters (identifier_widgetObj) identifier_widgetObj )parameters (block (if_statement (comparison_operator (identifier_widgetObj) identifier_widgetObj (None) None )comparison_operator (block (return_statement (None) None )return_statement )block )if_statement (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_widgetObj) identifier_widgetObj (string_'_qteAdmin') string_'_qteAdmin' )argument_list )call (block (return_statement (attribute (attribute (identifier_widgetObj) identifier_widgetObj (identifier__qteAdmin) identifier__qteAdmin )attribute (identifier_qteApplet) identifier_qteApplet )attribute )return_statement )block )if_statement (expression_statement (assignment (identifier_visited) identifier_visited (list (identifier_widgetObj) identifier_widgetObj )list )assignment )expression_statement (expression_statement (assignment (identifier_wid) identifier_wid (call (attribute (identifier_widgetObj) identifier_widgetObj (identifier_parent) identifier_parent )attribute (argument_list )argument_list )call )assignment )expression_statement (while_statement (comparison_operator (identifier_wid) identifier_wid (identifier_visited) identifier_visited )comparison_operator (block (if_statement (call (identifier_hasattr) identifier_hasattr (argument_list (identifier_wid) identifier_wid (string_'_qteAdmin') string_'_qteAdmin' )argument_list )call (block (return_statement (attribute (attribute (identifier_wid) identifier_wid (identifier__qteAdmin) identifier__qteAdmin )attribute (identifier_qteApplet) identifier_qteApplet )attribute )return_statement )block (elif_clause (comparison_operator (identifier_wid) identifier_wid (None) None )comparison_operator (block (return_statement (None) None )return_statement )block )elif_clause (else_clause (block (expression_statement (call (attribute (identifier_visited) identifier_visited (identifier_append) identifier_append )attribute (argument_list (identifier_wid) identifier_wid )argument_list )call )expression_statement (expression_statement (assignment (identifier_wid) identifier_wid (call (attribute (identifier_wid) identifier_wid (identifier_parent) identifier_parent )attribute (argument_list )argument_list )call )assignment )expression_statement )block )else_clause )if_statement )block )while_statement (return_statement (None) None )return_statement )block )function_definition )module
Return the parent applet of ``widgetObj``. |Args| * ``widgetObj`` (**QWidget**): widget (if any) for which the containing applet is requested. |Returns| * **QtmacsApplet**: the applet containing ``widgetObj`` or **None**. |Raises| * **None**
(module (function_definition (function_name_write_without_mac) function_name_write_without_mac (parameters (identifier_self) identifier_self (identifier_data) identifier_data (identifier_block) identifier_block )parameters (block (assert_statement (boolean_operator (comparison_operator (call (identifier_len) identifier_len (argument_list (identifier_data) identifier_data )argument_list )call (integer_16) integer_16 )comparison_operator (comparison_operator (call (identifier_type) identifier_type (argument_list (identifier_block) identifier_block )argument_list )call (identifier_int) identifier_int )comparison_operator )boolean_operator )assert_statement (expression_statement (call (attribute (identifier_log) identifier_log (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_"write 1 block without mac") string_"write 1 block without mac" (identifier_format) identifier_format )attribute (argument_list )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_sc_list) identifier_sc_list (list (call (attribute (identifier_tt3) identifier_tt3 (identifier_ServiceCode) identifier_ServiceCode )attribute (argument_list (integer_0) integer_0 (integer_0b001001) integer_0b001001 )argument_list )call )list )assignment )expression_statement (expression_statement (assignment (identifier_bc_list) identifier_bc_list (list (call (attribute (identifier_tt3) identifier_tt3 (identifier_BlockCode) identifier_BlockCode )attribute (argument_list (identifier_block) identifier_block )argument_list )call )list )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_write_without_encryption) identifier_write_without_encryption )attribute (argument_list (identifier_sc_list) identifier_sc_list (identifier_bc_list) identifier_bc_list (identifier_data) identifier_data )argument_list )call )expression_statement )block )function_definition )module
Write a data block without integrity check. This is the standard write method for a FeliCa Lite. The 16-byte string or bytearray *data* is written to the numbered *block* in service 0x0009 (NDEF write service). :: data = bytearray(range(16)) # 0x00, 0x01, ... 0x0F try: tag.write_without_mac(data, 5) # write block 5 except nfc.tag.TagCommandError: print("something went wrong") Tag command errors raise :exc:`~nfc.tag.TagCommandError`.
(module (function_definition (function_name__umask) function_name__umask (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (attribute (identifier_self) identifier_self (identifier_filesystem) identifier_filesystem )attribute (identifier_is_windows_fs) identifier_is_windows_fs )attribute (block (return_statement (integer_0) integer_0 )return_statement )block )if_statement (if_statement (comparison_operator (attribute (identifier_sys) identifier_sys (identifier_platform) identifier_platform )attribute (string_'win32') string_'win32' )comparison_operator (block (return_statement (integer_0o002) integer_0o002 )return_statement )block (else_clause (block (expression_statement (assignment (identifier_mask) identifier_mask (call (attribute (identifier_os) identifier_os (identifier_umask) identifier_umask )attribute (argument_list (integer_0) integer_0 )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_os) identifier_os (identifier_umask) identifier_umask )attribute (argument_list (identifier_mask) identifier_mask )argument_list )call )expression_statement (return_statement (identifier_mask) identifier_mask )return_statement )block )else_clause )if_statement )block )function_definition )module
Return the current umask.
(module (function_definition (function_name__SetPath) function_name__SetPath (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_old_path) identifier_old_path (attribute (identifier_self) identifier_self (identifier__path) identifier__path )attribute )assignment )expression_statement (if_statement (boolean_operator (identifier_old_path) identifier_old_path (not_operator (call (attribute (identifier_io_wrapper) identifier_io_wrapper (identifier_IsCloudPath) identifier_IsCloudPath )attribute (argument_list (identifier_old_path) identifier_old_path )argument_list )call )not_operator )boolean_operator (block (try_statement (block (expression_statement (assignment (identifier_size) identifier_size (attribute (call (attribute (attribute (attribute (identifier_tf) identifier_tf (identifier_io) identifier_io )attribute (identifier_gfile) identifier_gfile )attribute (identifier_stat) identifier_stat )attribute (argument_list (identifier_old_path) identifier_old_path )argument_list )call (identifier_length) identifier_length )attribute )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_'Setting latest size of %s to %d') string_'Setting latest size of %s to %d' (identifier_old_path) identifier_old_path (identifier_size) identifier_size )argument_list )call )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__finalized_sizes) identifier__finalized_sizes )attribute (identifier_old_path) identifier_old_path )subscript (identifier_size) identifier_size )assignment )expression_statement )block (except_clause (as_pattern (attribute (attribute (identifier_tf) identifier_tf (identifier_errors) identifier_errors )attribute (identifier_OpError) identifier_OpError )attribute (as_pattern_target (identifier_e) identifier_e )as_pattern_target )as_pattern (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_error) identifier_error )attribute (argument_list (string_'Unable to get size of %s: %s') string_'Unable to get size of %s: %s' (identifier_old_path) identifier_old_path (identifier_e) identifier_e )argument_list )call )expression_statement )block )except_clause )try_statement )block )if_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__path) identifier__path )attribute (identifier_path) identifier_path )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__loader) identifier__loader )attribute (call (attribute (identifier_self) identifier_self (identifier__loader_factory) identifier__loader_factory )attribute (argument_list (identifier_path) identifier_path )argument_list )call )assignment )expression_statement )block )function_definition )module
Sets the current path to watch for new events. This also records the size of the old path, if any. If the size can't be found, an error is logged. Args: path: The full path of the file to watch.
(module (function_definition (function_name_plot_vxx) function_name_plot_vxx (parameters (identifier_self) identifier_self (default_parameter (identifier_colorbar) identifier_colorbar (True) True )default_parameter (default_parameter (identifier_cb_orientation) identifier_cb_orientation (string_'vertical') string_'vertical' )default_parameter (default_parameter (identifier_cb_label) identifier_cb_label (None) None )default_parameter (default_parameter (identifier_ax) identifier_ax (None) None )default_parameter (default_parameter (identifier_show) identifier_show (True) True )default_parameter (default_parameter (identifier_fname) identifier_fname (None) None )default_parameter (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (comparison_operator (identifier_cb_label) identifier_cb_label (None) None )comparison_operator (block (expression_statement (assignment (identifier_cb_label) identifier_cb_label (attribute (identifier_self) identifier_self (identifier__vxx_label) identifier__vxx_label )attribute )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_ax) identifier_ax (None) None )comparison_operator (block (expression_statement (assignment (pattern_list (identifier_fig) identifier_fig (identifier_axes) identifier_axes )pattern_list (call (attribute (attribute (identifier_self) identifier_self (identifier_vxx) identifier_vxx )attribute (identifier_plot) identifier_plot )attribute (argument_list (keyword_argument (identifier_colorbar) identifier_colorbar (identifier_colorbar) identifier_colorbar )keyword_argument (keyword_argument (identifier_cb_orientation) identifier_cb_orientation (identifier_cb_orientation) identifier_cb_orientation )keyword_argument (keyword_argument (identifier_cb_label) identifier_cb_label (identifier_cb_label) identifier_cb_label )keyword_argument (keyword_argument (identifier_show) identifier_show (False) False )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (if_statement (identifier_show) identifier_show (block (expression_statement (call (attribute (identifier_fig) identifier_fig (identifier_show) identifier_show )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_fname) identifier_fname (None) None )comparison_operator (block (expression_statement (call (attribute (identifier_fig) identifier_fig (identifier_savefig) identifier_savefig )attribute (argument_list (identifier_fname) identifier_fname )argument_list )call )expression_statement )block )if_statement (return_statement (expression_list (identifier_fig) identifier_fig (identifier_axes) identifier_axes )expression_list )return_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_vxx) identifier_vxx )attribute (identifier_plot) identifier_plot )attribute (argument_list (keyword_argument (identifier_colorbar) identifier_colorbar (identifier_colorbar) identifier_colorbar )keyword_argument (keyword_argument (identifier_cb_orientation) identifier_cb_orientation (identifier_cb_orientation) identifier_cb_orientation )keyword_argument (keyword_argument (identifier_cb_label) identifier_cb_label (identifier_cb_label) identifier_cb_label )keyword_argument (keyword_argument (identifier_ax) identifier_ax (identifier_ax) identifier_ax )keyword_argument (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Plot the Vxx component of the tensor. Usage ----- x.plot_vxx([tick_interval, xlabel, ylabel, ax, colorbar, cb_orientation, cb_label, show, fname]) Parameters ---------- tick_interval : list or tuple, optional, default = [30, 30] Intervals to use when plotting the x and y ticks. If set to None, ticks will not be plotted. xlabel : str, optional, default = 'longitude' Label for the longitude axis. ylabel : str, optional, default = 'latitude' Label for the latitude axis. ax : matplotlib axes object, optional, default = None A single matplotlib axes object where the plot will appear. colorbar : bool, optional, default = False If True, plot a colorbar. cb_orientation : str, optional, default = 'vertical' Orientation of the colorbar: either 'vertical' or 'horizontal'. cb_label : str, optional, default = '$V_{xx}$' Text label for the colorbar.. show : bool, optional, default = True If True, plot the image to the screen. fname : str, optional, default = None If present, and if axes is not specified, save the image to the specified file. kwargs : optional Keyword arguements that will be sent to the SHGrid.plot() and plt.imshow() methods.
(module (function_definition (function_name_register_host) function_name_register_host (parameters )parameters (block (expression_statement (call (attribute (attribute (identifier_pyblish) identifier_pyblish (identifier_api) identifier_api )attribute (identifier_register_host) identifier_register_host )attribute (argument_list (string_"hython") string_"hython" )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_pyblish) identifier_pyblish (identifier_api) identifier_api )attribute (identifier_register_host) identifier_register_host )attribute (argument_list (string_"hpython") string_"hpython" )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_pyblish) identifier_pyblish (identifier_api) identifier_api )attribute (identifier_register_host) identifier_register_host )attribute (argument_list (string_"houdini") string_"houdini" )argument_list )call )expression_statement )block )function_definition )module
Register supported hosts
(module (function_definition (function_name_run) function_name_run (parameters (typed_parameter (identifier_project) identifier_project (type (string_'projects.Project') string_'projects.Project' )type )typed_parameter (typed_parameter (identifier_step) identifier_step (type (string_'projects.ProjectStep') string_'projects.ProjectStep' )type )typed_parameter )parameters (type (identifier_dict) identifier_dict )type (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open (argument_list (attribute (identifier_step) identifier_step (identifier_source_path) identifier_source_path )attribute (string_'r') string_'r' )argument_list )call (as_pattern_target (identifier_f) identifier_f )as_pattern_target )as_pattern )with_item )with_clause (block (expression_statement (assignment (identifier_code) identifier_code (call (attribute (identifier_f) identifier_f (identifier_read) identifier_read )attribute (argument_list )argument_list )call )assignment )expression_statement )block )with_statement (try_statement (block (expression_statement (call (attribute (attribute (identifier_cauldron) identifier_cauldron (identifier_display) identifier_display )attribute (identifier_markdown) identifier_markdown )attribute (argument_list (identifier_code) identifier_code (dictionary_splat (call (attribute (attribute (identifier_project) identifier_project (identifier_shared) identifier_shared )attribute (identifier_fetch) identifier_fetch )attribute (argument_list (None) None )argument_list )call )dictionary_splat )argument_list )call )expression_statement (return_statement (dictionary (pair (string_'success') string_'success' (True) True )pair )dictionary )return_statement )block (except_clause (as_pattern (identifier_Exception) identifier_Exception (as_pattern_target (identifier_err) identifier_err )as_pattern_target )as_pattern (block (return_statement (call (identifier_dict) identifier_dict (argument_list (keyword_argument (identifier_success) identifier_success (False) False )keyword_argument (keyword_argument (identifier_html_message) identifier_html_message (call (attribute (identifier_templating) identifier_templating (identifier_render_template) identifier_render_template )attribute (argument_list (string_'markdown-error.html') string_'markdown-error.html' (keyword_argument (identifier_error) identifier_error (identifier_err) identifier_err )keyword_argument )argument_list )call )keyword_argument )argument_list )call )return_statement )block )except_clause )try_statement )block )function_definition )module
Runs the markdown file and renders the contents to the notebook display :param project: :param step: :return: A run response dictionary containing
(module (function_definition (function_name_parse) function_name_parse (parameters (identifier_input) identifier_input (typed_default_parameter (identifier_identifier) identifier_identifier (type (identifier_str) identifier_str )type (None) None )typed_default_parameter (default_parameter (identifier_use_cache) identifier_use_cache (False) False )default_parameter (default_parameter (identifier_clear_cache) identifier_clear_cache (True) True )default_parameter (default_parameter (identifier_pattern) identifier_pattern (string_"*.qface") string_"*.qface" )default_parameter (default_parameter (identifier_profile) identifier_profile (attribute (identifier_EProfile) identifier_EProfile (identifier_FULL) identifier_FULL )attribute )default_parameter )parameters (block (expression_statement (assignment (identifier_inputs) identifier_inputs (conditional_expression (identifier_input) identifier_input (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_input) identifier_input (tuple (identifier_list) identifier_list (identifier_tuple) identifier_tuple )tuple )argument_list )call (list (identifier_input) identifier_input )list )conditional_expression )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (call (attribute (string_'parse input={0}') string_'parse input={0}' (identifier_format) identifier_format )attribute (argument_list (identifier_inputs) identifier_inputs )argument_list )call )argument_list )call )expression_statement (expression_statement (assignment (identifier_identifier) identifier_identifier (conditional_expression (string_'system') string_'system' (not_operator (identifier_identifier) identifier_identifier )not_operator (identifier_identifier) identifier_identifier )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_system) identifier_system (call (identifier_System) identifier_System (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_cache) identifier_cache (None) None )assignment )expression_statement (if_statement (identifier_use_cache) identifier_use_cache (block (expression_statement (assignment (identifier_cache) identifier_cache (call (attribute (identifier_shelve) identifier_shelve (identifier_open) identifier_open )attribute (argument_list (string_'qface.cache') string_'qface.cache' )argument_list )call )assignment )expression_statement (if_statement (boolean_operator (comparison_operator (identifier_identifier) identifier_identifier (identifier_cache) identifier_cache )comparison_operator (identifier_clear_cache) identifier_clear_cache )boolean_operator (block (delete_statement (subscript (identifier_cache) identifier_cache (identifier_identifier) identifier_identifier )subscript )delete_statement )block )if_statement (if_statement (comparison_operator (identifier_identifier) identifier_identifier (identifier_cache) identifier_cache )comparison_operator (block (expression_statement (assignment (identifier_system) identifier_system (subscript (identifier_cache) identifier_cache (identifier_identifier) identifier_identifier )subscript )assignment )expression_statement )block )if_statement )block )if_statement (for_statement (identifier_input) identifier_input (identifier_inputs) identifier_inputs (block (expression_statement (assignment (identifier_path) identifier_path (binary_operator (call (attribute (identifier_Path) identifier_Path (identifier_getcwd) identifier_getcwd )attribute (argument_list )argument_list )call (call (identifier_str) identifier_str (argument_list (identifier_input) identifier_input )argument_list )call )binary_operator )assignment )expression_statement (if_statement (call (attribute (identifier_path) identifier_path (identifier_isfile) identifier_isfile )attribute (argument_list )argument_list )call (block (expression_statement (call (attribute (identifier_FileSystem) identifier_FileSystem (identifier_parse_document) identifier_parse_document )attribute (argument_list (identifier_path) identifier_path (identifier_system) identifier_system )argument_list )call )expression_statement )block (else_clause (block (for_statement (identifier_document) identifier_document (call (attribute (identifier_path) identifier_path (identifier_walkfiles) identifier_walkfiles )attribute (argument_list (identifier_pattern) identifier_pattern )argument_list )call (block (expression_statement (call (attribute (identifier_FileSystem) identifier_FileSystem (identifier_parse_document) identifier_parse_document )attribute (argument_list (identifier_document) identifier_document (identifier_system) identifier_system )argument_list )call )expression_statement )block )for_statement )block )else_clause )if_statement )block )for_statement (if_statement (identifier_use_cache) identifier_use_cache (block (expression_statement (assignment (subscript (identifier_cache) identifier_cache (identifier_identifier) identifier_identifier )subscript (identifier_system) identifier_system )assignment )expression_statement )block )if_statement (return_statement (identifier_system) identifier_system )return_statement )block )function_definition )module
Input can be either a file or directory or a list of files or directory. A directory will be parsed recursively. The function returns the resulting system. Stores the result of the run in the domain cache named after the identifier. :param path: directory to parse :param identifier: identifies the parse run. Used to name the cache :param clear_cache: clears the domain cache (defaults to true)
(module (function_definition (function_name_can_process) function_name_can_process (parameters (identifier_self) identifier_self (identifier_statement) identifier_statement )parameters (block (expression_statement (assignment (identifier_response) identifier_response (call (attribute (identifier_self) identifier_self (identifier_process) identifier_process )attribute (argument_list (identifier_statement) identifier_statement )argument_list )call )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier_cache) identifier_cache )attribute (attribute (identifier_statement) identifier_statement (identifier_text) identifier_text )attribute )subscript (identifier_response) identifier_response )assignment )expression_statement (return_statement (comparison_operator (attribute (identifier_response) identifier_response (identifier_confidence) identifier_confidence )attribute (integer_1) integer_1 )comparison_operator )return_statement )block )function_definition )module
Determines whether it is appropriate for this adapter to respond to the user input.
(module (function_definition (function_name_qr) function_name_qr (parameters (identifier_self) identifier_self (identifier_text) identifier_text )parameters (block (expression_statement (assignment (identifier_qr_code) identifier_qr_code (call (attribute (identifier_qrcode) identifier_qrcode (identifier_QRCode) identifier_QRCode )attribute (argument_list (keyword_argument (identifier_version) identifier_version (integer_4) integer_4 )keyword_argument (keyword_argument (identifier_box_size) identifier_box_size (integer_4) integer_4 )keyword_argument (keyword_argument (identifier_border) identifier_border (integer_1) integer_1 )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_qr_code) identifier_qr_code (identifier_add_data) identifier_add_data )attribute (argument_list (identifier_text) identifier_text )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_qr_code) identifier_qr_code (identifier_make) identifier_make )attribute (argument_list (keyword_argument (identifier_fit) identifier_fit (True) True )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_qr_img) identifier_qr_img (call (attribute (identifier_qr_code) identifier_qr_code (identifier_make_image) identifier_make_image )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_im) identifier_im (call (attribute (attribute (identifier_qr_img) identifier_qr_img (identifier__img) identifier__img )attribute (identifier_convert) identifier_convert )attribute (argument_list (string_"RGB") string_"RGB" )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__convert_image) identifier__convert_image )attribute (argument_list (identifier_im) identifier_im )argument_list )call )expression_statement )block )function_definition )module
Print QR Code for the provided string
(module (function_definition (function_name_xpath) function_name_xpath (parameters (identifier_self) identifier_self (identifier_xpath) identifier_xpath )parameters (block (return_statement (list_comprehension (call (attribute (call (attribute (identifier_self) identifier_self (identifier_get_node_factory) identifier_get_node_factory )attribute (argument_list )argument_list )call (identifier_create) identifier_create )attribute (argument_list (identifier_node_id) identifier_node_id )argument_list )call (for_in_clause (identifier_node_id) identifier_node_id (call (attribute (call (attribute (identifier_self) identifier_self (identifier__get_xpath_ids) identifier__get_xpath_ids )attribute (argument_list (identifier_xpath) identifier_xpath )argument_list )call (identifier_split) identifier_split )attribute (argument_list (string_",") string_"," )argument_list )call )for_in_clause (if_clause (identifier_node_id) identifier_node_id )if_clause )list_comprehension )return_statement )block )function_definition )module
Finds another node by XPath originating at the current node.
(module (function_definition (function_name_grid_select) function_name_grid_select (parameters (identifier_self) identifier_self (identifier_grid) identifier_grid (default_parameter (identifier_clear_selection) identifier_clear_selection (True) True )default_parameter )parameters (block (if_statement (identifier_clear_selection) identifier_clear_selection (block (expression_statement (call (attribute (identifier_grid) identifier_grid (identifier_ClearSelection) identifier_ClearSelection )attribute (argument_list )argument_list )call )expression_statement )block )if_statement (for_statement (tuple_pattern (identifier_tl) identifier_tl (identifier_br) identifier_br )tuple_pattern (call (identifier_zip) identifier_zip (argument_list (attribute (identifier_self) identifier_self (identifier_block_tl) identifier_block_tl )attribute (attribute (identifier_self) identifier_self (identifier_block_br) identifier_block_br )attribute )argument_list )call (block (expression_statement (call (attribute (identifier_grid) identifier_grid (identifier_SelectBlock) identifier_SelectBlock )attribute (argument_list (subscript (identifier_tl) identifier_tl (integer_0) integer_0 )subscript (subscript (identifier_tl) identifier_tl (integer_1) integer_1 )subscript (subscript (identifier_br) identifier_br (integer_0) integer_0 )subscript (subscript (identifier_br) identifier_br (integer_1) integer_1 )subscript (keyword_argument (identifier_addToSelected) identifier_addToSelected (True) True )keyword_argument )argument_list )call )expression_statement )block )for_statement (for_statement (identifier_row) identifier_row (attribute (identifier_self) identifier_self (identifier_rows) identifier_rows )attribute (block (expression_statement (call (attribute (identifier_grid) identifier_grid (identifier_SelectRow) identifier_SelectRow )attribute (argument_list (identifier_row) identifier_row (keyword_argument (identifier_addToSelected) identifier_addToSelected (True) True )keyword_argument )argument_list )call )expression_statement )block )for_statement (for_statement (identifier_col) identifier_col (attribute (identifier_self) identifier_self (identifier_cols) identifier_cols )attribute (block (expression_statement (call (attribute (identifier_grid) identifier_grid (identifier_SelectCol) identifier_SelectCol )attribute (argument_list (identifier_col) identifier_col (keyword_argument (identifier_addToSelected) identifier_addToSelected (True) True )keyword_argument )argument_list )call )expression_statement )block )for_statement (for_statement (identifier_cell) identifier_cell (attribute (identifier_self) identifier_self (identifier_cells) identifier_cells )attribute (block (expression_statement (call (attribute (identifier_grid) identifier_grid (identifier_SelectBlock) identifier_SelectBlock )attribute (argument_list (subscript (identifier_cell) identifier_cell (integer_0) integer_0 )subscript (subscript (identifier_cell) identifier_cell (integer_1) integer_1 )subscript (subscript (identifier_cell) identifier_cell (integer_0) integer_0 )subscript (subscript (identifier_cell) identifier_cell (integer_1) integer_1 )subscript (keyword_argument (identifier_addToSelected) identifier_addToSelected (True) True )keyword_argument )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Selects cells of grid with selection content
(module (function_definition (function_name_getSuccessors) function_name_getSuccessors (parameters (identifier_jobGraph) identifier_jobGraph (identifier_alreadySeenSuccessors) identifier_alreadySeenSuccessors (identifier_jobStore) identifier_jobStore )parameters (block (expression_statement (assignment (identifier_successors) identifier_successors (call (identifier_set) identifier_set (argument_list )argument_list )call )assignment )expression_statement (function_definition (function_name_successorRecursion) function_name_successorRecursion (parameters (identifier_jobGraph) identifier_jobGraph )parameters (block (for_statement (identifier_successorList) identifier_successorList (attribute (identifier_jobGraph) identifier_jobGraph (identifier_stack) identifier_stack )attribute (block (for_statement (identifier_successorJobNode) identifier_successorJobNode (identifier_successorList) identifier_successorList (block (if_statement (comparison_operator (attribute (identifier_successorJobNode) identifier_successorJobNode (identifier_jobStoreID) identifier_jobStoreID )attribute (identifier_alreadySeenSuccessors) identifier_alreadySeenSuccessors )comparison_operator (block (expression_statement (call (attribute (identifier_successors) identifier_successors (identifier_add) identifier_add )attribute (argument_list (attribute (identifier_successorJobNode) identifier_successorJobNode (identifier_jobStoreID) identifier_jobStoreID )attribute )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_alreadySeenSuccessors) identifier_alreadySeenSuccessors (identifier_add) identifier_add )attribute (argument_list (attribute (identifier_successorJobNode) identifier_successorJobNode (identifier_jobStoreID) identifier_jobStoreID )attribute )argument_list )call )expression_statement (if_statement (call (attribute (identifier_jobStore) identifier_jobStore (identifier_exists) identifier_exists )attribute (argument_list (attribute (identifier_successorJobNode) identifier_successorJobNode (identifier_jobStoreID) identifier_jobStoreID )attribute )argument_list )call (block (expression_statement (call (identifier_successorRecursion) identifier_successorRecursion (argument_list (call (attribute (identifier_jobStore) identifier_jobStore (identifier_load) identifier_load )attribute (argument_list (attribute (identifier_successorJobNode) identifier_successorJobNode (identifier_jobStoreID) identifier_jobStoreID )attribute )argument_list )call )argument_list )call )expression_statement )block )if_statement )block )if_statement )block )for_statement )block )for_statement )block )function_definition (expression_statement (call (identifier_successorRecursion) identifier_successorRecursion (argument_list (identifier_jobGraph) identifier_jobGraph )argument_list )call )expression_statement (return_statement (identifier_successors) identifier_successors )return_statement )block )function_definition )module
Gets successors of the given job by walking the job graph recursively. Any successor in alreadySeenSuccessors is ignored and not traversed. Returns the set of found successors. This set is added to alreadySeenSuccessors.
(module (function_definition (function_name_compare_version) function_name_compare_version (parameters (identifier_a) identifier_a (identifier_b) identifier_b )parameters (block (expression_statement (assignment (identifier_aa) identifier_aa (call (attribute (identifier_string) identifier_string (identifier_split) identifier_split )attribute (argument_list (identifier_a) identifier_a (string_".") string_"." )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_bb) identifier_bb (call (attribute (identifier_string) identifier_string (identifier_split) identifier_split )attribute (argument_list (identifier_b) identifier_b (string_".") string_"." )argument_list )call )assignment )expression_statement (for_statement (identifier_i) identifier_i (call (identifier_range) identifier_range (argument_list (integer_0) integer_0 (integer_4) integer_4 )argument_list )call (block (if_statement (comparison_operator (subscript (identifier_aa) identifier_aa (identifier_i) identifier_i )subscript (subscript (identifier_bb) identifier_bb (identifier_i) identifier_i )subscript )comparison_operator (block (return_statement (call (identifier_cmp) identifier_cmp (argument_list (call (identifier_int) identifier_int (argument_list (subscript (identifier_aa) identifier_aa (identifier_i) identifier_i )subscript )argument_list )call (call (identifier_int) identifier_int (argument_list (subscript (identifier_bb) identifier_bb (identifier_i) identifier_i )subscript )argument_list )call )argument_list )call )return_statement )block )if_statement )block )for_statement (return_statement (integer_0) integer_0 )return_statement )block )function_definition )module
Compare two version number strings of the form W.X.Y.Z. The numbers are compared most-significant to least-significant. For example, 12.345.67.89 > 2.987.88.99. Args: a: First version number string to compare b: Second version number string to compare Returns: 0 if the numbers are identical, a positive number if 'a' is larger, and a negative number if 'b' is larger.
(module (function_definition (function_name_sort_filenames) function_name_sort_filenames (parameters (identifier_filenames) identifier_filenames )parameters (block (expression_statement (assignment (identifier_basenames) identifier_basenames (list_comprehension (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_basename) identifier_basename )attribute (argument_list (identifier_x) identifier_x )argument_list )call (for_in_clause (identifier_x) identifier_x (identifier_filenames) identifier_filenames )for_in_clause )list_comprehension )assignment )expression_statement (expression_statement (assignment (identifier_indexes) identifier_indexes (list_comprehension (subscript (identifier_i) identifier_i (integer_0) integer_0 )subscript (for_in_clause (identifier_i) identifier_i (call (identifier_sorted) identifier_sorted (argument_list (call (identifier_enumerate) identifier_enumerate (argument_list (identifier_basenames) identifier_basenames )argument_list )call (keyword_argument (identifier_key) identifier_key (lambda (lambda_parameters (identifier_x) identifier_x )lambda_parameters (subscript (identifier_x) identifier_x (integer_1) integer_1 )subscript )lambda )keyword_argument )argument_list )call )for_in_clause )list_comprehension )assignment )expression_statement (return_statement (list_comprehension (subscript (identifier_filenames) identifier_filenames (identifier_x) identifier_x )subscript (for_in_clause (identifier_x) identifier_x (identifier_indexes) identifier_indexes )for_in_clause )list_comprehension )return_statement )block )function_definition )module
sort a list of files by filename only, ignoring the directory names
(module (function_definition (function_name_save_ready) function_name_save_ready (parameters (identifier_self) identifier_self (identifier_service_name) identifier_service_name )parameters (block (expression_statement (call (attribute (identifier_self) identifier_self (identifier__load_ready_file) identifier__load_ready_file )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier__ready) identifier__ready )attribute (identifier_add) identifier_add )attribute (argument_list (identifier_service_name) identifier_service_name )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__save_ready_file) identifier__save_ready_file )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Save an indicator that the given service is now data_ready.
(module (function_definition (function_name__invite) function_name__invite (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_method) identifier_method (identifier_email) identifier_email (identifier_uuid) identifier_uuid (identifier_event) identifier_event (default_parameter (identifier_password) identifier_password (string_"") string_"" )default_parameter )parameters (block (expression_statement (assignment (identifier_props) identifier_props (dictionary (pair (string_'uuid') string_'uuid' (call (identifier_std_uuid) identifier_std_uuid (argument_list )argument_list )call )pair (pair (string_'status') string_'status' (string_'Open') string_'Open' )pair (pair (string_'name') string_'name' (identifier_name) identifier_name )pair (pair (string_'method') string_'method' (identifier_method) identifier_method )pair (pair (string_'email') string_'email' (identifier_email) identifier_email )pair (pair (string_'password') string_'password' (identifier_password) identifier_password )pair (pair (string_'timestamp') string_'timestamp' (call (identifier_std_now) identifier_std_now (argument_list )argument_list )call )pair )dictionary )assignment )expression_statement (expression_statement (assignment (identifier_enrollment) identifier_enrollment (call (subscript (identifier_objectmodels) identifier_objectmodels (string_'enrollment') string_'enrollment' )subscript (argument_list (identifier_props) identifier_props )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_enrollment) identifier_enrollment (identifier_save) identifier_save )attribute (argument_list )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_log) identifier_log )attribute (argument_list (string_'Enrollment stored') string_'Enrollment stored' (keyword_argument (identifier_lvl) identifier_lvl (identifier_debug) identifier_debug )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier__send_invitation) identifier__send_invitation )attribute (argument_list (identifier_enrollment) identifier_enrollment (identifier_event) identifier_event )argument_list )call )expression_statement (expression_statement (assignment (identifier_packet) identifier_packet (dictionary (pair (string_'component') string_'component' (string_'hfos.enrol.enrolmanager') string_'hfos.enrol.enrolmanager' )pair (pair (string_'action') string_'action' (string_'invite') string_'invite' )pair (pair (string_'data') string_'data' (list (True) True (identifier_email) identifier_email )list )pair )dictionary )assignment )expression_statement (expression_statement (call (attribute (identifier_self) identifier_self (identifier_fireEvent) identifier_fireEvent )attribute (argument_list (call (identifier_send) identifier_send (argument_list (identifier_uuid) identifier_uuid (identifier_packet) identifier_packet )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
Actually invite a given user
(module (function_definition (function_name_bin_hex_type) function_name_bin_hex_type (parameters (identifier_arg) identifier_arg )parameters (block (if_statement (call (attribute (identifier_re) identifier_re (identifier_match) identifier_match )attribute (argument_list (string_r'^[a-f0-9]{2}(:[a-f0-9]{2})+$') string_r'^[a-f0-9]{2}(:[a-f0-9]{2})+$' (identifier_arg) identifier_arg (attribute (identifier_re) identifier_re (identifier_I) identifier_I )attribute )argument_list )call (block (expression_statement (assignment (identifier_arg) identifier_arg (call (attribute (identifier_arg) identifier_arg (identifier_replace) identifier_replace )attribute (argument_list (string_':') string_':' (string_'') string_'' )argument_list )call )assignment )expression_statement )block (elif_clause (call (attribute (identifier_re) identifier_re (identifier_match) identifier_match )attribute (argument_list (string_r'^(\\x[a-f0-9]{2})+$') string_r'^(\\x[a-f0-9]{2})+$' (identifier_arg) identifier_arg (attribute (identifier_re) identifier_re (identifier_I) identifier_I )attribute )argument_list )call (block (expression_statement (assignment (identifier_arg) identifier_arg (call (attribute (identifier_arg) identifier_arg (identifier_replace) identifier_replace )attribute (argument_list (string_'\\x') string_'\\x' (string_'') string_'' )argument_list )call )assignment )expression_statement )block )elif_clause )if_statement (try_statement (block (expression_statement (assignment (identifier_arg) identifier_arg (call (attribute (identifier_binascii) identifier_binascii (identifier_a2b_hex) identifier_a2b_hex )attribute (argument_list (identifier_arg) identifier_arg )argument_list )call )assignment )expression_statement )block (except_clause (tuple (attribute (identifier_binascii) identifier_binascii (identifier_Error) identifier_Error )attribute (identifier_TypeError) identifier_TypeError )tuple (block (raise_statement (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentTypeError) identifier_ArgumentTypeError )attribute (argument_list (call (attribute (string_"{0} is invalid hex data") string_"{0} is invalid hex data" (identifier_format) identifier_format )attribute (argument_list (call (identifier_repr) identifier_repr (argument_list (identifier_arg) identifier_arg )argument_list )call )argument_list )call )argument_list )call )raise_statement )block )except_clause )try_statement (return_statement (identifier_arg) identifier_arg )return_statement )block )function_definition )module
An argparse type representing binary data encoded in hex.
(module (function_definition (function_name_makedirs) function_name_makedirs (parameters (identifier_p) identifier_p )parameters (block (try_statement (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_makedirs) identifier_makedirs )attribute (argument_list (identifier_p) identifier_p (attribute (identifier_settings) identifier_settings (identifier_FILE_UPLOAD_PERMISSIONS) identifier_FILE_UPLOAD_PERMISSIONS )attribute )argument_list )call )expression_statement )block (except_clause (identifier_OSError) identifier_OSError (block (if_statement (not_operator (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_isdir) identifier_isdir )attribute (argument_list (identifier_p) identifier_p )argument_list )call )not_operator (block (raise_statement )raise_statement )block )if_statement )block )except_clause )try_statement )block )function_definition )module
A makedirs that avoids a race conditions for multiple processes attempting to create the same directory.
(module (function_definition (function_name_output) function_name_output (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_ElasticsearchTarget) identifier_ElasticsearchTarget (argument_list (keyword_argument (identifier_host) identifier_host (attribute (identifier_self) identifier_self (identifier_host) identifier_host )attribute )keyword_argument (keyword_argument (identifier_port) identifier_port (attribute (identifier_self) identifier_self (identifier_port) identifier_port )attribute )keyword_argument (keyword_argument (identifier_http_auth) identifier_http_auth (attribute (identifier_self) identifier_self (identifier_http_auth) identifier_http_auth )attribute )keyword_argument (keyword_argument (identifier_index) identifier_index (attribute (identifier_self) identifier_self (identifier_index) identifier_index )attribute )keyword_argument (keyword_argument (identifier_doc_type) identifier_doc_type (attribute (identifier_self) identifier_self (identifier_doc_type) identifier_doc_type )attribute )keyword_argument (keyword_argument (identifier_update_id) identifier_update_id (call (attribute (identifier_self) identifier_self (identifier_update_id) identifier_update_id )attribute (argument_list )argument_list )call )keyword_argument (keyword_argument (identifier_marker_index_hist_size) identifier_marker_index_hist_size (attribute (identifier_self) identifier_self (identifier_marker_index_hist_size) identifier_marker_index_hist_size )attribute )keyword_argument (keyword_argument (identifier_timeout) identifier_timeout (attribute (identifier_self) identifier_self (identifier_timeout) identifier_timeout )attribute )keyword_argument (keyword_argument (identifier_extra_elasticsearch_args) identifier_extra_elasticsearch_args (attribute (identifier_self) identifier_self (identifier_extra_elasticsearch_args) identifier_extra_elasticsearch_args )attribute )keyword_argument )argument_list )call )return_statement )block )function_definition )module
Returns a ElasticsearchTarget representing the inserted dataset. Normally you don't override this.
(module (function_definition (function_name_regexpExec) function_name_regexpExec (parameters (identifier_self) identifier_self (identifier_content) identifier_content )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (call (attribute (identifier_libxml2mod) identifier_libxml2mod (identifier_xmlRegexpExec) identifier_xmlRegexpExec )attribute (argument_list (attribute (identifier_self) identifier_self (identifier__o) identifier__o )attribute (identifier_content) identifier_content )argument_list )call )assignment )expression_statement (return_statement (identifier_ret) identifier_ret )return_statement )block )function_definition )module
Check if the regular expression generates the value
(module (function_definition (function_name_path) function_name_path (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_names) identifier_names (list )list )assignment )expression_statement (expression_statement (assignment (identifier_obj) identifier_obj (identifier_self) identifier_self )assignment )expression_statement (while_statement (identifier_obj) identifier_obj (block (expression_statement (call (attribute (identifier_names) identifier_names (identifier_insert) identifier_insert )attribute (argument_list (integer_0) integer_0 (attribute (identifier_obj) identifier_obj (identifier_name) identifier_name )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_obj) identifier_obj (attribute (identifier_obj) identifier_obj (identifier_parent_dir) identifier_parent_dir )attribute )assignment )expression_statement )block )while_statement (expression_statement (assignment (identifier_sep) identifier_sep (call (attribute (attribute (identifier_self) identifier_self (identifier_filesystem) identifier_filesystem )attribute (identifier__path_separator) identifier__path_separator )attribute (argument_list (attribute (identifier_self) identifier_self (identifier_name) identifier_name )attribute )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (subscript (identifier_names) identifier_names (integer_0) integer_0 )subscript (identifier_sep) identifier_sep )comparison_operator (block (expression_statement (call (attribute (identifier_names) identifier_names (identifier_pop) identifier_pop )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (expression_statement (assignment (identifier_dir_path) identifier_dir_path (call (attribute (identifier_sep) identifier_sep (identifier_join) identifier_join )attribute (argument_list (identifier_names) identifier_names )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_is_drive) identifier_is_drive (boolean_operator (boolean_operator (identifier_names) identifier_names (comparison_operator (call (identifier_len) identifier_len (argument_list (subscript (identifier_names) identifier_names (integer_0) integer_0 )subscript )argument_list )call (integer_2) integer_2 )comparison_operator )boolean_operator (comparison_operator (subscript (subscript (identifier_names) identifier_names (integer_0) integer_0 )subscript (integer_1) integer_1 )subscript (string_':') string_':' )comparison_operator )boolean_operator )assignment )expression_statement (if_statement (not_operator (identifier_is_drive) identifier_is_drive )not_operator (block (expression_statement (assignment (identifier_dir_path) identifier_dir_path (binary_operator (identifier_sep) identifier_sep (identifier_dir_path) identifier_dir_path )binary_operator )assignment )expression_statement )block )if_statement )block (else_clause (block (expression_statement (assignment (identifier_dir_path) identifier_dir_path (call (attribute (identifier_sep) identifier_sep (identifier_join) identifier_join )attribute (argument_list (identifier_names) identifier_names )argument_list )call )assignment )expression_statement )block )else_clause )if_statement (expression_statement (assignment (identifier_dir_path) identifier_dir_path (call (attribute (attribute (identifier_self) identifier_self (identifier_filesystem) identifier_filesystem )attribute (identifier_absnormpath) identifier_absnormpath )attribute (argument_list (identifier_dir_path) identifier_dir_path )argument_list )call )assignment )expression_statement (return_statement (identifier_dir_path) identifier_dir_path )return_statement )block )function_definition )module
Return the full path of the current object.
(module (function_definition (function_name__full_path) function_name__full_path (parameters (identifier_self) identifier_self (identifier_path_info) identifier_path_info )parameters (block (expression_statement (assignment (identifier_full_path) identifier_full_path (binary_operator (attribute (identifier_self) identifier_self (identifier_root) identifier_root )attribute (identifier_path_info) identifier_path_info )binary_operator )assignment )expression_statement (if_statement (call (attribute (identifier_path) identifier_path (identifier_exists) identifier_exists )attribute (argument_list (identifier_full_path) identifier_full_path )argument_list )call (block (return_statement (identifier_full_path) identifier_full_path )return_statement )block (else_clause (block (for_statement (identifier_magic) identifier_magic (attribute (identifier_self) identifier_self (identifier_magics) identifier_magics )attribute (block (if_statement (call (attribute (identifier_path) identifier_path (identifier_exists) identifier_exists )attribute (argument_list (call (attribute (identifier_magic) identifier_magic (identifier_new_path) identifier_new_path )attribute (argument_list (identifier_full_path) identifier_full_path )argument_list )call )argument_list )call (block (return_statement (call (attribute (identifier_magic) identifier_magic (identifier_new_path) identifier_new_path )attribute (argument_list (identifier_full_path) identifier_full_path )argument_list )call )return_statement )block )if_statement )block (else_clause (block (return_statement (identifier_full_path) identifier_full_path )return_statement )block )else_clause )for_statement )block )else_clause )if_statement )block )function_definition )module
Return the full path from which to read.
(module (function_definition (function_name_validate) function_name_validate (parameters (identifier_src) identifier_src (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_resolver) identifier_resolver (call (identifier_Resolver) identifier_Resolver (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_validator) identifier_validator (call (identifier_OcrdZipValidator) identifier_OcrdZipValidator (argument_list (identifier_resolver) identifier_resolver (identifier_src) identifier_src )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_report) identifier_report (call (attribute (identifier_validator) identifier_validator (identifier_validate) identifier_validate )attribute (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (identifier_report) identifier_report )argument_list )call )expression_statement (if_statement (not_operator (attribute (identifier_report) identifier_report (identifier_is_valid) identifier_is_valid )attribute )not_operator (block (expression_statement (call (attribute (identifier_sys) identifier_sys (identifier_exit) identifier_exit )attribute (argument_list (integer_1) integer_1 )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Validate OCRD-ZIP SRC must exist an be an OCRD-ZIP, either a ZIP file or a directory.
(module (function_definition (function_name_create_role) function_name_create_role (parameters (list_splat_pattern (identifier__) identifier__ )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (call (identifier_green) identifier_green (argument_list (string_'\nCreating new role:') string_'\nCreating new role:' )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (call (identifier_green) identifier_green (argument_list (binary_operator (string_'-') string_'-' (integer_40) integer_40 )binary_operator )argument_list )call )argument_list )call )expression_statement (with_statement (with_clause (with_item (call (attribute (call (identifier_get_app) identifier_get_app (argument_list )argument_list )call (identifier_app_context) identifier_app_context )attribute (argument_list )argument_list )call )with_item )with_clause (block (expression_statement (assignment (identifier_role) identifier_role (call (identifier_Role) identifier_Role (argument_list (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_result) identifier_result (call (attribute (identifier_role_service) identifier_role_service (identifier_save) identifier_save )attribute (argument_list (identifier_role) identifier_role )argument_list )call )assignment )expression_statement (if_statement (not_operator (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_result) identifier_result (identifier_Role) identifier_Role )argument_list )call )not_operator (block (expression_statement (call (identifier_print_validation_errors) identifier_print_validation_errors (argument_list (identifier_result) identifier_result )argument_list )call )expression_statement )block )if_statement (expression_statement (call (attribute (identifier_click) identifier_click (identifier_echo) identifier_echo )attribute (argument_list (binary_operator (binary_operator (call (identifier_green) identifier_green (argument_list (string_'Created: ') string_'Created: ' )argument_list )call (call (identifier_str) identifier_str (argument_list (identifier_role) identifier_role )argument_list )call )binary_operator (string_'\n') string_'\n' )binary_operator )argument_list )call )expression_statement )block )with_statement )block )function_definition )module
Create user role
(module (function_definition (function_name_spawn) function_name_spawn (parameters (identifier_f) identifier_f )parameters (block (function_definition (function_name_fun) function_name_fun (parameters (identifier_pipe) identifier_pipe (identifier_x) identifier_x )parameters (block (expression_statement (call (attribute (identifier_pipe) identifier_pipe (identifier_send) identifier_send )attribute (argument_list (call (identifier_f) identifier_f (argument_list (identifier_x) identifier_x )argument_list )call )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_pipe) identifier_pipe (identifier_close) identifier_close )attribute (argument_list )argument_list )call )expression_statement )block )function_definition (return_statement (identifier_fun) identifier_fun )return_statement )block )function_definition )module
Function for parallel evaluation of the acquisition function
(module (function_definition (function_name_prj_add_user) function_name_prj_add_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_prj) identifier_cur_prj )attribute )not_operator (block (return_statement )return_statement )block )if_statement (expression_statement (assignment (identifier_dialog) identifier_dialog (call (identifier_UserAdderDialog) identifier_UserAdderDialog (argument_list (keyword_argument (identifier_project) identifier_project (attribute (identifier_self) identifier_self (identifier_cur_prj) identifier_cur_prj )attribute )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_dialog) identifier_dialog (identifier_exec_) identifier_exec_ )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_users) identifier_users (attribute (identifier_dialog) identifier_dialog (identifier_users) identifier_users )attribute )assignment )expression_statement (for_statement (identifier_user) identifier_user (identifier_users) identifier_users (block (expression_statement (assignment (identifier_userdata) identifier_userdata (call (attribute (identifier_djitemdata) identifier_djitemdata (identifier_UserItemData) identifier_UserItemData )attribute (argument_list (identifier_user) identifier_user )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_treemodel) identifier_treemodel (identifier_TreeItem) identifier_TreeItem )attribute (argument_list (identifier_userdata) identifier_userdata (attribute (attribute (identifier_self) identifier_self (identifier_prj_user_model) identifier_prj_user_model )attribute (identifier_root) identifier_root )attribute )argument_list )call )expression_statement )block )for_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_cur_prj) identifier_cur_prj )attribute (identifier_save) identifier_save )attribute (argument_list )argument_list )call )expression_statement )block )function_definition )module
Add more users to the project. :returns: None :rtype: None :raises: None
(module (function_definition (function_name_blend) function_name_blend (parameters (identifier_self) identifier_self (identifier_blend_recipe) identifier_blend_recipe (identifier_join_base) identifier_join_base (identifier_join_blend) identifier_join_blend )parameters (block (assert_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_blend_recipe) identifier_blend_recipe (identifier_Recipe) identifier_Recipe )argument_list )call )assert_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_blend_recipes) identifier_blend_recipes )attribute (identifier_append) identifier_append )attribute (argument_list (identifier_blend_recipe) identifier_blend_recipe )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_blend_types) identifier_blend_types )attribute (identifier_append) identifier_append )attribute (argument_list (string_'inner') string_'inner' )argument_list )call )expression_statement (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_blend_criteria) identifier_blend_criteria )attribute (identifier_append) identifier_append )attribute (argument_list (tuple (identifier_join_base) identifier_join_base (identifier_join_blend) identifier_join_blend )tuple )argument_list )call )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_dirty) identifier_dirty )attribute (True) True )assignment )expression_statement (return_statement (attribute (identifier_self) identifier_self (identifier_recipe) identifier_recipe )attribute )return_statement )block )function_definition )module
Blend a recipe into the base recipe. This performs an inner join of the blend_recipe to the base recipe's SQL.
(module (function_definition (function_name__formatVals) function_name__formatVals (parameters (identifier_self) identifier_self (identifier_val_list) identifier_val_list )parameters (block (expression_statement (assignment (identifier_vals) identifier_vals (list )list )assignment )expression_statement (for_statement (tuple_pattern (identifier_name) identifier_name (identifier_val) identifier_val )tuple_pattern (identifier_val_list) identifier_val_list (block (if_statement (comparison_operator (identifier_val) identifier_val (None) None )comparison_operator (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_val) identifier_val (identifier_float) identifier_float )argument_list )call (block (expression_statement (call (attribute (identifier_vals) identifier_vals (identifier_append) identifier_append )attribute (argument_list (binary_operator (string_"%s.value %f") string_"%s.value %f" (tuple (identifier_name) identifier_name (identifier_val) identifier_val )tuple )binary_operator )argument_list )call )expression_statement )block (else_clause (block (expression_statement (call (attribute (identifier_vals) identifier_vals (identifier_append) identifier_append )attribute (argument_list (binary_operator (string_"%s.value %s") string_"%s.value %s" (tuple (identifier_name) identifier_name (identifier_val) identifier_val )tuple )binary_operator )argument_list )call )expression_statement )block )else_clause )if_statement )block (else_clause (block (expression_statement (call (attribute (identifier_vals) identifier_vals (identifier_append) identifier_append )attribute (argument_list (binary_operator (string_"%s.value U") string_"%s.value U" (tuple (identifier_name) identifier_name )tuple )binary_operator )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (return_statement (call (attribute (string_"\n") string_"\n" (identifier_join) identifier_join )attribute (argument_list (identifier_vals) identifier_vals )argument_list )call )return_statement )block )function_definition )module
Formats value list from Munin Graph and returns multi-line value entries for the plugin fetch cycle. @param val_list: List of name-value pairs. @return: Multi-line text.
(module (function_definition (function_name_example_generator) function_name_example_generator (parameters (identifier_all_files) identifier_all_files (identifier_urls_path) identifier_urls_path (identifier_sum_token) identifier_sum_token )parameters (block (function_definition (function_name_fix_run_on_sents) function_name_fix_run_on_sents (parameters (identifier_line) identifier_line )parameters (block (if_statement (comparison_operator (string_u"@highlight") string_u"@highlight" (identifier_line) identifier_line )comparison_operator (block (return_statement (identifier_line) identifier_line )return_statement )block )if_statement (if_statement (not_operator (identifier_line) identifier_line )not_operator (block (return_statement (identifier_line) identifier_line )return_statement )block )if_statement (if_statement (comparison_operator (subscript (identifier_line) identifier_line (unary_operator (integer_1) integer_1 )unary_operator )subscript (identifier_END_TOKENS) identifier_END_TOKENS )comparison_operator (block (return_statement (identifier_line) identifier_line )return_statement )block )if_statement (return_statement (binary_operator (identifier_line) identifier_line (string_u".") string_u"." )binary_operator )return_statement )block )function_definition (expression_statement (assignment (identifier_filelist) identifier_filelist (call (identifier_example_splits) identifier_example_splits (argument_list (identifier_urls_path) identifier_urls_path (identifier_all_files) identifier_all_files )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_story_summary_split_token) identifier_story_summary_split_token (conditional_expression (string_u" <summary> ") string_u" <summary> " (identifier_sum_token) identifier_sum_token (string_" ") string_" " )conditional_expression )assignment )expression_statement (for_statement (identifier_story_file) identifier_story_file (identifier_filelist) identifier_filelist (block (expression_statement (assignment (identifier_story) identifier_story (list )list )assignment )expression_statement (expression_statement (assignment (identifier_summary) identifier_summary (list )list )assignment )expression_statement (expression_statement (assignment (identifier_reading_highlights) identifier_reading_highlights (False) False )assignment )expression_statement (for_statement (identifier_line) identifier_line (call (attribute (attribute (identifier_tf) identifier_tf (identifier_gfile) identifier_gfile )attribute (identifier_Open) identifier_Open )attribute (argument_list (identifier_story_file) identifier_story_file (string_"rb") string_"rb" )argument_list )call (block (expression_statement (assignment (identifier_line) identifier_line (call (attribute (identifier_text_encoder) identifier_text_encoder (identifier_to_unicode_utf8) identifier_to_unicode_utf8 )attribute (argument_list (call (attribute (identifier_line) identifier_line (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_line) identifier_line (call (identifier_fix_run_on_sents) identifier_fix_run_on_sents (argument_list (identifier_line) identifier_line )argument_list )call )assignment )expression_statement (if_statement (not_operator (identifier_line) identifier_line )not_operator (block (continue_statement )continue_statement )block (elif_clause (call (attribute (identifier_line) identifier_line (identifier_startswith) identifier_startswith )attribute (argument_list (string_u"@highlight") string_u"@highlight" )argument_list )call (block (if_statement (not_operator (identifier_story) identifier_story )not_operator (block (break_statement )break_statement )block )if_statement (expression_statement (assignment (identifier_reading_highlights) identifier_reading_highlights (True) True )assignment )expression_statement )block )elif_clause (elif_clause (identifier_reading_highlights) identifier_reading_highlights (block (expression_statement (call (attribute (identifier_summary) identifier_summary (identifier_append) identifier_append )attribute (argument_list (identifier_line) identifier_line )argument_list )call )expression_statement )block )elif_clause (else_clause (block (expression_statement (call (attribute (identifier_story) identifier_story (identifier_append) identifier_append )attribute (argument_list (identifier_line) identifier_line )argument_list )call )expression_statement )block )else_clause )if_statement )block )for_statement (if_statement (boolean_operator (parenthesized_expression (not_operator (identifier_story) identifier_story )not_operator )parenthesized_expression (not_operator (identifier_summary) identifier_summary )not_operator )boolean_operator (block (continue_statement )continue_statement )block )if_statement (expression_statement (yield (binary_operator (binary_operator (call (attribute (string_" ") string_" " (identifier_join) identifier_join )attribute (argument_list (identifier_story) identifier_story )argument_list )call (identifier_story_summary_split_token) identifier_story_summary_split_token )binary_operator (call (attribute (string_" ") string_" " (identifier_join) identifier_join )attribute (argument_list (identifier_summary) identifier_summary )argument_list )call )binary_operator )yield )expression_statement )block )for_statement )block )function_definition )module
Generate examples.
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_request) identifier_request )parameters (block (expression_statement (assignment (identifier_sections_list) identifier_sections_list (call (attribute (identifier_self) identifier_self (identifier_generate_sections) identifier_generate_sections )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_p) identifier_p (call (identifier_Paginator) identifier_Paginator (argument_list (identifier_sections_list) identifier_sections_list (integer_25) integer_25 )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_page) identifier_page (call (attribute (attribute (identifier_request) identifier_request (identifier_GET) identifier_GET )attribute (identifier_get) identifier_get )attribute (argument_list (string_'page') string_'page' )argument_list )call )assignment )expression_statement (try_statement (block (expression_statement (assignment (identifier_sections) identifier_sections (call (attribute (identifier_p) identifier_p (identifier_page) identifier_page )attribute (argument_list (identifier_page) identifier_page )argument_list )call )assignment )expression_statement )block (except_clause (identifier_PageNotAnInteger) identifier_PageNotAnInteger (block (expression_statement (assignment (identifier_sections) identifier_sections (call (attribute (identifier_p) identifier_p (identifier_page) identifier_page )attribute (argument_list (integer_1) integer_1 )argument_list )call )assignment )expression_statement )block )except_clause (except_clause (identifier_EmptyPage) identifier_EmptyPage (block (expression_statement (assignment (identifier_sections) identifier_sections (call (attribute (identifier_p) identifier_p (identifier_page) identifier_page )attribute (argument_list (attribute (identifier_p) identifier_p (identifier_num_pages) identifier_num_pages )attribute )argument_list )call )assignment )expression_statement )block )except_clause )try_statement (expression_statement (assignment (identifier_context) identifier_context (dictionary (pair (string_'sections') string_'sections' (identifier_sections) identifier_sections )pair (pair (string_'page_title') string_'page_title' (call (attribute (identifier_self) identifier_self (identifier_generate_page_title) identifier_generate_page_title )attribute (argument_list )argument_list )call )pair (pair (string_'browse_type') string_'browse_type' (attribute (identifier_self) identifier_self (identifier_browse_type) identifier_browse_type )attribute )pair )dictionary )assignment )expression_statement (return_statement (call (identifier_render) identifier_render (argument_list (identifier_request) identifier_request (attribute (identifier_self) identifier_self (identifier_template_path) identifier_template_path )attribute (identifier_context) identifier_context )argument_list )call )return_statement )block )function_definition )module
Handle HTTP GET request. Returns template and context from generate_page_title and generate_sections to populate template.
(module (function_definition (function_name_get_matching) function_name_get_matching (parameters (identifier_self) identifier_self (identifier_source_id) identifier_source_id )parameters (block (expression_statement (assignment (identifier_value) identifier_value (call (attribute (attribute (identifier_self) identifier_self (identifier__accessor) identifier__accessor )attribute (identifier_get_by_id) identifier_get_by_id )attribute (argument_list (identifier_source_id) identifier_source_id )argument_list )call )assignment )expression_statement (if_statement (not_operator (comparison_operator (identifier_value) identifier_value (None) None )comparison_operator )not_operator (block (expression_statement (assignment (identifier_reg) identifier_reg (call (identifier_get_current_registry) identifier_get_current_registry (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_prx_fac) identifier_prx_fac (call (attribute (identifier_reg) identifier_reg (identifier_getUtility) identifier_getUtility )attribute (argument_list (identifier_IDataTraversalProxyFactory) identifier_IDataTraversalProxyFactory )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_prx) identifier_prx (call (attribute (identifier_prx_fac) identifier_prx_fac (identifier_make_proxy) identifier_make_proxy )attribute (argument_list (identifier_value) identifier_value (attribute (identifier_self) identifier_self (identifier__accessor) identifier__accessor )attribute (attribute (identifier_self) identifier_self (identifier_relationship_direction) identifier_relationship_direction )attribute (attribute (identifier_self) identifier_self (identifier_relation_operation) identifier_relation_operation )attribute )argument_list )call )assignment )expression_statement )block (else_clause (block (expression_statement (assignment (identifier_prx) identifier_prx (None) None )assignment )expression_statement )block )else_clause )if_statement (return_statement (identifier_prx) identifier_prx )return_statement )block )function_definition )module
Returns a matching target object for the given source ID.
(module (function_definition (function_name_float16_activations_var_getter) function_name_float16_activations_var_getter (parameters (identifier_getter) identifier_getter (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_requested_dtype) identifier_requested_dtype (subscript (identifier_kwargs) identifier_kwargs (string_"dtype") string_"dtype" )subscript )assignment )expression_statement (if_statement (comparison_operator (identifier_requested_dtype) identifier_requested_dtype (attribute (identifier_tf) identifier_tf (identifier_float16) identifier_float16 )attribute )comparison_operator (block (expression_statement (assignment (subscript (identifier_kwargs) identifier_kwargs (string_"dtype") string_"dtype" )subscript (attribute (identifier_tf) identifier_tf (identifier_float32) identifier_float32 )attribute )assignment )expression_statement )block )if_statement (if_statement (comparison_operator (identifier_requested_dtype) identifier_requested_dtype (attribute (identifier_tf) identifier_tf (identifier_float32) identifier_float32 )attribute )comparison_operator (block (expression_statement (assignment (identifier_requested_dtype) identifier_requested_dtype (attribute (identifier_tf) identifier_tf (identifier_float16) identifier_float16 )attribute )assignment )expression_statement )block )if_statement (expression_statement (assignment (identifier_var) identifier_var (call (identifier_getter) identifier_getter (argument_list (list_splat (identifier_args) identifier_args )list_splat (dictionary_splat (identifier_kwargs) identifier_kwargs )dictionary_splat )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (attribute (attribute (identifier_var) identifier_var (identifier_dtype) identifier_dtype )attribute (identifier_base_dtype) identifier_base_dtype )attribute (identifier_requested_dtype) identifier_requested_dtype )comparison_operator (block (expression_statement (assignment (identifier_var) identifier_var (call (attribute (identifier_tf) identifier_tf (identifier_cast) identifier_cast )attribute (argument_list (identifier_var) identifier_var (identifier_requested_dtype) identifier_requested_dtype )argument_list )call )assignment )expression_statement )block )if_statement (return_statement (identifier_var) identifier_var )return_statement )block )function_definition )module
A custom getter function for float32 parameters and float16 activations. This function ensures the following: 1. All variables requested with type fp16 are stored as type fp32. 2. All variables requested with type fp32 are returned as type fp16. See https://docs.nvidia.com/deeplearning/sdk/mixed-precision-training/ #training_tensorflow for more information on this strategy. Args: getter: custom getter *args: arguments **kwargs: keyword arguments Returns: variables with the correct dtype. Raises: KeyError: if "dtype" is not provided as a kwarg.
(module (function_definition (function_name_unicode) function_name_unicode (parameters (identifier_self) identifier_self (identifier_s) identifier_s (default_parameter (identifier_encoding) identifier_encoding (None) None )default_parameter )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_s) identifier_s (identifier_unicode) identifier_unicode )argument_list )call (block (return_statement (call (identifier_unicode) identifier_unicode (argument_list (identifier_s) identifier_s )argument_list )call )return_statement )block )if_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier_to_unicode) identifier_to_unicode )attribute (argument_list (identifier_s) identifier_s (identifier_encoding) identifier_encoding )argument_list )call )return_statement )block )function_definition )module
Convert a string to unicode using the given encoding, and return it. This function uses the underlying to_unicode attribute. Arguments: s: a basestring instance to convert to unicode. Unlike Python's built-in unicode() function, it is okay to pass unicode strings to this function. (Passing a unicode string to Python's unicode() with the encoding argument throws the error, "TypeError: decoding Unicode is not supported.") encoding: the encoding to pass to the to_unicode attribute. Defaults to None.
(module (function_definition (function_name_fetch_data) function_name_fetch_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (yield (call (attribute (identifier_self) identifier_self (identifier__get_httpsession) identifier__get_httpsession )attribute (argument_list )argument_list )call )yield )expression_statement (expression_statement (yield (call (attribute (identifier_self) identifier_self (identifier__post_login_page) identifier__post_login_page )attribute (argument_list )argument_list )call )yield )expression_statement (expression_statement (assignment (identifier_token_uuid) identifier_token_uuid (yield (call (attribute (identifier_self) identifier_self (identifier__get_token) identifier__get_token )attribute (argument_list )argument_list )call )yield )assignment )expression_statement (expression_statement (assignment (identifier_account_number) identifier_account_number (yield (call (attribute (identifier_self) identifier_self (identifier__get_account_number) identifier__get_account_number )attribute (argument_list (list_splat (identifier_token_uuid) identifier_token_uuid )list_splat )argument_list )call )yield )assignment )expression_statement (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__phone_numbers) identifier__phone_numbers )attribute (yield (call (attribute (identifier_self) identifier_self (identifier__list_phone_numbers) identifier__list_phone_numbers )attribute (argument_list (identifier_account_number) identifier_account_number )argument_list )call )yield )assignment )expression_statement (expression_statement (assignment (identifier_balance) identifier_balance (yield (call (attribute (identifier_self) identifier_self (identifier__get_balance) identifier__get_balance )attribute (argument_list (identifier_account_number) identifier_account_number )argument_list )call )yield )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute (string_'balance') string_'balance' )subscript (identifier_balance) identifier_balance )assignment )expression_statement (for_statement (identifier_number) identifier_number (attribute (identifier_self) identifier_self (identifier__phone_numbers) identifier__phone_numbers )attribute (block (expression_statement (assignment (identifier_fido_dollar) identifier_fido_dollar (yield (call (attribute (identifier_self) identifier_self (identifier__get_fido_dollar) identifier__get_fido_dollar )attribute (argument_list (identifier_account_number) identifier_account_number (identifier_number) identifier_number )argument_list )call )yield )assignment )expression_statement (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute (identifier_number) identifier_number )subscript (dictionary (pair (string_'fido_dollar') string_'fido_dollar' (identifier_fido_dollar) identifier_fido_dollar )pair )dictionary )assignment )expression_statement )block )for_statement (for_statement (identifier_number) identifier_number (attribute (identifier_self) identifier_self (identifier__phone_numbers) identifier__phone_numbers )attribute (block (expression_statement (assignment (identifier_usage) identifier_usage (yield (call (attribute (identifier_self) identifier_self (identifier__get_usage) identifier__get_usage )attribute (argument_list (identifier_account_number) identifier_account_number (identifier_number) identifier_number )argument_list )call )yield )assignment )expression_statement (expression_statement (call (attribute (subscript (attribute (identifier_self) identifier_self (identifier__data) identifier__data )attribute (identifier_number) identifier_number )subscript (identifier_update) identifier_update )attribute (argument_list (identifier_usage) identifier_usage )argument_list )call )expression_statement )block )for_statement )block )function_definition )module
Fetch the latest data from Fido.
(module (function_definition (function_name_main_hrun) function_name_main_hrun (parameters )parameters (block (expression_statement (assignment (identifier_parser) identifier_parser (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentParser) identifier_ArgumentParser )attribute (argument_list (keyword_argument (identifier_description) identifier_description (string_"Tools for http(s) test. Base on rtsf.") string_"Tools for http(s) test. Base on rtsf." )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'--log-level') string_'--log-level' (keyword_argument (identifier_default) identifier_default (string_'INFO') string_'INFO' )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"Specify logging level, default is INFO.") string_"Specify logging level, default is INFO." )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'--log-file') string_'--log-file' (keyword_argument (identifier_help) identifier_help (string_"Write logs to specified file path.") string_"Write logs to specified file path." )keyword_argument )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_parser) identifier_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_'case_file') string_'case_file' (keyword_argument (identifier_help) identifier_help (string_"yaml testcase file") string_"yaml testcase file" )keyword_argument )argument_list )call )expression_statement (expression_statement (call (identifier_color_print) identifier_color_print (argument_list (call (attribute (string_"httpdriver {}") string_"httpdriver {}" (identifier_format) identifier_format )attribute (argument_list (identifier___version__) identifier___version__ )argument_list )call (string_"GREEN") string_"GREEN" )argument_list )call )expression_statement (expression_statement (assignment (identifier_args) identifier_args (call (attribute (identifier_parser) identifier_parser (identifier_parse_args) identifier_parse_args )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_setup_logger) identifier_setup_logger )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_log_level) identifier_log_level )attribute (attribute (identifier_args) identifier_args (identifier_log_file) identifier_log_file )attribute )argument_list )call )expression_statement (expression_statement (assignment (identifier_runner) identifier_runner (call (attribute (call (identifier_TestRunner) identifier_TestRunner (argument_list (keyword_argument (identifier_runner) identifier_runner (identifier_HttpDriver) identifier_HttpDriver )keyword_argument )argument_list )call (identifier_run) identifier_run )attribute (argument_list (attribute (identifier_args) identifier_args (identifier_case_file) identifier_case_file )attribute )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_html_report) identifier_html_report (call (attribute (identifier_runner) identifier_runner (identifier_gen_html_report) identifier_gen_html_report )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (call (identifier_color_print) identifier_color_print (argument_list (call (attribute (string_"report: {}") string_"report: {}" (identifier_format) identifier_format )attribute (argument_list (identifier_html_report) identifier_html_report )argument_list )call )argument_list )call )expression_statement )block )function_definition )module
parse command line options and run commands.
(module (function_definition (function_name__get_encoding_opt) function_name__get_encoding_opt (parameters (identifier_synchronizer) identifier_synchronizer (identifier_extra_opts) identifier_extra_opts (identifier_default) identifier_default )parameters (block (expression_statement (assignment (identifier_encoding) identifier_encoding (identifier_default) identifier_default )assignment )expression_statement (if_statement (boolean_operator (identifier_extra_opts) identifier_extra_opts (comparison_operator (string_"encoding") string_"encoding" (identifier_extra_opts) identifier_extra_opts )comparison_operator )boolean_operator (block (expression_statement (assignment (identifier_encoding) identifier_encoding (call (attribute (identifier_extra_opts) identifier_extra_opts (identifier_get) identifier_get )attribute (argument_list (string_"encoding") string_"encoding" )argument_list )call )assignment )expression_statement )block )if_statement (if_statement (identifier_encoding) identifier_encoding (block (expression_statement (assignment (identifier_encoding) identifier_encoding (attribute (call (attribute (identifier_codecs) identifier_codecs (identifier_lookup) identifier_lookup )attribute (argument_list (identifier_encoding) identifier_encoding )argument_list )call (identifier_name) identifier_name )attribute )assignment )expression_statement )block )if_statement (return_statement (boolean_operator (identifier_encoding) identifier_encoding (None) None )boolean_operator )return_statement )block )function_definition )module
Helper to figure out encoding setting inside constructors.
(module (function_definition (function_name_add_component) function_name_add_component (parameters (identifier_self) identifier_self (identifier_component) identifier_component (default_parameter (identifier_temporary) identifier_temporary (False) False )default_parameter )parameters (block (expression_statement (assignment (identifier_tile) identifier_tile (call (identifier_IOTile) identifier_IOTile (argument_list (identifier_component) identifier_component )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_value) identifier_value (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_normpath) identifier_normpath )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_abspath) identifier_abspath )attribute (argument_list (identifier_component) identifier_component )argument_list )call )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_temporary) identifier_temporary (True) True )comparison_operator (block (expression_statement (assignment (subscript (attribute (identifier_self) identifier_self (identifier__component_overlays) identifier__component_overlays )attribute (attribute (identifier_tile) identifier_tile (identifier_name) identifier_name )attribute )subscript (identifier_value) identifier_value )assignment )expression_statement )block (else_clause (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_kvstore) identifier_kvstore )attribute (identifier_set) identifier_set )attribute (argument_list (attribute (identifier_tile) identifier_tile (identifier_name) identifier_name )attribute (identifier_value) identifier_value )argument_list )call )expression_statement )block )else_clause )if_statement )block )function_definition )module
Register a component with ComponentRegistry. Component must be a buildable object with a module_settings.json file that describes its name and the domain that it is part of. By default, this component is saved in the permanent registry associated with this environment and will remain registered for future CoreTools invocations. If you only want this component to be temporarily registered during this program's session, you can pass temporary=True and the component will be stored in RAM only, not persisted to the underlying key-value store. Args: component (str): The path to a component that should be registered. temporary (bool): Optional flag to only temporarily register the component for the duration of this program invocation.
(module (function_definition (function_name___query) function_name___query (parameters (identifier_domain) identifier_domain (default_parameter (identifier_limit) identifier_limit (integer_100) integer_100 )default_parameter )parameters (block (expression_statement (assignment (identifier_s) identifier_s (call (identifier_check_output) identifier_check_output (argument_list (list (call (attribute (string_'{}') string_'{}' (identifier_format) identifier_format )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_join) identifier_join )attribute (argument_list (call (attribute (attribute (identifier_os) identifier_os (identifier_path) identifier_path )attribute (identifier_dirname) identifier_dirname )attribute (argument_list (identifier___file__) identifier___file__ )argument_list )call (string_'whois.sh') string_'whois.sh' )argument_list )call )argument_list )call (call (attribute (string_'--limit {} {}') string_'--limit {} {}' (identifier_format) identifier_format )attribute (argument_list (identifier_limit) identifier_limit (identifier_domain) identifier_domain )argument_list )call )list (keyword_argument (identifier_universal_newlines) identifier_universal_newlines (True) True )keyword_argument )argument_list )call )assignment )expression_statement (return_statement (identifier_s) identifier_s )return_statement )block )function_definition )module
Using the shell script to query pdns.cert.at is a hack, but python raises an error every time using subprocess functions to call whois. So this hack is avoiding calling whois directly. Ugly, but works. :param domain: The domain pdns is queried with. :type domain: str :param limit: Maximum number of results :type limit: int :returns: str -- Console output from whois call. :rtype: str
(module (function_definition (function_name_print_modified_files) function_name_print_modified_files (parameters (identifier_opts) identifier_opts (identifier_anchors) identifier_anchors )parameters (block (expression_statement (call (identifier_print) identifier_print (argument_list (string_"Files with modifications:") string_"Files with modifications:" )argument_list )call )expression_statement (for_statement (identifier_file_path) identifier_file_path (identifier_anchors) identifier_anchors (block (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (string_" ") string_" " (call (identifier_strip_prefix) identifier_strip_prefix (argument_list (identifier_file_path) identifier_file_path (attribute (identifier_opts) identifier_opts (identifier_abs_input) identifier_abs_input )attribute )argument_list )call )binary_operator )argument_list )call )expression_statement )block )for_statement (expression_statement (call (identifier_print) identifier_print (argument_list (string_"--------------------") string_"--------------------" )argument_list )call )expression_statement (expression_statement (call (identifier_print) identifier_print (argument_list (binary_operator (call (identifier_str) identifier_str (argument_list (call (identifier_len) identifier_len (argument_list (identifier_anchors) identifier_anchors )argument_list )call )argument_list )call (string_" total\n") string_" total\n" )binary_operator )argument_list )call )expression_statement )block )function_definition )module
Prints out which files were modified amongst those looked at :param anchors: Dictionary mapping file path strings to dictionaries containing AnchorHub tag/generated header key-value pairs
(module (function_definition (function_name_remove_server_data) function_name_remove_server_data (parameters (identifier_server_id) identifier_server_id )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger (identifier_debug) identifier_debug )attribute (argument_list (string_"Removing server from serverdata") string_"Removing server from serverdata" )argument_list )call )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (attribute (identifier_datatools) identifier_datatools (identifier_get_data) identifier_get_data )attribute (argument_list )argument_list )call )assignment )expression_statement (if_statement (comparison_operator (identifier_server_id) identifier_server_id (subscript (subscript (identifier_data) identifier_data (string_"discord") string_"discord" )subscript (string_"servers") string_"servers" )subscript )comparison_operator (block (expression_statement (call (attribute (subscript (subscript (identifier_data) identifier_data (string_"discord") string_"discord" )subscript (string_"servers") string_"servers" )subscript (identifier_pop) identifier_pop )attribute (argument_list (identifier_server_id) identifier_server_id )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_datatools) identifier_datatools (identifier_write_data) identifier_write_data )attribute (argument_list (identifier_data) identifier_data )argument_list )call )expression_statement )block )if_statement )block )function_definition )module
Remove a server from the server data Args: server_id (int): The server to remove from the server data
(module (function_definition (function_name__set_class_parser) function_name__set_class_parser (parameters (identifier_self) identifier_self (identifier_init_parser) identifier_init_parser (identifier_methods_to_parse) identifier_methods_to_parse (identifier_cls) identifier_cls )parameters (block (expression_statement (assignment (identifier_top_level_parents) identifier_top_level_parents (conditional_expression (list (identifier_init_parser) identifier_init_parser )list (identifier_init_parser) identifier_init_parser (list )list )conditional_expression )assignment )expression_statement (expression_statement (assignment (identifier_description) identifier_description (boolean_operator (attribute (identifier_self) identifier_self (identifier__description) identifier__description )attribute (attribute (identifier_cls) identifier_cls (identifier___doc__) identifier___doc__ )attribute )boolean_operator )assignment )expression_statement (expression_statement (assignment (identifier_top_level_parser) identifier_top_level_parser (call (attribute (identifier_argparse) identifier_argparse (identifier_ArgumentParser) identifier_ArgumentParser )attribute (argument_list (keyword_argument (identifier_description) identifier_description (identifier_description) identifier_description )keyword_argument (keyword_argument (identifier_parents) identifier_parents (identifier_top_level_parents) identifier_top_level_parents )keyword_argument (keyword_argument (identifier_add_help) identifier_add_help (False) False )keyword_argument (keyword_argument (identifier_conflict_handler) identifier_conflict_handler (string_"resolve") string_"resolve" )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_top_level_parser) identifier_top_level_parser (identifier_add_argument) identifier_add_argument )attribute (argument_list (string_"-h") string_"-h" (string_"--help") string_"--help" (keyword_argument (identifier_action) identifier_action (identifier_FullHelpAction) identifier_FullHelpAction )keyword_argument (keyword_argument (identifier_help) identifier_help (string_"Display this help message") string_"Display this help message" )keyword_argument )argument_list )call )expression_statement (expression_statement (assignment (identifier_parser_to_method) identifier_parser_to_method (call (attribute (identifier_self) identifier_self (identifier__add_sub_parsers) identifier__add_sub_parsers )attribute (argument_list (identifier_top_level_parser) identifier_top_level_parser (identifier_methods_to_parse) identifier_methods_to_parse (attribute (identifier_cls) identifier_cls (identifier___name__) identifier___name__ )attribute )argument_list )call )assignment )expression_statement (if_statement (identifier_init_parser) identifier_init_parser (block (expression_statement (assignment (subscript (identifier_parser_to_method) identifier_parser_to_method (string_"__init__") string_"__init__" )subscript (string_"__init__") string_"__init__" )assignment )expression_statement )block )if_statement (expression_statement (assignment (attribute (identifier_top_level_parser) identifier_top_level_parser (identifier_call) identifier_call )attribute (call (attribute (identifier_self) identifier_self (identifier__get_parser_call_method) identifier__get_parser_call_method )attribute (argument_list (identifier_parser_to_method) identifier_parser_to_method )argument_list )call )assignment )expression_statement (expression_statement (assignment (attribute (identifier_cls) identifier_cls (identifier_parser) identifier_parser )attribute (identifier_top_level_parser) identifier_top_level_parser )assignment )expression_statement )block )function_definition )module
Creates the complete argument parser for the decorated class. Args: init_parser: argument parser for the __init__ method or None methods_to_parse: dict of method name pointing to their associated argument parser cls: the class we are decorating Returns: The decorated class with an added attribute 'parser'
(module (function_definition (function_name_csv) function_name_csv (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_output) identifier_output (call (attribute (identifier_StringIO) identifier_StringIO (identifier_StringIO) identifier_StringIO )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_fieldnames) identifier_fieldnames (list (string_'id') string_'id' (string_'name') string_'name' (string_'description') string_'description' (string_'rules_direction') string_'rules_direction' (string_'rules_ip_protocol') string_'rules_ip_protocol' (string_'rules_from_port') string_'rules_from_port' (string_'rules_to_port') string_'rules_to_port' (string_'rules_grants_group_id') string_'rules_grants_group_id' (string_'rules_grants_name') string_'rules_grants_name' (string_'rules_grants_cidr_ip') string_'rules_grants_cidr_ip' (string_'rules_description') string_'rules_description' )list )assignment )expression_statement (expression_statement (assignment (identifier_writer) identifier_writer (call (attribute (identifier_csv) identifier_csv (identifier_DictWriter) identifier_DictWriter )attribute (argument_list (identifier_output) identifier_output (keyword_argument (identifier_fieldnames) identifier_fieldnames (identifier_fieldnames) identifier_fieldnames )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_writer) identifier_writer (identifier_writeheader) identifier_writeheader )attribute (argument_list )argument_list )call )expression_statement (for_statement (identifier_fr) identifier_fr (attribute (identifier_self) identifier_self (identifier_rules) identifier_rules )attribute (block (expression_statement (call (attribute (identifier_writer) identifier_writer (identifier_writerow) identifier_writerow )attribute (argument_list (call (attribute (identifier_fr) identifier_fr (identifier_as_dict) identifier_as_dict )attribute (argument_list )argument_list )call )argument_list )call )expression_statement )block )for_statement (expression_statement (assignment (identifier_csv_content) identifier_csv_content (call (attribute (identifier_output) identifier_output (identifier_getvalue) identifier_getvalue )attribute (argument_list )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_stripped_csv_content) identifier_stripped_csv_content (call (attribute (identifier_csv_content) identifier_csv_content (identifier_strip) identifier_strip )attribute (argument_list )argument_list )call )assignment )expression_statement (return_statement (identifier_stripped_csv_content) identifier_stripped_csv_content )return_statement )block )function_definition )module
Returns the security rules as a CSV. CSV format: - id - name - description - rules_direction - rules_ip_protocol - rules_from_port - rules_to_port - rules_grants_group_id - rules_grants_name - rules_grants_cidr_ip - rules_description Returns: str
(module (function_definition (function_name_wiki_versions_list) function_name_wiki_versions_list (parameters (identifier_self) identifier_self (identifier_page_id) identifier_page_id (identifier_updater_id) identifier_updater_id )parameters (block (expression_statement (assignment (identifier_params) identifier_params (dictionary (pair (string_'earch[updater_id]') string_'earch[updater_id]' (identifier_updater_id) identifier_updater_id )pair (pair (string_'search[wiki_page_id]') string_'search[wiki_page_id]' (identifier_page_id) identifier_page_id )pair )dictionary )assignment )expression_statement (return_statement (call (attribute (identifier_self) identifier_self (identifier__get) identifier__get )attribute (argument_list (string_'wiki_page_versions.json') string_'wiki_page_versions.json' (identifier_params) identifier_params )argument_list )call )return_statement )block )function_definition )module
Return a list of wiki page version. Parameters: page_id (int): updater_id (int):
(module (function_definition (function_name_download_with_progress) function_name_download_with_progress (parameters (identifier_url) identifier_url (identifier_chunk_size) identifier_chunk_size (dictionary_splat_pattern (identifier_progress_kwargs) identifier_progress_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment (identifier_resp) identifier_resp (call (attribute (identifier_requests) identifier_requests (identifier_get) identifier_get )attribute (argument_list (identifier_url) identifier_url (keyword_argument (identifier_stream) identifier_stream (True) True )keyword_argument )argument_list )call )assignment )expression_statement (expression_statement (call (attribute (identifier_resp) identifier_resp (identifier_raise_for_status) identifier_raise_for_status )attribute (argument_list )argument_list )call )expression_statement (expression_statement (assignment (identifier_total_size) identifier_total_size (call (identifier_int) identifier_int (argument_list (subscript (attribute (identifier_resp) identifier_resp (identifier_headers) identifier_headers )attribute (string_'content-length') string_'content-length' )subscript )argument_list )call )assignment )expression_statement (expression_statement (assignment (identifier_data) identifier_data (call (identifier_BytesIO) identifier_BytesIO (argument_list )argument_list )call )assignment )expression_statement (with_statement (with_clause (with_item (as_pattern (call (identifier_progressbar) identifier_progressbar (argument_list (keyword_argument (identifier_length) identifier_length (identifier_total_size) identifier_total_size )keyword_argument (dictionary_splat (identifier_progress_kwargs) identifier_progress_kwargs )dictionary_splat )argument_list )call (as_pattern_target (identifier_pbar) identifier_pbar )as_pattern_target )as_pattern )with_item )with_clause (block (for_statement (identifier_chunk) identifier_chunk (call (attribute (identifier_resp) identifier_resp (identifier_iter_content) identifier_iter_content )attribute (argument_list (keyword_argument (identifier_chunk_size) identifier_chunk_size (identifier_chunk_size) identifier_chunk_size )keyword_argument )argument_list )call (block (expression_statement (call (attribute (identifier_data) identifier_data (identifier_write) identifier_write )attribute (argument_list (identifier_chunk) identifier_chunk )argument_list )call )expression_statement (expression_statement (call (attribute (identifier_pbar) identifier_pbar (identifier_update) identifier_update )attribute (argument_list (call (identifier_len) identifier_len (argument_list (identifier_chunk) identifier_chunk )argument_list )call )argument_list )call )expression_statement )block )for_statement )block )with_statement (expression_statement (call (attribute (identifier_data) identifier_data (identifier_seek) identifier_seek )attribute (argument_list (integer_0) integer_0 )argument_list )call )expression_statement (return_statement (identifier_data) identifier_data )return_statement )block )function_definition )module
Download streaming data from a URL, printing progress information to the terminal. Parameters ---------- url : str A URL that can be understood by ``requests.get``. chunk_size : int Number of bytes to read at a time from requests. **progress_kwargs Forwarded to click.progressbar. Returns ------- data : BytesIO A BytesIO containing the downloaded data.